Fix build breakage due to an uninitialized variable in omp-low.c.
[official-gcc.git] / configure
blob6e372876b5937ad7029d3ff9483115b83cc6a3e4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="move-if-change"
275 ac_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 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 TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
276 ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 ac_prev=
317 for ac_option
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
330 case $ac_option in
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file=$ac_optarg ;;
349 --config-cache | -C)
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474 program_prefix=$ac_optarg ;;
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481 program_suffix=$ac_optarg ;;
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580 x_includes=$ac_optarg ;;
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612 esac
613 done
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
629 esac
630 done
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642 done
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678 echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
688 else
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
718 ac_env_CC_set=${CC+set}
719 ac_env_CC_value=$CC
720 ac_cv_env_CC_set=${CC+set}
721 ac_cv_env_CC_value=$CC
722 ac_env_CFLAGS_set=${CFLAGS+set}
723 ac_env_CFLAGS_value=$CFLAGS
724 ac_cv_env_CFLAGS_set=${CFLAGS+set}
725 ac_cv_env_CFLAGS_value=$CFLAGS
726 ac_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_env_LDFLAGS_value=$LDFLAGS
728 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729 ac_cv_env_LDFLAGS_value=$LDFLAGS
730 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_env_CPPFLAGS_value=$CPPFLAGS
732 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
734 ac_env_CXX_set=${CXX+set}
735 ac_env_CXX_value=$CXX
736 ac_cv_env_CXX_set=${CXX+set}
737 ac_cv_env_CXX_value=$CXX
738 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_env_CXXFLAGS_value=$CXXFLAGS
740 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
741 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
742 ac_env_AR_set=${AR+set}
743 ac_env_AR_value=$AR
744 ac_cv_env_AR_set=${AR+set}
745 ac_cv_env_AR_value=$AR
746 ac_env_AS_set=${AS+set}
747 ac_env_AS_value=$AS
748 ac_cv_env_AS_set=${AS+set}
749 ac_cv_env_AS_value=$AS
750 ac_env_DLLTOOL_set=${DLLTOOL+set}
751 ac_env_DLLTOOL_value=$DLLTOOL
752 ac_cv_env_DLLTOOL_set=${DLLTOOL+set}
753 ac_cv_env_DLLTOOL_value=$DLLTOOL
754 ac_env_LD_set=${LD+set}
755 ac_env_LD_value=$LD
756 ac_cv_env_LD_set=${LD+set}
757 ac_cv_env_LD_value=$LD
758 ac_env_LIPO_set=${LIPO+set}
759 ac_env_LIPO_value=$LIPO
760 ac_cv_env_LIPO_set=${LIPO+set}
761 ac_cv_env_LIPO_value=$LIPO
762 ac_env_NM_set=${NM+set}
763 ac_env_NM_value=$NM
764 ac_cv_env_NM_set=${NM+set}
765 ac_cv_env_NM_value=$NM
766 ac_env_RANLIB_set=${RANLIB+set}
767 ac_env_RANLIB_value=$RANLIB
768 ac_cv_env_RANLIB_set=${RANLIB+set}
769 ac_cv_env_RANLIB_value=$RANLIB
770 ac_env_STRIP_set=${STRIP+set}
771 ac_env_STRIP_value=$STRIP
772 ac_cv_env_STRIP_set=${STRIP+set}
773 ac_cv_env_STRIP_value=$STRIP
774 ac_env_WINDRES_set=${WINDRES+set}
775 ac_env_WINDRES_value=$WINDRES
776 ac_cv_env_WINDRES_set=${WINDRES+set}
777 ac_cv_env_WINDRES_value=$WINDRES
778 ac_env_WINDMC_set=${WINDMC+set}
779 ac_env_WINDMC_value=$WINDMC
780 ac_cv_env_WINDMC_set=${WINDMC+set}
781 ac_cv_env_WINDMC_value=$WINDMC
782 ac_env_OBJCOPY_set=${OBJCOPY+set}
783 ac_env_OBJCOPY_value=$OBJCOPY
784 ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
785 ac_cv_env_OBJCOPY_value=$OBJCOPY
786 ac_env_OBJDUMP_set=${OBJDUMP+set}
787 ac_env_OBJDUMP_value=$OBJDUMP
788 ac_cv_env_OBJDUMP_set=${OBJDUMP+set}
789 ac_cv_env_OBJDUMP_value=$OBJDUMP
790 ac_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
791 ac_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
792 ac_cv_env_CC_FOR_TARGET_set=${CC_FOR_TARGET+set}
793 ac_cv_env_CC_FOR_TARGET_value=$CC_FOR_TARGET
794 ac_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
795 ac_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
796 ac_cv_env_CXX_FOR_TARGET_set=${CXX_FOR_TARGET+set}
797 ac_cv_env_CXX_FOR_TARGET_value=$CXX_FOR_TARGET
798 ac_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
799 ac_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
800 ac_cv_env_GCC_FOR_TARGET_set=${GCC_FOR_TARGET+set}
801 ac_cv_env_GCC_FOR_TARGET_value=$GCC_FOR_TARGET
802 ac_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
803 ac_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
804 ac_cv_env_GCJ_FOR_TARGET_set=${GCJ_FOR_TARGET+set}
805 ac_cv_env_GCJ_FOR_TARGET_value=$GCJ_FOR_TARGET
806 ac_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
807 ac_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
808 ac_cv_env_GFORTRAN_FOR_TARGET_set=${GFORTRAN_FOR_TARGET+set}
809 ac_cv_env_GFORTRAN_FOR_TARGET_value=$GFORTRAN_FOR_TARGET
810 ac_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
811 ac_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
812 ac_cv_env_AR_FOR_TARGET_set=${AR_FOR_TARGET+set}
813 ac_cv_env_AR_FOR_TARGET_value=$AR_FOR_TARGET
814 ac_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
815 ac_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
816 ac_cv_env_AS_FOR_TARGET_set=${AS_FOR_TARGET+set}
817 ac_cv_env_AS_FOR_TARGET_value=$AS_FOR_TARGET
818 ac_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
819 ac_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
820 ac_cv_env_DLLTOOL_FOR_TARGET_set=${DLLTOOL_FOR_TARGET+set}
821 ac_cv_env_DLLTOOL_FOR_TARGET_value=$DLLTOOL_FOR_TARGET
822 ac_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
823 ac_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
824 ac_cv_env_LD_FOR_TARGET_set=${LD_FOR_TARGET+set}
825 ac_cv_env_LD_FOR_TARGET_value=$LD_FOR_TARGET
826 ac_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
827 ac_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
828 ac_cv_env_LIPO_FOR_TARGET_set=${LIPO_FOR_TARGET+set}
829 ac_cv_env_LIPO_FOR_TARGET_value=$LIPO_FOR_TARGET
830 ac_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
831 ac_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
832 ac_cv_env_NM_FOR_TARGET_set=${NM_FOR_TARGET+set}
833 ac_cv_env_NM_FOR_TARGET_value=$NM_FOR_TARGET
834 ac_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
835 ac_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
836 ac_cv_env_OBJDUMP_FOR_TARGET_set=${OBJDUMP_FOR_TARGET+set}
837 ac_cv_env_OBJDUMP_FOR_TARGET_value=$OBJDUMP_FOR_TARGET
838 ac_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
839 ac_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
840 ac_cv_env_RANLIB_FOR_TARGET_set=${RANLIB_FOR_TARGET+set}
841 ac_cv_env_RANLIB_FOR_TARGET_value=$RANLIB_FOR_TARGET
842 ac_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
843 ac_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
844 ac_cv_env_STRIP_FOR_TARGET_set=${STRIP_FOR_TARGET+set}
845 ac_cv_env_STRIP_FOR_TARGET_value=$STRIP_FOR_TARGET
846 ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
847 ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
848 ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
849 ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
850 ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
851 ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
852 ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
853 ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
856 # Report the --help message.
858 if test "$ac_init_help" = "long"; then
859 # Omit some internal or obsolete options to make the list less imposing.
860 # This message is too long to be a string in the A/UX 3.1 sh.
861 cat <<_ACEOF
862 \`configure' configures this package to adapt to many kinds of systems.
864 Usage: $0 [OPTION]... [VAR=VALUE]...
866 To assign environment variables (e.g., CC, CFLAGS...), specify them as
867 VAR=VALUE. See below for descriptions of some of the useful variables.
869 Defaults for the options are specified in brackets.
871 Configuration:
872 -h, --help display this help and exit
873 --help=short display options specific to this package
874 --help=recursive display the short help of all the included packages
875 -V, --version display version information and exit
876 -q, --quiet, --silent do not print \`checking...' messages
877 --cache-file=FILE cache test results in FILE [disabled]
878 -C, --config-cache alias for \`--cache-file=config.cache'
879 -n, --no-create do not create output files
880 --srcdir=DIR find the sources in DIR [configure dir or \`..']
882 _ACEOF
884 cat <<_ACEOF
885 Installation directories:
886 --prefix=PREFIX install architecture-independent files in PREFIX
887 [$ac_default_prefix]
888 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
889 [PREFIX]
891 By default, \`make install' will install all the files in
892 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
893 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
894 for instance \`--prefix=\$HOME'.
896 For better control, use the options below.
898 Fine tuning of the installation directories:
899 --bindir=DIR user executables [EPREFIX/bin]
900 --sbindir=DIR system admin executables [EPREFIX/sbin]
901 --libexecdir=DIR program executables [EPREFIX/libexec]
902 --datadir=DIR read-only architecture-independent data [PREFIX/share]
903 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
904 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
905 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
906 --libdir=DIR object code libraries [EPREFIX/lib]
907 --includedir=DIR C header files [PREFIX/include]
908 --oldincludedir=DIR C header files for non-gcc [/usr/include]
909 --infodir=DIR info documentation [PREFIX/info]
910 --mandir=DIR man documentation [PREFIX/man]
911 _ACEOF
913 cat <<\_ACEOF
915 Program names:
916 --program-prefix=PREFIX prepend PREFIX to installed program names
917 --program-suffix=SUFFIX append SUFFIX to installed program names
918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
920 System types:
921 --build=BUILD configure for building on BUILD [guessed]
922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
923 --target=TARGET configure for building compilers for TARGET [HOST]
924 _ACEOF
927 if test -n "$ac_init_help"; then
929 cat <<\_ACEOF
931 Optional Features:
932 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
933 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
934 --enable-libada build libada directory
935 --enable-libssp build libssp directory
936 --enable-stage1-languages[=all] choose additional languages to build during
937 stage1. Mostly useful for compiler development.
938 --enable-objc-gc enable use of Boehm's garbage collector with the
939 GNU Objective-C runtime
940 --enable-bootstrap enable bootstrapping [yes if native build]
941 --enable-serial-[{host,target,build}-]configure
942 force sequential configuration of
943 sub-packages for the host, target or build
944 machine, or all sub-packages
945 --enable-maintainer-mode enable make rules and dependencies not useful
946 (and sometimes confusing) to the casual installer
947 --enable-stage1-checking[=all] choose additional checking for stage1
948 of the compiler
949 --enable-werror enable -Werror in bootstrap stage2 and later
951 Optional Packages:
952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
954 --with-build-libsubdir=DIR Directory where to find libraries for build system
955 --with-mpfr-dir=PATH this option has been REMOVED
956 --with-mpfr=PATH specify prefix directory for installed MPFR package.
957 Equivalent to --with-mpfr-include=PATH/include
958 plus --with-mpfr-lib=PATH/lib
959 --with-mpfr-include=PATH
960 specify directory for installed MPFR include files
961 --with-mpfr-lib=PATH specify directory for the installed MPFR library
962 --with-gmp-dir=PATH this option has been REMOVED
963 --with-gmp=PATH specify prefix directory for the installed GMP package.
964 Equivalent to --with-gmp-include=PATH/include
965 plus --with-gmp-lib=PATH/lib
966 --with-gmp-include=PATH specify directory for installed GMP include files
967 --with-gmp-lib=PATH specify directory for the installed GMP library
968 --with-build-sysroot=SYSROOT
969 use sysroot as the system root during the build
970 --with-debug-prefix-map='A=B C=D ...'
971 map A to B, C to D ... in debug information
972 --with-build-time-tools=PATH
973 use given path to find target tools during the build
974 --with-datarootdir use datarootdir as the data root directory.
975 --with-docdir install documentation in this directory.
976 --with-pdfdir install pdf in this directory.
977 --with-htmldir install html in this directory.
979 Some influential environment variables:
980 CC C compiler command
981 CFLAGS C compiler flags
982 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
983 nonstandard directory <lib dir>
984 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
985 headers in a nonstandard directory <include dir>
986 CXX C++ compiler command
987 CXXFLAGS C++ compiler flags
988 AR AR for the host
989 AS AS for the host
990 DLLTOOL DLLTOOL for the host
991 LD LD for the host
992 LIPO LIPO for the host
993 NM NM for the host
994 RANLIB RANLIB for the host
995 STRIP STRIP for the host
996 WINDRES WINDRES for the host
997 WINDMC WINDMC for the host
998 OBJCOPY OBJCOPY for the host
999 OBJDUMP OBJDUMP for the host
1000 CC_FOR_TARGET
1001 CC for the target
1002 CXX_FOR_TARGET
1003 CXX for the target
1004 GCC_FOR_TARGET
1005 GCC for the target
1006 GCJ_FOR_TARGET
1007 GCJ for the target
1008 GFORTRAN_FOR_TARGET
1009 GFORTRAN for the target
1010 AR_FOR_TARGET
1011 AR for the target
1012 AS_FOR_TARGET
1013 AS for the target
1014 DLLTOOL_FOR_TARGET
1015 DLLTOOL for the target
1016 LD_FOR_TARGET
1017 LD for the target
1018 LIPO_FOR_TARGET
1019 LIPO for the target
1020 NM_FOR_TARGET
1021 NM for the target
1022 OBJDUMP_FOR_TARGET
1023 OBJDUMP for the target
1024 RANLIB_FOR_TARGET
1025 RANLIB for the target
1026 STRIP_FOR_TARGET
1027 STRIP for the target
1028 WINDRES_FOR_TARGET
1029 WINDRES for the target
1030 WINDMC_FOR_TARGET
1031 WINDMC for the target
1033 Use these variables to override the choices made by `configure' or to help
1034 it to find libraries and programs with nonstandard names/locations.
1036 _ACEOF
1039 if test "$ac_init_help" = "recursive"; then
1040 # If there are subdirs, report their specific --help.
1041 ac_popdir=`pwd`
1042 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043 test -d $ac_dir || continue
1044 ac_builddir=.
1046 if test "$ac_dir" != .; then
1047 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1048 # A "../" for each directory in $ac_dir_suffix.
1049 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050 else
1051 ac_dir_suffix= ac_top_builddir=
1054 case $srcdir in
1055 .) # No --srcdir option. We are building in place.
1056 ac_srcdir=.
1057 if test -z "$ac_top_builddir"; then
1058 ac_top_srcdir=.
1059 else
1060 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061 fi ;;
1062 [\\/]* | ?:[\\/]* ) # Absolute path.
1063 ac_srcdir=$srcdir$ac_dir_suffix;
1064 ac_top_srcdir=$srcdir ;;
1065 *) # Relative path.
1066 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068 esac
1070 # Do not use `cd foo && pwd` to compute absolute paths, because
1071 # the directories may not exist.
1072 case `pwd` in
1073 .) ac_abs_builddir="$ac_dir";;
1075 case "$ac_dir" in
1076 .) ac_abs_builddir=`pwd`;;
1077 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079 esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1084 case ${ac_top_builddir}. in
1085 .) ac_abs_top_builddir=$ac_abs_builddir;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088 esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_srcdir=$ac_srcdir;;
1093 case $ac_srcdir in
1094 .) ac_abs_srcdir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097 esac;;
1098 esac
1099 case $ac_abs_builddir in
1100 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1102 case $ac_top_srcdir in
1103 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106 esac;;
1107 esac
1109 cd $ac_dir
1110 # Check for guested configure; otherwise get Cygnus style configure.
1111 if test -f $ac_srcdir/configure.gnu; then
1112 echo
1113 $SHELL $ac_srcdir/configure.gnu --help=recursive
1114 elif test -f $ac_srcdir/configure; then
1115 echo
1116 $SHELL $ac_srcdir/configure --help=recursive
1117 elif test -f $ac_srcdir/configure.ac ||
1118 test -f $ac_srcdir/configure.in; then
1119 echo
1120 $ac_configure --help
1121 else
1122 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1124 cd "$ac_popdir"
1125 done
1128 test -n "$ac_init_help" && exit 0
1129 if $ac_init_version; then
1130 cat <<\_ACEOF
1132 Copyright (C) 2003 Free Software Foundation, Inc.
1133 This configure script is free software; the Free Software Foundation
1134 gives unlimited permission to copy, distribute and modify it.
1135 _ACEOF
1136 exit 0
1138 exec 5>config.log
1139 cat >&5 <<_ACEOF
1140 This file contains any messages produced by compilers while
1141 running configure, to aid debugging if configure makes a mistake.
1143 It was created by $as_me, which was
1144 generated by GNU Autoconf 2.59. Invocation command line was
1146 $ $0 $@
1148 _ACEOF
1150 cat <<_ASUNAME
1151 ## --------- ##
1152 ## Platform. ##
1153 ## --------- ##
1155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1164 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1165 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1167 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1168 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1169 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1170 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1172 _ASUNAME
1174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175 for as_dir in $PATH
1177 IFS=$as_save_IFS
1178 test -z "$as_dir" && as_dir=.
1179 echo "PATH: $as_dir"
1180 done
1182 } >&5
1184 cat >&5 <<_ACEOF
1187 ## ----------- ##
1188 ## Core tests. ##
1189 ## ----------- ##
1191 _ACEOF
1194 # Keep a trace of the command line.
1195 # Strip out --no-create and --no-recursion so they do not pile up.
1196 # Strip out --silent because we don't want to record it for future runs.
1197 # Also quote any args containing shell meta-characters.
1198 # Make two passes to allow for proper duplicate-argument suppression.
1199 ac_configure_args=
1200 ac_configure_args0=
1201 ac_configure_args1=
1202 ac_sep=
1203 ac_must_keep_next=false
1204 for ac_pass in 1 2
1206 for ac_arg
1208 case $ac_arg in
1209 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 continue ;;
1213 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215 esac
1216 case $ac_pass in
1217 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1219 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220 if test $ac_must_keep_next = true; then
1221 ac_must_keep_next=false # Got value, back to normal.
1222 else
1223 case $ac_arg in
1224 *=* | --config-cache | -C | -disable-* | --disable-* \
1225 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227 | -with-* | --with-* | -without-* | --without-* | --x)
1228 case "$ac_configure_args0 " in
1229 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230 esac
1232 -* ) ac_must_keep_next=true ;;
1233 esac
1235 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236 # Get rid of the leading space.
1237 ac_sep=" "
1239 esac
1240 done
1241 done
1242 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1245 # When interrupted or exit'd, cleanup temporary files, and complete
1246 # config.log. We remove comments because anyway the quotes in there
1247 # would cause problems or look ugly.
1248 # WARNING: Be sure not to use single quotes in there, as some shells,
1249 # such as our DU 5.0 friend, will then `close' the trap.
1250 trap 'exit_status=$?
1251 # Save into config.log some information that might help in debugging.
1253 echo
1255 cat <<\_ASBOX
1256 ## ---------------- ##
1257 ## Cache variables. ##
1258 ## ---------------- ##
1259 _ASBOX
1260 echo
1261 # The following way of writing the cache mishandles newlines in values,
1263 (set) 2>&1 |
1264 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265 *ac_space=\ *)
1266 sed -n \
1267 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1271 sed -n \
1272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1274 esac;
1276 echo
1278 cat <<\_ASBOX
1279 ## ----------------- ##
1280 ## Output variables. ##
1281 ## ----------------- ##
1282 _ASBOX
1283 echo
1284 for ac_var in $ac_subst_vars
1286 eval ac_val=$`echo $ac_var`
1287 echo "$ac_var='"'"'$ac_val'"'"'"
1288 done | sort
1289 echo
1291 if test -n "$ac_subst_files"; then
1292 cat <<\_ASBOX
1293 ## ------------- ##
1294 ## Output files. ##
1295 ## ------------- ##
1296 _ASBOX
1297 echo
1298 for ac_var in $ac_subst_files
1300 eval ac_val=$`echo $ac_var`
1301 echo "$ac_var='"'"'$ac_val'"'"'"
1302 done | sort
1303 echo
1306 if test -s confdefs.h; then
1307 cat <<\_ASBOX
1308 ## ----------- ##
1309 ## confdefs.h. ##
1310 ## ----------- ##
1311 _ASBOX
1312 echo
1313 sed "/^$/d" confdefs.h | sort
1314 echo
1316 test "$ac_signal" != 0 &&
1317 echo "$as_me: caught signal $ac_signal"
1318 echo "$as_me: exit $exit_status"
1319 } >&5
1320 rm -f core *.core &&
1321 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322 exit $exit_status
1324 for ac_signal in 1 2 13 15; do
1325 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326 done
1327 ac_signal=0
1329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1330 rm -rf conftest* confdefs.h
1331 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332 echo >confdefs.h
1334 # Predefined preprocessor variables.
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_NAME "$PACKAGE_NAME"
1338 _ACEOF
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343 _ACEOF
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1348 _ACEOF
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_STRING "$PACKAGE_STRING"
1353 _ACEOF
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358 _ACEOF
1361 # Let the site file select an alternate cache file if it wants to.
1362 # Prefer explicitly selected file to automatically selected ones.
1363 if test -z "$CONFIG_SITE"; then
1364 if test "x$prefix" != xNONE; then
1365 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366 else
1367 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1370 for ac_site_file in $CONFIG_SITE; do
1371 if test -r "$ac_site_file"; then
1372 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373 echo "$as_me: loading site script $ac_site_file" >&6;}
1374 sed 's/^/| /' "$ac_site_file" >&5
1375 . "$ac_site_file"
1377 done
1379 if test -r "$cache_file"; then
1380 # Some versions of bash will fail to source /dev/null (special
1381 # files actually), so we avoid doing that.
1382 if test -f "$cache_file"; then
1383 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384 echo "$as_me: loading cache $cache_file" >&6;}
1385 case $cache_file in
1386 [\\/]* | ?:[\\/]* ) . $cache_file;;
1387 *) . ./$cache_file;;
1388 esac
1390 else
1391 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392 echo "$as_me: creating cache $cache_file" >&6;}
1393 >$cache_file
1396 # Check that the precious variables saved in the cache have kept the same
1397 # value.
1398 ac_cache_corrupted=false
1399 for ac_var in `(set) 2>&1 |
1400 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1401 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402 eval ac_new_set=\$ac_env_${ac_var}_set
1403 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404 eval ac_new_val="\$ac_env_${ac_var}_value"
1405 case $ac_old_set,$ac_new_set in
1406 set,)
1407 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409 ac_cache_corrupted=: ;;
1410 ,set)
1411 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413 ac_cache_corrupted=: ;;
1414 ,);;
1416 if test "x$ac_old_val" != "x$ac_new_val"; then
1417 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1420 echo "$as_me: former value: $ac_old_val" >&2;}
1421 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1422 echo "$as_me: current value: $ac_new_val" >&2;}
1423 ac_cache_corrupted=:
1424 fi;;
1425 esac
1426 # Pass precious variables to config.status.
1427 if test "$ac_new_set" = set; then
1428 case $ac_new_val in
1429 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431 *) ac_arg=$ac_var=$ac_new_val ;;
1432 esac
1433 case " $ac_configure_args " in
1434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1435 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436 esac
1438 done
1439 if $ac_cache_corrupted; then
1440 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444 { (exit 1); exit 1; }; }
1447 ac_ext=c
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 # Find the build, host, and target systems.
1474 ac_aux_dir=
1475 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1476 if test -f $ac_dir/install-sh; then
1477 ac_aux_dir=$ac_dir
1478 ac_install_sh="$ac_aux_dir/install-sh -c"
1479 break
1480 elif test -f $ac_dir/install.sh; then
1481 ac_aux_dir=$ac_dir
1482 ac_install_sh="$ac_aux_dir/install.sh -c"
1483 break
1484 elif test -f $ac_dir/shtool; then
1485 ac_aux_dir=$ac_dir
1486 ac_install_sh="$ac_aux_dir/shtool install -c"
1487 break
1489 done
1490 if test -z "$ac_aux_dir"; then
1491 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1492 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1493 { (exit 1); exit 1; }; }
1495 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1499 # Make sure we can run config.sub.
1500 $ac_config_sub sun4 >/dev/null 2>&1 ||
1501 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1502 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1503 { (exit 1); exit 1; }; }
1505 echo "$as_me:$LINENO: checking build system type" >&5
1506 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1507 if test "${ac_cv_build+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 ac_cv_build_alias=$build_alias
1511 test -z "$ac_cv_build_alias" &&
1512 ac_cv_build_alias=`$ac_config_guess`
1513 test -z "$ac_cv_build_alias" &&
1514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1516 { (exit 1); exit 1; }; }
1517 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1518 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1519 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1520 { (exit 1); exit 1; }; }
1523 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1524 echo "${ECHO_T}$ac_cv_build" >&6
1525 build=$ac_cv_build
1526 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
1534 esac
1538 case ${host_alias} in
1539 "") host_noncanonical=${build_noncanonical} ;;
1540 *) host_noncanonical=${host_alias} ;;
1541 esac
1545 case ${target_alias} in
1546 "") target_noncanonical=${host_noncanonical} ;;
1547 *) target_noncanonical=${target_alias} ;;
1548 esac
1553 test "$host_noncanonical" = "$target_noncanonical" &&
1554 test "$program_prefix$program_suffix$program_transform_name" = \
1555 NONENONEs,x,x, &&
1556 program_transform_name=s,y,y,
1558 echo "$as_me:$LINENO: checking host system type" >&5
1559 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560 if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 ac_cv_host_alias=$host_alias
1564 test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1572 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573 echo "${ECHO_T}$ac_cv_host" >&6
1574 host=$ac_cv_host
1575 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1580 echo "$as_me:$LINENO: checking target system type" >&5
1581 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582 if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585 ac_cv_target_alias=$target_alias
1586 test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1594 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595 echo "${ECHO_T}$ac_cv_target" >&6
1596 target=$ac_cv_target
1597 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602 # The aliases save the names the user supplied, while $host etc.
1603 # will get canonicalized.
1604 test -n "$target_alias" &&
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
1608 test "$program_prefix" != NONE &&
1609 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1610 # Use a double $ so make ignores it.
1611 test "$program_suffix" != NONE &&
1612 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1613 # Double any \ or $. echo might interpret backslashes.
1614 # By default was `s,x,x', remove it if useless.
1615 cat <<\_ACEOF >conftest.sed
1616 s/[\\$]/&&/g;s/;s,x,x,$//
1617 _ACEOF
1618 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1619 rm conftest.sed
1623 # Get 'install' or 'install-sh' and its variants.
1624 # Find a good install program. We prefer a C program (faster),
1625 # so one script is as good as another. But avoid the broken or
1626 # incompatible versions:
1627 # SysV /etc/install, /usr/sbin/install
1628 # SunOS /usr/etc/install
1629 # IRIX /sbin/install
1630 # AIX /bin/install
1631 # AmigaOS /C/install, which installs bootblocks on floppy discs
1632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1635 # OS/2's system install, which has a completely different semantic
1636 # ./install, which can be erroneously created by make from ./install.sh.
1637 # Reject install programs that cannot install multiple files.
1638 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1639 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1640 if test -z "$INSTALL"; then
1641 if test "${ac_cv_path_install+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 # Account for people who put trailing slashes in PATH elements.
1650 case $as_dir/ in
1651 ./ | .// | /cC/* | \
1652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1653 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1654 /usr/ucb/* ) ;;
1656 # OSF1 and SCO ODT 3.0 have their own names for install.
1657 # Don't use installbsd from OSF since it installs stuff as root
1658 # by default.
1659 for ac_prog in ginstall scoinst install; do
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1662 if test $ac_prog = install &&
1663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1664 # AIX install. It has an incompatible calling convention.
1666 elif test $ac_prog = install &&
1667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1668 # program-specific install script used by HP pwplus--don't use.
1670 else
1671 rm -rf conftest.one conftest.two conftest.dir
1672 echo one > conftest.one
1673 echo two > conftest.two
1674 mkdir conftest.dir
1675 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1676 test -s conftest.one && test -s conftest.two &&
1677 test -s conftest.dir/conftest.one &&
1678 test -s conftest.dir/conftest.two
1679 then
1680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1681 break 3
1685 done
1686 done
1688 esac
1689 done
1691 rm -rf conftest.one conftest.two conftest.dir
1694 if test "${ac_cv_path_install+set}" = set; then
1695 INSTALL=$ac_cv_path_install
1696 else
1697 # As a last resort, use the slow shell script. Don't cache a
1698 # value for INSTALL within a source directory, because that will
1699 # break other packages using the cache if that directory is
1700 # removed, or if the value is a relative name.
1701 INSTALL=$ac_install_sh
1704 echo "$as_me:$LINENO: result: $INSTALL" >&5
1705 echo "${ECHO_T}$INSTALL" >&6
1707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708 # It thinks the first close brace ends the variable substitution.
1709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1715 echo "$as_me:$LINENO: checking whether ln works" >&5
1716 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1717 if test "${acx_cv_prog_LN+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 rm -f conftestdata_t
1721 echo >conftestdata_f
1722 if ln conftestdata_f conftestdata_t 2>/dev/null
1723 then
1724 acx_cv_prog_LN=ln
1725 else
1726 acx_cv_prog_LN=no
1728 rm -f conftestdata_f conftestdata_t
1731 if test $acx_cv_prog_LN = no; then
1732 LN="cp"
1733 echo "$as_me:$LINENO: result: no, using $LN" >&5
1734 echo "${ECHO_T}no, using $LN" >&6
1735 else
1736 LN="$acx_cv_prog_LN"
1737 echo "$as_me:$LINENO: result: yes" >&5
1738 echo "${ECHO_T}yes" >&6
1741 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1743 LN_S=$as_ln_s
1744 if test "$LN_S" = "ln -s"; then
1745 echo "$as_me:$LINENO: result: yes" >&5
1746 echo "${ECHO_T}yes" >&6
1747 else
1748 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1749 echo "${ECHO_T}no, using $LN_S" >&6
1753 ### we might need to use some other shell than /bin/sh for running subshells
1754 ### If we are on Windows, search for the shell. This will permit people
1755 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1756 ### without also having to set CONFIG_SHELL. This code will work when
1757 ### using bash, which sets OSTYPE.
1758 case "${OSTYPE}" in
1759 *win32*)
1760 if test x${CONFIG_SHELL} = x ; then
1761 if test ! -f /bin/sh ; then
1762 if test x${SHELL} != x && test -f ${SHELL} ; then
1763 CONFIG_SHELL=${SHELL}
1764 export CONFIG_SHELL
1765 else
1766 for prog in sh sh.exe bash bash.exe; do
1767 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1768 for dir in $PATH; do
1769 test -z "$dir" && dir=.
1770 if test -f $dir/$prog; then
1771 CONFIG_SHELL=$dir/$prog
1772 export CONFIG_SHELL
1773 break
1775 done
1776 IFS="$save_ifs"
1777 test -n "${CONFIG_SHELL}" && break
1778 done
1783 esac
1785 config_shell=${CONFIG_SHELL-/bin/sh}
1787 progname=$0
1788 # if PWD already has a value, it is probably wrong.
1789 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1791 # Export original configure arguments for use by sub-configures.
1792 # Quote arguments with shell meta charatcers.
1793 TOPLEVEL_CONFIGURE_ARGUMENTS=
1794 set -- "$progname" "$@"
1795 for ac_arg
1797 case "$ac_arg" in
1798 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
1799 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1800 # if the argument is of the form -foo=baz, quote the baz part only
1801 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1802 *) ;;
1803 esac
1804 # Add the quoted argument to the list.
1805 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1806 done
1807 if test "$silent" = yes; then
1808 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
1810 # Remove the initial space we just introduced and, as these will be
1811 # expanded by make, quote '$'.
1812 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1815 moveifchange=${srcdir}/move-if-change
1817 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1819 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1820 # a relative path.
1821 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1822 INSTALL="${srcpwd}/install-sh -c"
1825 # Set srcdir to "." if that's what it is.
1826 # This is important for multilib support.
1827 pwd=`${PWDCMD-pwd}`
1828 if test "${pwd}" = "${srcpwd}" ; then
1829 srcdir=.
1832 topsrcdir=$srcpwd
1834 extra_host_args=
1836 ### To add a new directory to the tree, first choose whether it is a target
1837 ### or a host dependent tool. Then put it into the appropriate list
1838 ### (library or tools, host or target), doing a dependency sort.
1840 # Subdirs will be configured in the order listed in build_configdirs,
1841 # configdirs, or target_configdirs; see the serialization section below.
1843 # Dependency sorting is only needed when *configuration* must be done in
1844 # a particular order. In all cases a dependency should be specified in
1845 # the Makefile, whether or not it's implicitly specified here.
1847 # Double entries in build_configdirs, configdirs, or target_configdirs may
1848 # cause circular dependencies and break everything horribly.
1850 # these library is used by various programs built for the build
1851 # environment
1853 build_libs="build-libiberty"
1855 # these tools are built for the build environment
1856 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1858 # these libraries are used by various programs built for the host environment
1860 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1862 # these tools are built for the host environment
1863 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1864 # know that we are building the simulator.
1865 # binutils, gas and ld appear in that order because it makes sense to run
1866 # "make check" in that particular order.
1867 host_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"
1869 # libgcj represents the runtime libraries only used by gcj.
1870 libgcj="target-libffi \
1871 target-zlib \
1872 target-qthreads \
1873 target-libjava"
1875 # these libraries are built for the target environment, and are built after
1876 # the host libraries and the host tools (which may be a cross compiler)
1878 target_libraries="target-libgcc \
1879 target-libiberty \
1880 target-libgloss \
1881 target-newlib \
1882 target-libgomp \
1883 target-libstdc++-v3 \
1884 target-libmudflap \
1885 target-libssp \
1886 target-libgfortran \
1887 target-boehm-gc \
1888 ${libgcj} \
1889 target-libobjc \
1890 target-libada"
1892 # these tools are built using the target libraries, and are intended to
1893 # run only in the target environment
1895 # note: any program that *uses* libraries that are in the "target_libraries"
1896 # list belongs in this list. those programs are also very likely
1897 # candidates for the "native_only" list which follows
1899 target_tools="target-examples target-groff target-gperf target-rda"
1901 ################################################################################
1903 ## All tools belong in one of the four categories, and are assigned above
1904 ## We assign ${configdirs} this way to remove all embedded newlines. This
1905 ## is important because configure will choke if they ever get through.
1906 ## ${configdirs} is directories we build using the host tools.
1907 ## ${target_configdirs} is directories we build using the target tools.
1908 configdirs=`echo ${host_libs} ${host_tools}`
1909 target_configdirs=`echo ${target_libraries} ${target_tools}`
1910 build_configdirs=`echo ${build_libs} ${build_tools}`
1914 ################################################################################
1916 srcname="gnu development package"
1918 # This gets set non-empty for some net releases of packages.
1919 appdirs=""
1921 # Define is_cross_compiler to save on calls to 'test'.
1922 is_cross_compiler=
1923 if test x"${host}" = x"${target}" ; then
1924 is_cross_compiler=no
1925 else
1926 is_cross_compiler=yes
1929 # Find the build and target subdir names.
1931 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1932 # have matching libraries, they should use host libraries: Makefile.tpl
1933 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1934 # However, they still use the build modules, because the corresponding
1935 # host modules (e.g. bison) are only built for the host when bootstrap
1936 # finishes. So:
1937 # - build_subdir is where we find build modules, and never changes.
1938 # - build_libsubdir is where we find build libraries, and can be overridden.
1940 # Prefix 'build-' so this never conflicts with target_subdir.
1941 build_subdir="build-${build_noncanonical}"
1943 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1944 if test "${with_build_libsubdir+set}" = set; then
1945 withval="$with_build_libsubdir"
1946 build_libsubdir="$withval"
1947 else
1948 build_libsubdir="$build_subdir"
1950 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1951 if ( test $srcdir = . && test -d gcc ) \
1952 || test -d $srcdir/../host-${host_noncanonical}; then
1953 host_subdir="host-${host_noncanonical}"
1954 else
1955 host_subdir=.
1957 # No prefix.
1958 target_subdir=${target_noncanonical}
1961 # Skipdirs are removed silently.
1962 skipdirs=
1963 # Noconfigdirs are removed loudly.
1964 noconfigdirs=""
1966 use_gnu_ld=
1967 # Make sure we don't let GNU ld be added if we didn't want it.
1968 if test x$with_gnu_ld = xno ; then
1969 use_gnu_ld=no
1970 noconfigdirs="$noconfigdirs ld"
1973 use_gnu_as=
1974 # Make sure we don't let GNU as be added if we didn't want it.
1975 if test x$with_gnu_as = xno ; then
1976 use_gnu_as=no
1977 noconfigdirs="$noconfigdirs gas"
1980 # some tools are so dependent upon X11 that if we're not building with X,
1981 # it's not even worth trying to configure, much less build, that tool.
1983 case ${with_x} in
1984 yes | "") ;; # the default value for this tree is that X11 is available
1986 skipdirs="${skipdirs} tk itcl libgui"
1987 # We won't be able to build gdbtk without X.
1988 enable_gdbtk=no
1990 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1991 esac
1993 # Some tools are only suitable for building in a "native" situation.
1994 # Remove these if host!=target.
1995 native_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"
1997 # Similarly, some are only suitable for cross toolchains.
1998 # Remove these if host=target.
1999 cross_only="target-libgloss target-newlib target-opcodes"
2001 case $is_cross_compiler in
2002 no) skipdirs="${skipdirs} ${cross_only}" ;;
2003 yes) skipdirs="${skipdirs} ${native_only}" ;;
2004 esac
2006 # If both --with-headers and --with-libs are specified, default to
2007 # --without-newlib.
2008 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2009 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2010 if test x"${with_newlib}" = x ; then
2011 with_newlib=no
2015 # Recognize --with-newlib/--without-newlib.
2016 case ${with_newlib} in
2017 no) skipdirs="${skipdirs} target-newlib" ;;
2018 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2019 esac
2021 # Configure extra directories which are host specific
2023 case "${host}" in
2024 *-cygwin*)
2025 configdirs="$configdirs libtermcap" ;;
2026 esac
2028 # A target can indicate whether a language isn't supported for some reason.
2029 # Only spaces may be used in this macro; not newlines or tabs.
2030 unsupported_languages=
2032 # Remove more programs from consideration, based on the host or
2033 # target this usually means that a port of the program doesn't
2034 # exist yet.
2036 case "${host}" in
2037 hppa*64*-*-*)
2038 noconfigdirs="$noconfigdirs byacc"
2040 i[3456789]86-*-vsta)
2041 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2043 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2044 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2046 x86_64-*-mingw*)
2047 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2049 i[3456789]86-*-mingw32*)
2050 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2051 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2053 i[3456789]86-*-beos*)
2054 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2056 *-*-cygwin*)
2057 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2059 *-*-netbsd*)
2060 noconfigdirs="$noconfigdirs rcs"
2062 ppc*-*-pe)
2063 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2065 powerpc-*-beos*)
2066 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2068 esac
2071 # Check whether --enable-libada or --disable-libada was given.
2072 if test "${enable_libada+set}" = set; then
2073 enableval="$enable_libada"
2074 ENABLE_LIBADA=$enableval
2075 else
2076 ENABLE_LIBADA=yes
2078 if test "${ENABLE_LIBADA}" != "yes" ; then
2079 noconfigdirs="$noconfigdirs gnattools"
2082 # Check whether --enable-libssp or --disable-libssp was given.
2083 if test "${enable_libssp+set}" = set; then
2084 enableval="$enable_libssp"
2085 ENABLE_LIBSSP=$enableval
2086 else
2087 ENABLE_LIBSSP=yes
2090 # Save it here so that, even in case of --enable-libgcj, if the Java
2091 # front-end isn't enabled, we still get libgcj disabled.
2092 libgcj_saved=$libgcj
2093 case $enable_libgcj in
2094 yes)
2095 # If we reset it here, it won't get added to noconfigdirs in the
2096 # target-specific build rules, so it will be forcibly enabled
2097 # (unless the Java language itself isn't enabled).
2098 libgcj=
2101 # Make sure we get it printed in the list of not supported target libs.
2102 noconfigdirs="$noconfigdirs ${libgcj}"
2104 esac
2107 # Disable libmudflap on some systems.
2108 if test x$enable_libmudflap = x ; then
2109 case "${target}" in
2110 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux*)
2111 # Enable libmudflap by default in GNU and friends.
2113 *-*-freebsd*)
2114 # Enable libmudflap by default in FreeBSD.
2117 # Disable it by default everywhere else.
2118 noconfigdirs="$noconfigdirs target-libmudflap"
2120 esac
2123 # Disable libgomp on non POSIX hosted systems.
2124 if test x$enable_libgomp = x ; then
2125 # Enable libgomp by default on hosted POSIX systems.
2126 case "${target}" in
2127 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2129 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2131 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2133 *-*-darwin* | *-*-aix*)
2136 noconfigdirs="$noconfigdirs target-libgomp"
2138 esac
2141 # Default libgloss CPU subdirectory.
2142 libgloss_dir="$target_cpu"
2144 case "${target}" in
2145 *-*-chorusos)
2146 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2148 powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
2149 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
2150 noconfigdirs="$noconfigdirs sim target-rda"
2152 *-*-darwin*)
2153 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2154 noconfigdirs="$noconfigdirs sim target-rda"
2155 noconfigdirs="$noconfigdirs ${libgcj}"
2157 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2158 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2160 *-*-freebsd*)
2161 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2162 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2163 && test -f /usr/local/include/gmp.h; then
2164 with_gmp=/usr/local
2167 # Skip some stuff that's unsupported on some FreeBSD configurations.
2168 case "${target}" in
2169 i*86-*-*) ;;
2170 alpha*-*-*) ;;
2172 noconfigdirs="$noconfigdirs ${libgcj}"
2174 esac
2176 *-*-kaos*)
2177 # Remove unsupported stuff on all kaOS configurations.
2178 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
2179 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2180 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2181 noconfigdirs="$noconfigdirs target-libgloss"
2183 *-*-netbsd*)
2184 # Skip some stuff on all NetBSD configurations.
2185 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2187 # Skip some stuff that's unsupported on some NetBSD configurations.
2188 case "${target}" in
2189 i*86-*-netbsdelf*) ;;
2190 arm*-*-netbsdelf*) ;;
2192 noconfigdirs="$noconfigdirs ${libgcj}"
2194 esac
2196 *-*-netware*)
2197 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2199 *-*-rtems*)
2200 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2202 # The tpf target doesn't support gdb yet.
2203 *-*-tpf*)
2204 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2206 *-*-uclinux*)
2207 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2209 *-*-vxworks*)
2210 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2212 alpha*-dec-osf*)
2213 # ld works, but does not support shared libraries.
2214 # newlib is not 64 bit ready. I'm not sure about fileutils.
2215 # gas doesn't generate exception information.
2216 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2218 alpha*-*-*vms*)
2219 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2221 alpha*-*-linux*)
2222 # newlib is not 64 bit ready
2223 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2225 alpha*-*-*)
2226 # newlib is not 64 bit ready
2227 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2229 am33_2.0-*-linux*)
2230 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2232 sh-*-linux*)
2233 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2235 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2236 noconfigdirs="$noconfigdirs ${libgcj}"
2237 noconfigdirs="$noconfigdirs target-examples"
2238 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2239 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2240 noconfigdirs="$noconfigdirs expect dejagnu"
2241 # the C++ libraries don't build on top of CE's C libraries
2242 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2243 noconfigdirs="$noconfigdirs target-newlib"
2244 case "${host}" in
2245 *-*-cygwin*) ;; # keep gdb and readline
2246 *) noconfigdirs="$noconfigdirs gdb readline"
2248 esac
2249 libgloss_dir=wince
2251 arc-*-*)
2252 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2254 arm-semi-aof )
2256 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2257 noconfigdirs="$noconfigdirs ${libgcj}"
2258 libgloss_dir=arm
2260 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2261 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2262 libgloss_dir=arm
2264 arm*-*-linux-gnueabi)
2265 noconfigdirs="$noconfigdirs target-qthreads"
2266 noconfigdirs="$noconfigdirs target-libobjc"
2267 case ${with_newlib} in
2268 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2269 esac
2270 libgloss_dir=arm
2272 arm*-*-symbianelf*)
2273 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2274 libgloss_dir=arm
2276 arm-*-pe*)
2277 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2279 thumb-*-coff)
2280 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2282 thumb-*-elf)
2283 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2285 thumb-*-pe)
2286 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2288 arm-*-riscix*)
2289 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2291 avr-*-*)
2292 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2294 bfin-*-*)
2295 noconfigdirs="$noconfigdirs gdb"
2296 if test x${is_cross_compiler} != xno ; then
2297 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2300 c4x-*-* | tic4x-*-*)
2301 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2303 c54x*-*-* | tic54x-*-*)
2304 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2306 cris-*-* | crisv32-*-*)
2307 unsupported_languages="$unsupported_languages java"
2308 case "${target}" in
2309 *-*-aout)
2310 unsupported_languages="$unsupported_languages fortran"
2311 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2312 *-*-elf)
2313 noconfigdirs="$noconfigdirs target-boehm-gc";;
2314 *-*-linux*)
2315 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2317 unsupported_languages="$unsupported_languages fortran"
2318 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2319 esac
2320 libgloss_dir=cris
2322 crx-*-*)
2323 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2325 d10v-*-*)
2326 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2328 d30v-*-*)
2329 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2331 ep9312-*-elf | ep9312-*-coff)
2332 libgloss_dir=arm
2334 fr30-*-elf*)
2335 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2337 frv-*-*)
2338 noconfigdirs="$noconfigdirs ${libgcj}"
2340 h8300*-*-*)
2341 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2343 h8500-*-*)
2344 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2346 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2348 hppa*64*-*-linux* | parisc*64*-*-linux*)
2349 # In this case, it's because the hppa64-linux target is for
2350 # the kernel only at this point and has no libc, and thus no
2351 # headers, crt*.o, etc., all of which are needed by these.
2352 noconfigdirs="$noconfigdirs target-zlib"
2354 parisc*-*-linux* | hppa*-*-linux*)
2356 hppa*-*-*elf* | \
2357 hppa*-*-lites* | \
2358 hppa*-*-openbsd* | \
2359 hppa*64*-*-*)
2360 noconfigdirs="$noconfigdirs ${libgcj}"
2362 hppa*-hp-hpux11*)
2363 noconfigdirs="$noconfigdirs ld shellutils"
2365 hppa*-*-pro*)
2366 libgloss_dir=pa
2368 hppa*-*-*)
2369 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2370 # build on HP-UX 10.20.
2371 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2373 i960-*-*)
2374 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2376 ia64*-*-elf*)
2377 # No gdb support yet.
2378 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2380 ia64*-**-hpux*)
2381 # No gdb or ld support yet.
2382 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2384 i370-*-opened*)
2386 i[3456789]86-*-coff | i[3456789]86-*-elf)
2387 noconfigdirs="$noconfigdirs ${libgcj}"
2388 libgloss_dir=i386
2390 i[3456789]86-*-linux*)
2391 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2392 # not build java stuff by default.
2393 case "${target}" in
2394 *-*-*libc1*)
2395 noconfigdirs="$noconfigdirs ${libgcj}";;
2396 esac
2398 # This section makes it possible to build newlib natively on linux.
2399 # If we are using a cross compiler then don't configure newlib.
2400 if test x${is_cross_compiler} != xno ; then
2401 noconfigdirs="$noconfigdirs target-newlib"
2403 noconfigdirs="$noconfigdirs target-libgloss"
2404 # If we are not using a cross compiler, do configure newlib.
2405 # Note however, that newlib will only be configured in this situation
2406 # if the --with-newlib option has been given, because otherwise
2407 # 'target-newlib' will appear in skipdirs.
2409 i[3456789]86-*-mingw32*)
2410 target_configdirs="$target_configdirs target-winsup"
2411 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2413 x86_64-*-mingw*)
2414 target_configdirs="$target_configdirs target-winsup"
2415 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2417 *-*-cygwin*)
2418 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2419 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2420 # always build newlib if winsup directory is present.
2421 if test -d "$srcdir/winsup/cygwin"; then
2422 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2423 elif test -d "$srcdir/newlib"; then
2424 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2427 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2428 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2430 i[3456789]86-*-pe)
2431 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2433 i[3456789]86-*-sco3.2v5*)
2434 # The linker does not yet know about weak symbols in COFF,
2435 # and is not configured to handle mixed ELF and COFF.
2436 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2438 i[3456789]86-*-sco*)
2439 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2441 i[3456789]86-*-solaris2*)
2442 noconfigdirs="$noconfigdirs target-libgloss"
2444 i[3456789]86-*-sysv4*)
2445 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2447 i[3456789]86-*-beos*)
2448 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2450 i[3456789]86-*-rdos*)
2451 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2453 m32r-*-*)
2454 noconfigdirs="$noconfigdirs ${libgcj}"
2456 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2457 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2458 libgloss_dir=m68hc11
2460 m68k-*-elf*)
2461 noconfigdirs="$noconfigdirs ${libgcj}"
2463 m68k-*-coff*)
2464 noconfigdirs="$noconfigdirs ${libgcj}"
2466 m68*-*-* | fido-*-*)
2467 libgloss_dir=m68k
2469 mcore-*-pe*)
2470 # The EPOC C++ environment does not support exceptions or rtti,
2471 # and so building libstdc++-v3 tends not to always work.
2472 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2474 mmix-*-*)
2475 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2476 unsupported_languages="$unsupported_languages fortran java"
2478 mn10200-*-*)
2479 noconfigdirs="$noconfigdirs ${libgcj}"
2481 mn10300-*-*)
2482 noconfigdirs="$noconfigdirs ${libgcj}"
2484 mt-*-*)
2485 noconfigdirs="$noconfigdirs sim"
2487 powerpc-*-aix*)
2488 # copied from rs6000-*-* entry
2489 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2491 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2492 target_configdirs="$target_configdirs target-winsup"
2493 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2494 # always build newlib.
2495 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2497 # This is temporary until we can link against shared libraries
2498 powerpcle-*-solaris*)
2499 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2500 libgloss_dir=rs6000
2502 powerpc-*-beos*)
2503 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2505 powerpc-*-eabi)
2506 noconfigdirs="$noconfigdirs ${libgcj}"
2507 libgloss_dir=rs6000
2509 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2510 libgloss_dir=rs6000
2512 rs6000-*-lynxos*)
2513 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2515 rs6000-*-aix*)
2516 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2518 rs6000-*-*)
2519 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2521 m68k-apollo-*)
2522 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2524 mips*-sde-elf*)
2525 skipdirs="$skipdirs target-libiberty"
2526 noconfigdirs="$noconfigdirs ${libgcj}"
2527 if test x$with_newlib = xyes; then
2528 noconfigdirs="$noconfigdirs gprof"
2530 libgloss_dir=mips
2532 mips*-*-irix5*)
2533 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2535 mips*-*-irix6*)
2536 # Linking libjava exceeds command-line length limits on at least
2537 # IRIX 6.2, but not on IRIX 6.5.
2538 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2539 # <oldham@codesourcery.com>
2540 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2542 mips*-*-bsd*)
2543 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2545 mips*-*-linux*)
2546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2548 mips*-*-*)
2549 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2550 libgloss_dir=mips
2552 romp-*-*)
2553 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2555 sh-*-* | sh64-*-*)
2556 case "${host}" in
2557 i[3456789]86-*-vsta) ;; # don't add gprof back in
2558 i[3456789]86-*-go32*) ;; # don't add gprof back in
2559 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2560 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2561 esac
2562 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2564 sparclet-*-aout* | sparc86x-*-*)
2565 libgloss_dir=sparc
2567 sparc-*-elf*)
2568 noconfigdirs="$noconfigdirs ${libgcj}"
2570 sparc64-*-elf*)
2571 noconfigdirs="$noconfigdirs ${libgcj}"
2572 libgloss_dir=sparc
2574 sparclite-*-*)
2575 noconfigdirs="$noconfigdirs ${libgcj}"
2576 libgloss_dir=sparc
2578 sparc-*-sunos4*)
2579 noconfigdirs="$noconfigdirs ${libgcj}"
2580 if test x${is_cross_compiler} != xno ; then
2581 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2582 else
2583 use_gnu_ld=no
2586 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2587 noconfigdirs="$noconfigdirs ${libgcj}"
2589 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2591 spu-*-*)
2592 skipdirs="target-libssp"
2594 v810-*-*)
2595 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2597 v850-*-*)
2598 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2600 v850e-*-*)
2601 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2603 v850ea-*-*)
2604 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2606 vax-*-vms)
2607 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2609 vax-*-*)
2610 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2612 xtensa*-*-*)
2613 noconfigdirs="$noconfigdirs ${libgcj}"
2615 ip2k-*-*)
2616 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2618 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2621 *-*-lynxos*)
2622 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2624 *-*-*)
2625 noconfigdirs="$noconfigdirs ${libgcj}"
2627 esac
2629 # If we aren't building newlib, then don't build libgloss, since libgloss
2630 # depends upon some newlib header files.
2631 case "${noconfigdirs}" in
2632 *target-libgloss*) ;;
2633 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2634 esac
2636 # Work in distributions that contain no compiler tools, like Autoconf.
2637 tentative_cc=""
2638 host_makefile_frag=/dev/null
2639 if test -d ${srcdir}/config ; then
2640 case "${host}" in
2641 m68k-hp-hpux*)
2642 # Avoid "too much defining" errors from HPUX compiler.
2643 tentative_cc="cc -Wp,-H256000"
2644 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2645 # If it's HP/UX ar, this should be harmless.
2646 RANLIB="ar ts"
2648 m68k-apollo-sysv*)
2649 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2651 m68k-apollo-bsd*)
2652 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2653 # chokes on bfd, the compiler won't let you assign integers to enums, and
2654 # other problems. Defining CC to gcc is a questionable way to say "don't use
2655 # the apollo compiler" (the preferred version of GCC could be called cc,
2656 # or whatever), but I'm not sure leaving CC as cc is any better...
2657 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2658 # Used to have BISON=yacc.
2659 tentative_cc=gcc
2661 m88k-dg-dgux*)
2662 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2664 m88k-harris-cxux*)
2665 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2666 tentative_cc="cc -Xa"
2667 host_makefile_frag="config/mh-cxux"
2669 m88k-motorola-sysv*)
2671 mips*-dec-ultrix*)
2672 tentative_cc="cc -Wf,-XNg1000"
2673 host_makefile_frag="config/mh-decstation"
2675 mips*-nec-sysv4*)
2676 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2677 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2678 host_makefile_frag="config/mh-necv4"
2680 mips*-sgi-irix4*)
2681 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2682 # environment. Also bump switch table size so that cp-parse will
2683 # compile. Bump string length limit so linker builds.
2684 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2686 mips*-*-sysv4*)
2687 host_makefile_frag="config/mh-sysv4"
2689 mips*-*-sysv*)
2690 # This is for a MIPS running RISC/os 4.52C.
2692 # This is needed for GDB, but needs to be in the top-level make because
2693 # if a library is compiled with the bsd headers and gets linked with the
2694 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2695 # a different size).
2696 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2697 # known except to select the sysv environment. Could we use /proc instead?
2698 # These "sysv environments" and "bsd environments" often end up being a pain.
2700 # This is not part of CFLAGS because perhaps not all C compilers have this
2701 # option.
2702 tentative_cc="cc -systype sysv"
2704 i370-ibm-opened*)
2705 tentative_cc="c89"
2707 i[3456789]86-*-sysv5*)
2708 host_makefile_frag="config/mh-sysv5"
2710 i[3456789]86-*-dgux*)
2711 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2712 host_makefile_frag="config/mh-dgux386"
2714 i[3456789]86-ncr-sysv4.3*)
2715 # The MetaWare compiler will generate a copyright message unless you
2716 # turn it off by adding the -Hnocopyr flag.
2717 tentative_cc="cc -Hnocopyr"
2719 i[3456789]86-ncr-sysv4*)
2720 # for an NCR 3000 (i486/SVR4) system.
2721 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2722 # This compiler not only emits obnoxious copyright messages every time
2723 # you run it, but it chokes and dies on a whole bunch of GNU source
2724 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2725 tentative_cc="/usr/ccs/ATT/cc"
2726 host_makefile_frag="config/mh-ncr3000"
2728 i[3456789]86-*-sco3.2v5*)
2730 i[3456789]86-*-sco*)
2731 # The native C compiler botches some simple uses of const. Unfortunately,
2732 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2733 tentative_cc="cc -Dconst="
2734 host_makefile_frag="config/mh-sco"
2736 i[3456789]86-*-udk*)
2737 host_makefile_frag="config/mh-sysv5"
2739 i[3456789]86-*-solaris2*)
2740 host_makefile_frag="config/mh-sysv4"
2742 i[3456789]86-*-msdosdjgpp*)
2743 host_makefile_frag="config/mh-djgpp"
2745 *-cygwin*)
2746 host_makefile_frag="config/mh-cygwin"
2748 *-mingw32*)
2749 host_makefile_frag="config/mh-mingw"
2751 *-mingw64*)
2752 host_makefile_frag="config/mh-mingw"
2754 *-interix*)
2755 host_makefile_frag="config/mh-interix"
2757 vax-*-ultrix2*)
2758 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2759 tentative_cc=gcc
2761 *-*-solaris2*)
2762 host_makefile_frag="config/mh-solaris"
2764 m68k-sun-sunos*)
2765 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2766 # without overflowing the jump tables (-J says to use a 32 bit table)
2767 tentative_cc="cc -J"
2769 *-hp-hpux*)
2770 tentative_cc="cc -Wp,-H256000"
2772 *-*-hiux*)
2773 tentative_cc="cc -Wp,-H256000"
2775 rs6000-*-lynxos*)
2776 # /bin/cc is less than useful for our purposes. Always use GCC
2777 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2778 host_makefile_frag="config/mh-lynxrs6k"
2780 powerpc-*-darwin*)
2781 host_makefile_frag="config/mh-ppc-darwin"
2783 powerpc-*-aix*)
2784 host_makefile_frag="config/mh-ppc-aix"
2786 rs6000-*-aix*)
2787 host_makefile_frag="config/mh-ppc-aix"
2789 *-*-lynxos*)
2790 # /bin/cc is less than useful for our purposes. Always use GCC
2791 tentative_cc="/bin/gcc"
2793 *-*-sysv4*)
2794 host_makefile_frag="config/mh-sysv4"
2796 # This is placed last to prevent interfering with the cases above.
2797 i[3456789]86-*-*)
2798 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2799 host_makefile_frag="config/mh-x86omitfp"
2801 esac
2804 # If we aren't going to be using gcc, see if we can extract a definition
2805 # of CC from the fragment.
2806 # Actually, use the 'pre-extracted' version above.
2807 if test -z "${CC}" && test "${build}" = "${host}" ; then
2808 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2809 found=
2810 for dir in $PATH; do
2811 test -z "$dir" && dir=.
2812 if test -f $dir/gcc; then
2813 found=yes
2814 break
2816 done
2817 IFS="$save_ifs"
2818 if test -z "${found}" && test -n "${tentative_cc}" ; then
2819 CC=$tentative_cc
2823 if test "${build}" != "${host}" ; then
2824 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
2825 AS_FOR_BUILD=${AS_FOR_BUILD-as}
2826 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2827 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
2828 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
2829 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
2830 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
2831 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
2832 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
2833 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
2834 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
2835 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
2836 else
2837 AR_FOR_BUILD="\$(AR)"
2838 AS_FOR_BUILD="\$(AS)"
2839 CC_FOR_BUILD="\$(CC)"
2840 CXX_FOR_BUILD="\$(CXX)"
2841 GCJ_FOR_BUILD="\$(GCJ)"
2842 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
2843 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
2844 LD_FOR_BUILD="\$(LD)"
2845 NM_FOR_BUILD="\$(NM)"
2846 RANLIB_FOR_BUILD="\$(RANLIB)"
2847 WINDRES_FOR_BUILD="\$(WINDRES)"
2848 WINDMC_FOR_BUILD="\$(WINDMC)"
2851 ac_ext=c
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2859 echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2878 done
2879 done
2883 CC=$ac_cv_prog_CC
2884 if test -n "$CC"; then
2885 echo "$as_me:$LINENO: result: $CC" >&5
2886 echo "${ECHO_T}$CC" >&6
2887 else
2888 echo "$as_me:$LINENO: result: no" >&5
2889 echo "${ECHO_T}no" >&6
2893 if test -z "$ac_cv_prog_CC"; then
2894 ac_ct_CC=$CC
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2916 done
2917 done
2921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2922 if test -n "$ac_ct_CC"; then
2923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2924 echo "${ECHO_T}$ac_ct_CC" >&6
2925 else
2926 echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6
2930 CC=$ac_ct_CC
2931 else
2932 CC="$ac_cv_prog_CC"
2935 if test -z "$CC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}cc; ac_word=$2
2939 echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_CC="${ac_tool_prefix}cc"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6
2967 else
2968 echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6
2973 if test -z "$ac_cv_prog_CC"; then
2974 ac_ct_CC=$CC
2975 # Extract the first word of "cc", so it can be a program name with args.
2976 set dummy cc; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 if test -n "$ac_ct_CC"; then
2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_ac_ct_CC="cc"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3004 echo "${ECHO_T}$ac_ct_CC" >&6
3005 else
3006 echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3010 CC=$ac_ct_CC
3011 else
3012 CC="$ac_cv_prog_CC"
3016 if test -z "$CC"; then
3017 # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 ac_prog_rejected=no
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036 ac_prog_rejected=yes
3037 continue
3039 ac_cv_prog_CC="cc"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3046 if test $ac_prog_rejected = yes; then
3047 # We found a bogon in the path, so make sure we never use it.
3048 set dummy $ac_cv_prog_CC
3049 shift
3050 if test $# != 0; then
3051 # We chose a different compiler from the bogus one.
3052 # However, it has the same basename, so the bogon will be chosen
3053 # first if we set CC to just the basename; use the full file name.
3054 shift
3055 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062 echo "$as_me:$LINENO: result: $CC" >&5
3063 echo "${ECHO_T}$CC" >&6
3064 else
3065 echo "$as_me:$LINENO: result: no" >&5
3066 echo "${ECHO_T}no" >&6
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 for ac_prog in cl
3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_CC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 echo "$as_me:$LINENO: result: $CC" >&5
3103 echo "${ECHO_T}$CC" >&6
3104 else
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3109 test -n "$CC" && break
3110 done
3112 if test -z "$CC"; then
3113 ac_ct_CC=$CC
3114 for ac_prog in cl
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if test -n "$ac_ct_CC"; then
3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_ac_ct_CC="$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3137 done
3138 done
3142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143 if test -n "$ac_ct_CC"; then
3144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3145 echo "${ECHO_T}$ac_ct_CC" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 test -n "$ac_ct_CC" && break
3152 done
3154 CC=$ac_ct_CC
3160 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3161 See \`config.log' for more details." >&5
3162 echo "$as_me: error: no acceptable C compiler found in \$PATH
3163 See \`config.log' for more details." >&2;}
3164 { (exit 1); exit 1; }; }
3166 # Provide some information about the compiler.
3167 echo "$as_me:$LINENO:" \
3168 "checking for C compiler version" >&5
3169 ac_compiler=`set X $ac_compile; echo $2`
3170 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3171 (eval $ac_compiler --version </dev/null >&5) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }
3175 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3176 (eval $ac_compiler -v </dev/null >&5) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }
3180 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3181 (eval $ac_compiler -V </dev/null >&5) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3186 cat >conftest.$ac_ext <<_ACEOF
3187 /* confdefs.h. */
3188 _ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3194 main ()
3198 return 0;
3200 _ACEOF
3201 ac_clean_files_save=$ac_clean_files
3202 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3203 # Try to create an executable without -o first, disregard a.out.
3204 # It will help us diagnose broken compilers, and finding out an intuition
3205 # of exeext.
3206 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3207 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3208 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3209 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3210 (eval $ac_link_default) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 # Find the output, starting from the most likely. This scheme is
3215 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3216 # resort.
3218 # Be careful to initialize this variable, since it used to be cached.
3219 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3220 ac_cv_exeext=
3221 # b.out is created by i960 compilers.
3222 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3224 test -f "$ac_file" || continue
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3228 conftest.$ac_ext )
3229 # This is the source file.
3231 [ab].out )
3232 # We found the default executable, but exeext='' is most
3233 # certainly right.
3234 break;;
3235 *.* )
3236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 # FIXME: I believe we export ac_cv_exeext for Libtool,
3238 # but it would be cool to find out if it's true. Does anybody
3239 # maintain Libtool? --akim.
3240 export ac_cv_exeext
3241 break;;
3243 break;;
3244 esac
3245 done
3246 else
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3250 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3251 See \`config.log' for more details." >&5
3252 echo "$as_me: error: C compiler cannot create executables
3253 See \`config.log' for more details." >&2;}
3254 { (exit 77); exit 77; }; }
3257 ac_exeext=$ac_cv_exeext
3258 echo "$as_me:$LINENO: result: $ac_file" >&5
3259 echo "${ECHO_T}$ac_file" >&6
3261 # Check the compiler produces executables we can run. If not, either
3262 # the compiler is broken, or we cross compile.
3263 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3264 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3266 # If not cross compiling, check that we can run a simple program.
3267 if test "$cross_compiling" != yes; then
3268 if { ac_try='./$ac_file'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 cross_compiling=no
3275 else
3276 if test "$cross_compiling" = maybe; then
3277 cross_compiling=yes
3278 else
3279 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3289 echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3297 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3298 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6
3301 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3302 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3304 (eval $ac_link) 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; then
3308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3311 # `rm'.
3312 for ac_file in conftest.exe conftest conftest.*; do
3313 test -f "$ac_file" || continue
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 export ac_cv_exeext
3318 break;;
3319 * ) break;;
3320 esac
3321 done
3322 else
3323 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3324 See \`config.log' for more details." >&5
3325 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3326 See \`config.log' for more details." >&2;}
3327 { (exit 1); exit 1; }; }
3330 rm -f conftest$ac_cv_exeext
3331 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3332 echo "${ECHO_T}$ac_cv_exeext" >&6
3334 rm -f conftest.$ac_ext
3335 EXEEXT=$ac_cv_exeext
3336 ac_exeext=$EXEEXT
3337 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3338 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3339 if test "${ac_cv_objext+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3350 main ()
3354 return 0;
3356 _ACEOF
3357 rm -f conftest.o conftest.obj
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; then
3363 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3367 break;;
3368 esac
3369 done
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3375 See \`config.log' for more details." >&5
3376 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3377 See \`config.log' for more details." >&2;}
3378 { (exit 1); exit 1; }; }
3381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3383 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3384 echo "${ECHO_T}$ac_cv_objext" >&6
3385 OBJEXT=$ac_cv_objext
3386 ac_objext=$OBJEXT
3387 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3388 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3389 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 else
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3400 main ()
3402 #ifndef __GNUC__
3403 choke me
3404 #endif
3407 return 0;
3409 _ACEOF
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_compiler_gnu=yes
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_compiler_gnu=no
3438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3439 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3442 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3443 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3444 GCC=`test $ac_compiler_gnu = yes && echo yes`
3445 ac_test_CFLAGS=${CFLAGS+set}
3446 ac_save_CFLAGS=$CFLAGS
3447 CFLAGS="-g"
3448 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3449 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3450 if test "${ac_cv_prog_cc_g+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3461 main ()
3465 return 0;
3467 _ACEOF
3468 rm -f conftest.$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_cv_prog_cc_g=yes
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 ac_cv_prog_cc_g=no
3496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3498 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3500 if test "$ac_test_CFLAGS" = set; then
3501 CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503 if test "$GCC" = yes; then
3504 CFLAGS="-g -O2"
3505 else
3506 CFLAGS="-g"
3508 else
3509 if test "$GCC" = yes; then
3510 CFLAGS="-O2"
3511 else
3512 CFLAGS=
3515 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3516 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3517 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520 ac_cv_prog_cc_stdc=no
3521 ac_save_CC=$CC
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <stdarg.h>
3529 #include <stdio.h>
3530 #include <sys/types.h>
3531 #include <sys/stat.h>
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3536 char **p;
3537 int i;
3539 return p[i];
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3543 char *s;
3544 va_list v;
3545 va_start (v,p);
3546 s = g (p, va_arg (v,int));
3547 va_end (v);
3548 return s;
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
3554 as 'x'. The following induces an error, until -std1 is added to get
3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
3557 that's true only with -std1. */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560 int test (int i, double x);
3561 struct s1 {int (*f) (int a);};
3562 struct s2 {int (*f) (double a);};
3563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3564 int argc;
3565 char **argv;
3567 main ()
3569 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3571 return 0;
3573 _ACEOF
3574 # Don't try gcc -ansi; that turns off useful extensions and
3575 # breaks some systems' header files.
3576 # AIX -qlanglvl=ansi
3577 # Ultrix and OSF/1 -std1
3578 # HP-UX 10.20 and later -Ae
3579 # HP-UX older versions -Aa -D_HPUX_SOURCE
3580 # SVR4 -Xc -D__EXTENSIONS__
3581 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 CC="$ac_save_CC $ac_arg"
3584 rm -f conftest.$ac_objext
3585 if { (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" || test ! -s conftest.err'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 (eval $ac_try) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; } &&
3599 { ac_try='test -s conftest.$ac_objext'
3600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_prog_cc_stdc=$ac_arg
3606 break
3607 else
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3612 rm -f conftest.err conftest.$ac_objext
3613 done
3614 rm -f conftest.$ac_ext conftest.$ac_objext
3615 CC=$ac_save_CC
3619 case "x$ac_cv_prog_cc_stdc" in
3620 x|xno)
3621 echo "$as_me:$LINENO: result: none needed" >&5
3622 echo "${ECHO_T}none needed" >&6 ;;
3624 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3625 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3626 CC="$CC $ac_cv_prog_cc_stdc" ;;
3627 esac
3629 # Some people use a C++ compiler to compile C. Since we use `exit',
3630 # in C++ we need to declare it. In case someone uses the same compiler
3631 # for both compiling C and C++ we need to have the C++ compiler decide
3632 # the declaration of exit, since it's the most demanding environment.
3633 cat >conftest.$ac_ext <<_ACEOF
3634 #ifndef __cplusplus
3635 choke me
3636 #endif
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640 (eval $ac_compile) 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 for ac_declaration in \
3660 '' \
3661 'extern "C" void std::exit (int) throw (); using std::exit;' \
3662 'extern "C" void std::exit (int); using std::exit;' \
3663 'extern "C" void exit (int) throw ();' \
3664 'extern "C" void exit (int);' \
3665 'void exit (int);'
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 $ac_declaration
3674 #include <stdlib.h>
3676 main ()
3678 exit (42);
3680 return 0;
3682 _ACEOF
3683 rm -f conftest.$ac_objext
3684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3685 (eval $ac_compile) 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3705 else
3706 echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3709 continue
3711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3712 cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h. */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3718 $ac_declaration
3720 main ()
3722 exit (42);
3724 return 0;
3726 _ACEOF
3727 rm -f conftest.$ac_objext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3729 (eval $ac_compile) 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738 (eval $ac_try) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 break
3749 else
3750 echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3755 done
3756 rm -f conftest*
3757 if test -n "$ac_declaration"; then
3758 echo '#ifdef __cplusplus' >>confdefs.h
3759 echo $ac_declaration >>confdefs.h
3760 echo '#endif' >>confdefs.h
3763 else
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 ac_ext=cc
3776 ac_cpp='$CXXCPP $CPPFLAGS'
3777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3780 if test -n "$ac_tool_prefix"; then
3781 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_prog_CXX+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 if test -n "$CXX"; then
3791 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3804 done
3805 done
3809 CXX=$ac_cv_prog_CXX
3810 if test -n "$CXX"; then
3811 echo "$as_me:$LINENO: result: $CXX" >&5
3812 echo "${ECHO_T}$CXX" >&6
3813 else
3814 echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3818 test -n "$CXX" && break
3819 done
3821 if test -z "$CXX"; then
3822 ac_ct_CXX=$CXX
3823 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3825 # Extract the first word of "$ac_prog", so it can be a program name with args.
3826 set dummy $ac_prog; ac_word=$2
3827 echo "$as_me:$LINENO: checking for $ac_word" >&5
3828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832 if test -n "$ac_ct_CXX"; then
3833 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_ac_ct_CXX="$ac_prog"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3846 done
3847 done
3851 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3852 if test -n "$ac_ct_CXX"; then
3853 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3854 echo "${ECHO_T}$ac_ct_CXX" >&6
3855 else
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3860 test -n "$ac_ct_CXX" && break
3861 done
3862 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3864 CXX=$ac_ct_CXX
3868 # Provide some information about the compiler.
3869 echo "$as_me:$LINENO:" \
3870 "checking for C++ compiler version" >&5
3871 ac_compiler=`set X $ac_compile; echo $2`
3872 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3873 (eval $ac_compiler --version </dev/null >&5) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }
3877 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3878 (eval $ac_compiler -v </dev/null >&5) 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }
3882 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3883 (eval $ac_compiler -V </dev/null >&5) 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }
3888 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3889 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3890 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3901 main ()
3903 #ifndef __GNUC__
3904 choke me
3905 #endif
3908 return 0;
3910 _ACEOF
3911 rm -f conftest.$ac_objext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913 (eval $ac_compile) 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; } &&
3926 { ac_try='test -s conftest.$ac_objext'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 ac_compiler_gnu=yes
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 ac_compiler_gnu=no
3939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3940 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3943 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3944 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3945 GXX=`test $ac_compiler_gnu = yes && echo yes`
3946 ac_test_CXXFLAGS=${CXXFLAGS+set}
3947 ac_save_CXXFLAGS=$CXXFLAGS
3948 CXXFLAGS="-g"
3949 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3950 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3951 if test "${ac_cv_prog_cxx_g+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3962 main ()
3966 return 0;
3968 _ACEOF
3969 rm -f conftest.$ac_objext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971 (eval $ac_compile) 2>conftest.er1
3972 ac_status=$?
3973 grep -v '^ *+' conftest.er1 >conftest.err
3974 rm -f conftest.er1
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; } &&
3984 { ac_try='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_prog_cxx_g=yes
3991 else
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_cv_prog_cxx_g=no
3997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3999 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4000 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4001 if test "$ac_test_CXXFLAGS" = set; then
4002 CXXFLAGS=$ac_save_CXXFLAGS
4003 elif test $ac_cv_prog_cxx_g = yes; then
4004 if test "$GXX" = yes; then
4005 CXXFLAGS="-g -O2"
4006 else
4007 CXXFLAGS="-g"
4009 else
4010 if test "$GXX" = yes; then
4011 CXXFLAGS="-O2"
4012 else
4013 CXXFLAGS=
4016 for ac_declaration in \
4017 '' \
4018 'extern "C" void std::exit (int) throw (); using std::exit;' \
4019 'extern "C" void std::exit (int); using std::exit;' \
4020 'extern "C" void exit (int) throw ();' \
4021 'extern "C" void exit (int);' \
4022 'void exit (int);'
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h. */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_declaration
4031 #include <stdlib.h>
4033 main ()
4035 exit (42);
4037 return 0;
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042 (eval $ac_compile) 2>conftest.er1
4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } &&
4049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 (eval $ac_try) 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4062 else
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 continue
4068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 $ac_declaration
4077 main ()
4079 exit (42);
4081 return 0;
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 (eval $ac_try) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101 (eval $ac_try) 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 break
4106 else
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4112 done
4113 rm -f conftest*
4114 if test -n "$ac_declaration"; then
4115 echo '#ifdef __cplusplus' >>confdefs.h
4116 echo $ac_declaration >>confdefs.h
4117 echo '#endif' >>confdefs.h
4120 ac_ext=c
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 # We must set the default linker to the linker used by gcc for the correct
4128 # operation of libtool. If LD is not defined and we are using gcc, try to
4129 # set the LD default to the ld used by gcc.
4130 if test -z "$LD"; then
4131 if test "$GCC" = yes; then
4132 case $build in
4133 *-*-mingw*)
4134 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4136 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4137 esac
4138 case $gcc_prog_ld in
4139 # Accept absolute paths.
4140 [\\/]* | [A-Za-z]:[\\/]*)
4141 LD="$gcc_prog_ld" ;;
4142 esac
4149 if test -n "$ac_tool_prefix"; then
4150 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4151 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4152 echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_prog_GNATBIND+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157 if test -n "$GNATBIND"; then
4158 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4159 else
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4171 done
4172 done
4176 GNATBIND=$ac_cv_prog_GNATBIND
4177 if test -n "$GNATBIND"; then
4178 echo "$as_me:$LINENO: result: $GNATBIND" >&5
4179 echo "${ECHO_T}$GNATBIND" >&6
4180 else
4181 echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4186 if test -z "$ac_cv_prog_GNATBIND"; then
4187 ac_ct_GNATBIND=$GNATBIND
4188 # Extract the first word of "gnatbind", so it can be a program name with args.
4189 set dummy gnatbind; ac_word=$2
4190 echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 if test -n "$ac_ct_GNATBIND"; then
4196 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4212 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
4215 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4216 if test -n "$ac_ct_GNATBIND"; then
4217 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
4218 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
4219 else
4220 echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4224 GNATBIND=$ac_ct_GNATBIND
4225 else
4226 GNATBIND="$ac_cv_prog_GNATBIND"
4229 if test -n "$ac_tool_prefix"; then
4230 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4231 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4232 echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 if test -n "$GNATMAKE"; then
4238 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4251 done
4252 done
4256 GNATMAKE=$ac_cv_prog_GNATMAKE
4257 if test -n "$GNATMAKE"; then
4258 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4259 echo "${ECHO_T}$GNATMAKE" >&6
4260 else
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4266 if test -z "$ac_cv_prog_GNATMAKE"; then
4267 ac_ct_GNATMAKE=$GNATMAKE
4268 # Extract the first word of "gnatmake", so it can be a program name with args.
4269 set dummy gnatmake; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 if test -n "$ac_ct_GNATMAKE"; then
4276 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4292 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4295 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4296 if test -n "$ac_ct_GNATMAKE"; then
4297 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4298 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4299 else
4300 echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4304 GNATMAKE=$ac_ct_GNATMAKE
4305 else
4306 GNATMAKE="$ac_cv_prog_GNATMAKE"
4309 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4310 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4311 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 cat >conftest.adb <<EOF
4315 procedure conftest is begin null; end conftest;
4317 acx_cv_cc_gcc_supports_ada=no
4318 # There is a bug in old released versions of GCC which causes the
4319 # driver to exit successfully when the appropriate language module
4320 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4321 # Therefore we must check for the error message as well as an
4322 # unsuccessful exit.
4323 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4324 # given a .adb file, but produce no object file. So we must check
4325 # if an object file was really produced to guard against this.
4326 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4327 if test x"$errors" = x && test -f conftest.$ac_objext; then
4328 acx_cv_cc_gcc_supports_ada=yes
4330 rm -f conftest.*
4332 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4333 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4335 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4336 have_gnat=yes
4337 else
4338 have_gnat=no
4341 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4342 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4343 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 echo abfoo >t1
4347 echo cdfoo >t2
4348 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4349 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4350 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4352 else
4353 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4356 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4357 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4359 else
4360 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4363 rm t1 t2
4366 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4367 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4368 do_compare="$gcc_cv_prog_cmp_skip"
4372 # Check for GMP and MPFR
4373 gmplibs="-lmpfr -lgmp"
4374 gmpinc=
4375 have_gmp=no
4377 # Specify a location for mpfr
4378 # check for this first so it ends up on the link line before gmp.
4380 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4381 if test "${with_mpfr_dir+set}" = set; then
4382 withval="$with_mpfr_dir"
4383 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4384 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4385 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4386 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4387 { (exit 1); exit 1; }; }
4391 # Check whether --with-mpfr or --without-mpfr was given.
4392 if test "${with_mpfr+set}" = set; then
4393 withval="$with_mpfr"
4397 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4398 if test "${with_mpfr_include+set}" = set; then
4399 withval="$with_mpfr_include"
4403 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4404 if test "${with_mpfr_lib+set}" = set; then
4405 withval="$with_mpfr_lib"
4409 if test "x$with_mpfr" != x; then
4410 gmplibs="-L$with_mpfr/lib $gmplibs"
4411 gmpinc="-I$with_mpfr/include"
4413 if test "x$with_mpfr_include" != x; then
4414 gmpinc="-I$with_mpfr_include"
4416 if test "x$with_mpfr_lib" != x; then
4417 gmplibs="-L$with_mpfr_lib $gmplibs"
4419 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4420 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4421 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4422 # Do not test the mpfr version. Assume that it is sufficient, since
4423 # it is in the source tree, and the library has not been built yet
4424 # but it would be included on the link line in the version check below
4425 # hence making the test fail.
4426 have_gmp=yes
4429 # Specify a location for gmp
4431 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4432 if test "${with_gmp_dir+set}" = set; then
4433 withval="$with_gmp_dir"
4434 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4435 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4436 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4437 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4438 { (exit 1); exit 1; }; }
4442 # Check whether --with-gmp or --without-gmp was given.
4443 if test "${with_gmp+set}" = set; then
4444 withval="$with_gmp"
4448 # Check whether --with-gmp_include or --without-gmp_include was given.
4449 if test "${with_gmp_include+set}" = set; then
4450 withval="$with_gmp_include"
4454 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4455 if test "${with_gmp_lib+set}" = set; then
4456 withval="$with_gmp_lib"
4461 if test "x$with_gmp" != x; then
4462 gmplibs="-L$with_gmp/lib $gmplibs"
4463 gmpinc="-I$with_gmp/include $gmpinc"
4465 if test "x$with_gmp_include" != x; then
4466 gmpinc="-I$with_gmp_include $gmpinc"
4468 if test "x$with_gmp_lib" != x; then
4469 gmplibs="-L$with_gmp_lib $gmplibs"
4471 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4472 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4473 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4474 # Do not test the gmp version. Assume that it is sufficient, since
4475 # it is in the source tree, and the library has not been built yet
4476 # but it would be included on the link line in the version check below
4477 # hence making the test fail.
4478 have_gmp=yes
4481 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4482 have_gmp=yes
4483 saved_CFLAGS="$CFLAGS"
4484 CFLAGS="$CFLAGS $gmpinc"
4485 # Check GMP actually works
4486 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4487 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h. */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 #include "gmp.h"
4497 main ()
4500 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4501 choke me
4502 #endif
4505 return 0;
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4510 (eval $ac_compile) 2>conftest.er1
4511 ac_status=$?
4512 grep -v '^ *+' conftest.er1 >conftest.err
4513 rm -f conftest.er1
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 echo "$as_me:$LINENO: result: yes" >&5
4530 echo "${ECHO_T}yes" >&6
4531 else
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4535 echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6; have_gmp=no
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4540 if test x"$have_gmp" = xyes; then
4541 saved_LIBS="$LIBS"
4542 LIBS="$LIBS $gmplibs"
4543 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4544 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 #include <gmp.h>
4552 #include <mpfr.h>
4554 main ()
4557 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4558 choke me
4559 #endif
4560 mpfr_t n;
4561 mpfr_t x;
4562 int t;
4563 mpfr_init (n);
4564 mpfr_init (x);
4565 mpfr_atan2 (n, n, x, GMP_RNDN);
4566 mpfr_erfc (n, x, GMP_RNDN);
4567 mpfr_subnormalize (x, t, GMP_RNDN);
4570 return 0;
4572 _ACEOF
4573 rm -f conftest.$ac_objext conftest$ac_exeext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4575 (eval $ac_link) 2>conftest.er1
4576 ac_status=$?
4577 grep -v '^ *+' conftest.er1 >conftest.err
4578 rm -f conftest.er1
4579 cat conftest.err >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } &&
4582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584 (eval $ac_try) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; } &&
4588 { ac_try='test -s conftest$ac_exeext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 cat >conftest.$ac_ext <<_ACEOF
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #include <gmp.h>
4601 #include <mpfr.h>
4603 main ()
4606 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
4607 choke me
4608 #endif
4609 mpfr_t n; mpfr_init(n);
4612 return 0;
4614 _ACEOF
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4617 (eval $ac_link) 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } &&
4624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 (eval $ac_try) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; } &&
4630 { ac_try='test -s conftest$ac_exeext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632 (eval $ac_try) 2>&5
4633 ac_status=$?
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 echo "$as_me:$LINENO: result: yes" >&5
4637 echo "${ECHO_T}yes" >&6
4638 else
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4643 echo "${ECHO_T}buggy but acceptable" >&6
4645 rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; have_gmp=no
4654 rm -f conftest.err conftest.$ac_objext \
4655 conftest$ac_exeext conftest.$ac_ext
4656 LIBS="$saved_LIBS"
4658 CFLAGS="$saved_CFLAGS"
4660 if test x$have_gmp != xyes; then
4661 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4662 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4663 Copies of these libraries' source code can be found at their respective
4664 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4665 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4666 If you obtained GMP and/or MPFR from a vendor distribution package, make
4667 sure that you have installed both the libraries and the header files.
4668 They may be located in separate packages." >&5
4669 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
4670 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4671 Copies of these libraries' source code can be found at their respective
4672 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4673 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4674 If you obtained GMP and/or MPFR from a vendor distribution package, make
4675 sure that you have installed both the libraries and the header files.
4676 They may be located in separate packages." >&2;}
4677 { (exit 1); exit 1; }; }
4681 # Flags needed for both GMP and/or MPFR
4685 # By default, C is the only stage 1 language.
4686 stage1_languages=,c,
4688 # Figure out what language subdirectories are present.
4689 # Look if the user specified --enable-languages="..."; if not, use
4690 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4691 # go away some day.
4692 # NB: embedded tabs in this IF block -- do not untabify
4693 if test -d ${srcdir}/gcc; then
4694 if test x"${enable_languages+set}" != xset; then
4695 if test x"${LANGUAGES+set}" = xset; then
4696 enable_languages="${LANGUAGES}"
4697 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4698 else
4699 enable_languages=all
4701 else
4702 if test x"${enable_languages}" = x ||
4703 test x"${enable_languages}" = xyes;
4704 then
4705 echo configure.in: --enable-languages needs at least one language argument 1>&2
4706 exit 1
4709 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4711 # 'f95' is the old name for the 'fortran' language. We issue a warning
4712 # and make the substitution.
4713 case ,${enable_languages}, in
4714 *,f95,*)
4715 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4716 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4718 esac
4720 # First scan to see if an enabled language requires some other language.
4721 # We assume that a given config-lang.in will list all the language
4722 # front ends it requires, even if some are required indirectly.
4723 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4724 case ${lang_frag} in
4725 ..) ;;
4726 # The odd quoting in the next line works around
4727 # an apparent bug in bash 1.12 on linux.
4728 ${srcdir}/gcc/[*]/config-lang.in) ;;
4730 # From the config-lang.in, get $language, $lang_requires
4731 language=
4732 lang_requires=
4733 . ${lang_frag}
4734 for other in ${lang_requires} ; do
4735 case ,${enable_languages}, in
4736 *,$other,*) ;;
4737 *,all,*) ;;
4738 *,$language,*)
4739 echo " \`$other' language required by \`$language'; enabling" 1>&2
4740 enable_languages="${enable_languages},${other}"
4742 esac
4743 done
4745 esac
4746 done
4748 new_enable_languages=,c,
4749 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4750 potential_languages=,c,
4752 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4753 case ${lang_frag} in
4754 ..) ;;
4755 # The odd quoting in the next line works around
4756 # an apparent bug in bash 1.12 on linux.
4757 ${srcdir}/gcc/[*]/config-lang.in) ;;
4759 # From the config-lang.in, get $language, $target_libs,
4760 # $lang_dirs, $boot_language, and $build_by_default
4761 language=
4762 target_libs=
4763 lang_dirs=
4764 subdir_requires=
4765 boot_language=no
4766 build_by_default=yes
4767 . ${lang_frag}
4768 if test x${language} = x; then
4769 echo "${lang_frag} doesn't set \$language." 1>&2
4770 exit 1
4773 case ,${enable_languages}, in
4774 *,${language},*)
4775 # Language was explicitly selected; include it.
4776 add_this_lang=yes
4778 *,all,*)
4779 # 'all' was selected, select it if it is a default language
4780 add_this_lang=${build_by_default}
4783 add_this_lang=no
4785 esac
4787 # Disable languages that need other directories if these aren't available.
4788 for i in $subdir_requires; do
4789 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4790 case ,${enable_languages}, in
4791 *,${language},*)
4792 # Specifically requested language; tell them.
4793 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4794 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4795 { (exit 1); exit 1; }; }
4798 # Silently disable.
4799 add_this_lang=unsupported
4801 esac
4802 done
4804 # Disable Ada if no preexisting GNAT is available.
4805 case ,${enable_languages},:${language}:${have_gnat} in
4806 *,${language},*:ada:no)
4807 # Specifically requested language; tell them.
4808 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4809 echo "$as_me: error: GNAT is required to build $language" >&2;}
4810 { (exit 1); exit 1; }; }
4812 *:ada:no)
4813 # Silently disable.
4814 add_this_lang=unsupported
4816 esac
4818 # Disable a language that is unsupported by the target.
4819 case " $unsupported_languages " in
4820 *" $language "*)
4821 add_this_lang=unsupported
4823 esac
4825 case $add_this_lang in
4826 unsupported)
4827 # Remove language-dependent dirs.
4828 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4831 # Remove language-dependent dirs; still show language as supported.
4832 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4833 potential_languages="${potential_languages}${language},"
4835 yes)
4836 new_enable_languages="${new_enable_languages}${language},"
4837 potential_languages="${potential_languages}${language},"
4838 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4839 case ${boot_language} in
4840 yes)
4841 # Add to (comma-separated) list of stage 1 languages.
4842 stage1_languages="${stage1_languages}${language},"
4844 esac
4846 esac
4848 esac
4849 done
4851 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4852 if test "${enable_stage1_languages+set}" = set; then
4853 enableval="$enable_stage1_languages"
4854 case ,${enable_stage1_languages}, in
4855 ,no,|,,)
4856 # Set it to something that will have no effect in the loop below
4857 enable_stage1_languages=c ;;
4858 ,yes,)
4859 enable_stage1_languages=`echo $new_enable_languages | \
4860 sed -e "s/^,//" -e "s/,$//" ` ;;
4861 *,all,*)
4862 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4863 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4864 esac
4866 # Add "good" languages from enable_stage1_languages to stage1_languages,
4867 # while "bad" languages go in missing_languages. Leave no duplicates.
4868 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4869 case $potential_languages in
4870 *,$i,*)
4871 case $stage1_languages in
4872 *,$i,*) ;;
4873 *) stage1_languages="$stage1_languages$i," ;;
4874 esac ;;
4876 case $missing_languages in
4877 *,$i,*) ;;
4878 *) missing_languages="$missing_languages$i," ;;
4879 esac ;;
4880 esac
4881 done
4884 # Remove leading/trailing commas that were added for simplicity
4885 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4886 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4887 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4888 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4890 if test "x$missing_languages" != x; then
4891 { { echo "$as_me:$LINENO: error:
4892 The following requested languages could not be built: ${missing_languages}
4893 Supported languages are: ${potential_languages}" >&5
4894 echo "$as_me: error:
4895 The following requested languages could not be built: ${missing_languages}
4896 Supported languages are: ${potential_languages}" >&2;}
4897 { (exit 1); exit 1; }; }
4899 if test "x$new_enable_languages" != "x$enable_languages"; then
4900 echo The following languages will be built: ${new_enable_languages}
4901 enable_languages="$new_enable_languages"
4905 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
4908 # Handle --disable-<component> generically.
4909 for dir in $configdirs $build_configdirs $target_configdirs ; do
4910 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4911 varname=`echo $dirname | sed -e s/+/_/g`
4912 if eval test x\${enable_${varname}} "=" xno ; then
4913 noconfigdirs="$noconfigdirs $dir"
4915 done
4917 # Check for Boehm's garbage collector
4918 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4919 if test "${enable_objc_gc+set}" = set; then
4920 enableval="$enable_objc_gc"
4921 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4922 *,objc,*:*:yes:*target-boehm-gc*)
4923 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4924 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4925 { (exit 1); exit 1; }; }
4927 esac
4930 # Make sure we only build Boehm's garbage collector if required.
4931 case ,${enable_languages},:${enable_objc_gc} in
4932 *,objc,*:yes)
4933 # Keep target-boehm-gc if requested for Objective-C.
4936 # Otherwise remove target-boehm-gc depending on target-libjava.
4937 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4938 noconfigdirs="$noconfigdirs target-boehm-gc"
4941 esac
4943 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4944 # $build_configdirs and $target_configdirs.
4945 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4947 notsupp=""
4948 for dir in . $skipdirs $noconfigdirs ; do
4949 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4950 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4951 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4952 if test -r $srcdir/$dirname/configure ; then
4953 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4954 true
4955 else
4956 notsupp="$notsupp $dir"
4960 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4961 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4962 if test -r $srcdir/$dirname/configure ; then
4963 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4964 true
4965 else
4966 notsupp="$notsupp $dir"
4970 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4971 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4972 if test -r $srcdir/$dirname/configure ; then
4973 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4974 true
4975 else
4976 notsupp="$notsupp $dir"
4980 done
4982 # Sometimes the tools are distributed with libiberty but with no other
4983 # libraries. In that case, we don't want to build target-libiberty.
4984 # Don't let libgcc imply libiberty either.
4985 if test -n "${target_configdirs}" ; then
4986 libgcc=
4987 others=
4988 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4989 if test "$i" = "libgcc"; then
4990 libgcc=target-libgcc
4991 elif test "$i" != "libiberty" ; then
4992 if test -r $srcdir/$i/configure ; then
4993 others=yes;
4994 break;
4997 done
4998 if test -z "${others}" ; then
4999 target_configdirs=$libgcc
5003 # Quietly strip out all directories which aren't configurable in this tree.
5004 # This relies on all configurable subdirectories being autoconfiscated, which
5005 # is now the case.
5006 build_configdirs_all="$build_configdirs"
5007 build_configdirs=
5008 for i in ${build_configdirs_all} ; do
5009 j=`echo $i | sed -e s/build-//g`
5010 if test -f ${srcdir}/$j/configure ; then
5011 build_configdirs="${build_configdirs} $i"
5013 done
5015 configdirs_all="$configdirs"
5016 configdirs=
5017 for i in ${configdirs_all} ; do
5018 if test -f ${srcdir}/$i/configure ; then
5019 configdirs="${configdirs} $i"
5021 done
5023 target_configdirs_all="$target_configdirs"
5024 target_configdirs=
5025 for i in ${target_configdirs_all} ; do
5026 j=`echo $i | sed -e s/target-//g`
5027 if test -f ${srcdir}/$j/configure ; then
5028 target_configdirs="${target_configdirs} $i"
5030 done
5032 # Produce a warning message for the subdirs we can't configure.
5033 # This isn't especially interesting in the Cygnus tree, but in the individual
5034 # FSF releases, it's important to let people know when their machine isn't
5035 # supported by the one or two programs in a package.
5037 if test -n "${notsupp}" && test -z "${norecursion}" ; then
5038 # If $appdirs is non-empty, at least one of those directories must still
5039 # be configured, or we error out. (E.g., if the gas release supports a
5040 # specified target in some subdirs but not the gas subdir, we shouldn't
5041 # pretend that all is well.)
5042 if test -n "$appdirs" ; then
5043 for dir in $appdirs ; do
5044 if test -r $dir/Makefile.in ; then
5045 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5046 appdirs=""
5047 break
5049 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
5050 appdirs=""
5051 break
5054 done
5055 if test -n "$appdirs" ; then
5056 echo "*** This configuration is not supported by this package." 1>&2
5057 exit 1
5060 # Okay, some application will build, or we don't care to check. Still
5061 # notify of subdirs not getting built.
5062 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5063 echo " ${notsupp}" 1>&2
5064 echo " (Any other directories should still work fine.)" 1>&2
5067 case "$host" in
5068 *msdosdjgpp*)
5069 enable_gdbtk=no ;;
5070 esac
5072 # To find our prefix, in gcc_cv_tool_prefix.
5074 # The user is always right.
5075 if test "${PATH_SEPARATOR+set}" != set; then
5076 echo "#! /bin/sh" >conf$$.sh
5077 echo "exit 0" >>conf$$.sh
5078 chmod +x conf$$.sh
5079 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5080 PATH_SEPARATOR=';'
5081 else
5082 PATH_SEPARATOR=:
5084 rm -f conf$$.sh
5089 if test "x$exec_prefix" = xNONE; then
5090 if test "x$prefix" = xNONE; then
5091 gcc_cv_tool_prefix=$ac_default_prefix
5092 else
5093 gcc_cv_tool_prefix=$prefix
5095 else
5096 gcc_cv_tool_prefix=$exec_prefix
5099 # If there is no compiler in the tree, use the PATH only. In any
5100 # case, if there is no compiler in the tree nobody should use
5101 # AS_FOR_TARGET and LD_FOR_TARGET.
5102 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5103 gcc_version=`cat $srcdir/gcc/BASE-VER`
5104 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5105 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5106 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5107 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5108 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5109 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5110 else
5111 gcc_cv_tool_dirs=
5114 if test x$build = x$target && test -n "$md_exec_prefix"; then
5115 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5120 copy_dirs=
5123 # Check whether --with-build-sysroot or --without-build-sysroot was given.
5124 if test "${with_build_sysroot+set}" = set; then
5125 withval="$with_build_sysroot"
5126 if test x"$withval" != x ; then
5127 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5129 else
5130 SYSROOT_CFLAGS_FOR_TARGET=
5135 # Check whether --with-debug-prefix-map or --without-debug-prefix-map was given.
5136 if test "${with_debug_prefix_map+set}" = set; then
5137 withval="$with_debug_prefix_map"
5138 if test x"$withval" != x; then
5139 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5140 for debug_map in $withval; do
5141 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
5142 done
5144 else
5145 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5149 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
5150 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
5151 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
5152 # We want to ensure that TARGET libraries (which we know are built with
5153 # gcc) are built with "-O2 -g", so include those options when setting
5154 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
5155 if test "x$CFLAGS_FOR_TARGET" = x; then
5156 CFLAGS_FOR_TARGET=$CFLAGS
5157 case " $CFLAGS " in
5158 *" -O2 "*) ;;
5159 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
5160 esac
5161 case " $CFLAGS " in
5162 *" -g "* | *" -g3 "*) ;;
5163 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
5164 esac
5168 if test "x$CXXFLAGS_FOR_TARGET" = x; then
5169 CXXFLAGS_FOR_TARGET=$CXXFLAGS
5170 case " $CXXFLAGS " in
5171 *" -O2 "*) ;;
5172 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
5173 esac
5174 case " $CXXFLAGS " in
5175 *" -g "* | *" -g3 "*) ;;
5176 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
5177 esac
5181 # Handle --with-headers=XXX. If the value is not "yes", the contents of
5182 # the named directory are copied to $(tooldir)/sys-include.
5183 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
5184 if test x${is_cross_compiler} = xno ; then
5185 echo 1>&2 '***' --with-headers is only supported when cross compiling
5186 exit 1
5188 if test x"${with_headers}" != xyes ; then
5189 x=${gcc_cv_tool_prefix}
5190 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
5194 # Handle --with-libs=XXX. If the value is not "yes", the contents of
5195 # the name directories are copied to $(tooldir)/lib. Multiple directories
5196 # are permitted.
5197 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
5198 if test x${is_cross_compiler} = xno ; then
5199 echo 1>&2 '***' --with-libs is only supported when cross compiling
5200 exit 1
5202 if test x"${with_libs}" != xyes ; then
5203 # Copy the libraries in reverse order, so that files in the first named
5204 # library override files in subsequent libraries.
5205 x=${gcc_cv_tool_prefix}
5206 for l in ${with_libs}; do
5207 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
5208 done
5212 # Set with_gnu_as and with_gnu_ld as appropriate.
5214 # This is done by determining whether or not the appropriate directory
5215 # is available, and by checking whether or not specific configurations
5216 # have requested that this magic not happen.
5218 # The command line options always override the explicit settings in
5219 # configure.in, and the settings in configure.in override this magic.
5221 # If the default for a toolchain is to use GNU as and ld, and you don't
5222 # want to do that, then you should use the --without-gnu-as and
5223 # --without-gnu-ld options for the configure script.
5225 if test x${use_gnu_as} = x &&
5226 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
5227 with_gnu_as=yes
5228 extra_host_args="$extra_host_args --with-gnu-as"
5231 if test x${use_gnu_ld} = x &&
5232 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
5233 with_gnu_ld=yes
5234 extra_host_args="$extra_host_args --with-gnu-ld"
5237 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
5238 # can detect this case.
5240 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
5241 with_newlib=yes
5242 extra_host_args="$extra_host_args --with-newlib"
5245 # Handle ${copy_dirs}
5246 set fnord ${copy_dirs}
5247 shift
5248 while test $# != 0 ; do
5249 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
5251 else
5252 echo Copying $1 to $2
5254 # Use the install script to create the directory and all required
5255 # parent directories.
5256 if test -d $2 ; then
5258 else
5259 echo >config.temp
5260 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
5263 # Copy the directory, assuming we have tar.
5264 # FIXME: Should we use B in the second tar? Not all systems support it.
5265 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
5267 # It is the responsibility of the user to correctly adjust all
5268 # symlinks. If somebody can figure out how to handle them correctly
5269 # here, feel free to add the code.
5271 echo $1 > $2/COPIED
5273 shift; shift
5274 done
5276 # Determine a target-dependent exec_prefix that the installed
5277 # gcc will search in. Keep this list sorted by triplet, with
5278 # the *-*-osname triplets last.
5279 md_exec_prefix=
5280 case "${target}" in
5281 alpha*-*-*vms*)
5282 md_exec_prefix=/gnu/lib/gcc-lib
5284 i[34567]86-pc-msdosdjgpp*)
5285 md_exec_prefix=/dev/env/DJDIR/bin
5287 i[34567]86-*-sco3.2v5*)
5288 if test $with_gnu_as = yes; then
5289 md_exec_prefix=/usr/gnu/bin
5290 else
5291 md_exec_prefix=/usr/ccs/bin/elf
5295 mn10300-*-* | \
5296 powerpc-*-chorusos* | \
5297 powerpc*-*-eabi* | \
5298 powerpc*-*-sysv* | \
5299 powerpc*-*-kaos* | \
5300 s390x-ibm-tpf*)
5301 md_exec_prefix=/usr/ccs/bin
5303 sparc64-*-elf*)
5305 v850*-*-*)
5306 md_exec_prefix=/usr/ccs/bin
5308 xtensa*-*-elf*)
5311 *-*-beos* | \
5312 *-*-elf* | \
5313 *-*-hpux* | \
5314 *-*-netware* | \
5315 *-*-nto-qnx* | \
5316 *-*-rtems* | \
5317 *-*-solaris2* | \
5318 *-*-sysv[45]* | \
5319 *-*-vxworks* | \
5320 *-wrs-windiss)
5321 md_exec_prefix=/usr/ccs/bin
5323 esac
5325 extra_arflags_for_target=
5326 extra_nmflags_for_target=
5327 extra_ranlibflags_for_target=
5328 target_makefile_frag=/dev/null
5329 case "${target}" in
5330 mep*-*-*)
5331 target_makefile_frag="config/mt-mep"
5333 spu-*-*)
5334 target_makefile_frag="config/mt-spu"
5336 mips*-sde-elf*)
5337 target_makefile_frag="config/mt-sde"
5339 mipsisa*-*-elfoabi*)
5340 target_makefile_frag="config/mt-mips-elfoabi"
5342 *-*-netware*)
5343 target_makefile_frag="config/mt-netware"
5345 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5346 target_makefile_frag="config/mt-gnu"
5348 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5349 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5350 # commands to handle both 32-bit and 64-bit objects. These flags are
5351 # harmless if we're using GNU nm or ar.
5352 extra_arflags_for_target=" -X32_64"
5353 extra_nmflags_for_target=" -B -X32_64"
5355 *-*-darwin*)
5356 # ranlib from Darwin requires the -c flag to look at common symbols.
5357 extra_ranlibflags_for_target=" -c"
5359 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5360 target_makefile_frag="config/mt-wince"
5362 esac
5364 alphaieee_frag=/dev/null
5365 case $target in
5366 alpha*-*-*)
5367 # This just makes sure to use the -mieee option to build target libs.
5368 # This should probably be set individually by each library.
5369 alphaieee_frag="config/mt-alphaieee"
5371 esac
5373 # If --enable-target-optspace always use -Os instead of -O2 to build
5374 # the target libraries, similarly if it is not specified, use -Os
5375 # on selected platforms.
5376 ospace_frag=/dev/null
5377 case "${enable_target_optspace}:${target}" in
5378 yes:*)
5379 ospace_frag="config/mt-ospace"
5381 :d30v-*)
5382 ospace_frag="config/mt-d30v"
5384 :m32r-* | :d10v-* | :fr30-*)
5385 ospace_frag="config/mt-ospace"
5387 no:* | :*)
5390 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5392 esac
5394 # Default to using --with-stabs for certain targets.
5395 if test x${with_stabs} = x ; then
5396 case "${target}" in
5397 mips*-*-irix[56]*)
5399 mips*-*-* | alpha*-*-osf*)
5400 with_stabs=yes;
5401 extra_host_args="${extra_host_args} --with-stabs"
5403 esac
5406 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5407 # them automatically.
5408 case "${host}" in
5409 hppa*64*-*-hpux11*)
5410 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5412 esac
5414 # Some systems (e.g., one of the i386-aix systems the gas testers are
5415 # using) don't handle "\$" correctly, so don't use it here.
5416 tooldir='${exec_prefix}'/${target_noncanonical}
5417 build_tooldir=${tooldir}
5419 # Create a .gdbinit file which runs the one in srcdir
5420 # and tells GDB to look there for source files.
5422 if test -r ${srcdir}/.gdbinit ; then
5423 case ${srcdir} in
5424 .) ;;
5425 *) cat > ./.gdbinit <<EOF
5426 # ${NO_EDIT}
5427 dir ${srcdir}
5428 dir .
5429 source ${srcdir}/.gdbinit
5432 esac
5435 # Make sure that the compiler is able to generate an executable. If it
5436 # can't, we are probably in trouble. We don't care whether we can run the
5437 # executable--we might be using a cross compiler--we only care whether it
5438 # can be created. At this point the main configure script has set CC.
5439 we_are_ok=no
5440 echo "int main () { return 0; }" > conftest.c
5441 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5442 if test $? = 0 ; then
5443 if test -s conftest || test -s conftest.exe ; then
5444 we_are_ok=yes
5447 case $we_are_ok in
5449 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5450 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5451 rm -f conftest*
5452 exit 1
5454 esac
5455 rm -f conftest*
5457 # The Solaris /usr/ucb/cc compiler does not appear to work.
5458 case "${host}" in
5459 sparc-sun-solaris2*)
5460 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5461 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5462 could_use=
5463 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5464 if test -d /opt/cygnus/bin ; then
5465 if test "$could_use" = "" ; then
5466 could_use="/opt/cygnus/bin"
5467 else
5468 could_use="$could_use or /opt/cygnus/bin"
5471 if test "$could_use" = "" ; then
5472 echo "Warning: compilation may fail because you're using"
5473 echo "/usr/ucb/cc. You should change your PATH or CC "
5474 echo "variable and rerun configure."
5475 else
5476 echo "Warning: compilation may fail because you're using"
5477 echo "/usr/ucb/cc, when you should use the C compiler from"
5478 echo "$could_use. You should change your"
5479 echo "PATH or CC variable and rerun configure."
5483 esac
5485 case "${host}" in
5486 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5487 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5488 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5489 esac
5491 # Record target_configdirs and the configure arguments for target and
5492 # build configuration in Makefile.
5493 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5494 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5496 # Determine whether gdb needs tk/tcl or not.
5497 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5498 # and in that case we want gdb to be built without tk. Ugh!
5499 # In fact I believe gdb is the *only* package directly dependent on tk,
5500 # so we should be able to put the 'maybe's in unconditionally and
5501 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5502 # 100% sure that that's safe though.
5504 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5505 case "$enable_gdbtk" in
5507 GDB_TK="" ;;
5508 yes)
5509 GDB_TK="${gdb_tk}" ;;
5511 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5512 # distro. Eventually someone will fix this and move Insight, nee
5513 # gdbtk to a separate directory.
5514 if test -d ${srcdir}/gdb/gdbtk ; then
5515 GDB_TK="${gdb_tk}"
5516 else
5517 GDB_TK=""
5520 esac
5521 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5522 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5524 # Strip out unwanted targets.
5526 # While at that, we remove Makefiles if we were started for recursive
5527 # configuration, so that the top-level Makefile reconfigures them,
5528 # like we used to do when configure itself was recursive.
5530 # Loop over modules. $extrasub must be used with care, limiting as
5531 # much as possible the usage of range addresses. That's because autoconf
5532 # splits the sed script to overcome limits in the number of commands,
5533 # and relying on carefully-timed sed passes may turn out to be very hard
5534 # to maintain later. In this particular case, you just have to be careful
5535 # not to nest @if/@endif pairs, because configure will not warn you at all.
5537 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5538 if test "${enable_bootstrap+set}" = set; then
5539 enableval="$enable_bootstrap"
5541 else
5542 enable_bootstrap=default
5545 # Issue errors and warnings for invalid/strange bootstrap combinations.
5546 case "$configdirs" in
5547 *gcc*) have_compiler=yes ;;
5548 *) have_compiler=no ;;
5549 esac
5551 case "$have_compiler:$host:$target:$enable_bootstrap" in
5552 *:*:*:no) ;;
5554 # Default behavior. Enable bootstrap if we have a compiler
5555 # and we are in a native configuration.
5556 yes:$build:$build:default)
5557 enable_bootstrap=yes ;;
5559 *:*:*:default)
5560 enable_bootstrap=no ;;
5562 # We have a compiler and we are in a native configuration, bootstrap is ok
5563 yes:$build:$build:yes)
5566 # Other configurations, but we have a compiler. Assume the user knows
5567 # what he's doing.
5568 yes:*:*:yes)
5569 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5570 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5573 # No compiler: if they passed --enable-bootstrap explicitly, fail
5574 no:*:*:yes)
5575 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5576 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5577 { (exit 1); exit 1; }; } ;;
5579 # Fail if wrong command line
5581 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5582 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5583 { (exit 1); exit 1; }; }
5585 esac
5587 # Adjust the toplevel makefile according to whether bootstrap was selected.
5588 case "$enable_bootstrap" in
5589 yes)
5590 bootstrap_suffix=bootstrap ;;
5592 bootstrap_suffix=no-bootstrap ;;
5593 esac
5595 for module in ${build_configdirs} ; do
5596 if test -z "${no_recursion}" \
5597 && test -f ${build_subdir}/${module}/Makefile; then
5598 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5599 rm -f ${build_subdir}/${module}/Makefile
5601 extrasub="$extrasub
5602 /^@if build-$module\$/d
5603 /^@endif build-$module\$/d
5604 /^@if build-$module-$bootstrap_suffix\$/d
5605 /^@endif build-$module-$bootstrap_suffix\$/d"
5606 done
5607 for module in ${configdirs} ; do
5608 if test -z "${no_recursion}"; then
5609 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5610 if test -f ${file}; then
5611 echo 1>&2 "*** removing ${file} to force reconfigure"
5612 rm -f ${file}
5614 done
5616 extrasub="$extrasub
5617 /^@if $module\$/d
5618 /^@endif $module\$/d
5619 /^@if $module-$bootstrap_suffix\$/d
5620 /^@endif $module-$bootstrap_suffix\$/d"
5621 done
5622 for module in ${target_configdirs} ; do
5623 if test -z "${no_recursion}" \
5624 && test -f ${target_subdir}/${module}/Makefile; then
5625 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5626 rm -f ${target_subdir}/${module}/Makefile
5628 extrasub="$extrasub
5629 /^@if target-$module\$/d
5630 /^@endif target-$module\$/d
5631 /^@if target-$module-$bootstrap_suffix\$/d
5632 /^@endif target-$module-$bootstrap_suffix\$/d"
5633 done
5635 extrasub="$extrasub
5636 /^@if /,/^@endif /d"
5638 # Create the serialization dependencies. This uses a temporary file.
5640 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5641 if test "${enable_serial_configure+set}" = set; then
5642 enableval="$enable_serial_configure"
5646 case ${enable_serial_configure} in
5647 yes)
5648 enable_serial_build_configure=yes
5649 enable_serial_host_configure=yes
5650 enable_serial_target_configure=yes
5652 esac
5654 # These force 'configure's to be done one at a time, to avoid problems
5655 # with contention over a shared config.cache.
5656 rm -f serdep.tmp
5657 echo '# serdep.tmp' > serdep.tmp
5658 olditem=
5659 test "x${enable_serial_build_configure}" = xyes &&
5660 for item in ${build_configdirs} ; do
5661 case ${olditem} in
5662 "") ;;
5663 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5664 esac
5665 olditem=${item}
5666 done
5667 olditem=
5668 test "x${enable_serial_host_configure}" = xyes &&
5669 for item in ${configdirs} ; do
5670 case ${olditem} in
5671 "") ;;
5672 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5673 esac
5674 olditem=${item}
5675 done
5676 olditem=
5677 test "x${enable_serial_target_configure}" = xyes &&
5678 for item in ${target_configdirs} ; do
5679 case ${olditem} in
5680 "") ;;
5681 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5682 esac
5683 olditem=${item}
5684 done
5685 serialization_dependencies=serdep.tmp
5688 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5689 # target, nonopt, and variable assignments. These are the ones we
5690 # might not want to pass down to subconfigures. Also strip
5691 # program-prefix, program-suffix, and program-transform-name, so that
5692 # we can pass down a consistent program-transform-name.
5693 baseargs=
5694 keep_next=no
5695 skip_next=no
5696 eval "set -- $ac_configure_args"
5697 for ac_arg
5699 if test X"$skip_next" = X"yes"; then
5700 skip_next=no
5701 continue
5703 if test X"$keep_next" = X"yes"; then
5704 case $ac_arg in
5705 *\'*)
5706 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5707 esac
5708 baseargs="$baseargs '$ac_arg'"
5709 keep_next=no
5710 continue
5713 # Handle separated arguments. Based on the logic generated by
5714 # autoconf 2.59.
5715 case $ac_arg in
5716 *=* | --config-cache | -C | -disable-* | --disable-* \
5717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5719 | -with-* | --with-* | -without-* | --without-* | --x)
5720 separate_arg=no
5723 separate_arg=yes
5726 separate_arg=no
5728 esac
5730 case "$ac_arg" in
5731 --no*)
5732 continue
5734 --c* | \
5735 --sr* | \
5736 --ho* | \
5737 --bu* | \
5738 --t* | \
5739 --program-* | \
5740 -cache_file* | \
5741 -srcdir* | \
5742 -host* | \
5743 -build* | \
5744 -target* | \
5745 -program-prefix* | \
5746 -program-suffix* | \
5747 -program-transform-name* )
5748 skip_next=$separate_arg
5749 continue
5752 # An option. Add it.
5753 case $ac_arg in
5754 *\'*)
5755 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5756 esac
5757 baseargs="$baseargs '$ac_arg'"
5758 keep_next=$separate_arg
5761 # Either a variable assignment, or a nonopt (triplet). Don't
5762 # pass it down; let the Makefile handle this.
5763 continue
5765 esac
5766 done
5767 # Remove the initial space we just introduced and, as these will be
5768 # expanded by make, quote '$'.
5769 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5771 # Add in --program-transform-name, after --program-prefix and
5772 # --program-suffix have been applied to it. Autoconf has already
5773 # doubled dollar signs and backslashes in program_transform_name; we want
5774 # the backslashes un-doubled, and then the entire thing wrapped in single
5775 # quotes, because this will be expanded first by make and then by the shell.
5776 # Also, because we want to override the logic in subdir configure scripts to
5777 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5778 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5779 ${program_transform_name}
5780 EOF_SED
5781 gcc_transform_name=`cat conftestsed.out`
5782 rm -f conftestsed.out
5783 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5784 if test "$silent" = yes; then
5785 baseargs="$baseargs --silent"
5788 # For the build-side libraries, we just need to pretend we're native,
5789 # and not use the same cache file. Multilibs are neither needed nor
5790 # desired.
5791 build_configargs="--cache-file=../config.cache ${baseargs}"
5793 # For host modules, accept cache file option, or specification as blank.
5794 case "${cache_file}" in
5795 "") # empty
5796 cache_file_option="" ;;
5797 /* | [A-Za-z]:[\\/]* ) # absolute path
5798 cache_file_option="--cache-file=${cache_file}" ;;
5799 *) # relative path
5800 cache_file_option="--cache-file=../${cache_file}" ;;
5801 esac
5803 # Host dirs don't like to share a cache file either, horribly enough.
5804 # This seems to be due to autoconf 2.5x stupidity.
5805 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5807 target_configargs=${baseargs}
5809 # Passing a --with-cross-host argument lets the target libraries know
5810 # whether they are being built with a cross-compiler or being built
5811 # native. However, it would be better to use other mechanisms to make the
5812 # sorts of decisions they want to make on this basis. Please consider
5813 # this option to be deprecated. FIXME.
5814 if test x${is_cross_compiler} = xyes ; then
5815 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5818 # Default to --enable-multilib.
5819 if test x${enable_multilib} = x ; then
5820 target_configargs="--enable-multilib ${target_configargs}"
5823 # Pass --with-newlib if appropriate. Note that target_configdirs has
5824 # changed from the earlier setting of with_newlib.
5825 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5826 target_configargs="--with-newlib ${target_configargs}"
5829 # Different target subdirs use different values of certain variables
5830 # (notably CXX). Worse, multilibs use *lots* of different values.
5831 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5832 # it doesn't automatically accept command-line overrides of them.
5833 # This means it's not safe for target subdirs to share a cache file,
5834 # which is disgusting, but there you have it. Hopefully this can be
5835 # fixed in future. It's still worthwhile to use a cache file for each
5836 # directory. I think.
5838 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5839 # We need to pass --target, as newer autoconf's requires consistency
5840 # for target_alias and gcc doesn't manage it consistently.
5841 target_configargs="--cache-file=./config.cache ${target_configargs}"
5843 FLAGS_FOR_TARGET=
5844 case " $target_configdirs " in
5845 *" newlib "*)
5846 case " $target_configargs " in
5847 *" --with-newlib "*)
5848 case "$target" in
5849 *-cygwin*)
5850 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' ;;
5851 esac
5853 # If we're not building GCC, don't discard standard headers.
5854 if test -d ${srcdir}/gcc; then
5855 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5857 if test "${build}" != "${host}"; then
5858 # On Canadian crosses, CC_FOR_TARGET will have already been set
5859 # by `configure', so we won't have an opportunity to add -Bgcc/
5860 # to it. This is right: we don't want to search that directory
5861 # for binaries, but we want the header files in there, so add
5862 # them explicitly.
5863 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5865 # Someone might think of using the pre-installed headers on
5866 # Canadian crosses, in case the installed compiler is not fully
5867 # compatible with the compiler being built. In this case, it
5868 # would be better to flag an error than risking having
5869 # incompatible object files being constructed. We can't
5870 # guarantee that an error will be flagged, but let's hope the
5871 # compiler will do it, when presented with incompatible header
5872 # files.
5876 case "${target}-${is_cross_compiler}" in
5877 i[3456789]86-*-linux*-no)
5878 # Here host == target, so we don't need to build gcc,
5879 # so we don't want to discard standard headers.
5880 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5883 # If we're building newlib, use its generic headers last, but search
5884 # for any libc-related directories first (so make it the last -B
5885 # switch).
5886 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5888 # If we're building libgloss, find the startup file, simulator library
5889 # and linker script.
5890 case " $target_configdirs " in
5891 *" libgloss "*)
5892 # Look for startup file, simulator library and maybe linker script.
5893 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
5894 # Look for libnosys.a in case the target needs it.
5895 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5896 # Most targets have the linker script in the source directory.
5897 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
5899 esac
5901 esac
5903 esac
5905 esac
5906 case "$target" in
5907 *-mingw*)
5908 # Can't be handled as Cygwin above since Mingw does not use newlib.
5909 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' ;;
5910 esac
5912 # Allow the user to override the flags for
5913 # our build compiler if desired.
5914 if test x"${build}" = x"${host}" ; then
5915 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5916 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
5917 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
5920 # On Canadian crosses, we'll be searching the right directories for
5921 # the previously-installed cross compiler, so don't bother to add
5922 # flags for directories within the install tree of the compiler
5923 # being built; programs in there won't even run.
5924 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5925 # Search for pre-installed headers if nothing else fits.
5926 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5929 if test "x${use_gnu_ld}" = x &&
5930 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5931 # Arrange for us to find uninstalled linker scripts.
5932 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5935 # Search for other target-specific linker scripts and such.
5936 case "${target}" in
5937 mep*)
5938 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5940 esac
5942 # Makefile fragments.
5943 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5945 eval fragval=\$$frag
5946 if test $fragval != /dev/null; then
5947 eval $frag=${srcdir}/$fragval
5949 done
5955 # Miscellanea: directories, flags, etc.
5963 # Build module lists & subconfigure args.
5967 # Host module lists & subconfigure args.
5971 # Target module lists & subconfigure args.
5975 # Build tools.
5993 # Generate default definitions for YACC, M4, LEX and other programs that run
5994 # on the build machine. These are used if the Makefile can't locate these
5995 # programs in objdir.
5996 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5998 for ac_prog in 'bison -y' byacc yacc
6000 # Extract the first word of "$ac_prog", so it can be a program name with args.
6001 set dummy $ac_prog; ac_word=$2
6002 echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004 if test "${ac_cv_prog_YACC+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 if test -n "$YACC"; then
6008 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_YACC="$ac_prog"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6021 done
6022 done
6026 YACC=$ac_cv_prog_YACC
6027 if test -n "$YACC"; then
6028 echo "$as_me:$LINENO: result: $YACC" >&5
6029 echo "${ECHO_T}$YACC" >&6
6030 else
6031 echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6
6035 test -n "$YACC" && break
6036 done
6037 test -n "$YACC" || YACC="$MISSING bison -y"
6039 case " $build_configdirs " in
6040 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6041 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6042 esac
6044 for ac_prog in bison
6046 # Extract the first word of "$ac_prog", so it can be a program name with args.
6047 set dummy $ac_prog; ac_word=$2
6048 echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6050 if test "${ac_cv_prog_BISON+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 if test -n "$BISON"; then
6054 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063 ac_cv_prog_BISON="$ac_prog"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6067 done
6068 done
6072 BISON=$ac_cv_prog_BISON
6073 if test -n "$BISON"; then
6074 echo "$as_me:$LINENO: result: $BISON" >&5
6075 echo "${ECHO_T}$BISON" >&6
6076 else
6077 echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6081 test -n "$BISON" && break
6082 done
6083 test -n "$BISON" || BISON="$MISSING bison"
6085 case " $build_configdirs " in
6086 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6087 esac
6089 for ac_prog in gm4 gnum4 m4
6091 # Extract the first word of "$ac_prog", so it can be a program name with args.
6092 set dummy $ac_prog; ac_word=$2
6093 echo "$as_me:$LINENO: checking for $ac_word" >&5
6094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6095 if test "${ac_cv_prog_M4+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 else
6098 if test -n "$M4"; then
6099 ac_cv_prog_M4="$M4" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108 ac_cv_prog_M4="$ac_prog"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6112 done
6113 done
6117 M4=$ac_cv_prog_M4
6118 if test -n "$M4"; then
6119 echo "$as_me:$LINENO: result: $M4" >&5
6120 echo "${ECHO_T}$M4" >&6
6121 else
6122 echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6
6126 test -n "$M4" && break
6127 done
6128 test -n "$M4" || M4="$MISSING m4"
6130 case " $build_configdirs " in
6131 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
6132 esac
6134 for ac_prog in flex lex
6136 # Extract the first word of "$ac_prog", so it can be a program name with args.
6137 set dummy $ac_prog; ac_word=$2
6138 echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6140 if test "${ac_cv_prog_LEX+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143 if test -n "$LEX"; then
6144 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153 ac_cv_prog_LEX="$ac_prog"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6157 done
6158 done
6162 LEX=$ac_cv_prog_LEX
6163 if test -n "$LEX"; then
6164 echo "$as_me:$LINENO: result: $LEX" >&5
6165 echo "${ECHO_T}$LEX" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6171 test -n "$LEX" && break
6172 done
6173 test -n "$LEX" || LEX="$MISSING flex"
6175 case " $build_configdirs " in
6176 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6177 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
6178 esac
6180 for ac_prog in flex
6182 # Extract the first word of "$ac_prog", so it can be a program name with args.
6183 set dummy $ac_prog; ac_word=$2
6184 echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6186 if test "${ac_cv_prog_FLEX+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189 if test -n "$FLEX"; then
6190 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6199 ac_cv_prog_FLEX="$ac_prog"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6203 done
6204 done
6208 FLEX=$ac_cv_prog_FLEX
6209 if test -n "$FLEX"; then
6210 echo "$as_me:$LINENO: result: $FLEX" >&5
6211 echo "${ECHO_T}$FLEX" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6
6217 test -n "$FLEX" && break
6218 done
6219 test -n "$FLEX" || FLEX="$MISSING flex"
6221 case " $build_configdirs " in
6222 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
6223 esac
6225 for ac_prog in makeinfo
6227 # Extract the first word of "$ac_prog", so it can be a program name with args.
6228 set dummy $ac_prog; ac_word=$2
6229 echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6231 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 if test -n "$MAKEINFO"; then
6235 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_MAKEINFO="$ac_prog"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6248 done
6249 done
6253 MAKEINFO=$ac_cv_prog_MAKEINFO
6254 if test -n "$MAKEINFO"; then
6255 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
6256 echo "${ECHO_T}$MAKEINFO" >&6
6257 else
6258 echo "$as_me:$LINENO: result: no" >&5
6259 echo "${ECHO_T}no" >&6
6262 test -n "$MAKEINFO" && break
6263 done
6264 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
6266 case " $build_configdirs " in
6267 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
6270 # For an installed makeinfo, we require it to be from texinfo 4.6 or
6271 # higher, else we use the "missing" dummy.
6272 if ${MAKEINFO} --version \
6273 | egrep 'texinfo[^0-9]*(4\.([6-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
6275 else
6276 MAKEINFO="$MISSING makeinfo"
6280 esac
6282 # FIXME: expect and dejagnu may become build tools?
6284 for ac_prog in expect
6286 # Extract the first word of "$ac_prog", so it can be a program name with args.
6287 set dummy $ac_prog; ac_word=$2
6288 echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290 if test "${ac_cv_prog_EXPECT+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 if test -n "$EXPECT"; then
6294 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_EXPECT="$ac_prog"
6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6307 done
6308 done
6312 EXPECT=$ac_cv_prog_EXPECT
6313 if test -n "$EXPECT"; then
6314 echo "$as_me:$LINENO: result: $EXPECT" >&5
6315 echo "${ECHO_T}$EXPECT" >&6
6316 else
6317 echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6
6321 test -n "$EXPECT" && break
6322 done
6323 test -n "$EXPECT" || EXPECT="expect"
6325 case " $configdirs " in
6326 *" expect "*)
6327 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6329 esac
6331 for ac_prog in runtest
6333 # Extract the first word of "$ac_prog", so it can be a program name with args.
6334 set dummy $ac_prog; ac_word=$2
6335 echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340 if test -n "$RUNTEST"; then
6341 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_RUNTEST="$ac_prog"
6351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6354 done
6355 done
6359 RUNTEST=$ac_cv_prog_RUNTEST
6360 if test -n "$RUNTEST"; then
6361 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6362 echo "${ECHO_T}$RUNTEST" >&6
6363 else
6364 echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6
6368 test -n "$RUNTEST" && break
6369 done
6370 test -n "$RUNTEST" || RUNTEST="runtest"
6372 case " $configdirs " in
6373 *" dejagnu "*)
6374 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6376 esac
6379 # Host tools.
6380 ncn_tool_prefix=
6381 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6382 ncn_target_tool_prefix=
6383 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6387 if test -n "$AR"; then
6388 ac_cv_prog_AR=$AR
6389 elif test -n "$ac_cv_prog_AR"; then
6390 AR=$ac_cv_prog_AR
6393 if test -n "$ac_cv_prog_AR"; then
6394 for ncn_progname in ar; do
6395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6396 set dummy ${ncn_progname}; ac_word=$2
6397 echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6399 if test "${ac_cv_prog_AR+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 if test -n "$AR"; then
6403 ac_cv_prog_AR="$AR" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_AR="${ncn_progname}"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6421 AR=$ac_cv_prog_AR
6422 if test -n "$AR"; then
6423 echo "$as_me:$LINENO: result: $AR" >&5
6424 echo "${ECHO_T}$AR" >&6
6425 else
6426 echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6
6430 done
6433 for ncn_progname in ar; do
6434 if test -n "$ncn_tool_prefix"; then
6435 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6436 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6437 echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6439 if test "${ac_cv_prog_AR+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 if test -n "$AR"; then
6443 ac_cv_prog_AR="$AR" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6456 done
6457 done
6461 AR=$ac_cv_prog_AR
6462 if test -n "$AR"; then
6463 echo "$as_me:$LINENO: result: $AR" >&5
6464 echo "${ECHO_T}$AR" >&6
6465 else
6466 echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6
6471 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6473 set dummy ${ncn_progname}; ac_word=$2
6474 echo "$as_me:$LINENO: checking for $ac_word" >&5
6475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6476 if test "${ac_cv_prog_AR+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 if test -n "$AR"; then
6480 ac_cv_prog_AR="$AR" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_AR="${ncn_progname}"
6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6493 done
6494 done
6498 AR=$ac_cv_prog_AR
6499 if test -n "$AR"; then
6500 echo "$as_me:$LINENO: result: $AR" >&5
6501 echo "${ECHO_T}$AR" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6
6508 test -n "$ac_cv_prog_AR" && break
6509 done
6511 if test -z "$ac_cv_prog_AR" ; then
6512 set dummy ar
6513 if test $build = $host ; then
6514 AR="$2"
6515 else
6516 AR="${ncn_tool_prefix}$2"
6522 if test -n "$AS"; then
6523 ac_cv_prog_AS=$AS
6524 elif test -n "$ac_cv_prog_AS"; then
6525 AS=$ac_cv_prog_AS
6528 if test -n "$ac_cv_prog_AS"; then
6529 for ncn_progname in as; do
6530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6531 set dummy ${ncn_progname}; ac_word=$2
6532 echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6534 if test "${ac_cv_prog_AS+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 if test -n "$AS"; then
6538 ac_cv_prog_AS="$AS" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547 ac_cv_prog_AS="${ncn_progname}"
6548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6551 done
6552 done
6556 AS=$ac_cv_prog_AS
6557 if test -n "$AS"; then
6558 echo "$as_me:$LINENO: result: $AS" >&5
6559 echo "${ECHO_T}$AS" >&6
6560 else
6561 echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6
6565 done
6568 for ncn_progname in as; do
6569 if test -n "$ncn_tool_prefix"; then
6570 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6571 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6572 echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6574 if test "${ac_cv_prog_AS+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 if test -n "$AS"; then
6578 ac_cv_prog_AS="$AS" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6587 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6591 done
6592 done
6596 AS=$ac_cv_prog_AS
6597 if test -n "$AS"; then
6598 echo "$as_me:$LINENO: result: $AS" >&5
6599 echo "${ECHO_T}$AS" >&6
6600 else
6601 echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6
6606 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6608 set dummy ${ncn_progname}; ac_word=$2
6609 echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6611 if test "${ac_cv_prog_AS+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614 if test -n "$AS"; then
6615 ac_cv_prog_AS="$AS" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_AS="${ncn_progname}"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6628 done
6629 done
6633 AS=$ac_cv_prog_AS
6634 if test -n "$AS"; then
6635 echo "$as_me:$LINENO: result: $AS" >&5
6636 echo "${ECHO_T}$AS" >&6
6637 else
6638 echo "$as_me:$LINENO: result: no" >&5
6639 echo "${ECHO_T}no" >&6
6643 test -n "$ac_cv_prog_AS" && break
6644 done
6646 if test -z "$ac_cv_prog_AS" ; then
6647 set dummy as
6648 if test $build = $host ; then
6649 AS="$2"
6650 else
6651 AS="${ncn_tool_prefix}$2"
6657 if test -n "$DLLTOOL"; then
6658 ac_cv_prog_DLLTOOL=$DLLTOOL
6659 elif test -n "$ac_cv_prog_DLLTOOL"; then
6660 DLLTOOL=$ac_cv_prog_DLLTOOL
6663 if test -n "$ac_cv_prog_DLLTOOL"; then
6664 for ncn_progname in dlltool; do
6665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6666 set dummy ${ncn_progname}; ac_word=$2
6667 echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6669 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672 if test -n "$DLLTOOL"; then
6673 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_DLLTOOL="${ncn_progname}"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6691 DLLTOOL=$ac_cv_prog_DLLTOOL
6692 if test -n "$DLLTOOL"; then
6693 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6694 echo "${ECHO_T}$DLLTOOL" >&6
6695 else
6696 echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6
6700 done
6703 for ncn_progname in dlltool; do
6704 if test -n "$ncn_tool_prefix"; then
6705 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6706 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6707 echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6709 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712 if test -n "$DLLTOOL"; then
6713 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6726 done
6727 done
6731 DLLTOOL=$ac_cv_prog_DLLTOOL
6732 if test -n "$DLLTOOL"; then
6733 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6734 echo "${ECHO_T}$DLLTOOL" >&6
6735 else
6736 echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6
6741 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6743 set dummy ${ncn_progname}; ac_word=$2
6744 echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749 if test -n "$DLLTOOL"; then
6750 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_DLLTOOL="${ncn_progname}"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6763 done
6764 done
6768 DLLTOOL=$ac_cv_prog_DLLTOOL
6769 if test -n "$DLLTOOL"; then
6770 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6771 echo "${ECHO_T}$DLLTOOL" >&6
6772 else
6773 echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6
6778 test -n "$ac_cv_prog_DLLTOOL" && break
6779 done
6781 if test -z "$ac_cv_prog_DLLTOOL" ; then
6782 set dummy dlltool
6783 if test $build = $host ; then
6784 DLLTOOL="$2"
6785 else
6786 DLLTOOL="${ncn_tool_prefix}$2"
6792 if test -n "$LD"; then
6793 ac_cv_prog_LD=$LD
6794 elif test -n "$ac_cv_prog_LD"; then
6795 LD=$ac_cv_prog_LD
6798 if test -n "$ac_cv_prog_LD"; then
6799 for ncn_progname in ld; do
6800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6801 set dummy ${ncn_progname}; ac_word=$2
6802 echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6804 if test "${ac_cv_prog_LD+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 if test -n "$LD"; then
6808 ac_cv_prog_LD="$LD" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6817 ac_cv_prog_LD="${ncn_progname}"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6821 done
6822 done
6826 LD=$ac_cv_prog_LD
6827 if test -n "$LD"; then
6828 echo "$as_me:$LINENO: result: $LD" >&5
6829 echo "${ECHO_T}$LD" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832 echo "${ECHO_T}no" >&6
6835 done
6838 for ncn_progname in ld; do
6839 if test -n "$ncn_tool_prefix"; then
6840 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6841 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6842 echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6844 if test "${ac_cv_prog_LD+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847 if test -n "$LD"; then
6848 ac_cv_prog_LD="$LD" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6861 done
6862 done
6866 LD=$ac_cv_prog_LD
6867 if test -n "$LD"; then
6868 echo "$as_me:$LINENO: result: $LD" >&5
6869 echo "${ECHO_T}$LD" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6
6876 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6878 set dummy ${ncn_progname}; ac_word=$2
6879 echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6881 if test "${ac_cv_prog_LD+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884 if test -n "$LD"; then
6885 ac_cv_prog_LD="$LD" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_LD="${ncn_progname}"
6895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6898 done
6899 done
6903 LD=$ac_cv_prog_LD
6904 if test -n "$LD"; then
6905 echo "$as_me:$LINENO: result: $LD" >&5
6906 echo "${ECHO_T}$LD" >&6
6907 else
6908 echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6
6913 test -n "$ac_cv_prog_LD" && break
6914 done
6916 if test -z "$ac_cv_prog_LD" ; then
6917 set dummy ld
6918 if test $build = $host ; then
6919 LD="$2"
6920 else
6921 LD="${ncn_tool_prefix}$2"
6927 if test -n "$LIPO"; then
6928 ac_cv_prog_LIPO=$LIPO
6929 elif test -n "$ac_cv_prog_LIPO"; then
6930 LIPO=$ac_cv_prog_LIPO
6933 if test -n "$ac_cv_prog_LIPO"; then
6934 for ncn_progname in lipo; do
6935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6936 set dummy ${ncn_progname}; ac_word=$2
6937 echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6939 if test "${ac_cv_prog_LIPO+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 if test -n "$LIPO"; then
6943 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952 ac_cv_prog_LIPO="${ncn_progname}"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 break 2
6956 done
6957 done
6961 LIPO=$ac_cv_prog_LIPO
6962 if test -n "$LIPO"; then
6963 echo "$as_me:$LINENO: result: $LIPO" >&5
6964 echo "${ECHO_T}$LIPO" >&6
6965 else
6966 echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6
6970 done
6973 for ncn_progname in lipo; do
6974 if test -n "$ncn_tool_prefix"; then
6975 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6976 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6977 echo "$as_me:$LINENO: checking for $ac_word" >&5
6978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979 if test "${ac_cv_prog_LIPO+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982 if test -n "$LIPO"; then
6983 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6996 done
6997 done
7001 LIPO=$ac_cv_prog_LIPO
7002 if test -n "$LIPO"; then
7003 echo "$as_me:$LINENO: result: $LIPO" >&5
7004 echo "${ECHO_T}$LIPO" >&6
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6
7011 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7013 set dummy ${ncn_progname}; ac_word=$2
7014 echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7016 if test "${ac_cv_prog_LIPO+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 if test -n "$LIPO"; then
7020 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_LIPO="${ncn_progname}"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7033 done
7034 done
7038 LIPO=$ac_cv_prog_LIPO
7039 if test -n "$LIPO"; then
7040 echo "$as_me:$LINENO: result: $LIPO" >&5
7041 echo "${ECHO_T}$LIPO" >&6
7042 else
7043 echo "$as_me:$LINENO: result: no" >&5
7044 echo "${ECHO_T}no" >&6
7048 test -n "$ac_cv_prog_LIPO" && break
7049 done
7051 if test -z "$ac_cv_prog_LIPO" ; then
7052 set dummy lipo
7053 if test $build = $host ; then
7054 LIPO="$2"
7055 else
7056 LIPO="${ncn_tool_prefix}$2"
7062 if test -n "$NM"; then
7063 ac_cv_prog_NM=$NM
7064 elif test -n "$ac_cv_prog_NM"; then
7065 NM=$ac_cv_prog_NM
7068 if test -n "$ac_cv_prog_NM"; then
7069 for ncn_progname in nm; do
7070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7071 set dummy ${ncn_progname}; ac_word=$2
7072 echo "$as_me:$LINENO: checking for $ac_word" >&5
7073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7074 if test "${ac_cv_prog_NM+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 if test -n "$NM"; then
7078 ac_cv_prog_NM="$NM" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_NM="${ncn_progname}"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7091 done
7092 done
7096 NM=$ac_cv_prog_NM
7097 if test -n "$NM"; then
7098 echo "$as_me:$LINENO: result: $NM" >&5
7099 echo "${ECHO_T}$NM" >&6
7100 else
7101 echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6
7105 done
7108 for ncn_progname in nm; do
7109 if test -n "$ncn_tool_prefix"; then
7110 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7111 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7112 echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7114 if test "${ac_cv_prog_NM+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 if test -n "$NM"; then
7118 ac_cv_prog_NM="$NM" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
7128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7131 done
7132 done
7136 NM=$ac_cv_prog_NM
7137 if test -n "$NM"; then
7138 echo "$as_me:$LINENO: result: $NM" >&5
7139 echo "${ECHO_T}$NM" >&6
7140 else
7141 echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6
7146 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
7147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7148 set dummy ${ncn_progname}; ac_word=$2
7149 echo "$as_me:$LINENO: checking for $ac_word" >&5
7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151 if test "${ac_cv_prog_NM+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 if test -n "$NM"; then
7155 ac_cv_prog_NM="$NM" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164 ac_cv_prog_NM="${ncn_progname}"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 break 2
7168 done
7169 done
7173 NM=$ac_cv_prog_NM
7174 if test -n "$NM"; then
7175 echo "$as_me:$LINENO: result: $NM" >&5
7176 echo "${ECHO_T}$NM" >&6
7177 else
7178 echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6
7183 test -n "$ac_cv_prog_NM" && break
7184 done
7186 if test -z "$ac_cv_prog_NM" ; then
7187 set dummy nm
7188 if test $build = $host ; then
7189 NM="$2"
7190 else
7191 NM="${ncn_tool_prefix}$2"
7197 if test -n "$RANLIB"; then
7198 ac_cv_prog_RANLIB=$RANLIB
7199 elif test -n "$ac_cv_prog_RANLIB"; then
7200 RANLIB=$ac_cv_prog_RANLIB
7203 if test -n "$ac_cv_prog_RANLIB"; then
7204 for ncn_progname in ranlib; do
7205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7206 set dummy ${ncn_progname}; ac_word=$2
7207 echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7209 if test "${ac_cv_prog_RANLIB+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212 if test -n "$RANLIB"; then
7213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222 ac_cv_prog_RANLIB="${ncn_progname}"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7226 done
7227 done
7231 RANLIB=$ac_cv_prog_RANLIB
7232 if test -n "$RANLIB"; then
7233 echo "$as_me:$LINENO: result: $RANLIB" >&5
7234 echo "${ECHO_T}$RANLIB" >&6
7235 else
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7240 done
7243 for ncn_progname in ranlib; do
7244 if test -n "$ncn_tool_prefix"; then
7245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7246 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7247 echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7249 if test "${ac_cv_prog_RANLIB+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252 if test -n "$RANLIB"; then
7253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7266 done
7267 done
7271 RANLIB=$ac_cv_prog_RANLIB
7272 if test -n "$RANLIB"; then
7273 echo "$as_me:$LINENO: result: $RANLIB" >&5
7274 echo "${ECHO_T}$RANLIB" >&6
7275 else
7276 echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6
7281 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
7282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7283 set dummy ${ncn_progname}; ac_word=$2
7284 echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7286 if test "${ac_cv_prog_RANLIB+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 if test -n "$RANLIB"; then
7290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_RANLIB="${ncn_progname}"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7303 done
7304 done
7308 RANLIB=$ac_cv_prog_RANLIB
7309 if test -n "$RANLIB"; then
7310 echo "$as_me:$LINENO: result: $RANLIB" >&5
7311 echo "${ECHO_T}$RANLIB" >&6
7312 else
7313 echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6
7318 test -n "$ac_cv_prog_RANLIB" && break
7319 done
7321 if test -z "$ac_cv_prog_RANLIB" ; then
7322 RANLIB=":"
7327 if test -n "$STRIP"; then
7328 ac_cv_prog_STRIP=$STRIP
7329 elif test -n "$ac_cv_prog_STRIP"; then
7330 STRIP=$ac_cv_prog_STRIP
7333 if test -n "$ac_cv_prog_STRIP"; then
7334 for ncn_progname in strip; do
7335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7336 set dummy ${ncn_progname}; ac_word=$2
7337 echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7339 if test "${ac_cv_prog_STRIP+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 if test -n "$STRIP"; then
7343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_prog_STRIP="${ncn_progname}"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7356 done
7357 done
7361 STRIP=$ac_cv_prog_STRIP
7362 if test -n "$STRIP"; then
7363 echo "$as_me:$LINENO: result: $STRIP" >&5
7364 echo "${ECHO_T}$STRIP" >&6
7365 else
7366 echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7370 done
7373 for ncn_progname in strip; do
7374 if test -n "$ncn_tool_prefix"; then
7375 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7376 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7377 echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7379 if test "${ac_cv_prog_STRIP+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382 if test -n "$STRIP"; then
7383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7396 done
7397 done
7401 STRIP=$ac_cv_prog_STRIP
7402 if test -n "$STRIP"; then
7403 echo "$as_me:$LINENO: result: $STRIP" >&5
7404 echo "${ECHO_T}$STRIP" >&6
7405 else
7406 echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6
7411 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
7412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7413 set dummy ${ncn_progname}; ac_word=$2
7414 echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7416 if test "${ac_cv_prog_STRIP+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 if test -n "$STRIP"; then
7420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_STRIP="${ncn_progname}"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7433 done
7434 done
7438 STRIP=$ac_cv_prog_STRIP
7439 if test -n "$STRIP"; then
7440 echo "$as_me:$LINENO: result: $STRIP" >&5
7441 echo "${ECHO_T}$STRIP" >&6
7442 else
7443 echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6
7448 test -n "$ac_cv_prog_STRIP" && break
7449 done
7451 if test -z "$ac_cv_prog_STRIP" ; then
7452 STRIP=":"
7457 if test -n "$WINDRES"; then
7458 ac_cv_prog_WINDRES=$WINDRES
7459 elif test -n "$ac_cv_prog_WINDRES"; then
7460 WINDRES=$ac_cv_prog_WINDRES
7463 if test -n "$ac_cv_prog_WINDRES"; then
7464 for ncn_progname in windres; do
7465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7466 set dummy ${ncn_progname}; ac_word=$2
7467 echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7469 if test "${ac_cv_prog_WINDRES+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472 if test -n "$WINDRES"; then
7473 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_WINDRES="${ncn_progname}"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7491 WINDRES=$ac_cv_prog_WINDRES
7492 if test -n "$WINDRES"; then
7493 echo "$as_me:$LINENO: result: $WINDRES" >&5
7494 echo "${ECHO_T}$WINDRES" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7500 done
7503 for ncn_progname in windres; do
7504 if test -n "$ncn_tool_prefix"; then
7505 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7506 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7507 echo "$as_me:$LINENO: checking for $ac_word" >&5
7508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7509 if test "${ac_cv_prog_WINDRES+set}" = set; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 if test -n "$WINDRES"; then
7513 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7526 done
7527 done
7531 WINDRES=$ac_cv_prog_WINDRES
7532 if test -n "$WINDRES"; then
7533 echo "$as_me:$LINENO: result: $WINDRES" >&5
7534 echo "${ECHO_T}$WINDRES" >&6
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537 echo "${ECHO_T}no" >&6
7541 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
7542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7543 set dummy ${ncn_progname}; ac_word=$2
7544 echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546 if test "${ac_cv_prog_WINDRES+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549 if test -n "$WINDRES"; then
7550 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_WINDRES="${ncn_progname}"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7563 done
7564 done
7568 WINDRES=$ac_cv_prog_WINDRES
7569 if test -n "$WINDRES"; then
7570 echo "$as_me:$LINENO: result: $WINDRES" >&5
7571 echo "${ECHO_T}$WINDRES" >&6
7572 else
7573 echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6
7578 test -n "$ac_cv_prog_WINDRES" && break
7579 done
7581 if test -z "$ac_cv_prog_WINDRES" ; then
7582 set dummy windres
7583 if test $build = $host ; then
7584 WINDRES="$2"
7585 else
7586 WINDRES="${ncn_tool_prefix}$2"
7592 if test -n "$WINDMC"; then
7593 ac_cv_prog_WINDMC=$WINDMC
7594 elif test -n "$ac_cv_prog_WINDMC"; then
7595 WINDMC=$ac_cv_prog_WINDMC
7598 if test -n "$ac_cv_prog_WINDMC"; then
7599 for ncn_progname in windmc; do
7600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7601 set dummy ${ncn_progname}; ac_word=$2
7602 echo "$as_me:$LINENO: checking for $ac_word" >&5
7603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7604 if test "${ac_cv_prog_WINDMC+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607 if test -n "$WINDMC"; then
7608 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_prog_WINDMC="${ncn_progname}"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7626 WINDMC=$ac_cv_prog_WINDMC
7627 if test -n "$WINDMC"; then
7628 echo "$as_me:$LINENO: result: $WINDMC" >&5
7629 echo "${ECHO_T}$WINDMC" >&6
7630 else
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7635 done
7638 for ncn_progname in windmc; do
7639 if test -n "$ncn_tool_prefix"; then
7640 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7641 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7642 echo "$as_me:$LINENO: checking for $ac_word" >&5
7643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7644 if test "${ac_cv_prog_WINDMC+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 if test -n "$WINDMC"; then
7648 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7649 else
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7661 done
7662 done
7666 WINDMC=$ac_cv_prog_WINDMC
7667 if test -n "$WINDMC"; then
7668 echo "$as_me:$LINENO: result: $WINDMC" >&5
7669 echo "${ECHO_T}$WINDMC" >&6
7670 else
7671 echo "$as_me:$LINENO: result: no" >&5
7672 echo "${ECHO_T}no" >&6
7676 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
7677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7678 set dummy ${ncn_progname}; ac_word=$2
7679 echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7681 if test "${ac_cv_prog_WINDMC+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684 if test -n "$WINDMC"; then
7685 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_WINDMC="${ncn_progname}"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7698 done
7699 done
7703 WINDMC=$ac_cv_prog_WINDMC
7704 if test -n "$WINDMC"; then
7705 echo "$as_me:$LINENO: result: $WINDMC" >&5
7706 echo "${ECHO_T}$WINDMC" >&6
7707 else
7708 echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7713 test -n "$ac_cv_prog_WINDMC" && break
7714 done
7716 if test -z "$ac_cv_prog_WINDMC" ; then
7717 set dummy windmc
7718 if test $build = $host ; then
7719 WINDMC="$2"
7720 else
7721 WINDMC="${ncn_tool_prefix}$2"
7727 if test -n "$OBJCOPY"; then
7728 ac_cv_prog_OBJCOPY=$OBJCOPY
7729 elif test -n "$ac_cv_prog_OBJCOPY"; then
7730 OBJCOPY=$ac_cv_prog_OBJCOPY
7733 if test -n "$ac_cv_prog_OBJCOPY"; then
7734 for ncn_progname in objcopy; do
7735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7736 set dummy ${ncn_progname}; ac_word=$2
7737 echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7739 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 if test -n "$OBJCOPY"; then
7743 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_OBJCOPY="${ncn_progname}"
7753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7761 OBJCOPY=$ac_cv_prog_OBJCOPY
7762 if test -n "$OBJCOPY"; then
7763 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7764 echo "${ECHO_T}$OBJCOPY" >&6
7765 else
7766 echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7770 done
7773 for ncn_progname in objcopy; do
7774 if test -n "$ncn_tool_prefix"; then
7775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7776 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7777 echo "$as_me:$LINENO: checking for $ac_word" >&5
7778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7779 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782 if test -n "$OBJCOPY"; then
7783 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
7793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7796 done
7797 done
7801 OBJCOPY=$ac_cv_prog_OBJCOPY
7802 if test -n "$OBJCOPY"; then
7803 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7804 echo "${ECHO_T}$OBJCOPY" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7811 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
7812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7813 set dummy ${ncn_progname}; ac_word=$2
7814 echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7816 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819 if test -n "$OBJCOPY"; then
7820 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_OBJCOPY="${ncn_progname}"
7830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7833 done
7834 done
7838 OBJCOPY=$ac_cv_prog_OBJCOPY
7839 if test -n "$OBJCOPY"; then
7840 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
7841 echo "${ECHO_T}$OBJCOPY" >&6
7842 else
7843 echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7848 test -n "$ac_cv_prog_OBJCOPY" && break
7849 done
7851 if test -z "$ac_cv_prog_OBJCOPY" ; then
7852 set dummy objcopy
7853 if test $build = $host ; then
7854 OBJCOPY="$2"
7855 else
7856 OBJCOPY="${ncn_tool_prefix}$2"
7862 if test -n "$OBJDUMP"; then
7863 ac_cv_prog_OBJDUMP=$OBJDUMP
7864 elif test -n "$ac_cv_prog_OBJDUMP"; then
7865 OBJDUMP=$ac_cv_prog_OBJDUMP
7868 if test -n "$ac_cv_prog_OBJDUMP"; then
7869 for ncn_progname in objdump; do
7870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7871 set dummy ${ncn_progname}; ac_word=$2
7872 echo "$as_me:$LINENO: checking for $ac_word" >&5
7873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7874 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 if test -n "$OBJDUMP"; then
7878 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7887 ac_cv_prog_OBJDUMP="${ncn_progname}"
7888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 break 2
7891 done
7892 done
7896 OBJDUMP=$ac_cv_prog_OBJDUMP
7897 if test -n "$OBJDUMP"; then
7898 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7899 echo "${ECHO_T}$OBJDUMP" >&6
7900 else
7901 echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6
7905 done
7908 for ncn_progname in objdump; do
7909 if test -n "$ncn_tool_prefix"; then
7910 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7911 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7912 echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7914 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917 if test -n "$OBJDUMP"; then
7918 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929 break 2
7931 done
7932 done
7936 OBJDUMP=$ac_cv_prog_OBJDUMP
7937 if test -n "$OBJDUMP"; then
7938 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7939 echo "${ECHO_T}$OBJDUMP" >&6
7940 else
7941 echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6
7946 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
7947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7948 set dummy ${ncn_progname}; ac_word=$2
7949 echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 if test -n "$OBJDUMP"; then
7955 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964 ac_cv_prog_OBJDUMP="${ncn_progname}"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7968 done
7969 done
7973 OBJDUMP=$ac_cv_prog_OBJDUMP
7974 if test -n "$OBJDUMP"; then
7975 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7976 echo "${ECHO_T}$OBJDUMP" >&6
7977 else
7978 echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7983 test -n "$ac_cv_prog_OBJDUMP" && break
7984 done
7986 if test -z "$ac_cv_prog_OBJDUMP" ; then
7987 set dummy objdump
7988 if test $build = $host ; then
7989 OBJDUMP="$2"
7990 else
7991 OBJDUMP="${ncn_tool_prefix}$2"
8000 # Target tools.
8002 # Check whether --with-build-time-tools or --without-build-time-tools was given.
8003 if test "${with_build_time_tools+set}" = set; then
8004 withval="$with_build_time_tools"
8005 case x"$withval" in
8006 x/*) ;;
8008 with_build_time_tools=
8009 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8010 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
8012 esac
8013 else
8014 with_build_time_tools=
8019 if test -n "$CC_FOR_TARGET"; then
8020 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8021 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8022 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8025 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8026 for ncn_progname in cc gcc; do
8027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8028 set dummy ${ncn_progname}; ac_word=$2
8029 echo "$as_me:$LINENO: checking for $ac_word" >&5
8030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8031 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 else
8034 if test -n "$CC_FOR_TARGET"; then
8035 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8044 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8048 done
8049 done
8053 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8054 if test -n "$CC_FOR_TARGET"; then
8055 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8056 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8057 else
8058 echo "$as_me:$LINENO: result: no" >&5
8059 echo "${ECHO_T}no" >&6
8062 done
8065 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8066 for ncn_progname in cc gcc; do
8067 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8068 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8069 if test -x $with_build_time_tools/${ncn_progname}; then
8070 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8071 echo "$as_me:$LINENO: result: yes" >&5
8072 echo "${ECHO_T}yes" >&6
8073 break
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6
8078 done
8081 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
8082 for ncn_progname in cc gcc; do
8083 if test -n "$ncn_target_tool_prefix"; then
8084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8086 echo "$as_me:$LINENO: checking for $ac_word" >&5
8087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8088 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091 if test -n "$CC_FOR_TARGET"; then
8092 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8093 else
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8105 done
8106 done
8110 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8111 if test -n "$CC_FOR_TARGET"; then
8112 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8113 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8114 else
8115 echo "$as_me:$LINENO: result: no" >&5
8116 echo "${ECHO_T}no" >&6
8120 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
8121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8122 set dummy ${ncn_progname}; ac_word=$2
8123 echo "$as_me:$LINENO: checking for $ac_word" >&5
8124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8125 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 else
8128 if test -n "$CC_FOR_TARGET"; then
8129 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
8139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8147 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8148 if test -n "$CC_FOR_TARGET"; then
8149 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
8150 echo "${ECHO_T}$CC_FOR_TARGET" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8157 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
8158 done
8161 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
8162 set dummy cc gcc
8163 if test $build = $target ; then
8164 CC_FOR_TARGET="$2"
8165 else
8166 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
8168 else
8169 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
8174 if test -n "$CXX_FOR_TARGET"; then
8175 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
8176 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8177 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8180 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
8181 for ncn_progname in c++ g++ cxx gxx; do
8182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8183 set dummy ${ncn_progname}; ac_word=$2
8184 echo "$as_me:$LINENO: checking for $ac_word" >&5
8185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8186 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189 if test -n "$CXX_FOR_TARGET"; then
8190 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 break 2
8203 done
8204 done
8208 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8209 if test -n "$CXX_FOR_TARGET"; then
8210 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8211 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8212 else
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8217 done
8220 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
8221 for ncn_progname in c++ g++ cxx gxx; do
8222 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8223 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8224 if test -x $with_build_time_tools/${ncn_progname}; then
8225 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8226 echo "$as_me:$LINENO: result: yes" >&5
8227 echo "${ECHO_T}yes" >&6
8228 break
8229 else
8230 echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6
8233 done
8236 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
8237 for ncn_progname in c++ g++ cxx gxx; do
8238 if test -n "$ncn_target_tool_prefix"; then
8239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8240 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8241 echo "$as_me:$LINENO: checking for $ac_word" >&5
8242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8243 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246 if test -n "$CXX_FOR_TARGET"; then
8247 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8252 IFS=$as_save_IFS
8253 test -z "$as_dir" && as_dir=.
8254 for ac_exec_ext in '' $ac_executable_extensions; do
8255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8256 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 break 2
8260 done
8261 done
8265 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8266 if test -n "$CXX_FOR_TARGET"; then
8267 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8268 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8269 else
8270 echo "$as_me:$LINENO: result: no" >&5
8271 echo "${ECHO_T}no" >&6
8275 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
8276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8277 set dummy ${ncn_progname}; ac_word=$2
8278 echo "$as_me:$LINENO: checking for $ac_word" >&5
8279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8280 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283 if test -n "$CXX_FOR_TARGET"; then
8284 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8302 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
8303 if test -n "$CXX_FOR_TARGET"; then
8304 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
8305 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
8306 else
8307 echo "$as_me:$LINENO: result: no" >&5
8308 echo "${ECHO_T}no" >&6
8312 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
8313 done
8316 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
8317 set dummy c++ g++ cxx gxx
8318 if test $build = $target ; then
8319 CXX_FOR_TARGET="$2"
8320 else
8321 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
8323 else
8324 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
8329 if test -n "$GCC_FOR_TARGET"; then
8330 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
8331 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8332 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8335 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
8336 for ncn_progname in gcc; do
8337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8338 set dummy ${ncn_progname}; ac_word=$2
8339 echo "$as_me:$LINENO: checking for $ac_word" >&5
8340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8341 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 if test -n "$GCC_FOR_TARGET"; then
8345 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8358 done
8359 done
8363 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8364 if test -n "$GCC_FOR_TARGET"; then
8365 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8366 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8367 else
8368 echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6
8372 done
8375 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
8376 for ncn_progname in gcc; do
8377 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8378 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8379 if test -x $with_build_time_tools/${ncn_progname}; then
8380 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8381 echo "$as_me:$LINENO: result: yes" >&5
8382 echo "${ECHO_T}yes" >&6
8383 break
8384 else
8385 echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6
8388 done
8391 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
8392 for ncn_progname in gcc; do
8393 if test -n "$ncn_target_tool_prefix"; then
8394 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8395 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8396 echo "$as_me:$LINENO: checking for $ac_word" >&5
8397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8398 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401 if test -n "$GCC_FOR_TARGET"; then
8402 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8415 done
8416 done
8420 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8421 if test -n "$GCC_FOR_TARGET"; then
8422 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8423 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8424 else
8425 echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6
8430 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
8431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8432 set dummy ${ncn_progname}; ac_word=$2
8433 echo "$as_me:$LINENO: checking for $ac_word" >&5
8434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8435 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438 if test -n "$GCC_FOR_TARGET"; then
8439 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
8449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8450 break 2
8452 done
8453 done
8457 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
8458 if test -n "$GCC_FOR_TARGET"; then
8459 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
8460 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
8461 else
8462 echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6
8467 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
8468 done
8471 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
8472 GCC_FOR_TARGET="${CC_FOR_TARGET}"
8473 else
8474 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
8479 if test -n "$GCJ_FOR_TARGET"; then
8480 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
8481 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8482 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8485 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
8486 for ncn_progname in gcj; do
8487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8488 set dummy ${ncn_progname}; ac_word=$2
8489 echo "$as_me:$LINENO: checking for $ac_word" >&5
8490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8491 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494 if test -n "$GCJ_FOR_TARGET"; then
8495 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8513 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8514 if test -n "$GCJ_FOR_TARGET"; then
8515 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8516 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6
8522 done
8525 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
8526 for ncn_progname in gcj; do
8527 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8528 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8529 if test -x $with_build_time_tools/${ncn_progname}; then
8530 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8531 echo "$as_me:$LINENO: result: yes" >&5
8532 echo "${ECHO_T}yes" >&6
8533 break
8534 else
8535 echo "$as_me:$LINENO: result: no" >&5
8536 echo "${ECHO_T}no" >&6
8538 done
8541 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
8542 for ncn_progname in gcj; do
8543 if test -n "$ncn_target_tool_prefix"; then
8544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8546 echo "$as_me:$LINENO: checking for $ac_word" >&5
8547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8548 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 if test -n "$GCJ_FOR_TARGET"; then
8552 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8553 else
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 for as_dir in $PATH
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8561 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 break 2
8565 done
8566 done
8570 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8571 if test -n "$GCJ_FOR_TARGET"; then
8572 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8573 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8574 else
8575 echo "$as_me:$LINENO: result: no" >&5
8576 echo "${ECHO_T}no" >&6
8580 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
8581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8582 set dummy ${ncn_progname}; ac_word=$2
8583 echo "$as_me:$LINENO: checking for $ac_word" >&5
8584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8585 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588 if test -n "$GCJ_FOR_TARGET"; then
8589 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
8590 else
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
8599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8602 done
8603 done
8607 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
8608 if test -n "$GCJ_FOR_TARGET"; then
8609 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
8610 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
8611 else
8612 echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6
8617 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
8618 done
8621 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
8622 set dummy gcj
8623 if test $build = $target ; then
8624 GCJ_FOR_TARGET="$2"
8625 else
8626 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
8628 else
8629 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
8634 if test -n "$GFORTRAN_FOR_TARGET"; then
8635 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
8636 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8637 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8640 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8641 for ncn_progname in gfortran; do
8642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8643 set dummy ${ncn_progname}; ac_word=$2
8644 echo "$as_me:$LINENO: checking for $ac_word" >&5
8645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8646 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649 if test -n "$GFORTRAN_FOR_TARGET"; then
8650 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8651 else
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 for as_dir in $PATH
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 break 2
8663 done
8664 done
8668 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8669 if test -n "$GFORTRAN_FOR_TARGET"; then
8670 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8671 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8672 else
8673 echo "$as_me:$LINENO: result: no" >&5
8674 echo "${ECHO_T}no" >&6
8677 done
8680 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
8681 for ncn_progname in gfortran; do
8682 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8683 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8684 if test -x $with_build_time_tools/${ncn_progname}; then
8685 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8686 echo "$as_me:$LINENO: result: yes" >&5
8687 echo "${ECHO_T}yes" >&6
8688 break
8689 else
8690 echo "$as_me:$LINENO: result: no" >&5
8691 echo "${ECHO_T}no" >&6
8693 done
8696 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
8697 for ncn_progname in gfortran; do
8698 if test -n "$ncn_target_tool_prefix"; then
8699 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8700 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8701 echo "$as_me:$LINENO: checking for $ac_word" >&5
8702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8703 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 if test -n "$GFORTRAN_FOR_TARGET"; then
8707 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8708 else
8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 for as_dir in $PATH
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 break 2
8720 done
8721 done
8725 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8726 if test -n "$GFORTRAN_FOR_TARGET"; then
8727 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8728 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8729 else
8730 echo "$as_me:$LINENO: result: no" >&5
8731 echo "${ECHO_T}no" >&6
8735 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
8736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8737 set dummy ${ncn_progname}; ac_word=$2
8738 echo "$as_me:$LINENO: checking for $ac_word" >&5
8739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8740 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743 if test -n "$GFORTRAN_FOR_TARGET"; then
8744 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
8754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 break 2
8757 done
8758 done
8762 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
8763 if test -n "$GFORTRAN_FOR_TARGET"; then
8764 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
8765 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6
8772 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
8773 done
8776 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
8777 set dummy gfortran
8778 if test $build = $target ; then
8779 GFORTRAN_FOR_TARGET="$2"
8780 else
8781 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
8783 else
8784 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
8789 cat > conftest.c << \EOF
8790 #ifdef __GNUC__
8791 gcc_yay;
8792 #endif
8794 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
8795 have_gcc_for_target=yes
8796 else
8797 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
8798 have_gcc_for_target=no
8800 rm conftest.c
8805 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8806 if test -n "$with_build_time_tools"; then
8807 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
8808 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
8809 if test -x $with_build_time_tools/ar; then
8810 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
8811 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8812 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
8813 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
8814 else
8815 echo "$as_me:$LINENO: result: no" >&5
8816 echo "${ECHO_T}no" >&6
8818 elif test $build != $host && test $have_gcc_for_target = yes; then
8819 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
8820 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
8821 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
8824 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8825 # Extract the first word of "ar", so it can be a program name with args.
8826 set dummy ar; ac_word=$2
8827 echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8829 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832 case $AR_FOR_TARGET in
8833 [\\/]* | ?:[\\/]*)
8834 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $gcc_cv_tool_dirs
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 break 2
8848 done
8849 done
8852 esac
8854 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
8856 if test -n "$AR_FOR_TARGET"; then
8857 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8858 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8859 else
8860 echo "$as_me:$LINENO: result: no" >&5
8861 echo "${ECHO_T}no" >&6
8865 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
8868 if test -n "$AR_FOR_TARGET"; then
8869 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
8870 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8871 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8874 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
8875 for ncn_progname in ar; do
8876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8877 set dummy ${ncn_progname}; ac_word=$2
8878 echo "$as_me:$LINENO: checking for $ac_word" >&5
8879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8880 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883 if test -n "$AR_FOR_TARGET"; then
8884 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8893 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8897 done
8898 done
8902 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8903 if test -n "$AR_FOR_TARGET"; then
8904 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8905 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908 echo "${ECHO_T}no" >&6
8911 done
8914 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
8915 for ncn_progname in ar; do
8916 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8917 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8918 if test -x $with_build_time_tools/${ncn_progname}; then
8919 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8920 echo "$as_me:$LINENO: result: yes" >&5
8921 echo "${ECHO_T}yes" >&6
8922 break
8923 else
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8927 done
8930 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
8931 for ncn_progname in ar; do
8932 if test -n "$ncn_target_tool_prefix"; then
8933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8934 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8935 echo "$as_me:$LINENO: checking for $ac_word" >&5
8936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8937 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 if test -n "$AR_FOR_TARGET"; then
8941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8942 else
8943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 break 2
8954 done
8955 done
8959 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8960 if test -n "$AR_FOR_TARGET"; then
8961 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8962 echo "${ECHO_T}$AR_FOR_TARGET" >&6
8963 else
8964 echo "$as_me:$LINENO: result: no" >&5
8965 echo "${ECHO_T}no" >&6
8969 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
8970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8971 set dummy ${ncn_progname}; ac_word=$2
8972 echo "$as_me:$LINENO: checking for $ac_word" >&5
8973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8974 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977 if test -n "$AR_FOR_TARGET"; then
8978 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
8988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 break 2
8991 done
8992 done
8996 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
8997 if test -n "$AR_FOR_TARGET"; then
8998 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
8999 echo "${ECHO_T}$AR_FOR_TARGET" >&6
9000 else
9001 echo "$as_me:$LINENO: result: no" >&5
9002 echo "${ECHO_T}no" >&6
9006 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
9007 done
9010 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
9011 set dummy ar
9012 if test $build = $target ; then
9013 AR_FOR_TARGET="$2"
9014 else
9015 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
9017 else
9018 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
9021 else
9022 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
9028 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9029 if test -n "$with_build_time_tools"; then
9030 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
9031 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
9032 if test -x $with_build_time_tools/as; then
9033 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
9034 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9035 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
9036 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
9037 else
9038 echo "$as_me:$LINENO: result: no" >&5
9039 echo "${ECHO_T}no" >&6
9041 elif test $build != $host && test $have_gcc_for_target = yes; then
9042 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
9043 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
9044 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
9047 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9048 # Extract the first word of "as", so it can be a program name with args.
9049 set dummy as; ac_word=$2
9050 echo "$as_me:$LINENO: checking for $ac_word" >&5
9051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9052 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055 case $AS_FOR_TARGET in
9056 [\\/]* | ?:[\\/]*)
9057 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
9060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 for as_dir in $gcc_cv_tool_dirs
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9067 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 break 2
9071 done
9072 done
9075 esac
9077 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9079 if test -n "$AS_FOR_TARGET"; then
9080 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9081 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9082 else
9083 echo "$as_me:$LINENO: result: no" >&5
9084 echo "${ECHO_T}no" >&6
9088 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9091 if test -n "$AS_FOR_TARGET"; then
9092 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
9093 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9094 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9097 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
9098 for ncn_progname in as; do
9099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9100 set dummy ${ncn_progname}; ac_word=$2
9101 echo "$as_me:$LINENO: checking for $ac_word" >&5
9102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9103 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 if test -n "$AS_FOR_TARGET"; then
9107 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9108 else
9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110 for as_dir in $PATH
9112 IFS=$as_save_IFS
9113 test -z "$as_dir" && as_dir=.
9114 for ac_exec_ext in '' $ac_executable_extensions; do
9115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9116 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9118 break 2
9120 done
9121 done
9125 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9126 if test -n "$AS_FOR_TARGET"; then
9127 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9128 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9129 else
9130 echo "$as_me:$LINENO: result: no" >&5
9131 echo "${ECHO_T}no" >&6
9134 done
9137 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
9138 for ncn_progname in as; do
9139 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9140 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9141 if test -x $with_build_time_tools/${ncn_progname}; then
9142 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9143 echo "$as_me:$LINENO: result: yes" >&5
9144 echo "${ECHO_T}yes" >&6
9145 break
9146 else
9147 echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6
9150 done
9153 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
9154 for ncn_progname in as; do
9155 if test -n "$ncn_target_tool_prefix"; then
9156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9157 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9158 echo "$as_me:$LINENO: checking for $ac_word" >&5
9159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9160 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 if test -n "$AS_FOR_TARGET"; then
9164 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9165 else
9166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 for as_dir in $PATH
9169 IFS=$as_save_IFS
9170 test -z "$as_dir" && as_dir=.
9171 for ac_exec_ext in '' $ac_executable_extensions; do
9172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9175 break 2
9177 done
9178 done
9182 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9183 if test -n "$AS_FOR_TARGET"; then
9184 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9185 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9186 else
9187 echo "$as_me:$LINENO: result: no" >&5
9188 echo "${ECHO_T}no" >&6
9192 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
9193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9194 set dummy ${ncn_progname}; ac_word=$2
9195 echo "$as_me:$LINENO: checking for $ac_word" >&5
9196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9197 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 if test -n "$AS_FOR_TARGET"; then
9201 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
9202 else
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 for as_dir in $PATH
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9210 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
9211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 break 2
9214 done
9215 done
9219 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
9220 if test -n "$AS_FOR_TARGET"; then
9221 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
9222 echo "${ECHO_T}$AS_FOR_TARGET" >&6
9223 else
9224 echo "$as_me:$LINENO: result: no" >&5
9225 echo "${ECHO_T}no" >&6
9229 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
9230 done
9233 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
9234 set dummy as
9235 if test $build = $target ; then
9236 AS_FOR_TARGET="$2"
9237 else
9238 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
9240 else
9241 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
9244 else
9245 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
9251 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9252 if test -n "$with_build_time_tools"; then
9253 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
9254 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
9255 if test -x $with_build_time_tools/dlltool; then
9256 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
9257 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9258 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
9259 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262 echo "${ECHO_T}no" >&6
9264 elif test $build != $host && test $have_gcc_for_target = yes; then
9265 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
9266 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
9267 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9270 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9271 # Extract the first word of "dlltool", so it can be a program name with args.
9272 set dummy dlltool; ac_word=$2
9273 echo "$as_me:$LINENO: checking for $ac_word" >&5
9274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9275 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278 case $DLLTOOL_FOR_TARGET in
9279 [\\/]* | ?:[\\/]*)
9280 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
9283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9284 for as_dir in $gcc_cv_tool_dirs
9286 IFS=$as_save_IFS
9287 test -z "$as_dir" && as_dir=.
9288 for ac_exec_ext in '' $ac_executable_extensions; do
9289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9290 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9292 break 2
9294 done
9295 done
9298 esac
9300 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9302 if test -n "$DLLTOOL_FOR_TARGET"; then
9303 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9304 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9305 else
9306 echo "$as_me:$LINENO: result: no" >&5
9307 echo "${ECHO_T}no" >&6
9311 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9314 if test -n "$DLLTOOL_FOR_TARGET"; then
9315 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
9316 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9317 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9320 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9321 for ncn_progname in dlltool; do
9322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9323 set dummy ${ncn_progname}; ac_word=$2
9324 echo "$as_me:$LINENO: checking for $ac_word" >&5
9325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9326 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329 if test -n "$DLLTOOL_FOR_TARGET"; then
9330 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9331 else
9332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 for as_dir in $PATH
9335 IFS=$as_save_IFS
9336 test -z "$as_dir" && as_dir=.
9337 for ac_exec_ext in '' $ac_executable_extensions; do
9338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9339 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9341 break 2
9343 done
9344 done
9348 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9349 if test -n "$DLLTOOL_FOR_TARGET"; then
9350 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9351 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9352 else
9353 echo "$as_me:$LINENO: result: no" >&5
9354 echo "${ECHO_T}no" >&6
9357 done
9360 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
9361 for ncn_progname in dlltool; do
9362 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9363 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9364 if test -x $with_build_time_tools/${ncn_progname}; then
9365 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9366 echo "$as_me:$LINENO: result: yes" >&5
9367 echo "${ECHO_T}yes" >&6
9368 break
9369 else
9370 echo "$as_me:$LINENO: result: no" >&5
9371 echo "${ECHO_T}no" >&6
9373 done
9376 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
9377 for ncn_progname in dlltool; do
9378 if test -n "$ncn_target_tool_prefix"; then
9379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9381 echo "$as_me:$LINENO: checking for $ac_word" >&5
9382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9383 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386 if test -n "$DLLTOOL_FOR_TARGET"; then
9387 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9388 else
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9396 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9400 done
9401 done
9405 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9406 if test -n "$DLLTOOL_FOR_TARGET"; then
9407 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9408 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9409 else
9410 echo "$as_me:$LINENO: result: no" >&5
9411 echo "${ECHO_T}no" >&6
9415 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
9416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9417 set dummy ${ncn_progname}; ac_word=$2
9418 echo "$as_me:$LINENO: checking for $ac_word" >&5
9419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9420 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 if test -n "$DLLTOOL_FOR_TARGET"; then
9424 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9433 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
9434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9437 done
9438 done
9442 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
9443 if test -n "$DLLTOOL_FOR_TARGET"; then
9444 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
9445 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
9446 else
9447 echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6
9452 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
9453 done
9456 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
9457 set dummy dlltool
9458 if test $build = $target ; then
9459 DLLTOOL_FOR_TARGET="$2"
9460 else
9461 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
9463 else
9464 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
9467 else
9468 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
9474 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9475 if test -n "$with_build_time_tools"; then
9476 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
9477 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
9478 if test -x $with_build_time_tools/ld; then
9479 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
9480 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9481 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
9482 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
9483 else
9484 echo "$as_me:$LINENO: result: no" >&5
9485 echo "${ECHO_T}no" >&6
9487 elif test $build != $host && test $have_gcc_for_target = yes; then
9488 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
9489 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
9490 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
9493 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9494 # Extract the first word of "ld", so it can be a program name with args.
9495 set dummy ld; ac_word=$2
9496 echo "$as_me:$LINENO: checking for $ac_word" >&5
9497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9498 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 case $LD_FOR_TARGET in
9502 [\\/]* | ?:[\\/]*)
9503 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
9506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9507 for as_dir in $gcc_cv_tool_dirs
9509 IFS=$as_save_IFS
9510 test -z "$as_dir" && as_dir=.
9511 for ac_exec_ext in '' $ac_executable_extensions; do
9512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9513 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9515 break 2
9517 done
9518 done
9521 esac
9523 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9525 if test -n "$LD_FOR_TARGET"; then
9526 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9527 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9528 else
9529 echo "$as_me:$LINENO: result: no" >&5
9530 echo "${ECHO_T}no" >&6
9534 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9537 if test -n "$LD_FOR_TARGET"; then
9538 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
9539 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9540 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9543 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
9544 for ncn_progname in ld; do
9545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9546 set dummy ${ncn_progname}; ac_word=$2
9547 echo "$as_me:$LINENO: checking for $ac_word" >&5
9548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9549 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552 if test -n "$LD_FOR_TARGET"; then
9553 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9562 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 break 2
9566 done
9567 done
9571 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9572 if test -n "$LD_FOR_TARGET"; then
9573 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9574 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9575 else
9576 echo "$as_me:$LINENO: result: no" >&5
9577 echo "${ECHO_T}no" >&6
9580 done
9583 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
9584 for ncn_progname in ld; do
9585 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9586 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9587 if test -x $with_build_time_tools/${ncn_progname}; then
9588 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9589 echo "$as_me:$LINENO: result: yes" >&5
9590 echo "${ECHO_T}yes" >&6
9591 break
9592 else
9593 echo "$as_me:$LINENO: result: no" >&5
9594 echo "${ECHO_T}no" >&6
9596 done
9599 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
9600 for ncn_progname in ld; do
9601 if test -n "$ncn_target_tool_prefix"; then
9602 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9603 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9604 echo "$as_me:$LINENO: checking for $ac_word" >&5
9605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9606 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 if test -n "$LD_FOR_TARGET"; then
9610 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9611 else
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 break 2
9623 done
9624 done
9628 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9629 if test -n "$LD_FOR_TARGET"; then
9630 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9631 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634 echo "${ECHO_T}no" >&6
9638 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
9639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9640 set dummy ${ncn_progname}; ac_word=$2
9641 echo "$as_me:$LINENO: checking for $ac_word" >&5
9642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9643 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 if test -n "$LD_FOR_TARGET"; then
9647 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
9648 else
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in $PATH
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9656 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
9657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9660 done
9661 done
9665 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
9666 if test -n "$LD_FOR_TARGET"; then
9667 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
9668 echo "${ECHO_T}$LD_FOR_TARGET" >&6
9669 else
9670 echo "$as_me:$LINENO: result: no" >&5
9671 echo "${ECHO_T}no" >&6
9675 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
9676 done
9679 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
9680 set dummy ld
9681 if test $build = $target ; then
9682 LD_FOR_TARGET="$2"
9683 else
9684 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
9686 else
9687 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
9690 else
9691 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
9697 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9698 if test -n "$with_build_time_tools"; then
9699 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
9700 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
9701 if test -x $with_build_time_tools/lipo; then
9702 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
9703 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9704 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
9705 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
9706 else
9707 echo "$as_me:$LINENO: result: no" >&5
9708 echo "${ECHO_T}no" >&6
9710 elif test $build != $host && test $have_gcc_for_target = yes; then
9711 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
9712 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
9713 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9716 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9717 # Extract the first word of "lipo", so it can be a program name with args.
9718 set dummy lipo; ac_word=$2
9719 echo "$as_me:$LINENO: checking for $ac_word" >&5
9720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9721 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 case $LIPO_FOR_TARGET in
9725 [\\/]* | ?:[\\/]*)
9726 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730 for as_dir in $gcc_cv_tool_dirs
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9736 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9740 done
9741 done
9744 esac
9746 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9748 if test -n "$LIPO_FOR_TARGET"; then
9749 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9750 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9751 else
9752 echo "$as_me:$LINENO: result: no" >&5
9753 echo "${ECHO_T}no" >&6
9757 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
9760 if test -n "$LIPO_FOR_TARGET"; then
9761 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
9762 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9763 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9766 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
9767 for ncn_progname in lipo; do
9768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9769 set dummy ${ncn_progname}; ac_word=$2
9770 echo "$as_me:$LINENO: checking for $ac_word" >&5
9771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9772 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 else
9775 if test -n "$LIPO_FOR_TARGET"; then
9776 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9777 else
9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779 for as_dir in $PATH
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9785 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9789 done
9790 done
9794 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9795 if test -n "$LIPO_FOR_TARGET"; then
9796 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9797 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9798 else
9799 echo "$as_me:$LINENO: result: no" >&5
9800 echo "${ECHO_T}no" >&6
9803 done
9806 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
9807 for ncn_progname in lipo; do
9808 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9809 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9810 if test -x $with_build_time_tools/${ncn_progname}; then
9811 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9812 echo "$as_me:$LINENO: result: yes" >&5
9813 echo "${ECHO_T}yes" >&6
9814 break
9815 else
9816 echo "$as_me:$LINENO: result: no" >&5
9817 echo "${ECHO_T}no" >&6
9819 done
9822 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
9823 for ncn_progname in lipo; do
9824 if test -n "$ncn_target_tool_prefix"; then
9825 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9826 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9827 echo "$as_me:$LINENO: checking for $ac_word" >&5
9828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9829 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832 if test -n "$LIPO_FOR_TARGET"; then
9833 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9834 else
9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 for as_dir in $PATH
9838 IFS=$as_save_IFS
9839 test -z "$as_dir" && as_dir=.
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9842 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9844 break 2
9846 done
9847 done
9851 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9852 if test -n "$LIPO_FOR_TARGET"; then
9853 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9854 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9855 else
9856 echo "$as_me:$LINENO: result: no" >&5
9857 echo "${ECHO_T}no" >&6
9861 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
9862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9863 set dummy ${ncn_progname}; ac_word=$2
9864 echo "$as_me:$LINENO: checking for $ac_word" >&5
9865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9866 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
9869 if test -n "$LIPO_FOR_TARGET"; then
9870 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
9871 else
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9879 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
9880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9888 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9889 if test -n "$LIPO_FOR_TARGET"; then
9890 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
9891 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
9892 else
9893 echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6
9898 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
9899 done
9902 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
9903 set dummy lipo
9904 if test $build = $target ; then
9905 LIPO_FOR_TARGET="$2"
9906 else
9907 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
9909 else
9910 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9913 else
9914 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9920 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9921 if test -n "$with_build_time_tools"; then
9922 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
9923 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
9924 if test -x $with_build_time_tools/nm; then
9925 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
9926 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9927 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
9928 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
9929 else
9930 echo "$as_me:$LINENO: result: no" >&5
9931 echo "${ECHO_T}no" >&6
9933 elif test $build != $host && test $have_gcc_for_target = yes; then
9934 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
9935 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
9936 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
9939 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9940 # Extract the first word of "nm", so it can be a program name with args.
9941 set dummy nm; ac_word=$2
9942 echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9944 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 else
9947 case $NM_FOR_TARGET in
9948 [\\/]* | ?:[\\/]*)
9949 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $gcc_cv_tool_dirs
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9963 done
9964 done
9967 esac
9969 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
9971 if test -n "$NM_FOR_TARGET"; then
9972 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
9973 echo "${ECHO_T}$NM_FOR_TARGET" >&6
9974 else
9975 echo "$as_me:$LINENO: result: no" >&5
9976 echo "${ECHO_T}no" >&6
9980 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9983 if test -n "$NM_FOR_TARGET"; then
9984 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
9985 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9986 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
9989 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
9990 for ncn_progname in nm; do
9991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9992 set dummy ${ncn_progname}; ac_word=$2
9993 echo "$as_me:$LINENO: checking for $ac_word" >&5
9994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9995 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 if test -n "$NM_FOR_TARGET"; then
9999 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10000 else
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10004 IFS=$as_save_IFS
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10010 break 2
10012 done
10013 done
10017 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10018 if test -n "$NM_FOR_TARGET"; then
10019 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10020 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10021 else
10022 echo "$as_me:$LINENO: result: no" >&5
10023 echo "${ECHO_T}no" >&6
10026 done
10029 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
10030 for ncn_progname in nm; do
10031 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10032 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10033 if test -x $with_build_time_tools/${ncn_progname}; then
10034 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10035 echo "$as_me:$LINENO: result: yes" >&5
10036 echo "${ECHO_T}yes" >&6
10037 break
10038 else
10039 echo "$as_me:$LINENO: result: no" >&5
10040 echo "${ECHO_T}no" >&6
10042 done
10045 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
10046 for ncn_progname in nm; do
10047 if test -n "$ncn_target_tool_prefix"; then
10048 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10049 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10050 echo "$as_me:$LINENO: checking for $ac_word" >&5
10051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10052 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 else
10055 if test -n "$NM_FOR_TARGET"; then
10056 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10057 else
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10069 done
10070 done
10074 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10075 if test -n "$NM_FOR_TARGET"; then
10076 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10077 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10078 else
10079 echo "$as_me:$LINENO: result: no" >&5
10080 echo "${ECHO_T}no" >&6
10084 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
10085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10086 set dummy ${ncn_progname}; ac_word=$2
10087 echo "$as_me:$LINENO: checking for $ac_word" >&5
10088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10089 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092 if test -n "$NM_FOR_TARGET"; then
10093 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
10094 else
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
10103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10106 done
10107 done
10111 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
10112 if test -n "$NM_FOR_TARGET"; then
10113 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
10114 echo "${ECHO_T}$NM_FOR_TARGET" >&6
10115 else
10116 echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6
10121 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
10122 done
10125 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
10126 set dummy nm
10127 if test $build = $target ; then
10128 NM_FOR_TARGET="$2"
10129 else
10130 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
10132 else
10133 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
10136 else
10137 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
10143 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10144 if test -n "$with_build_time_tools"; then
10145 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
10146 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
10147 if test -x $with_build_time_tools/objdump; then
10148 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
10149 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10150 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
10151 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
10152 else
10153 echo "$as_me:$LINENO: result: no" >&5
10154 echo "${ECHO_T}no" >&6
10156 elif test $build != $host && test $have_gcc_for_target = yes; then
10157 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
10158 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
10159 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10162 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10163 # Extract the first word of "objdump", so it can be a program name with args.
10164 set dummy objdump; ac_word=$2
10165 echo "$as_me:$LINENO: checking for $ac_word" >&5
10166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10167 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170 case $OBJDUMP_FOR_TARGET in
10171 [\\/]* | ?:[\\/]*)
10172 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $gcc_cv_tool_dirs
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10182 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10186 done
10187 done
10190 esac
10192 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10194 if test -n "$OBJDUMP_FOR_TARGET"; then
10195 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10196 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10197 else
10198 echo "$as_me:$LINENO: result: no" >&5
10199 echo "${ECHO_T}no" >&6
10203 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
10206 if test -n "$OBJDUMP_FOR_TARGET"; then
10207 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
10208 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10209 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10212 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10213 for ncn_progname in objdump; do
10214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10215 set dummy ${ncn_progname}; ac_word=$2
10216 echo "$as_me:$LINENO: checking for $ac_word" >&5
10217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221 if test -n "$OBJDUMP_FOR_TARGET"; then
10222 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10223 else
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10240 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10241 if test -n "$OBJDUMP_FOR_TARGET"; then
10242 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10243 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10244 else
10245 echo "$as_me:$LINENO: result: no" >&5
10246 echo "${ECHO_T}no" >&6
10249 done
10252 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10253 for ncn_progname in objdump; do
10254 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10255 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10256 if test -x $with_build_time_tools/${ncn_progname}; then
10257 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10258 echo "$as_me:$LINENO: result: yes" >&5
10259 echo "${ECHO_T}yes" >&6
10260 break
10261 else
10262 echo "$as_me:$LINENO: result: no" >&5
10263 echo "${ECHO_T}no" >&6
10265 done
10268 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
10269 for ncn_progname in objdump; do
10270 if test -n "$ncn_target_tool_prefix"; then
10271 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10272 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10273 echo "$as_me:$LINENO: checking for $ac_word" >&5
10274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10275 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 else
10278 if test -n "$OBJDUMP_FOR_TARGET"; then
10279 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10280 else
10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10284 IFS=$as_save_IFS
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
10287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10288 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10290 break 2
10292 done
10293 done
10297 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10298 if test -n "$OBJDUMP_FOR_TARGET"; then
10299 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10300 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10301 else
10302 echo "$as_me:$LINENO: result: no" >&5
10303 echo "${ECHO_T}no" >&6
10307 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
10308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10309 set dummy ${ncn_progname}; ac_word=$2
10310 echo "$as_me:$LINENO: checking for $ac_word" >&5
10311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10312 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315 if test -n "$OBJDUMP_FOR_TARGET"; then
10316 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
10317 else
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
10326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 break 2
10329 done
10330 done
10334 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
10335 if test -n "$OBJDUMP_FOR_TARGET"; then
10336 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
10337 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
10338 else
10339 echo "$as_me:$LINENO: result: no" >&5
10340 echo "${ECHO_T}no" >&6
10344 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
10345 done
10348 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
10349 set dummy objdump
10350 if test $build = $target ; then
10351 OBJDUMP_FOR_TARGET="$2"
10352 else
10353 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10355 else
10356 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
10359 else
10360 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
10366 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10367 if test -n "$with_build_time_tools"; then
10368 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
10369 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
10370 if test -x $with_build_time_tools/ranlib; then
10371 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
10372 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10373 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
10374 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
10375 else
10376 echo "$as_me:$LINENO: result: no" >&5
10377 echo "${ECHO_T}no" >&6
10379 elif test $build != $host && test $have_gcc_for_target = yes; then
10380 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
10381 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
10382 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10385 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10386 # Extract the first word of "ranlib", so it can be a program name with args.
10387 set dummy ranlib; ac_word=$2
10388 echo "$as_me:$LINENO: checking for $ac_word" >&5
10389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10390 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393 case $RANLIB_FOR_TARGET in
10394 [\\/]* | ?:[\\/]*)
10395 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $gcc_cv_tool_dirs
10401 IFS=$as_save_IFS
10402 test -z "$as_dir" && as_dir=.
10403 for ac_exec_ext in '' $ac_executable_extensions; do
10404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10405 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 break 2
10409 done
10410 done
10413 esac
10415 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10417 if test -n "$RANLIB_FOR_TARGET"; then
10418 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10419 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10420 else
10421 echo "$as_me:$LINENO: result: no" >&5
10422 echo "${ECHO_T}no" >&6
10426 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
10429 if test -n "$RANLIB_FOR_TARGET"; then
10430 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
10431 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10432 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10435 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10436 for ncn_progname in ranlib; do
10437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10438 set dummy ${ncn_progname}; ac_word=$2
10439 echo "$as_me:$LINENO: checking for $ac_word" >&5
10440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10441 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444 if test -n "$RANLIB_FOR_TARGET"; then
10445 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10446 else
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10463 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10464 if test -n "$RANLIB_FOR_TARGET"; then
10465 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10466 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10467 else
10468 echo "$as_me:$LINENO: result: no" >&5
10469 echo "${ECHO_T}no" >&6
10472 done
10475 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
10476 for ncn_progname in ranlib; do
10477 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10478 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10479 if test -x $with_build_time_tools/${ncn_progname}; then
10480 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10481 echo "$as_me:$LINENO: result: yes" >&5
10482 echo "${ECHO_T}yes" >&6
10483 break
10484 else
10485 echo "$as_me:$LINENO: result: no" >&5
10486 echo "${ECHO_T}no" >&6
10488 done
10491 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
10492 for ncn_progname in ranlib; do
10493 if test -n "$ncn_target_tool_prefix"; then
10494 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10495 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10496 echo "$as_me:$LINENO: checking for $ac_word" >&5
10497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501 if test -n "$RANLIB_FOR_TARGET"; then
10502 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10503 else
10504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505 for as_dir in $PATH
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10515 done
10516 done
10520 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10521 if test -n "$RANLIB_FOR_TARGET"; then
10522 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10523 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10524 else
10525 echo "$as_me:$LINENO: result: no" >&5
10526 echo "${ECHO_T}no" >&6
10530 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
10531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10532 set dummy ${ncn_progname}; ac_word=$2
10533 echo "$as_me:$LINENO: checking for $ac_word" >&5
10534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10535 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 if test -n "$RANLIB_FOR_TARGET"; then
10539 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
10540 else
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 for as_dir in $PATH
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
10546 for ac_exec_ext in '' $ac_executable_extensions; do
10547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10548 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
10549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10550 break 2
10552 done
10553 done
10557 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
10558 if test -n "$RANLIB_FOR_TARGET"; then
10559 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
10560 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
10561 else
10562 echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6
10567 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
10568 done
10571 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
10572 set dummy ranlib
10573 if test $build = $target ; then
10574 RANLIB_FOR_TARGET="$2"
10575 else
10576 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
10578 else
10579 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
10582 else
10583 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
10589 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10590 if test -n "$with_build_time_tools"; then
10591 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
10592 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
10593 if test -x $with_build_time_tools/strip; then
10594 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
10595 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10596 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
10597 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
10598 else
10599 echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6
10602 elif test $build != $host && test $have_gcc_for_target = yes; then
10603 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
10604 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
10605 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10608 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10609 # Extract the first word of "strip", so it can be a program name with args.
10610 set dummy strip; ac_word=$2
10611 echo "$as_me:$LINENO: checking for $ac_word" >&5
10612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10613 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 else
10616 case $STRIP_FOR_TARGET in
10617 [\\/]* | ?:[\\/]*)
10618 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
10621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622 for as_dir in $gcc_cv_tool_dirs
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10628 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 break 2
10632 done
10633 done
10636 esac
10638 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10640 if test -n "$STRIP_FOR_TARGET"; then
10641 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10642 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10643 else
10644 echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6
10649 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
10652 if test -n "$STRIP_FOR_TARGET"; then
10653 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
10654 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10655 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10658 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
10659 for ncn_progname in strip; do
10660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10661 set dummy ${ncn_progname}; ac_word=$2
10662 echo "$as_me:$LINENO: checking for $ac_word" >&5
10663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10664 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666 else
10667 if test -n "$STRIP_FOR_TARGET"; then
10668 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10669 else
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10681 done
10682 done
10686 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10687 if test -n "$STRIP_FOR_TARGET"; then
10688 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10689 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10690 else
10691 echo "$as_me:$LINENO: result: no" >&5
10692 echo "${ECHO_T}no" >&6
10695 done
10698 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
10699 for ncn_progname in strip; do
10700 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10701 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10702 if test -x $with_build_time_tools/${ncn_progname}; then
10703 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10704 echo "$as_me:$LINENO: result: yes" >&5
10705 echo "${ECHO_T}yes" >&6
10706 break
10707 else
10708 echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6
10711 done
10714 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
10715 for ncn_progname in strip; do
10716 if test -n "$ncn_target_tool_prefix"; then
10717 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10718 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10719 echo "$as_me:$LINENO: checking for $ac_word" >&5
10720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10721 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 else
10724 if test -n "$STRIP_FOR_TARGET"; then
10725 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10726 else
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10734 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10738 done
10739 done
10743 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10744 if test -n "$STRIP_FOR_TARGET"; then
10745 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10746 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10747 else
10748 echo "$as_me:$LINENO: result: no" >&5
10749 echo "${ECHO_T}no" >&6
10753 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
10754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10755 set dummy ${ncn_progname}; ac_word=$2
10756 echo "$as_me:$LINENO: checking for $ac_word" >&5
10757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10758 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761 if test -n "$STRIP_FOR_TARGET"; then
10762 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
10763 else
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10771 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
10772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10775 done
10776 done
10780 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
10781 if test -n "$STRIP_FOR_TARGET"; then
10782 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
10783 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
10784 else
10785 echo "$as_me:$LINENO: result: no" >&5
10786 echo "${ECHO_T}no" >&6
10790 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
10791 done
10794 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
10795 set dummy strip
10796 if test $build = $target ; then
10797 STRIP_FOR_TARGET="$2"
10798 else
10799 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
10801 else
10802 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
10805 else
10806 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
10812 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10813 if test -n "$with_build_time_tools"; then
10814 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
10815 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
10816 if test -x $with_build_time_tools/windres; then
10817 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
10818 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10819 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
10820 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
10821 else
10822 echo "$as_me:$LINENO: result: no" >&5
10823 echo "${ECHO_T}no" >&6
10825 elif test $build != $host && test $have_gcc_for_target = yes; then
10826 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
10827 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
10828 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10831 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10832 # Extract the first word of "windres", so it can be a program name with args.
10833 set dummy windres; ac_word=$2
10834 echo "$as_me:$LINENO: checking for $ac_word" >&5
10835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10836 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 else
10839 case $WINDRES_FOR_TARGET in
10840 [\\/]* | ?:[\\/]*)
10841 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $gcc_cv_tool_dirs
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10855 done
10856 done
10859 esac
10861 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
10863 if test -n "$WINDRES_FOR_TARGET"; then
10864 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10865 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10866 else
10867 echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6
10872 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
10875 if test -n "$WINDRES_FOR_TARGET"; then
10876 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
10877 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10878 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10881 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10882 for ncn_progname in windres; do
10883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10884 set dummy ${ncn_progname}; ac_word=$2
10885 echo "$as_me:$LINENO: checking for $ac_word" >&5
10886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10887 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 else
10890 if test -n "$WINDRES_FOR_TARGET"; then
10891 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10892 else
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10900 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10904 done
10905 done
10909 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10910 if test -n "$WINDRES_FOR_TARGET"; then
10911 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10912 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10913 else
10914 echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6
10918 done
10921 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
10922 for ncn_progname in windres; do
10923 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
10924 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
10925 if test -x $with_build_time_tools/${ncn_progname}; then
10926 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10927 echo "$as_me:$LINENO: result: yes" >&5
10928 echo "${ECHO_T}yes" >&6
10929 break
10930 else
10931 echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6
10934 done
10937 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
10938 for ncn_progname in windres; do
10939 if test -n "$ncn_target_tool_prefix"; then
10940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10941 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10942 echo "$as_me:$LINENO: checking for $ac_word" >&5
10943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 if test -n "$WINDRES_FOR_TARGET"; then
10948 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10949 else
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10961 done
10962 done
10966 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
10967 if test -n "$WINDRES_FOR_TARGET"; then
10968 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
10969 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
10970 else
10971 echo "$as_me:$LINENO: result: no" >&5
10972 echo "${ECHO_T}no" >&6
10976 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
10977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10978 set dummy ${ncn_progname}; ac_word=$2
10979 echo "$as_me:$LINENO: checking for $ac_word" >&5
10980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10981 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984 if test -n "$WINDRES_FOR_TARGET"; then
10985 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
10986 else
10987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988 for as_dir in $PATH
10990 IFS=$as_save_IFS
10991 test -z "$as_dir" && as_dir=.
10992 for ac_exec_ext in '' $ac_executable_extensions; do
10993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10994 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
10995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 break 2
10998 done
10999 done
11003 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11004 if test -n "$WINDRES_FOR_TARGET"; then
11005 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
11006 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
11007 else
11008 echo "$as_me:$LINENO: result: no" >&5
11009 echo "${ECHO_T}no" >&6
11013 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
11014 done
11017 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
11018 set dummy windres
11019 if test $build = $target ; then
11020 WINDRES_FOR_TARGET="$2"
11021 else
11022 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
11024 else
11025 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
11028 else
11029 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
11035 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11036 if test -n "$with_build_time_tools"; then
11037 echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
11038 echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
11039 if test -x $with_build_time_tools/windmc; then
11040 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
11041 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11042 echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
11043 echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
11044 else
11045 echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6
11048 elif test $build != $host && test $have_gcc_for_target = yes; then
11049 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
11050 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
11051 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11054 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11055 # Extract the first word of "windmc", so it can be a program name with args.
11056 set dummy windmc; ac_word=$2
11057 echo "$as_me:$LINENO: checking for $ac_word" >&5
11058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11059 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062 case $WINDMC_FOR_TARGET in
11063 [\\/]* | ?:[\\/]*)
11064 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $gcc_cv_tool_dirs
11070 IFS=$as_save_IFS
11071 test -z "$as_dir" && as_dir=.
11072 for ac_exec_ext in '' $ac_executable_extensions; do
11073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11074 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11076 break 2
11078 done
11079 done
11082 esac
11084 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11086 if test -n "$WINDMC_FOR_TARGET"; then
11087 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11088 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11089 else
11090 echo "$as_me:$LINENO: result: no" >&5
11091 echo "${ECHO_T}no" >&6
11095 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
11098 if test -n "$WINDMC_FOR_TARGET"; then
11099 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
11100 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11101 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11104 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11105 for ncn_progname in windmc; do
11106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11107 set dummy ${ncn_progname}; ac_word=$2
11108 echo "$as_me:$LINENO: checking for $ac_word" >&5
11109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11110 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 if test -n "$WINDMC_FOR_TARGET"; then
11114 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 break 2
11127 done
11128 done
11132 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11133 if test -n "$WINDMC_FOR_TARGET"; then
11134 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11135 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11136 else
11137 echo "$as_me:$LINENO: result: no" >&5
11138 echo "${ECHO_T}no" >&6
11141 done
11144 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11145 for ncn_progname in windmc; do
11146 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
11147 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
11148 if test -x $with_build_time_tools/${ncn_progname}; then
11149 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11150 echo "$as_me:$LINENO: result: yes" >&5
11151 echo "${ECHO_T}yes" >&6
11152 break
11153 else
11154 echo "$as_me:$LINENO: result: no" >&5
11155 echo "${ECHO_T}no" >&6
11157 done
11160 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
11161 for ncn_progname in windmc; do
11162 if test -n "$ncn_target_tool_prefix"; then
11163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11164 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11165 echo "$as_me:$LINENO: checking for $ac_word" >&5
11166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 if test -n "$WINDMC_FOR_TARGET"; then
11171 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11172 else
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11184 done
11185 done
11189 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11190 if test -n "$WINDMC_FOR_TARGET"; then
11191 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11192 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11193 else
11194 echo "$as_me:$LINENO: result: no" >&5
11195 echo "${ECHO_T}no" >&6
11199 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
11200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11201 set dummy ${ncn_progname}; ac_word=$2
11202 echo "$as_me:$LINENO: checking for $ac_word" >&5
11203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11204 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 if test -n "$WINDMC_FOR_TARGET"; then
11208 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
11209 else
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11217 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
11218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11221 done
11222 done
11226 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
11227 if test -n "$WINDMC_FOR_TARGET"; then
11228 echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
11229 echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
11230 else
11231 echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6
11236 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
11237 done
11240 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
11241 set dummy windmc
11242 if test $build = $target ; then
11243 WINDMC_FOR_TARGET="$2"
11244 else
11245 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11247 else
11248 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
11251 else
11252 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
11256 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
11258 echo "$as_me:$LINENO: checking where to find the target ar" >&5
11259 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
11260 if test "x${build}" != "x${host}" ; then
11261 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11262 # We already found the complete path
11263 ac_dir=`dirname $AR_FOR_TARGET`
11264 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11265 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11266 else
11267 # Canadian cross, just use what we found
11268 echo "$as_me:$LINENO: result: pre-installed" >&5
11269 echo "${ECHO_T}pre-installed" >&6
11271 else
11272 ok=yes
11273 case " ${configdirs} " in
11274 *" binutils "*) ;;
11275 *) ok=no ;;
11276 esac
11278 if test $ok = yes; then
11279 # An in-tree tool is available and we can use it
11280 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
11281 echo "$as_me:$LINENO: result: just compiled" >&5
11282 echo "${ECHO_T}just compiled" >&6
11283 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
11284 # We already found the complete path
11285 ac_dir=`dirname $AR_FOR_TARGET`
11286 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11287 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11288 elif test "x$target" = "x$host"; then
11289 # We can use an host tool
11290 AR_FOR_TARGET='$(AR)'
11291 echo "$as_me:$LINENO: result: host tool" >&5
11292 echo "${ECHO_T}host tool" >&6
11293 else
11294 # We need a cross tool
11295 echo "$as_me:$LINENO: result: pre-installed" >&5
11296 echo "${ECHO_T}pre-installed" >&6
11300 echo "$as_me:$LINENO: checking where to find the target as" >&5
11301 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
11302 if test "x${build}" != "x${host}" ; then
11303 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11304 # We already found the complete path
11305 ac_dir=`dirname $AS_FOR_TARGET`
11306 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11307 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11308 else
11309 # Canadian cross, just use what we found
11310 echo "$as_me:$LINENO: result: pre-installed" >&5
11311 echo "${ECHO_T}pre-installed" >&6
11313 else
11314 ok=yes
11315 case " ${configdirs} " in
11316 *" gas "*) ;;
11317 *) ok=no ;;
11318 esac
11320 if test $ok = yes; then
11321 # An in-tree tool is available and we can use it
11322 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
11323 echo "$as_me:$LINENO: result: just compiled" >&5
11324 echo "${ECHO_T}just compiled" >&6
11325 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
11326 # We already found the complete path
11327 ac_dir=`dirname $AS_FOR_TARGET`
11328 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11329 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11330 elif test "x$target" = "x$host"; then
11331 # We can use an host tool
11332 AS_FOR_TARGET='$(AS)'
11333 echo "$as_me:$LINENO: result: host tool" >&5
11334 echo "${ECHO_T}host tool" >&6
11335 else
11336 # We need a cross tool
11337 echo "$as_me:$LINENO: result: pre-installed" >&5
11338 echo "${ECHO_T}pre-installed" >&6
11342 echo "$as_me:$LINENO: checking where to find the target cc" >&5
11343 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
11344 if test "x${build}" != "x${host}" ; then
11345 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11346 # We already found the complete path
11347 ac_dir=`dirname $CC_FOR_TARGET`
11348 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11349 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11350 else
11351 # Canadian cross, just use what we found
11352 echo "$as_me:$LINENO: result: pre-installed" >&5
11353 echo "${ECHO_T}pre-installed" >&6
11355 else
11356 ok=yes
11357 case " ${configdirs} " in
11358 *" gcc "*) ;;
11359 *) ok=no ;;
11360 esac
11362 if test $ok = yes; then
11363 # An in-tree tool is available and we can use it
11364 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11365 echo "$as_me:$LINENO: result: just compiled" >&5
11366 echo "${ECHO_T}just compiled" >&6
11367 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
11368 # We already found the complete path
11369 ac_dir=`dirname $CC_FOR_TARGET`
11370 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11371 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11372 elif test "x$target" = "x$host"; then
11373 # We can use an host tool
11374 CC_FOR_TARGET='$(CC)'
11375 echo "$as_me:$LINENO: result: host tool" >&5
11376 echo "${ECHO_T}host tool" >&6
11377 else
11378 # We need a cross tool
11379 echo "$as_me:$LINENO: result: pre-installed" >&5
11380 echo "${ECHO_T}pre-installed" >&6
11384 echo "$as_me:$LINENO: checking where to find the target c++" >&5
11385 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
11386 if test "x${build}" != "x${host}" ; then
11387 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11388 # We already found the complete path
11389 ac_dir=`dirname $CXX_FOR_TARGET`
11390 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11391 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11392 else
11393 # Canadian cross, just use what we found
11394 echo "$as_me:$LINENO: result: pre-installed" >&5
11395 echo "${ECHO_T}pre-installed" >&6
11397 else
11398 ok=yes
11399 case " ${configdirs} " in
11400 *" gcc "*) ;;
11401 *) ok=no ;;
11402 esac
11403 case ,${enable_languages}, in
11404 *,c++,*) ;;
11405 *) ok=no ;;
11406 esac
11407 if test $ok = yes; then
11408 # An in-tree tool is available and we can use it
11409 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'
11410 echo "$as_me:$LINENO: result: just compiled" >&5
11411 echo "${ECHO_T}just compiled" >&6
11412 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
11413 # We already found the complete path
11414 ac_dir=`dirname $CXX_FOR_TARGET`
11415 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11416 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11417 elif test "x$target" = "x$host"; then
11418 # We can use an host tool
11419 CXX_FOR_TARGET='$(CXX)'
11420 echo "$as_me:$LINENO: result: host tool" >&5
11421 echo "${ECHO_T}host tool" >&6
11422 else
11423 # We need a cross tool
11424 echo "$as_me:$LINENO: result: pre-installed" >&5
11425 echo "${ECHO_T}pre-installed" >&6
11429 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
11430 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
11431 if test "x${build}" != "x${host}" ; then
11432 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11433 # We already found the complete path
11434 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11435 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11436 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11437 else
11438 # Canadian cross, just use what we found
11439 echo "$as_me:$LINENO: result: pre-installed" >&5
11440 echo "${ECHO_T}pre-installed" >&6
11442 else
11443 ok=yes
11444 case " ${configdirs} " in
11445 *" gcc "*) ;;
11446 *) ok=no ;;
11447 esac
11448 case ,${enable_languages}, in
11449 *,c++,*) ;;
11450 *) ok=no ;;
11451 esac
11452 if test $ok = yes; then
11453 # An in-tree tool is available and we can use it
11454 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'
11455 echo "$as_me:$LINENO: result: just compiled" >&5
11456 echo "${ECHO_T}just compiled" >&6
11457 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
11458 # We already found the complete path
11459 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
11460 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11461 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11462 elif test "x$target" = "x$host"; then
11463 # We can use an host tool
11464 RAW_CXX_FOR_TARGET='$(CXX)'
11465 echo "$as_me:$LINENO: result: host tool" >&5
11466 echo "${ECHO_T}host tool" >&6
11467 else
11468 # We need a cross tool
11469 echo "$as_me:$LINENO: result: pre-installed" >&5
11470 echo "${ECHO_T}pre-installed" >&6
11474 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
11475 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
11476 if test "x${build}" != "x${host}" ; then
11477 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11478 # We already found the complete path
11479 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11480 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11481 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11482 else
11483 # Canadian cross, just use what we found
11484 echo "$as_me:$LINENO: result: pre-installed" >&5
11485 echo "${ECHO_T}pre-installed" >&6
11487 else
11488 ok=yes
11489 case " ${configdirs} " in
11490 *" binutils "*) ;;
11491 *) ok=no ;;
11492 esac
11494 if test $ok = yes; then
11495 # An in-tree tool is available and we can use it
11496 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
11497 echo "$as_me:$LINENO: result: just compiled" >&5
11498 echo "${ECHO_T}just compiled" >&6
11499 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
11500 # We already found the complete path
11501 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
11502 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11503 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11504 elif test "x$target" = "x$host"; then
11505 # We can use an host tool
11506 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
11507 echo "$as_me:$LINENO: result: host tool" >&5
11508 echo "${ECHO_T}host tool" >&6
11509 else
11510 # We need a cross tool
11511 echo "$as_me:$LINENO: result: pre-installed" >&5
11512 echo "${ECHO_T}pre-installed" >&6
11516 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
11517 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
11518 if test "x${build}" != "x${host}" ; then
11519 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11520 # We already found the complete path
11521 ac_dir=`dirname $GCC_FOR_TARGET`
11522 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11523 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11524 else
11525 # Canadian cross, just use what we found
11526 echo "$as_me:$LINENO: result: pre-installed" >&5
11527 echo "${ECHO_T}pre-installed" >&6
11529 else
11530 ok=yes
11531 case " ${configdirs} " in
11532 *" gcc "*) ;;
11533 *) ok=no ;;
11534 esac
11536 if test $ok = yes; then
11537 # An in-tree tool is available and we can use it
11538 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
11539 echo "$as_me:$LINENO: result: just compiled" >&5
11540 echo "${ECHO_T}just compiled" >&6
11541 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
11542 # We already found the complete path
11543 ac_dir=`dirname $GCC_FOR_TARGET`
11544 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11545 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11546 elif test "x$target" = "x$host"; then
11547 # We can use an host tool
11548 GCC_FOR_TARGET='$()'
11549 echo "$as_me:$LINENO: result: host tool" >&5
11550 echo "${ECHO_T}host tool" >&6
11551 else
11552 # We need a cross tool
11553 echo "$as_me:$LINENO: result: pre-installed" >&5
11554 echo "${ECHO_T}pre-installed" >&6
11558 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
11559 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
11560 if test "x${build}" != "x${host}" ; then
11561 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11562 # We already found the complete path
11563 ac_dir=`dirname $GCJ_FOR_TARGET`
11564 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11565 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11566 else
11567 # Canadian cross, just use what we found
11568 echo "$as_me:$LINENO: result: pre-installed" >&5
11569 echo "${ECHO_T}pre-installed" >&6
11571 else
11572 ok=yes
11573 case " ${configdirs} " in
11574 *" gcc "*) ;;
11575 *) ok=no ;;
11576 esac
11577 case ,${enable_languages}, in
11578 *,java,*) ;;
11579 *) ok=no ;;
11580 esac
11581 if test $ok = yes; then
11582 # An in-tree tool is available and we can use it
11583 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
11584 echo "$as_me:$LINENO: result: just compiled" >&5
11585 echo "${ECHO_T}just compiled" >&6
11586 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
11587 # We already found the complete path
11588 ac_dir=`dirname $GCJ_FOR_TARGET`
11589 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11590 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11591 elif test "x$target" = "x$host"; then
11592 # We can use an host tool
11593 GCJ_FOR_TARGET='$(GCJ)'
11594 echo "$as_me:$LINENO: result: host tool" >&5
11595 echo "${ECHO_T}host tool" >&6
11596 else
11597 # We need a cross tool
11598 echo "$as_me:$LINENO: result: pre-installed" >&5
11599 echo "${ECHO_T}pre-installed" >&6
11603 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
11604 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
11605 if test "x${build}" != "x${host}" ; then
11606 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11607 # We already found the complete path
11608 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11609 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11610 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11611 else
11612 # Canadian cross, just use what we found
11613 echo "$as_me:$LINENO: result: pre-installed" >&5
11614 echo "${ECHO_T}pre-installed" >&6
11616 else
11617 ok=yes
11618 case " ${configdirs} " in
11619 *" gcc "*) ;;
11620 *) ok=no ;;
11621 esac
11622 case ,${enable_languages}, in
11623 *,fortran,*) ;;
11624 *) ok=no ;;
11625 esac
11626 if test $ok = yes; then
11627 # An in-tree tool is available and we can use it
11628 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
11629 echo "$as_me:$LINENO: result: just compiled" >&5
11630 echo "${ECHO_T}just compiled" >&6
11631 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
11632 # We already found the complete path
11633 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
11634 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11635 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11636 elif test "x$target" = "x$host"; then
11637 # We can use an host tool
11638 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
11639 echo "$as_me:$LINENO: result: host tool" >&5
11640 echo "${ECHO_T}host tool" >&6
11641 else
11642 # We need a cross tool
11643 echo "$as_me:$LINENO: result: pre-installed" >&5
11644 echo "${ECHO_T}pre-installed" >&6
11648 echo "$as_me:$LINENO: checking where to find the target ld" >&5
11649 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
11650 if test "x${build}" != "x${host}" ; then
11651 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11652 # We already found the complete path
11653 ac_dir=`dirname $LD_FOR_TARGET`
11654 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11655 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11656 else
11657 # Canadian cross, just use what we found
11658 echo "$as_me:$LINENO: result: pre-installed" >&5
11659 echo "${ECHO_T}pre-installed" >&6
11661 else
11662 ok=yes
11663 case " ${configdirs} " in
11664 *" ld "*) ;;
11665 *) ok=no ;;
11666 esac
11668 if test $ok = yes; then
11669 # An in-tree tool is available and we can use it
11670 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
11671 echo "$as_me:$LINENO: result: just compiled" >&5
11672 echo "${ECHO_T}just compiled" >&6
11673 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
11674 # We already found the complete path
11675 ac_dir=`dirname $LD_FOR_TARGET`
11676 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11677 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11678 elif test "x$target" = "x$host"; then
11679 # We can use an host tool
11680 LD_FOR_TARGET='$(LD)'
11681 echo "$as_me:$LINENO: result: host tool" >&5
11682 echo "${ECHO_T}host tool" >&6
11683 else
11684 # We need a cross tool
11685 echo "$as_me:$LINENO: result: pre-installed" >&5
11686 echo "${ECHO_T}pre-installed" >&6
11690 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
11691 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
11692 if test "x${build}" != "x${host}" ; then
11693 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11694 # We already found the complete path
11695 ac_dir=`dirname $LIPO_FOR_TARGET`
11696 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11697 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11698 else
11699 # Canadian cross, just use what we found
11700 echo "$as_me:$LINENO: result: pre-installed" >&5
11701 echo "${ECHO_T}pre-installed" >&6
11703 else
11704 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
11705 # We already found the complete path
11706 ac_dir=`dirname $LIPO_FOR_TARGET`
11707 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11708 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11709 elif test "x$target" = "x$host"; then
11710 # We can use an host tool
11711 LIPO_FOR_TARGET='$(LIPO)'
11712 echo "$as_me:$LINENO: result: host tool" >&5
11713 echo "${ECHO_T}host tool" >&6
11714 else
11715 # We need a cross tool
11716 echo "$as_me:$LINENO: result: pre-installed" >&5
11717 echo "${ECHO_T}pre-installed" >&6
11721 echo "$as_me:$LINENO: checking where to find the target nm" >&5
11722 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
11723 if test "x${build}" != "x${host}" ; then
11724 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11725 # We already found the complete path
11726 ac_dir=`dirname $NM_FOR_TARGET`
11727 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11728 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11729 else
11730 # Canadian cross, just use what we found
11731 echo "$as_me:$LINENO: result: pre-installed" >&5
11732 echo "${ECHO_T}pre-installed" >&6
11734 else
11735 ok=yes
11736 case " ${configdirs} " in
11737 *" binutils "*) ;;
11738 *) ok=no ;;
11739 esac
11741 if test $ok = yes; then
11742 # An in-tree tool is available and we can use it
11743 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
11744 echo "$as_me:$LINENO: result: just compiled" >&5
11745 echo "${ECHO_T}just compiled" >&6
11746 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
11747 # We already found the complete path
11748 ac_dir=`dirname $NM_FOR_TARGET`
11749 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11750 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11751 elif test "x$target" = "x$host"; then
11752 # We can use an host tool
11753 NM_FOR_TARGET='$(NM)'
11754 echo "$as_me:$LINENO: result: host tool" >&5
11755 echo "${ECHO_T}host tool" >&6
11756 else
11757 # We need a cross tool
11758 echo "$as_me:$LINENO: result: pre-installed" >&5
11759 echo "${ECHO_T}pre-installed" >&6
11763 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
11764 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
11765 if test "x${build}" != "x${host}" ; then
11766 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11767 # We already found the complete path
11768 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11769 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11770 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11771 else
11772 # Canadian cross, just use what we found
11773 echo "$as_me:$LINENO: result: pre-installed" >&5
11774 echo "${ECHO_T}pre-installed" >&6
11776 else
11777 ok=yes
11778 case " ${configdirs} " in
11779 *" binutils "*) ;;
11780 *) ok=no ;;
11781 esac
11783 if test $ok = yes; then
11784 # An in-tree tool is available and we can use it
11785 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
11786 echo "$as_me:$LINENO: result: just compiled" >&5
11787 echo "${ECHO_T}just compiled" >&6
11788 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
11789 # We already found the complete path
11790 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
11791 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11792 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11793 elif test "x$target" = "x$host"; then
11794 # We can use an host tool
11795 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
11796 echo "$as_me:$LINENO: result: host tool" >&5
11797 echo "${ECHO_T}host tool" >&6
11798 else
11799 # We need a cross tool
11800 echo "$as_me:$LINENO: result: pre-installed" >&5
11801 echo "${ECHO_T}pre-installed" >&6
11805 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
11806 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
11807 if test "x${build}" != "x${host}" ; then
11808 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11809 # We already found the complete path
11810 ac_dir=`dirname $RANLIB_FOR_TARGET`
11811 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11812 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11813 else
11814 # Canadian cross, just use what we found
11815 echo "$as_me:$LINENO: result: pre-installed" >&5
11816 echo "${ECHO_T}pre-installed" >&6
11818 else
11819 ok=yes
11820 case " ${configdirs} " in
11821 *" binutils "*) ;;
11822 *) ok=no ;;
11823 esac
11825 if test $ok = yes; then
11826 # An in-tree tool is available and we can use it
11827 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
11828 echo "$as_me:$LINENO: result: just compiled" >&5
11829 echo "${ECHO_T}just compiled" >&6
11830 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
11831 # We already found the complete path
11832 ac_dir=`dirname $RANLIB_FOR_TARGET`
11833 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11834 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11835 elif test "x$target" = "x$host"; then
11836 # We can use an host tool
11837 RANLIB_FOR_TARGET='$(RANLIB)'
11838 echo "$as_me:$LINENO: result: host tool" >&5
11839 echo "${ECHO_T}host tool" >&6
11840 else
11841 # We need a cross tool
11842 echo "$as_me:$LINENO: result: pre-installed" >&5
11843 echo "${ECHO_T}pre-installed" >&6
11847 echo "$as_me:$LINENO: checking where to find the target strip" >&5
11848 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
11849 if test "x${build}" != "x${host}" ; then
11850 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11851 # We already found the complete path
11852 ac_dir=`dirname $STRIP_FOR_TARGET`
11853 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11854 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11855 else
11856 # Canadian cross, just use what we found
11857 echo "$as_me:$LINENO: result: pre-installed" >&5
11858 echo "${ECHO_T}pre-installed" >&6
11860 else
11861 ok=yes
11862 case " ${configdirs} " in
11863 *" binutils "*) ;;
11864 *) ok=no ;;
11865 esac
11867 if test $ok = yes; then
11868 # An in-tree tool is available and we can use it
11869 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
11870 echo "$as_me:$LINENO: result: just compiled" >&5
11871 echo "${ECHO_T}just compiled" >&6
11872 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
11873 # We already found the complete path
11874 ac_dir=`dirname $STRIP_FOR_TARGET`
11875 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11876 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11877 elif test "x$target" = "x$host"; then
11878 # We can use an host tool
11879 STRIP_FOR_TARGET='$(STRIP)'
11880 echo "$as_me:$LINENO: result: host tool" >&5
11881 echo "${ECHO_T}host tool" >&6
11882 else
11883 # We need a cross tool
11884 echo "$as_me:$LINENO: result: pre-installed" >&5
11885 echo "${ECHO_T}pre-installed" >&6
11889 echo "$as_me:$LINENO: checking where to find the target windres" >&5
11890 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
11891 if test "x${build}" != "x${host}" ; then
11892 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11893 # We already found the complete path
11894 ac_dir=`dirname $WINDRES_FOR_TARGET`
11895 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11896 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11897 else
11898 # Canadian cross, just use what we found
11899 echo "$as_me:$LINENO: result: pre-installed" >&5
11900 echo "${ECHO_T}pre-installed" >&6
11902 else
11903 ok=yes
11904 case " ${configdirs} " in
11905 *" binutils "*) ;;
11906 *) ok=no ;;
11907 esac
11909 if test $ok = yes; then
11910 # An in-tree tool is available and we can use it
11911 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
11912 echo "$as_me:$LINENO: result: just compiled" >&5
11913 echo "${ECHO_T}just compiled" >&6
11914 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
11915 # We already found the complete path
11916 ac_dir=`dirname $WINDRES_FOR_TARGET`
11917 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11918 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11919 elif test "x$target" = "x$host"; then
11920 # We can use an host tool
11921 WINDRES_FOR_TARGET='$(WINDRES)'
11922 echo "$as_me:$LINENO: result: host tool" >&5
11923 echo "${ECHO_T}host tool" >&6
11924 else
11925 # We need a cross tool
11926 echo "$as_me:$LINENO: result: pre-installed" >&5
11927 echo "${ECHO_T}pre-installed" >&6
11931 echo "$as_me:$LINENO: checking where to find the target windmc" >&5
11932 echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
11933 if test "x${build}" != "x${host}" ; then
11934 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11935 # We already found the complete path
11936 ac_dir=`dirname $WINDMC_FOR_TARGET`
11937 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11938 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11939 else
11940 # Canadian cross, just use what we found
11941 echo "$as_me:$LINENO: result: pre-installed" >&5
11942 echo "${ECHO_T}pre-installed" >&6
11944 else
11945 ok=yes
11946 case " ${configdirs} " in
11947 *" binutils "*) ;;
11948 *) ok=no ;;
11949 esac
11951 if test $ok = yes; then
11952 # An in-tree tool is available and we can use it
11953 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
11954 echo "$as_me:$LINENO: result: just compiled" >&5
11955 echo "${ECHO_T}just compiled" >&6
11956 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
11957 # We already found the complete path
11958 ac_dir=`dirname $WINDMC_FOR_TARGET`
11959 echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
11960 echo "${ECHO_T}pre-installed in $ac_dir" >&6
11961 elif test "x$target" = "x$host"; then
11962 # We can use an host tool
11963 WINDMC_FOR_TARGET='$(WINDMC)'
11964 echo "$as_me:$LINENO: result: host tool" >&5
11965 echo "${ECHO_T}host tool" >&6
11966 else
11967 # We need a cross tool
11968 echo "$as_me:$LINENO: result: pre-installed" >&5
11969 echo "${ECHO_T}pre-installed" >&6
11977 # Certain tools may need extra flags.
11978 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
11979 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
11980 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
11982 # When building target libraries, except in a Canadian cross, we use
11983 # the same toolchain as the compiler we just built.
11984 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
11985 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
11986 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
11987 if test $host = $build; then
11988 case " $configdirs " in
11989 *" gcc "*)
11990 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
11991 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
11992 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
11994 esac
12001 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12002 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12003 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12004 if test "${enable_maintainer_mode+set}" = set; then
12005 enableval="$enable_maintainer_mode"
12006 USE_MAINTAINER_MODE=$enableval
12007 else
12008 USE_MAINTAINER_MODE=no
12010 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12011 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
12014 if test "$USE_MAINTAINER_MODE" = yes; then
12015 MAINTAINER_MODE_TRUE=
12016 MAINTAINER_MODE_FALSE='#'
12017 else
12018 MAINTAINER_MODE_TRUE='#'
12019 MAINTAINER_MODE_FALSE=
12021 MAINT=$MAINTAINER_MODE_TRUE
12023 # ---------------------
12024 # GCC bootstrap support
12025 # ---------------------
12027 # Stage specific cflags for build.
12028 stage1_cflags="-g"
12029 case $build in
12030 vax-*-*)
12031 case ${GCC} in
12032 yes) stage1_cflags="-g -Wa,-J" ;;
12033 *) stage1_cflags="-g -J" ;;
12034 esac ;;
12035 esac
12037 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
12038 if test "$GCC" = yes; then
12039 saved_CFLAGS="$CFLAGS"
12041 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
12042 CFLAGS="$CFLAGS -fkeep-inline-functions"
12043 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
12044 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h. */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 #if (__GNUC__ < 3) \
12053 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
12054 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
12055 #error http://gcc.gnu.org/PR29382
12056 #endif
12059 main ()
12063 return 0;
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068 (eval $ac_compile) 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest.$ac_objext'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 echo "$as_me:$LINENO: result: yes" >&5
12088 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 echo "$as_me:$LINENO: result: no" >&5
12094 echo "${ECHO_T}no" >&6
12096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12098 CFLAGS="$saved_CFLAGS"
12103 # Enable --enable-checking in stage1 of the compiler.
12104 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
12105 if test "${enable_stage1_checking+set}" = set; then
12106 enableval="$enable_stage1_checking"
12107 stage1_checking=--enable-checking=${enable_stage1_checking}
12108 else
12109 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
12110 stage1_checking=--enable-checking=yes,types
12111 else
12112 stage1_checking=--enable-checking=$enable_checking,types
12117 # Enable -Werror in bootstrap stage2 and later.
12118 # Check whether --enable-werror or --disable-werror was given.
12119 if test "${enable_werror+set}" = set; then
12120 enableval="$enable_werror"
12122 else
12123 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
12124 enable_werror=yes
12125 else
12126 enable_werror=no
12129 case ${enable_werror} in
12130 yes) stage2_werror_flag="--enable-werror-always" ;;
12131 *) stage2_werror_flag="" ;;
12132 esac
12135 # Flags needed to enable html installing and building
12137 # Check whether --with-datarootdir or --without-datarootdir was given.
12138 if test "${with_datarootdir+set}" = set; then
12139 withval="$with_datarootdir"
12140 datarootdir="\${prefix}/${withval}"
12141 else
12142 datarootdir="\${prefix}/share"
12146 # Check whether --with-docdir or --without-docdir was given.
12147 if test "${with_docdir+set}" = set; then
12148 withval="$with_docdir"
12149 docdir="\${prefix}/${withval}"
12150 else
12151 docdir="\${datarootdir}/doc"
12155 # Check whether --with-pdfdir or --without-pdfdir was given.
12156 if test "${with_pdfdir+set}" = set; then
12157 withval="$with_pdfdir"
12158 pdfdir="\${prefix}/${withval}"
12159 else
12160 pdfdir="\${docdir}"
12164 # Check whether --with-htmldir or --without-htmldir was given.
12165 if test "${with_htmldir+set}" = set; then
12166 withval="$with_htmldir"
12167 htmldir="\${prefix}/${withval}"
12168 else
12169 htmldir="\${docdir}"
12177 ac_config_files="$ac_config_files Makefile"
12178 cat >confcache <<\_ACEOF
12179 # This file is a shell script that caches the results of configure
12180 # tests run on this system so they can be shared between configure
12181 # scripts and configure runs, see configure's option --config-cache.
12182 # It is not useful on other systems. If it contains results you don't
12183 # want to keep, you may remove or edit it.
12185 # config.status only pays attention to the cache file if you give it
12186 # the --recheck option to rerun configure.
12188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12190 # following values.
12192 _ACEOF
12194 # The following way of writing the cache mishandles newlines in values,
12195 # but we know of no workaround that is simple, portable, and efficient.
12196 # So, don't put newlines in cache variables' values.
12197 # Ultrix sh set writes to stderr and can't be redirected directly,
12198 # and sets the high bit in the cache file unless we assign to the vars.
12200 (set) 2>&1 |
12201 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12202 *ac_space=\ *)
12203 # `set' does not quote correctly, so add quotes (double-quote
12204 # substitution turns \\\\ into \\, and sed turns \\ into \).
12205 sed -n \
12206 "s/'/'\\\\''/g;
12207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12210 # `set' quotes correctly as required by POSIX, so do not add quotes.
12211 sed -n \
12212 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12214 esac;
12216 sed '
12217 t clear
12218 : clear
12219 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12220 t end
12221 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12222 : end' >>confcache
12223 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12224 if test -w $cache_file; then
12225 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12226 cat confcache >$cache_file
12227 else
12228 echo "not updating unwritable cache $cache_file"
12231 rm -f confcache
12233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12234 # Let make expand exec_prefix.
12235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12237 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12238 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12239 # trailing colons and then remove the whole line if VPATH becomes empty
12240 # (actually we leave an empty line to preserve line numbers).
12241 if test "x$srcdir" = x.; then
12242 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12243 s/:*\$(srcdir):*/:/;
12244 s/:*\${srcdir}:*/:/;
12245 s/:*@srcdir@:*/:/;
12246 s/^\([^=]*=[ ]*\):*/\1/;
12247 s/:*$//;
12248 s/^[^=]*=[ ]*$//;
12252 # Transform confdefs.h into DEFS.
12253 # Protect against shell expansion while executing Makefile rules.
12254 # Protect against Makefile macro expansion.
12256 # If the first sed substitution is executed (which looks for macros that
12257 # take arguments), then we branch to the quote section. Otherwise,
12258 # look for a macro that doesn't take arguments.
12259 cat >confdef2opt.sed <<\_ACEOF
12260 t clear
12261 : clear
12262 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
12263 t quote
12264 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
12265 t quote
12267 : quote
12268 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
12269 s,\[,\\&,g
12270 s,\],\\&,g
12271 s,\$,$$,g
12273 _ACEOF
12274 # We use echo to avoid assuming a particular line-breaking character.
12275 # The extra dot is to prevent the shell from consuming trailing
12276 # line-breaks from the sub-command output. A line-break within
12277 # single-quotes doesn't work because, if this script is created in a
12278 # platform that uses two characters for line-breaks (e.g., DOS), tr
12279 # would break.
12280 ac_LF_and_DOT=`echo; echo .`
12281 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
12282 rm -f confdef2opt.sed
12285 ac_libobjs=
12286 ac_ltlibobjs=
12287 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12288 # 1. Remove the extension, and $U if already installed.
12289 ac_i=`echo "$ac_i" |
12290 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12291 # 2. Add them.
12292 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12293 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12294 done
12295 LIBOBJS=$ac_libobjs
12297 LTLIBOBJS=$ac_ltlibobjs
12301 : ${CONFIG_STATUS=./config.status}
12302 ac_clean_files_save=$ac_clean_files
12303 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12304 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12305 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12306 cat >$CONFIG_STATUS <<_ACEOF
12307 #! $SHELL
12308 # Generated by $as_me.
12309 # Run this file to recreate the current configuration.
12310 # Compiler output produced by configure, useful for debugging
12311 # configure, is in config.log if it exists.
12313 debug=false
12314 ac_cs_recheck=false
12315 ac_cs_silent=false
12316 SHELL=\${CONFIG_SHELL-$SHELL}
12317 _ACEOF
12319 cat >>$CONFIG_STATUS <<\_ACEOF
12320 ## --------------------- ##
12321 ## M4sh Initialization. ##
12322 ## --------------------- ##
12324 # Be Bourne compatible
12325 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12326 emulate sh
12327 NULLCMD=:
12328 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12329 # is contrary to our usage. Disable this feature.
12330 alias -g '${1+"$@"}'='"$@"'
12331 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12332 set -o posix
12334 DUALCASE=1; export DUALCASE # for MKS sh
12336 # Support unset when possible.
12337 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12338 as_unset=unset
12339 else
12340 as_unset=false
12344 # Work around bugs in pre-3.0 UWIN ksh.
12345 $as_unset ENV MAIL MAILPATH
12346 PS1='$ '
12347 PS2='> '
12348 PS4='+ '
12350 # NLS nuisances.
12351 for as_var in \
12352 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12353 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12354 LC_TELEPHONE LC_TIME
12356 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12357 eval $as_var=C; export $as_var
12358 else
12359 $as_unset $as_var
12361 done
12363 # Required to use basename.
12364 if expr a : '\(a\)' >/dev/null 2>&1; then
12365 as_expr=expr
12366 else
12367 as_expr=false
12370 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12371 as_basename=basename
12372 else
12373 as_basename=false
12377 # Name of the executable.
12378 as_me=`$as_basename "$0" ||
12379 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12380 X"$0" : 'X\(//\)$' \| \
12381 X"$0" : 'X\(/\)$' \| \
12382 . : '\(.\)' 2>/dev/null ||
12383 echo X/"$0" |
12384 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12385 /^X\/\(\/\/\)$/{ s//\1/; q; }
12386 /^X\/\(\/\).*/{ s//\1/; q; }
12387 s/.*/./; q'`
12390 # PATH needs CR, and LINENO needs CR and PATH.
12391 # Avoid depending upon Character Ranges.
12392 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12393 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12394 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12395 as_cr_digits='0123456789'
12396 as_cr_alnum=$as_cr_Letters$as_cr_digits
12398 # The user is always right.
12399 if test "${PATH_SEPARATOR+set}" != set; then
12400 echo "#! /bin/sh" >conf$$.sh
12401 echo "exit 0" >>conf$$.sh
12402 chmod +x conf$$.sh
12403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12404 PATH_SEPARATOR=';'
12405 else
12406 PATH_SEPARATOR=:
12408 rm -f conf$$.sh
12412 as_lineno_1=$LINENO
12413 as_lineno_2=$LINENO
12414 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12415 test "x$as_lineno_1" != "x$as_lineno_2" &&
12416 test "x$as_lineno_3" = "x$as_lineno_2" || {
12417 # Find who we are. Look in the path if we contain no path at all
12418 # relative or not.
12419 case $0 in
12420 *[\\/]* ) as_myself=$0 ;;
12421 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12424 IFS=$as_save_IFS
12425 test -z "$as_dir" && as_dir=.
12426 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12427 done
12430 esac
12431 # We did not find ourselves, most probably we were run as `sh COMMAND'
12432 # in which case we are not to be found in the path.
12433 if test "x$as_myself" = x; then
12434 as_myself=$0
12436 if test ! -f "$as_myself"; then
12437 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12438 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12439 { (exit 1); exit 1; }; }
12441 case $CONFIG_SHELL in
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12446 IFS=$as_save_IFS
12447 test -z "$as_dir" && as_dir=.
12448 for as_base in sh bash ksh sh5; do
12449 case $as_dir in
12451 if ("$as_dir/$as_base" -c '
12452 as_lineno_1=$LINENO
12453 as_lineno_2=$LINENO
12454 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12455 test "x$as_lineno_1" != "x$as_lineno_2" &&
12456 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12457 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12458 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12459 CONFIG_SHELL=$as_dir/$as_base
12460 export CONFIG_SHELL
12461 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12462 fi;;
12463 esac
12464 done
12465 done
12467 esac
12469 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12470 # uniformly replaced by the line number. The first 'sed' inserts a
12471 # line-number line before each line; the second 'sed' does the real
12472 # work. The second script uses 'N' to pair each line-number line
12473 # with the numbered line, and appends trailing '-' during
12474 # substitution so that $LINENO is not a special case at line end.
12475 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12476 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12477 sed '=' <$as_myself |
12478 sed '
12480 s,$,-,
12481 : loop
12482 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12483 t loop
12484 s,-$,,
12485 s,^['$as_cr_digits']*\n,,
12486 ' >$as_me.lineno &&
12487 chmod +x $as_me.lineno ||
12488 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12489 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12490 { (exit 1); exit 1; }; }
12492 # Don't try to exec as it changes $[0], causing all sort of problems
12493 # (the dirname of $[0] is not the place where we might find the
12494 # original and so on. Autoconf is especially sensible to this).
12495 . ./$as_me.lineno
12496 # Exit status is that of the last command.
12497 exit
12501 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12502 *c*,-n*) ECHO_N= ECHO_C='
12503 ' ECHO_T=' ' ;;
12504 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12505 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12506 esac
12508 if expr a : '\(a\)' >/dev/null 2>&1; then
12509 as_expr=expr
12510 else
12511 as_expr=false
12514 rm -f conf$$ conf$$.exe conf$$.file
12515 echo >conf$$.file
12516 if ln -s conf$$.file conf$$ 2>/dev/null; then
12517 # We could just check for DJGPP; but this test a) works b) is more generic
12518 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12519 if test -f conf$$.exe; then
12520 # Don't use ln at all; we don't have any links
12521 as_ln_s='cp -p'
12522 else
12523 as_ln_s='ln -s'
12525 elif ln conf$$.file conf$$ 2>/dev/null; then
12526 as_ln_s=ln
12527 else
12528 as_ln_s='cp -p'
12530 rm -f conf$$ conf$$.exe conf$$.file
12532 if mkdir -p . 2>/dev/null; then
12533 as_mkdir_p=:
12534 else
12535 test -d ./-p && rmdir ./-p
12536 as_mkdir_p=false
12539 as_executable_p="test -f"
12541 # Sed expression to map a string onto a valid CPP name.
12542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12544 # Sed expression to map a string onto a valid variable name.
12545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12548 # IFS
12549 # We need space, tab and new line, in precisely that order.
12550 as_nl='
12552 IFS=" $as_nl"
12554 # CDPATH.
12555 $as_unset CDPATH
12557 exec 6>&1
12559 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12560 # report actual input values of CONFIG_FILES etc. instead of their
12561 # values after options handling. Logging --version etc. is OK.
12562 exec 5>>config.log
12564 echo
12565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12566 ## Running $as_me. ##
12567 _ASBOX
12568 } >&5
12569 cat >&5 <<_CSEOF
12571 This file was extended by $as_me, which was
12572 generated by GNU Autoconf 2.59. Invocation command line was
12574 CONFIG_FILES = $CONFIG_FILES
12575 CONFIG_HEADERS = $CONFIG_HEADERS
12576 CONFIG_LINKS = $CONFIG_LINKS
12577 CONFIG_COMMANDS = $CONFIG_COMMANDS
12578 $ $0 $@
12580 _CSEOF
12581 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12582 echo >&5
12583 _ACEOF
12585 # Files that config.status was made for.
12586 if test -n "$ac_config_files"; then
12587 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12590 if test -n "$ac_config_headers"; then
12591 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12594 if test -n "$ac_config_links"; then
12595 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12598 if test -n "$ac_config_commands"; then
12599 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12602 cat >>$CONFIG_STATUS <<\_ACEOF
12604 ac_cs_usage="\
12605 \`$as_me' instantiates files from templates according to the
12606 current configuration.
12608 Usage: $0 [OPTIONS] [FILE]...
12610 -h, --help print this help, then exit
12611 -V, --version print version number, then exit
12612 -q, --quiet do not print progress messages
12613 -d, --debug don't remove temporary files
12614 --recheck update $as_me by reconfiguring in the same conditions
12615 --file=FILE[:TEMPLATE]
12616 instantiate the configuration file FILE
12618 Configuration files:
12619 $config_files
12621 Report bugs to <bug-autoconf@gnu.org>."
12622 _ACEOF
12624 cat >>$CONFIG_STATUS <<_ACEOF
12625 ac_cs_version="\\
12626 config.status
12627 configured by $0, generated by GNU Autoconf 2.59,
12628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12630 Copyright (C) 2003 Free Software Foundation, Inc.
12631 This config.status script is free software; the Free Software Foundation
12632 gives unlimited permission to copy, distribute and modify it."
12633 srcdir=$srcdir
12634 INSTALL="$INSTALL"
12635 _ACEOF
12637 cat >>$CONFIG_STATUS <<\_ACEOF
12638 # If no file are specified by the user, then we need to provide default
12639 # value. By we need to know if files were specified by the user.
12640 ac_need_defaults=:
12641 while test $# != 0
12643 case $1 in
12644 --*=*)
12645 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12646 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12647 ac_shift=:
12650 ac_option=$1
12651 ac_optarg=$2
12652 ac_shift=shift
12654 *) # This is not an option, so the user has probably given explicit
12655 # arguments.
12656 ac_option=$1
12657 ac_need_defaults=false;;
12658 esac
12660 case $ac_option in
12661 # Handling of the options.
12662 _ACEOF
12663 cat >>$CONFIG_STATUS <<\_ACEOF
12664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12665 ac_cs_recheck=: ;;
12666 --version | --vers* | -V )
12667 echo "$ac_cs_version"; exit 0 ;;
12668 --he | --h)
12669 # Conflict between --help and --header
12670 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12671 Try \`$0 --help' for more information." >&5
12672 echo "$as_me: error: ambiguous option: $1
12673 Try \`$0 --help' for more information." >&2;}
12674 { (exit 1); exit 1; }; };;
12675 --help | --hel | -h )
12676 echo "$ac_cs_usage"; exit 0 ;;
12677 --debug | --d* | -d )
12678 debug=: ;;
12679 --file | --fil | --fi | --f )
12680 $ac_shift
12681 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12682 ac_need_defaults=false;;
12683 --header | --heade | --head | --hea )
12684 $ac_shift
12685 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12686 ac_need_defaults=false;;
12687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12689 ac_cs_silent=: ;;
12691 # This is an error.
12692 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12693 Try \`$0 --help' for more information." >&5
12694 echo "$as_me: error: unrecognized option: $1
12695 Try \`$0 --help' for more information." >&2;}
12696 { (exit 1); exit 1; }; } ;;
12698 *) ac_config_targets="$ac_config_targets $1" ;;
12700 esac
12701 shift
12702 done
12704 ac_configure_extra_args=
12706 if $ac_cs_silent; then
12707 exec 6>/dev/null
12708 ac_configure_extra_args="$ac_configure_extra_args --silent"
12711 _ACEOF
12712 cat >>$CONFIG_STATUS <<_ACEOF
12713 if \$ac_cs_recheck; then
12714 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12715 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12718 _ACEOF
12724 cat >>$CONFIG_STATUS <<\_ACEOF
12725 for ac_config_target in $ac_config_targets
12727 case "$ac_config_target" in
12728 # Handling of arguments.
12729 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12730 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12731 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12732 { (exit 1); exit 1; }; };;
12733 esac
12734 done
12736 # If the user did not use the arguments to specify the items to instantiate,
12737 # then the envvar interface is used. Set only those that are not.
12738 # We use the long form for the default assignment because of an extremely
12739 # bizarre bug on SunOS 4.1.3.
12740 if $ac_need_defaults; then
12741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12744 # Have a temporary directory for convenience. Make it in the build tree
12745 # simply because there is no reason to put it here, and in addition,
12746 # creating and moving files from /tmp can sometimes cause problems.
12747 # Create a temporary directory, and hook for its removal unless debugging.
12748 $debug ||
12750 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12751 trap '{ (exit 1); exit 1; }' 1 2 13 15
12754 # Create a (secure) tmp directory for tmp files.
12757 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12758 test -n "$tmp" && test -d "$tmp"
12759 } ||
12761 tmp=./confstat$$-$RANDOM
12762 (umask 077 && mkdir $tmp)
12763 } ||
12765 echo "$me: cannot create a temporary directory in ." >&2
12766 { (exit 1); exit 1; }
12769 _ACEOF
12771 cat >>$CONFIG_STATUS <<_ACEOF
12774 # CONFIG_FILES section.
12777 # No need to generate the scripts if there are no CONFIG_FILES.
12778 # This happens for instance when ./config.status config.h
12779 if test -n "\$CONFIG_FILES"; then
12780 # Protect against being on the right side of a sed subst in config.status.
12781 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12782 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12783 s,@SHELL@,$SHELL,;t t
12784 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12785 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12786 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12787 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12788 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12789 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12790 s,@exec_prefix@,$exec_prefix,;t t
12791 s,@prefix@,$prefix,;t t
12792 s,@program_transform_name@,$program_transform_name,;t t
12793 s,@bindir@,$bindir,;t t
12794 s,@sbindir@,$sbindir,;t t
12795 s,@libexecdir@,$libexecdir,;t t
12796 s,@datadir@,$datadir,;t t
12797 s,@sysconfdir@,$sysconfdir,;t t
12798 s,@sharedstatedir@,$sharedstatedir,;t t
12799 s,@localstatedir@,$localstatedir,;t t
12800 s,@libdir@,$libdir,;t t
12801 s,@includedir@,$includedir,;t t
12802 s,@oldincludedir@,$oldincludedir,;t t
12803 s,@infodir@,$infodir,;t t
12804 s,@mandir@,$mandir,;t t
12805 s,@build_alias@,$build_alias,;t t
12806 s,@host_alias@,$host_alias,;t t
12807 s,@target_alias@,$target_alias,;t t
12808 s,@DEFS@,$DEFS,;t t
12809 s,@ECHO_C@,$ECHO_C,;t t
12810 s,@ECHO_N@,$ECHO_N,;t t
12811 s,@ECHO_T@,$ECHO_T,;t t
12812 s,@LIBS@,$LIBS,;t t
12813 s,@build@,$build,;t t
12814 s,@build_cpu@,$build_cpu,;t t
12815 s,@build_vendor@,$build_vendor,;t t
12816 s,@build_os@,$build_os,;t t
12817 s,@build_noncanonical@,$build_noncanonical,;t t
12818 s,@host_noncanonical@,$host_noncanonical,;t t
12819 s,@target_noncanonical@,$target_noncanonical,;t t
12820 s,@host@,$host,;t t
12821 s,@host_cpu@,$host_cpu,;t t
12822 s,@host_vendor@,$host_vendor,;t t
12823 s,@host_os@,$host_os,;t t
12824 s,@target@,$target,;t t
12825 s,@target_cpu@,$target_cpu,;t t
12826 s,@target_vendor@,$target_vendor,;t t
12827 s,@target_os@,$target_os,;t t
12828 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12829 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12830 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12831 s,@LN@,$LN,;t t
12832 s,@LN_S@,$LN_S,;t t
12833 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
12834 s,@build_libsubdir@,$build_libsubdir,;t t
12835 s,@build_subdir@,$build_subdir,;t t
12836 s,@host_subdir@,$host_subdir,;t t
12837 s,@target_subdir@,$target_subdir,;t t
12838 s,@CC@,$CC,;t t
12839 s,@CFLAGS@,$CFLAGS,;t t
12840 s,@LDFLAGS@,$LDFLAGS,;t t
12841 s,@CPPFLAGS@,$CPPFLAGS,;t t
12842 s,@ac_ct_CC@,$ac_ct_CC,;t t
12843 s,@EXEEXT@,$EXEEXT,;t t
12844 s,@OBJEXT@,$OBJEXT,;t t
12845 s,@CXX@,$CXX,;t t
12846 s,@CXXFLAGS@,$CXXFLAGS,;t t
12847 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12848 s,@GNATBIND@,$GNATBIND,;t t
12849 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12850 s,@GNATMAKE@,$GNATMAKE,;t t
12851 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
12852 s,@do_compare@,$do_compare,;t t
12853 s,@gmplibs@,$gmplibs,;t t
12854 s,@gmpinc@,$gmpinc,;t t
12855 s,@stage1_languages@,$stage1_languages,;t t
12856 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
12857 s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
12858 s,@CFLAGS_FOR_TARGET@,$CFLAGS_FOR_TARGET,;t t
12859 s,@CXXFLAGS_FOR_TARGET@,$CXXFLAGS_FOR_TARGET,;t t
12860 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
12861 s,@tooldir@,$tooldir,;t t
12862 s,@build_tooldir@,$build_tooldir,;t t
12863 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
12864 s,@GDB_TK@,$GDB_TK,;t t
12865 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
12866 s,@build_configargs@,$build_configargs,;t t
12867 s,@build_configdirs@,$build_configdirs,;t t
12868 s,@host_configargs@,$host_configargs,;t t
12869 s,@configdirs@,$configdirs,;t t
12870 s,@target_configargs@,$target_configargs,;t t
12871 s,@AR_FOR_BUILD@,$AR_FOR_BUILD,;t t
12872 s,@AS_FOR_BUILD@,$AS_FOR_BUILD,;t t
12873 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12874 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
12875 s,@CXXFLAGS_FOR_BUILD@,$CXXFLAGS_FOR_BUILD,;t t
12876 s,@CXX_FOR_BUILD@,$CXX_FOR_BUILD,;t t
12877 s,@DLLTOOL_FOR_BUILD@,$DLLTOOL_FOR_BUILD,;t t
12878 s,@GCJ_FOR_BUILD@,$GCJ_FOR_BUILD,;t t
12879 s,@GFORTRAN_FOR_BUILD@,$GFORTRAN_FOR_BUILD,;t t
12880 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
12881 s,@LD_FOR_BUILD@,$LD_FOR_BUILD,;t t
12882 s,@NM_FOR_BUILD@,$NM_FOR_BUILD,;t t
12883 s,@RANLIB_FOR_BUILD@,$RANLIB_FOR_BUILD,;t t
12884 s,@WINDMC_FOR_BUILD@,$WINDMC_FOR_BUILD,;t t
12885 s,@WINDRES_FOR_BUILD@,$WINDRES_FOR_BUILD,;t t
12886 s,@config_shell@,$config_shell,;t t
12887 s,@YACC@,$YACC,;t t
12888 s,@BISON@,$BISON,;t t
12889 s,@M4@,$M4,;t t
12890 s,@LEX@,$LEX,;t t
12891 s,@FLEX@,$FLEX,;t t
12892 s,@MAKEINFO@,$MAKEINFO,;t t
12893 s,@EXPECT@,$EXPECT,;t t
12894 s,@RUNTEST@,$RUNTEST,;t t
12895 s,@AR@,$AR,;t t
12896 s,@AS@,$AS,;t t
12897 s,@DLLTOOL@,$DLLTOOL,;t t
12898 s,@LD@,$LD,;t t
12899 s,@LIPO@,$LIPO,;t t
12900 s,@NM@,$NM,;t t
12901 s,@RANLIB@,$RANLIB,;t t
12902 s,@STRIP@,$STRIP,;t t
12903 s,@WINDRES@,$WINDRES,;t t
12904 s,@WINDMC@,$WINDMC,;t t
12905 s,@OBJCOPY@,$OBJCOPY,;t t
12906 s,@OBJDUMP@,$OBJDUMP,;t t
12907 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
12908 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
12909 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
12910 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
12911 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
12912 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
12913 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
12914 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
12915 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
12916 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
12917 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
12918 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
12919 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
12920 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
12921 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
12922 s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
12923 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
12924 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
12925 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
12926 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
12927 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
12928 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12929 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12930 s,@MAINT@,$MAINT,;t t
12931 s,@stage1_cflags@,$stage1_cflags,;t t
12932 s,@stage1_checking@,$stage1_checking,;t t
12933 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
12934 s,@datarootdir@,$datarootdir,;t t
12935 s,@docdir@,$docdir,;t t
12936 s,@pdfdir@,$pdfdir,;t t
12937 s,@htmldir@,$htmldir,;t t
12938 s,@LIBOBJS@,$LIBOBJS,;t t
12939 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12940 /@serialization_dependencies@/r $serialization_dependencies
12941 s,@serialization_dependencies@,,;t t
12942 /@host_makefile_frag@/r $host_makefile_frag
12943 s,@host_makefile_frag@,,;t t
12944 /@target_makefile_frag@/r $target_makefile_frag
12945 s,@target_makefile_frag@,,;t t
12946 /@alphaieee_frag@/r $alphaieee_frag
12947 s,@alphaieee_frag@,,;t t
12948 /@ospace_frag@/r $ospace_frag
12949 s,@ospace_frag@,,;t t
12950 CEOF
12952 _ACEOF
12954 cat >>$CONFIG_STATUS <<\_ACEOF
12955 # Split the substitutions into bite-sized pieces for seds with
12956 # small command number limits, like on Digital OSF/1 and HP-UX.
12957 ac_max_sed_lines=48
12958 ac_sed_frag=1 # Number of current file.
12959 ac_beg=1 # First line for current file.
12960 ac_end=$ac_max_sed_lines # Line after last line for current file.
12961 ac_more_lines=:
12962 ac_sed_cmds=
12963 while $ac_more_lines; do
12964 if test $ac_beg -gt 1; then
12965 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12966 else
12967 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12969 if test ! -s $tmp/subs.frag; then
12970 ac_more_lines=false
12971 else
12972 # The purpose of the label and of the branching condition is to
12973 # speed up the sed processing (if there are no `@' at all, there
12974 # is no need to browse any of the substitutions).
12975 # These are the two extra sed commands mentioned above.
12976 (echo ':t
12977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12978 if test -z "$ac_sed_cmds"; then
12979 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12980 else
12981 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12983 ac_sed_frag=`expr $ac_sed_frag + 1`
12984 ac_beg=$ac_end
12985 ac_end=`expr $ac_end + $ac_max_sed_lines`
12987 done
12988 if test -z "$ac_sed_cmds"; then
12989 ac_sed_cmds=cat
12991 fi # test -n "$CONFIG_FILES"
12993 _ACEOF
12994 cat >>$CONFIG_STATUS <<\_ACEOF
12995 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12997 case $ac_file in
12998 - | *:- | *:-:* ) # input from stdin
12999 cat >$tmp/stdin
13000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13004 * ) ac_file_in=$ac_file.in ;;
13005 esac
13007 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13008 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13009 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13010 X"$ac_file" : 'X\(//\)[^/]' \| \
13011 X"$ac_file" : 'X\(//\)$' \| \
13012 X"$ac_file" : 'X\(/\)' \| \
13013 . : '\(.\)' 2>/dev/null ||
13014 echo X"$ac_file" |
13015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13017 /^X\(\/\/\)$/{ s//\1/; q; }
13018 /^X\(\/\).*/{ s//\1/; q; }
13019 s/.*/./; q'`
13020 { if $as_mkdir_p; then
13021 mkdir -p "$ac_dir"
13022 else
13023 as_dir="$ac_dir"
13024 as_dirs=
13025 while test ! -d "$as_dir"; do
13026 as_dirs="$as_dir $as_dirs"
13027 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13029 X"$as_dir" : 'X\(//\)[^/]' \| \
13030 X"$as_dir" : 'X\(//\)$' \| \
13031 X"$as_dir" : 'X\(/\)' \| \
13032 . : '\(.\)' 2>/dev/null ||
13033 echo X"$as_dir" |
13034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13036 /^X\(\/\/\)$/{ s//\1/; q; }
13037 /^X\(\/\).*/{ s//\1/; q; }
13038 s/.*/./; q'`
13039 done
13040 test ! -n "$as_dirs" || mkdir $as_dirs
13041 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13042 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13043 { (exit 1); exit 1; }; }; }
13045 ac_builddir=.
13047 if test "$ac_dir" != .; then
13048 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13049 # A "../" for each directory in $ac_dir_suffix.
13050 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13051 else
13052 ac_dir_suffix= ac_top_builddir=
13055 case $srcdir in
13056 .) # No --srcdir option. We are building in place.
13057 ac_srcdir=.
13058 if test -z "$ac_top_builddir"; then
13059 ac_top_srcdir=.
13060 else
13061 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13062 fi ;;
13063 [\\/]* | ?:[\\/]* ) # Absolute path.
13064 ac_srcdir=$srcdir$ac_dir_suffix;
13065 ac_top_srcdir=$srcdir ;;
13066 *) # Relative path.
13067 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13068 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13069 esac
13071 # Do not use `cd foo && pwd` to compute absolute paths, because
13072 # the directories may not exist.
13073 case `pwd` in
13074 .) ac_abs_builddir="$ac_dir";;
13076 case "$ac_dir" in
13077 .) ac_abs_builddir=`pwd`;;
13078 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13079 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13080 esac;;
13081 esac
13082 case $ac_abs_builddir in
13083 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13085 case ${ac_top_builddir}. in
13086 .) ac_abs_top_builddir=$ac_abs_builddir;;
13087 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13088 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13089 esac;;
13090 esac
13091 case $ac_abs_builddir in
13092 .) ac_abs_srcdir=$ac_srcdir;;
13094 case $ac_srcdir in
13095 .) ac_abs_srcdir=$ac_abs_builddir;;
13096 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13097 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13098 esac;;
13099 esac
13100 case $ac_abs_builddir in
13101 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13103 case $ac_top_srcdir in
13104 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13105 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13106 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13107 esac;;
13108 esac
13111 case $INSTALL in
13112 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13113 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13114 esac
13116 # Let's still pretend it is `configure' which instantiates (i.e., don't
13117 # use $as_me), people would be surprised to read:
13118 # /* config.h. Generated by config.status. */
13119 if test x"$ac_file" = x-; then
13120 configure_input=
13121 else
13122 configure_input="$ac_file. "
13124 configure_input=$configure_input"Generated from `echo $ac_file_in |
13125 sed 's,.*/,,'` by configure."
13127 # First look for the input files in the build tree, otherwise in the
13128 # src tree.
13129 ac_file_inputs=`IFS=:
13130 for f in $ac_file_in; do
13131 case $f in
13132 -) echo $tmp/stdin ;;
13133 [\\/$]*)
13134 # Absolute (can't be DOS-style, as IFS=:)
13135 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13136 echo "$as_me: error: cannot find input file: $f" >&2;}
13137 { (exit 1); exit 1; }; }
13138 echo "$f";;
13139 *) # Relative
13140 if test -f "$f"; then
13141 # Build tree
13142 echo "$f"
13143 elif test -f "$srcdir/$f"; then
13144 # Source tree
13145 echo "$srcdir/$f"
13146 else
13147 # /dev/null tree
13148 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13149 echo "$as_me: error: cannot find input file: $f" >&2;}
13150 { (exit 1); exit 1; }; }
13151 fi;;
13152 esac
13153 done` || { (exit 1); exit 1; }
13155 if test x"$ac_file" != x-; then
13156 { echo "$as_me:$LINENO: creating $ac_file" >&5
13157 echo "$as_me: creating $ac_file" >&6;}
13158 rm -f "$ac_file"
13160 _ACEOF
13161 cat >>$CONFIG_STATUS <<_ACEOF
13162 sed "$ac_vpsub
13163 $extrasub
13164 _ACEOF
13165 cat >>$CONFIG_STATUS <<\_ACEOF
13167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13168 s,@configure_input@,$configure_input,;t t
13169 s,@srcdir@,$ac_srcdir,;t t
13170 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13171 s,@top_srcdir@,$ac_top_srcdir,;t t
13172 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13173 s,@builddir@,$ac_builddir,;t t
13174 s,@abs_builddir@,$ac_abs_builddir,;t t
13175 s,@top_builddir@,$ac_top_builddir,;t t
13176 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13177 s,@INSTALL@,$ac_INSTALL,;t t
13178 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13179 rm -f $tmp/stdin
13180 if test x"$ac_file" != x-; then
13181 mv $tmp/out $ac_file
13182 else
13183 cat $tmp/out
13184 rm -f $tmp/out
13187 done
13188 _ACEOF
13190 cat >>$CONFIG_STATUS <<\_ACEOF
13192 { (exit 0); exit 0; }
13193 _ACEOF
13194 chmod +x $CONFIG_STATUS
13195 ac_clean_files=$ac_clean_files_save
13198 # configure is writing to config.log, and then calls config.status.
13199 # config.status does its own redirection, appending to config.log.
13200 # Unfortunately, on DOS this fails, as config.log is still kept open
13201 # by configure, so config.status won't be able to write to it; its
13202 # output is simply discarded. So we exec the FD to /dev/null,
13203 # effectively closing config.log, so it can be properly (re)opened and
13204 # appended to by config.status. When coming back to configure, we
13205 # need to make the FD available again.
13206 if test "$no_create" != yes; then
13207 ac_cs_success=:
13208 ac_config_status_args=
13209 test "$silent" = yes &&
13210 ac_config_status_args="$ac_config_status_args --quiet"
13211 exec 5>/dev/null
13212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13213 exec 5>>config.log
13214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13215 # would make configure fail if this is the last instruction.
13216 $ac_cs_success || { (exit 1); exit 1; }