top level:
[binutils.git] / configure
blob6bdaf81c304a340d78c3fbd46b04d60b21aba821
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 RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD 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 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 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_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
742 # Report the --help message.
744 if test "$ac_init_help" = "long"; then
745 # Omit some internal or obsolete options to make the list less imposing.
746 # This message is too long to be a string in the A/UX 3.1 sh.
747 cat <<_ACEOF
748 \`configure' configures this package to adapt to many kinds of systems.
750 Usage: $0 [OPTION]... [VAR=VALUE]...
752 To assign environment variables (e.g., CC, CFLAGS...), specify them as
753 VAR=VALUE. See below for descriptions of some of the useful variables.
755 Defaults for the options are specified in brackets.
757 Configuration:
758 -h, --help display this help and exit
759 --help=short display options specific to this package
760 --help=recursive display the short help of all the included packages
761 -V, --version display version information and exit
762 -q, --quiet, --silent do not print \`checking...' messages
763 --cache-file=FILE cache test results in FILE [disabled]
764 -C, --config-cache alias for \`--cache-file=config.cache'
765 -n, --no-create do not create output files
766 --srcdir=DIR find the sources in DIR [configure dir or \`..']
768 _ACEOF
770 cat <<_ACEOF
771 Installation directories:
772 --prefix=PREFIX install architecture-independent files in PREFIX
773 [$ac_default_prefix]
774 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
775 [PREFIX]
777 By default, \`make install' will install all the files in
778 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
779 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780 for instance \`--prefix=\$HOME'.
782 For better control, use the options below.
784 Fine tuning of the installation directories:
785 --bindir=DIR user executables [EPREFIX/bin]
786 --sbindir=DIR system admin executables [EPREFIX/sbin]
787 --libexecdir=DIR program executables [EPREFIX/libexec]
788 --datadir=DIR read-only architecture-independent data [PREFIX/share]
789 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
790 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
791 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
792 --libdir=DIR object code libraries [EPREFIX/lib]
793 --includedir=DIR C header files [PREFIX/include]
794 --oldincludedir=DIR C header files for non-gcc [/usr/include]
795 --infodir=DIR info documentation [PREFIX/info]
796 --mandir=DIR man documentation [PREFIX/man]
797 _ACEOF
799 cat <<\_ACEOF
801 Program names:
802 --program-prefix=PREFIX prepend PREFIX to installed program names
803 --program-suffix=SUFFIX append SUFFIX to installed program names
804 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
806 System types:
807 --build=BUILD configure for building on BUILD [guessed]
808 --host=HOST cross-compile to build programs to run on HOST [BUILD]
809 --target=TARGET configure for building compilers for TARGET [HOST]
810 _ACEOF
813 if test -n "$ac_init_help"; then
815 cat <<\_ACEOF
817 Optional Features:
818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
820 --enable-libada Builds libada directory
821 --enable-libssp Builds libssp directory
822 --enable-stage1-languages=all choose additional languages to build during
823 stage1. Mostly useful for compiler development.
824 --enable-objc-gc enable the use of Boehm's garbage collector with
825 the GNU Objective-C runtime.
826 --enable-bootstrap Enable bootstrapping yes if native build
827 --enable-serial-{host,target,build}-configure
828 Force sequential configuration of
829 sub-packages for the host, target or build
830 machine, or all sub-packages
831 --enable-maintainer-mode enable make rules and dependencies not useful
832 (and sometimes confusing) to the casual installer
833 --enable-stage1-checking=all choose additional checking for stage1
834 of the compiler.
835 --enable-werror enable -Werror in bootstrap stage2 and later
837 Optional Packages:
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 --with-build-libsubdir=DIR Directory where to find libraries for build system
841 --with-mpfr-dir=PATH This option has been REMOVED
842 --with-mpfr=PATH Specify prefix directory for installed MPFR package
843 Equivalent to --with-mpfr-include=PATH/include
844 plus --with-mpfr-lib=PATH/lib
845 --with-mpfr-include=PATH
846 Specify directory for installed MPFR include files
847 --with-mpfr-lib=PATH Specify the directory for the installed MPFR library
848 --with-gmp-dir=PATH This option has been REMOVED
849 --with-gmp=PATH Specify prefix directory for the installed GMP package
850 Equivalent to --with-gmp-include=PATH/include
851 plus --with-gmp-lib=PATH/lib
852 --with-gmp-include=PATH Specify directory for installed GMP include files
853 --with-gmp-lib=PATH Specify the directory for the installed GMP library
854 --with-build-sysroot=sysroot
855 use sysroot as the system root during the build
856 --with-build-time-tools=path
857 use given path to find target tools during the build
858 --with-datarootdir Use datarootdir as the data root directory.
859 --with-docdir Install documentation in this directory.
860 --with-htmldir Install html in this directory.
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CXX C++ compiler command
870 CXXFLAGS C++ compiler flags
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
875 _ACEOF
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
911 case `pwd` in
912 .) ac_abs_builddir="$ac_dir";;
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946 esac
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963 cd $ac_popdir
964 done
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969 cat <<\_ACEOF
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
985 $ $0 $@
987 _ACEOF
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 _ASUNAME
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1021 } >&5
1023 cat >&5 <<_ACEOF
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1030 _ACEOF
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1045 for ac_arg
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1092 echo
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113 esac;
1115 echo
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1216 done
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1277 done
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312 # Find the build, host, and target systems.
1313 ac_aux_dir=
1314 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1315 if test -f $ac_dir/install-sh; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/install-sh -c"
1318 break
1319 elif test -f $ac_dir/install.sh; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/install.sh -c"
1322 break
1323 elif test -f $ac_dir/shtool; then
1324 ac_aux_dir=$ac_dir
1325 ac_install_sh="$ac_aux_dir/shtool install -c"
1326 break
1328 done
1329 if test -z "$ac_aux_dir"; then
1330 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1331 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1332 { (exit 1); exit 1; }; }
1334 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1335 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1336 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338 # Make sure we can run config.sub.
1339 $ac_config_sub sun4 >/dev/null 2>&1 ||
1340 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1341 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1342 { (exit 1); exit 1; }; }
1344 echo "$as_me:$LINENO: checking build system type" >&5
1345 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1346 if test "${ac_cv_build+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349 ac_cv_build_alias=$build_alias
1350 test -z "$ac_cv_build_alias" &&
1351 ac_cv_build_alias=`$ac_config_guess`
1352 test -z "$ac_cv_build_alias" &&
1353 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1355 { (exit 1); exit 1; }; }
1356 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1357 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1358 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1359 { (exit 1); exit 1; }; }
1362 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1363 echo "${ECHO_T}$ac_cv_build" >&6
1364 build=$ac_cv_build
1365 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370 case ${build_alias} in
1371 "") build_noncanonical=${build} ;;
1372 *) build_noncanonical=${build_alias} ;;
1373 esac
1377 case ${host_alias} in
1378 "") host_noncanonical=${build_noncanonical} ;;
1379 *) host_noncanonical=${host_alias} ;;
1380 esac
1384 case ${target_alias} in
1385 "") target_noncanonical=${host_noncanonical} ;;
1386 *) target_noncanonical=${target_alias} ;;
1387 esac
1392 test "$host_noncanonical" = "$target_noncanonical" &&
1393 test "$program_prefix$program_suffix$program_transform_name" = \
1394 NONENONEs,x,x, &&
1395 program_transform_name=s,y,y,
1397 echo "$as_me:$LINENO: checking host system type" >&5
1398 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1399 if test "${ac_cv_host+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 ac_cv_host_alias=$host_alias
1403 test -z "$ac_cv_host_alias" &&
1404 ac_cv_host_alias=$ac_cv_build_alias
1405 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1407 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1408 { (exit 1); exit 1; }; }
1411 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1412 echo "${ECHO_T}$ac_cv_host" >&6
1413 host=$ac_cv_host
1414 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1415 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1416 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1419 echo "$as_me:$LINENO: checking target system type" >&5
1420 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1421 if test "${ac_cv_target+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 else
1424 ac_cv_target_alias=$target_alias
1425 test "x$ac_cv_target_alias" = "x" &&
1426 ac_cv_target_alias=$ac_cv_host_alias
1427 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1429 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1434 echo "${ECHO_T}$ac_cv_target" >&6
1435 target=$ac_cv_target
1436 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441 # The aliases save the names the user supplied, while $host etc.
1442 # will get canonicalized.
1443 test -n "$target_alias" &&
1444 test "$program_prefix$program_suffix$program_transform_name" = \
1445 NONENONEs,x,x, &&
1446 program_prefix=${target_alias}-
1447 test "$program_prefix" != NONE &&
1448 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1449 # Use a double $ so make ignores it.
1450 test "$program_suffix" != NONE &&
1451 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1452 # Double any \ or $. echo might interpret backslashes.
1453 # By default was `s,x,x', remove it if useless.
1454 cat <<\_ACEOF >conftest.sed
1455 s/[\\$]/&&/g;s/;s,x,x,$//
1456 _ACEOF
1457 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1458 rm conftest.sed
1462 # Get 'install' or 'install-sh' and its variants.
1463 # Find a good install program. We prefer a C program (faster),
1464 # so one script is as good as another. But avoid the broken or
1465 # incompatible versions:
1466 # SysV /etc/install, /usr/sbin/install
1467 # SunOS /usr/etc/install
1468 # IRIX /sbin/install
1469 # AIX /bin/install
1470 # AmigaOS /C/install, which installs bootblocks on floppy discs
1471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1474 # OS/2's system install, which has a completely different semantic
1475 # ./install, which can be erroneously created by make from ./install.sh.
1476 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1477 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1478 if test -z "$INSTALL"; then
1479 if test "${ac_cv_path_install+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 # Account for people who put trailing slashes in PATH elements.
1488 case $as_dir/ in
1489 ./ | .// | /cC/* | \
1490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1491 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1492 /usr/ucb/* ) ;;
1494 # OSF1 and SCO ODT 3.0 have their own names for install.
1495 # Don't use installbsd from OSF since it installs stuff as root
1496 # by default.
1497 for ac_prog in ginstall scoinst install; do
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1500 if test $ac_prog = install &&
1501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1502 # AIX install. It has an incompatible calling convention.
1504 elif test $ac_prog = install &&
1505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1506 # program-specific install script used by HP pwplus--don't use.
1508 else
1509 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1510 break 3
1513 done
1514 done
1516 esac
1517 done
1521 if test "${ac_cv_path_install+set}" = set; then
1522 INSTALL=$ac_cv_path_install
1523 else
1524 # As a last resort, use the slow shell script. We don't cache a
1525 # path for INSTALL within a source directory, because that will
1526 # break other packages using the cache if that directory is
1527 # removed, or if the path is relative.
1528 INSTALL=$ac_install_sh
1531 echo "$as_me:$LINENO: result: $INSTALL" >&5
1532 echo "${ECHO_T}$INSTALL" >&6
1534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1535 # It thinks the first close brace ends the variable substitution.
1536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1542 echo "$as_me:$LINENO: checking whether ln works" >&5
1543 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
1544 if test "${acx_cv_prog_LN+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 rm -f conftestdata_t
1548 echo >conftestdata_f
1549 if ln conftestdata_f conftestdata_t 2>/dev/null
1550 then
1551 acx_cv_prog_LN=ln
1552 else
1553 acx_cv_prog_LN=no
1555 rm -f conftestdata_f conftestdata_t
1558 if test $acx_cv_prog_LN = no; then
1559 LN="cp"
1560 echo "$as_me:$LINENO: result: no, using $LN" >&5
1561 echo "${ECHO_T}no, using $LN" >&6
1562 else
1563 LN="$acx_cv_prog_LN"
1564 echo "$as_me:$LINENO: result: yes" >&5
1565 echo "${ECHO_T}yes" >&6
1568 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1569 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1570 LN_S=$as_ln_s
1571 if test "$LN_S" = "ln -s"; then
1572 echo "$as_me:$LINENO: result: yes" >&5
1573 echo "${ECHO_T}yes" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1576 echo "${ECHO_T}no, using $LN_S" >&6
1580 ### we might need to use some other shell than /bin/sh for running subshells
1581 ### If we are on Windows, search for the shell. This will permit people
1582 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
1583 ### without also having to set CONFIG_SHELL. This code will work when
1584 ### using bash, which sets OSTYPE.
1585 case "${OSTYPE}" in
1586 *win32*)
1587 if test x${CONFIG_SHELL} = x ; then
1588 if test ! -f /bin/sh ; then
1589 if test x${SHELL} != x && test -f ${SHELL} ; then
1590 CONFIG_SHELL=${SHELL}
1591 export CONFIG_SHELL
1592 else
1593 for prog in sh sh.exe bash bash.exe; do
1594 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
1595 for dir in $PATH; do
1596 test -z "$dir" && dir=.
1597 if test -f $dir/$prog; then
1598 CONFIG_SHELL=$dir/$prog
1599 export CONFIG_SHELL
1600 break
1602 done
1603 IFS="$save_ifs"
1604 test -n "${CONFIG_SHELL}" && break
1605 done
1610 esac
1612 config_shell=${CONFIG_SHELL-/bin/sh}
1614 progname=$0
1615 # if PWD already has a value, it is probably wrong.
1616 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
1618 # Export original configure arguments for use by sub-configures.
1619 # Quote arguments with shell meta charatcers.
1620 TOPLEVEL_CONFIGURE_ARGUMENTS=
1621 set -- "$progname" "$@"
1622 for ac_arg; do
1623 case "$ac_arg" in
1624 *" "*|*" "*|*\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
1625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1626 # if the argument is of the form -foo=baz, quote the baz part only
1627 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
1628 *) ;;
1629 esac
1630 # Add the quoted argument to the list.
1631 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
1632 done
1633 # Remove the initial space we just introduced and, as these will be
1634 # expanded by make, quote '$'.
1635 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
1638 moveifchange=${srcdir}/move-if-change
1640 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
1642 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
1643 # a relative path.
1644 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1645 INSTALL="${srcpwd}/install-sh -c"
1648 # Set srcdir to "." if that's what it is.
1649 # This is important for multilib support.
1650 pwd=`${PWDCMD-pwd}`
1651 if test "${pwd}" = "${srcpwd}" ; then
1652 srcdir=.
1655 topsrcdir=$srcpwd
1657 extra_host_args=
1659 ### To add a new directory to the tree, first choose whether it is a target
1660 ### or a host dependent tool. Then put it into the appropriate list
1661 ### (library or tools, host or target), doing a dependency sort.
1663 # Subdirs will be configured in the order listed in build_configdirs,
1664 # configdirs, or target_configdirs; see the serialization section below.
1666 # Dependency sorting is only needed when *configuration* must be done in
1667 # a particular order. In all cases a dependency should be specified in
1668 # the Makefile, whether or not it's implicitly specified here.
1670 # Double entries in build_configdirs, configdirs, or target_configdirs may
1671 # cause circular dependencies and break everything horribly.
1673 # these library is used by various programs built for the build
1674 # environment
1676 build_libs="build-libiberty"
1678 # these tools are built for the build environment
1679 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
1681 # these libraries are used by various programs built for the host environment
1683 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
1685 # these tools are built for the host environment
1686 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
1687 # know that we are building the simulator.
1688 # binutils, gas and ld appear in that order because it makes sense to run
1689 # "make check" in that particular order.
1690 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"
1692 # libgcj represents the runtime libraries only used by gcj.
1693 libgcj="target-libffi \
1694 target-zlib \
1695 target-qthreads \
1696 target-libjava"
1698 # these libraries are built for the target environment, and are built after
1699 # the host libraries and the host tools (which may be a cross compiler)
1701 target_libraries="target-libgcc \
1702 target-libiberty \
1703 target-libgloss \
1704 target-newlib \
1705 target-libstdc++-v3 \
1706 target-libmudflap \
1707 target-libssp \
1708 target-libgfortran \
1709 target-boehm-gc \
1710 ${libgcj} \
1711 target-libobjc \
1712 target-libada \
1713 target-libgomp"
1715 # these tools are built using the target libraries, and are intended to
1716 # run only in the target environment
1718 # note: any program that *uses* libraries that are in the "target_libraries"
1719 # list belongs in this list. those programs are also very likely
1720 # candidates for the "native_only" list which follows
1722 target_tools="target-examples target-groff target-gperf target-rda"
1724 ################################################################################
1726 ## All tools belong in one of the four categories, and are assigned above
1727 ## We assign ${configdirs} this way to remove all embedded newlines. This
1728 ## is important because configure will choke if they ever get through.
1729 ## ${configdirs} is directories we build using the host tools.
1730 ## ${target_configdirs} is directories we build using the target tools.
1731 configdirs=`echo ${host_libs} ${host_tools}`
1732 target_configdirs=`echo ${target_libraries} ${target_tools}`
1733 build_configdirs=`echo ${build_libs} ${build_tools}`
1735 ################################################################################
1737 srcname="gnu development package"
1739 # This gets set non-empty for some net releases of packages.
1740 appdirs=""
1742 # Define is_cross_compiler to save on calls to 'test'.
1743 is_cross_compiler=
1744 if test x"${host}" = x"${target}" ; then
1745 is_cross_compiler=no
1746 else
1747 is_cross_compiler=yes
1750 # Find the build and target subdir names.
1752 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1753 # have matching libraries, they should use host libraries: Makefile.tpl
1754 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1755 # However, they still use the build modules, because the corresponding
1756 # host modules (e.g. bison) are only built for the host when bootstrap
1757 # finishes. So:
1758 # - build_subdir is where we find build modules, and never changes.
1759 # - build_libsubdir is where we find build libraries, and can be overridden.
1761 # Prefix 'build-' so this never conflicts with target_subdir.
1762 build_subdir="build-${build_noncanonical}"
1764 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1765 if test "${with_build_libsubdir+set}" = set; then
1766 withval="$with_build_libsubdir"
1767 build_libsubdir="$withval"
1768 else
1769 build_libsubdir="$build_subdir"
1771 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1772 if ( test $srcdir = . && test -d gcc ) \
1773 || test -d $srcdir/../host-${host_noncanonical}; then
1774 host_subdir="host-${host_noncanonical}"
1775 else
1776 host_subdir=.
1778 # No prefix.
1779 target_subdir=${target_noncanonical}
1782 # Skipdirs are removed silently.
1783 skipdirs=
1784 # Noconfigdirs are removed loudly.
1785 noconfigdirs=""
1787 use_gnu_ld=
1788 # Make sure we don't let GNU ld be added if we didn't want it.
1789 if test x$with_gnu_ld = xno ; then
1790 use_gnu_ld=no
1791 noconfigdirs="$noconfigdirs ld"
1794 use_gnu_as=
1795 # Make sure we don't let GNU as be added if we didn't want it.
1796 if test x$with_gnu_as = xno ; then
1797 use_gnu_as=no
1798 noconfigdirs="$noconfigdirs gas"
1801 # some tools are so dependent upon X11 that if we're not building with X,
1802 # it's not even worth trying to configure, much less build, that tool.
1804 case ${with_x} in
1805 yes | "") ;; # the default value for this tree is that X11 is available
1807 skipdirs="${skipdirs} tk itcl libgui"
1808 # We won't be able to build gdbtk without X.
1809 enable_gdbtk=no
1811 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
1812 esac
1814 # Some tools are only suitable for building in a "native" situation.
1815 # Remove these if host!=target.
1816 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"
1818 # Similarly, some are only suitable for cross toolchains.
1819 # Remove these if host=target.
1820 cross_only="target-libgloss target-newlib target-opcodes"
1822 case $is_cross_compiler in
1823 no) skipdirs="${skipdirs} ${cross_only}" ;;
1824 yes) skipdirs="${skipdirs} ${native_only}" ;;
1825 esac
1827 # If both --with-headers and --with-libs are specified, default to
1828 # --without-newlib.
1829 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
1830 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
1831 if test x"${with_newlib}" = x ; then
1832 with_newlib=no
1836 # Recognize --with-newlib/--without-newlib.
1837 case ${with_newlib} in
1838 no) skipdirs="${skipdirs} target-newlib" ;;
1839 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
1840 esac
1842 # Configure extra directories which are host specific
1844 case "${host}" in
1845 *-cygwin*)
1846 configdirs="$configdirs libtermcap" ;;
1847 esac
1849 # A target can indicate whether a language isn't supported for some reason.
1850 # Only spaces may be used in this macro; not newlines or tabs.
1851 unsupported_languages=
1853 # Remove more programs from consideration, based on the host or
1854 # target this usually means that a port of the program doesn't
1855 # exist yet.
1857 case "${host}" in
1858 hppa*64*-*-*)
1859 noconfigdirs="$noconfigdirs byacc"
1861 i[3456789]86-*-vsta)
1862 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
1864 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
1865 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
1867 x86_64-*-mingw*)
1868 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1870 i[3456789]86-*-mingw32*)
1871 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
1872 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
1874 i[3456789]86-*-beos*)
1875 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
1877 *-*-cygwin*)
1878 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
1880 *-*-netbsd*)
1881 noconfigdirs="$noconfigdirs rcs"
1883 ppc*-*-pe)
1884 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1886 powerpc-*-beos*)
1887 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1889 esac
1892 # Check whether --enable-libada or --disable-libada was given.
1893 if test "${enable_libada+set}" = set; then
1894 enableval="$enable_libada"
1895 ENABLE_LIBADA=$enableval
1896 else
1897 ENABLE_LIBADA=yes
1899 if test "${ENABLE_LIBADA}" != "yes" ; then
1900 noconfigdirs="$noconfigdirs gnattools"
1903 # Check whether --enable-libssp or --disable-libssp was given.
1904 if test "${enable_libssp+set}" = set; then
1905 enableval="$enable_libssp"
1906 ENABLE_LIBSSP=$enableval
1907 else
1908 ENABLE_LIBSSP=yes
1911 # Save it here so that, even in case of --enable-libgcj, if the Java
1912 # front-end isn't enabled, we still get libgcj disabled.
1913 libgcj_saved=$libgcj
1914 case $enable_libgcj in
1915 yes)
1916 # If we reset it here, it won't get added to noconfigdirs in the
1917 # target-specific build rules, so it will be forcibly enabled
1918 # (unless the Java language itself isn't enabled).
1919 libgcj=
1922 # Make sure we get it printed in the list of not supported target libs.
1923 noconfigdirs="$noconfigdirs ${libgcj}"
1925 esac
1928 # Disable libmudflap on some systems.
1929 if test x$enable_libmudflap = x ; then
1930 case "${target}" in
1931 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1932 # Enable libmudflap by default in GNU and friends.
1934 *-*-freebsd*)
1935 # Enable libmudflap by default in FreeBSD.
1938 # Disable it by default everywhere else.
1939 noconfigdirs="$noconfigdirs target-libmudflap"
1941 esac
1944 # Disable libgomp on non POSIX hosted systems.
1945 if test x$enable_libgomp = x ; then
1946 # Enable libgomp by default on hosted POSIX systems.
1947 case "${target}" in
1948 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
1950 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
1952 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1954 *-*-darwin* | *-*-aix*)
1957 noconfigdirs="$noconfigdirs target-libgomp"
1959 esac
1963 case "${target}" in
1964 *-*-chorusos)
1965 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1967 powerpc-*-darwin* | i[3456789]86-*-darwin*)
1968 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof"
1969 noconfigdirs="$noconfigdirs sim target-rda"
1971 *-*-darwin*)
1972 noconfigdirs="$noconfigdirs ld gas gdb gprof"
1973 noconfigdirs="$noconfigdirs sim target-rda"
1974 noconfigdirs="$noconfigdirs ${libgcj}"
1976 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
1977 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1979 *-*-freebsd*)
1980 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
1981 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
1982 && test -f /usr/local/include/gmp.h; then
1983 with_gmp=/usr/local
1986 # Skip some stuff that's unsupported on some FreeBSD configurations.
1987 case "${target}" in
1988 i*86-*-*) ;;
1989 alpha*-*-*) ;;
1991 noconfigdirs="$noconfigdirs ${libgcj}"
1993 esac
1995 *-*-kaos*)
1996 # Remove unsupported stuff on all kaOS configurations.
1997 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
1998 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
1999 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2000 noconfigdirs="$noconfigdirs target-libgloss"
2002 *-*-netbsd*)
2003 # Skip some stuff on all NetBSD configurations.
2004 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2006 # Skip some stuff that's unsupported on some NetBSD configurations.
2007 case "${target}" in
2008 i*86-*-netbsdelf*) ;;
2009 arm*-*-netbsdelf*) ;;
2011 noconfigdirs="$noconfigdirs ${libgcj}"
2013 esac
2015 *-*-netware*)
2016 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
2018 *-*-rtems*)
2019 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2021 # The tpf target doesn't support gdb yet.
2022 *-*-tpf*)
2023 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
2025 *-*-uclinux*)
2026 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
2028 *-*-vxworks*)
2029 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
2031 alpha*-dec-osf*)
2032 # ld works, but does not support shared libraries.
2033 # newlib is not 64 bit ready. I'm not sure about fileutils.
2034 # gas doesn't generate exception information.
2035 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2037 alpha*-*-*vms*)
2038 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
2040 alpha*-*-linux*)
2041 # newlib is not 64 bit ready
2042 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2044 alpha*-*-*)
2045 # newlib is not 64 bit ready
2046 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2048 am33_2.0-*-linux*)
2049 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2051 sh-*-linux*)
2052 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
2054 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
2055 noconfigdirs="$noconfigdirs ${libgcj}"
2056 noconfigdirs="$noconfigdirs target-examples"
2057 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
2058 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
2059 noconfigdirs="$noconfigdirs expect dejagnu"
2060 # the C++ libraries don't build on top of CE's C libraries
2061 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2062 noconfigdirs="$noconfigdirs target-newlib"
2063 case "${host}" in
2064 *-*-cygwin*) ;; # keep gdb and readline
2065 *) noconfigdirs="$noconfigdirs gdb readline"
2067 esac
2069 arc-*-*)
2070 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2072 arm-semi-aof )
2074 arm-*-coff | strongarm-*-coff | xscale-*-coff)
2075 noconfigdirs="$noconfigdirs ${libgcj}"
2077 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
2078 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2080 arm*-*-linux-gnueabi)
2081 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
2082 noconfigdirs="$noconfigdirs target-libjava target-libobjc"
2084 arm*-*-symbianelf*)
2085 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
2087 arm-*-pe*)
2088 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2090 thumb-*-coff)
2091 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2093 thumb-*-elf)
2094 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2096 thumb-*-pe)
2097 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2099 arm-*-riscix*)
2100 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2102 avr-*-*)
2103 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2105 bfin-*-*)
2106 noconfigdirs="$noconfigdirs gdb"
2107 if test x${is_cross_compiler} != xno ; then
2108 target_configdirs="${target_configdirs} target-bsp target-cygmon"
2111 c4x-*-* | tic4x-*-*)
2112 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2114 c54x*-*-* | tic54x-*-*)
2115 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
2117 cris-*-* | crisv32-*-*)
2118 unsupported_languages="$unsupported_languages java"
2119 case "${target}" in
2120 *-*-aout)
2121 unsupported_languages="$unsupported_languages fortran"
2122 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2123 *-*-elf)
2124 unsupported_languages="$unsupported_languages fortran"
2125 noconfigdirs="$noconfigdirs target-boehm-gc";;
2126 *-*-linux*)
2127 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
2129 unsupported_languages="$unsupported_languages fortran"
2130 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
2131 esac
2133 crx-*-*)
2134 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
2136 d10v-*-*)
2137 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2139 d30v-*-*)
2140 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2142 fr30-*-elf*)
2143 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2145 frv-*-*)
2146 noconfigdirs="$noconfigdirs ${libgcj}"
2148 h8300*-*-*)
2149 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2151 h8500-*-*)
2152 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2154 hppa1.1-*-osf* | hppa1.1-*-bsd* )
2156 hppa*64*-*-linux* | parisc*64*-*-linux*)
2157 # In this case, it's because the hppa64-linux target is for
2158 # the kernel only at this point and has no libc, and thus no
2159 # headers, crt*.o, etc., all of which are needed by these.
2160 noconfigdirs="$noconfigdirs target-zlib"
2162 parisc*-*-linux* | hppa*-*-linux*)
2164 hppa*-*-*elf* | \
2165 hppa*-*-lites* | \
2166 hppa*-*-openbsd* | \
2167 hppa*64*-*-*)
2168 noconfigdirs="$noconfigdirs ${libgcj}"
2170 hppa*-hp-hpux11*)
2171 noconfigdirs="$noconfigdirs ld shellutils"
2173 hppa*-*-*)
2174 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
2175 # build on HP-UX 10.20.
2176 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
2178 i960-*-*)
2179 noconfigdirs="$noconfigdirs ${libgcj} gdb"
2181 ia64*-*-elf*)
2182 # No gdb support yet.
2183 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
2185 ia64*-**-hpux*)
2186 # No gdb or ld support yet.
2187 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
2189 i370-*-opened*)
2191 i[3456789]86-*-coff | i[3456789]86-*-elf)
2192 noconfigdirs="$noconfigdirs ${libgcj}"
2194 i[3456789]86-*-linux*)
2195 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
2196 # not build java stuff by default.
2197 case "${target}" in
2198 *-*-*libc1*)
2199 noconfigdirs="$noconfigdirs ${libgcj}";;
2200 esac
2202 # This section makes it possible to build newlib natively on linux.
2203 # If we are using a cross compiler then don't configure newlib.
2204 if test x${is_cross_compiler} != xno ; then
2205 noconfigdirs="$noconfigdirs target-newlib"
2207 noconfigdirs="$noconfigdirs target-libgloss"
2208 # If we are not using a cross compiler, do configure newlib.
2209 # Note however, that newlib will only be configured in this situation
2210 # if the --with-newlib option has been given, because otherwise
2211 # 'target-newlib' will appear in skipdirs.
2213 i[3456789]86-*-mingw32*)
2214 target_configdirs="$target_configdirs target-winsup"
2215 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2217 x86_64-*-mingw*)
2218 target_configdirs="$target_configdirs target-winsup"
2219 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
2221 *-*-cygwin*)
2222 target_configdirs="$target_configdirs target-libtermcap target-winsup"
2223 noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
2224 # always build newlib if winsup directory is present.
2225 if test -d "$srcdir/winsup/cygwin"; then
2226 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2227 elif test -d "$srcdir/newlib"; then
2228 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2231 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
2232 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
2234 i[3456789]86-*-pe)
2235 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
2237 i[3456789]86-*-sco3.2v5*)
2238 # The linker does not yet know about weak symbols in COFF,
2239 # and is not configured to handle mixed ELF and COFF.
2240 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
2242 i[3456789]86-*-sco*)
2243 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2245 i[3456789]86-*-solaris2*)
2246 noconfigdirs="$noconfigdirs target-libgloss"
2248 i[3456789]86-*-sysv4*)
2249 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2251 i[3456789]86-*-beos*)
2252 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2254 i[3456789]86-*-rdos*)
2255 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2257 m32r-*-*)
2258 noconfigdirs="$noconfigdirs ${libgcj}"
2260 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
2261 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2263 m68k-*-elf*)
2264 noconfigdirs="$noconfigdirs ${libgcj}"
2266 m68k-*-coff*)
2267 noconfigdirs="$noconfigdirs ${libgcj}"
2269 mcore-*-pe*)
2270 # The EPOC C++ environment does not support exceptions or rtti,
2271 # and so building libstdc++-v3 tends not to always work.
2272 noconfigdirs="$noconfigdirs target-libstdc++-v3"
2274 mmix-*-*)
2275 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
2276 unsupported_languages="$unsupported_languages fortran java"
2278 mn10200-*-*)
2279 noconfigdirs="$noconfigdirs ${libgcj}"
2281 mn10300-*-*)
2282 noconfigdirs="$noconfigdirs ${libgcj}"
2284 mt-*-*)
2285 noconfigdirs="$noconfigdirs sim"
2287 powerpc-*-aix*)
2288 # copied from rs6000-*-* entry
2289 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2291 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
2292 target_configdirs="$target_configdirs target-winsup"
2293 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
2294 # always build newlib.
2295 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
2297 # This is temporary until we can link against shared libraries
2298 powerpcle-*-solaris*)
2299 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
2301 powerpc-*-beos*)
2302 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
2304 powerpc-*-eabi)
2305 noconfigdirs="$noconfigdirs ${libgcj}"
2307 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
2309 rs6000-*-lynxos*)
2310 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
2312 rs6000-*-aix*)
2313 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
2315 rs6000-*-*)
2316 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2318 m68k-apollo-*)
2319 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
2321 mips*-*-irix5*)
2322 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2324 mips*-*-irix6*)
2325 # Linking libjava exceeds command-line length limits on at least
2326 # IRIX 6.2, but not on IRIX 6.5.
2327 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
2328 # <oldham@codesourcery.com>
2329 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2331 mips*-*-bsd*)
2332 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
2334 mips64*-*-linux*)
2335 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2337 mips*-*-linux*)
2338 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2340 mips*-*-*)
2341 noconfigdirs="$noconfigdirs gprof ${libgcj}"
2343 romp-*-*)
2344 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
2346 sh-*-* | sh64-*-*)
2347 case "${host}" in
2348 i[3456789]86-*-vsta) ;; # don't add gprof back in
2349 i[3456789]86-*-go32*) ;; # don't add gprof back in
2350 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
2351 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
2352 esac
2353 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2355 sparc-*-elf*)
2356 noconfigdirs="$noconfigdirs ${libgcj}"
2358 sparc64-*-elf*)
2359 noconfigdirs="$noconfigdirs ${libgcj}"
2361 sparclite-*-*)
2362 noconfigdirs="$noconfigdirs ${libgcj}"
2364 sparc-*-sunos4*)
2365 noconfigdirs="$noconfigdirs ${libgcj}"
2366 if test x${is_cross_compiler} != xno ; then
2367 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
2368 else
2369 use_gnu_ld=no
2372 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
2373 noconfigdirs="$noconfigdirs ${libgcj}"
2375 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
2377 spu-*-*)
2378 skipdirs="target-libssp"
2380 v810-*-*)
2381 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
2383 v850-*-*)
2384 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2386 v850e-*-*)
2387 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2389 v850ea-*-*)
2390 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
2392 vax-*-vms)
2393 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
2395 vax-*-*)
2396 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2398 xtensa-*-*)
2399 noconfigdirs="$noconfigdirs ${libgcj}"
2401 ip2k-*-*)
2402 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
2404 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
2405 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2407 *-*-lynxos*)
2408 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2410 *-*-*)
2411 noconfigdirs="$noconfigdirs ${libgcj}"
2413 esac
2415 # If we aren't building newlib, then don't build libgloss, since libgloss
2416 # depends upon some newlib header files.
2417 case "${noconfigdirs}" in
2418 *target-libgloss*) ;;
2419 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
2420 esac
2422 # Work in distributions that contain no compiler tools, like Autoconf.
2423 tentative_cc=""
2424 host_makefile_frag=/dev/null
2425 if test -d ${srcdir}/config ; then
2426 case "${host}" in
2427 m68k-hp-hpux*)
2428 # Avoid "too much defining" errors from HPUX compiler.
2429 tentative_cc="cc -Wp,-H256000"
2430 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
2431 # If it's HP/UX ar, this should be harmless.
2432 RANLIB="ar ts"
2434 m68k-apollo-sysv*)
2435 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
2437 m68k-apollo-bsd*)
2438 #None of the Apollo compilers can compile gas or binutils. The preprocessor
2439 # chokes on bfd, the compiler won't let you assign integers to enums, and
2440 # other problems. Defining CC to gcc is a questionable way to say "don't use
2441 # the apollo compiler" (the preferred version of GCC could be called cc,
2442 # or whatever), but I'm not sure leaving CC as cc is any better...
2443 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
2444 # Used to have BISON=yacc.
2445 tentative_cc=gcc
2447 m88k-dg-dgux*)
2448 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2450 m88k-harris-cxux*)
2451 # Under CX/UX, we want to tell the compiler to use ANSI mode.
2452 tentative_cc="cc -Xa"
2453 host_makefile_frag="config/mh-cxux"
2455 m88k-motorola-sysv*)
2457 mips*-dec-ultrix*)
2458 tentative_cc="cc -Wf,-XNg1000"
2459 host_makefile_frag="config/mh-decstation"
2461 mips*-nec-sysv4*)
2462 # The C compiler on NEC MIPS SVR4 needs bigger tables.
2463 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
2464 host_makefile_frag="config/mh-necv4"
2466 mips*-sgi-irix4*)
2467 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
2468 # environment. Also bump switch table size so that cp-parse will
2469 # compile. Bump string length limit so linker builds.
2470 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
2472 mips*-*-sysv4*)
2473 host_makefile_frag="config/mh-sysv4"
2475 mips*-*-sysv*)
2476 # This is for a MIPS running RISC/os 4.52C.
2478 # This is needed for GDB, but needs to be in the top-level make because
2479 # if a library is compiled with the bsd headers and gets linked with the
2480 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
2481 # a different size).
2482 # ptrace(2) apparently has problems in the BSD environment. No workaround is
2483 # known except to select the sysv environment. Could we use /proc instead?
2484 # These "sysv environments" and "bsd environments" often end up being a pain.
2486 # This is not part of CFLAGS because perhaps not all C compilers have this
2487 # option.
2488 tentative_cc="cc -systype sysv"
2490 i370-ibm-opened*)
2491 tentative_cc="c89"
2493 i[3456789]86-*-sysv5*)
2494 host_makefile_frag="config/mh-sysv5"
2496 i[3456789]86-*-dgux*)
2497 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
2498 host_makefile_frag="config/mh-dgux386"
2500 i[3456789]86-ncr-sysv4.3*)
2501 # The MetaWare compiler will generate a copyright message unless you
2502 # turn it off by adding the -Hnocopyr flag.
2503 tentative_cc="cc -Hnocopyr"
2505 i[3456789]86-ncr-sysv4*)
2506 # for an NCR 3000 (i486/SVR4) system.
2507 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
2508 # This compiler not only emits obnoxious copyright messages every time
2509 # you run it, but it chokes and dies on a whole bunch of GNU source
2510 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
2511 tentative_cc="/usr/ccs/ATT/cc"
2512 host_makefile_frag="config/mh-ncr3000"
2514 i[3456789]86-*-sco3.2v5*)
2516 i[3456789]86-*-sco*)
2517 # The native C compiler botches some simple uses of const. Unfortunately,
2518 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
2519 tentative_cc="cc -Dconst="
2520 host_makefile_frag="config/mh-sco"
2522 i[3456789]86-*-udk*)
2523 host_makefile_frag="config/mh-sysv5"
2525 i[3456789]86-*-solaris2*)
2526 host_makefile_frag="config/mh-sysv4"
2528 i[3456789]86-*-msdosdjgpp*)
2529 host_makefile_frag="config/mh-djgpp"
2531 *-cygwin*)
2532 host_makefile_frag="config/mh-cygwin"
2534 *-mingw32*)
2536 *-mingw64*)
2538 *-interix*)
2539 host_makefile_frag="config/mh-interix"
2541 vax-*-ultrix2*)
2542 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
2543 tentative_cc=gcc
2545 *-*-solaris2*)
2546 host_makefile_frag="config/mh-solaris"
2548 m68k-sun-sunos*)
2549 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
2550 # without overflowing the jump tables (-J says to use a 32 bit table)
2551 tentative_cc="cc -J"
2553 *-hp-hpux*)
2554 tentative_cc="cc -Wp,-H256000"
2556 *-*-hiux*)
2557 tentative_cc="cc -Wp,-H256000"
2559 rs6000-*-lynxos*)
2560 # /bin/cc is less than useful for our purposes. Always use GCC
2561 tentative_cc="/usr/cygnus/progressive/bin/gcc"
2562 host_makefile_frag="config/mh-lynxrs6k"
2564 powerpc-*-darwin*)
2565 host_makefile_frag="config/mh-ppc-darwin"
2567 powerpc-*-aix*)
2568 host_makefile_frag="config/mh-ppc-aix"
2570 rs6000-*-aix*)
2571 host_makefile_frag="config/mh-ppc-aix"
2573 *-*-lynxos*)
2574 # /bin/cc is less than useful for our purposes. Always use GCC
2575 tentative_cc="/bin/gcc"
2577 *-*-sysv4*)
2578 host_makefile_frag="config/mh-sysv4"
2580 # This is placed last to prevent interfering with the cases above.
2581 i[3456789]86-*-*)
2582 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
2583 host_makefile_frag="config/mh-x86omitfp"
2585 esac
2588 # If we aren't going to be using gcc, see if we can extract a definition
2589 # of CC from the fragment.
2590 # Actually, use the 'pre-extracted' version above.
2591 if test -z "${CC}" && test "${build}" = "${host}" ; then
2592 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2593 found=
2594 for dir in $PATH; do
2595 test -z "$dir" && dir=.
2596 if test -f $dir/gcc; then
2597 found=yes
2598 break
2600 done
2601 IFS="$save_ifs"
2602 if test -z "${found}" && test -n "${tentative_cc}" ; then
2603 CC=$tentative_cc
2607 if test "${build}" != "${host}" ; then
2608 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
2609 else
2610 CC_FOR_BUILD="\$(CC)"
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2640 done
2641 done
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647 echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2655 if test -z "$ac_cv_prog_CC"; then
2656 ac_ct_CC=$CC
2657 # Extract the first word of "gcc", so it can be a program name with args.
2658 set dummy gcc; ac_word=$2
2659 echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663 else
2664 if test -n "$ac_ct_CC"; then
2665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_ac_ct_CC="gcc"
2675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2678 done
2679 done
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2686 echo "${ECHO_T}$ac_ct_CC" >&6
2687 else
2688 echo "$as_me:$LINENO: result: no" >&5
2689 echo "${ECHO_T}no" >&6
2692 CC=$ac_ct_CC
2693 else
2694 CC="$ac_cv_prog_CC"
2697 if test -z "$CC"; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}cc; ac_word=$2
2701 echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC="$CC" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_CC="${ac_tool_prefix}cc"
2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2720 done
2721 done
2725 CC=$ac_cv_prog_CC
2726 if test -n "$CC"; then
2727 echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2735 if test -z "$ac_cv_prog_CC"; then
2736 ac_ct_CC=$CC
2737 # Extract the first word of "cc", so it can be a program name with args.
2738 set dummy cc; ac_word=$2
2739 echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 if test -n "$ac_ct_CC"; then
2745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 ac_cv_prog_ac_ct_CC="cc"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2758 done
2759 done
2763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2764 if test -n "$ac_ct_CC"; then
2765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2766 echo "${ECHO_T}$ac_ct_CC" >&6
2767 else
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 CC=$ac_ct_CC
2773 else
2774 CC="$ac_cv_prog_CC"
2778 if test -z "$CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc; ac_word=$2
2781 echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 ac_prog_rejected=no
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2801 ac_cv_prog_CC="cc"
2802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2805 done
2806 done
2808 if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy $ac_cv_prog_CC
2811 shift
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2816 shift
2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824 echo "$as_me:$LINENO: result: $CC" >&5
2825 echo "${ECHO_T}$CC" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2832 if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog in cl
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838 echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2857 done
2858 done
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 echo "$as_me:$LINENO: result: $CC" >&5
2865 echo "${ECHO_T}$CC" >&6
2866 else
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2871 test -n "$CC" && break
2872 done
2874 if test -z "$CC"; then
2875 ac_ct_CC=$CC
2876 for ac_prog in cl
2878 # Extract the first word of "$ac_prog", so it can be a program name with args.
2879 set dummy $ac_prog; ac_word=$2
2880 echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_ac_ct_CC="$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2907 echo "${ECHO_T}$ac_ct_CC" >&6
2908 else
2909 echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2913 test -n "$ac_ct_CC" && break
2914 done
2916 CC=$ac_ct_CC
2922 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: no acceptable C compiler found in \$PATH
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2928 # Provide some information about the compiler.
2929 echo "$as_me:$LINENO:" \
2930 "checking for C compiler version" >&5
2931 ac_compiler=`set X $ac_compile; echo $2`
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2933 (eval $ac_compiler --version </dev/null >&5) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2937 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2938 (eval $ac_compiler -v </dev/null >&5) 2>&5
2939 ac_status=$?
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2943 (eval $ac_compiler -V </dev/null >&5) 2>&5
2944 ac_status=$?
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h. */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2956 main ()
2960 return 0;
2962 _ACEOF
2963 ac_clean_files_save=$ac_clean_files
2964 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2965 # Try to create an executable without -o first, disregard a.out.
2966 # It will help us diagnose broken compilers, and finding out an intuition
2967 # of exeext.
2968 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2969 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2970 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2972 (eval $ac_link_default) 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 # Find the output, starting from the most likely. This scheme is
2977 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2978 # resort.
2980 # Be careful to initialize this variable, since it used to be cached.
2981 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2982 ac_cv_exeext=
2983 # b.out is created by i960 compilers.
2984 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2986 test -f "$ac_file" || continue
2987 case $ac_file in
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2990 conftest.$ac_ext )
2991 # This is the source file.
2993 [ab].out )
2994 # We found the default executable, but exeext='' is most
2995 # certainly right.
2996 break;;
2997 *.* )
2998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999 # FIXME: I believe we export ac_cv_exeext for Libtool,
3000 # but it would be cool to find out if it's true. Does anybody
3001 # maintain Libtool? --akim.
3002 export ac_cv_exeext
3003 break;;
3005 break;;
3006 esac
3007 done
3008 else
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C compiler cannot create executables
3015 See \`config.log' for more details." >&2;}
3016 { (exit 77); exit 77; }; }
3019 ac_exeext=$ac_cv_exeext
3020 echo "$as_me:$LINENO: result: $ac_file" >&5
3021 echo "${ECHO_T}$ac_file" >&6
3023 # Check the compiler produces executables we can run. If not, either
3024 # the compiler is broken, or we cross compile.
3025 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3026 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3027 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3028 # If not cross compiling, check that we can run a simple program.
3029 if test "$cross_compiling" != yes; then
3030 if { ac_try='./$ac_file'
3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 (eval $ac_try) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; }; then
3036 cross_compiling=no
3037 else
3038 if test "$cross_compiling" = maybe; then
3039 cross_compiling=yes
3040 else
3041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3042 If you meant to cross compile, use \`--host'.
3043 See \`config.log' for more details." >&5
3044 echo "$as_me: error: cannot run C compiled programs.
3045 If you meant to cross compile, use \`--host'.
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3051 echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3054 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3055 ac_clean_files=$ac_clean_files_save
3056 # Check the compiler produces executables we can run. If not, either
3057 # the compiler is broken, or we cross compile.
3058 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3059 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3060 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3061 echo "${ECHO_T}$cross_compiling" >&6
3063 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3064 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3066 (eval $ac_link) 2>&5
3067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3073 # `rm'.
3074 for ac_file in conftest.exe conftest conftest.*; do
3075 test -f "$ac_file" || continue
3076 case $ac_file in
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079 export ac_cv_exeext
3080 break;;
3081 * ) break;;
3082 esac
3083 done
3084 else
3085 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details." >&2;}
3089 { (exit 1); exit 1; }; }
3092 rm -f conftest$ac_cv_exeext
3093 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3094 echo "${ECHO_T}$ac_cv_exeext" >&6
3096 rm -f conftest.$ac_ext
3097 EXEEXT=$ac_cv_exeext
3098 ac_exeext=$EXEEXT
3099 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3100 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3101 if test "${ac_cv_objext+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3112 main ()
3116 return 0;
3118 _ACEOF
3119 rm -f conftest.o conftest.obj
3120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3121 (eval $ac_compile) 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; then
3125 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3126 case $ac_file in
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129 break;;
3130 esac
3131 done
3132 else
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }
3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3145 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146 echo "${ECHO_T}$ac_cv_objext" >&6
3147 OBJEXT=$ac_cv_objext
3148 ac_objext=$OBJEXT
3149 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3162 main ()
3164 #ifndef __GNUC__
3165 choke me
3166 #endif
3169 return 0;
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 (eval $ac_try) 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_compiler_gnu=yes
3195 else
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3199 ac_compiler_gnu=no
3201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3205 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3207 GCC=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 CFLAGS="-g"
3211 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3213 if test "${ac_cv_prog_cc_g+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3224 main ()
3228 return 0;
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag"
3241 || test ! -s conftest.err'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_prog_cc_g=yes
3254 else
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 ac_cv_prog_cc_g=no
3260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3263 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3264 if test "$ac_test_CFLAGS" = set; then
3265 CFLAGS=$ac_save_CFLAGS
3266 elif test $ac_cv_prog_cc_g = yes; then
3267 if test "$GCC" = yes; then
3268 CFLAGS="-g -O2"
3269 else
3270 CFLAGS="-g"
3272 else
3273 if test "$GCC" = yes; then
3274 CFLAGS="-O2"
3275 else
3276 CFLAGS=
3279 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3280 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3281 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 else
3284 ac_cv_prog_cc_stdc=no
3285 ac_save_CC=$CC
3286 cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h. */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3292 #include <stdarg.h>
3293 #include <stdio.h>
3294 #include <sys/types.h>
3295 #include <sys/stat.h>
3296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3297 struct buf { int x; };
3298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3299 static char *e (p, i)
3300 char **p;
3301 int i;
3303 return p[i];
3305 static char *f (char * (*g) (char **, int), char **p, ...)
3307 char *s;
3308 va_list v;
3309 va_start (v,p);
3310 s = g (p, va_arg (v,int));
3311 va_end (v);
3312 return s;
3315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3316 function prototypes and stuff, but not '\xHH' hex character constants.
3317 These don't provoke an error unfortunately, instead are silently treated
3318 as 'x'. The following induces an error, until -std1 is added to get
3319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3320 array size at least. It's necessary to write '\x00'==0 to get something
3321 that's true only with -std1. */
3322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3324 int test (int i, double x);
3325 struct s1 {int (*f) (int a);};
3326 struct s2 {int (*f) (double a);};
3327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3328 int argc;
3329 char **argv;
3331 main ()
3333 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3335 return 0;
3337 _ACEOF
3338 # Don't try gcc -ansi; that turns off useful extensions and
3339 # breaks some systems' header files.
3340 # AIX -qlanglvl=ansi
3341 # Ultrix and OSF/1 -std1
3342 # HP-UX 10.20 and later -Ae
3343 # HP-UX older versions -Aa -D_HPUX_SOURCE
3344 # SVR4 -Xc -D__EXTENSIONS__
3345 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3347 CC="$ac_save_CC $ac_arg"
3348 rm -f conftest.$ac_objext
3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -z "$ac_c_werror_flag"
3358 || test ! -s conftest.err'
3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360 (eval $ac_try) 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_prog_cc_stdc=$ac_arg
3371 break
3372 else
3373 echo "$as_me: failed program was:" >&5
3374 sed 's/^/| /' conftest.$ac_ext >&5
3377 rm -f conftest.err conftest.$ac_objext
3378 done
3379 rm -f conftest.$ac_ext conftest.$ac_objext
3380 CC=$ac_save_CC
3384 case "x$ac_cv_prog_cc_stdc" in
3385 x|xno)
3386 echo "$as_me:$LINENO: result: none needed" >&5
3387 echo "${ECHO_T}none needed" >&6 ;;
3389 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3391 CC="$CC $ac_cv_prog_cc_stdc" ;;
3392 esac
3394 # Some people use a C++ compiler to compile C. Since we use `exit',
3395 # in C++ we need to declare it. In case someone uses the same compiler
3396 # for both compiling C and C++ we need to have the C++ compiler decide
3397 # the declaration of exit, since it's the most demanding environment.
3398 cat >conftest.$ac_ext <<_ACEOF
3399 #ifndef __cplusplus
3400 choke me
3401 #endif
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3425 for ac_declaration in \
3426 '' \
3427 'extern "C" void std::exit (int) throw (); using std::exit;' \
3428 'extern "C" void std::exit (int); using std::exit;' \
3429 'extern "C" void exit (int) throw ();' \
3430 'extern "C" void exit (int);' \
3431 'void exit (int);'
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 $ac_declaration
3440 #include <stdlib.h>
3442 main ()
3444 exit (42);
3446 return 0;
3448 _ACEOF
3449 rm -f conftest.$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451 (eval $ac_compile) 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } &&
3458 { ac_try='test -z "$ac_c_werror_flag"
3459 || test ! -s conftest.err'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 (eval $ac_try) 2>&5
3462 ac_status=$?
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; } &&
3465 { ac_try='test -s conftest.$ac_objext'
3466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 (eval $ac_try) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3472 else
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 continue
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 $ac_declaration
3487 main ()
3489 exit (42);
3491 return 0;
3493 _ACEOF
3494 rm -f conftest.$ac_objext
3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496 (eval $ac_compile) 2>conftest.er1
3497 ac_status=$?
3498 grep -v '^ *+' conftest.er1 >conftest.err
3499 rm -f conftest.er1
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } &&
3503 { ac_try='test -z "$ac_c_werror_flag"
3504 || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 break
3517 else
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523 done
3524 rm -f conftest*
3525 if test -n "$ac_declaration"; then
3526 echo '#ifdef __cplusplus' >>confdefs.h
3527 echo $ac_declaration >>confdefs.h
3528 echo '#endif' >>confdefs.h
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_ext=c
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 ac_ext=cc
3544 ac_cpp='$CXXCPP $CPPFLAGS'
3545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3548 if test -n "$ac_tool_prefix"; then
3549 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3553 echo "$as_me:$LINENO: checking for $ac_word" >&5
3554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555 if test "${ac_cv_prog_CXX+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558 if test -n "$CXX"; then
3559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3577 CXX=$ac_cv_prog_CXX
3578 if test -n "$CXX"; then
3579 echo "$as_me:$LINENO: result: $CXX" >&5
3580 echo "${ECHO_T}$CXX" >&6
3581 else
3582 echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3586 test -n "$CXX" && break
3587 done
3589 if test -z "$CXX"; then
3590 ac_ct_CXX=$CXX
3591 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
3594 set dummy $ac_prog; ac_word=$2
3595 echo "$as_me:$LINENO: checking for $ac_word" >&5
3596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600 if test -n "$ac_ct_CXX"; then
3601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_ac_ct_CXX="$ac_prog"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3614 done
3615 done
3619 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3620 if test -n "$ac_ct_CXX"; then
3621 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3622 echo "${ECHO_T}$ac_ct_CXX" >&6
3623 else
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3628 test -n "$ac_ct_CXX" && break
3629 done
3630 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3632 CXX=$ac_ct_CXX
3636 # Provide some information about the compiler.
3637 echo "$as_me:$LINENO:" \
3638 "checking for C++ compiler version" >&5
3639 ac_compiler=`set X $ac_compile; echo $2`
3640 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3641 (eval $ac_compiler --version </dev/null >&5) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3646 (eval $ac_compiler -v </dev/null >&5) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }
3650 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3651 (eval $ac_compiler -V </dev/null >&5) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }
3656 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3657 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3658 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h. */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3669 main ()
3671 #ifndef __GNUC__
3672 choke me
3673 #endif
3676 return 0;
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_cxx_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_compiler_gnu=yes
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 ac_compiler_gnu=no
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3712 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3713 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3714 GXX=`test $ac_compiler_gnu = yes && echo yes`
3715 ac_test_CXXFLAGS=${CXXFLAGS+set}
3716 ac_save_CXXFLAGS=$CXXFLAGS
3717 CXXFLAGS="-g"
3718 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3719 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3720 if test "${ac_cv_prog_cxx_g+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 cat >conftest.$ac_ext <<_ACEOF
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3731 main ()
3735 return 0;
3737 _ACEOF
3738 rm -f conftest.$ac_objext
3739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3740 (eval $ac_compile) 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
3747 { ac_try='test -z "$ac_cxx_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest.$ac_objext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_cv_prog_cxx_g=yes
3761 else
3762 echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 ac_cv_prog_cxx_g=no
3767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3769 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3770 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3771 if test "$ac_test_CXXFLAGS" = set; then
3772 CXXFLAGS=$ac_save_CXXFLAGS
3773 elif test $ac_cv_prog_cxx_g = yes; then
3774 if test "$GXX" = yes; then
3775 CXXFLAGS="-g -O2"
3776 else
3777 CXXFLAGS="-g"
3779 else
3780 if test "$GXX" = yes; then
3781 CXXFLAGS="-O2"
3782 else
3783 CXXFLAGS=
3786 for ac_declaration in \
3787 '' \
3788 'extern "C" void std::exit (int) throw (); using std::exit;' \
3789 'extern "C" void std::exit (int); using std::exit;' \
3790 'extern "C" void exit (int) throw ();' \
3791 'extern "C" void exit (int);' \
3792 'void exit (int);'
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 $ac_declaration
3801 #include <stdlib.h>
3803 main ()
3805 exit (42);
3807 return 0;
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812 (eval $ac_compile) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_cxx_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 continue
3839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 $ac_declaration
3848 main ()
3850 exit (42);
3852 return 0;
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_cxx_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest.$ac_objext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 break
3878 else
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884 done
3885 rm -f conftest*
3886 if test -n "$ac_declaration"; then
3887 echo '#ifdef __cplusplus' >>confdefs.h
3888 echo $ac_declaration >>confdefs.h
3889 echo '#endif' >>confdefs.h
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 # We must set the default linker to the linker used by gcc for the correct
3900 # operation of libtool. If LD is not defined and we are using gcc, try to
3901 # set the LD default to the ld used by gcc.
3902 if test -z "$LD"; then
3903 if test "$GCC" = yes; then
3904 case $build in
3905 *-*-mingw*)
3906 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
3908 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
3909 esac
3910 case $gcc_prog_ld in
3911 # Accept absolute paths.
3912 [\\/]* | [A-Za-z]:[\\/]*)
3913 LD="$gcc_prog_ld" ;;
3914 esac
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 if test -n "$GNATBIND"; then
3930 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3943 done
3944 done
3948 GNATBIND=$ac_cv_prog_GNATBIND
3949 if test -n "$GNATBIND"; then
3950 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3951 echo "${ECHO_T}$GNATBIND" >&6
3952 else
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3958 if test -z "$ac_cv_prog_GNATBIND"; then
3959 ac_ct_GNATBIND=$GNATBIND
3960 # Extract the first word of "gnatbind", so it can be a program name with args.
3961 set dummy gnatbind; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 if test -n "$ac_ct_GNATBIND"; then
3968 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3984 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3987 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3988 if test -n "$ac_ct_GNATBIND"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3990 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 GNATBIND=$ac_ct_GNATBIND
3997 else
3998 GNATBIND="$ac_cv_prog_GNATBIND"
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_GNATMAKE+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 if test -n "$GNATMAKE"; then
4010 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4023 done
4024 done
4028 GNATMAKE=$ac_cv_prog_GNATMAKE
4029 if test -n "$GNATMAKE"; then
4030 echo "$as_me:$LINENO: result: $GNATMAKE" >&5
4031 echo "${ECHO_T}$GNATMAKE" >&6
4032 else
4033 echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4038 if test -z "$ac_cv_prog_GNATMAKE"; then
4039 ac_ct_GNATMAKE=$GNATMAKE
4040 # Extract the first word of "gnatmake", so it can be a program name with args.
4041 set dummy gnatmake; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 if test -n "$ac_ct_GNATMAKE"; then
4048 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4061 done
4062 done
4064 test -z "$ac_cv_prog_ac_ct_GNATMAKE" && ac_cv_prog_ac_ct_GNATMAKE="no"
4067 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4068 if test -n "$ac_ct_GNATMAKE"; then
4069 echo "$as_me:$LINENO: result: $ac_ct_GNATMAKE" >&5
4070 echo "${ECHO_T}$ac_ct_GNATMAKE" >&6
4071 else
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4076 GNATMAKE=$ac_ct_GNATMAKE
4077 else
4078 GNATMAKE="$ac_cv_prog_GNATMAKE"
4081 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
4082 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
4083 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086 cat >conftest.adb <<EOF
4087 procedure conftest is begin null; end conftest;
4089 acx_cv_cc_gcc_supports_ada=no
4090 # There is a bug in old released versions of GCC which causes the
4091 # driver to exit successfully when the appropriate language module
4092 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4093 # Therefore we must check for the error message as well as an
4094 # unsuccessful exit.
4095 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4096 # given a .adb file, but produce no object file. So we must check
4097 # if an object file was really produced to guard against this.
4098 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4099 if test x"$errors" = x && test -f conftest.$ac_objext; then
4100 acx_cv_cc_gcc_supports_ada=yes
4102 rm -f conftest.*
4104 echo "$as_me:$LINENO: result: $acx_cv_cc_gcc_supports_ada" >&5
4105 echo "${ECHO_T}$acx_cv_cc_gcc_supports_ada" >&6
4107 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4108 have_gnat=yes
4109 else
4110 have_gnat=no
4113 echo "$as_me:$LINENO: checking how to compare bootstrapped objects" >&5
4114 echo $ECHO_N "checking how to compare bootstrapped objects... $ECHO_C" >&6
4115 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 echo abfoo >t1
4119 echo cdfoo >t2
4120 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4121 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4122 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4124 else
4125 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4128 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4129 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4131 else
4132 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4135 rm t1 t2
4138 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4139 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4140 do_compare="$gcc_cv_prog_cmp_skip"
4144 # Check for GMP and MPFR
4145 gmplibs="-lmpfr -lgmp"
4146 gmpinc=
4147 have_gmp=no
4149 # Specify a location for mpfr
4150 # check for this first so it ends up on the link line before gmp.
4152 # Check whether --with-mpfr-dir or --without-mpfr-dir was given.
4153 if test "${with_mpfr_dir+set}" = set; then
4154 withval="$with_mpfr_dir"
4155 { { echo "$as_me:$LINENO: error: The --with-mpfr-dir=PATH option has been removed.
4156 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&5
4157 echo "$as_me: error: The --with-mpfr-dir=PATH option has been removed.
4158 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" >&2;}
4159 { (exit 1); exit 1; }; }
4163 # Check whether --with-mpfr or --without-mpfr was given.
4164 if test "${with_mpfr+set}" = set; then
4165 withval="$with_mpfr"
4169 # Check whether --with-mpfr_include or --without-mpfr_include was given.
4170 if test "${with_mpfr_include+set}" = set; then
4171 withval="$with_mpfr_include"
4175 # Check whether --with-mpfr_lib or --without-mpfr_lib was given.
4176 if test "${with_mpfr_lib+set}" = set; then
4177 withval="$with_mpfr_lib"
4181 if test "x$with_mpfr" != x; then
4182 gmplibs="-L$with_mpfr/lib $gmplibs"
4183 gmpinc="-I$with_mpfr/include"
4185 if test "x$with_mpfr_include" != x; then
4186 gmpinc="-I$with_mpfr_include"
4188 if test "x$with_mpfr_lib" != x; then
4189 gmplibs="-L$with_mpfr_lib $gmplibs"
4191 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4192 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4193 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
4194 # Do not test the mpfr version. Assume that it is sufficient, since
4195 # it is in the source tree, and the library has not been built yet
4196 # but it would be included on the link line in the version check below
4197 # hence making the test fail.
4198 have_gmp=yes
4201 # Specify a location for gmp
4203 # Check whether --with-gmp-dir or --without-gmp-dir was given.
4204 if test "${with_gmp_dir+set}" = set; then
4205 withval="$with_gmp_dir"
4206 { { echo "$as_me:$LINENO: error: The --with-gmp-dir=PATH option has been removed.
4207 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&5
4208 echo "$as_me: error: The --with-gmp-dir=PATH option has been removed.
4209 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" >&2;}
4210 { (exit 1); exit 1; }; }
4214 # Check whether --with-gmp or --without-gmp was given.
4215 if test "${with_gmp+set}" = set; then
4216 withval="$with_gmp"
4220 # Check whether --with-gmp_include or --without-gmp_include was given.
4221 if test "${with_gmp_include+set}" = set; then
4222 withval="$with_gmp_include"
4226 # Check whether --with-gmp_lib or --without-gmp_lib was given.
4227 if test "${with_gmp_lib+set}" = set; then
4228 withval="$with_gmp_lib"
4233 if test "x$with_gmp" != x; then
4234 gmplibs="-L$with_gmp/lib $gmplibs"
4235 gmpinc="-I$with_gmp/include $gmpinc"
4237 if test "x$with_gmp_include" != x; then
4238 gmpinc="-I$with_gmp_include $gmpinc"
4240 if test "x$with_gmp_lib" != x; then
4241 gmplibs="-L$with_gmp_lib $gmplibs"
4243 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
4244 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
4245 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
4246 # Do not test the gmp version. Assume that it is sufficient, since
4247 # it is in the source tree, and the library has not been built yet
4248 # but it would be included on the link line in the version check below
4249 # hence making the test fail.
4250 have_gmp=yes
4253 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4254 have_gmp=yes
4255 saved_CFLAGS="$CFLAGS"
4256 CFLAGS="$CFLAGS $gmpinc"
4257 # Check GMP actually works
4258 echo "$as_me:$LINENO: checking for correct version of gmp.h" >&5
4259 echo $ECHO_N "checking for correct version of gmp.h... $ECHO_C" >&6
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #include "gmp.h"
4269 main ()
4272 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 1)
4273 choke me
4274 #endif
4277 return 0;
4279 _ACEOF
4280 rm -f conftest.$ac_objext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest.$ac_objext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 echo "$as_me:$LINENO: result: yes" >&5
4303 echo "${ECHO_T}yes" >&6
4304 else
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; have_gmp=no
4311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 if test x"$have_gmp" = xyes; then
4314 saved_LIBS="$LIBS"
4315 LIBS="$LIBS $gmplibs"
4316 echo "$as_me:$LINENO: checking for correct version of mpfr.h" >&5
4317 echo $ECHO_N "checking for correct version of mpfr.h... $ECHO_C" >&6
4318 cat >conftest.$ac_ext <<_ACEOF
4319 /* confdefs.h. */
4320 _ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 #include <gmp.h>
4325 #include <mpfr.h>
4327 main ()
4330 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
4331 choke me
4332 #endif
4333 mpfr_t n; mpfr_init(n);
4334 mpfr_t x; mpfr_init(x);
4335 int t;
4336 mpfr_atan2 (n, n, x, GMP_RNDN);
4337 mpfr_erfc (n, x, GMP_RNDN);
4338 mpfr_subnormalize (x, t, GMP_RNDN);
4341 return 0;
4343 _ACEOF
4344 rm -f conftest.$ac_objext conftest$ac_exeext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4346 (eval $ac_link) 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag"
4354 || test ! -s conftest.err'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 (eval $ac_try) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest$ac_exeext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362 (eval $ac_try) 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #include <gmp.h>
4373 #include <mpfr.h>
4375 main ()
4378 #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
4379 choke me
4380 #endif
4381 mpfr_t n; mpfr_init(n);
4384 return 0;
4386 _ACEOF
4387 rm -f conftest.$ac_objext conftest$ac_exeext
4388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4389 (eval $ac_link) 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try='test -z "$ac_c_werror_flag"
4397 || test ! -s conftest.err'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 (eval $ac_try) 2>&5
4400 ac_status=$?
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; } &&
4403 { ac_try='test -s conftest$ac_exeext'
4404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405 (eval $ac_try) 2>&5
4406 ac_status=$?
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); }; }; then
4409 echo "$as_me:$LINENO: result: yes" >&5
4410 echo "${ECHO_T}yes" >&6
4411 else
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.$ac_ext >&5
4415 echo "$as_me:$LINENO: result: buggy but acceptable" >&5
4416 echo "${ECHO_T}buggy but acceptable" >&6
4418 rm -f conftest.err conftest.$ac_objext \
4419 conftest$ac_exeext conftest.$ac_ext
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; have_gmp=no
4427 rm -f conftest.err conftest.$ac_objext \
4428 conftest$ac_exeext conftest.$ac_ext
4429 LIBS="$saved_LIBS"
4431 CFLAGS="$saved_CFLAGS"
4433 if test x$have_gmp != xyes; then
4434 { { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4435 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4436 Copies of these libraries' source code can be found at their respective
4437 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4438 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4439 If you obtained GMP and/or MPFR from a vendor distribution package, make
4440 sure that you have installed both the libraries and the header files.
4441 They may be located in separate packages." >&5
4442 echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
4443 Try the --with-gmp and/or --with-mpfr options to specify their locations.
4444 Copies of these libraries' source code can be found at their respective
4445 hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
4446 See also http://gcc.gnu.org/install/prerequisites.html for additional info.
4447 If you obtained GMP and/or MPFR from a vendor distribution package, make
4448 sure that you have installed both the libraries and the header files.
4449 They may be located in separate packages." >&2;}
4450 { (exit 1); exit 1; }; }
4454 # Flags needed for both GMP and/or MPFR
4458 # By default, C is the only stage 1 language.
4459 stage1_languages=,c,
4461 # Figure out what language subdirectories are present.
4462 # Look if the user specified --enable-languages="..."; if not, use
4463 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4464 # go away some day.
4465 # NB: embedded tabs in this IF block -- do not untabify
4466 if test -d ${srcdir}/gcc; then
4467 if test x"${enable_languages+set}" != xset; then
4468 if test x"${LANGUAGES+set}" = xset; then
4469 enable_languages="${LANGUAGES}"
4470 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
4471 else
4472 enable_languages=all
4474 else
4475 if test x"${enable_languages}" = x ||
4476 test x"${enable_languages}" = xyes;
4477 then
4478 echo configure.in: --enable-languages needs at least one language argument 1>&2
4479 exit 1
4482 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
4484 # 'f95' is the old name for the 'fortran' language. We issue a warning
4485 # and make the substitution.
4486 case ,${enable_languages}, in
4487 *,f95,*)
4488 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
4489 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
4491 esac
4493 # First scan to see if an enabled language requires some other language.
4494 # We assume that a given config-lang.in will list all the language
4495 # front ends it requires, even if some are required indirectly.
4496 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4497 case ${lang_frag} in
4498 ..) ;;
4499 # The odd quoting in the next line works around
4500 # an apparent bug in bash 1.12 on linux.
4501 ${srcdir}/gcc/[*]/config-lang.in) ;;
4503 # From the config-lang.in, get $language, $lang_requires
4504 language=
4505 lang_requires=
4506 . ${lang_frag}
4507 for other in ${lang_requires} ; do
4508 case ,${enable_languages}, in
4509 *,$other,*) ;;
4510 *,all,*) ;;
4511 *,$language,*)
4512 echo " \`$other' language required by \`$language'; enabling" 1>&2
4513 enable_languages="${enable_languages},${other}"
4515 esac
4516 done
4518 esac
4519 done
4521 new_enable_languages=,c,
4522 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
4523 potential_languages=,c,
4525 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
4526 case ${lang_frag} in
4527 ..) ;;
4528 # The odd quoting in the next line works around
4529 # an apparent bug in bash 1.12 on linux.
4530 ${srcdir}/gcc/[*]/config-lang.in) ;;
4532 # From the config-lang.in, get $language, $target_libs,
4533 # $lang_dirs, $boot_language, and $build_by_default
4534 language=
4535 target_libs=
4536 lang_dirs=
4537 subdir_requires=
4538 boot_language=no
4539 build_by_default=yes
4540 . ${lang_frag}
4541 if test x${language} = x; then
4542 echo "${lang_frag} doesn't set \$language." 1>&2
4543 exit 1
4546 case ,${enable_languages}, in
4547 *,${language},*)
4548 # Language was explicitly selected; include it.
4549 add_this_lang=yes
4551 *,all,*)
4552 # 'all' was selected, select it if it is a default language
4553 add_this_lang=${build_by_default}
4556 add_this_lang=no
4558 esac
4560 # Disable languages that need other directories if these aren't available.
4561 for i in $subdir_requires; do
4562 test -f "$srcdir/gcc/$i/config-lang.in" && continue
4563 case ,${enable_languages}, in
4564 *,${language},*)
4565 # Specifically requested language; tell them.
4566 { { echo "$as_me:$LINENO: error: The gcc/$i directory contains parts of $language but is missing" >&5
4567 echo "$as_me: error: The gcc/$i directory contains parts of $language but is missing" >&2;}
4568 { (exit 1); exit 1; }; }
4571 # Silently disable.
4572 add_this_lang=unsupported
4574 esac
4575 done
4577 # Disable Ada if no preexisting GNAT is available.
4578 case ,${enable_languages},:${language}:${have_gnat} in
4579 *,${language},*:ada:no)
4580 # Specifically requested language; tell them.
4581 { { echo "$as_me:$LINENO: error: GNAT is required to build $language" >&5
4582 echo "$as_me: error: GNAT is required to build $language" >&2;}
4583 { (exit 1); exit 1; }; }
4585 *:ada:no)
4586 # Silently disable.
4587 add_this_lang=unsupported
4589 esac
4591 # Disable a language that is unsupported by the target.
4592 case " $unsupported_languages " in
4593 *" $language "*)
4594 add_this_lang=unsupported
4596 esac
4598 case $add_this_lang in
4599 unsupported)
4600 # Remove language-dependent dirs.
4601 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4604 # Remove language-dependent dirs; still show language as supported.
4605 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
4606 potential_languages="${potential_languages}${language},"
4608 yes)
4609 new_enable_languages="${new_enable_languages}${language},"
4610 potential_languages="${potential_languages}${language},"
4611 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4612 case ${boot_language} in
4613 yes)
4614 # Add to (comma-separated) list of stage 1 languages.
4615 stage1_languages="${stage1_languages}${language},"
4617 esac
4619 esac
4621 esac
4622 done
4624 # Check whether --enable-stage1-languages or --disable-stage1-languages was given.
4625 if test "${enable_stage1_languages+set}" = set; then
4626 enableval="$enable_stage1_languages"
4627 case ,${enable_stage1_languages}, in
4628 ,no,|,,)
4629 # Set it to something that will have no effect in the loop below
4630 enable_stage1_languages=c ;;
4631 ,yes,)
4632 enable_stage1_languages=`echo $new_enable_languages | \
4633 sed -e "s/^,//" -e "s/,$//" ` ;;
4634 *,all,*)
4635 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
4636 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
4637 esac
4639 # Add "good" languages from enable_stage1_languages to stage1_languages,
4640 # while "bad" languages go in missing_languages. Leave no duplicates.
4641 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
4642 case $potential_languages in
4643 *,$i,*)
4644 case $stage1_languages in
4645 *,$i,*) ;;
4646 *) stage1_languages="$stage1_languages$i," ;;
4647 esac ;;
4649 case $missing_languages in
4650 *,$i,*) ;;
4651 *) missing_languages="$missing_languages$i," ;;
4652 esac ;;
4653 esac
4654 done
4657 # Remove leading/trailing commas that were added for simplicity
4658 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4659 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
4660 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
4661 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
4663 if test "x$missing_languages" != x; then
4664 { { echo "$as_me:$LINENO: error:
4665 The following requested languages could not be built: ${missing_languages}
4666 Supported languages are: ${potential_languages}" >&5
4667 echo "$as_me: error:
4668 The following requested languages could not be built: ${missing_languages}
4669 Supported languages are: ${potential_languages}" >&2;}
4670 { (exit 1); exit 1; }; }
4672 if test "x$new_enable_languages" != "x$enable_languages"; then
4673 echo The following languages will be built: ${new_enable_languages}
4674 enable_languages="$new_enable_languages"
4678 ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ `
4681 # Handle --disable-<component> generically.
4682 for dir in $configdirs $build_configdirs $target_configdirs ; do
4683 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
4684 if eval test x\${enable_${dirname}} "=" xno ; then
4685 noconfigdirs="$noconfigdirs $dir"
4687 done
4689 # Check for Boehm's garbage collector
4690 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4691 if test "${enable_objc_gc+set}" = set; then
4692 enableval="$enable_objc_gc"
4693 case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4694 *,objc,*:*:yes:*target-boehm-gc*)
4695 { { echo "$as_me:$LINENO: error: Boehm's garbage collector was requested yet not supported in this configuration" >&5
4696 echo "$as_me: error: Boehm's garbage collector was requested yet not supported in this configuration" >&2;}
4697 { (exit 1); exit 1; }; }
4699 esac
4702 # Make sure we only build Boehm's garbage collector if required.
4703 case ,${enable_languages},:${enable_objc_gc} in
4704 *,objc,*:yes)
4705 # Keep target-boehm-gc if requested for Objective-C.
4708 # Otherwise remove target-boehm-gc depending on target-libjava.
4709 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
4710 noconfigdirs="$noconfigdirs target-boehm-gc"
4713 esac
4715 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
4716 # $build_configdirs and $target_configdirs.
4717 # If we have the source for $noconfigdirs entries, add them to $notsupp.
4719 notsupp=""
4720 for dir in . $skipdirs $noconfigdirs ; do
4721 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
4722 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4723 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
4724 if test -r $srcdir/$dirname/configure ; then
4725 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4726 true
4727 else
4728 notsupp="$notsupp $dir"
4732 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4733 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
4734 if test -r $srcdir/$dirname/configure ; then
4735 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4736 true
4737 else
4738 notsupp="$notsupp $dir"
4742 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4743 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
4744 if test -r $srcdir/$dirname/configure ; then
4745 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4746 true
4747 else
4748 notsupp="$notsupp $dir"
4752 done
4754 # Sometimes the tools are distributed with libiberty but with no other
4755 # libraries. In that case, we don't want to build target-libiberty.
4756 # Don't let libgcc imply libiberty either.
4757 if test -n "${target_configdirs}" ; then
4758 libgcc=
4759 others=
4760 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
4761 if test "$i" = "libgcc"; then
4762 libgcc=target-libgcc
4763 elif test "$i" != "libiberty" ; then
4764 if test -r $srcdir/$i/configure ; then
4765 others=yes;
4766 break;
4769 done
4770 if test -z "${others}" ; then
4771 target_configdirs=$libgcc
4775 # Quietly strip out all directories which aren't configurable in this tree.
4776 # This relies on all configurable subdirectories being autoconfiscated, which
4777 # is now the case.
4778 build_configdirs_all="$build_configdirs"
4779 build_configdirs=
4780 for i in ${build_configdirs_all} ; do
4781 j=`echo $i | sed -e s/build-//g`
4782 if test -f ${srcdir}/$j/configure ; then
4783 build_configdirs="${build_configdirs} $i"
4785 done
4787 configdirs_all="$configdirs"
4788 configdirs=
4789 for i in ${configdirs_all} ; do
4790 if test -f ${srcdir}/$i/configure ; then
4791 configdirs="${configdirs} $i"
4793 done
4795 target_configdirs_all="$target_configdirs"
4796 target_configdirs=
4797 for i in ${target_configdirs_all} ; do
4798 j=`echo $i | sed -e s/target-//g`
4799 if test -f ${srcdir}/$j/configure ; then
4800 target_configdirs="${target_configdirs} $i"
4802 done
4804 # Produce a warning message for the subdirs we can't configure.
4805 # This isn't especially interesting in the Cygnus tree, but in the individual
4806 # FSF releases, it's important to let people know when their machine isn't
4807 # supported by the one or two programs in a package.
4809 if test -n "${notsupp}" && test -z "${norecursion}" ; then
4810 # If $appdirs is non-empty, at least one of those directories must still
4811 # be configured, or we error out. (E.g., if the gas release supports a
4812 # specified target in some subdirs but not the gas subdir, we shouldn't
4813 # pretend that all is well.)
4814 if test -n "$appdirs" ; then
4815 for dir in $appdirs ; do
4816 if test -r $dir/Makefile.in ; then
4817 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
4818 appdirs=""
4819 break
4821 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
4822 appdirs=""
4823 break
4826 done
4827 if test -n "$appdirs" ; then
4828 echo "*** This configuration is not supported by this package." 1>&2
4829 exit 1
4832 # Okay, some application will build, or we don't care to check. Still
4833 # notify of subdirs not getting built.
4834 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
4835 echo " ${notsupp}" 1>&2
4836 echo " (Any other directories should still work fine.)" 1>&2
4839 case "$host" in
4840 *msdosdjgpp*)
4841 enable_gdbtk=no ;;
4842 esac
4844 # To find our prefix, in gcc_cv_tool_prefix.
4846 # The user is always right.
4847 if test "${PATH_SEPARATOR+set}" != set; then
4848 echo "#! /bin/sh" >conf$$.sh
4849 echo "exit 0" >>conf$$.sh
4850 chmod +x conf$$.sh
4851 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4852 PATH_SEPARATOR=';'
4853 else
4854 PATH_SEPARATOR=:
4856 rm -f conf$$.sh
4861 if test "x$exec_prefix" = xNONE; then
4862 if test "x$prefix" = xNONE; then
4863 gcc_cv_tool_prefix=$ac_default_prefix
4864 else
4865 gcc_cv_tool_prefix=$prefix
4867 else
4868 gcc_cv_tool_prefix=$exec_prefix
4871 # If there is no compiler in the tree, use the PATH only. In any
4872 # case, if there is no compiler in the tree nobody should use
4873 # AS_FOR_TARGET and LD_FOR_TARGET.
4874 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
4875 gcc_version=`cat $srcdir/gcc/BASE-VER`
4876 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4877 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
4878 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4879 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
4880 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
4881 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
4882 else
4883 gcc_cv_tool_dirs=
4886 if test x$build = x$target && test -n "$md_exec_prefix"; then
4887 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
4892 copy_dirs=
4895 # Check whether --with-build-sysroot or --without-build-sysroot was given.
4896 if test "${with_build_sysroot+set}" = set; then
4897 withval="$with_build_sysroot"
4898 if test x"$withval" != x ; then
4899 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
4901 else
4902 SYSROOT_CFLAGS_FOR_TARGET=
4906 # Handle --with-headers=XXX. If the value is not "yes", the contents of
4907 # the named directory are copied to $(tooldir)/sys-include.
4908 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
4909 if test x${is_cross_compiler} = xno ; then
4910 echo 1>&2 '***' --with-headers is only supported when cross compiling
4911 exit 1
4913 if test x"${with_headers}" != xyes ; then
4914 x=${gcc_cv_tool_prefix}
4915 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
4919 # Handle --with-libs=XXX. If the value is not "yes", the contents of
4920 # the name directories are copied to $(tooldir)/lib. Multiple directories
4921 # are permitted.
4922 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
4923 if test x${is_cross_compiler} = xno ; then
4924 echo 1>&2 '***' --with-libs is only supported when cross compiling
4925 exit 1
4927 if test x"${with_libs}" != xyes ; then
4928 # Copy the libraries in reverse order, so that files in the first named
4929 # library override files in subsequent libraries.
4930 x=${gcc_cv_tool_prefix}
4931 for l in ${with_libs}; do
4932 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
4933 done
4937 # Set with_gnu_as and with_gnu_ld as appropriate.
4939 # This is done by determining whether or not the appropriate directory
4940 # is available, and by checking whether or not specific configurations
4941 # have requested that this magic not happen.
4943 # The command line options always override the explicit settings in
4944 # configure.in, and the settings in configure.in override this magic.
4946 # If the default for a toolchain is to use GNU as and ld, and you don't
4947 # want to do that, then you should use the --without-gnu-as and
4948 # --without-gnu-ld options for the configure script.
4950 if test x${use_gnu_as} = x &&
4951 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
4952 with_gnu_as=yes
4953 extra_host_args="$extra_host_args --with-gnu-as"
4956 if test x${use_gnu_ld} = x &&
4957 echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then
4958 with_gnu_ld=yes
4959 extra_host_args="$extra_host_args --with-gnu-ld"
4962 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
4963 # can detect this case.
4965 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
4966 with_newlib=yes
4967 extra_host_args="$extra_host_args --with-newlib"
4970 # Handle ${copy_dirs}
4971 set fnord ${copy_dirs}
4972 shift
4973 while test $# != 0 ; do
4974 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
4976 else
4977 echo Copying $1 to $2
4979 # Use the install script to create the directory and all required
4980 # parent directories.
4981 if test -d $2 ; then
4983 else
4984 echo >config.temp
4985 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
4988 # Copy the directory, assuming we have tar.
4989 # FIXME: Should we use B in the second tar? Not all systems support it.
4990 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
4992 # It is the responsibility of the user to correctly adjust all
4993 # symlinks. If somebody can figure out how to handle them correctly
4994 # here, feel free to add the code.
4996 echo $1 > $2/COPIED
4998 shift; shift
4999 done
5001 # Determine a target-dependent exec_prefix that the installed
5002 # gcc will search in. Keep this list sorted by triplet, with
5003 # the *-*-osname triplets last.
5004 md_exec_prefix=
5005 case "${target}" in
5006 alpha*-*-*vms*)
5007 md_exec_prefix=/gnu/lib/gcc-lib
5009 i3456786-pc-msdosdjgpp*)
5010 md_exec_prefix=/dev/env/DJDIR/bin
5012 i3456786-*-sco3.2v5*)
5013 if test $with_gnu_as = yes; then
5014 md_exec_prefix=/usr/gnu/bin
5015 else
5016 md_exec_prefix=/usr/ccs/bin/elf
5020 mn10300-*-* | \
5021 powerpc-*-chorusos* | \
5022 powerpc*-*-eabi* | \
5023 powerpc*-*-sysv* | \
5024 powerpc*-*-kaos* | \
5025 s390x-ibm-tpf*)
5026 md_exec_prefix=/usr/ccs/bin
5028 sparc64-*-elf*)
5030 v850*-*-*)
5031 md_exec_prefix=/usr/ccs/bin
5033 xtensa-*-elf*)
5036 *-*-beos* | \
5037 *-*-elf* | \
5038 *-*-hpux* | \
5039 *-*-netware* | \
5040 *-*-nto-qnx* | \
5041 *-*-rtems* | \
5042 *-*-solaris2* | \
5043 *-*-sysv45* | \
5044 *-*-vxworks* | \
5045 *-wrs-windiss)
5046 md_exec_prefix=/usr/ccs/bin
5048 esac
5050 extra_arflags_for_target=
5051 extra_nmflags_for_target=
5052 extra_ranlibflags_for_target=
5053 target_makefile_frag=/dev/null
5054 case "${target}" in
5055 mep*-*-*)
5056 target_makefile_frag="config/mt-mep"
5058 spu-*-*)
5059 target_makefile_frag="config/mt-spu"
5061 *-*-netware*)
5062 target_makefile_frag="config/mt-netware"
5064 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
5065 target_makefile_frag="config/mt-gnu"
5067 *-*-aix4.[3456789]* | *-*-aix[56789].*)
5068 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5069 # commands to handle both 32-bit and 64-bit objects. These flags are
5070 # harmless if we're using GNU nm or ar.
5071 extra_arflags_for_target=" -X32_64"
5072 extra_nmflags_for_target=" -B -X32_64"
5074 *-*-darwin*)
5075 # ranlib from Darwin requires the -c flag to look at common symbols.
5076 extra_ranlibflags_for_target=" -c"
5078 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
5079 target_makefile_frag="config/mt-wince"
5081 esac
5083 alphaieee_frag=/dev/null
5084 case $target in
5085 alpha*-*-*)
5086 # This just makes sure to use the -mieee option to build target libs.
5087 # This should probably be set individually by each library.
5088 alphaieee_frag="config/mt-alphaieee"
5090 esac
5092 # If --enable-target-optspace always use -Os instead of -O2 to build
5093 # the target libraries, similarly if it is not specified, use -Os
5094 # on selected platforms.
5095 ospace_frag=/dev/null
5096 case "${enable_target_optspace}:${target}" in
5097 yes:*)
5098 ospace_frag="config/mt-ospace"
5100 :d30v-*)
5101 ospace_frag="config/mt-d30v"
5103 :m32r-* | :d10v-* | :fr30-*)
5104 ospace_frag="config/mt-ospace"
5106 no:* | :*)
5109 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
5111 esac
5113 # Default to using --with-stabs for certain targets.
5114 if test x${with_stabs} = x ; then
5115 case "${target}" in
5116 mips*-*-irix[56]*)
5118 mips*-*-* | alpha*-*-osf*)
5119 with_stabs=yes;
5120 extra_host_args="${extra_host_args} --with-stabs"
5122 esac
5125 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
5126 # them automatically.
5127 case "${host}" in
5128 hppa*64*-*-hpux11*)
5129 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
5131 esac
5133 # Some systems (e.g., one of the i386-aix systems the gas testers are
5134 # using) don't handle "\$" correctly, so don't use it here.
5135 tooldir='${exec_prefix}'/${target_noncanonical}
5136 build_tooldir=${tooldir}
5138 # Create a .gdbinit file which runs the one in srcdir
5139 # and tells GDB to look there for source files.
5141 if test -r ${srcdir}/.gdbinit ; then
5142 case ${srcdir} in
5143 .) ;;
5144 *) cat > ./.gdbinit <<EOF
5145 # ${NO_EDIT}
5146 dir ${srcdir}
5147 dir .
5148 source ${srcdir}/.gdbinit
5151 esac
5154 # Make sure that the compiler is able to generate an executable. If it
5155 # can't, we are probably in trouble. We don't care whether we can run the
5156 # executable--we might be using a cross compiler--we only care whether it
5157 # can be created. At this point the main configure script has set CC.
5158 we_are_ok=no
5159 echo "int main () { return 0; }" > conftest.c
5160 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
5161 if test $? = 0 ; then
5162 if test -s conftest || test -s conftest.exe ; then
5163 we_are_ok=yes
5166 case $we_are_ok in
5168 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
5169 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
5170 rm -f conftest*
5171 exit 1
5173 esac
5174 rm -f conftest*
5176 # The Solaris /usr/ucb/cc compiler does not appear to work.
5177 case "${host}" in
5178 sparc-sun-solaris2*)
5179 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
5180 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
5181 could_use=
5182 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
5183 if test -d /opt/cygnus/bin ; then
5184 if test "$could_use" = "" ; then
5185 could_use="/opt/cygnus/bin"
5186 else
5187 could_use="$could_use or /opt/cygnus/bin"
5190 if test "$could_use" = "" ; then
5191 echo "Warning: compilation may fail because you're using"
5192 echo "/usr/ucb/cc. You should change your PATH or CC "
5193 echo "variable and rerun configure."
5194 else
5195 echo "Warning: compilation may fail because you're using"
5196 echo "/usr/ucb/cc, when you should use the C compiler from"
5197 echo "$could_use. You should change your"
5198 echo "PATH or CC variable and rerun configure."
5202 esac
5204 case "${host}" in
5205 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
5206 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
5207 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
5208 esac
5210 # Record target_configdirs and the configure arguments for target and
5211 # build configuration in Makefile.
5212 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
5213 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
5215 # Determine whether gdb needs tk/tcl or not.
5216 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
5217 # and in that case we want gdb to be built without tk. Ugh!
5218 # In fact I believe gdb is the *only* package directly dependent on tk,
5219 # so we should be able to put the 'maybe's in unconditionally and
5220 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
5221 # 100% sure that that's safe though.
5223 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
5224 case "$enable_gdbtk" in
5226 GDB_TK="" ;;
5227 yes)
5228 GDB_TK="${gdb_tk}" ;;
5230 # Only add the dependency on gdbtk when GDBtk is part of the gdb
5231 # distro. Eventually someone will fix this and move Insight, nee
5232 # gdbtk to a separate directory.
5233 if test -d ${srcdir}/gdb/gdbtk ; then
5234 GDB_TK="${gdb_tk}"
5235 else
5236 GDB_TK=""
5239 esac
5240 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
5241 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
5243 # Strip out unwanted targets.
5245 # While at that, we remove Makefiles if we were started for recursive
5246 # configuration, so that the top-level Makefile reconfigures them,
5247 # like we used to do when configure itself was recursive.
5249 # Loop over modules. $extrasub must be used with care, limiting as
5250 # much as possible the usage of range addresses. That's because autoconf
5251 # splits the sed script to overcome limits in the number of commands,
5252 # and relying on carefully-timed sed passes may turn out to be very hard
5253 # to maintain later. In this particular case, you just have to be careful
5254 # not to nest @if/@endif pairs, because configure will not warn you at all.
5256 # Check whether --enable-bootstrap or --disable-bootstrap was given.
5257 if test "${enable_bootstrap+set}" = set; then
5258 enableval="$enable_bootstrap"
5260 else
5261 enable_bootstrap=default
5264 # Issue errors and warnings for invalid/strange bootstrap combinations.
5265 case "$configdirs" in
5266 *gcc*) have_compiler=yes ;;
5267 *) have_compiler=no ;;
5268 esac
5270 case "$have_compiler:$host:$target:$enable_bootstrap" in
5271 *:*:*:no) ;;
5273 # Default behavior. Enable bootstrap if we have a compiler
5274 # and we are in a native configuration.
5275 yes:$build:$build:default)
5276 enable_bootstrap=yes ;;
5278 *:*:*:default)
5279 enable_bootstrap=no ;;
5281 # We have a compiler and we are in a native configuration, bootstrap is ok
5282 yes:$build:$build:yes)
5285 # Other configurations, but we have a compiler. Assume the user knows
5286 # what he's doing.
5287 yes:*:*:yes)
5288 { echo "$as_me:$LINENO: WARNING: trying to bootstrap a cross compiler" >&5
5289 echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5292 # No compiler: if they passed --enable-bootstrap explicitly, fail
5293 no:*:*:yes)
5294 { { echo "$as_me:$LINENO: error: cannot bootstrap without a compiler" >&5
5295 echo "$as_me: error: cannot bootstrap without a compiler" >&2;}
5296 { (exit 1); exit 1; }; } ;;
5298 # Fail if wrong command line
5300 { { echo "$as_me:$LINENO: error: invalid option for --enable-bootstrap" >&5
5301 echo "$as_me: error: invalid option for --enable-bootstrap" >&2;}
5302 { (exit 1); exit 1; }; }
5304 esac
5306 # Adjust the toplevel makefile according to whether bootstrap was selected.
5307 case "$enable_bootstrap" in
5308 yes)
5309 bootstrap_suffix=bootstrap ;;
5311 bootstrap_suffix=no-bootstrap ;;
5312 esac
5314 for module in ${build_configdirs} ; do
5315 if test -z "${no_recursion}" \
5316 && test -f ${build_subdir}/${module}/Makefile; then
5317 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
5318 rm -f ${build_subdir}/${module}/Makefile
5320 extrasub="$extrasub
5321 /^@if build-$module\$/d
5322 /^@endif build-$module\$/d
5323 /^@if build-$module-$bootstrap_suffix\$/d
5324 /^@endif build-$module-$bootstrap_suffix\$/d"
5325 done
5326 for module in ${configdirs} ; do
5327 if test -z "${no_recursion}"; then
5328 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
5329 if test -f ${file}; then
5330 echo 1>&2 "*** removing ${file} to force reconfigure"
5331 rm -f ${file}
5333 done
5335 extrasub="$extrasub
5336 /^@if $module\$/d
5337 /^@endif $module\$/d
5338 /^@if $module-$bootstrap_suffix\$/d
5339 /^@endif $module-$bootstrap_suffix\$/d"
5340 done
5341 for module in ${target_configdirs} ; do
5342 if test -z "${no_recursion}" \
5343 && test -f ${target_subdir}/${module}/Makefile; then
5344 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
5345 rm -f ${target_subdir}/${module}/Makefile
5347 extrasub="$extrasub
5348 /^@if target-$module\$/d
5349 /^@endif target-$module\$/d
5350 /^@if target-$module-$bootstrap_suffix\$/d
5351 /^@endif target-$module-$bootstrap_suffix\$/d"
5352 done
5354 extrasub="$extrasub
5355 /^@if /,/^@endif /d"
5357 # Create the serialization dependencies. This uses a temporary file.
5359 # Check whether --enable-serial-configure or --disable-serial-configure was given.
5360 if test "${enable_serial_configure+set}" = set; then
5361 enableval="$enable_serial_configure"
5365 case ${enable_serial_configure} in
5366 yes)
5367 enable_serial_build_configure=yes
5368 enable_serial_host_configure=yes
5369 enable_serial_target_configure=yes
5371 esac
5373 # These force 'configure's to be done one at a time, to avoid problems
5374 # with contention over a shared config.cache.
5375 rm -f serdep.tmp
5376 echo '# serdep.tmp' > serdep.tmp
5377 olditem=
5378 test "x${enable_serial_build_configure}" = xyes &&
5379 for item in ${build_configdirs} ; do
5380 case ${olditem} in
5381 "") ;;
5382 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
5383 esac
5384 olditem=${item}
5385 done
5386 olditem=
5387 test "x${enable_serial_host_configure}" = xyes &&
5388 for item in ${configdirs} ; do
5389 case ${olditem} in
5390 "") ;;
5391 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
5392 esac
5393 olditem=${item}
5394 done
5395 olditem=
5396 test "x${enable_serial_target_configure}" = xyes &&
5397 for item in ${target_configdirs} ; do
5398 case ${olditem} in
5399 "") ;;
5400 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
5401 esac
5402 olditem=${item}
5403 done
5404 serialization_dependencies=serdep.tmp
5407 # Base args. Strip norecursion, cache-file, srcdir, host, build,
5408 # target, nonopt, and variable assignments. These are the ones we
5409 # might not want to pass down to subconfigures. Also strip
5410 # program-prefix, program-suffix, and program-transform-name, so that
5411 # we can pass down a consistent program-transform-name.
5412 baseargs=
5413 keep_next=no
5414 skip_next=no
5415 eval "set -- $ac_configure_args"
5416 for ac_arg
5418 if test X"$skip_next" = X"yes"; then
5419 skip_next=no
5420 continue
5422 if test X"$keep_next" = X"yes"; then
5423 case $ac_arg in
5424 *\'*)
5425 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5426 esac
5427 baseargs="$baseargs '$ac_arg'"
5428 keep_next=no
5429 continue
5432 # Handle separated arguments. Based on the logic generated by
5433 # autoconf 2.59.
5434 case $ac_arg in
5435 *=* | --config-cache | -C | -disable-* | --disable-* \
5436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
5437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
5438 | -with-* | --with-* | -without-* | --without-* | --x)
5439 separate_arg=no
5442 separate_arg=yes
5445 separate_arg=no
5447 esac
5449 case "$ac_arg" in
5450 --no*)
5451 continue
5453 --c* | \
5454 --sr* | \
5455 --ho* | \
5456 --bu* | \
5457 --t* | \
5458 --program-* | \
5459 -cache_file* | \
5460 -srcdir* | \
5461 -host* | \
5462 -build* | \
5463 -target* | \
5464 -program-prefix* | \
5465 -program-suffix* | \
5466 -program-transform-name* )
5467 skip_next=$separate_arg
5468 continue
5471 # An option. Add it.
5472 case $ac_arg in
5473 *\'*)
5474 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5475 esac
5476 baseargs="$baseargs '$ac_arg'"
5477 keep_next=$separate_arg
5480 # Either a variable assignment, or a nonopt (triplet). Don't
5481 # pass it down; let the Makefile handle this.
5482 continue
5484 esac
5485 done
5486 # Remove the initial space we just introduced and, as these will be
5487 # expanded by make, quote '$'.
5488 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
5490 # Add in --program-transform-name, after --program-prefix and
5491 # --program-suffix have been applied to it. Autoconf has already
5492 # doubled dollar signs and backslashes in program_transform_name; we want
5493 # the backslashes un-doubled, and then the entire thing wrapped in single
5494 # quotes, because this will be expanded first by make and then by the shell.
5495 # Also, because we want to override the logic in subdir configure scripts to
5496 # choose program_transform_name, replace any s,x,x, with s,y,y,.
5497 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
5498 ${program_transform_name}
5499 EOF_SED
5500 gcc_transform_name=`cat conftestsed.out`
5501 rm -f conftestsed.out
5502 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
5504 # For the build-side libraries, we just need to pretend we're native,
5505 # and not use the same cache file. Multilibs are neither needed nor
5506 # desired.
5507 build_configargs="--cache-file=../config.cache ${baseargs}"
5509 # For host modules, accept cache file option, or specification as blank.
5510 case "${cache_file}" in
5511 "") # empty
5512 cache_file_option="" ;;
5513 /* | [A-Za-z]:[\\/]* ) # absolute path
5514 cache_file_option="--cache-file=${cache_file}" ;;
5515 *) # relative path
5516 cache_file_option="--cache-file=../${cache_file}" ;;
5517 esac
5519 # Host dirs don't like to share a cache file either, horribly enough.
5520 # This seems to be due to autoconf 2.5x stupidity.
5521 host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
5523 target_configargs=${baseargs}
5525 # Passing a --with-cross-host argument lets the target libraries know
5526 # whether they are being built with a cross-compiler or being built
5527 # native. However, it would be better to use other mechanisms to make the
5528 # sorts of decisions they want to make on this basis. Please consider
5529 # this option to be deprecated. FIXME.
5530 if test x${is_cross_compiler} = xyes ; then
5531 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
5534 # Default to --enable-multilib.
5535 if test x${enable_multilib} = x ; then
5536 target_configargs="--enable-multilib ${target_configargs}"
5539 # Pass --with-newlib if appropriate. Note that target_configdirs has
5540 # changed from the earlier setting of with_newlib.
5541 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
5542 target_configargs="--with-newlib ${target_configargs}"
5545 # Different target subdirs use different values of certain variables
5546 # (notably CXX). Worse, multilibs use *lots* of different values.
5547 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
5548 # it doesn't automatically accept command-line overrides of them.
5549 # This means it's not safe for target subdirs to share a cache file,
5550 # which is disgusting, but there you have it. Hopefully this can be
5551 # fixed in future. It's still worthwhile to use a cache file for each
5552 # directory. I think.
5554 # Pass the appropriate --build, --host, --target and --cache-file arguments.
5555 # We need to pass --target, as newer autoconf's requires consistency
5556 # for target_alias and gcc doesn't manage it consistently.
5557 target_configargs="--cache-file=./config.cache ${target_configargs}"
5559 FLAGS_FOR_TARGET=
5560 case " $target_configdirs " in
5561 *" newlib "*)
5562 case " $target_configargs " in
5563 *" --with-newlib "*)
5564 case "$target" in
5565 *-cygwin*)
5566 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' ;;
5567 esac
5569 # If we're not building GCC, don't discard standard headers.
5570 if test -d ${srcdir}/gcc; then
5571 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
5573 if test "${build}" != "${host}"; then
5574 # On Canadian crosses, CC_FOR_TARGET will have already been set
5575 # by `configure', so we won't have an opportunity to add -Bgcc/
5576 # to it. This is right: we don't want to search that directory
5577 # for binaries, but we want the header files in there, so add
5578 # them explicitly.
5579 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
5581 # Someone might think of using the pre-installed headers on
5582 # Canadian crosses, in case the installed compiler is not fully
5583 # compatible with the compiler being built. In this case, it
5584 # would be better to flag an error than risking having
5585 # incompatible object files being constructed. We can't
5586 # guarantee that an error will be flagged, but let's hope the
5587 # compiler will do it, when presented with incompatible header
5588 # files.
5592 case "${target}-${is_cross_compiler}" in
5593 i[3456789]86-*-linux*-no)
5594 # Here host == target, so we don't need to build gcc,
5595 # so we don't want to discard standard headers.
5596 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
5599 # If we're building newlib, use its generic headers last, but search
5600 # for any libc-related directories first (so make it the last -B
5601 # switch).
5602 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
5604 esac
5606 esac
5608 esac
5609 case "$target" in
5610 *-mingw*)
5611 # Can't be handled as Cygwin above since Mingw does not use newlib.
5612 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' ;;
5613 esac
5615 # Allow the user to override the flags for
5616 # our build compiler if desired.
5617 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5619 # On Canadian crosses, we'll be searching the right directories for
5620 # the previously-installed cross compiler, so don't bother to add
5621 # flags for directories within the install tree of the compiler
5622 # being built; programs in there won't even run.
5623 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
5624 # Search for pre-installed headers if nothing else fits.
5625 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
5628 if test "x${use_gnu_ld}" = x &&
5629 echo " ${configdirs} " | grep " ld " > /dev/null ; then
5630 # Arrange for us to find uninstalled linker scripts.
5631 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
5634 # Search for other target-specific linker scripts and such.
5635 case "${target}" in
5636 m32c-*-* )
5637 if test -d ${srcdir}/libgloss/m32c; then
5638 # This is for crt0.o
5639 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5640 # This is for r8c.ld
5641 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/m32c'
5642 # This is for libnosys.a
5643 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
5646 mep*)
5647 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
5649 esac
5651 # Makefile fragments.
5652 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
5654 eval fragval=\$$frag
5655 if test $fragval != /dev/null; then
5656 eval $frag=${srcdir}/$fragval
5658 done
5664 # Miscellanea: directories, flags, etc.
5672 # Build module lists & subconfigure args.
5676 # Host module lists & subconfigure args.
5680 # Target module lists & subconfigure args.
5684 # Build tools.
5688 # Generate default definitions for YACC, M4, LEX and other programs that run
5689 # on the build machine. These are used if the Makefile can't locate these
5690 # programs in objdir.
5691 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
5693 for ac_prog in 'bison -y' byacc yacc
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699 if test "${ac_cv_prog_YACC+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 if test -n "$YACC"; then
5703 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_YACC="$ac_prog"
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5721 YACC=$ac_cv_prog_YACC
5722 if test -n "$YACC"; then
5723 echo "$as_me:$LINENO: result: $YACC" >&5
5724 echo "${ECHO_T}$YACC" >&6
5725 else
5726 echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5730 test -n "$YACC" && break
5731 done
5732 test -n "$YACC" || YACC="$MISSING bison -y"
5734 case " $build_configdirs " in
5735 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
5736 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
5737 esac
5739 for ac_prog in bison
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742 set dummy $ac_prog; ac_word=$2
5743 echo "$as_me:$LINENO: checking for $ac_word" >&5
5744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5745 if test "${ac_cv_prog_BISON+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 if test -n "$BISON"; then
5749 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_BISON="$ac_prog"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5762 done
5763 done
5767 BISON=$ac_cv_prog_BISON
5768 if test -n "$BISON"; then
5769 echo "$as_me:$LINENO: result: $BISON" >&5
5770 echo "${ECHO_T}$BISON" >&6
5771 else
5772 echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5776 test -n "$BISON" && break
5777 done
5778 test -n "$BISON" || BISON="$MISSING bison"
5780 case " $build_configdirs " in
5781 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
5782 esac
5784 for ac_prog in gm4 gnum4 m4
5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy $ac_prog; ac_word=$2
5788 echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790 if test "${ac_cv_prog_M4+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 if test -n "$M4"; then
5794 ac_cv_prog_M4="$M4" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_M4="$ac_prog"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5807 done
5808 done
5812 M4=$ac_cv_prog_M4
5813 if test -n "$M4"; then
5814 echo "$as_me:$LINENO: result: $M4" >&5
5815 echo "${ECHO_T}$M4" >&6
5816 else
5817 echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6
5821 test -n "$M4" && break
5822 done
5823 test -n "$M4" || M4="$MISSING m4"
5825 case " $build_configdirs " in
5826 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
5827 esac
5829 for ac_prog in flex lex
5831 # Extract the first word of "$ac_prog", so it can be a program name with args.
5832 set dummy $ac_prog; ac_word=$2
5833 echo "$as_me:$LINENO: checking for $ac_word" >&5
5834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5835 if test "${ac_cv_prog_LEX+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 if test -n "$LEX"; then
5839 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5840 else
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 for as_dir in $PATH
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5848 ac_cv_prog_LEX="$ac_prog"
5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5852 done
5853 done
5857 LEX=$ac_cv_prog_LEX
5858 if test -n "$LEX"; then
5859 echo "$as_me:$LINENO: result: $LEX" >&5
5860 echo "${ECHO_T}$LEX" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5866 test -n "$LEX" && break
5867 done
5868 test -n "$LEX" || LEX="$MISSING flex"
5870 case " $build_configdirs " in
5871 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5872 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
5873 esac
5875 for ac_prog in flex
5877 # Extract the first word of "$ac_prog", so it can be a program name with args.
5878 set dummy $ac_prog; ac_word=$2
5879 echo "$as_me:$LINENO: checking for $ac_word" >&5
5880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5881 if test "${ac_cv_prog_FLEX+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 if test -n "$FLEX"; then
5885 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_FLEX="$ac_prog"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5898 done
5899 done
5903 FLEX=$ac_cv_prog_FLEX
5904 if test -n "$FLEX"; then
5905 echo "$as_me:$LINENO: result: $FLEX" >&5
5906 echo "${ECHO_T}$FLEX" >&6
5907 else
5908 echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5912 test -n "$FLEX" && break
5913 done
5914 test -n "$FLEX" || FLEX="$MISSING flex"
5916 case " $build_configdirs " in
5917 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
5918 esac
5920 for ac_prog in makeinfo
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929 if test -n "$MAKEINFO"; then
5930 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_MAKEINFO="$ac_prog"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5943 done
5944 done
5948 MAKEINFO=$ac_cv_prog_MAKEINFO
5949 if test -n "$MAKEINFO"; then
5950 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5951 echo "${ECHO_T}$MAKEINFO" >&6
5952 else
5953 echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6
5957 test -n "$MAKEINFO" && break
5958 done
5959 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
5961 case " $build_configdirs " in
5962 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
5965 # For an installed makeinfo, we require it to be from texinfo 4.4 or
5966 # higher, else we use the "missing" dummy.
5967 if ${MAKEINFO} --version \
5968 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
5970 else
5971 MAKEINFO="$MISSING makeinfo"
5975 esac
5977 # FIXME: expect and dejagnu may become build tools?
5979 for ac_prog in expect
5981 # Extract the first word of "$ac_prog", so it can be a program name with args.
5982 set dummy $ac_prog; ac_word=$2
5983 echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5985 if test "${ac_cv_prog_EXPECT+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 if test -n "$EXPECT"; then
5989 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998 ac_cv_prog_EXPECT="$ac_prog"
5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 break 2
6002 done
6003 done
6007 EXPECT=$ac_cv_prog_EXPECT
6008 if test -n "$EXPECT"; then
6009 echo "$as_me:$LINENO: result: $EXPECT" >&5
6010 echo "${ECHO_T}$EXPECT" >&6
6011 else
6012 echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6
6016 test -n "$EXPECT" && break
6017 done
6018 test -n "$EXPECT" || EXPECT="expect"
6020 case " $configdirs " in
6021 *" expect "*)
6022 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
6024 esac
6026 for ac_prog in runtest
6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
6029 set dummy $ac_prog; ac_word=$2
6030 echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6032 if test "${ac_cv_prog_RUNTEST+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035 if test -n "$RUNTEST"; then
6036 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_RUNTEST="$ac_prog"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6049 done
6050 done
6054 RUNTEST=$ac_cv_prog_RUNTEST
6055 if test -n "$RUNTEST"; then
6056 echo "$as_me:$LINENO: result: $RUNTEST" >&5
6057 echo "${ECHO_T}$RUNTEST" >&6
6058 else
6059 echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6
6063 test -n "$RUNTEST" && break
6064 done
6065 test -n "$RUNTEST" || RUNTEST="runtest"
6067 case " $configdirs " in
6068 *" dejagnu "*)
6069 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
6071 esac
6074 # Host tools.
6075 ncn_tool_prefix=
6076 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
6077 ncn_target_tool_prefix=
6078 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
6080 for ncn_progname in ar; do
6081 if test -n "$ncn_tool_prefix"; then
6082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6084 echo "$as_me:$LINENO: checking for $ac_word" >&5
6085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6086 if test "${ac_cv_prog_AR+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089 if test -n "$AR"; then
6090 ac_cv_prog_AR="$AR" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
6100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6103 done
6104 done
6108 AR=$ac_cv_prog_AR
6109 if test -n "$AR"; then
6110 echo "$as_me:$LINENO: result: $AR" >&5
6111 echo "${ECHO_T}$AR" >&6
6112 else
6113 echo "$as_me:$LINENO: result: no" >&5
6114 echo "${ECHO_T}no" >&6
6118 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
6119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6120 set dummy ${ncn_progname}; ac_word=$2
6121 echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6123 if test "${ac_cv_prog_AR+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 if test -n "$AR"; then
6127 ac_cv_prog_AR="$AR" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6136 ac_cv_prog_AR="${ncn_progname}"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6140 done
6141 done
6145 AR=$ac_cv_prog_AR
6146 if test -n "$AR"; then
6147 echo "$as_me:$LINENO: result: $AR" >&5
6148 echo "${ECHO_T}$AR" >&6
6149 else
6150 echo "$as_me:$LINENO: result: no" >&5
6151 echo "${ECHO_T}no" >&6
6155 test -n "$ac_cv_prog_AR" && break
6156 done
6158 if test -z "$ac_cv_prog_AR" ; then
6159 set dummy ar
6160 if test $build = $host ; then
6161 AR="$2"
6162 else
6163 AR="${ncn_tool_prefix}$2"
6167 for ncn_progname in as; do
6168 if test -n "$ncn_tool_prefix"; then
6169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6170 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6171 echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173 if test "${ac_cv_prog_AS+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 if test -n "$AS"; then
6177 ac_cv_prog_AS="$AS" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6190 done
6191 done
6195 AS=$ac_cv_prog_AS
6196 if test -n "$AS"; then
6197 echo "$as_me:$LINENO: result: $AS" >&5
6198 echo "${ECHO_T}$AS" >&6
6199 else
6200 echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6
6205 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
6206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6207 set dummy ${ncn_progname}; ac_word=$2
6208 echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6210 if test "${ac_cv_prog_AS+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213 if test -n "$AS"; then
6214 ac_cv_prog_AS="$AS" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_AS="${ncn_progname}"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6227 done
6228 done
6232 AS=$ac_cv_prog_AS
6233 if test -n "$AS"; then
6234 echo "$as_me:$LINENO: result: $AS" >&5
6235 echo "${ECHO_T}$AS" >&6
6236 else
6237 echo "$as_me:$LINENO: result: no" >&5
6238 echo "${ECHO_T}no" >&6
6242 test -n "$ac_cv_prog_AS" && break
6243 done
6245 if test -z "$ac_cv_prog_AS" ; then
6246 set dummy as
6247 if test $build = $host ; then
6248 AS="$2"
6249 else
6250 AS="${ncn_tool_prefix}$2"
6254 for ncn_progname in dlltool; do
6255 if test -n "$ncn_tool_prefix"; then
6256 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6257 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6258 echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6260 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 if test -n "$DLLTOOL"; then
6264 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
6274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6277 done
6278 done
6282 DLLTOOL=$ac_cv_prog_DLLTOOL
6283 if test -n "$DLLTOOL"; then
6284 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6285 echo "${ECHO_T}$DLLTOOL" >&6
6286 else
6287 echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6
6292 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
6293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6294 set dummy ${ncn_progname}; ac_word=$2
6295 echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6297 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 if test -n "$DLLTOOL"; then
6301 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_DLLTOOL="${ncn_progname}"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6319 DLLTOOL=$ac_cv_prog_DLLTOOL
6320 if test -n "$DLLTOOL"; then
6321 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6322 echo "${ECHO_T}$DLLTOOL" >&6
6323 else
6324 echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6
6329 test -n "$ac_cv_prog_DLLTOOL" && break
6330 done
6332 if test -z "$ac_cv_prog_DLLTOOL" ; then
6333 set dummy dlltool
6334 if test $build = $host ; then
6335 DLLTOOL="$2"
6336 else
6337 DLLTOOL="${ncn_tool_prefix}$2"
6341 for ncn_progname in ld; do
6342 if test -n "$ncn_tool_prefix"; then
6343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6344 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6345 echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347 if test "${ac_cv_prog_LD+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350 if test -n "$LD"; then
6351 ac_cv_prog_LD="$LD" # Let the user override the test.
6352 else
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 for as_dir in $PATH
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
6361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6364 done
6365 done
6369 LD=$ac_cv_prog_LD
6370 if test -n "$LD"; then
6371 echo "$as_me:$LINENO: result: $LD" >&5
6372 echo "${ECHO_T}$LD" >&6
6373 else
6374 echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6
6379 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
6380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6381 set dummy ${ncn_progname}; ac_word=$2
6382 echo "$as_me:$LINENO: checking for $ac_word" >&5
6383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6384 if test "${ac_cv_prog_LD+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 if test -n "$LD"; then
6388 ac_cv_prog_LD="$LD" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397 ac_cv_prog_LD="${ncn_progname}"
6398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6401 done
6402 done
6406 LD=$ac_cv_prog_LD
6407 if test -n "$LD"; then
6408 echo "$as_me:$LINENO: result: $LD" >&5
6409 echo "${ECHO_T}$LD" >&6
6410 else
6411 echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6
6416 test -n "$ac_cv_prog_LD" && break
6417 done
6419 if test -z "$ac_cv_prog_LD" ; then
6420 set dummy ld
6421 if test $build = $host ; then
6422 LD="$2"
6423 else
6424 LD="${ncn_tool_prefix}$2"
6428 for ncn_progname in lipo; do
6429 if test -n "$ncn_tool_prefix"; then
6430 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6431 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6432 echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434 if test "${ac_cv_prog_LIPO+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437 if test -n "$LIPO"; then
6438 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
6448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6451 done
6452 done
6456 LIPO=$ac_cv_prog_LIPO
6457 if test -n "$LIPO"; then
6458 echo "$as_me:$LINENO: result: $LIPO" >&5
6459 echo "${ECHO_T}$LIPO" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6
6466 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
6467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6468 set dummy ${ncn_progname}; ac_word=$2
6469 echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6471 if test "${ac_cv_prog_LIPO+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 if test -n "$LIPO"; then
6475 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_LIPO="${ncn_progname}"
6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6488 done
6489 done
6493 LIPO=$ac_cv_prog_LIPO
6494 if test -n "$LIPO"; then
6495 echo "$as_me:$LINENO: result: $LIPO" >&5
6496 echo "${ECHO_T}$LIPO" >&6
6497 else
6498 echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6
6503 test -n "$ac_cv_prog_LIPO" && break
6504 done
6506 if test -z "$ac_cv_prog_LIPO" ; then
6507 set dummy lipo
6508 if test $build = $host ; then
6509 LIPO="$2"
6510 else
6511 LIPO="${ncn_tool_prefix}$2"
6515 for ncn_progname in nm; do
6516 if test -n "$ncn_tool_prefix"; then
6517 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6518 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6519 echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6521 if test "${ac_cv_prog_NM+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 if test -n "$NM"; then
6525 ac_cv_prog_NM="$NM" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6538 done
6539 done
6543 NM=$ac_cv_prog_NM
6544 if test -n "$NM"; then
6545 echo "$as_me:$LINENO: result: $NM" >&5
6546 echo "${ECHO_T}$NM" >&6
6547 else
6548 echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6
6553 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
6554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6555 set dummy ${ncn_progname}; ac_word=$2
6556 echo "$as_me:$LINENO: checking for $ac_word" >&5
6557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6558 if test "${ac_cv_prog_NM+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561 if test -n "$NM"; then
6562 ac_cv_prog_NM="$NM" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_NM="${ncn_progname}"
6572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6575 done
6576 done
6580 NM=$ac_cv_prog_NM
6581 if test -n "$NM"; then
6582 echo "$as_me:$LINENO: result: $NM" >&5
6583 echo "${ECHO_T}$NM" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6
6590 test -n "$ac_cv_prog_NM" && break
6591 done
6593 if test -z "$ac_cv_prog_NM" ; then
6594 set dummy nm
6595 if test $build = $host ; then
6596 NM="$2"
6597 else
6598 NM="${ncn_tool_prefix}$2"
6602 for ncn_progname in ranlib; do
6603 if test -n "$ncn_tool_prefix"; then
6604 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6605 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6606 echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6608 if test "${ac_cv_prog_RANLIB+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 if test -n "$RANLIB"; then
6612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6625 done
6626 done
6630 RANLIB=$ac_cv_prog_RANLIB
6631 if test -n "$RANLIB"; then
6632 echo "$as_me:$LINENO: result: $RANLIB" >&5
6633 echo "${ECHO_T}$RANLIB" >&6
6634 else
6635 echo "$as_me:$LINENO: result: no" >&5
6636 echo "${ECHO_T}no" >&6
6640 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
6641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6642 set dummy ${ncn_progname}; ac_word=$2
6643 echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6645 if test "${ac_cv_prog_RANLIB+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648 if test -n "$RANLIB"; then
6649 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
6657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6658 ac_cv_prog_RANLIB="${ncn_progname}"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6662 done
6663 done
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669 echo "$as_me:$LINENO: result: $RANLIB" >&5
6670 echo "${ECHO_T}$RANLIB" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6
6677 test -n "$ac_cv_prog_RANLIB" && break
6678 done
6680 if test -z "$ac_cv_prog_RANLIB" ; then
6681 RANLIB=":"
6684 for ncn_progname in strip; do
6685 if test -n "$ncn_tool_prefix"; then
6686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6687 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6688 echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6690 if test "${ac_cv_prog_STRIP+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 if test -n "$STRIP"; then
6694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
6704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6707 done
6708 done
6712 STRIP=$ac_cv_prog_STRIP
6713 if test -n "$STRIP"; then
6714 echo "$as_me:$LINENO: result: $STRIP" >&5
6715 echo "${ECHO_T}$STRIP" >&6
6716 else
6717 echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6
6722 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
6723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6724 set dummy ${ncn_progname}; ac_word=$2
6725 echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6727 if test "${ac_cv_prog_STRIP+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 if test -n "$STRIP"; then
6731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_STRIP="${ncn_progname}"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6749 STRIP=$ac_cv_prog_STRIP
6750 if test -n "$STRIP"; then
6751 echo "$as_me:$LINENO: result: $STRIP" >&5
6752 echo "${ECHO_T}$STRIP" >&6
6753 else
6754 echo "$as_me:$LINENO: result: no" >&5
6755 echo "${ECHO_T}no" >&6
6759 test -n "$ac_cv_prog_STRIP" && break
6760 done
6762 if test -z "$ac_cv_prog_STRIP" ; then
6763 STRIP=":"
6766 for ncn_progname in windres; do
6767 if test -n "$ncn_tool_prefix"; then
6768 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6769 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6770 echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6772 if test "${ac_cv_prog_WINDRES+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775 if test -n "$WINDRES"; then
6776 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
6786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6794 WINDRES=$ac_cv_prog_WINDRES
6795 if test -n "$WINDRES"; then
6796 echo "$as_me:$LINENO: result: $WINDRES" >&5
6797 echo "${ECHO_T}$WINDRES" >&6
6798 else
6799 echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6
6804 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
6805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6806 set dummy ${ncn_progname}; ac_word=$2
6807 echo "$as_me:$LINENO: checking for $ac_word" >&5
6808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6809 if test "${ac_cv_prog_WINDRES+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 if test -n "$WINDRES"; then
6813 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6818 IFS=$as_save_IFS
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_WINDRES="${ncn_progname}"
6823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6824 break 2
6826 done
6827 done
6831 WINDRES=$ac_cv_prog_WINDRES
6832 if test -n "$WINDRES"; then
6833 echo "$as_me:$LINENO: result: $WINDRES" >&5
6834 echo "${ECHO_T}$WINDRES" >&6
6835 else
6836 echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6
6841 test -n "$ac_cv_prog_WINDRES" && break
6842 done
6844 if test -z "$ac_cv_prog_WINDRES" ; then
6845 set dummy windres
6846 if test $build = $host ; then
6847 WINDRES="$2"
6848 else
6849 WINDRES="${ncn_tool_prefix}$2"
6853 for ncn_progname in objcopy; do
6854 if test -n "$ncn_tool_prefix"; then
6855 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6856 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6857 echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6859 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 if test -n "$OBJCOPY"; then
6863 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6881 OBJCOPY=$ac_cv_prog_OBJCOPY
6882 if test -n "$OBJCOPY"; then
6883 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6884 echo "${ECHO_T}$OBJCOPY" >&6
6885 else
6886 echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6
6891 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
6892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6893 set dummy ${ncn_progname}; ac_word=$2
6894 echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6896 if test "${ac_cv_prog_OBJCOPY+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 if test -n "$OBJCOPY"; then
6900 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_OBJCOPY="${ncn_progname}"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6913 done
6914 done
6918 OBJCOPY=$ac_cv_prog_OBJCOPY
6919 if test -n "$OBJCOPY"; then
6920 echo "$as_me:$LINENO: result: $OBJCOPY" >&5
6921 echo "${ECHO_T}$OBJCOPY" >&6
6922 else
6923 echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6
6928 test -n "$ac_cv_prog_OBJCOPY" && break
6929 done
6931 if test -z "$ac_cv_prog_OBJCOPY" ; then
6932 set dummy objcopy
6933 if test $build = $host ; then
6934 OBJCOPY="$2"
6935 else
6936 OBJCOPY="${ncn_tool_prefix}$2"
6940 for ncn_progname in objdump; do
6941 if test -n "$ncn_tool_prefix"; then
6942 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
6943 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
6944 echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6946 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 if test -n "$OBJDUMP"; then
6950 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6963 done
6964 done
6968 OBJDUMP=$ac_cv_prog_OBJDUMP
6969 if test -n "$OBJDUMP"; then
6970 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6971 echo "${ECHO_T}$OBJDUMP" >&6
6972 else
6973 echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6
6978 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
6979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
6980 set dummy ${ncn_progname}; ac_word=$2
6981 echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6983 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 if test -n "$OBJDUMP"; then
6987 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_OBJDUMP="${ncn_progname}"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7005 OBJDUMP=$ac_cv_prog_OBJDUMP
7006 if test -n "$OBJDUMP"; then
7007 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7008 echo "${ECHO_T}$OBJDUMP" >&6
7009 else
7010 echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6
7015 test -n "$ac_cv_prog_OBJDUMP" && break
7016 done
7018 if test -z "$ac_cv_prog_OBJDUMP" ; then
7019 set dummy objdump
7020 if test $build = $host ; then
7021 OBJDUMP="$2"
7022 else
7023 OBJDUMP="${ncn_tool_prefix}$2"
7033 # Target tools.
7035 # Check whether --with-build-time-tools or --without-build-time-tools was given.
7036 if test "${with_build_time_tools+set}" = set; then
7037 withval="$with_build_time_tools"
7038 case x"$withval" in
7039 x/*) ;;
7041 with_build_time_tools=
7042 { echo "$as_me:$LINENO: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
7043 echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
7045 esac
7046 else
7047 with_build_time_tools=
7050 if test -n "$with_build_time_tools"; then
7051 for ncn_progname in cc gcc; do
7052 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7053 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7054 if test -x $with_build_time_tools/${ncn_progname}; then
7055 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7056 echo "$as_me:$LINENO: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6
7058 break
7059 else
7060 echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6
7063 done
7066 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
7067 for ncn_progname in cc gcc; do
7068 if test -n "$ncn_target_tool_prefix"; then
7069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7070 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7071 echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7073 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 if test -n "$CC_FOR_TARGET"; then
7077 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7095 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7096 if test -n "$CC_FOR_TARGET"; then
7097 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7098 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7099 else
7100 echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6
7105 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
7106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7107 set dummy ${ncn_progname}; ac_word=$2
7108 echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 if test -n "$CC_FOR_TARGET"; then
7114 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7132 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
7133 if test -n "$CC_FOR_TARGET"; then
7134 echo "$as_me:$LINENO: result: $CC_FOR_TARGET" >&5
7135 echo "${ECHO_T}$CC_FOR_TARGET" >&6
7136 else
7137 echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7142 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
7143 done
7146 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
7147 set dummy cc gcc
7148 if test $build = $target ; then
7149 CC_FOR_TARGET="$2"
7150 else
7151 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
7155 if test -n "$with_build_time_tools"; then
7156 for ncn_progname in c++ g++ cxx gxx; do
7157 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7158 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7159 if test -x $with_build_time_tools/${ncn_progname}; then
7160 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7161 echo "$as_me:$LINENO: result: yes" >&5
7162 echo "${ECHO_T}yes" >&6
7163 break
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7168 done
7171 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
7172 for ncn_progname in c++ g++ cxx gxx; do
7173 if test -n "$ncn_target_tool_prefix"; then
7174 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7175 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7176 echo "$as_me:$LINENO: checking for $ac_word" >&5
7177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7178 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181 if test -n "$CXX_FOR_TARGET"; then
7182 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7187 IFS=$as_save_IFS
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 break 2
7195 done
7196 done
7200 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7201 if test -n "$CXX_FOR_TARGET"; then
7202 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7203 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206 echo "${ECHO_T}no" >&6
7210 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
7211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7212 set dummy ${ncn_progname}; ac_word=$2
7213 echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7215 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218 if test -n "$CXX_FOR_TARGET"; then
7219 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7232 done
7233 done
7237 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
7238 if test -n "$CXX_FOR_TARGET"; then
7239 echo "$as_me:$LINENO: result: $CXX_FOR_TARGET" >&5
7240 echo "${ECHO_T}$CXX_FOR_TARGET" >&6
7241 else
7242 echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6
7247 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
7248 done
7251 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
7252 set dummy c++ g++ cxx gxx
7253 if test $build = $target ; then
7254 CXX_FOR_TARGET="$2"
7255 else
7256 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
7260 if test -n "$with_build_time_tools"; then
7261 for ncn_progname in gcc; do
7262 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7263 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7264 if test -x $with_build_time_tools/${ncn_progname}; then
7265 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7266 echo "$as_me:$LINENO: result: yes" >&5
7267 echo "${ECHO_T}yes" >&6
7268 break
7269 else
7270 echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6
7273 done
7276 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
7277 for ncn_progname in gcc; do
7278 if test -n "$ncn_target_tool_prefix"; then
7279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7281 echo "$as_me:$LINENO: checking for $ac_word" >&5
7282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7283 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 if test -n "$GCC_FOR_TARGET"; then
7287 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7300 done
7301 done
7305 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7306 if test -n "$GCC_FOR_TARGET"; then
7307 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7308 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7309 else
7310 echo "$as_me:$LINENO: result: no" >&5
7311 echo "${ECHO_T}no" >&6
7315 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
7316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7317 set dummy ${ncn_progname}; ac_word=$2
7318 echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323 if test -n "$GCC_FOR_TARGET"; then
7324 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7337 done
7338 done
7342 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
7343 if test -n "$GCC_FOR_TARGET"; then
7344 echo "$as_me:$LINENO: result: $GCC_FOR_TARGET" >&5
7345 echo "${ECHO_T}$GCC_FOR_TARGET" >&6
7346 else
7347 echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6
7352 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
7353 done
7356 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
7357 GCC_FOR_TARGET="${CC_FOR_TARGET}"
7360 if test -n "$with_build_time_tools"; then
7361 for ncn_progname in gcj; do
7362 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7363 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7364 if test -x $with_build_time_tools/${ncn_progname}; then
7365 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7366 echo "$as_me:$LINENO: result: yes" >&5
7367 echo "${ECHO_T}yes" >&6
7368 break
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6
7373 done
7376 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
7377 for ncn_progname in gcj; do
7378 if test -n "$ncn_target_tool_prefix"; then
7379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7381 echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386 if test -n "$GCJ_FOR_TARGET"; then
7387 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7400 done
7401 done
7405 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7406 if test -n "$GCJ_FOR_TARGET"; then
7407 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7408 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7409 else
7410 echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6
7415 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
7416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7417 set dummy ${ncn_progname}; ac_word=$2
7418 echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7420 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 if test -n "$GCJ_FOR_TARGET"; then
7424 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7437 done
7438 done
7442 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
7443 if test -n "$GCJ_FOR_TARGET"; then
7444 echo "$as_me:$LINENO: result: $GCJ_FOR_TARGET" >&5
7445 echo "${ECHO_T}$GCJ_FOR_TARGET" >&6
7446 else
7447 echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6
7452 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
7453 done
7456 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
7457 set dummy gcj
7458 if test $build = $target ; then
7459 GCJ_FOR_TARGET="$2"
7460 else
7461 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
7465 if test -n "$with_build_time_tools"; then
7466 for ncn_progname in gfortran; do
7467 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7468 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7469 if test -x $with_build_time_tools/${ncn_progname}; then
7470 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7471 echo "$as_me:$LINENO: result: yes" >&5
7472 echo "${ECHO_T}yes" >&6
7473 break
7474 else
7475 echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6
7478 done
7481 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
7482 for ncn_progname in gfortran; do
7483 if test -n "$ncn_target_tool_prefix"; then
7484 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7485 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7486 echo "$as_me:$LINENO: checking for $ac_word" >&5
7487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491 if test -n "$GFORTRAN_FOR_TARGET"; then
7492 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7505 done
7506 done
7510 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7511 if test -n "$GFORTRAN_FOR_TARGET"; then
7512 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7513 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7514 else
7515 echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7520 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
7521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7522 set dummy ${ncn_progname}; ac_word=$2
7523 echo "$as_me:$LINENO: checking for $ac_word" >&5
7524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7525 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 if test -n "$GFORTRAN_FOR_TARGET"; then
7529 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
7539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7542 done
7543 done
7547 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
7548 if test -n "$GFORTRAN_FOR_TARGET"; then
7549 echo "$as_me:$LINENO: result: $GFORTRAN_FOR_TARGET" >&5
7550 echo "${ECHO_T}$GFORTRAN_FOR_TARGET" >&6
7551 else
7552 echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6
7557 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
7558 done
7561 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
7562 set dummy gfortran
7563 if test $build = $target ; then
7564 GFORTRAN_FOR_TARGET="$2"
7565 else
7566 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
7572 cat > conftest.c << \EOF
7573 #ifdef __GNUC__
7574 gcc_yay;
7575 #endif
7577 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
7578 have_gcc_for_target=yes
7579 else
7580 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
7581 have_gcc_for_target=no
7583 rm conftest.c
7588 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7589 if test -n "$with_build_time_tools"; then
7590 echo "$as_me:$LINENO: checking for ar in $with_build_time_tools" >&5
7591 echo $ECHO_N "checking for ar in $with_build_time_tools... $ECHO_C" >&6
7592 if test -x $with_build_time_tools/ar; then
7593 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
7594 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7595 echo "$as_me:$LINENO: result: $ac_cv_path_AR_FOR_TARGET" >&5
7596 echo "${ECHO_T}$ac_cv_path_AR_FOR_TARGET" >&6
7597 else
7598 echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7601 elif test $build != $host && test $have_gcc_for_target = yes; then
7602 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
7603 test $AR_FOR_TARGET=ar && AR_FOR_TARGET=
7604 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
7607 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7608 # Extract the first word of "ar", so it can be a program name with args.
7609 set dummy ar; ac_word=$2
7610 echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7612 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 case $AR_FOR_TARGET in
7616 [\\/]* | ?:[\\/]*)
7617 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $gcc_cv_tool_dirs
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7631 done
7632 done
7635 esac
7637 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7639 if test -n "$AR_FOR_TARGET"; then
7640 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7641 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7642 else
7643 echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6
7648 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
7649 if test -n "$with_build_time_tools"; then
7650 for ncn_progname in ar; do
7651 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7652 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7653 if test -x $with_build_time_tools/${ncn_progname}; then
7654 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7655 echo "$as_me:$LINENO: result: yes" >&5
7656 echo "${ECHO_T}yes" >&6
7657 break
7658 else
7659 echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6
7662 done
7665 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
7666 for ncn_progname in ar; do
7667 if test -n "$ncn_target_tool_prefix"; then
7668 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7669 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7670 echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7672 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675 if test -n "$AR_FOR_TARGET"; then
7676 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7689 done
7690 done
7694 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7695 if test -n "$AR_FOR_TARGET"; then
7696 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7697 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7698 else
7699 echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6
7704 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
7705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7706 set dummy ${ncn_progname}; ac_word=$2
7707 echo "$as_me:$LINENO: checking for $ac_word" >&5
7708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7709 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 if test -n "$AR_FOR_TARGET"; then
7713 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
7723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7726 done
7727 done
7731 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
7732 if test -n "$AR_FOR_TARGET"; then
7733 echo "$as_me:$LINENO: result: $AR_FOR_TARGET" >&5
7734 echo "${ECHO_T}$AR_FOR_TARGET" >&6
7735 else
7736 echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6
7741 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
7742 done
7745 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
7746 set dummy ar
7747 if test $build = $target ; then
7748 AR_FOR_TARGET="$2"
7749 else
7750 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7754 else
7755 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
7761 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7762 if test -n "$with_build_time_tools"; then
7763 echo "$as_me:$LINENO: checking for as in $with_build_time_tools" >&5
7764 echo $ECHO_N "checking for as in $with_build_time_tools... $ECHO_C" >&6
7765 if test -x $with_build_time_tools/as; then
7766 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
7767 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7768 echo "$as_me:$LINENO: result: $ac_cv_path_AS_FOR_TARGET" >&5
7769 echo "${ECHO_T}$ac_cv_path_AS_FOR_TARGET" >&6
7770 else
7771 echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6
7774 elif test $build != $host && test $have_gcc_for_target = yes; then
7775 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
7776 test $AS_FOR_TARGET=as && AS_FOR_TARGET=
7777 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
7780 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7781 # Extract the first word of "as", so it can be a program name with args.
7782 set dummy as; ac_word=$2
7783 echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7785 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 case $AS_FOR_TARGET in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $gcc_cv_tool_dirs
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7808 esac
7810 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7812 if test -n "$AS_FOR_TARGET"; then
7813 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7814 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7815 else
7816 echo "$as_me:$LINENO: result: no" >&5
7817 echo "${ECHO_T}no" >&6
7821 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
7822 if test -n "$with_build_time_tools"; then
7823 for ncn_progname in as; do
7824 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7825 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7826 if test -x $with_build_time_tools/${ncn_progname}; then
7827 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
7828 echo "$as_me:$LINENO: result: yes" >&5
7829 echo "${ECHO_T}yes" >&6
7830 break
7831 else
7832 echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6
7835 done
7838 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
7839 for ncn_progname in as; do
7840 if test -n "$ncn_target_tool_prefix"; then
7841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7842 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
7843 echo "$as_me:$LINENO: checking for $ac_word" >&5
7844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7845 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848 if test -n "$AS_FOR_TARGET"; then
7849 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
7859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7867 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7868 if test -n "$AS_FOR_TARGET"; then
7869 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7870 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7871 else
7872 echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6
7877 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
7878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7879 set dummy ${ncn_progname}; ac_word=$2
7880 echo "$as_me:$LINENO: checking for $ac_word" >&5
7881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7882 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884 else
7885 if test -n "$AS_FOR_TARGET"; then
7886 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
7896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7899 done
7900 done
7904 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
7905 if test -n "$AS_FOR_TARGET"; then
7906 echo "$as_me:$LINENO: result: $AS_FOR_TARGET" >&5
7907 echo "${ECHO_T}$AS_FOR_TARGET" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910 echo "${ECHO_T}no" >&6
7914 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
7915 done
7918 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
7919 set dummy as
7920 if test $build = $target ; then
7921 AS_FOR_TARGET="$2"
7922 else
7923 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
7927 else
7928 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
7934 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7935 if test -n "$with_build_time_tools"; then
7936 echo "$as_me:$LINENO: checking for dlltool in $with_build_time_tools" >&5
7937 echo $ECHO_N "checking for dlltool in $with_build_time_tools... $ECHO_C" >&6
7938 if test -x $with_build_time_tools/dlltool; then
7939 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
7940 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7941 echo "$as_me:$LINENO: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
7942 echo "${ECHO_T}$ac_cv_path_DLLTOOL_FOR_TARGET" >&6
7943 else
7944 echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6
7947 elif test $build != $host && test $have_gcc_for_target = yes; then
7948 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
7949 test $DLLTOOL_FOR_TARGET=dlltool && DLLTOOL_FOR_TARGET=
7950 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
7953 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
7954 # Extract the first word of "dlltool", so it can be a program name with args.
7955 set dummy dlltool; ac_word=$2
7956 echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7958 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7960 else
7961 case $DLLTOOL_FOR_TARGET in
7962 [\\/]* | ?:[\\/]*)
7963 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $gcc_cv_tool_dirs
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
7974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7977 done
7978 done
7981 esac
7983 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
7985 if test -n "$DLLTOOL_FOR_TARGET"; then
7986 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
7987 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990 echo "${ECHO_T}no" >&6
7994 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
7995 if test -n "$with_build_time_tools"; then
7996 for ncn_progname in dlltool; do
7997 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
7998 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
7999 if test -x $with_build_time_tools/${ncn_progname}; then
8000 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8001 echo "$as_me:$LINENO: result: yes" >&5
8002 echo "${ECHO_T}yes" >&6
8003 break
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8008 done
8011 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
8012 for ncn_progname in dlltool; do
8013 if test -n "$ncn_target_tool_prefix"; then
8014 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8015 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8016 echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021 if test -n "$DLLTOOL_FOR_TARGET"; then
8022 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8023 else
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8040 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
8041 if test -n "$DLLTOOL_FOR_TARGET"; then
8042 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8043 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
8044 else
8045 echo "$as_me:$LINENO: result: no" >&5
8046 echo "${ECHO_T}no" >&6
8050 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
8051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8052 set dummy ${ncn_progname}; ac_word=$2
8053 echo "$as_me:$LINENO: checking for $ac_word" >&5
8054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8055 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 if test -n "$DLLTOOL_FOR_TARGET"; then
8059 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8077 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
8078 if test -n "$DLLTOOL_FOR_TARGET"; then
8079 echo "$as_me:$LINENO: result: $DLLTOOL_FOR_TARGET" >&5
8080 echo "${ECHO_T}$DLLTOOL_FOR_TARGET" >&6
8081 else
8082 echo "$as_me:$LINENO: result: no" >&5
8083 echo "${ECHO_T}no" >&6
8087 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
8088 done
8091 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
8092 set dummy dlltool
8093 if test $build = $target ; then
8094 DLLTOOL_FOR_TARGET="$2"
8095 else
8096 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
8100 else
8101 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
8107 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8108 if test -n "$with_build_time_tools"; then
8109 echo "$as_me:$LINENO: checking for ld in $with_build_time_tools" >&5
8110 echo $ECHO_N "checking for ld in $with_build_time_tools... $ECHO_C" >&6
8111 if test -x $with_build_time_tools/ld; then
8112 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
8113 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8114 echo "$as_me:$LINENO: result: $ac_cv_path_LD_FOR_TARGET" >&5
8115 echo "${ECHO_T}$ac_cv_path_LD_FOR_TARGET" >&6
8116 else
8117 echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6
8120 elif test $build != $host && test $have_gcc_for_target = yes; then
8121 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
8122 test $LD_FOR_TARGET=ld && LD_FOR_TARGET=
8123 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
8126 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8127 # Extract the first word of "ld", so it can be a program name with args.
8128 set dummy ld; ac_word=$2
8129 echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8131 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134 case $LD_FOR_TARGET in
8135 [\\/]* | ?:[\\/]*)
8136 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $gcc_cv_tool_dirs
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8146 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8150 done
8151 done
8154 esac
8156 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8158 if test -n "$LD_FOR_TARGET"; then
8159 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8160 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8161 else
8162 echo "$as_me:$LINENO: result: no" >&5
8163 echo "${ECHO_T}no" >&6
8167 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
8168 if test -n "$with_build_time_tools"; then
8169 for ncn_progname in ld; do
8170 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8171 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8172 if test -x $with_build_time_tools/${ncn_progname}; then
8173 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8174 echo "$as_me:$LINENO: result: yes" >&5
8175 echo "${ECHO_T}yes" >&6
8176 break
8177 else
8178 echo "$as_me:$LINENO: result: no" >&5
8179 echo "${ECHO_T}no" >&6
8181 done
8184 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
8185 for ncn_progname in ld; do
8186 if test -n "$ncn_target_tool_prefix"; then
8187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8188 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8189 echo "$as_me:$LINENO: checking for $ac_word" >&5
8190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8191 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194 if test -n "$LD_FOR_TARGET"; then
8195 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8213 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8214 if test -n "$LD_FOR_TARGET"; then
8215 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8216 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8217 else
8218 echo "$as_me:$LINENO: result: no" >&5
8219 echo "${ECHO_T}no" >&6
8223 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
8224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8225 set dummy ${ncn_progname}; ac_word=$2
8226 echo "$as_me:$LINENO: checking for $ac_word" >&5
8227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8228 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231 if test -n "$LD_FOR_TARGET"; then
8232 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
8233 else
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235 for as_dir in $PATH
8237 IFS=$as_save_IFS
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
8242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 break 2
8245 done
8246 done
8250 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
8251 if test -n "$LD_FOR_TARGET"; then
8252 echo "$as_me:$LINENO: result: $LD_FOR_TARGET" >&5
8253 echo "${ECHO_T}$LD_FOR_TARGET" >&6
8254 else
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8260 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
8261 done
8264 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
8265 set dummy ld
8266 if test $build = $target ; then
8267 LD_FOR_TARGET="$2"
8268 else
8269 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
8273 else
8274 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
8280 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8281 if test -n "$with_build_time_tools"; then
8282 echo "$as_me:$LINENO: checking for lipo in $with_build_time_tools" >&5
8283 echo $ECHO_N "checking for lipo in $with_build_time_tools... $ECHO_C" >&6
8284 if test -x $with_build_time_tools/lipo; then
8285 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
8286 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8287 echo "$as_me:$LINENO: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
8288 echo "${ECHO_T}$ac_cv_path_LIPO_FOR_TARGET" >&6
8289 else
8290 echo "$as_me:$LINENO: result: no" >&5
8291 echo "${ECHO_T}no" >&6
8293 elif test $build != $host && test $have_gcc_for_target = yes; then
8294 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
8295 test $LIPO_FOR_TARGET=lipo && LIPO_FOR_TARGET=
8296 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
8299 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8300 # Extract the first word of "lipo", so it can be a program name with args.
8301 set dummy lipo; ac_word=$2
8302 echo "$as_me:$LINENO: checking for $ac_word" >&5
8303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8304 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307 case $LIPO_FOR_TARGET in
8308 [\\/]* | ?:[\\/]*)
8309 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $gcc_cv_tool_dirs
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8327 esac
8329 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8331 if test -n "$LIPO_FOR_TARGET"; then
8332 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8333 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8334 else
8335 echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6
8340 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
8341 if test -n "$with_build_time_tools"; then
8342 for ncn_progname in lipo; do
8343 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8344 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8345 if test -x $with_build_time_tools/${ncn_progname}; then
8346 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8347 echo "$as_me:$LINENO: result: yes" >&5
8348 echo "${ECHO_T}yes" >&6
8349 break
8350 else
8351 echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6
8354 done
8357 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
8358 for ncn_progname in lipo; do
8359 if test -n "$ncn_target_tool_prefix"; then
8360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8361 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8362 echo "$as_me:$LINENO: checking for $ac_word" >&5
8363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8364 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 if test -n "$LIPO_FOR_TARGET"; then
8368 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8381 done
8382 done
8386 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8387 if test -n "$LIPO_FOR_TARGET"; then
8388 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8389 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8390 else
8391 echo "$as_me:$LINENO: result: no" >&5
8392 echo "${ECHO_T}no" >&6
8396 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
8397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8398 set dummy ${ncn_progname}; ac_word=$2
8399 echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8401 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404 if test -n "$LIPO_FOR_TARGET"; then
8405 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
8415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8423 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
8424 if test -n "$LIPO_FOR_TARGET"; then
8425 echo "$as_me:$LINENO: result: $LIPO_FOR_TARGET" >&5
8426 echo "${ECHO_T}$LIPO_FOR_TARGET" >&6
8427 else
8428 echo "$as_me:$LINENO: result: no" >&5
8429 echo "${ECHO_T}no" >&6
8433 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
8434 done
8437 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
8438 set dummy lipo
8439 if test $build = $target ; then
8440 LIPO_FOR_TARGET="$2"
8441 else
8442 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
8446 else
8447 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
8453 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8454 if test -n "$with_build_time_tools"; then
8455 echo "$as_me:$LINENO: checking for nm in $with_build_time_tools" >&5
8456 echo $ECHO_N "checking for nm in $with_build_time_tools... $ECHO_C" >&6
8457 if test -x $with_build_time_tools/nm; then
8458 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
8459 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8460 echo "$as_me:$LINENO: result: $ac_cv_path_NM_FOR_TARGET" >&5
8461 echo "${ECHO_T}$ac_cv_path_NM_FOR_TARGET" >&6
8462 else
8463 echo "$as_me:$LINENO: result: no" >&5
8464 echo "${ECHO_T}no" >&6
8466 elif test $build != $host && test $have_gcc_for_target = yes; then
8467 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
8468 test $NM_FOR_TARGET=nm && NM_FOR_TARGET=
8469 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
8472 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8473 # Extract the first word of "nm", so it can be a program name with args.
8474 set dummy nm; ac_word=$2
8475 echo "$as_me:$LINENO: checking for $ac_word" >&5
8476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8477 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480 case $NM_FOR_TARGET in
8481 [\\/]* | ?:[\\/]*)
8482 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $gcc_cv_tool_dirs
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 break 2
8496 done
8497 done
8500 esac
8502 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8504 if test -n "$NM_FOR_TARGET"; then
8505 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8506 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8507 else
8508 echo "$as_me:$LINENO: result: no" >&5
8509 echo "${ECHO_T}no" >&6
8513 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
8514 if test -n "$with_build_time_tools"; then
8515 for ncn_progname in nm; do
8516 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8517 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8518 if test -x $with_build_time_tools/${ncn_progname}; then
8519 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8520 echo "$as_me:$LINENO: result: yes" >&5
8521 echo "${ECHO_T}yes" >&6
8522 break
8523 else
8524 echo "$as_me:$LINENO: result: no" >&5
8525 echo "${ECHO_T}no" >&6
8527 done
8530 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
8531 for ncn_progname in nm; do
8532 if test -n "$ncn_target_tool_prefix"; then
8533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8534 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8535 echo "$as_me:$LINENO: checking for $ac_word" >&5
8536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8537 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 if test -n "$NM_FOR_TARGET"; then
8541 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8542 else
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8546 IFS=$as_save_IFS
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 break 2
8554 done
8555 done
8559 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8560 if test -n "$NM_FOR_TARGET"; then
8561 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8562 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8563 else
8564 echo "$as_me:$LINENO: result: no" >&5
8565 echo "${ECHO_T}no" >&6
8569 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
8570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8571 set dummy ${ncn_progname}; ac_word=$2
8572 echo "$as_me:$LINENO: checking for $ac_word" >&5
8573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8574 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577 if test -n "$NM_FOR_TARGET"; then
8578 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8587 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
8588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8591 done
8592 done
8596 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
8597 if test -n "$NM_FOR_TARGET"; then
8598 echo "$as_me:$LINENO: result: $NM_FOR_TARGET" >&5
8599 echo "${ECHO_T}$NM_FOR_TARGET" >&6
8600 else
8601 echo "$as_me:$LINENO: result: no" >&5
8602 echo "${ECHO_T}no" >&6
8606 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
8607 done
8610 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
8611 set dummy nm
8612 if test $build = $target ; then
8613 NM_FOR_TARGET="$2"
8614 else
8615 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
8619 else
8620 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
8626 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8627 if test -n "$with_build_time_tools"; then
8628 echo "$as_me:$LINENO: checking for objdump in $with_build_time_tools" >&5
8629 echo $ECHO_N "checking for objdump in $with_build_time_tools... $ECHO_C" >&6
8630 if test -x $with_build_time_tools/objdump; then
8631 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
8632 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8633 echo "$as_me:$LINENO: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
8634 echo "${ECHO_T}$ac_cv_path_OBJDUMP_FOR_TARGET" >&6
8635 else
8636 echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6
8639 elif test $build != $host && test $have_gcc_for_target = yes; then
8640 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
8641 test $OBJDUMP_FOR_TARGET=objdump && OBJDUMP_FOR_TARGET=
8642 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
8645 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8646 # Extract the first word of "objdump", so it can be a program name with args.
8647 set dummy objdump; ac_word=$2
8648 echo "$as_me:$LINENO: checking for $ac_word" >&5
8649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8650 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 case $OBJDUMP_FOR_TARGET in
8654 [\\/]* | ?:[\\/]*)
8655 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $gcc_cv_tool_dirs
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8669 done
8670 done
8673 esac
8675 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8677 if test -n "$OBJDUMP_FOR_TARGET"; then
8678 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8679 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8680 else
8681 echo "$as_me:$LINENO: result: no" >&5
8682 echo "${ECHO_T}no" >&6
8686 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
8687 if test -n "$with_build_time_tools"; then
8688 for ncn_progname in objdump; do
8689 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8690 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8691 if test -x $with_build_time_tools/${ncn_progname}; then
8692 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8693 echo "$as_me:$LINENO: result: yes" >&5
8694 echo "${ECHO_T}yes" >&6
8695 break
8696 else
8697 echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6
8700 done
8703 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
8704 for ncn_progname in objdump; do
8705 if test -n "$ncn_target_tool_prefix"; then
8706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8707 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8708 echo "$as_me:$LINENO: checking for $ac_word" >&5
8709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8710 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713 if test -n "$OBJDUMP_FOR_TARGET"; then
8714 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8727 done
8728 done
8732 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8733 if test -n "$OBJDUMP_FOR_TARGET"; then
8734 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8735 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8736 else
8737 echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6
8742 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
8743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8744 set dummy ${ncn_progname}; ac_word=$2
8745 echo "$as_me:$LINENO: checking for $ac_word" >&5
8746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8747 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 else
8750 if test -n "$OBJDUMP_FOR_TARGET"; then
8751 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
8752 else
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8760 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
8761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8764 done
8765 done
8769 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
8770 if test -n "$OBJDUMP_FOR_TARGET"; then
8771 echo "$as_me:$LINENO: result: $OBJDUMP_FOR_TARGET" >&5
8772 echo "${ECHO_T}$OBJDUMP_FOR_TARGET" >&6
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6
8779 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
8780 done
8783 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
8784 set dummy objdump
8785 if test $build = $target ; then
8786 OBJDUMP_FOR_TARGET="$2"
8787 else
8788 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
8792 else
8793 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
8799 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8800 if test -n "$with_build_time_tools"; then
8801 echo "$as_me:$LINENO: checking for ranlib in $with_build_time_tools" >&5
8802 echo $ECHO_N "checking for ranlib in $with_build_time_tools... $ECHO_C" >&6
8803 if test -x $with_build_time_tools/ranlib; then
8804 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
8805 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8806 echo "$as_me:$LINENO: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
8807 echo "${ECHO_T}$ac_cv_path_RANLIB_FOR_TARGET" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6
8812 elif test $build != $host && test $have_gcc_for_target = yes; then
8813 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
8814 test $RANLIB_FOR_TARGET=ranlib && RANLIB_FOR_TARGET=
8815 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
8818 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8819 # Extract the first word of "ranlib", so it can be a program name with args.
8820 set dummy ranlib; ac_word=$2
8821 echo "$as_me:$LINENO: checking for $ac_word" >&5
8822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8823 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826 case $RANLIB_FOR_TARGET in
8827 [\\/]* | ?:[\\/]*)
8828 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $gcc_cv_tool_dirs
8834 IFS=$as_save_IFS
8835 test -z "$as_dir" && as_dir=.
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8838 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
8839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8840 break 2
8842 done
8843 done
8846 esac
8848 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8850 if test -n "$RANLIB_FOR_TARGET"; then
8851 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8852 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8853 else
8854 echo "$as_me:$LINENO: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8859 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
8860 if test -n "$with_build_time_tools"; then
8861 for ncn_progname in ranlib; do
8862 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
8863 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
8864 if test -x $with_build_time_tools/${ncn_progname}; then
8865 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
8866 echo "$as_me:$LINENO: result: yes" >&5
8867 echo "${ECHO_T}yes" >&6
8868 break
8869 else
8870 echo "$as_me:$LINENO: result: no" >&5
8871 echo "${ECHO_T}no" >&6
8873 done
8876 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
8877 for ncn_progname in ranlib; do
8878 if test -n "$ncn_target_tool_prefix"; then
8879 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
8880 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
8881 echo "$as_me:$LINENO: checking for $ac_word" >&5
8882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8883 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886 if test -n "$RANLIB_FOR_TARGET"; then
8887 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8888 else
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890 for as_dir in $PATH
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8896 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
8897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 break 2
8900 done
8901 done
8905 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8906 if test -n "$RANLIB_FOR_TARGET"; then
8907 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8908 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8909 else
8910 echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6
8915 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8917 set dummy ${ncn_progname}; ac_word=$2
8918 echo "$as_me:$LINENO: checking for $ac_word" >&5
8919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8920 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 if test -n "$RANLIB_FOR_TARGET"; then
8924 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
8934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8937 done
8938 done
8942 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
8943 if test -n "$RANLIB_FOR_TARGET"; then
8944 echo "$as_me:$LINENO: result: $RANLIB_FOR_TARGET" >&5
8945 echo "${ECHO_T}$RANLIB_FOR_TARGET" >&6
8946 else
8947 echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6
8952 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
8953 done
8956 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
8957 set dummy ranlib
8958 if test $build = $target ; then
8959 RANLIB_FOR_TARGET="$2"
8960 else
8961 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
8965 else
8966 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
8972 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
8973 if test -n "$with_build_time_tools"; then
8974 echo "$as_me:$LINENO: checking for strip in $with_build_time_tools" >&5
8975 echo $ECHO_N "checking for strip in $with_build_time_tools... $ECHO_C" >&6
8976 if test -x $with_build_time_tools/strip; then
8977 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
8978 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8979 echo "$as_me:$LINENO: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
8980 echo "${ECHO_T}$ac_cv_path_STRIP_FOR_TARGET" >&6
8981 else
8982 echo "$as_me:$LINENO: result: no" >&5
8983 echo "${ECHO_T}no" >&6
8985 elif test $build != $host && test $have_gcc_for_target = yes; then
8986 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
8987 test $STRIP_FOR_TARGET=strip && STRIP_FOR_TARGET=
8988 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
8991 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
8992 # Extract the first word of "strip", so it can be a program name with args.
8993 set dummy strip; ac_word=$2
8994 echo "$as_me:$LINENO: checking for $ac_word" >&5
8995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8996 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999 case $STRIP_FOR_TARGET in
9000 [\\/]* | ?:[\\/]*)
9001 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $gcc_cv_tool_dirs
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9011 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9019 esac
9021 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9023 if test -n "$STRIP_FOR_TARGET"; then
9024 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9025 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9026 else
9027 echo "$as_me:$LINENO: result: no" >&5
9028 echo "${ECHO_T}no" >&6
9032 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9033 if test -n "$with_build_time_tools"; then
9034 for ncn_progname in strip; do
9035 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9036 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9037 if test -x $with_build_time_tools/${ncn_progname}; then
9038 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9039 echo "$as_me:$LINENO: result: yes" >&5
9040 echo "${ECHO_T}yes" >&6
9041 break
9042 else
9043 echo "$as_me:$LINENO: result: no" >&5
9044 echo "${ECHO_T}no" >&6
9046 done
9049 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
9050 for ncn_progname in strip; do
9051 if test -n "$ncn_target_tool_prefix"; then
9052 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9053 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9054 echo "$as_me:$LINENO: checking for $ac_word" >&5
9055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9056 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059 if test -n "$STRIP_FOR_TARGET"; then
9060 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9061 else
9062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063 for as_dir in $PATH
9065 IFS=$as_save_IFS
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 break 2
9073 done
9074 done
9078 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9079 if test -n "$STRIP_FOR_TARGET"; then
9080 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9081 echo "${ECHO_T}$STRIP_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_prog_STRIP_FOR_TARGET" && test $build = $target ; then
9089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9090 set dummy ${ncn_progname}; ac_word=$2
9091 echo "$as_me:$LINENO: checking for $ac_word" >&5
9092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9093 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 if test -n "$STRIP_FOR_TARGET"; then
9097 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
9098 else
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
9104 for ac_exec_ext in '' $ac_executable_extensions; do
9105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
9107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 break 2
9110 done
9111 done
9115 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9116 if test -n "$STRIP_FOR_TARGET"; then
9117 echo "$as_me:$LINENO: result: $STRIP_FOR_TARGET" >&5
9118 echo "${ECHO_T}$STRIP_FOR_TARGET" >&6
9119 else
9120 echo "$as_me:$LINENO: result: no" >&5
9121 echo "${ECHO_T}no" >&6
9125 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
9126 done
9129 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
9130 set dummy strip
9131 if test $build = $target ; then
9132 STRIP_FOR_TARGET="$2"
9133 else
9134 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
9138 else
9139 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
9145 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9146 if test -n "$with_build_time_tools"; then
9147 echo "$as_me:$LINENO: checking for windres in $with_build_time_tools" >&5
9148 echo $ECHO_N "checking for windres in $with_build_time_tools... $ECHO_C" >&6
9149 if test -x $with_build_time_tools/windres; then
9150 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
9151 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9152 echo "$as_me:$LINENO: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
9153 echo "${ECHO_T}$ac_cv_path_WINDRES_FOR_TARGET" >&6
9154 else
9155 echo "$as_me:$LINENO: result: no" >&5
9156 echo "${ECHO_T}no" >&6
9158 elif test $build != $host && test $have_gcc_for_target = yes; then
9159 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
9160 test $WINDRES_FOR_TARGET=windres && WINDRES_FOR_TARGET=
9161 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
9164 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
9165 # Extract the first word of "windres", so it can be a program name with args.
9166 set dummy windres; ac_word=$2
9167 echo "$as_me:$LINENO: checking for $ac_word" >&5
9168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9169 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172 case $WINDRES_FOR_TARGET in
9173 [\\/]* | ?:[\\/]*)
9174 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $gcc_cv_tool_dirs
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9184 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
9185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9188 done
9189 done
9192 esac
9194 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9196 if test -n "$WINDRES_FOR_TARGET"; then
9197 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9198 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9199 else
9200 echo "$as_me:$LINENO: result: no" >&5
9201 echo "${ECHO_T}no" >&6
9205 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9206 if test -n "$with_build_time_tools"; then
9207 for ncn_progname in windres; do
9208 echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
9209 echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
9210 if test -x $with_build_time_tools/${ncn_progname}; then
9211 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9212 echo "$as_me:$LINENO: result: yes" >&5
9213 echo "${ECHO_T}yes" >&6
9214 break
9215 else
9216 echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6
9219 done
9222 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
9223 for ncn_progname in windres; do
9224 if test -n "$ncn_target_tool_prefix"; then
9225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9226 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9227 echo "$as_me:$LINENO: checking for $ac_word" >&5
9228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9229 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 else
9232 if test -n "$WINDRES_FOR_TARGET"; then
9233 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9234 else
9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9236 for as_dir in $PATH
9238 IFS=$as_save_IFS
9239 test -z "$as_dir" && as_dir=.
9240 for ac_exec_ext in '' $ac_executable_extensions; do
9241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9242 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9244 break 2
9246 done
9247 done
9251 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9252 if test -n "$WINDRES_FOR_TARGET"; then
9253 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9254 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9255 else
9256 echo "$as_me:$LINENO: result: no" >&5
9257 echo "${ECHO_T}no" >&6
9261 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
9262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9263 set dummy ${ncn_progname}; ac_word=$2
9264 echo "$as_me:$LINENO: checking for $ac_word" >&5
9265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9266 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then
9267 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 else
9269 if test -n "$WINDRES_FOR_TARGET"; then
9270 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
9271 else
9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 for as_dir in $PATH
9275 IFS=$as_save_IFS
9276 test -z "$as_dir" && as_dir=.
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9279 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
9280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9281 break 2
9283 done
9284 done
9288 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
9289 if test -n "$WINDRES_FOR_TARGET"; then
9290 echo "$as_me:$LINENO: result: $WINDRES_FOR_TARGET" >&5
9291 echo "${ECHO_T}$WINDRES_FOR_TARGET" >&6
9292 else
9293 echo "$as_me:$LINENO: result: no" >&5
9294 echo "${ECHO_T}no" >&6
9298 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
9299 done
9302 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
9303 set dummy windres
9304 if test $build = $target ; then
9305 WINDRES_FOR_TARGET="$2"
9306 else
9307 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
9311 else
9312 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
9316 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
9318 echo "$as_me:$LINENO: checking where to find the target ar" >&5
9319 echo $ECHO_N "checking where to find the target ar... $ECHO_C" >&6
9320 if test "x${build}" != "x${host}" ; then
9321 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9322 # We already found the complete path
9323 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9324 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
9325 else
9326 # Canadian cross, just use what we found
9327 echo "$as_me:$LINENO: result: pre-installed" >&5
9328 echo "${ECHO_T}pre-installed" >&6
9330 else
9331 ok=yes
9332 case " ${configdirs} " in
9333 *" binutils "*) ;;
9334 *) ok=no ;;
9335 esac
9337 if test $ok = yes; then
9338 # An in-tree tool is available and we can use it
9339 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
9340 echo "$as_me:$LINENO: result: just compiled" >&5
9341 echo "${ECHO_T}just compiled" >&6
9342 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
9343 # We already found the complete path
9344 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AR_FOR_TARGET\`" >&5
9345 echo "${ECHO_T}pre-installed in \`dirname $AR_FOR_TARGET\`" >&6
9346 elif test "x$target" = "x$host"; then
9347 # We can use an host tool
9348 AR_FOR_TARGET='$(AR)'
9349 echo "$as_me:$LINENO: result: host tool" >&5
9350 echo "${ECHO_T}host tool" >&6
9351 else
9352 # We need a cross tool
9353 echo "$as_me:$LINENO: result: pre-installed" >&5
9354 echo "${ECHO_T}pre-installed" >&6
9358 echo "$as_me:$LINENO: checking where to find the target as" >&5
9359 echo $ECHO_N "checking where to find the target as... $ECHO_C" >&6
9360 if test "x${build}" != "x${host}" ; then
9361 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9362 # We already found the complete path
9363 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9364 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
9365 else
9366 # Canadian cross, just use what we found
9367 echo "$as_me:$LINENO: result: pre-installed" >&5
9368 echo "${ECHO_T}pre-installed" >&6
9370 else
9371 ok=yes
9372 case " ${configdirs} " in
9373 *" gas "*) ;;
9374 *) ok=no ;;
9375 esac
9377 if test $ok = yes; then
9378 # An in-tree tool is available and we can use it
9379 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
9380 echo "$as_me:$LINENO: result: just compiled" >&5
9381 echo "${ECHO_T}just compiled" >&6
9382 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
9383 # We already found the complete path
9384 echo "$as_me:$LINENO: result: pre-installed in \`dirname $AS_FOR_TARGET\`" >&5
9385 echo "${ECHO_T}pre-installed in \`dirname $AS_FOR_TARGET\`" >&6
9386 elif test "x$target" = "x$host"; then
9387 # We can use an host tool
9388 AS_FOR_TARGET='$(AS)'
9389 echo "$as_me:$LINENO: result: host tool" >&5
9390 echo "${ECHO_T}host tool" >&6
9391 else
9392 # We need a cross tool
9393 echo "$as_me:$LINENO: result: pre-installed" >&5
9394 echo "${ECHO_T}pre-installed" >&6
9398 echo "$as_me:$LINENO: checking where to find the target cc" >&5
9399 echo $ECHO_N "checking where to find the target cc... $ECHO_C" >&6
9400 if test "x${build}" != "x${host}" ; then
9401 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9402 # We already found the complete path
9403 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9404 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
9405 else
9406 # Canadian cross, just use what we found
9407 echo "$as_me:$LINENO: result: pre-installed" >&5
9408 echo "${ECHO_T}pre-installed" >&6
9410 else
9411 ok=yes
9412 case " ${configdirs} " in
9413 *" gcc "*) ;;
9414 *) ok=no ;;
9415 esac
9417 if test $ok = yes; then
9418 # An in-tree tool is available and we can use it
9419 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9420 echo "$as_me:$LINENO: result: just compiled" >&5
9421 echo "${ECHO_T}just compiled" >&6
9422 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
9423 # We already found the complete path
9424 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CC_FOR_TARGET\`" >&5
9425 echo "${ECHO_T}pre-installed in \`dirname $CC_FOR_TARGET\`" >&6
9426 elif test "x$target" = "x$host"; then
9427 # We can use an host tool
9428 CC_FOR_TARGET='$(CC)'
9429 echo "$as_me:$LINENO: result: host tool" >&5
9430 echo "${ECHO_T}host tool" >&6
9431 else
9432 # We need a cross tool
9433 echo "$as_me:$LINENO: result: pre-installed" >&5
9434 echo "${ECHO_T}pre-installed" >&6
9438 echo "$as_me:$LINENO: checking where to find the target c++" >&5
9439 echo $ECHO_N "checking where to find the target c++... $ECHO_C" >&6
9440 if test "x${build}" != "x${host}" ; then
9441 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9442 # We already found the complete path
9443 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9444 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9445 else
9446 # Canadian cross, just use what we found
9447 echo "$as_me:$LINENO: result: pre-installed" >&5
9448 echo "${ECHO_T}pre-installed" >&6
9450 else
9451 ok=yes
9452 case " ${configdirs} " in
9453 *" gcc "*) ;;
9454 *) ok=no ;;
9455 esac
9456 case ,${enable_languages}, in
9457 *,c++,*) ;;
9458 *) ok=no ;;
9459 esac
9460 if test $ok = yes; then
9461 # An in-tree tool is available and we can use it
9462 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'
9463 echo "$as_me:$LINENO: result: just compiled" >&5
9464 echo "${ECHO_T}just compiled" >&6
9465 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
9466 # We already found the complete path
9467 echo "$as_me:$LINENO: result: pre-installed in \`dirname $CXX_FOR_TARGET\`" >&5
9468 echo "${ECHO_T}pre-installed in \`dirname $CXX_FOR_TARGET\`" >&6
9469 elif test "x$target" = "x$host"; then
9470 # We can use an host tool
9471 CXX_FOR_TARGET='$(CXX)'
9472 echo "$as_me:$LINENO: result: host tool" >&5
9473 echo "${ECHO_T}host tool" >&6
9474 else
9475 # We need a cross tool
9476 echo "$as_me:$LINENO: result: pre-installed" >&5
9477 echo "${ECHO_T}pre-installed" >&6
9481 echo "$as_me:$LINENO: checking where to find the target c++ for libstdc++" >&5
9482 echo $ECHO_N "checking where to find the target c++ for libstdc++... $ECHO_C" >&6
9483 if test "x${build}" != "x${host}" ; then
9484 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9485 # We already found the complete path
9486 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9487 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9488 else
9489 # Canadian cross, just use what we found
9490 echo "$as_me:$LINENO: result: pre-installed" >&5
9491 echo "${ECHO_T}pre-installed" >&6
9493 else
9494 ok=yes
9495 case " ${configdirs} " in
9496 *" gcc "*) ;;
9497 *) ok=no ;;
9498 esac
9499 case ,${enable_languages}, in
9500 *,c++,*) ;;
9501 *) ok=no ;;
9502 esac
9503 if test $ok = yes; then
9504 # An in-tree tool is available and we can use it
9505 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'
9506 echo "$as_me:$LINENO: result: just compiled" >&5
9507 echo "${ECHO_T}just compiled" >&6
9508 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
9509 # We already found the complete path
9510 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&5
9511 echo "${ECHO_T}pre-installed in \`dirname $RAW_CXX_FOR_TARGET\`" >&6
9512 elif test "x$target" = "x$host"; then
9513 # We can use an host tool
9514 RAW_CXX_FOR_TARGET='$(CXX)'
9515 echo "$as_me:$LINENO: result: host tool" >&5
9516 echo "${ECHO_T}host tool" >&6
9517 else
9518 # We need a cross tool
9519 echo "$as_me:$LINENO: result: pre-installed" >&5
9520 echo "${ECHO_T}pre-installed" >&6
9524 echo "$as_me:$LINENO: checking where to find the target dlltool" >&5
9525 echo $ECHO_N "checking where to find the target dlltool... $ECHO_C" >&6
9526 if test "x${build}" != "x${host}" ; then
9527 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9528 # We already found the complete path
9529 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9530 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9531 else
9532 # Canadian cross, just use what we found
9533 echo "$as_me:$LINENO: result: pre-installed" >&5
9534 echo "${ECHO_T}pre-installed" >&6
9536 else
9537 ok=yes
9538 case " ${configdirs} " in
9539 *" binutils "*) ;;
9540 *) ok=no ;;
9541 esac
9543 if test $ok = yes; then
9544 # An in-tree tool is available and we can use it
9545 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
9546 echo "$as_me:$LINENO: result: just compiled" >&5
9547 echo "${ECHO_T}just compiled" >&6
9548 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
9549 # We already found the complete path
9550 echo "$as_me:$LINENO: result: pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&5
9551 echo "${ECHO_T}pre-installed in \`dirname $DLLTOOL_FOR_TARGET\`" >&6
9552 elif test "x$target" = "x$host"; then
9553 # We can use an host tool
9554 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
9555 echo "$as_me:$LINENO: result: host tool" >&5
9556 echo "${ECHO_T}host tool" >&6
9557 else
9558 # We need a cross tool
9559 echo "$as_me:$LINENO: result: pre-installed" >&5
9560 echo "${ECHO_T}pre-installed" >&6
9564 echo "$as_me:$LINENO: checking where to find the target gcc" >&5
9565 echo $ECHO_N "checking where to find the target gcc... $ECHO_C" >&6
9566 if test "x${build}" != "x${host}" ; then
9567 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9568 # We already found the complete path
9569 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9570 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9571 else
9572 # Canadian cross, just use what we found
9573 echo "$as_me:$LINENO: result: pre-installed" >&5
9574 echo "${ECHO_T}pre-installed" >&6
9576 else
9577 ok=yes
9578 case " ${configdirs} " in
9579 *" gcc "*) ;;
9580 *) ok=no ;;
9581 esac
9583 if test $ok = yes; then
9584 # An in-tree tool is available and we can use it
9585 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
9586 echo "$as_me:$LINENO: result: just compiled" >&5
9587 echo "${ECHO_T}just compiled" >&6
9588 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
9589 # We already found the complete path
9590 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCC_FOR_TARGET\`" >&5
9591 echo "${ECHO_T}pre-installed in \`dirname $GCC_FOR_TARGET\`" >&6
9592 elif test "x$target" = "x$host"; then
9593 # We can use an host tool
9594 GCC_FOR_TARGET='$()'
9595 echo "$as_me:$LINENO: result: host tool" >&5
9596 echo "${ECHO_T}host tool" >&6
9597 else
9598 # We need a cross tool
9599 echo "$as_me:$LINENO: result: pre-installed" >&5
9600 echo "${ECHO_T}pre-installed" >&6
9604 echo "$as_me:$LINENO: checking where to find the target gcj" >&5
9605 echo $ECHO_N "checking where to find the target gcj... $ECHO_C" >&6
9606 if test "x${build}" != "x${host}" ; then
9607 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9608 # We already found the complete path
9609 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9610 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9611 else
9612 # Canadian cross, just use what we found
9613 echo "$as_me:$LINENO: result: pre-installed" >&5
9614 echo "${ECHO_T}pre-installed" >&6
9616 else
9617 ok=yes
9618 case " ${configdirs} " in
9619 *" gcc "*) ;;
9620 *) ok=no ;;
9621 esac
9622 case ,${enable_languages}, in
9623 *,java,*) ;;
9624 *) ok=no ;;
9625 esac
9626 if test $ok = yes; then
9627 # An in-tree tool is available and we can use it
9628 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
9629 echo "$as_me:$LINENO: result: just compiled" >&5
9630 echo "${ECHO_T}just compiled" >&6
9631 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
9632 # We already found the complete path
9633 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&5
9634 echo "${ECHO_T}pre-installed in \`dirname $GCJ_FOR_TARGET\`" >&6
9635 elif test "x$target" = "x$host"; then
9636 # We can use an host tool
9637 GCJ_FOR_TARGET='$(GCJ)'
9638 echo "$as_me:$LINENO: result: host tool" >&5
9639 echo "${ECHO_T}host tool" >&6
9640 else
9641 # We need a cross tool
9642 echo "$as_me:$LINENO: result: pre-installed" >&5
9643 echo "${ECHO_T}pre-installed" >&6
9647 echo "$as_me:$LINENO: checking where to find the target gfortran" >&5
9648 echo $ECHO_N "checking where to find the target gfortran... $ECHO_C" >&6
9649 if test "x${build}" != "x${host}" ; then
9650 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9651 # We already found the complete path
9652 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9653 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9654 else
9655 # Canadian cross, just use what we found
9656 echo "$as_me:$LINENO: result: pre-installed" >&5
9657 echo "${ECHO_T}pre-installed" >&6
9659 else
9660 ok=yes
9661 case " ${configdirs} " in
9662 *" gcc "*) ;;
9663 *) ok=no ;;
9664 esac
9665 case ,${enable_languages}, in
9666 *,fortran,*) ;;
9667 *) ok=no ;;
9668 esac
9669 if test $ok = yes; then
9670 # An in-tree tool is available and we can use it
9671 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
9672 echo "$as_me:$LINENO: result: just compiled" >&5
9673 echo "${ECHO_T}just compiled" >&6
9674 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
9675 # We already found the complete path
9676 echo "$as_me:$LINENO: result: pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&5
9677 echo "${ECHO_T}pre-installed in \`dirname $GFORTRAN_FOR_TARGET\`" >&6
9678 elif test "x$target" = "x$host"; then
9679 # We can use an host tool
9680 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
9681 echo "$as_me:$LINENO: result: host tool" >&5
9682 echo "${ECHO_T}host tool" >&6
9683 else
9684 # We need a cross tool
9685 echo "$as_me:$LINENO: result: pre-installed" >&5
9686 echo "${ECHO_T}pre-installed" >&6
9690 echo "$as_me:$LINENO: checking where to find the target ld" >&5
9691 echo $ECHO_N "checking where to find the target ld... $ECHO_C" >&6
9692 if test "x${build}" != "x${host}" ; then
9693 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9694 # We already found the complete path
9695 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9696 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9697 else
9698 # Canadian cross, just use what we found
9699 echo "$as_me:$LINENO: result: pre-installed" >&5
9700 echo "${ECHO_T}pre-installed" >&6
9702 else
9703 ok=yes
9704 case " ${configdirs} " in
9705 *" ld "*) ;;
9706 *) ok=no ;;
9707 esac
9709 if test $ok = yes; then
9710 # An in-tree tool is available and we can use it
9711 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
9712 echo "$as_me:$LINENO: result: just compiled" >&5
9713 echo "${ECHO_T}just compiled" >&6
9714 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
9715 # We already found the complete path
9716 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LD_FOR_TARGET\`" >&5
9717 echo "${ECHO_T}pre-installed in \`dirname $LD_FOR_TARGET\`" >&6
9718 elif test "x$target" = "x$host"; then
9719 # We can use an host tool
9720 LD_FOR_TARGET='$(LD)'
9721 echo "$as_me:$LINENO: result: host tool" >&5
9722 echo "${ECHO_T}host tool" >&6
9723 else
9724 # We need a cross tool
9725 echo "$as_me:$LINENO: result: pre-installed" >&5
9726 echo "${ECHO_T}pre-installed" >&6
9730 echo "$as_me:$LINENO: checking where to find the target lipo" >&5
9731 echo $ECHO_N "checking where to find the target lipo... $ECHO_C" >&6
9732 if test "x${build}" != "x${host}" ; then
9733 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9734 # We already found the complete path
9735 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9736 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9737 else
9738 # Canadian cross, just use what we found
9739 echo "$as_me:$LINENO: result: pre-installed" >&5
9740 echo "${ECHO_T}pre-installed" >&6
9742 else
9743 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
9744 # We already found the complete path
9745 echo "$as_me:$LINENO: result: pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&5
9746 echo "${ECHO_T}pre-installed in \`dirname $LIPO_FOR_TARGET\`" >&6
9747 elif test "x$target" = "x$host"; then
9748 # We can use an host tool
9749 LIPO_FOR_TARGET='$(LIPO)'
9750 echo "$as_me:$LINENO: result: host tool" >&5
9751 echo "${ECHO_T}host tool" >&6
9752 else
9753 # We need a cross tool
9754 echo "$as_me:$LINENO: result: pre-installed" >&5
9755 echo "${ECHO_T}pre-installed" >&6
9759 echo "$as_me:$LINENO: checking where to find the target nm" >&5
9760 echo $ECHO_N "checking where to find the target nm... $ECHO_C" >&6
9761 if test "x${build}" != "x${host}" ; then
9762 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9763 # We already found the complete path
9764 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9765 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9766 else
9767 # Canadian cross, just use what we found
9768 echo "$as_me:$LINENO: result: pre-installed" >&5
9769 echo "${ECHO_T}pre-installed" >&6
9771 else
9772 ok=yes
9773 case " ${configdirs} " in
9774 *" binutils "*) ;;
9775 *) ok=no ;;
9776 esac
9778 if test $ok = yes; then
9779 # An in-tree tool is available and we can use it
9780 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
9781 echo "$as_me:$LINENO: result: just compiled" >&5
9782 echo "${ECHO_T}just compiled" >&6
9783 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
9784 # We already found the complete path
9785 echo "$as_me:$LINENO: result: pre-installed in \`dirname $NM_FOR_TARGET\`" >&5
9786 echo "${ECHO_T}pre-installed in \`dirname $NM_FOR_TARGET\`" >&6
9787 elif test "x$target" = "x$host"; then
9788 # We can use an host tool
9789 NM_FOR_TARGET='$(NM)'
9790 echo "$as_me:$LINENO: result: host tool" >&5
9791 echo "${ECHO_T}host tool" >&6
9792 else
9793 # We need a cross tool
9794 echo "$as_me:$LINENO: result: pre-installed" >&5
9795 echo "${ECHO_T}pre-installed" >&6
9799 echo "$as_me:$LINENO: checking where to find the target objdump" >&5
9800 echo $ECHO_N "checking where to find the target objdump... $ECHO_C" >&6
9801 if test "x${build}" != "x${host}" ; then
9802 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9803 # We already found the complete path
9804 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9805 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9806 else
9807 # Canadian cross, just use what we found
9808 echo "$as_me:$LINENO: result: pre-installed" >&5
9809 echo "${ECHO_T}pre-installed" >&6
9811 else
9812 ok=yes
9813 case " ${configdirs} " in
9814 *" binutils "*) ;;
9815 *) ok=no ;;
9816 esac
9818 if test $ok = yes; then
9819 # An in-tree tool is available and we can use it
9820 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
9821 echo "$as_me:$LINENO: result: just compiled" >&5
9822 echo "${ECHO_T}just compiled" >&6
9823 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
9824 # We already found the complete path
9825 echo "$as_me:$LINENO: result: pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&5
9826 echo "${ECHO_T}pre-installed in \`dirname $OBJDUMP_FOR_TARGET\`" >&6
9827 elif test "x$target" = "x$host"; then
9828 # We can use an host tool
9829 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
9830 echo "$as_me:$LINENO: result: host tool" >&5
9831 echo "${ECHO_T}host tool" >&6
9832 else
9833 # We need a cross tool
9834 echo "$as_me:$LINENO: result: pre-installed" >&5
9835 echo "${ECHO_T}pre-installed" >&6
9839 echo "$as_me:$LINENO: checking where to find the target ranlib" >&5
9840 echo $ECHO_N "checking where to find the target ranlib... $ECHO_C" >&6
9841 if test "x${build}" != "x${host}" ; then
9842 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9843 # We already found the complete path
9844 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9845 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9846 else
9847 # Canadian cross, just use what we found
9848 echo "$as_me:$LINENO: result: pre-installed" >&5
9849 echo "${ECHO_T}pre-installed" >&6
9851 else
9852 ok=yes
9853 case " ${configdirs} " in
9854 *" binutils "*) ;;
9855 *) ok=no ;;
9856 esac
9858 if test $ok = yes; then
9859 # An in-tree tool is available and we can use it
9860 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
9861 echo "$as_me:$LINENO: result: just compiled" >&5
9862 echo "${ECHO_T}just compiled" >&6
9863 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
9864 # We already found the complete path
9865 echo "$as_me:$LINENO: result: pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&5
9866 echo "${ECHO_T}pre-installed in \`dirname $RANLIB_FOR_TARGET\`" >&6
9867 elif test "x$target" = "x$host"; then
9868 # We can use an host tool
9869 RANLIB_FOR_TARGET='$(RANLIB)'
9870 echo "$as_me:$LINENO: result: host tool" >&5
9871 echo "${ECHO_T}host tool" >&6
9872 else
9873 # We need a cross tool
9874 echo "$as_me:$LINENO: result: pre-installed" >&5
9875 echo "${ECHO_T}pre-installed" >&6
9879 echo "$as_me:$LINENO: checking where to find the target strip" >&5
9880 echo $ECHO_N "checking where to find the target strip... $ECHO_C" >&6
9881 if test "x${build}" != "x${host}" ; then
9882 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9883 # We already found the complete path
9884 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9885 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9886 else
9887 # Canadian cross, just use what we found
9888 echo "$as_me:$LINENO: result: pre-installed" >&5
9889 echo "${ECHO_T}pre-installed" >&6
9891 else
9892 ok=yes
9893 case " ${configdirs} " in
9894 *" binutils "*) ;;
9895 *) ok=no ;;
9896 esac
9898 if test $ok = yes; then
9899 # An in-tree tool is available and we can use it
9900 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
9901 echo "$as_me:$LINENO: result: just compiled" >&5
9902 echo "${ECHO_T}just compiled" >&6
9903 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
9904 # We already found the complete path
9905 echo "$as_me:$LINENO: result: pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&5
9906 echo "${ECHO_T}pre-installed in \`dirname $STRIP_FOR_TARGET\`" >&6
9907 elif test "x$target" = "x$host"; then
9908 # We can use an host tool
9909 STRIP_FOR_TARGET='$(STRIP)'
9910 echo "$as_me:$LINENO: result: host tool" >&5
9911 echo "${ECHO_T}host tool" >&6
9912 else
9913 # We need a cross tool
9914 echo "$as_me:$LINENO: result: pre-installed" >&5
9915 echo "${ECHO_T}pre-installed" >&6
9919 echo "$as_me:$LINENO: checking where to find the target windres" >&5
9920 echo $ECHO_N "checking where to find the target windres... $ECHO_C" >&6
9921 if test "x${build}" != "x${host}" ; then
9922 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9923 # We already found the complete path
9924 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9925 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9926 else
9927 # Canadian cross, just use what we found
9928 echo "$as_me:$LINENO: result: pre-installed" >&5
9929 echo "${ECHO_T}pre-installed" >&6
9931 else
9932 ok=yes
9933 case " ${configdirs} " in
9934 *" binutils "*) ;;
9935 *) ok=no ;;
9936 esac
9938 if test $ok = yes; then
9939 # An in-tree tool is available and we can use it
9940 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
9941 echo "$as_me:$LINENO: result: just compiled" >&5
9942 echo "${ECHO_T}just compiled" >&6
9943 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
9944 # We already found the complete path
9945 echo "$as_me:$LINENO: result: pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&5
9946 echo "${ECHO_T}pre-installed in \`dirname $WINDRES_FOR_TARGET\`" >&6
9947 elif test "x$target" = "x$host"; then
9948 # We can use an host tool
9949 WINDRES_FOR_TARGET='$(WINDRES)'
9950 echo "$as_me:$LINENO: result: host tool" >&5
9951 echo "${ECHO_T}host tool" >&6
9952 else
9953 # We need a cross tool
9954 echo "$as_me:$LINENO: result: pre-installed" >&5
9955 echo "${ECHO_T}pre-installed" >&6
9963 # Certain tools may need extra flags.
9964 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
9965 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
9966 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
9968 # When building target libraries, except in a Canadian cross, we use
9969 # the same toolchain as the compiler we just built.
9970 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
9971 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
9972 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
9973 if test $host = $build; then
9974 case " $configdirs " in
9975 *" gcc "*)
9976 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
9977 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
9978 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
9980 esac
9987 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9988 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9989 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9990 if test "${enable_maintainer_mode+set}" = set; then
9991 enableval="$enable_maintainer_mode"
9992 USE_MAINTAINER_MODE=$enableval
9993 else
9994 USE_MAINTAINER_MODE=no
9996 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9997 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10000 if test "$USE_MAINTAINER_MODE" = yes; then
10001 MAINTAINER_MODE_TRUE=
10002 MAINTAINER_MODE_FALSE='#'
10003 else
10004 MAINTAINER_MODE_TRUE='#'
10005 MAINTAINER_MODE_FALSE=
10007 MAINT=$MAINTAINER_MODE_TRUE
10009 # ---------------------
10010 # GCC bootstrap support
10011 # ---------------------
10013 # Stage specific cflags for build.
10014 stage1_cflags="-g"
10015 case $build in
10016 vax-*-*)
10017 case ${GCC} in
10018 yes) stage1_cflags="-g -Wa,-J" ;;
10019 *) stage1_cflags="-g -J" ;;
10020 esac ;;
10021 esac
10023 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
10024 if test "$GCC" = yes; then
10025 saved_CFLAGS="$CFLAGS"
10027 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
10028 CFLAGS="$CFLAGS -fkeep-inline-functions"
10029 echo "$as_me:$LINENO: checking whether -fkeep-inline-functions is supported" >&5
10030 echo $ECHO_N "checking whether -fkeep-inline-functions is supported... $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10039 main ()
10043 return 0;
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -z "$ac_c_werror_flag"
10056 || test ! -s conftest.err'
10057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058 (eval $ac_try) 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10065 ac_status=$?
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 echo "$as_me:$LINENO: result: yes" >&5
10069 echo "${ECHO_T}yes" >&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
10070 else
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074 echo "$as_me:$LINENO: result: no" >&5
10075 echo "${ECHO_T}no" >&6
10077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10079 CFLAGS="$saved_CFLAGS"
10084 # Enable --enable-checking in stage1 of the compiler.
10085 # Check whether --enable-stage1-checking or --disable-stage1-checking was given.
10086 if test "${enable_stage1_checking+set}" = set; then
10087 enableval="$enable_stage1_checking"
10088 stage1_checking=--enable-checking=${enable_stage1_checking}
10089 else
10090 if test "x$enable_checking" = xno; then
10091 stage1_checking=--enable-checking
10092 else
10093 stage1_checking=--enable-checking${enable_checking+=}$enable_checking
10098 # Enable -Werror in bootstrap stage2 and later.
10099 # Check whether --enable-werror or --disable-werror was given.
10100 if test "${enable_werror+set}" = set; then
10101 enableval="$enable_werror"
10103 else
10104 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
10105 enable_werror=yes
10106 else
10107 enable_werror=no
10110 case ${enable_werror} in
10111 yes) stage2_werror_flag="--enable-werror-always" ;;
10112 *) stage2_werror_flag="" ;;
10113 esac
10116 # Flags needed to enable html installing and building
10118 # Check whether --with-datarootdir or --without-datarootdir was given.
10119 if test "${with_datarootdir+set}" = set; then
10120 withval="$with_datarootdir"
10121 datarootdir="\${prefix}/${withval}"
10122 else
10123 datarootdir="\${prefix}/share"
10127 # Check whether --with-docdir or --without-docdir was given.
10128 if test "${with_docdir+set}" = set; then
10129 withval="$with_docdir"
10130 docdir="\${prefix}/${withval}"
10131 else
10132 docdir="\${datarootdir}/doc"
10136 # Check whether --with-htmldir or --without-htmldir was given.
10137 if test "${with_htmldir+set}" = set; then
10138 withval="$with_htmldir"
10139 htmldir="\${prefix}/${withval}"
10140 else
10141 htmldir="\${docdir}"
10148 ac_config_files="$ac_config_files Makefile"
10149 cat >confcache <<\_ACEOF
10150 # This file is a shell script that caches the results of configure
10151 # tests run on this system so they can be shared between configure
10152 # scripts and configure runs, see configure's option --config-cache.
10153 # It is not useful on other systems. If it contains results you don't
10154 # want to keep, you may remove or edit it.
10156 # config.status only pays attention to the cache file if you give it
10157 # the --recheck option to rerun configure.
10159 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10160 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10161 # following values.
10163 _ACEOF
10165 # The following way of writing the cache mishandles newlines in values,
10166 # but we know of no workaround that is simple, portable, and efficient.
10167 # So, don't put newlines in cache variables' values.
10168 # Ultrix sh set writes to stderr and can't be redirected directly,
10169 # and sets the high bit in the cache file unless we assign to the vars.
10171 (set) 2>&1 |
10172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10173 *ac_space=\ *)
10174 # `set' does not quote correctly, so add quotes (double-quote
10175 # substitution turns \\\\ into \\, and sed turns \\ into \).
10176 sed -n \
10177 "s/'/'\\\\''/g;
10178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10181 # `set' quotes correctly as required by POSIX, so do not add quotes.
10182 sed -n \
10183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10185 esac;
10187 sed '
10188 t clear
10189 : clear
10190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10191 t end
10192 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10193 : end' >>confcache
10194 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10195 if test -w $cache_file; then
10196 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10197 cat confcache >$cache_file
10198 else
10199 echo "not updating unwritable cache $cache_file"
10202 rm -f confcache
10204 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10205 # Let make expand exec_prefix.
10206 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10208 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10209 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10210 # trailing colons and then remove the whole line if VPATH becomes empty
10211 # (actually we leave an empty line to preserve line numbers).
10212 if test "x$srcdir" = x.; then
10213 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10214 s/:*\$(srcdir):*/:/;
10215 s/:*\${srcdir}:*/:/;
10216 s/:*@srcdir@:*/:/;
10217 s/^\([^=]*=[ ]*\):*/\1/;
10218 s/:*$//;
10219 s/^[^=]*=[ ]*$//;
10223 # Transform confdefs.h into DEFS.
10224 # Protect against shell expansion while executing Makefile rules.
10225 # Protect against Makefile macro expansion.
10227 # If the first sed substitution is executed (which looks for macros that
10228 # take arguments), then we branch to the quote section. Otherwise,
10229 # look for a macro that doesn't take arguments.
10230 cat >confdef2opt.sed <<\_ACEOF
10231 t clear
10232 : clear
10233 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10234 t quote
10235 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10236 t quote
10238 : quote
10239 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10240 s,\[,\\&,g
10241 s,\],\\&,g
10242 s,\$,$$,g
10244 _ACEOF
10245 # We use echo to avoid assuming a particular line-breaking character.
10246 # The extra dot is to prevent the shell from consuming trailing
10247 # line-breaks from the sub-command output. A line-break within
10248 # single-quotes doesn't work because, if this script is created in a
10249 # platform that uses two characters for line-breaks (e.g., DOS), tr
10250 # would break.
10251 ac_LF_and_DOT=`echo; echo .`
10252 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10253 rm -f confdef2opt.sed
10256 ac_libobjs=
10257 ac_ltlibobjs=
10258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10259 # 1. Remove the extension, and $U if already installed.
10260 ac_i=`echo "$ac_i" |
10261 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10262 # 2. Add them.
10263 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10264 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10265 done
10266 LIBOBJS=$ac_libobjs
10268 LTLIBOBJS=$ac_ltlibobjs
10272 : ${CONFIG_STATUS=./config.status}
10273 ac_clean_files_save=$ac_clean_files
10274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10275 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10276 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10277 cat >$CONFIG_STATUS <<_ACEOF
10278 #! $SHELL
10279 # Generated by $as_me.
10280 # Run this file to recreate the current configuration.
10281 # Compiler output produced by configure, useful for debugging
10282 # configure, is in config.log if it exists.
10284 debug=false
10285 ac_cs_recheck=false
10286 ac_cs_silent=false
10287 SHELL=\${CONFIG_SHELL-$SHELL}
10288 _ACEOF
10290 cat >>$CONFIG_STATUS <<\_ACEOF
10291 ## --------------------- ##
10292 ## M4sh Initialization. ##
10293 ## --------------------- ##
10295 # Be Bourne compatible
10296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10297 emulate sh
10298 NULLCMD=:
10299 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10300 # is contrary to our usage. Disable this feature.
10301 alias -g '${1+"$@"}'='"$@"'
10302 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10303 set -o posix
10305 DUALCASE=1; export DUALCASE # for MKS sh
10307 # Support unset when possible.
10308 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10309 as_unset=unset
10310 else
10311 as_unset=false
10315 # Work around bugs in pre-3.0 UWIN ksh.
10316 $as_unset ENV MAIL MAILPATH
10317 PS1='$ '
10318 PS2='> '
10319 PS4='+ '
10321 # NLS nuisances.
10322 for as_var in \
10323 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10324 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10325 LC_TELEPHONE LC_TIME
10327 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10328 eval $as_var=C; export $as_var
10329 else
10330 $as_unset $as_var
10332 done
10334 # Required to use basename.
10335 if expr a : '\(a\)' >/dev/null 2>&1; then
10336 as_expr=expr
10337 else
10338 as_expr=false
10341 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10342 as_basename=basename
10343 else
10344 as_basename=false
10348 # Name of the executable.
10349 as_me=`$as_basename "$0" ||
10350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10351 X"$0" : 'X\(//\)$' \| \
10352 X"$0" : 'X\(/\)$' \| \
10353 . : '\(.\)' 2>/dev/null ||
10354 echo X/"$0" |
10355 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10356 /^X\/\(\/\/\)$/{ s//\1/; q; }
10357 /^X\/\(\/\).*/{ s//\1/; q; }
10358 s/.*/./; q'`
10361 # PATH needs CR, and LINENO needs CR and PATH.
10362 # Avoid depending upon Character Ranges.
10363 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10364 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10365 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10366 as_cr_digits='0123456789'
10367 as_cr_alnum=$as_cr_Letters$as_cr_digits
10369 # The user is always right.
10370 if test "${PATH_SEPARATOR+set}" != set; then
10371 echo "#! /bin/sh" >conf$$.sh
10372 echo "exit 0" >>conf$$.sh
10373 chmod +x conf$$.sh
10374 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10375 PATH_SEPARATOR=';'
10376 else
10377 PATH_SEPARATOR=:
10379 rm -f conf$$.sh
10383 as_lineno_1=$LINENO
10384 as_lineno_2=$LINENO
10385 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10386 test "x$as_lineno_1" != "x$as_lineno_2" &&
10387 test "x$as_lineno_3" = "x$as_lineno_2" || {
10388 # Find who we are. Look in the path if we contain no path at all
10389 # relative or not.
10390 case $0 in
10391 *[\\/]* ) as_myself=$0 ;;
10392 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
10397 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10398 done
10401 esac
10402 # We did not find ourselves, most probably we were run as `sh COMMAND'
10403 # in which case we are not to be found in the path.
10404 if test "x$as_myself" = x; then
10405 as_myself=$0
10407 if test ! -f "$as_myself"; then
10408 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10409 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10410 { (exit 1); exit 1; }; }
10412 case $CONFIG_SHELL in
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10417 IFS=$as_save_IFS
10418 test -z "$as_dir" && as_dir=.
10419 for as_base in sh bash ksh sh5; do
10420 case $as_dir in
10422 if ("$as_dir/$as_base" -c '
10423 as_lineno_1=$LINENO
10424 as_lineno_2=$LINENO
10425 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10426 test "x$as_lineno_1" != "x$as_lineno_2" &&
10427 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10428 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10429 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10430 CONFIG_SHELL=$as_dir/$as_base
10431 export CONFIG_SHELL
10432 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10433 fi;;
10434 esac
10435 done
10436 done
10438 esac
10440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10441 # uniformly replaced by the line number. The first 'sed' inserts a
10442 # line-number line before each line; the second 'sed' does the real
10443 # work. The second script uses 'N' to pair each line-number line
10444 # with the numbered line, and appends trailing '-' during
10445 # substitution so that $LINENO is not a special case at line end.
10446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10447 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10448 sed '=' <$as_myself |
10449 sed '
10451 s,$,-,
10452 : loop
10453 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10454 t loop
10455 s,-$,,
10456 s,^['$as_cr_digits']*\n,,
10457 ' >$as_me.lineno &&
10458 chmod +x $as_me.lineno ||
10459 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10460 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10461 { (exit 1); exit 1; }; }
10463 # Don't try to exec as it changes $[0], causing all sort of problems
10464 # (the dirname of $[0] is not the place where we might find the
10465 # original and so on. Autoconf is especially sensible to this).
10466 . ./$as_me.lineno
10467 # Exit status is that of the last command.
10468 exit
10472 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10473 *c*,-n*) ECHO_N= ECHO_C='
10474 ' ECHO_T=' ' ;;
10475 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10476 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10477 esac
10479 if expr a : '\(a\)' >/dev/null 2>&1; then
10480 as_expr=expr
10481 else
10482 as_expr=false
10485 rm -f conf$$ conf$$.exe conf$$.file
10486 echo >conf$$.file
10487 if ln -s conf$$.file conf$$ 2>/dev/null; then
10488 # We could just check for DJGPP; but this test a) works b) is more generic
10489 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10490 if test -f conf$$.exe; then
10491 # Don't use ln at all; we don't have any links
10492 as_ln_s='cp -p'
10493 else
10494 as_ln_s='ln -s'
10496 elif ln conf$$.file conf$$ 2>/dev/null; then
10497 as_ln_s=ln
10498 else
10499 as_ln_s='cp -p'
10501 rm -f conf$$ conf$$.exe conf$$.file
10503 if mkdir -p . 2>/dev/null; then
10504 as_mkdir_p=:
10505 else
10506 test -d ./-p && rmdir ./-p
10507 as_mkdir_p=false
10510 as_executable_p="test -f"
10512 # Sed expression to map a string onto a valid CPP name.
10513 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10515 # Sed expression to map a string onto a valid variable name.
10516 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10519 # IFS
10520 # We need space, tab and new line, in precisely that order.
10521 as_nl='
10523 IFS=" $as_nl"
10525 # CDPATH.
10526 $as_unset CDPATH
10528 exec 6>&1
10530 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10531 # report actual input values of CONFIG_FILES etc. instead of their
10532 # values after options handling. Logging --version etc. is OK.
10533 exec 5>>config.log
10535 echo
10536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10537 ## Running $as_me. ##
10538 _ASBOX
10539 } >&5
10540 cat >&5 <<_CSEOF
10542 This file was extended by $as_me, which was
10543 generated by GNU Autoconf 2.59. Invocation command line was
10545 CONFIG_FILES = $CONFIG_FILES
10546 CONFIG_HEADERS = $CONFIG_HEADERS
10547 CONFIG_LINKS = $CONFIG_LINKS
10548 CONFIG_COMMANDS = $CONFIG_COMMANDS
10549 $ $0 $@
10551 _CSEOF
10552 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10553 echo >&5
10554 _ACEOF
10556 # Files that config.status was made for.
10557 if test -n "$ac_config_files"; then
10558 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10561 if test -n "$ac_config_headers"; then
10562 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10565 if test -n "$ac_config_links"; then
10566 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10569 if test -n "$ac_config_commands"; then
10570 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10573 cat >>$CONFIG_STATUS <<\_ACEOF
10575 ac_cs_usage="\
10576 \`$as_me' instantiates files from templates according to the
10577 current configuration.
10579 Usage: $0 [OPTIONS] [FILE]...
10581 -h, --help print this help, then exit
10582 -V, --version print version number, then exit
10583 -q, --quiet do not print progress messages
10584 -d, --debug don't remove temporary files
10585 --recheck update $as_me by reconfiguring in the same conditions
10586 --file=FILE[:TEMPLATE]
10587 instantiate the configuration file FILE
10589 Configuration files:
10590 $config_files
10592 Report bugs to <bug-autoconf@gnu.org>."
10593 _ACEOF
10595 cat >>$CONFIG_STATUS <<_ACEOF
10596 ac_cs_version="\\
10597 config.status
10598 configured by $0, generated by GNU Autoconf 2.59,
10599 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10601 Copyright (C) 2003 Free Software Foundation, Inc.
10602 This config.status script is free software; the Free Software Foundation
10603 gives unlimited permission to copy, distribute and modify it."
10604 srcdir=$srcdir
10605 INSTALL="$INSTALL"
10606 _ACEOF
10608 cat >>$CONFIG_STATUS <<\_ACEOF
10609 # If no file are specified by the user, then we need to provide default
10610 # value. By we need to know if files were specified by the user.
10611 ac_need_defaults=:
10612 while test $# != 0
10614 case $1 in
10615 --*=*)
10616 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10617 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10618 ac_shift=:
10621 ac_option=$1
10622 ac_optarg=$2
10623 ac_shift=shift
10625 *) # This is not an option, so the user has probably given explicit
10626 # arguments.
10627 ac_option=$1
10628 ac_need_defaults=false;;
10629 esac
10631 case $ac_option in
10632 # Handling of the options.
10633 _ACEOF
10634 cat >>$CONFIG_STATUS <<\_ACEOF
10635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10636 ac_cs_recheck=: ;;
10637 --version | --vers* | -V )
10638 echo "$ac_cs_version"; exit 0 ;;
10639 --he | --h)
10640 # Conflict between --help and --header
10641 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10642 Try \`$0 --help' for more information." >&5
10643 echo "$as_me: error: ambiguous option: $1
10644 Try \`$0 --help' for more information." >&2;}
10645 { (exit 1); exit 1; }; };;
10646 --help | --hel | -h )
10647 echo "$ac_cs_usage"; exit 0 ;;
10648 --debug | --d* | -d )
10649 debug=: ;;
10650 --file | --fil | --fi | --f )
10651 $ac_shift
10652 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10653 ac_need_defaults=false;;
10654 --header | --heade | --head | --hea )
10655 $ac_shift
10656 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10657 ac_need_defaults=false;;
10658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10660 ac_cs_silent=: ;;
10662 # This is an error.
10663 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10664 Try \`$0 --help' for more information." >&5
10665 echo "$as_me: error: unrecognized option: $1
10666 Try \`$0 --help' for more information." >&2;}
10667 { (exit 1); exit 1; }; } ;;
10669 *) ac_config_targets="$ac_config_targets $1" ;;
10671 esac
10672 shift
10673 done
10675 ac_configure_extra_args=
10677 if $ac_cs_silent; then
10678 exec 6>/dev/null
10679 ac_configure_extra_args="$ac_configure_extra_args --silent"
10682 _ACEOF
10683 cat >>$CONFIG_STATUS <<_ACEOF
10684 if \$ac_cs_recheck; then
10685 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10686 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10689 _ACEOF
10695 cat >>$CONFIG_STATUS <<\_ACEOF
10696 for ac_config_target in $ac_config_targets
10698 case "$ac_config_target" in
10699 # Handling of arguments.
10700 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10701 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10702 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10703 { (exit 1); exit 1; }; };;
10704 esac
10705 done
10707 # If the user did not use the arguments to specify the items to instantiate,
10708 # then the envvar interface is used. Set only those that are not.
10709 # We use the long form for the default assignment because of an extremely
10710 # bizarre bug on SunOS 4.1.3.
10711 if $ac_need_defaults; then
10712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10715 # Have a temporary directory for convenience. Make it in the build tree
10716 # simply because there is no reason to put it here, and in addition,
10717 # creating and moving files from /tmp can sometimes cause problems.
10718 # Create a temporary directory, and hook for its removal unless debugging.
10719 $debug ||
10721 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10722 trap '{ (exit 1); exit 1; }' 1 2 13 15
10725 # Create a (secure) tmp directory for tmp files.
10728 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10729 test -n "$tmp" && test -d "$tmp"
10730 } ||
10732 tmp=./confstat$$-$RANDOM
10733 (umask 077 && mkdir $tmp)
10734 } ||
10736 echo "$me: cannot create a temporary directory in ." >&2
10737 { (exit 1); exit 1; }
10740 _ACEOF
10742 cat >>$CONFIG_STATUS <<_ACEOF
10745 # CONFIG_FILES section.
10748 # No need to generate the scripts if there are no CONFIG_FILES.
10749 # This happens for instance when ./config.status config.h
10750 if test -n "\$CONFIG_FILES"; then
10751 # Protect against being on the right side of a sed subst in config.status.
10752 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10753 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10754 s,@SHELL@,$SHELL,;t t
10755 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10756 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10757 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10758 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10759 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10760 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10761 s,@exec_prefix@,$exec_prefix,;t t
10762 s,@prefix@,$prefix,;t t
10763 s,@program_transform_name@,$program_transform_name,;t t
10764 s,@bindir@,$bindir,;t t
10765 s,@sbindir@,$sbindir,;t t
10766 s,@libexecdir@,$libexecdir,;t t
10767 s,@datadir@,$datadir,;t t
10768 s,@sysconfdir@,$sysconfdir,;t t
10769 s,@sharedstatedir@,$sharedstatedir,;t t
10770 s,@localstatedir@,$localstatedir,;t t
10771 s,@libdir@,$libdir,;t t
10772 s,@includedir@,$includedir,;t t
10773 s,@oldincludedir@,$oldincludedir,;t t
10774 s,@infodir@,$infodir,;t t
10775 s,@mandir@,$mandir,;t t
10776 s,@build_alias@,$build_alias,;t t
10777 s,@host_alias@,$host_alias,;t t
10778 s,@target_alias@,$target_alias,;t t
10779 s,@DEFS@,$DEFS,;t t
10780 s,@ECHO_C@,$ECHO_C,;t t
10781 s,@ECHO_N@,$ECHO_N,;t t
10782 s,@ECHO_T@,$ECHO_T,;t t
10783 s,@LIBS@,$LIBS,;t t
10784 s,@build@,$build,;t t
10785 s,@build_cpu@,$build_cpu,;t t
10786 s,@build_vendor@,$build_vendor,;t t
10787 s,@build_os@,$build_os,;t t
10788 s,@build_noncanonical@,$build_noncanonical,;t t
10789 s,@host_noncanonical@,$host_noncanonical,;t t
10790 s,@target_noncanonical@,$target_noncanonical,;t t
10791 s,@host@,$host,;t t
10792 s,@host_cpu@,$host_cpu,;t t
10793 s,@host_vendor@,$host_vendor,;t t
10794 s,@host_os@,$host_os,;t t
10795 s,@target@,$target,;t t
10796 s,@target_cpu@,$target_cpu,;t t
10797 s,@target_vendor@,$target_vendor,;t t
10798 s,@target_os@,$target_os,;t t
10799 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10800 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10801 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10802 s,@LN@,$LN,;t t
10803 s,@LN_S@,$LN_S,;t t
10804 s,@TOPLEVEL_CONFIGURE_ARGUMENTS@,$TOPLEVEL_CONFIGURE_ARGUMENTS,;t t
10805 s,@build_libsubdir@,$build_libsubdir,;t t
10806 s,@build_subdir@,$build_subdir,;t t
10807 s,@host_subdir@,$host_subdir,;t t
10808 s,@target_subdir@,$target_subdir,;t t
10809 s,@CC@,$CC,;t t
10810 s,@CFLAGS@,$CFLAGS,;t t
10811 s,@LDFLAGS@,$LDFLAGS,;t t
10812 s,@CPPFLAGS@,$CPPFLAGS,;t t
10813 s,@ac_ct_CC@,$ac_ct_CC,;t t
10814 s,@EXEEXT@,$EXEEXT,;t t
10815 s,@OBJEXT@,$OBJEXT,;t t
10816 s,@CXX@,$CXX,;t t
10817 s,@CXXFLAGS@,$CXXFLAGS,;t t
10818 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10819 s,@GNATBIND@,$GNATBIND,;t t
10820 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
10821 s,@GNATMAKE@,$GNATMAKE,;t t
10822 s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
10823 s,@do_compare@,$do_compare,;t t
10824 s,@gmplibs@,$gmplibs,;t t
10825 s,@gmpinc@,$gmpinc,;t t
10826 s,@stage1_languages@,$stage1_languages,;t t
10827 s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
10828 s,@RPATH_ENVVAR@,$RPATH_ENVVAR,;t t
10829 s,@tooldir@,$tooldir,;t t
10830 s,@build_tooldir@,$build_tooldir,;t t
10831 s,@CONFIGURE_GDB_TK@,$CONFIGURE_GDB_TK,;t t
10832 s,@GDB_TK@,$GDB_TK,;t t
10833 s,@INSTALL_GDB_TK@,$INSTALL_GDB_TK,;t t
10834 s,@build_configargs@,$build_configargs,;t t
10835 s,@build_configdirs@,$build_configdirs,;t t
10836 s,@host_configargs@,$host_configargs,;t t
10837 s,@configdirs@,$configdirs,;t t
10838 s,@target_configargs@,$target_configargs,;t t
10839 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10840 s,@config_shell@,$config_shell,;t t
10841 s,@YACC@,$YACC,;t t
10842 s,@BISON@,$BISON,;t t
10843 s,@M4@,$M4,;t t
10844 s,@LEX@,$LEX,;t t
10845 s,@FLEX@,$FLEX,;t t
10846 s,@MAKEINFO@,$MAKEINFO,;t t
10847 s,@EXPECT@,$EXPECT,;t t
10848 s,@RUNTEST@,$RUNTEST,;t t
10849 s,@AR@,$AR,;t t
10850 s,@AS@,$AS,;t t
10851 s,@DLLTOOL@,$DLLTOOL,;t t
10852 s,@LD@,$LD,;t t
10853 s,@LIPO@,$LIPO,;t t
10854 s,@NM@,$NM,;t t
10855 s,@RANLIB@,$RANLIB,;t t
10856 s,@STRIP@,$STRIP,;t t
10857 s,@WINDRES@,$WINDRES,;t t
10858 s,@OBJCOPY@,$OBJCOPY,;t t
10859 s,@OBJDUMP@,$OBJDUMP,;t t
10860 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
10861 s,@CC_FOR_TARGET@,$CC_FOR_TARGET,;t t
10862 s,@CXX_FOR_TARGET@,$CXX_FOR_TARGET,;t t
10863 s,@GCC_FOR_TARGET@,$GCC_FOR_TARGET,;t t
10864 s,@GCJ_FOR_TARGET@,$GCJ_FOR_TARGET,;t t
10865 s,@GFORTRAN_FOR_TARGET@,$GFORTRAN_FOR_TARGET,;t t
10866 s,@AR_FOR_TARGET@,$AR_FOR_TARGET,;t t
10867 s,@AS_FOR_TARGET@,$AS_FOR_TARGET,;t t
10868 s,@DLLTOOL_FOR_TARGET@,$DLLTOOL_FOR_TARGET,;t t
10869 s,@LD_FOR_TARGET@,$LD_FOR_TARGET,;t t
10870 s,@LIPO_FOR_TARGET@,$LIPO_FOR_TARGET,;t t
10871 s,@NM_FOR_TARGET@,$NM_FOR_TARGET,;t t
10872 s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
10873 s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
10874 s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
10875 s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
10876 s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
10877 s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
10878 s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t
10879 s,@COMPILER_LD_FOR_TARGET@,$COMPILER_LD_FOR_TARGET,;t t
10880 s,@COMPILER_NM_FOR_TARGET@,$COMPILER_NM_FOR_TARGET,;t t
10881 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10882 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10883 s,@MAINT@,$MAINT,;t t
10884 s,@stage1_cflags@,$stage1_cflags,;t t
10885 s,@stage1_checking@,$stage1_checking,;t t
10886 s,@stage2_werror_flag@,$stage2_werror_flag,;t t
10887 s,@datarootdir@,$datarootdir,;t t
10888 s,@docdir@,$docdir,;t t
10889 s,@htmldir@,$htmldir,;t t
10890 s,@LIBOBJS@,$LIBOBJS,;t t
10891 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10892 /@serialization_dependencies@/r $serialization_dependencies
10893 s,@serialization_dependencies@,,;t t
10894 /@host_makefile_frag@/r $host_makefile_frag
10895 s,@host_makefile_frag@,,;t t
10896 /@target_makefile_frag@/r $target_makefile_frag
10897 s,@target_makefile_frag@,,;t t
10898 /@alphaieee_frag@/r $alphaieee_frag
10899 s,@alphaieee_frag@,,;t t
10900 /@ospace_frag@/r $ospace_frag
10901 s,@ospace_frag@,,;t t
10902 CEOF
10904 _ACEOF
10906 cat >>$CONFIG_STATUS <<\_ACEOF
10907 # Split the substitutions into bite-sized pieces for seds with
10908 # small command number limits, like on Digital OSF/1 and HP-UX.
10909 ac_max_sed_lines=48
10910 ac_sed_frag=1 # Number of current file.
10911 ac_beg=1 # First line for current file.
10912 ac_end=$ac_max_sed_lines # Line after last line for current file.
10913 ac_more_lines=:
10914 ac_sed_cmds=
10915 while $ac_more_lines; do
10916 if test $ac_beg -gt 1; then
10917 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10918 else
10919 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10921 if test ! -s $tmp/subs.frag; then
10922 ac_more_lines=false
10923 else
10924 # The purpose of the label and of the branching condition is to
10925 # speed up the sed processing (if there are no `@' at all, there
10926 # is no need to browse any of the substitutions).
10927 # These are the two extra sed commands mentioned above.
10928 (echo ':t
10929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10930 if test -z "$ac_sed_cmds"; then
10931 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10932 else
10933 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10935 ac_sed_frag=`expr $ac_sed_frag + 1`
10936 ac_beg=$ac_end
10937 ac_end=`expr $ac_end + $ac_max_sed_lines`
10939 done
10940 if test -z "$ac_sed_cmds"; then
10941 ac_sed_cmds=cat
10943 fi # test -n "$CONFIG_FILES"
10945 _ACEOF
10946 cat >>$CONFIG_STATUS <<\_ACEOF
10947 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10949 case $ac_file in
10950 - | *:- | *:-:* ) # input from stdin
10951 cat >$tmp/stdin
10952 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10954 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10956 * ) ac_file_in=$ac_file.in ;;
10957 esac
10959 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10960 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10962 X"$ac_file" : 'X\(//\)[^/]' \| \
10963 X"$ac_file" : 'X\(//\)$' \| \
10964 X"$ac_file" : 'X\(/\)' \| \
10965 . : '\(.\)' 2>/dev/null ||
10966 echo X"$ac_file" |
10967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10969 /^X\(\/\/\)$/{ s//\1/; q; }
10970 /^X\(\/\).*/{ s//\1/; q; }
10971 s/.*/./; q'`
10972 { if $as_mkdir_p; then
10973 mkdir -p "$ac_dir"
10974 else
10975 as_dir="$ac_dir"
10976 as_dirs=
10977 while test ! -d "$as_dir"; do
10978 as_dirs="$as_dir $as_dirs"
10979 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10981 X"$as_dir" : 'X\(//\)[^/]' \| \
10982 X"$as_dir" : 'X\(//\)$' \| \
10983 X"$as_dir" : 'X\(/\)' \| \
10984 . : '\(.\)' 2>/dev/null ||
10985 echo X"$as_dir" |
10986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10988 /^X\(\/\/\)$/{ s//\1/; q; }
10989 /^X\(\/\).*/{ s//\1/; q; }
10990 s/.*/./; q'`
10991 done
10992 test ! -n "$as_dirs" || mkdir $as_dirs
10993 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10995 { (exit 1); exit 1; }; }; }
10997 ac_builddir=.
10999 if test "$ac_dir" != .; then
11000 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11001 # A "../" for each directory in $ac_dir_suffix.
11002 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11003 else
11004 ac_dir_suffix= ac_top_builddir=
11007 case $srcdir in
11008 .) # No --srcdir option. We are building in place.
11009 ac_srcdir=.
11010 if test -z "$ac_top_builddir"; then
11011 ac_top_srcdir=.
11012 else
11013 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11014 fi ;;
11015 [\\/]* | ?:[\\/]* ) # Absolute path.
11016 ac_srcdir=$srcdir$ac_dir_suffix;
11017 ac_top_srcdir=$srcdir ;;
11018 *) # Relative path.
11019 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11020 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11021 esac
11023 # Do not use `cd foo && pwd` to compute absolute paths, because
11024 # the directories may not exist.
11025 case `pwd` in
11026 .) ac_abs_builddir="$ac_dir";;
11028 case "$ac_dir" in
11029 .) ac_abs_builddir=`pwd`;;
11030 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11031 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11032 esac;;
11033 esac
11034 case $ac_abs_builddir in
11035 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11037 case ${ac_top_builddir}. in
11038 .) ac_abs_top_builddir=$ac_abs_builddir;;
11039 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11040 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11041 esac;;
11042 esac
11043 case $ac_abs_builddir in
11044 .) ac_abs_srcdir=$ac_srcdir;;
11046 case $ac_srcdir in
11047 .) ac_abs_srcdir=$ac_abs_builddir;;
11048 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11049 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11050 esac;;
11051 esac
11052 case $ac_abs_builddir in
11053 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11055 case $ac_top_srcdir in
11056 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11057 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11058 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11059 esac;;
11060 esac
11063 case $INSTALL in
11064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11065 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11066 esac
11068 if test x"$ac_file" != x-; then
11069 { echo "$as_me:$LINENO: creating $ac_file" >&5
11070 echo "$as_me: creating $ac_file" >&6;}
11071 rm -f "$ac_file"
11073 # Let's still pretend it is `configure' which instantiates (i.e., don't
11074 # use $as_me), people would be surprised to read:
11075 # /* config.h. Generated by config.status. */
11076 if test x"$ac_file" = x-; then
11077 configure_input=
11078 else
11079 configure_input="$ac_file. "
11081 configure_input=$configure_input"Generated from `echo $ac_file_in |
11082 sed 's,.*/,,'` by configure."
11084 # First look for the input files in the build tree, otherwise in the
11085 # src tree.
11086 ac_file_inputs=`IFS=:
11087 for f in $ac_file_in; do
11088 case $f in
11089 -) echo $tmp/stdin ;;
11090 [\\/$]*)
11091 # Absolute (can't be DOS-style, as IFS=:)
11092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11093 echo "$as_me: error: cannot find input file: $f" >&2;}
11094 { (exit 1); exit 1; }; }
11095 echo "$f";;
11096 *) # Relative
11097 if test -f "$f"; then
11098 # Build tree
11099 echo "$f"
11100 elif test -f "$srcdir/$f"; then
11101 # Source tree
11102 echo "$srcdir/$f"
11103 else
11104 # /dev/null tree
11105 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11106 echo "$as_me: error: cannot find input file: $f" >&2;}
11107 { (exit 1); exit 1; }; }
11108 fi;;
11109 esac
11110 done` || { (exit 1); exit 1; }
11111 _ACEOF
11112 cat >>$CONFIG_STATUS <<_ACEOF
11113 sed "$ac_vpsub
11114 $extrasub
11115 _ACEOF
11116 cat >>$CONFIG_STATUS <<\_ACEOF
11118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11119 s,@configure_input@,$configure_input,;t t
11120 s,@srcdir@,$ac_srcdir,;t t
11121 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11122 s,@top_srcdir@,$ac_top_srcdir,;t t
11123 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11124 s,@builddir@,$ac_builddir,;t t
11125 s,@abs_builddir@,$ac_abs_builddir,;t t
11126 s,@top_builddir@,$ac_top_builddir,;t t
11127 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11128 s,@INSTALL@,$ac_INSTALL,;t t
11129 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11130 rm -f $tmp/stdin
11131 if test x"$ac_file" != x-; then
11132 mv $tmp/out $ac_file
11133 else
11134 cat $tmp/out
11135 rm -f $tmp/out
11138 done
11139 _ACEOF
11141 cat >>$CONFIG_STATUS <<\_ACEOF
11143 { (exit 0); exit 0; }
11144 _ACEOF
11145 chmod +x $CONFIG_STATUS
11146 ac_clean_files=$ac_clean_files_save
11149 # configure is writing to config.log, and then calls config.status.
11150 # config.status does its own redirection, appending to config.log.
11151 # Unfortunately, on DOS this fails, as config.log is still kept open
11152 # by configure, so config.status won't be able to write to it; its
11153 # output is simply discarded. So we exec the FD to /dev/null,
11154 # effectively closing config.log, so it can be properly (re)opened and
11155 # appended to by config.status. When coming back to configure, we
11156 # need to make the FD available again.
11157 if test "$no_create" != yes; then
11158 ac_cs_success=:
11159 ac_config_status_args=
11160 test "$silent" = yes &&
11161 ac_config_status_args="$ac_config_status_args --quiet"
11162 exec 5>/dev/null
11163 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11164 exec 5>>config.log
11165 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11166 # would make configure fail if this is the last instruction.
11167 $ac_cs_success || { (exit 1); exit 1; }