Different configure and make flags for target vs. accelerator GCC.
[official-gcc.git] / configure
blob0f99679f0f63c17f604e0788391143fefd9daa75
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 clooginc
648 clooglibs
649 islinc
650 poststage1_ldflags
651 poststage1_libs
652 stage1_ldflags
653 stage1_libs
654 extra_isl_gmp_configure_flags
655 extra_mpc_mpfr_configure_flags
656 extra_mpc_gmp_configure_flags
657 extra_mpfr_configure_flags
658 gmpinc
659 gmplibs
660 do_compare
661 GNATMAKE
662 GNATBIND
663 ac_ct_CXX
664 CXXFLAGS
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
673 EXTRA_CONFIGARGS_LIBJAVA
674 extra_accelerator_gcc_configure_flags
675 extra_target_gcc_configure_flags
676 accel_target_os
677 accel_target_vendor
678 accel_target_cpu
679 accel_target_alias
680 accel_target
681 accel_target_noncanonical
682 target_subdir
683 host_subdir
684 build_subdir
685 build_libsubdir
688 LN_S
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_os
694 target_vendor
695 target_cpu
696 target
697 host_os
698 host_vendor
699 host_cpu
700 host
701 target_noncanonical
702 host_noncanonical
703 build_noncanonical
704 build_os
705 build_vendor
706 build_cpu
707 build
708 TOPLEVEL_CONFIGURE_ARGUMENTS
709 target_alias
710 host_alias
711 build_alias
712 LIBS
713 ECHO_T
714 ECHO_N
715 ECHO_C
716 DEFS
717 mandir
718 localedir
719 libdir
720 psdir
721 pdfdir
722 dvidir
723 htmldir
724 infodir
725 docdir
726 oldincludedir
727 includedir
728 localstatedir
729 sharedstatedir
730 sysconfdir
731 datadir
732 datarootdir
733 libexecdir
734 sbindir
735 bindir
736 program_transform_name
737 prefix
738 exec_prefix
739 PACKAGE_URL
740 PACKAGE_BUGREPORT
741 PACKAGE_STRING
742 PACKAGE_VERSION
743 PACKAGE_TARNAME
744 PACKAGE_NAME
745 PATH_SEPARATOR
746 SHELL'
747 ac_subst_files='serialization_dependencies
748 host_makefile_frag
749 target_makefile_frag
750 alphaieee_frag
751 ospace_frag'
752 ac_user_opts='
753 enable_option_checking
754 with_build_libsubdir
755 enable_accelerator
756 enable_target_gcc_configure_flags
757 enable_accelerator_gcc_configure_flags
758 enable_gold
759 enable_ld
760 enable_libquadmath
761 enable_libquadmath_support
762 enable_libada
763 enable_libssp
764 enable_libstdcxx
765 enable_static_libjava
766 enable_bootstrap
767 with_mpc
768 with_mpc_include
769 with_mpc_lib
770 with_mpfr_dir
771 with_mpfr
772 with_mpfr_include
773 with_mpfr_lib
774 with_gmp_dir
775 with_gmp
776 with_gmp_include
777 with_gmp_lib
778 with_host_libstdcxx
779 with_stage1_libs
780 with_stage1_ldflags
781 with_boot_libs
782 with_boot_ldflags
783 with_cloog
784 with_isl
785 with_isl_include
786 with_isl_lib
787 enable_isl_version_check
788 with_cloog_include
789 with_cloog_lib
790 enable_cloog_version_check
791 enable_lto
792 enable_stage1_languages
793 enable_objc_gc
794 with_build_sysroot
795 with_debug_prefix_map
796 with_build_config
797 enable_vtable_verify
798 enable_serial_configure
799 with_build_time_tools
800 enable_maintainer_mode
801 enable_stage1_checking
802 enable_werror
803 enable_host_shared
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
814 CXXFLAGS
816 build_configargs
817 host_configargs
818 target_configargs
821 DLLTOOL
823 LIPO
825 RANLIB
826 STRIP
827 WINDRES
828 WINDMC
829 OBJCOPY
830 OBJDUMP
831 READELF
832 CC_FOR_TARGET
833 CXX_FOR_TARGET
834 GCC_FOR_TARGET
835 GCJ_FOR_TARGET
836 GFORTRAN_FOR_TARGET
837 GOC_FOR_TARGET
838 AR_FOR_TARGET
839 AS_FOR_TARGET
840 DLLTOOL_FOR_TARGET
841 LD_FOR_TARGET
842 LIPO_FOR_TARGET
843 NM_FOR_TARGET
844 OBJDUMP_FOR_TARGET
845 RANLIB_FOR_TARGET
846 READELF_FOR_TARGET
847 STRIP_FOR_TARGET
848 WINDRES_FOR_TARGET
849 WINDMC_FOR_TARGET'
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
900 ac_prev=
901 ac_dashdash=
902 for ac_option
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
911 case $ac_option in
912 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *) ac_optarg=yes ;;
914 esac
916 # Accept the important Cygnus configure options, so we can diagnose typos.
918 case $ac_dashdash$ac_option in
920 ac_dashdash=yes ;;
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
939 --config-cache | -C)
940 cache_file=config.cache ;;
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1140 ac_prev=sbindir ;;
1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1142 | --sbi=* | --sb=*)
1143 sbindir=$ac_optarg ;;
1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1147 | --sharedst | --shareds | --shared | --share | --shar \
1148 | --sha | --sh)
1149 ac_prev=sharedstatedir ;;
1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1153 | --sha=* | --sh=*)
1154 sharedstatedir=$ac_optarg ;;
1156 -site | --site | --sit)
1157 ac_prev=site ;;
1158 -site=* | --site=* | --sit=*)
1159 site=$ac_optarg ;;
1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1162 ac_prev=srcdir ;;
1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1164 srcdir=$ac_optarg ;;
1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1167 | --syscon | --sysco | --sysc | --sys | --sy)
1168 ac_prev=sysconfdir ;;
1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1171 sysconfdir=$ac_optarg ;;
1173 -target | --target | --targe | --targ | --tar | --ta | --t)
1174 ac_prev=target_alias ;;
1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1176 target_alias=$ac_optarg ;;
1178 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 verbose=yes ;;
1181 -version | --version | --versio | --versi | --vers | -V)
1182 ac_init_version=: ;;
1184 -with-* | --with-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=\$ac_optarg ;;
1200 -without-* | --without-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1234 -*) as_fn_error "unrecognized option: \`$ac_option'
1235 Try \`$0 --help' for more information."
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 case $ac_envvar in #(
1242 '' | [0-9]* | *[!_$as_cr_alnum]* )
1243 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1244 esac
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1256 esac
1257 done
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 as_fn_error "missing argument to $ac_option"
1264 if test -n "$ac_unrecognized_opts"; then
1265 case $enable_option_checking in
1266 no) ;;
1267 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1272 # Check all directory arguments for consistency.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1291 done
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1296 build=$build_alias
1297 host=$host_alias
1298 target=$target_alias
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1311 ac_tool_prefix=
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error "pwd does not report name of working directory"
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1343 /^X\(\/\/\)$/{
1344 s//\1/
1347 /^X\(\/\).*/{
1348 s//\1/
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1356 else
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 ac_abs_confdir=`(
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 case $srcdir in
1378 *" "*)
1379 as_fn_error "path to source, $srcdir, contains spaces"
1381 esac
1382 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures this package to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1453 cat <<\_ACEOF
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 --target=TARGET configure for building compilers for TARGET [HOST]
1464 _ACEOF
1467 if test -n "$ac_init_help"; then
1469 cat <<\_ACEOF
1471 Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-accelerator[=ARG]
1476 build accelerator
1477 [ARG={no,auto-device-triplet,device-triplet}]
1478 --enable-target-gcc-configure-flags=FLAGS
1479 additional flags for configuring the target GCC
1480 [none]
1481 --enable-accelerator-gcc-configure-flags=FLAGS
1482 additional flags for configuring the accelerator GCC
1483 [none]
1484 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1485 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1486 --disable-libquadmath do not build libquadmath directory
1487 --disable-libquadmath-support
1488 disable libquadmath support for Fortran
1489 --enable-libada build libada directory
1490 --enable-libssp build libssp directory
1491 --disable-libstdcxx do not build libstdc++-v3 directory
1492 --enable-static-libjava[=ARG]
1493 build static libjava [default=no]
1494 --enable-bootstrap enable bootstrapping [yes if native build]
1495 --disable-isl-version-check
1496 disable check for ISL version
1497 --disable-cloog-version-check
1498 disable check for CLooG version
1499 --enable-lto enable link time optimization support
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
1505 --enable-vtable-verify Enable vtable verification feature
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-mpc=PATH specify prefix directory for installed MPC package.
1524 Equivalent to --with-mpc-include=PATH/include plus
1525 --with-mpc-lib=PATH/lib
1526 --with-mpc-include=PATH specify directory for installed MPC include files
1527 --with-mpc-lib=PATH specify directory for the installed MPC library
1528 --with-mpfr-dir=PATH this option has been REMOVED
1529 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1530 Equivalent to --with-mpfr-include=PATH/include plus
1531 --with-mpfr-lib=PATH/lib
1532 --with-mpfr-include=PATH
1533 specify directory for installed MPFR include files
1534 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1535 --with-gmp-dir=PATH this option has been REMOVED
1536 --with-gmp=PATH specify prefix directory for the installed GMP
1537 package. Equivalent to
1538 --with-gmp-include=PATH/include plus
1539 --with-gmp-lib=PATH/lib
1540 --with-gmp-include=PATH specify directory for installed GMP include files
1541 --with-gmp-lib=PATH specify directory for the installed GMP library
1542 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1543 linking with PPL
1544 --with-stage1-libs=LIBS libraries for stage1
1545 --with-stage1-ldflags=FLAGS
1546 linker flags for stage1
1547 --with-boot-libs=LIBS libraries for stage2 and later
1548 --with-boot-ldflags=FLAGS
1549 linker flags for stage2 and later
1550 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1551 package. Equivalent to
1552 --with-cloog-include=PATH/include plus
1553 --with-cloog-lib=PATH/lib
1554 --with-isl=PATH Specify prefix directory for the installed ISL
1555 package. Equivalent to
1556 --with-isl-include=PATH/include plus
1557 --with-isl-lib=PATH/lib
1558 --with-isl-include=PATH Specify directory for installed ISL include files
1559 --with-isl-lib=PATH Specify the directory for the installed ISL library
1560 --with-cloog-include=PATH
1561 Specify directory for installed CLooG include files
1562 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1563 library
1564 --with-build-sysroot=SYSROOT
1565 use sysroot as the system root during the build
1566 --with-debug-prefix-map='A=B C=D ...'
1567 map A to B, C to D ... in debug information
1568 --with-build-config='NAME NAME2...'
1569 use config/NAME.mk build configuration
1570 --with-build-time-tools=PATH
1571 use given path to find target tools during the build
1573 Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1581 CXX C++ compiler command
1582 CXXFLAGS C++ compiler flags
1583 build_configargs
1584 additional configure arguments for build directories
1585 host_configargs
1586 additional configure arguments for host directories
1587 target_configargs
1588 additional configure arguments for target directories
1589 AR AR for the host
1590 AS AS for the host
1591 DLLTOOL DLLTOOL for the host
1592 LD LD for the host
1593 LIPO LIPO for the host
1594 NM NM for the host
1595 RANLIB RANLIB for the host
1596 STRIP STRIP for the host
1597 WINDRES WINDRES for the host
1598 WINDMC WINDMC for the host
1599 OBJCOPY OBJCOPY for the host
1600 OBJDUMP OBJDUMP for the host
1601 READELF READELF for the host
1602 CC_FOR_TARGET
1603 CC for the target
1604 CXX_FOR_TARGET
1605 CXX for the target
1606 GCC_FOR_TARGET
1607 GCC for the target
1608 GCJ_FOR_TARGET
1609 GCJ for the target
1610 GFORTRAN_FOR_TARGET
1611 GFORTRAN for the target
1612 GOC_FOR_TARGET
1613 GOC for the target
1614 AR_FOR_TARGET
1615 AR for the target
1616 AS_FOR_TARGET
1617 AS for the target
1618 DLLTOOL_FOR_TARGET
1619 DLLTOOL for the target
1620 LD_FOR_TARGET
1621 LD for the target
1622 LIPO_FOR_TARGET
1623 LIPO for the target
1624 NM_FOR_TARGET
1625 NM for the target
1626 OBJDUMP_FOR_TARGET
1627 OBJDUMP for the target
1628 RANLIB_FOR_TARGET
1629 RANLIB for the target
1630 READELF_FOR_TARGET
1631 READELF for the target
1632 STRIP_FOR_TARGET
1633 STRIP for the target
1634 WINDRES_FOR_TARGET
1635 WINDRES for the target
1636 WINDMC_FOR_TARGET
1637 WINDMC for the target
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1642 Report bugs to the package provider.
1643 _ACEOF
1644 ac_status=$?
1647 if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650 test -d "$ac_dir" ||
1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1652 continue
1653 ac_builddir=.
1655 case "$ac_dir" in
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1659 # A ".." for each directory in $ac_dir_suffix.
1660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661 case $ac_top_builddir_sub in
1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664 esac ;;
1665 esac
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1671 case $srcdir in
1672 .) # We are building in place.
1673 ac_srcdir=.
1674 ac_top_srcdir=$ac_top_builddir_sub
1675 ac_abs_top_srcdir=$ac_pwd ;;
1676 [\\/]* | ?:[\\/]* ) # Absolute name.
1677 ac_srcdir=$srcdir$ac_dir_suffix;
1678 ac_top_srcdir=$srcdir
1679 ac_abs_top_srcdir=$srcdir ;;
1680 *) # Relative name.
1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682 ac_top_srcdir=$ac_top_build_prefix$srcdir
1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 esac
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687 cd "$ac_dir" || { ac_status=$?; continue; }
1688 # Check for guested configure.
1689 if test -f "$ac_srcdir/configure.gnu"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692 elif test -f "$ac_srcdir/configure"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure" --help=recursive
1695 else
1696 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 fi || ac_status=$?
1698 cd "$ac_pwd" || { ac_status=$?; break; }
1699 done
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1704 cat <<\_ACEOF
1705 configure
1706 generated by GNU Autoconf 2.64
1708 Copyright (C) 2009 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1711 _ACEOF
1712 exit
1715 ## ------------------------ ##
1716 ## Autoconf initialization. ##
1717 ## ------------------------ ##
1719 # ac_fn_c_try_compile LINENO
1720 # --------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_compile ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext
1726 if { { ac_try="$ac_compile"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_compile") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest.$ac_objext; then :
1745 ac_retval=0
1746 else
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=1
1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753 return $ac_retval
1755 } # ac_fn_c_try_compile
1757 # ac_fn_cxx_try_compile LINENO
1758 # ----------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_cxx_try_compile ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext
1764 if { { ac_try="$ac_compile"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_cxx_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1783 ac_retval=0
1784 else
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1788 ac_retval=1
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 return $ac_retval
1793 } # ac_fn_cxx_try_compile
1795 # ac_fn_cxx_try_link LINENO
1796 # -------------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_link ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext conftest$ac_exeext
1802 if { { ac_try="$ac_link"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_link") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest$ac_exeext && {
1821 test "$cross_compiling" = yes ||
1822 $as_test_x conftest$ac_exeext
1823 }; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 ac_retval=1
1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833 # interfere with the next link command; also delete a directory that is
1834 # left behind by Apple's compiler. We do this before executing the actions.
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837 return $ac_retval
1839 } # ac_fn_cxx_try_link
1841 # ac_fn_c_try_link LINENO
1842 # -----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_link ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1849 case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1856 ac_status=$?
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 $as_test_x conftest$ac_exeext
1869 }; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=1
1877 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1878 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1879 # interfere with the next link command; also delete a directory that is
1880 # left behind by Apple's compiler. We do this before executing the actions.
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1885 } # ac_fn_c_try_link
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890 # that executables *can* be run.
1891 ac_fn_c_try_run ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }; then :
1915 ac_retval=0
1916 else
1917 $as_echo "$as_me: program exited with status $ac_status" >&5
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=$ac_status
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 return $ac_retval
1927 } # ac_fn_c_try_run
1928 cat >config.log <<_ACEOF
1929 This file contains any messages produced by compilers while
1930 running configure, to aid debugging if configure makes a mistake.
1932 It was created by $as_me, which was
1933 generated by GNU Autoconf 2.64. Invocation command line was
1935 $ $0 $@
1937 _ACEOF
1938 exec 5>>config.log
1940 cat <<_ASUNAME
1941 ## --------- ##
1942 ## Platform. ##
1943 ## --------- ##
1945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1952 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1954 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1955 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1957 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1958 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1959 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1960 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1962 _ASUNAME
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 $as_echo "PATH: $as_dir"
1970 done
1971 IFS=$as_save_IFS
1973 } >&5
1975 cat >&5 <<_ACEOF
1978 ## ----------- ##
1979 ## Core tests. ##
1980 ## ----------- ##
1982 _ACEOF
1985 # Keep a trace of the command line.
1986 # Strip out --no-create and --no-recursion so they do not pile up.
1987 # Strip out --silent because we don't want to record it for future runs.
1988 # Also quote any args containing shell meta-characters.
1989 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_configure_args=
1991 ac_configure_args0=
1992 ac_configure_args1=
1993 ac_must_keep_next=false
1994 for ac_pass in 1 2
1996 for ac_arg
1998 case $ac_arg in
1999 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001 | -silent | --silent | --silen | --sile | --sil)
2002 continue ;;
2003 *\'*)
2004 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2005 esac
2006 case $ac_pass in
2007 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2009 as_fn_append ac_configure_args1 " '$ac_arg'"
2010 if test $ac_must_keep_next = true; then
2011 ac_must_keep_next=false # Got value, back to normal.
2012 else
2013 case $ac_arg in
2014 *=* | --config-cache | -C | -disable-* | --disable-* \
2015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017 | -with-* | --with-* | -without-* | --without-* | --x)
2018 case "$ac_configure_args0 " in
2019 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2020 esac
2022 -* ) ac_must_keep_next=true ;;
2023 esac
2025 as_fn_append ac_configure_args " '$ac_arg'"
2027 esac
2028 done
2029 done
2030 { ac_configure_args0=; unset ac_configure_args0;}
2031 { ac_configure_args1=; unset ac_configure_args1;}
2033 # When interrupted or exit'd, cleanup temporary files, and complete
2034 # config.log. We remove comments because anyway the quotes in there
2035 # would cause problems or look ugly.
2036 # WARNING: Use '\'' to represent an apostrophe within the trap.
2037 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038 trap 'exit_status=$?
2039 # Save into config.log some information that might help in debugging.
2041 echo
2043 cat <<\_ASBOX
2044 ## ---------------- ##
2045 ## Cache variables. ##
2046 ## ---------------- ##
2047 _ASBOX
2048 echo
2049 # The following way of writing the cache mishandles newlines in values,
2051 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2052 eval ac_val=\$$ac_var
2053 case $ac_val in #(
2054 *${as_nl}*)
2055 case $ac_var in #(
2056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2057 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2058 esac
2059 case $ac_var in #(
2060 _ | IFS | as_nl) ;; #(
2061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2062 *) { eval $ac_var=; unset $ac_var;} ;;
2063 esac ;;
2064 esac
2065 done
2066 (set) 2>&1 |
2067 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2068 *${as_nl}ac_space=\ *)
2069 sed -n \
2070 "s/'\''/'\''\\\\'\'''\''/g;
2071 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2072 ;; #(
2074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2076 esac |
2077 sort
2079 echo
2081 cat <<\_ASBOX
2082 ## ----------------- ##
2083 ## Output variables. ##
2084 ## ----------------- ##
2085 _ASBOX
2086 echo
2087 for ac_var in $ac_subst_vars
2089 eval ac_val=\$$ac_var
2090 case $ac_val in
2091 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2092 esac
2093 $as_echo "$ac_var='\''$ac_val'\''"
2094 done | sort
2095 echo
2097 if test -n "$ac_subst_files"; then
2098 cat <<\_ASBOX
2099 ## ------------------- ##
2100 ## File substitutions. ##
2101 ## ------------------- ##
2102 _ASBOX
2103 echo
2104 for ac_var in $ac_subst_files
2106 eval ac_val=\$$ac_var
2107 case $ac_val in
2108 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109 esac
2110 $as_echo "$ac_var='\''$ac_val'\''"
2111 done | sort
2112 echo
2115 if test -s confdefs.h; then
2116 cat <<\_ASBOX
2117 ## ----------- ##
2118 ## confdefs.h. ##
2119 ## ----------- ##
2120 _ASBOX
2121 echo
2122 cat confdefs.h
2123 echo
2125 test "$ac_signal" != 0 &&
2126 $as_echo "$as_me: caught signal $ac_signal"
2127 $as_echo "$as_me: exit $exit_status"
2128 } >&5
2129 rm -f core *.core core.conftest.* &&
2130 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2131 exit $exit_status
2133 for ac_signal in 1 2 13 15; do
2134 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2135 done
2136 ac_signal=0
2138 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2139 rm -f -r conftest* confdefs.h
2141 $as_echo "/* confdefs.h */" > confdefs.h
2143 # Predefined preprocessor variables.
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_NAME "$PACKAGE_NAME"
2147 _ACEOF
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2151 _ACEOF
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2155 _ACEOF
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_STRING "$PACKAGE_STRING"
2159 _ACEOF
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2163 _ACEOF
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_URL "$PACKAGE_URL"
2167 _ACEOF
2170 # Let the site file select an alternate cache file if it wants to.
2171 # Prefer an explicitly selected file to automatically selected ones.
2172 ac_site_file1=NONE
2173 ac_site_file2=NONE
2174 if test -n "$CONFIG_SITE"; then
2175 ac_site_file1=$CONFIG_SITE
2176 elif test "x$prefix" != xNONE; then
2177 ac_site_file1=$prefix/share/config.site
2178 ac_site_file2=$prefix/etc/config.site
2179 else
2180 ac_site_file1=$ac_default_prefix/share/config.site
2181 ac_site_file2=$ac_default_prefix/etc/config.site
2183 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2185 test "x$ac_site_file" = xNONE && continue
2186 if test -r "$ac_site_file"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2188 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2189 sed 's/^/| /' "$ac_site_file" >&5
2190 . "$ac_site_file"
2192 done
2194 if test -r "$cache_file"; then
2195 # Some versions of bash will fail to source /dev/null (special
2196 # files actually), so we avoid doing that.
2197 if test -f "$cache_file"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199 $as_echo "$as_me: loading cache $cache_file" >&6;}
2200 case $cache_file in
2201 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202 *) . "./$cache_file";;
2203 esac
2205 else
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207 $as_echo "$as_me: creating cache $cache_file" >&6;}
2208 >$cache_file
2211 # Check that the precious variables saved in the cache have kept the same
2212 # value.
2213 ac_cache_corrupted=false
2214 for ac_var in $ac_precious_vars; do
2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216 eval ac_new_set=\$ac_env_${ac_var}_set
2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218 eval ac_new_val=\$ac_env_${ac_var}_value
2219 case $ac_old_set,$ac_new_set in
2220 set,)
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2224 ,set)
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227 ac_cache_corrupted=: ;;
2228 ,);;
2230 if test "x$ac_old_val" != "x$ac_new_val"; then
2231 # differences in whitespace do not lead to failure.
2232 ac_old_val_w=`echo x $ac_old_val`
2233 ac_new_val_w=`echo x $ac_new_val`
2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237 ac_cache_corrupted=:
2238 else
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241 eval $ac_var=\$ac_old_val
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2244 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2246 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2247 fi;;
2248 esac
2249 # Pass precious variables to config.status.
2250 if test "$ac_new_set" = set; then
2251 case $ac_new_val in
2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 *) ac_arg=$ac_var=$ac_new_val ;;
2254 esac
2255 case " $ac_configure_args " in
2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258 esac
2260 done
2261 if $ac_cache_corrupted; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2268 ## -------------------- ##
2269 ## Main body of script. ##
2270 ## -------------------- ##
2272 ac_ext=c
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286 progname=$0
2287 # if PWD already has a value, it is probably wrong.
2288 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2290 # Export original configure arguments for use by sub-configures.
2291 # Quote arguments with shell meta charatcers.
2292 TOPLEVEL_CONFIGURE_ARGUMENTS=
2293 set -- "$progname" "$@"
2294 for ac_arg
2296 case "$ac_arg" in
2297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2298 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2299 # if the argument is of the form -foo=baz, quote the baz part only
2300 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2301 *) ;;
2302 esac
2303 # Add the quoted argument to the list.
2304 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2305 done
2306 if test "$silent" = yes; then
2307 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2309 # Remove the initial space we just introduced and, as these will be
2310 # expanded by make, quote '$'.
2311 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2314 # Find the build, host, and target systems.
2315 ac_aux_dir=
2316 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2317 for ac_t in install-sh install.sh shtool; do
2318 if test -f "$ac_dir/$ac_t"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/$ac_t -c"
2321 break 2
2323 done
2324 done
2325 if test -z "$ac_aux_dir"; then
2326 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2329 # These three variables are undocumented and unsupported,
2330 # and are intended to be withdrawn in a future Autoconf release.
2331 # They can cause serious problems if a builder's source tree is in a directory
2332 # whose full name contains unusual characters.
2333 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2334 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2335 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338 # Make sure we can run config.sub.
2339 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2340 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2343 $as_echo_n "checking build system type... " >&6; }
2344 if test "${ac_cv_build+set}" = set; then :
2345 $as_echo_n "(cached) " >&6
2346 else
2347 ac_build_alias=$build_alias
2348 test "x$ac_build_alias" = x &&
2349 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2350 test "x$ac_build_alias" = x &&
2351 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2352 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2353 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2357 $as_echo "$ac_cv_build" >&6; }
2358 case $ac_cv_build in
2359 *-*-*) ;;
2360 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2361 esac
2362 build=$ac_cv_build
2363 ac_save_IFS=$IFS; IFS='-'
2364 set x $ac_cv_build
2365 shift
2366 build_cpu=$1
2367 build_vendor=$2
2368 shift; shift
2369 # Remember, the first character of IFS is used to create $*,
2370 # except with old shells:
2371 build_os=$*
2372 IFS=$ac_save_IFS
2373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376 case ${build_alias} in
2377 "") build_noncanonical=${build} ;;
2378 *) build_noncanonical=${build_alias} ;;
2379 esac
2383 case ${host_alias} in
2384 "") host_noncanonical=${build_noncanonical} ;;
2385 *) host_noncanonical=${host_alias} ;;
2386 esac
2390 case ${target_alias} in
2391 "") target_noncanonical=${host_noncanonical} ;;
2392 *) target_noncanonical=${target_alias} ;;
2393 esac
2398 test "$host_noncanonical" = "$target_noncanonical" &&
2399 test "$program_prefix$program_suffix$program_transform_name" = \
2400 NONENONEs,x,x, &&
2401 program_transform_name=s,y,y,
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2404 $as_echo_n "checking host system type... " >&6; }
2405 if test "${ac_cv_host+set}" = set; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 if test "x$host_alias" = x; then
2409 ac_cv_host=$ac_cv_build
2410 else
2411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2412 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2417 $as_echo "$ac_cv_host" >&6; }
2418 case $ac_cv_host in
2419 *-*-*) ;;
2420 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2421 esac
2422 host=$ac_cv_host
2423 ac_save_IFS=$IFS; IFS='-'
2424 set x $ac_cv_host
2425 shift
2426 host_cpu=$1
2427 host_vendor=$2
2428 shift; shift
2429 # Remember, the first character of IFS is used to create $*,
2430 # except with old shells:
2431 host_os=$*
2432 IFS=$ac_save_IFS
2433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2437 $as_echo_n "checking target system type... " >&6; }
2438 if test "${ac_cv_target+set}" = set; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 if test "x$target_alias" = x; then
2442 ac_cv_target=$ac_cv_host
2443 else
2444 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2445 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2450 $as_echo "$ac_cv_target" >&6; }
2451 case $ac_cv_target in
2452 *-*-*) ;;
2453 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2454 esac
2455 target=$ac_cv_target
2456 ac_save_IFS=$IFS; IFS='-'
2457 set x $ac_cv_target
2458 shift
2459 target_cpu=$1
2460 target_vendor=$2
2461 shift; shift
2462 # Remember, the first character of IFS is used to create $*,
2463 # except with old shells:
2464 target_os=$*
2465 IFS=$ac_save_IFS
2466 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2469 # The aliases save the names the user supplied, while $host etc.
2470 # will get canonicalized.
2471 test -n "$target_alias" &&
2472 test "$program_prefix$program_suffix$program_transform_name" = \
2473 NONENONEs,x,x, &&
2474 program_prefix=${target_alias}-
2476 test "$program_prefix" != NONE &&
2477 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478 # Use a double $ so make ignores it.
2479 test "$program_suffix" != NONE &&
2480 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481 # Double any \ or $.
2482 # By default was `s,x,x', remove it if useless.
2483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2488 # Get 'install' or 'install-sh' and its variants.
2489 # Find a good install program. We prefer a C program (faster),
2490 # so one script is as good as another. But avoid the broken or
2491 # incompatible versions:
2492 # SysV /etc/install, /usr/sbin/install
2493 # SunOS /usr/etc/install
2494 # IRIX /sbin/install
2495 # AIX /bin/install
2496 # AmigaOS /C/install, which installs bootblocks on floppy discs
2497 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500 # OS/2's system install, which has a completely different semantic
2501 # ./install, which can be erroneously created by make from ./install.sh.
2502 # Reject install programs that cannot install multiple files.
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2504 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in #((
2516 ./ | .// | /[cC]/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2519 /usr/ucb/* ) ;;
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2535 else
2536 rm -rf conftest.one conftest.two conftest.dir
2537 echo one > conftest.one
2538 echo two > conftest.two
2539 mkdir conftest.dir
2540 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2541 test -s conftest.one && test -s conftest.two &&
2542 test -s conftest.dir/conftest.one &&
2543 test -s conftest.dir/conftest.two
2544 then
2545 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2546 break 3
2550 done
2551 done
2553 esac
2555 done
2556 IFS=$as_save_IFS
2558 rm -rf conftest.one conftest.two conftest.dir
2561 if test "${ac_cv_path_install+set}" = set; then
2562 INSTALL=$ac_cv_path_install
2563 else
2564 # As a last resort, use the slow shell script. Don't cache a
2565 # value for INSTALL within a source directory, because that will
2566 # break other packages using the cache if that directory is
2567 # removed, or if the value is a relative name.
2568 INSTALL=$ac_install_sh
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2572 $as_echo "$INSTALL" >&6; }
2574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2575 # It thinks the first close brace ends the variable substitution.
2576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2583 $as_echo_n "checking whether ln works... " >&6; }
2584 if test "${acx_cv_prog_LN+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 rm -f conftestdata_t
2588 echo >conftestdata_f
2589 if ln conftestdata_f conftestdata_t 2>/dev/null
2590 then
2591 acx_cv_prog_LN=ln
2592 else
2593 acx_cv_prog_LN=no
2595 rm -f conftestdata_f conftestdata_t
2598 if test $acx_cv_prog_LN = no; then
2599 LN="cp"
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2601 $as_echo "no, using $LN" >&6; }
2602 else
2603 LN="$acx_cv_prog_LN"
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2605 $as_echo "yes" >&6; }
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2609 $as_echo_n "checking whether ln -s works... " >&6; }
2610 LN_S=$as_ln_s
2611 if test "$LN_S" = "ln -s"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2613 $as_echo "yes" >&6; }
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2616 $as_echo "no, using $LN_S" >&6; }
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2621 if test "${ac_cv_path_SED+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2625 for ac_i in 1 2 3 4 5 6 7; do
2626 ac_script="$ac_script$as_nl$ac_script"
2627 done
2628 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2629 { ac_script=; unset ac_script;}
2630 if test -z "$SED"; then
2631 ac_path_SED_found=false
2632 # Loop through the user's path and test for each of PROGNAME-LIST
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_prog in sed gsed; do
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2641 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2642 # Check for GNU ac_path_SED and select it if it is found.
2643 # Check for GNU $ac_path_SED
2644 case `"$ac_path_SED" --version 2>&1` in
2645 *GNU*)
2646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2648 ac_count=0
2649 $as_echo_n 0123456789 >"conftest.in"
2650 while :
2652 cat "conftest.in" "conftest.in" >"conftest.tmp"
2653 mv "conftest.tmp" "conftest.in"
2654 cp "conftest.in" "conftest.nl"
2655 $as_echo '' >> "conftest.nl"
2656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2658 as_fn_arith $ac_count + 1 && ac_count=$as_val
2659 if test $ac_count -gt ${ac_path_SED_max-0}; then
2660 # Best one so far, save it but keep looking for a better one
2661 ac_cv_path_SED="$ac_path_SED"
2662 ac_path_SED_max=$ac_count
2664 # 10*(2^10) chars as input seems more than enough
2665 test $ac_count -gt 10 && break
2666 done
2667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2668 esac
2670 $ac_path_SED_found && break 3
2671 done
2672 done
2673 done
2674 IFS=$as_save_IFS
2675 if test -z "$ac_cv_path_SED"; then
2676 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2678 else
2679 ac_cv_path_SED=$SED
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2684 $as_echo "$ac_cv_path_SED" >&6; }
2685 SED="$ac_cv_path_SED"
2686 rm -f conftest.sed
2688 for ac_prog in gawk mawk nawk awk
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_AWK+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$AWK"; then
2698 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_AWK="$ac_prog"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2711 done
2712 done
2713 IFS=$as_save_IFS
2717 AWK=$ac_cv_prog_AWK
2718 if test -n "$AWK"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2720 $as_echo "$AWK" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2727 test -n "$AWK" && break
2728 done
2731 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2733 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2734 # a relative path.
2735 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2736 INSTALL="${srcpwd}/install-sh -c"
2739 # Set srcdir to "." if that's what it is.
2740 # This is important for multilib support.
2741 pwd=`${PWDCMD-pwd}`
2742 if test "${pwd}" = "${srcpwd}" ; then
2743 srcdir=.
2746 topsrcdir=$srcpwd
2748 extra_host_args=
2750 ### To add a new directory to the tree, first choose whether it is a target
2751 ### or a host dependent tool. Then put it into the appropriate list
2752 ### (library or tools, host or target), doing a dependency sort.
2754 # Subdirs will be configured in the order listed in build_configdirs,
2755 # configdirs, or target_configdirs; see the serialization section below.
2757 # Dependency sorting is only needed when *configuration* must be done in
2758 # a particular order. In all cases a dependency should be specified in
2759 # the Makefile, whether or not it's implicitly specified here.
2761 # Double entries in build_configdirs, configdirs, or target_configdirs may
2762 # cause circular dependencies and break everything horribly.
2764 # these library is used by various programs built for the build
2765 # environment
2767 build_libs="build-libiberty"
2769 # these tools are built for the build environment
2770 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2772 # these libraries are used by various programs built for the host environment
2774 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2776 # these tools are built for the host environment
2777 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2778 # know that we are building the simulator.
2779 # binutils, gas and ld appear in that order because it makes sense to run
2780 # "make check" in that particular order.
2781 # If --enable-gold is used, "gold" may replace "ld".
2782 host_tools="texinfo flex bison binutils gas ld fixincludes accel-gcc gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2784 # libgcj represents the runtime libraries only used by gcj.
2785 libgcj="target-libffi \
2786 target-zlib \
2787 target-libjava"
2789 # these libraries are built for the target environment, and are built after
2790 # the host libraries and the host tools (which may be a cross compiler)
2791 # Note that libiberty is not a target library.
2792 target_libraries="target-libgcc \
2793 target-libbacktrace \
2794 target-libgloss \
2795 target-newlib \
2796 target-libgomp \
2797 target-libcilkrts \
2798 target-libatomic \
2799 target-libitm \
2800 target-libstdc++-v3 \
2801 target-libsanitizer \
2802 target-libvtv \
2803 target-libssp \
2804 target-libquadmath \
2805 target-libgfortran \
2806 target-boehm-gc \
2807 ${libgcj} \
2808 target-libobjc \
2809 target-libada \
2810 target-libgo"
2812 # these tools are built using the target libraries, and are intended to
2813 # run only in the target environment
2815 # note: any program that *uses* libraries that are in the "target_libraries"
2816 # list belongs in this list.
2818 target_tools="target-rda"
2820 ################################################################################
2822 ## All tools belong in one of the four categories, and are assigned above
2823 ## We assign ${configdirs} this way to remove all embedded newlines. This
2824 ## is important because configure will choke if they ever get through.
2825 ## ${configdirs} is directories we build using the host tools.
2826 ## ${target_configdirs} is directories we build using the target tools.
2827 configdirs=`echo ${host_libs} ${host_tools}`
2828 target_configdirs=`echo ${target_libraries} ${target_tools}`
2829 build_configdirs=`echo ${build_libs} ${build_tools}`
2833 ################################################################################
2835 srcname="gnu development package"
2837 # This gets set non-empty for some net releases of packages.
2838 appdirs=""
2840 # Define is_cross_compiler to save on calls to 'test'.
2841 is_cross_compiler=
2842 if test x"${host}" = x"${target}" ; then
2843 is_cross_compiler=no
2844 else
2845 is_cross_compiler=yes
2848 # Find the build and target subdir names.
2850 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2851 # have matching libraries, they should use host libraries: Makefile.tpl
2852 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2853 # However, they still use the build modules, because the corresponding
2854 # host modules (e.g. bison) are only built for the host when bootstrap
2855 # finishes. So:
2856 # - build_subdir is where we find build modules, and never changes.
2857 # - build_libsubdir is where we find build libraries, and can be overridden.
2859 # Prefix 'build-' so this never conflicts with target_subdir.
2860 build_subdir="build-${build_noncanonical}"
2862 # Check whether --with-build-libsubdir was given.
2863 if test "${with_build_libsubdir+set}" = set; then :
2864 withval=$with_build_libsubdir; build_libsubdir="$withval"
2865 else
2866 build_libsubdir="$build_subdir"
2869 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2870 if ( test $srcdir = . && test -d gcc ) \
2871 || test -d $srcdir/../host-${host_noncanonical}; then
2872 host_subdir="host-${host_noncanonical}"
2873 else
2874 host_subdir=.
2876 # No prefix.
2877 target_subdir=${target_noncanonical}
2879 # Be sure to cover against remnants of an in-tree build.
2880 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2881 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2882 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2885 # Skipdirs are removed silently.
2886 skipdirs=
2887 # Noconfigdirs are removed loudly.
2888 noconfigdirs=""
2890 use_gnu_ld=
2891 # Make sure we don't let GNU ld be added if we didn't want it.
2892 if test x$with_gnu_ld = xno ; then
2893 use_gnu_ld=no
2894 noconfigdirs="$noconfigdirs ld gold"
2897 use_gnu_as=
2898 # Make sure we don't let GNU as be added if we didn't want it.
2899 if test x$with_gnu_as = xno ; then
2900 use_gnu_as=no
2901 noconfigdirs="$noconfigdirs gas"
2904 use_included_zlib=
2905 # Make sure we don't let ZLIB be added if we didn't want it.
2906 if test x$with_system_zlib = xyes ; then
2907 use_included_zlib=no
2908 noconfigdirs="$noconfigdirs zlib"
2911 # some tools are so dependent upon X11 that if we're not building with X,
2912 # it's not even worth trying to configure, much less build, that tool.
2914 case ${with_x} in
2915 yes | "") ;; # the default value for this tree is that X11 is available
2917 skipdirs="${skipdirs} tk itcl libgui"
2918 # We won't be able to build gdbtk without X.
2919 enable_gdbtk=no
2921 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2922 esac
2924 # Some are only suitable for cross toolchains.
2925 # Remove these if host=target.
2926 cross_only="target-libgloss target-newlib target-opcodes"
2928 case $is_cross_compiler in
2929 no) skipdirs="${skipdirs} ${cross_only}" ;;
2930 esac
2932 # If both --with-headers and --with-libs are specified, default to
2933 # --without-newlib.
2934 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2935 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2936 if test x"${with_newlib}" = x ; then
2937 with_newlib=no
2941 # Recognize --with-newlib/--without-newlib.
2942 case ${with_newlib} in
2943 no) skipdirs="${skipdirs} target-newlib" ;;
2944 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2945 esac
2947 # Handle --enable-accelerator. This is in top-level because both libgomp and
2948 # GCC proper need this information.
2949 # --disable-accelerator
2950 # Default. Do not build accelerator pieces, only support host execution.
2951 # --enable-accelerator=auto-device-triplet
2952 # If possible, build accelerator pieces for 'device-triplet'.
2953 # --enable-accelerator=device-triplet
2954 # Build accelerator pieces for 'device-triplet'.
2955 # Check whether --enable-accelerator was given.
2956 if test "${enable_accelerator+set}" = set; then :
2957 enableval=$enable_accelerator; ENABLE_ACCELERATOR=$enableval
2958 else
2959 ENABLE_ACCELERATOR=no
2962 accel_target_noncanonical=NONE
2963 case "${ENABLE_ACCELERATOR}" in
2964 yes)
2965 as_fn_error "--enable-accelerators must name accelerator" "$LINENO" 5
2966 skipdirs="${skipdirs} accel-gcc"
2969 skipdirs="${skipdirs} accel-gcc"
2971 auto-nvptx*|nvptx*)
2972 accel_target_noncanonical=`echo "$ENABLE_ACCELERATOR" | sed -e s/auto-//g`
2975 as_fn_error "unrecognized accelerator" "$LINENO" 5
2976 skipdirs="${skipdirs} accel-gcc"
2978 esac
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking accelerator target system type" >&5
2981 $as_echo_n "checking accelerator target system type... " >&6; }
2983 accel_target_alias=$accel_target_noncanonical
2984 case "$accel_target_alias" in
2985 NONE)
2986 accel_target=NONE
2989 accel_target=`$ac_config_sub $accel_target_alias`
2991 esac
2993 accel_target_cpu=`echo $accel_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2994 accel_target_vendor=`echo $accel_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2995 accel_target_os=`echo $accel_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel_target" >&5
2997 $as_echo "$accel_target" >&6; }
3000 # Allow for specifying configure flags that apply to only the target GCC, or
3001 # only the accelerator GCC.
3003 # Check whether --enable-target-gcc-configure-flags was given.
3004 if test "${enable_target_gcc_configure_flags+set}" = set; then :
3005 enableval=$enable_target_gcc_configure_flags; extra_target_gcc_configure_flags=$enableval
3006 else
3007 extra_target_gcc_configure_flags=
3012 # Check whether --enable-accelerator-gcc-configure-flags was given.
3013 if test "${enable_accelerator_gcc_configure_flags+set}" = set; then :
3014 enableval=$enable_accelerator_gcc_configure_flags; extra_accelerator_gcc_configure_flags=$enableval
3015 else
3016 extra_accelerator_gcc_configure_flags=
3021 # Handle --enable-gold, --enable-ld.
3022 # --disable-gold [--enable-ld]
3023 # Build only ld. Default option.
3024 # --enable-gold [--enable-ld]
3025 # Build both gold and ld. Install gold as "ld.gold", install ld
3026 # as "ld.bfd" and "ld".
3027 # --enable-gold=default [--enable-ld]
3028 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3029 # install ld as "ld.bfd".
3030 # --enable-gold[=default] --disable-ld
3031 # Build only gold, which is then installed as both "ld.gold" and "ld".
3032 # --enable-gold --enable-ld=default
3033 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3034 # and ld.bfd).
3035 # In other words, ld is default
3036 # --enable-gold=default --enable-ld=default
3037 # Error.
3039 default_ld=
3040 # Check whether --enable-gold was given.
3041 if test "${enable_gold+set}" = set; then :
3042 enableval=$enable_gold; ENABLE_GOLD=$enableval
3043 else
3044 ENABLE_GOLD=no
3047 case "${ENABLE_GOLD}" in
3048 yes|default)
3049 # Check for ELF target.
3050 is_elf=no
3051 case "${target}" in
3052 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3053 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3054 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3055 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3056 case "${target}" in
3057 *-*-linux*aout* | *-*-linux*oldld*)
3060 is_elf=yes
3062 esac
3063 esac
3065 if test "$is_elf" = "yes"; then
3066 # Check for target supported by gold.
3067 case "${target}" in
3068 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
3069 configdirs="$configdirs gold"
3070 if test x${ENABLE_GOLD} = xdefault; then
3071 default_ld=gold
3073 ENABLE_GOLD=yes
3075 esac
3081 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3083 esac
3085 # Check whether --enable-ld was given.
3086 if test "${enable_ld+set}" = set; then :
3087 enableval=$enable_ld; ENABLE_LD=$enableval
3088 else
3089 ENABLE_LD=yes
3093 case "${ENABLE_LD}" in
3094 default)
3095 if test x${default_ld} != x; then
3096 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3099 yes)
3102 if test x${ENABLE_GOLD} != xyes; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3104 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3106 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3109 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3111 esac
3113 # Configure extra directories which are host specific
3115 case "${host}" in
3116 *-cygwin*)
3117 configdirs="$configdirs libtermcap" ;;
3118 esac
3120 # A target can indicate whether a language isn't supported for some reason.
3121 # Only spaces may be used in this macro; not newlines or tabs.
3122 unsupported_languages=
3124 # Remove more programs from consideration, based on the host or
3125 # target this usually means that a port of the program doesn't
3126 # exist yet.
3128 case "${host}" in
3129 i[3456789]86-*-msdosdjgpp*)
3130 noconfigdirs="$noconfigdirs tcl tk itcl"
3132 esac
3135 # Check whether --enable-libquadmath was given.
3136 if test "${enable_libquadmath+set}" = set; then :
3137 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3138 else
3139 ENABLE_LIBQUADMATH=yes
3142 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3143 noconfigdirs="$noconfigdirs target-libquadmath"
3147 # Check whether --enable-libquadmath-support was given.
3148 if test "${enable_libquadmath_support+set}" = set; then :
3149 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3150 else
3151 ENABLE_LIBQUADMATH_SUPPORT=yes
3154 enable_libquadmath_support=
3155 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3156 enable_libquadmath_support=no
3160 # Check whether --enable-libada was given.
3161 if test "${enable_libada+set}" = set; then :
3162 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3163 else
3164 ENABLE_LIBADA=yes
3167 if test "${ENABLE_LIBADA}" != "yes" ; then
3168 noconfigdirs="$noconfigdirs gnattools"
3171 # Check whether --enable-libssp was given.
3172 if test "${enable_libssp+set}" = set; then :
3173 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3174 else
3175 ENABLE_LIBSSP=yes
3179 # Check whether --enable-libstdcxx was given.
3180 if test "${enable_libstdcxx+set}" = set; then :
3181 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3182 else
3183 ENABLE_LIBSTDCXX=default
3186 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3187 noconfigdirs="$noconfigdirs libstdc++-v3"
3190 # Save it here so that, even in case of --enable-libgcj, if the Java
3191 # front-end isn't enabled, we still get libgcj disabled.
3192 libgcj_saved=$libgcj
3193 case $enable_libgcj in
3194 yes)
3195 # If we reset it here, it won't get added to noconfigdirs in the
3196 # target-specific build rules, so it will be forcibly enabled
3197 # (unless the Java language itself isn't enabled).
3198 libgcj=
3201 # Make sure we get it printed in the list of not supported target libs.
3202 # Don't disable libffi, though, other languages use it.
3203 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3204 # Clear libgcj_saved so that even if java is enabled libffi won't be
3205 # built.
3206 libgcj_saved=
3208 esac
3210 # Check whether --enable-static-libjava was given.
3211 if test "${enable_static_libjava+set}" = set; then :
3212 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3213 else
3214 ENABLE_STATIC_LIBJAVA=no
3217 enable_static_libjava=
3218 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3219 enable_static_libjava=yes
3222 if test x$enable_static_libjava != xyes ; then
3223 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3227 # Disable libgomp on non POSIX hosted systems.
3228 if test x$enable_libgomp = x ; then
3229 # Enable libgomp by default on hosted POSIX systems.
3230 case "${target}" in
3231 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3233 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3235 *-*-solaris2* | *-*-hpux11*)
3237 *-*-darwin* | *-*-aix*)
3240 noconfigdirs="$noconfigdirs target-libgomp"
3242 esac
3245 # Disable libatomic on unsupported systems.
3246 if test -d ${srcdir}/libatomic; then
3247 if test x$enable_libatomic = x; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3249 $as_echo_n "checking for libatomic support... " >&6; }
3250 if (srcdir=${srcdir}/libatomic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-libatomic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3264 # Disable libcilkrts on unsupported systems.
3265 if test -d ${srcdir}/libcilkrts; then
3266 if test x$enable_libcilkrts = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3268 $as_echo_n "checking for libcilkrts support... " >&6; }
3269 if (srcdir=${srcdir}/libcilkrts; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libcilkrts"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3283 # Disable libitm on unsupported systems.
3284 if test -d ${srcdir}/libitm; then
3285 if test x$enable_libitm = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3287 $as_echo_n "checking for libitm support... " >&6; }
3288 if (srcdir=${srcdir}/libitm; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libitm"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3302 # Disable libsanitizer on unsupported systems.
3303 if test -d ${srcdir}/libsanitizer; then
3304 if test x$enable_libsanitizer = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3306 $as_echo_n "checking for libsanitizer support... " >&6; }
3307 if (srcdir=${srcdir}/libsanitizer; \
3308 . ${srcdir}/configure.tgt; \
3309 test -n "$UNSUPPORTED")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libsanitizer"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3321 # Disable libvtv on unsupported systems.
3322 if test -d ${srcdir}/libvtv; then
3323 if test x$enable_libvtv = x; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3325 $as_echo_n "checking for libvtv support... " >&6; }
3326 if (srcdir=${srcdir}/libvtv; \
3327 . ${srcdir}/configure.tgt; \
3328 test "$VTV_SUPPORTED" != "yes")
3329 then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 noconfigdirs="$noconfigdirs target-libvtv"
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3340 # Disable libquadmath for some systems.
3341 case "${target}" in
3342 avr-*-*)
3343 noconfigdirs="$noconfigdirs target-libquadmath"
3345 # libquadmath is unused on AIX and libquadmath build process use of
3346 # LD_LIBRARY_PATH can break AIX bootstrap.
3347 powerpc-*-aix* | rs6000-*-aix*)
3348 noconfigdirs="$noconfigdirs target-libquadmath"
3350 esac
3352 # Disable libssp for some systems.
3353 case "${target}" in
3354 avr-*-*)
3355 # No hosted I/O support.
3356 noconfigdirs="$noconfigdirs target-libssp"
3358 powerpc-*-aix* | rs6000-*-aix*)
3359 noconfigdirs="$noconfigdirs target-libssp"
3361 rl78-*-*)
3362 # libssp uses a misaligned load to trigger a fault, but the RL78
3363 # doesn't fault for those - instead, it gives a build-time error
3364 # for explicit misaligned loads.
3365 noconfigdirs="$noconfigdirs target-libssp"
3367 esac
3369 # Disable libstdc++-v3 for some systems.
3370 # Allow user to override this if they pass --enable-libstdc++-v3
3371 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3372 case "${target}" in
3373 *-*-vxworks*)
3374 # VxWorks uses the Dinkumware C++ library.
3375 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3377 arm*-wince-pe*)
3378 # the C++ libraries don't build on top of CE's C libraries
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3381 avr-*-*)
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3384 esac
3387 # Disable Fortran for some systems.
3388 case "${target}" in
3389 mmix-*-*)
3390 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3391 unsupported_languages="$unsupported_languages fortran"
3393 esac
3395 # Disable Java if libffi is not supported.
3396 case "${target}" in
3397 aarch64-*-*)
3399 alpha*-*-*)
3401 arm*-*-*)
3403 cris-*-*)
3405 frv-*-*)
3407 hppa*-*-linux*)
3409 hppa*-*-hpux*)
3411 i?86-*-*)
3413 ia64*-*-*)
3415 m32r*-*-*)
3417 m68k-*-*)
3419 mips*-*-rtems*)
3421 mips*-*-linux*)
3423 powerpc*-*-linux*)
3425 powerpc-*-darwin*)
3427 powerpc-*-aix* | rs6000-*-aix*)
3429 powerpc-*-freebsd*)
3431 powerpc64-*-freebsd*)
3433 powerpc*-*-rtems*)
3435 s390-*-* | s390x-*-*)
3437 sh-*-* | sh[34]*-*-*)
3439 sh64-*-* | sh5*-*-*)
3441 sparc*-*-*)
3443 x86_64-*-*)
3445 *-*-*)
3446 unsupported_languages="$unsupported_languages java"
3448 esac
3450 # Disable Java, libgcj or related libraries for some systems.
3451 case "${target}" in
3452 powerpc-*-darwin*)
3454 i[3456789]86-*-darwin*)
3456 x86_64-*-darwin[912]*)
3458 *-*-darwin*)
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3461 *-*-netware*)
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3464 *-*-rtems*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3467 *-*-tpf*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3470 *-*-uclinux*)
3471 noconfigdirs="$noconfigdirs ${libgcj}"
3473 *-*-vxworks*)
3474 noconfigdirs="$noconfigdirs ${libgcj}"
3476 alpha*-*-*vms*)
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3479 arm-wince-pe)
3480 noconfigdirs="$noconfigdirs ${libgcj}"
3482 arm*-*-symbianelf*)
3483 noconfigdirs="$noconfigdirs ${libgcj}"
3485 bfin-*-*)
3486 noconfigdirs="$noconfigdirs target-boehm-gc"
3488 cris-*-* | crisv32-*-*)
3489 unsupported_languages="$unsupported_languages java"
3490 case "${target}" in
3491 *-*-linux*)
3493 *) # See PR46792 regarding target-libffi.
3494 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3495 esac
3497 hppa*64*-*-linux*)
3498 # In this case, it's because the hppa64-linux target is for
3499 # the kernel only at this point and has no libc, and thus no
3500 # headers, crt*.o, etc., all of which are needed by these.
3501 unsupported_languages="$unsupported_languages java"
3503 hppa*64*-*-hpux*)
3504 noconfigdirs="$noconfigdirs ${libgcj}"
3506 hppa*-hp-hpux11*)
3508 hppa*-*-hpux*)
3509 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3510 # build on HP-UX 10.20.
3511 noconfigdirs="$noconfigdirs ${libgcj}"
3513 ia64*-*-*vms*)
3514 noconfigdirs="$noconfigdirs ${libgcj}"
3516 i[3456789]86-w64-mingw*)
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3519 i[3456789]86-*-mingw*)
3520 noconfigdirs="$noconfigdirs ${libgcj}"
3522 x86_64-*-mingw*)
3523 noconfigdirs="$noconfigdirs ${libgcj}"
3525 mmix-*-*)
3526 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3528 powerpc-*-aix*)
3529 # copied from rs6000-*-* entry
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3532 rs6000-*-aix*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3535 *-*-lynxos*)
3536 noconfigdirs="$noconfigdirs ${libgcj}"
3538 esac
3540 # Disable libgo for some systems where it is known to not work.
3541 # For testing, you can easily override this with --enable-libgo.
3542 if test x$enable_libgo = x; then
3543 case "${target}" in
3544 *-*-darwin*)
3545 # PR 46986
3546 noconfigdirs="$noconfigdirs target-libgo"
3548 *-*-cygwin* | *-*-mingw*)
3549 noconfigdirs="$noconfigdirs target-libgo"
3551 *-*-aix*)
3552 noconfigdirs="$noconfigdirs target-libgo"
3554 esac
3557 # Default libgloss CPU subdirectory.
3558 libgloss_dir="$target_cpu"
3560 case "${target}" in
3561 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3562 libgloss_dir=wince
3564 aarch64*-*-* )
3565 libgloss_dir=aarch64
3567 arm*-*-*)
3568 libgloss_dir=arm
3570 cris-*-* | crisv32-*-*)
3571 libgloss_dir=cris
3573 hppa*-*-*)
3574 libgloss_dir=pa
3576 i[3456789]86-*-*)
3577 libgloss_dir=i386
3579 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3580 libgloss_dir=m68hc11
3582 m68*-*-* | fido-*-*)
3583 libgloss_dir=m68k
3585 mips*-*-*)
3586 libgloss_dir=mips
3588 powerpc*-*-*)
3589 libgloss_dir=rs6000
3591 sparc*-*-*)
3592 libgloss_dir=sparc
3594 esac
3596 # Disable newlib and libgloss for various target OSes.
3597 case "${target}" in
3598 alpha*-dec-osf*)
3599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3601 i[3456789]86-*-linux*)
3602 # This section makes it possible to build newlib natively on linux.
3603 # If we are using a cross compiler then don't configure newlib.
3604 if test x${is_cross_compiler} != xno ; then
3605 noconfigdirs="$noconfigdirs target-newlib"
3607 noconfigdirs="$noconfigdirs target-libgloss"
3608 # If we are not using a cross compiler, do configure newlib.
3609 # Note however, that newlib will only be configured in this situation
3610 # if the --with-newlib option has been given, because otherwise
3611 # 'target-newlib' will appear in skipdirs.
3613 i[3456789]86-*-rdos*)
3614 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3617 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3619 sparc-*-sunos4*)
3620 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3622 *-*-aix*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 *-*-beos*)
3626 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3628 *-*-chorusos)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3631 *-*-dragonfly*)
3632 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3634 *-*-freebsd*)
3635 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3637 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 *-*-lynxos*)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 *-*-mingw*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 *-*-netbsd*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 *-*-netware*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 *-*-tpf*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3655 *-*-uclinux*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 *-*-vxworks*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 esac
3663 case "${target}" in
3664 *-*-chorusos)
3666 powerpc-*-darwin*)
3667 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3668 noconfigdirs="$noconfigdirs sim target-rda"
3670 i[3456789]86-*-darwin*)
3671 noconfigdirs="$noconfigdirs ld gprof"
3672 noconfigdirs="$noconfigdirs sim target-rda"
3674 x86_64-*-darwin[912]*)
3675 noconfigdirs="$noconfigdirs ld gas gprof"
3676 noconfigdirs="$noconfigdirs sim target-rda"
3678 *-*-darwin*)
3679 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3680 noconfigdirs="$noconfigdirs sim target-rda"
3682 *-*-dragonfly*)
3684 *-*-freebsd*)
3685 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3686 && test -f /usr/local/include/gmp.h; then
3687 with_gmp=/usr/local
3690 *-*-kaos*)
3691 # Remove unsupported stuff on all kaOS configurations.
3692 noconfigdirs="$noconfigdirs target-libgloss"
3694 *-*-netbsd*)
3696 *-*-netware*)
3698 *-*-rtems*)
3699 noconfigdirs="$noconfigdirs target-libgloss"
3701 # The tpf target doesn't support gdb yet.
3702 *-*-tpf*)
3703 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3705 *-*-uclinux*)
3706 noconfigdirs="$noconfigdirs target-rda"
3708 *-*-vxworks*)
3710 alpha*-dec-osf*)
3711 # ld works, but does not support shared libraries.
3712 # gas doesn't generate exception information.
3713 noconfigdirs="$noconfigdirs gas ld"
3715 alpha*-*-*vms*)
3716 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3718 alpha*-*-*)
3719 # newlib is not 64 bit ready
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3723 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3725 arc-*-*|arceb-*-*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3728 arm-*-pe*)
3729 noconfigdirs="$noconfigdirs target-libgloss"
3731 arm-*-riscix*)
3732 noconfigdirs="$noconfigdirs ld target-libgloss"
3734 avr-*-rtems*)
3736 avr-*-*)
3737 if test x${with_avrlibc} != xno; then
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3741 c4x-*-* | tic4x-*-*)
3742 noconfigdirs="$noconfigdirs target-libgloss"
3744 tic54x-*-*)
3745 noconfigdirs="$noconfigdirs target-libgloss gdb"
3747 d10v-*-*)
3748 noconfigdirs="$noconfigdirs target-libgloss"
3750 d30v-*-*)
3751 noconfigdirs="$noconfigdirs gdb"
3753 fr30-*-elf*)
3754 noconfigdirs="$noconfigdirs gdb"
3756 moxie-*-*)
3757 noconfigdirs="$noconfigdirs gprof"
3759 h8300*-*-*)
3760 noconfigdirs="$noconfigdirs target-libgloss"
3762 h8500-*-*)
3763 noconfigdirs="$noconfigdirs target-libgloss"
3765 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3767 hppa*64*-*-linux*)
3769 hppa*-*-linux*)
3771 hppa*-*-*elf* | \
3772 hppa*-*-lites* | \
3773 hppa*-*-openbsd* | \
3774 hppa*64*-*-*)
3776 hppa*-hp-hpux11*)
3777 noconfigdirs="$noconfigdirs ld"
3779 hppa*-*-pro*)
3781 hppa*-*-*)
3782 noconfigdirs="$noconfigdirs ld"
3784 i960-*-*)
3785 noconfigdirs="$noconfigdirs gdb"
3787 ia64*-*-elf*)
3788 # No gdb support yet.
3789 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3791 ia64*-**-hpux*)
3792 # No ld support yet.
3793 noconfigdirs="$noconfigdirs libgui itcl ld"
3795 ia64*-*-*vms*)
3796 # No ld support yet.
3797 noconfigdirs="$noconfigdirs libgui itcl ld"
3799 i[3456789]86-w64-mingw*)
3801 i[3456789]86-*-mingw*)
3802 target_configdirs="$target_configdirs target-winsup"
3804 *-*-cygwin*)
3805 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3806 noconfigdirs="$noconfigdirs target-libgloss"
3807 # always build newlib if winsup directory is present.
3808 if test -d "$srcdir/winsup/cygwin"; then
3809 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3810 elif test -d "$srcdir/newlib"; then
3811 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3814 i[3456789]86-*-pe)
3815 noconfigdirs="$noconfigdirs target-libgloss"
3817 i[3456789]86-*-sco3.2v5*)
3818 # The linker does not yet know about weak symbols in COFF,
3819 # and is not configured to handle mixed ELF and COFF.
3820 noconfigdirs="$noconfigdirs ld target-libgloss"
3822 i[3456789]86-*-sco*)
3823 noconfigdirs="$noconfigdirs gprof target-libgloss"
3825 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3826 noconfigdirs="$noconfigdirs target-libgloss"
3828 i[3456789]86-*-sysv4*)
3829 noconfigdirs="$noconfigdirs target-libgloss"
3831 i[3456789]86-*-beos*)
3832 noconfigdirs="$noconfigdirs gdb"
3834 i[3456789]86-*-rdos*)
3835 noconfigdirs="$noconfigdirs gdb"
3837 mmix-*-*)
3838 noconfigdirs="$noconfigdirs gdb"
3840 mt-*-*)
3841 noconfigdirs="$noconfigdirs sim"
3843 powerpc-*-aix*)
3844 # copied from rs6000-*-* entry
3845 noconfigdirs="$noconfigdirs gprof"
3847 powerpc*-*-winnt* | powerpc*-*-pe*)
3848 target_configdirs="$target_configdirs target-winsup"
3849 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3850 # always build newlib.
3851 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3853 # This is temporary until we can link against shared libraries
3854 powerpcle-*-solaris*)
3855 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3857 powerpc-*-beos*)
3858 noconfigdirs="$noconfigdirs gdb"
3860 rs6000-*-lynxos*)
3861 noconfigdirs="$noconfigdirs gprof"
3863 rs6000-*-aix*)
3864 noconfigdirs="$noconfigdirs gprof"
3866 rs6000-*-*)
3867 noconfigdirs="$noconfigdirs gprof"
3869 m68k-apollo-*)
3870 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3872 microblaze*)
3873 noconfigdirs="$noconfigdirs gprof"
3875 mips*-sde-elf* | mips*-mti-elf*)
3876 if test x$with_newlib = xyes; then
3877 noconfigdirs="$noconfigdirs gprof"
3880 mips*-*-irix5*)
3881 noconfigdirs="$noconfigdirs gprof target-libgloss"
3883 mips*-*-irix6*)
3884 noconfigdirs="$noconfigdirs gprof target-libgloss"
3886 mips*-*-bsd*)
3887 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3889 mips*-*-linux*)
3891 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3892 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3893 noconfigdirs="$noconfigdirs ld gas gprof"
3895 mips*-*-*)
3896 noconfigdirs="$noconfigdirs gprof"
3898 sh-*-* | sh64-*-*)
3899 case "${target}" in
3900 sh*-*-elf)
3903 noconfigdirs="$noconfigdirs target-libgloss" ;;
3904 esac
3906 sparc-*-sunos4*)
3907 if test x${is_cross_compiler} = xno ; then
3908 use_gnu_ld=no
3911 tic6x-*-*)
3912 noconfigdirs="$noconfigdirs sim"
3914 tilepro*-*-* | tilegx*-*-*)
3915 noconfigdirs="$noconfigdirs sim"
3917 v810-*-*)
3918 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3920 vax-*-*)
3921 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3923 esac
3925 # If we aren't building newlib, then don't build libgloss, since libgloss
3926 # depends upon some newlib header files.
3927 case "${noconfigdirs}" in
3928 *target-libgloss*) ;;
3929 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3930 esac
3932 # Work in distributions that contain no compiler tools, like Autoconf.
3933 host_makefile_frag=/dev/null
3934 if test -d ${srcdir}/config ; then
3935 case "${host}" in
3936 i[3456789]86-*-msdosdjgpp*)
3937 host_makefile_frag="config/mh-djgpp"
3939 *-cygwin*)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3942 $as_echo_n "checking to see if cat works as expected... " >&6; }
3943 echo a >cygwin-cat-check
3944 if test `cat cygwin-cat-check` = a ; then
3945 rm cygwin-cat-check
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948 else
3949 rm cygwin-cat-check
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 as_fn_error "The cat command does not ignore carriage return characters.
3953 Please either mount the build directory in binary mode or run the following
3954 commands before running any configure script:
3955 set -o igncr
3956 export SHELLOPTS
3957 " "$LINENO" 5
3960 host_makefile_frag="config/mh-cygwin"
3962 *-mingw*)
3963 host_makefile_frag="config/mh-mingw"
3965 hppa*-hp-hpux10*)
3966 host_makefile_frag="config/mh-pa-hpux10"
3968 hppa*-hp-hpux*)
3969 host_makefile_frag="config/mh-pa"
3971 hppa*-*)
3972 host_makefile_frag="config/mh-pa"
3974 *-*-darwin*)
3975 host_makefile_frag="config/mh-darwin"
3977 powerpc-*-aix*)
3978 host_makefile_frag="config/mh-ppc-aix"
3980 rs6000-*-aix*)
3981 host_makefile_frag="config/mh-ppc-aix"
3983 esac
3986 if test "${build}" != "${host}" ; then
3987 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3988 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3989 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3990 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3991 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3992 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3993 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3994 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3995 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3996 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3997 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3998 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3999 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4000 else
4001 AR_FOR_BUILD="\$(AR)"
4002 AS_FOR_BUILD="\$(AS)"
4003 CC_FOR_BUILD="\$(CC)"
4004 CXX_FOR_BUILD="\$(CXX)"
4005 GCJ_FOR_BUILD="\$(GCJ)"
4006 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4007 GOC_FOR_BUILD="\$(GOC)"
4008 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4009 LD_FOR_BUILD="\$(LD)"
4010 NM_FOR_BUILD="\$(NM)"
4011 RANLIB_FOR_BUILD="\$(RANLIB)"
4012 WINDRES_FOR_BUILD="\$(WINDRES)"
4013 WINDMC_FOR_BUILD="\$(WINDMC)"
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 if test -n "$ac_tool_prefix"; then
4022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4023 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_CC+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -n "$CC"; then
4030 ac_cv_prog_CC="$CC" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4043 done
4044 done
4045 IFS=$as_save_IFS
4049 CC=$ac_cv_prog_CC
4050 if test -n "$CC"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052 $as_echo "$CC" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4060 if test -z "$ac_cv_prog_CC"; then
4061 ac_ct_CC=$CC
4062 # Extract the first word of "gcc", so it can be a program name with args.
4063 set dummy gcc; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -n "$ac_ct_CC"; then
4070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_prog_ac_ct_CC="gcc"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4083 done
4084 done
4085 IFS=$as_save_IFS
4089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4090 if test -n "$ac_ct_CC"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4092 $as_echo "$ac_ct_CC" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4098 if test "x$ac_ct_CC" = x; then
4099 CC=""
4100 else
4101 case $cross_compiling:$ac_tool_warned in
4102 yes:)
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4105 ac_tool_warned=yes ;;
4106 esac
4107 CC=$ac_ct_CC
4109 else
4110 CC="$ac_cv_prog_CC"
4113 if test -z "$CC"; then
4114 if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}cc; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$CC"; then
4123 ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_prog_CC="${ac_tool_prefix}cc"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4138 IFS=$as_save_IFS
4142 CC=$ac_cv_prog_CC
4143 if test -n "$CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145 $as_echo "$CC" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4154 if test -z "$CC"; then
4155 # Extract the first word of "cc", so it can be a program name with args.
4156 set dummy cc; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if test "${ac_cv_prog_CC+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 if test -n "$CC"; then
4163 ac_cv_prog_CC="$CC" # Let the user override the test.
4164 else
4165 ac_prog_rejected=no
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4174 ac_prog_rejected=yes
4175 continue
4177 ac_cv_prog_CC="cc"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4183 IFS=$as_save_IFS
4185 if test $ac_prog_rejected = yes; then
4186 # We found a bogon in the path, so make sure we never use it.
4187 set dummy $ac_cv_prog_CC
4188 shift
4189 if test $# != 0; then
4190 # We chose a different compiler from the bogus one.
4191 # However, it has the same basename, so the bogon will be chosen
4192 # first if we set CC to just the basename; use the full file name.
4193 shift
4194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4199 CC=$ac_cv_prog_CC
4200 if test -n "$CC"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4202 $as_echo "$CC" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4210 if test -z "$CC"; then
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in cl.exe
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if test "${ac_cv_prog_CC+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4235 done
4236 done
4237 IFS=$as_save_IFS
4241 CC=$ac_cv_prog_CC
4242 if test -n "$CC"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4244 $as_echo "$CC" >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4251 test -n "$CC" && break
4252 done
4254 if test -z "$CC"; then
4255 ac_ct_CC=$CC
4256 for ac_prog in cl.exe
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if test -n "$ac_ct_CC"; then
4266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_ac_ct_CC="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4286 if test -n "$ac_ct_CC"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4288 $as_echo "$ac_ct_CC" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4295 test -n "$ac_ct_CC" && break
4296 done
4298 if test "x$ac_ct_CC" = x; then
4299 CC=""
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302 yes:)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4306 esac
4307 CC=$ac_ct_CC
4314 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error "no acceptable C compiler found in \$PATH
4317 See \`config.log' for more details." "$LINENO" 5; }
4319 # Provide some information about the compiler.
4320 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4321 set X $ac_compile
4322 ac_compiler=$2
4323 for ac_option in --version -v -V -qversion; do
4324 { { ac_try="$ac_compiler $ac_option >&5"
4325 case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4332 ac_status=$?
4333 if test -s conftest.err; then
4334 sed '10a\
4335 ... rest of stderr output deleted ...
4336 10q' conftest.err >conftest.er1
4337 cat conftest.er1 >&5
4338 rm -f conftest.er1 conftest.err
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; }
4342 done
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4348 main ()
4352 return 0;
4354 _ACEOF
4355 ac_clean_files_save=$ac_clean_files
4356 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4357 # Try to create an executable without -o first, disregard a.out.
4358 # It will help us diagnose broken compilers, and finding out an intuition
4359 # of exeext.
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4361 $as_echo_n "checking for C compiler default output file name... " >&6; }
4362 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4364 # The possible output files:
4365 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4367 ac_rmfiles=
4368 for ac_file in $ac_files
4370 case $ac_file in
4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4372 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4373 esac
4374 done
4375 rm -f $ac_rmfiles
4377 if { { ac_try="$ac_link_default"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_link_default") 2>&5
4385 ac_status=$?
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }; then :
4388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4390 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4391 # so that the user can short-circuit this test for compilers unknown to
4392 # Autoconf.
4393 for ac_file in $ac_files ''
4395 test -f "$ac_file" || continue
4396 case $ac_file in
4397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4399 [ab].out )
4400 # We found the default executable, but exeext='' is most
4401 # certainly right.
4402 break;;
4403 *.* )
4404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4405 then :; else
4406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 # We set ac_cv_exeext here because the later test for it is not
4409 # safe: cross compilers may not add the suffix if given an `-o'
4410 # argument, so we may need to know it at that point already.
4411 # Even if this section looks crufty: it has the advantage of
4412 # actually working.
4413 break;;
4415 break;;
4416 esac
4417 done
4418 test "$ac_cv_exeext" = no && ac_cv_exeext=
4420 else
4421 ac_file=''
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4424 $as_echo "$ac_file" >&6; }
4425 if test -z "$ac_file"; then :
4426 $as_echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4431 { as_fn_set_status 77
4432 as_fn_error "C compiler cannot create executables
4433 See \`config.log' for more details." "$LINENO" 5; }; }
4435 ac_exeext=$ac_cv_exeext
4437 # Check that the compiler produces executables we can run. If not, either
4438 # the compiler is broken, or we cross compile.
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4440 $as_echo_n "checking whether the C compiler works... " >&6; }
4441 # If not cross compiling, check that we can run a simple program.
4442 if test "$cross_compiling" != yes; then
4443 if { ac_try='./$ac_file'
4444 { { case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_try") 2>&5
4451 ac_status=$?
4452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4453 test $ac_status = 0; }; }; then
4454 cross_compiling=no
4455 else
4456 if test "$cross_compiling" = maybe; then
4457 cross_compiling=yes
4458 else
4459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error "cannot run C compiled programs.
4462 If you meant to cross compile, use \`--host'.
4463 See \`config.log' for more details." "$LINENO" 5; }
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468 $as_echo "yes" >&6; }
4470 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4471 ac_clean_files=$ac_clean_files_save
4472 # Check that the compiler produces executables we can run. If not, either
4473 # the compiler is broken, or we cross compile.
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4475 $as_echo_n "checking whether we are cross compiling... " >&6; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4477 $as_echo "$cross_compiling" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4480 $as_echo_n "checking for suffix of executables... " >&6; }
4481 if { { ac_try="$ac_link"
4482 case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485 esac
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 $as_echo "$ac_try_echo"; } >&5
4488 (eval "$ac_link") 2>&5
4489 ac_status=$?
4490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }; then :
4492 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4493 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4494 # work properly (i.e., refer to `conftest.exe'), while it won't with
4495 # `rm'.
4496 for ac_file in conftest.exe conftest conftest.*; do
4497 test -f "$ac_file" || continue
4498 case $ac_file in
4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4501 break;;
4502 * ) break;;
4503 esac
4504 done
4505 else
4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4508 as_fn_error "cannot compute suffix of executables: cannot compile and link
4509 See \`config.log' for more details." "$LINENO" 5; }
4511 rm -f conftest$ac_cv_exeext
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4513 $as_echo "$ac_cv_exeext" >&6; }
4515 rm -f conftest.$ac_ext
4516 EXEEXT=$ac_cv_exeext
4517 ac_exeext=$EXEEXT
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4519 $as_echo_n "checking for suffix of object files... " >&6; }
4520 if test "${ac_cv_objext+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4527 main ()
4531 return 0;
4533 _ACEOF
4534 rm -f conftest.o conftest.obj
4535 if { { ac_try="$ac_compile"
4536 case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541 $as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_compile") 2>&5
4543 ac_status=$?
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; then :
4546 for ac_file in conftest.o conftest.obj conftest.*; do
4547 test -f "$ac_file" || continue;
4548 case $ac_file in
4549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4550 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4551 break;;
4552 esac
4553 done
4554 else
4555 $as_echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error "cannot compute suffix of object files: cannot compile
4561 See \`config.log' for more details." "$LINENO" 5; }
4563 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4566 $as_echo "$ac_cv_objext" >&6; }
4567 OBJEXT=$ac_cv_objext
4568 ac_objext=$OBJEXT
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4570 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4571 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4580 #ifndef __GNUC__
4581 choke me
4582 #endif
4585 return 0;
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_compiler_gnu=yes
4590 else
4591 ac_compiler_gnu=no
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4598 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4599 if test $ac_compiler_gnu = yes; then
4600 GCC=yes
4601 else
4602 GCC=
4604 ac_test_CFLAGS=${CFLAGS+set}
4605 ac_save_CFLAGS=$CFLAGS
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4607 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4608 if test "${ac_cv_prog_cc_g+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 ac_save_c_werror_flag=$ac_c_werror_flag
4612 ac_c_werror_flag=yes
4613 ac_cv_prog_cc_g=no
4614 CFLAGS="-g"
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4619 main ()
4623 return 0;
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_prog_cc_g=yes
4628 else
4629 CFLAGS=""
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4634 main ()
4638 return 0;
4640 _ACEOF
4641 if ac_fn_c_try_compile "$LINENO"; then :
4643 else
4644 ac_c_werror_flag=$ac_save_c_werror_flag
4645 CFLAGS="-g"
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4650 main ()
4654 return 0;
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_cv_prog_cc_g=yes
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 ac_c_werror_flag=$ac_save_c_werror_flag
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4668 $as_echo "$ac_cv_prog_cc_g" >&6; }
4669 if test "$ac_test_CFLAGS" = set; then
4670 CFLAGS=$ac_save_CFLAGS
4671 elif test $ac_cv_prog_cc_g = yes; then
4672 if test "$GCC" = yes; then
4673 CFLAGS="-g -O2"
4674 else
4675 CFLAGS="-g"
4677 else
4678 if test "$GCC" = yes; then
4679 CFLAGS="-O2"
4680 else
4681 CFLAGS=
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4685 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4686 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688 else
4689 ac_cv_prog_cc_c89=no
4690 ac_save_CC=$CC
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693 #include <stdarg.h>
4694 #include <stdio.h>
4695 #include <sys/types.h>
4696 #include <sys/stat.h>
4697 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4698 struct buf { int x; };
4699 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4700 static char *e (p, i)
4701 char **p;
4702 int i;
4704 return p[i];
4706 static char *f (char * (*g) (char **, int), char **p, ...)
4708 char *s;
4709 va_list v;
4710 va_start (v,p);
4711 s = g (p, va_arg (v,int));
4712 va_end (v);
4713 return s;
4716 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4717 function prototypes and stuff, but not '\xHH' hex character constants.
4718 These don't provoke an error unfortunately, instead are silently treated
4719 as 'x'. The following induces an error, until -std is added to get
4720 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4721 array size at least. It's necessary to write '\x00'==0 to get something
4722 that's true only with -std. */
4723 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4725 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4726 inside strings and character constants. */
4727 #define FOO(x) 'x'
4728 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4730 int test (int i, double x);
4731 struct s1 {int (*f) (int a);};
4732 struct s2 {int (*f) (double a);};
4733 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4734 int argc;
4735 char **argv;
4737 main ()
4739 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4741 return 0;
4743 _ACEOF
4744 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4745 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4747 CC="$ac_save_CC $ac_arg"
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_prog_cc_c89=$ac_arg
4751 rm -f core conftest.err conftest.$ac_objext
4752 test "x$ac_cv_prog_cc_c89" != "xno" && break
4753 done
4754 rm -f conftest.$ac_ext
4755 CC=$ac_save_CC
4758 # AC_CACHE_VAL
4759 case "x$ac_cv_prog_cc_c89" in
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4762 $as_echo "none needed" >&6; } ;;
4763 xno)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4765 $as_echo "unsupported" >&6; } ;;
4767 CC="$CC $ac_cv_prog_cc_c89"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4769 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4770 esac
4771 if test "x$ac_cv_prog_cc_c89" != xno; then :
4775 ac_ext=c
4776 ac_cpp='$CPP $CPPFLAGS'
4777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781 ac_ext=cpp
4782 ac_cpp='$CXXCPP $CPPFLAGS'
4783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4786 if test -z "$CXX"; then
4787 if test -n "$CCC"; then
4788 CXX=$CCC
4789 else
4790 if test -n "$ac_tool_prefix"; then
4791 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_CXX+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$CXX"; then
4801 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4814 done
4815 done
4816 IFS=$as_save_IFS
4820 CXX=$ac_cv_prog_CXX
4821 if test -n "$CXX"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4823 $as_echo "$CXX" >&6; }
4824 else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4830 test -n "$CXX" && break
4831 done
4833 if test -z "$CXX"; then
4834 ac_ct_CXX=$CXX
4835 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4837 # Extract the first word of "$ac_prog", so it can be a program name with args.
4838 set dummy $ac_prog; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -n "$ac_ct_CXX"; then
4845 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_prog_ac_ct_CXX="$ac_prog"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4858 done
4859 done
4860 IFS=$as_save_IFS
4864 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4865 if test -n "$ac_ct_CXX"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4867 $as_echo "$ac_ct_CXX" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4874 test -n "$ac_ct_CXX" && break
4875 done
4877 if test "x$ac_ct_CXX" = x; then
4878 CXX="g++"
4879 else
4880 case $cross_compiling:$ac_tool_warned in
4881 yes:)
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4884 ac_tool_warned=yes ;;
4885 esac
4886 CXX=$ac_ct_CXX
4892 # Provide some information about the compiler.
4893 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4894 set X $ac_compile
4895 ac_compiler=$2
4896 for ac_option in --version -v -V -qversion; do
4897 { { ac_try="$ac_compiler $ac_option >&5"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903 $as_echo "$ac_try_echo"; } >&5
4904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4905 ac_status=$?
4906 if test -s conftest.err; then
4907 sed '10a\
4908 ... rest of stderr output deleted ...
4909 10q' conftest.err >conftest.er1
4910 cat conftest.er1 >&5
4911 rm -f conftest.er1 conftest.err
4913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4914 test $ac_status = 0; }
4915 done
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4918 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4919 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4926 main ()
4928 #ifndef __GNUC__
4929 choke me
4930 #endif
4933 return 0;
4935 _ACEOF
4936 if ac_fn_cxx_try_compile "$LINENO"; then :
4937 ac_compiler_gnu=yes
4938 else
4939 ac_compiler_gnu=no
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4946 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4947 if test $ac_compiler_gnu = yes; then
4948 GXX=yes
4949 else
4950 GXX=
4952 ac_test_CXXFLAGS=${CXXFLAGS+set}
4953 ac_save_CXXFLAGS=$CXXFLAGS
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4955 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4956 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4960 ac_cxx_werror_flag=yes
4961 ac_cv_prog_cxx_g=no
4962 CXXFLAGS="-g"
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4967 main ()
4971 return 0;
4973 _ACEOF
4974 if ac_fn_cxx_try_compile "$LINENO"; then :
4975 ac_cv_prog_cxx_g=yes
4976 else
4977 CXXFLAGS=""
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4982 main ()
4986 return 0;
4988 _ACEOF
4989 if ac_fn_cxx_try_compile "$LINENO"; then :
4991 else
4992 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4993 CXXFLAGS="-g"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4998 main ()
5002 return 0;
5004 _ACEOF
5005 if ac_fn_cxx_try_compile "$LINENO"; then :
5006 ac_cv_prog_cxx_g=yes
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5016 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5017 if test "$ac_test_CXXFLAGS" = set; then
5018 CXXFLAGS=$ac_save_CXXFLAGS
5019 elif test $ac_cv_prog_cxx_g = yes; then
5020 if test "$GXX" = yes; then
5021 CXXFLAGS="-g -O2"
5022 else
5023 CXXFLAGS="-g"
5025 else
5026 if test "$GXX" = yes; then
5027 CXXFLAGS="-O2"
5028 else
5029 CXXFLAGS=
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5039 # We must set the default linker to the linker used by gcc for the correct
5040 # operation of libtool. If LD is not defined and we are using gcc, try to
5041 # set the LD default to the ld used by gcc.
5042 if test -z "$LD"; then
5043 if test "$GCC" = yes; then
5044 case $build in
5045 *-*-mingw*)
5046 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5048 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5049 esac
5050 case $gcc_prog_ld in
5051 # Accept absolute paths.
5052 [\\/]* | [A-Za-z]:[\\/]*)
5053 LD="$gcc_prog_ld" ;;
5054 esac
5058 # Check whether -static-libstdc++ -static-libgcc is supported.
5059 have_static_libs=no
5060 if test "$GCC" = yes; then
5061 saved_LDFLAGS="$LDFLAGS"
5063 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5065 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5066 ac_ext=cpp
5067 ac_cpp='$CXXCPP $CPPFLAGS'
5068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5076 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5077 #error -static-libstdc++ not implemented
5078 #endif
5079 int main() {}
5080 _ACEOF
5081 if ac_fn_cxx_try_link "$LINENO"; then :
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5083 $as_echo "yes" >&6; }; have_static_libs=yes
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5088 rm -f core conftest.err conftest.$ac_objext \
5089 conftest$ac_exeext conftest.$ac_ext
5090 ac_ext=c
5091 ac_cpp='$CPP $CPPFLAGS'
5092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097 LDFLAGS="$saved_LDFLAGS"
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5105 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$GNATBIND"; then
5112 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 GNATBIND=$ac_cv_prog_GNATBIND
5132 if test -n "$GNATBIND"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5134 $as_echo "$GNATBIND" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5142 if test -z "$ac_cv_prog_GNATBIND"; then
5143 ac_ct_GNATBIND=$GNATBIND
5144 # Extract the first word of "gnatbind", so it can be a program name with args.
5145 set dummy gnatbind; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$ac_ct_GNATBIND"; then
5152 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5167 IFS=$as_save_IFS
5171 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5172 if test -n "$ac_ct_GNATBIND"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5174 $as_echo "$ac_ct_GNATBIND" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5180 if test "x$ac_ct_GNATBIND" = x; then
5181 GNATBIND="no"
5182 else
5183 case $cross_compiling:$ac_tool_warned in
5184 yes:)
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5187 ac_tool_warned=yes ;;
5188 esac
5189 GNATBIND=$ac_ct_GNATBIND
5191 else
5192 GNATBIND="$ac_cv_prog_GNATBIND"
5195 if test -n "$ac_tool_prefix"; then
5196 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5197 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -n "$GNATMAKE"; then
5204 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5217 done
5218 done
5219 IFS=$as_save_IFS
5223 GNATMAKE=$ac_cv_prog_GNATMAKE
5224 if test -n "$GNATMAKE"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5226 $as_echo "$GNATMAKE" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5234 if test -z "$ac_cv_prog_GNATMAKE"; then
5235 ac_ct_GNATMAKE=$GNATMAKE
5236 # Extract the first word of "gnatmake", so it can be a program name with args.
5237 set dummy gnatmake; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 if test -n "$ac_ct_GNATMAKE"; then
5244 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5263 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5264 if test -n "$ac_ct_GNATMAKE"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5266 $as_echo "$ac_ct_GNATMAKE" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5272 if test "x$ac_ct_GNATMAKE" = x; then
5273 GNATMAKE="no"
5274 else
5275 case $cross_compiling:$ac_tool_warned in
5276 yes:)
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5279 ac_tool_warned=yes ;;
5280 esac
5281 GNATMAKE=$ac_ct_GNATMAKE
5283 else
5284 GNATMAKE="$ac_cv_prog_GNATMAKE"
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5288 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5289 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 cat >conftest.adb <<EOF
5293 procedure conftest is begin null; end conftest;
5295 acx_cv_cc_gcc_supports_ada=no
5296 # There is a bug in old released versions of GCC which causes the
5297 # driver to exit successfully when the appropriate language module
5298 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5299 # Therefore we must check for the error message as well as an
5300 # unsuccessful exit.
5301 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5302 # given a .adb file, but produce no object file. So we must check
5303 # if an object file was really produced to guard against this.
5304 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5305 if test x"$errors" = x && test -f conftest.$ac_objext; then
5306 acx_cv_cc_gcc_supports_ada=yes
5308 rm -f conftest.*
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5311 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5313 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5314 have_gnat=yes
5315 else
5316 have_gnat=no
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5320 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5321 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 echo abfoo >t1
5325 echo cdfoo >t2
5326 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5327 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5328 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5330 else
5331 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5334 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5335 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5337 else
5338 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5341 rm t1 t2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5345 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5346 do_compare="$gcc_cv_prog_cmp_skip"
5350 # Check whether --enable-bootstrap was given.
5351 if test "${enable_bootstrap+set}" = set; then :
5352 enableval=$enable_bootstrap;
5353 else
5354 enable_bootstrap=default
5358 # Issue errors and warnings for invalid/strange bootstrap combinations.
5359 if test -r $srcdir/gcc/configure; then
5360 have_compiler=yes
5361 else
5362 have_compiler=no
5365 case "$have_compiler:$host:$target:$enable_bootstrap" in
5366 *:*:*:no) ;;
5368 # Default behavior. Enable bootstrap if we have a compiler
5369 # and we are in a native configuration.
5370 yes:$build:$build:default)
5371 enable_bootstrap=yes ;;
5373 *:*:*:default)
5374 enable_bootstrap=no ;;
5376 # We have a compiler and we are in a native configuration, bootstrap is ok
5377 yes:$build:$build:yes)
5380 # Other configurations, but we have a compiler. Assume the user knows
5381 # what he's doing.
5382 yes:*:*:yes)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5384 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5387 # No compiler: if they passed --enable-bootstrap explicitly, fail
5388 no:*:*:yes)
5389 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5391 # Fail if wrong command line
5393 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5395 esac
5397 # Used for setting $lt_cv_objdir
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5399 $as_echo_n "checking for objdir... " >&6; }
5400 if test "${lt_cv_objdir+set}" = set; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 rm -f .libs 2>/dev/null
5404 mkdir .libs 2>/dev/null
5405 if test -d .libs; then
5406 lt_cv_objdir=.libs
5407 else
5408 # MS-DOS does not allow filenames that begin with a dot.
5409 lt_cv_objdir=_libs
5411 rmdir .libs 2>/dev/null
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5414 $as_echo "$lt_cv_objdir" >&6; }
5415 objdir=$lt_cv_objdir
5421 cat >>confdefs.h <<_ACEOF
5422 #define LT_OBJDIR "$lt_cv_objdir/"
5423 _ACEOF
5427 # Check for GMP, MPFR and MPC
5428 gmplibs="-lmpc -lmpfr -lgmp"
5429 gmpinc=
5430 have_gmp=no
5432 # Specify a location for mpc
5433 # check for this first so it ends up on the link line before mpfr.
5435 # Check whether --with-mpc was given.
5436 if test "${with_mpc+set}" = set; then :
5437 withval=$with_mpc;
5441 # Check whether --with-mpc-include was given.
5442 if test "${with_mpc_include+set}" = set; then :
5443 withval=$with_mpc_include;
5447 # Check whether --with-mpc-lib was given.
5448 if test "${with_mpc_lib+set}" = set; then :
5449 withval=$with_mpc_lib;
5453 if test "x$with_mpc" != x; then
5454 gmplibs="-L$with_mpc/lib $gmplibs"
5455 gmpinc="-I$with_mpc/include $gmpinc"
5457 if test "x$with_mpc_include" != x; then
5458 gmpinc="-I$with_mpc_include $gmpinc"
5460 if test "x$with_mpc_lib" != x; then
5461 gmplibs="-L$with_mpc_lib $gmplibs"
5463 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5464 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5465 gmpinc='-I$$s/mpc/src '"$gmpinc"
5466 # Do not test the mpc version. Assume that it is sufficient, since
5467 # it is in the source tree, and the library has not been built yet
5468 # but it would be included on the link line in the version check below
5469 # hence making the test fail.
5470 have_gmp=yes
5473 # Specify a location for mpfr
5474 # check for this first so it ends up on the link line before gmp.
5476 # Check whether --with-mpfr-dir was given.
5477 if test "${with_mpfr_dir+set}" = set; then :
5478 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5479 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5484 # Check whether --with-mpfr was given.
5485 if test "${with_mpfr+set}" = set; then :
5486 withval=$with_mpfr;
5490 # Check whether --with-mpfr-include was given.
5491 if test "${with_mpfr_include+set}" = set; then :
5492 withval=$with_mpfr_include;
5496 # Check whether --with-mpfr-lib was given.
5497 if test "${with_mpfr_lib+set}" = set; then :
5498 withval=$with_mpfr_lib;
5502 if test "x$with_mpfr" != x; then
5503 gmplibs="-L$with_mpfr/lib $gmplibs"
5504 gmpinc="-I$with_mpfr/include $gmpinc"
5506 if test "x$with_mpfr_include" != x; then
5507 gmpinc="-I$with_mpfr_include $gmpinc"
5509 if test "x$with_mpfr_lib" != x; then
5510 gmplibs="-L$with_mpfr_lib $gmplibs"
5512 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5513 # MPFR v3.1.0 moved the sources into a src sub-directory.
5514 if test -d ${srcdir}/mpfr/src; then
5515 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5516 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5517 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5518 else
5519 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5520 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5521 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5523 # Do not test the mpfr version. Assume that it is sufficient, since
5524 # it is in the source tree, and the library has not been built yet
5525 # but it would be included on the link line in the version check below
5526 # hence making the test fail.
5527 have_gmp=yes
5530 # Specify a location for gmp
5532 # Check whether --with-gmp-dir was given.
5533 if test "${with_gmp_dir+set}" = set; then :
5534 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5535 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5540 # Check whether --with-gmp was given.
5541 if test "${with_gmp+set}" = set; then :
5542 withval=$with_gmp;
5546 # Check whether --with-gmp-include was given.
5547 if test "${with_gmp_include+set}" = set; then :
5548 withval=$with_gmp_include;
5552 # Check whether --with-gmp-lib was given.
5553 if test "${with_gmp_lib+set}" = set; then :
5554 withval=$with_gmp_lib;
5559 if test "x$with_gmp" != x; then
5560 gmplibs="-L$with_gmp/lib $gmplibs"
5561 gmpinc="-I$with_gmp/include $gmpinc"
5563 if test "x$with_gmp_include" != x; then
5564 gmpinc="-I$with_gmp_include $gmpinc"
5566 if test "x$with_gmp_lib" != x; then
5567 gmplibs="-L$with_gmp_lib $gmplibs"
5569 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5570 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5571 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5572 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5573 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5574 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5575 # Do not test the gmp version. Assume that it is sufficient, since
5576 # it is in the source tree, and the library has not been built yet
5577 # but it would be included on the link line in the version check below
5578 # hence making the test fail.
5579 have_gmp=yes
5582 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5583 have_gmp=yes
5584 saved_CFLAGS="$CFLAGS"
5585 CFLAGS="$CFLAGS $gmpinc"
5586 # Check for the recommended and required versions of GMP.
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5588 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #include "gmp.h"
5594 main ()
5597 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5598 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5599 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5600 choke me
5601 #endif
5604 return 0;
5606 _ACEOF
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #include <gmp.h>
5612 main ()
5615 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5616 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5617 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5618 choke me
5619 #endif
5622 return 0;
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5627 $as_echo "yes" >&6; }
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5630 $as_echo "buggy but acceptable" >&6; }
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }; have_gmp=no
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 # If we have GMP, check the MPFR version.
5640 if test x"$have_gmp" = xyes; then
5641 # Check for the recommended and required versions of MPFR.
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5643 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #include <gmp.h>
5647 #include <mpfr.h>
5649 main ()
5652 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5653 choke me
5654 #endif
5657 return 0;
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h. */
5663 #include <gmp.h>
5664 #include <mpfr.h>
5666 main ()
5669 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5670 choke me
5671 #endif
5674 return 0;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5679 $as_echo "yes" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5682 $as_echo "buggy but acceptable" >&6; }
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }; have_gmp=no
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692 # Check for the MPC header version.
5693 if test x"$have_gmp" = xyes ; then
5694 # Check for the recommended and required versions of MPC.
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5696 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 #include <mpc.h>
5701 main ()
5704 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5705 choke me
5706 #endif
5709 return 0;
5711 _ACEOF
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <mpc.h>
5717 main ()
5720 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5721 choke me
5722 #endif
5725 return 0;
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5730 $as_echo "yes" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5733 $as_echo "buggy but acceptable" >&6; }
5735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }; have_gmp=no
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 # Now check the MPFR library.
5744 if test x"$have_gmp" = xyes; then
5745 saved_LIBS="$LIBS"
5746 LIBS="$LIBS $gmplibs"
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5748 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <mpc.h>
5753 main ()
5756 mpfr_t n;
5757 mpfr_t x;
5758 mpc_t c;
5759 int t;
5760 mpfr_init (n);
5761 mpfr_init (x);
5762 mpfr_atan2 (n, n, x, GMP_RNDN);
5763 mpfr_erfc (n, x, GMP_RNDN);
5764 mpfr_subnormalize (x, t, GMP_RNDN);
5765 mpfr_clear(n);
5766 mpfr_clear(x);
5767 mpc_init2 (c, 53);
5768 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5769 mpc_cosh (c, c, MPC_RNDNN);
5770 mpc_pow (c, c, c, MPC_RNDNN);
5771 mpc_acosh (c, c, MPC_RNDNN);
5772 mpc_clear (c);
5775 return 0;
5777 _ACEOF
5778 if ac_fn_c_try_link "$LINENO"; then :
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5780 $as_echo "yes" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }; have_gmp=no
5785 rm -f core conftest.err conftest.$ac_objext \
5786 conftest$ac_exeext conftest.$ac_ext
5787 LIBS="$saved_LIBS"
5790 CFLAGS="$saved_CFLAGS"
5792 # The library versions listed in the error message below should match
5793 # the HARD-minimums enforced above.
5794 if test x$have_gmp != xyes; then
5795 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5796 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5797 their locations. Source code for these libraries can be found at
5798 their respective hosting sites as well as at
5799 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5800 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5801 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5802 make sure that you have installed both the libraries and the header
5803 files. They may be located in separate packages." "$LINENO" 5
5807 # Flags needed for both GMP, MPFR and/or MPC.
5815 # Allow host libstdc++ to be specified for static linking with PPL.
5817 # Check whether --with-host-libstdcxx was given.
5818 if test "${with_host_libstdcxx+set}" = set; then :
5819 withval=$with_host_libstdcxx;
5823 case $with_host_libstdcxx in
5824 no|yes)
5825 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5827 esac
5829 # Libraries to use for stage1 or when not bootstrapping.
5831 # Check whether --with-stage1-libs was given.
5832 if test "${with_stage1_libs+set}" = set; then :
5833 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5834 stage1_libs=
5835 else
5836 stage1_libs=$withval
5838 else
5839 stage1_libs=$with_host_libstdcxx
5844 # Linker flags to use for stage1 or when not bootstrapping.
5846 # Check whether --with-stage1-ldflags was given.
5847 if test "${with_stage1_ldflags+set}" = set; then :
5848 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5849 stage1_ldflags=
5850 else
5851 stage1_ldflags=$withval
5853 else
5854 stage1_ldflags=
5855 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5856 # if supported. But if the user explicitly specified the libraries to use,
5857 # trust that they are doing what they want.
5858 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5859 stage1_ldflags="-static-libstdc++ -static-libgcc"
5865 # Libraries to use for stage2 and later builds. This defaults to the
5866 # argument passed to --with-host-libstdcxx.
5868 # Check whether --with-boot-libs was given.
5869 if test "${with_boot_libs+set}" = set; then :
5870 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5871 poststage1_libs=
5872 else
5873 poststage1_libs=$withval
5875 else
5876 poststage1_libs=$with_host_libstdcxx
5881 # Linker flags to use for stage2 and later builds.
5883 # Check whether --with-boot-ldflags was given.
5884 if test "${with_boot_ldflags+set}" = set; then :
5885 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5886 poststage1_ldflags=
5887 else
5888 poststage1_ldflags=$withval
5890 else
5891 poststage1_ldflags=
5892 # In stages 2 and 3, default to linking libstdc++ and libgcc
5893 # statically. But if the user explicitly specified the libraries to
5894 # use, trust that they are doing what they want.
5895 if test "$poststage1_libs" = ""; then
5896 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5902 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5903 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5904 # config/isl.m4
5907 # Check whether --with-cloog was given.
5908 if test "${with_cloog+set}" = set; then :
5909 withval=$with_cloog;
5913 # Check whether --with-isl was given.
5914 if test "${with_isl+set}" = set; then :
5915 withval=$with_isl;
5919 # Treat either --without-cloog or --without-isl as a request to disable
5920 # GRAPHITE support and skip all following checks.
5921 if test "x$with_isl" != "xno" &&
5922 test "x$with_cloog" != "xno"; then
5923 # Check for ISL
5926 # Check whether --with-isl-include was given.
5927 if test "${with_isl_include+set}" = set; then :
5928 withval=$with_isl_include;
5932 # Check whether --with-isl-lib was given.
5933 if test "${with_isl_lib+set}" = set; then :
5934 withval=$with_isl_lib;
5938 # Check whether --enable-isl-version-check was given.
5939 if test "${enable_isl_version_check+set}" = set; then :
5940 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5941 else
5942 ENABLE_ISL_CHECK=yes
5946 # Initialize isllibs and islinc.
5947 case $with_isl in
5949 isllibs=
5950 islinc=
5952 "" | yes)
5955 isllibs="-L$with_isl/lib"
5956 islinc="-I$with_isl/include"
5958 esac
5959 if test "x${with_isl_include}" != x ; then
5960 islinc="-I$with_isl_include"
5962 if test "x${with_isl_lib}" != x; then
5963 isllibs="-L$with_isl_lib"
5965 if test "x${islinc}" = x && test "x${isllibs}" = x \
5966 && test -d ${srcdir}/isl; then
5967 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5968 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5969 ENABLE_ISL_CHECK=no
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5971 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5976 if test "${ENABLE_ISL_CHECK}" = yes ; then
5977 _isl_saved_CFLAGS=$CFLAGS
5978 _isl_saved_LDFLAGS=$LDFLAGS
5979 _isl_saved_LIBS=$LIBS
5981 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5982 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5983 LIBS="${_isl_saved_LIBS} -lisl"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5986 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5987 if test "$cross_compiling" = yes; then :
5988 gcc_cv_isl=yes
5989 else
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <isl/version.h>
5993 #include <string.h>
5995 main ()
5997 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5998 return 1;
6001 return 0;
6003 _ACEOF
6004 if ac_fn_c_try_run "$LINENO"; then :
6005 gcc_cv_isl=yes
6006 else
6007 gcc_cv_isl=no
6009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6010 conftest.$ac_objext conftest.beam conftest.$ac_ext
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6014 $as_echo "$gcc_cv_isl" >&6; }
6016 CFLAGS=$_isl_saved_CFLAGS
6017 LDFLAGS=$_isl_saved_LDFLAGS
6018 LIBS=$_isl_saved_LIBS
6022 if test "${gcc_cv_isl}" = no ; then
6024 if test "${ENABLE_ISL_CHECK}" = yes ; then
6025 _isl_saved_CFLAGS=$CFLAGS
6026 _isl_saved_LDFLAGS=$LDFLAGS
6027 _isl_saved_LIBS=$LIBS
6029 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6030 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6031 LIBS="${_isl_saved_LIBS} -lisl"
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
6034 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
6035 if test "$cross_compiling" = yes; then :
6036 gcc_cv_isl=yes
6037 else
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <isl/version.h>
6041 #include <string.h>
6043 main ()
6045 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
6046 return 1;
6049 return 0;
6051 _ACEOF
6052 if ac_fn_c_try_run "$LINENO"; then :
6053 gcc_cv_isl=yes
6054 else
6055 gcc_cv_isl=no
6057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6058 conftest.$ac_objext conftest.beam conftest.$ac_ext
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6062 $as_echo "$gcc_cv_isl" >&6; }
6064 CFLAGS=$_isl_saved_CFLAGS
6065 LDFLAGS=$_isl_saved_LDFLAGS
6066 LIBS=$_isl_saved_LIBS
6070 if test "${gcc_cv_isl}" = no ; then
6072 if test "${ENABLE_ISL_CHECK}" = yes ; then
6073 _isl_saved_CFLAGS=$CFLAGS
6074 _isl_saved_LDFLAGS=$LDFLAGS
6075 _isl_saved_LIBS=$LIBS
6077 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6078 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6079 LIBS="${_isl_saved_LIBS} -lisl"
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6082 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
6083 if test "$cross_compiling" = yes; then :
6084 gcc_cv_isl=yes
6085 else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #include <isl/version.h>
6089 #include <string.h>
6091 main ()
6093 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6094 return 1;
6097 return 0;
6099 _ACEOF
6100 if ac_fn_c_try_run "$LINENO"; then :
6101 gcc_cv_isl=yes
6102 else
6103 gcc_cv_isl=no
6105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6106 conftest.$ac_objext conftest.beam conftest.$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6110 $as_echo "$gcc_cv_isl" >&6; }
6112 CFLAGS=$_isl_saved_CFLAGS
6113 LDFLAGS=$_isl_saved_LDFLAGS
6114 LIBS=$_isl_saved_LIBS
6124 if test "x${with_isl}" = xno; then
6125 graphite_requested=no
6126 elif test "x${with_isl}" != x \
6127 || test "x${with_isl_include}" != x \
6128 || test "x${with_isl_lib}" != x ; then
6129 graphite_requested=yes
6130 else
6131 graphite_requested=no
6136 if test "${gcc_cv_isl}" = no ; then
6137 isllibs=
6138 islinc=
6141 if test "${graphite_requested}" = yes \
6142 && test "x${isllibs}" = x \
6143 && test "x${islinc}" = x ; then
6145 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6150 if test "x$gcc_cv_isl" != "xno"; then
6151 # Check for CLOOG
6154 # Check whether --with-cloog-include was given.
6155 if test "${with_cloog_include+set}" = set; then :
6156 withval=$with_cloog_include;
6160 # Check whether --with-cloog-lib was given.
6161 if test "${with_cloog_lib+set}" = set; then :
6162 withval=$with_cloog_lib;
6166 # Check whether --enable-cloog-version-check was given.
6167 if test "${enable_cloog_version_check+set}" = set; then :
6168 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6169 else
6170 ENABLE_CLOOG_CHECK=yes
6174 # Initialize clooglibs and clooginc.
6175 case $with_cloog in
6177 clooglibs=
6178 clooginc=
6180 "" | yes)
6183 clooglibs="-L$with_cloog/lib"
6184 clooginc="-I$with_cloog/include"
6186 esac
6187 if test "x${with_cloog_include}" != x ; then
6188 clooginc="-I$with_cloog_include"
6190 if test "x${with_cloog_lib}" != x; then
6191 clooglibs="-L$with_cloog_lib"
6193 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6194 && test -d ${srcdir}/cloog; then
6195 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6196 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6197 ENABLE_CLOOG_CHECK=no
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6199 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6202 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6203 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6209 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6210 _cloog_saved_CFLAGS=$CFLAGS
6211 _cloog_saved_LDFLAGS=$LDFLAGS
6213 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6214 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6217 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #include "cloog/version.h"
6222 main ()
6224 #if CLOOG_VERSION_MAJOR != 0 \
6225 || CLOOG_VERSION_MINOR != 17 \
6226 || CLOOG_VERSION_REVISION < 0
6227 choke me
6228 #endif
6230 return 0;
6232 _ACEOF
6233 if ac_fn_c_try_compile "$LINENO"; then :
6234 gcc_cv_cloog=yes
6235 else
6236 gcc_cv_cloog=no
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6240 $as_echo "$gcc_cv_cloog" >&6; }
6242 CFLAGS=$_cloog_saved_CFLAGS
6243 LDFLAGS=$_cloog_saved_LDFLAGS
6247 if test "${gcc_cv_cloog}" = no ; then
6251 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6252 _cloog_saved_CFLAGS=$CFLAGS
6253 _cloog_saved_LDFLAGS=$LDFLAGS
6255 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6256 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6259 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6262 #include "cloog/version.h"
6264 main ()
6266 #if CLOOG_VERSION_MAJOR != 0 \
6267 || CLOOG_VERSION_MINOR != 18 \
6268 || CLOOG_VERSION_REVISION < 0
6269 choke me
6270 #endif
6272 return 0;
6274 _ACEOF
6275 if ac_fn_c_try_compile "$LINENO"; then :
6276 gcc_cv_cloog=yes
6277 else
6278 gcc_cv_cloog=no
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6282 $as_echo "$gcc_cv_cloog" >&6; }
6284 CFLAGS=$_cloog_saved_CFLAGS
6285 LDFLAGS=$_cloog_saved_LDFLAGS
6295 if test "x${with_cloog}" = xno; then
6296 graphite_requested=no
6297 elif test "x${with_cloog}" != x \
6298 || test "x${with_cloog_include}" != x \
6299 || test "x${with_cloog_lib}" != x ; then
6300 graphite_requested=yes
6301 else
6302 graphite_requested=no
6307 if test "${gcc_cv_cloog}" = no ; then
6308 clooglibs=
6309 clooginc=
6312 if test "${graphite_requested}" = yes \
6313 && test "x${clooglibs}" = x \
6314 && test "x${clooginc}" = x ; then
6316 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6323 # If either the ISL or the CLooG check failed, disable builds of in-tree
6324 # variants of both
6325 if test "x$with_isl" = xno ||
6326 test "x$with_cloog" = xno ||
6327 test "x$gcc_cv_cloog" = xno ||
6328 test "x$gcc_cv_isl" = xno; then
6329 noconfigdirs="$noconfigdirs cloog isl"
6330 islinc=
6331 clooginc=
6332 clooglibs=
6340 # Check for LTO support.
6341 # Check whether --enable-lto was given.
6342 if test "${enable_lto+set}" = set; then :
6343 enableval=$enable_lto; enable_lto=$enableval
6344 else
6345 enable_lto=yes; default_enable_lto=yes
6352 target_elf=no
6353 case $target in
6354 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6355 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6356 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6357 target_elf=no
6360 target_elf=yes
6362 esac
6364 if test $target_elf = yes; then :
6365 # ELF platforms build the lto-plugin always.
6366 build_lto_plugin=yes
6368 else
6369 if test x"$default_enable_lto" = x"yes" ; then
6370 case $target in
6371 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6372 # On other non-ELF platforms, LTO has yet to be validated.
6373 *) enable_lto=no ;;
6374 esac
6375 else
6376 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6377 # It would also be nice to check the binutils support, but we don't
6378 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6379 # warn during gcc/ subconfigure; unless you're bootstrapping with
6380 # -flto it won't be needed until after installation anyway.
6381 case $target in
6382 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6383 *) if test x"$enable_lto" = x"yes"; then
6384 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6387 esac
6389 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6390 # Build it unless LTO was explicitly disabled.
6391 case $target in
6392 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6393 *) ;;
6394 esac
6400 # By default, C and C++ are the only stage 1 languages.
6401 stage1_languages=,c,
6403 # Target libraries that we bootstrap.
6404 bootstrap_target_libs=,target-libgcc,
6406 # Figure out what language subdirectories are present.
6407 # Look if the user specified --enable-languages="..."; if not, use
6408 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6409 # go away some day.
6410 # NB: embedded tabs in this IF block -- do not untabify
6411 if test -d ${srcdir}/gcc; then
6412 if test x"${enable_languages+set}" != xset; then
6413 if test x"${LANGUAGES+set}" = xset; then
6414 enable_languages="${LANGUAGES}"
6415 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6416 else
6417 enable_languages=all
6419 else
6420 if test x"${enable_languages}" = x ||
6421 test x"${enable_languages}" = xyes;
6422 then
6423 echo configure.in: --enable-languages needs at least one language argument 1>&2
6424 exit 1
6427 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6429 # 'f95' is the old name for the 'fortran' language. We issue a warning
6430 # and make the substitution.
6431 case ,${enable_languages}, in
6432 *,f95,*)
6433 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6434 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6436 esac
6438 # If bootstrapping, C++ must be enabled.
6439 case ",$enable_languages,:$enable_bootstrap" in
6440 *,c++,*:*) ;;
6441 *:yes)
6442 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6443 enable_languages="${enable_languages},c++"
6444 else
6445 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6448 esac
6450 # First scan to see if an enabled language requires some other language.
6451 # We assume that a given config-lang.in will list all the language
6452 # front ends it requires, even if some are required indirectly.
6453 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6454 case ${lang_frag} in
6455 ..) ;;
6456 # The odd quoting in the next line works around
6457 # an apparent bug in bash 1.12 on linux.
6458 ${srcdir}/gcc/[*]/config-lang.in) ;;
6460 # From the config-lang.in, get $language, $lang_requires, and
6461 # $lang_requires_boot_languages.
6462 language=
6463 lang_requires=
6464 lang_requires_boot_languages=
6465 . ${lang_frag}
6466 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6467 case ,${enable_languages}, in
6468 *,$other,*) ;;
6469 *,all,*) ;;
6470 *,$language,*)
6471 echo " \`$other' language required by \`$language'; enabling" 1>&2
6472 enable_languages="${enable_languages},${other}"
6474 esac
6475 done
6476 for other in ${lang_requires_boot_languages} ; do
6477 if test "$other" != "c"; then
6478 case ,${enable_stage1_languages}, in
6479 *,$other,*) ;;
6480 *,all,*) ;;
6482 case ,${enable_languages}, in
6483 *,$language,*)
6484 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6485 enable_stage1_languages="$enable_stage1_languages,${other}"
6487 esac
6489 esac
6491 done
6493 esac
6494 done
6496 new_enable_languages=,c,
6498 # If LTO is enabled, add the LTO front end.
6499 extra_host_libiberty_configure_flags=
6500 if test "$enable_lto" = "yes" ; then
6501 case ,${enable_languages}, in
6502 *,lto,*) ;;
6503 *) enable_languages="${enable_languages},lto" ;;
6504 esac
6505 if test "${build_lto_plugin}" = "yes" ; then
6506 configdirs="$configdirs lto-plugin"
6507 extra_host_libiberty_configure_flags=--enable-shared
6512 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6513 potential_languages=,c,
6515 enabled_target_libs=
6516 disabled_target_libs=
6518 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6519 case ${lang_frag} in
6520 ..) ;;
6521 # The odd quoting in the next line works around
6522 # an apparent bug in bash 1.12 on linux.
6523 ${srcdir}/gcc/[*]/config-lang.in) ;;
6525 # From the config-lang.in, get $language, $target_libs,
6526 # $lang_dirs, $boot_language, and $build_by_default
6527 language=
6528 target_libs=
6529 lang_dirs=
6530 subdir_requires=
6531 boot_language=no
6532 build_by_default=yes
6533 . ${lang_frag}
6534 if test x${language} = x; then
6535 echo "${lang_frag} doesn't set \$language." 1>&2
6536 exit 1
6539 if test "$language" = "c++"; then
6540 boot_language=yes
6543 add_this_lang=no
6544 case ,${enable_languages}, in
6545 *,${language},*)
6546 # Language was explicitly selected; include it
6547 # unless it is C, which is enabled by default.
6548 if test "$language" != "c"; then
6549 add_this_lang=yes
6552 *,all,*)
6553 # 'all' was selected, select it if it is a default language
6554 if test "$language" != "c"; then
6555 add_this_lang=${build_by_default}
6558 esac
6560 # Disable languages that need other directories if these aren't available.
6561 for i in $subdir_requires; do
6562 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6563 case ,${enable_languages}, in
6564 *,${language},*)
6565 # Specifically requested language; tell them.
6566 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6569 # Silently disable.
6570 add_this_lang=unsupported
6572 esac
6573 done
6575 # Disable Ada if no preexisting GNAT is available.
6576 case ,${enable_languages},:${language}:${have_gnat} in
6577 *,${language},*:ada:no)
6578 # Specifically requested language; tell them.
6579 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6581 *:ada:no)
6582 # Silently disable.
6583 add_this_lang=unsupported
6585 esac
6587 # Disable a language that is unsupported by the target.
6588 case " $unsupported_languages " in
6589 *" $language "*)
6590 add_this_lang=unsupported
6592 esac
6594 case $add_this_lang in
6595 unsupported)
6596 # Remove language-dependent dirs.
6597 disabled_target_libs="$disabled_target_libs $target_libs"
6598 noconfigdirs="$noconfigdirs $lang_dirs"
6601 # Remove language-dependent dirs; still show language as supported.
6602 disabled_target_libs="$disabled_target_libs $target_libs"
6603 noconfigdirs="$noconfigdirs $lang_dirs"
6604 potential_languages="${potential_languages}${language},"
6606 yes)
6607 new_enable_languages="${new_enable_languages}${language},"
6608 potential_languages="${potential_languages}${language},"
6609 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6610 enabled_target_libs="$enabled_target_libs $target_libs"
6611 case "${boot_language}:,$enable_stage1_languages," in
6612 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6613 # Add to (comma-separated) list of stage 1 languages.
6614 case ",$stage1_languages," in
6615 *,$language,* | ,yes, | ,all,) ;;
6616 *) stage1_languages="${stage1_languages}${language}," ;;
6617 esac
6618 # We need to bootstrap any supporting libraries.
6619 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6621 esac
6623 esac
6625 esac
6626 done
6628 # Add target libraries which are only needed for disabled languages
6629 # to noconfigdirs.
6630 if test -n "$disabled_target_libs"; then
6631 for dir in $disabled_target_libs; do
6632 case " $enabled_target_libs " in
6633 *" ${dir} "*) ;;
6634 *) noconfigdirs="$noconfigdirs $dir" ;;
6635 esac
6636 done
6639 # Check whether --enable-stage1-languages was given.
6640 if test "${enable_stage1_languages+set}" = set; then :
6641 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6642 ,no,|,,)
6643 # Set it to something that will have no effect in the loop below
6644 enable_stage1_languages=c ;;
6645 ,yes,)
6646 enable_stage1_languages=`echo $new_enable_languages | \
6647 sed -e "s/^,//" -e "s/,$//" ` ;;
6648 *,all,*)
6649 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6650 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6651 esac
6653 # Add "good" languages from enable_stage1_languages to stage1_languages,
6654 # while "bad" languages go in missing_languages. Leave no duplicates.
6655 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6656 case $potential_languages in
6657 *,$i,*)
6658 case $stage1_languages in
6659 *,$i,*) ;;
6660 *) stage1_languages="$stage1_languages$i," ;;
6661 esac ;;
6663 case $missing_languages in
6664 *,$i,*) ;;
6665 *) missing_languages="$missing_languages$i," ;;
6666 esac ;;
6667 esac
6668 done
6672 # Remove leading/trailing commas that were added for simplicity
6673 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6674 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6675 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6676 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6678 if test "x$missing_languages" != x; then
6679 as_fn_error "
6680 The following requested languages could not be built: ${missing_languages}
6681 Supported languages are: ${potential_languages}" "$LINENO" 5
6683 if test "x$new_enable_languages" != "x$enable_languages"; then
6684 echo The following languages will be built: ${new_enable_languages}
6685 enable_languages="$new_enable_languages"
6689 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6692 # Handle --disable-<component> generically.
6693 for dir in $configdirs $build_configdirs $target_configdirs ; do
6694 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6695 varname=`echo $dirname | sed -e s/+/_/g`
6696 if eval test x\${enable_${varname}} "=" xno ; then
6697 noconfigdirs="$noconfigdirs $dir"
6699 done
6701 # Check for Boehm's garbage collector
6702 # Check whether --enable-objc-gc was given.
6703 if test "${enable_objc_gc+set}" = set; then :
6704 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6705 *,objc,*:*:yes:*target-boehm-gc*)
6706 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6708 esac
6712 # Make sure we only build Boehm's garbage collector if required.
6713 case ,${enable_languages},:${enable_objc_gc} in
6714 *,objc,*:yes)
6715 # Keep target-boehm-gc if requested for Objective-C.
6718 # Otherwise remove target-boehm-gc depending on target-libjava.
6719 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6720 noconfigdirs="$noconfigdirs target-boehm-gc"
6723 esac
6725 # Disable libitm, libsanitizer, libvtv if we're not building C++
6726 case ,${enable_languages}, in
6727 *,c++,*) ;;
6729 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6731 esac
6733 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6734 # $build_configdirs and $target_configdirs.
6735 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6737 notsupp=""
6738 for dir in . $skipdirs $noconfigdirs ; do
6739 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6740 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6741 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6742 if test -r $srcdir/$dirname/configure ; then
6743 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6744 true
6745 else
6746 notsupp="$notsupp $dir"
6750 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6751 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6752 if test -r $srcdir/$dirname/configure ; then
6753 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6754 true
6755 else
6756 notsupp="$notsupp $dir"
6760 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6761 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6762 if test -r $srcdir/$dirname/configure ; then
6763 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6764 true
6765 else
6766 notsupp="$notsupp $dir"
6770 done
6772 # Quietly strip out all directories which aren't configurable in this tree.
6773 # This relies on all configurable subdirectories being autoconfiscated, which
6774 # is now the case.
6775 build_configdirs_all="$build_configdirs"
6776 build_configdirs=
6777 for i in ${build_configdirs_all} ; do
6778 j=`echo $i | sed -e s/build-//g`
6779 if test -f ${srcdir}/$j/configure ; then
6780 build_configdirs="${build_configdirs} $i"
6782 done
6784 configdirs_all="$configdirs"
6785 configdirs=
6786 for i in ${configdirs_all} ; do
6787 case $i in
6788 accel-gcc)
6789 confsrcdir=gcc
6792 confsrcdir=$i
6794 esac
6795 if test -f ${srcdir}/${confsrcdir}/configure ; then
6796 configdirs="${configdirs} $i"
6798 done
6800 target_configdirs_all="$target_configdirs"
6801 target_configdirs=
6802 for i in ${target_configdirs_all} ; do
6803 j=`echo $i | sed -e s/target-//g`
6804 if test -f ${srcdir}/$j/configure ; then
6805 target_configdirs="${target_configdirs} $i"
6807 done
6809 # Produce a warning message for the subdirs we can't configure.
6810 # This isn't especially interesting in the Cygnus tree, but in the individual
6811 # FSF releases, it's important to let people know when their machine isn't
6812 # supported by the one or two programs in a package.
6814 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6815 # If $appdirs is non-empty, at least one of those directories must still
6816 # be configured, or we error out. (E.g., if the gas release supports a
6817 # specified target in some subdirs but not the gas subdir, we shouldn't
6818 # pretend that all is well.)
6819 if test -n "$appdirs" ; then
6820 for dir in $appdirs ; do
6821 if test -r $dir/Makefile.in ; then
6822 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6823 appdirs=""
6824 break
6826 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6827 appdirs=""
6828 break
6831 done
6832 if test -n "$appdirs" ; then
6833 echo "*** This configuration is not supported by this package." 1>&2
6834 exit 1
6837 # Okay, some application will build, or we don't care to check. Still
6838 # notify of subdirs not getting built.
6839 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6840 echo " ${notsupp}" 1>&2
6841 echo " (Any other directories should still work fine.)" 1>&2
6844 case "$host" in
6845 *msdosdjgpp*)
6846 enable_gdbtk=no ;;
6847 esac
6849 # To find our prefix, in gcc_cv_tool_prefix.
6851 # The user is always right.
6852 if test "${PATH_SEPARATOR+set}" != set; then
6853 echo "#! /bin/sh" >conf$$.sh
6854 echo "exit 0" >>conf$$.sh
6855 chmod +x conf$$.sh
6856 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6857 PATH_SEPARATOR=';'
6858 else
6859 PATH_SEPARATOR=:
6861 rm -f conf$$.sh
6866 if test "x$exec_prefix" = xNONE; then
6867 if test "x$prefix" = xNONE; then
6868 gcc_cv_tool_prefix=$ac_default_prefix
6869 else
6870 gcc_cv_tool_prefix=$prefix
6872 else
6873 gcc_cv_tool_prefix=$exec_prefix
6876 # If there is no compiler in the tree, use the PATH only. In any
6877 # case, if there is no compiler in the tree nobody should use
6878 # AS_FOR_TARGET and LD_FOR_TARGET.
6879 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6880 gcc_version=`cat $srcdir/gcc/BASE-VER`
6881 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6882 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6883 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6884 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6885 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6886 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6887 else
6888 gcc_cv_tool_dirs=
6891 if test x$build = x$target && test -n "$md_exec_prefix"; then
6892 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6897 copy_dirs=
6900 # Check whether --with-build-sysroot was given.
6901 if test "${with_build_sysroot+set}" = set; then :
6902 withval=$with_build_sysroot; if test x"$withval" != x ; then
6903 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6905 else
6906 SYSROOT_CFLAGS_FOR_TARGET=
6912 # Check whether --with-debug-prefix-map was given.
6913 if test "${with_debug_prefix_map+set}" = set; then :
6914 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6915 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6916 for debug_map in $withval; do
6917 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6918 done
6920 else
6921 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6926 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6927 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6928 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6929 # We want to ensure that TARGET libraries (which we know are built with
6930 # gcc) are built with "-O2 -g", so include those options when setting
6931 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6932 if test "x$CFLAGS_FOR_TARGET" = x; then
6933 CFLAGS_FOR_TARGET=$CFLAGS
6934 case " $CFLAGS " in
6935 *" -O2 "*) ;;
6936 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6937 esac
6938 case " $CFLAGS " in
6939 *" -g "* | *" -g3 "*) ;;
6940 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6941 esac
6945 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6946 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6947 case " $CXXFLAGS " in
6948 *" -O2 "*) ;;
6949 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6950 esac
6951 case " $CXXFLAGS " in
6952 *" -g "* | *" -g3 "*) ;;
6953 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6954 esac
6960 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6961 # the named directory are copied to $(tooldir)/sys-include.
6962 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6963 if test x${is_cross_compiler} = xno ; then
6964 echo 1>&2 '***' --with-headers is only supported when cross compiling
6965 exit 1
6967 if test x"${with_headers}" != xyes ; then
6968 x=${gcc_cv_tool_prefix}
6969 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6973 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6974 # the name directories are copied to $(tooldir)/lib. Multiple directories
6975 # are permitted.
6976 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6977 if test x${is_cross_compiler} = xno ; then
6978 echo 1>&2 '***' --with-libs is only supported when cross compiling
6979 exit 1
6981 if test x"${with_libs}" != xyes ; then
6982 # Copy the libraries in reverse order, so that files in the first named
6983 # library override files in subsequent libraries.
6984 x=${gcc_cv_tool_prefix}
6985 for l in ${with_libs}; do
6986 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6987 done
6991 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6993 # This is done by determining whether or not the appropriate directory
6994 # is available, and by checking whether or not specific configurations
6995 # have requested that this magic not happen.
6997 # The command line options always override the explicit settings in
6998 # configure.in, and the settings in configure.in override this magic.
7000 # If the default for a toolchain is to use GNU as and ld, and you don't
7001 # want to do that, then you should use the --without-gnu-as and
7002 # --without-gnu-ld options for the configure script. Similarly, if
7003 # the default is to use the included zlib and you don't want to do that,
7004 # you should use the --with-system-zlib option for the configure script.
7006 if test x${use_gnu_as} = x &&
7007 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7008 with_gnu_as=yes
7009 extra_host_args="$extra_host_args --with-gnu-as"
7012 if test x${use_gnu_ld} = x &&
7013 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
7014 with_gnu_ld=yes
7015 extra_host_args="$extra_host_args --with-gnu-ld"
7018 if test x${use_included_zlib} = x &&
7019 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7021 else
7022 with_system_zlib=yes
7023 extra_host_args="$extra_host_args --with-system-zlib"
7026 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7027 # can detect this case.
7029 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7030 with_newlib=yes
7031 extra_host_args="$extra_host_args --with-newlib"
7034 # Handle ${copy_dirs}
7035 set fnord ${copy_dirs}
7036 shift
7037 while test $# != 0 ; do
7038 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7040 else
7041 echo Copying $1 to $2
7043 # Use the install script to create the directory and all required
7044 # parent directories.
7045 if test -d $2 ; then
7047 else
7048 echo >config.temp
7049 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7052 # Copy the directory, assuming we have tar.
7053 # FIXME: Should we use B in the second tar? Not all systems support it.
7054 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7056 # It is the responsibility of the user to correctly adjust all
7057 # symlinks. If somebody can figure out how to handle them correctly
7058 # here, feel free to add the code.
7060 echo $1 > $2/COPIED
7062 shift; shift
7063 done
7065 # Determine a target-dependent exec_prefix that the installed
7066 # gcc will search in. Keep this list sorted by triplet, with
7067 # the *-*-osname triplets last.
7068 md_exec_prefix=
7069 case "${target}" in
7070 i[34567]86-pc-msdosdjgpp*)
7071 md_exec_prefix=/dev/env/DJDIR/bin
7073 *-*-hpux* | \
7074 *-*-nto-qnx* | \
7075 *-*-solaris2*)
7076 md_exec_prefix=/usr/ccs/bin
7078 esac
7080 extra_arflags_for_target=
7081 extra_nmflags_for_target=
7082 extra_ranlibflags_for_target=
7083 target_makefile_frag=/dev/null
7084 case "${target}" in
7085 spu-*-*)
7086 target_makefile_frag="config/mt-spu"
7088 mips*-sde-elf* | mips*-mti-elf*)
7089 target_makefile_frag="config/mt-sde"
7091 mipsisa*-*-elfoabi*)
7092 target_makefile_frag="config/mt-mips-elfoabi"
7094 mips*-*-*linux* | mips*-*-gnu*)
7095 target_makefile_frag="config/mt-mips-gnu"
7097 nios2-*-elf*)
7098 target_makefile_frag="config/mt-nios2-elf"
7100 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7101 target_makefile_frag="config/mt-gnu"
7103 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7104 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7105 # commands to handle both 32-bit and 64-bit objects. These flags are
7106 # harmless if we're using GNU nm or ar.
7107 extra_arflags_for_target=" -X32_64"
7108 extra_nmflags_for_target=" -B -X32_64"
7110 esac
7112 alphaieee_frag=/dev/null
7113 case $target in
7114 alpha*-*-*)
7115 # This just makes sure to use the -mieee option to build target libs.
7116 # This should probably be set individually by each library.
7117 alphaieee_frag="config/mt-alphaieee"
7119 esac
7121 # If --enable-target-optspace always use -Os instead of -O2 to build
7122 # the target libraries, similarly if it is not specified, use -Os
7123 # on selected platforms.
7124 ospace_frag=/dev/null
7125 case "${enable_target_optspace}:${target}" in
7126 yes:*)
7127 ospace_frag="config/mt-ospace"
7129 :d30v-*)
7130 ospace_frag="config/mt-d30v"
7132 :m32r-* | :d10v-* | :fr30-*)
7133 ospace_frag="config/mt-ospace"
7135 no:* | :*)
7138 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7140 esac
7142 # Some systems (e.g., one of the i386-aix systems the gas testers are
7143 # using) don't handle "\$" correctly, so don't use it here.
7144 tooldir='${exec_prefix}'/${target_noncanonical}
7145 build_tooldir=${tooldir}
7147 # Create a .gdbinit file which runs the one in srcdir
7148 # and tells GDB to look there for source files.
7150 if test -r ${srcdir}/.gdbinit ; then
7151 case ${srcdir} in
7152 .) ;;
7153 *) cat > ./.gdbinit <<EOF
7154 # ${NO_EDIT}
7155 dir ${srcdir}
7156 dir .
7157 source ${srcdir}/.gdbinit
7160 esac
7163 # Make sure that the compiler is able to generate an executable. If it
7164 # can't, we are probably in trouble. We don't care whether we can run the
7165 # executable--we might be using a cross compiler--we only care whether it
7166 # can be created. At this point the main configure script has set CC.
7167 we_are_ok=no
7168 echo "int main () { return 0; }" > conftest.c
7169 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7170 if test $? = 0 ; then
7171 if test -s conftest || test -s conftest.exe ; then
7172 we_are_ok=yes
7175 case $we_are_ok in
7177 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7178 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7179 rm -f conftest*
7180 exit 1
7182 esac
7183 rm -f conftest*
7185 # Decide which environment variable is used to find dynamic libraries.
7186 case "${host}" in
7187 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7188 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7189 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7190 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7191 esac
7193 # On systems where the dynamic library environment variable is PATH,
7194 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7195 # built executables to PATH.
7196 if test "$RPATH_ENVVAR" = PATH; then
7197 GCC_SHLIB_SUBDIR=/shlib
7198 else
7199 GCC_SHLIB_SUBDIR=
7202 # Adjust the toplevel makefile according to whether bootstrap was selected.
7203 case $enable_bootstrap in
7204 yes)
7205 bootstrap_suffix=bootstrap
7206 BUILD_CONFIG=bootstrap-debug
7209 bootstrap_suffix=no-bootstrap
7210 BUILD_CONFIG=
7212 esac
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7215 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7218 # Check whether --with-build-config was given.
7219 if test "${with_build_config+set}" = set; then :
7220 withval=$with_build_config; case $with_build_config in
7221 yes) with_build_config= ;;
7222 no) with_build_config= BUILD_CONFIG= ;;
7223 esac
7227 if test "x${with_build_config}" != x; then
7228 BUILD_CONFIG=$with_build_config
7229 else
7230 case $BUILD_CONFIG in
7231 bootstrap-debug)
7232 if echo "int f (void) { return 0; }" > conftest.c &&
7233 ${CC} -c conftest.c &&
7234 mv conftest.o conftest.o.g0 &&
7235 ${CC} -c -g conftest.c &&
7236 mv conftest.o conftest.o.g &&
7237 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7239 else
7240 BUILD_CONFIG=
7242 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7244 esac
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7247 $as_echo "$BUILD_CONFIG" >&6; }
7250 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7252 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7253 # Check whether --enable-vtable-verify was given.
7254 if test "${enable_vtable_verify+set}" = set; then :
7255 enableval=$enable_vtable_verify; case "$enableval" in
7256 yes) enable_vtable_verify=yes ;;
7257 no) enable_vtable_verify=no ;;
7258 *) enable_vtable_verify=no;;
7259 esac
7260 else
7261 enable_vtable_verify=no
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7265 $as_echo "$enable_vtable_verify" >&6; }
7267 # Record target_configdirs and the configure arguments for target and
7268 # build configuration in Makefile.
7269 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7270 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7271 bootstrap_fixincludes=no
7273 # If we are building libgomp, bootstrap it.
7274 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7275 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7278 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7279 # or bootstrap-ubsan, bootstrap it.
7280 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7281 case "$BUILD_CONFIG" in
7282 *bootstrap-asan* | *bootstrap-ubsan* )
7283 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7284 bootstrap_fixincludes=yes
7286 esac
7289 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7290 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7291 test "$enable_vtable_verify" != no; then
7292 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7295 # Determine whether gdb needs tk/tcl or not.
7296 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7297 # and in that case we want gdb to be built without tk. Ugh!
7298 # In fact I believe gdb is the *only* package directly dependent on tk,
7299 # so we should be able to put the 'maybe's in unconditionally and
7300 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7301 # 100% sure that that's safe though.
7303 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7304 case "$enable_gdbtk" in
7306 GDB_TK="" ;;
7307 yes)
7308 GDB_TK="${gdb_tk}" ;;
7310 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7311 # distro. Eventually someone will fix this and move Insight, nee
7312 # gdbtk to a separate directory.
7313 if test -d ${srcdir}/gdb/gdbtk ; then
7314 GDB_TK="${gdb_tk}"
7315 else
7316 GDB_TK=""
7319 esac
7320 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7321 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7323 # Strip out unwanted targets.
7325 # While at that, we remove Makefiles if we were started for recursive
7326 # configuration, so that the top-level Makefile reconfigures them,
7327 # like we used to do when configure itself was recursive.
7329 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7330 # but now we're fixing up the Makefile ourselves with the additional
7331 # commands passed to AC_CONFIG_FILES. Use separate variables
7332 # extrasub-{build,host,target} not because there is any reason to split
7333 # the substitutions up that way, but only to remain below the limit of
7334 # 99 commands in a script, for HP-UX sed.
7335 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7337 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7338 yes:yes:*\ gold\ *:*,c++,*) ;;
7339 yes:yes:*\ gold\ *:*)
7340 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7342 esac
7344 extrasub_build=
7345 for module in ${build_configdirs} ; do
7346 if test -z "${no_recursion}" \
7347 && test -f ${build_subdir}/${module}/Makefile; then
7348 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7349 rm -f ${build_subdir}/${module}/Makefile
7351 extrasub_build="$extrasub_build
7352 /^@if build-$module\$/d
7353 /^@endif build-$module\$/d
7354 /^@if build-$module-$bootstrap_suffix\$/d
7355 /^@endif build-$module-$bootstrap_suffix\$/d"
7356 done
7357 extrasub_host=
7358 for module in ${configdirs} ; do
7359 if test -z "${no_recursion}"; then
7360 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7361 if test -f ${file}; then
7362 echo 1>&2 "*** removing ${file} to force reconfigure"
7363 rm -f ${file}
7365 done
7367 case ${module},${bootstrap_fixincludes} in
7368 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7369 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7370 esac
7371 extrasub_host="$extrasub_host
7372 /^@if $module\$/d
7373 /^@endif $module\$/d
7374 /^@if $module-$host_bootstrap_suffix\$/d
7375 /^@endif $module-$host_bootstrap_suffix\$/d"
7376 done
7377 extrasub_target=
7378 for module in ${target_configdirs} ; do
7379 if test -z "${no_recursion}" \
7380 && test -f ${target_subdir}/${module}/Makefile; then
7381 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7382 rm -f ${target_subdir}/${module}/Makefile
7385 # We only bootstrap target libraries listed in bootstrap_target_libs.
7386 case $bootstrap_target_libs in
7387 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7388 *) target_bootstrap_suffix=no-bootstrap ;;
7389 esac
7391 extrasub_target="$extrasub_target
7392 /^@if target-$module\$/d
7393 /^@endif target-$module\$/d
7394 /^@if target-$module-$target_bootstrap_suffix\$/d
7395 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7396 done
7398 # Do the final fixup along with target modules.
7399 extrasub_target="$extrasub_target
7400 /^@if /,/^@endif /d"
7402 # Create the serialization dependencies. This uses a temporary file.
7404 # Check whether --enable-serial-configure was given.
7405 if test "${enable_serial_configure+set}" = set; then :
7406 enableval=$enable_serial_configure;
7410 case ${enable_serial_configure} in
7411 yes)
7412 enable_serial_build_configure=yes
7413 enable_serial_host_configure=yes
7414 enable_serial_target_configure=yes
7416 esac
7418 # These force 'configure's to be done one at a time, to avoid problems
7419 # with contention over a shared config.cache.
7420 rm -f serdep.tmp
7421 echo '# serdep.tmp' > serdep.tmp
7422 olditem=
7423 test "x${enable_serial_build_configure}" = xyes &&
7424 for item in ${build_configdirs} ; do
7425 case ${olditem} in
7426 "") ;;
7427 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7428 esac
7429 olditem=${item}
7430 done
7431 olditem=
7432 test "x${enable_serial_host_configure}" = xyes &&
7433 for item in ${configdirs} ; do
7434 case ${olditem} in
7435 "") ;;
7436 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7437 esac
7438 olditem=${item}
7439 done
7440 olditem=
7441 test "x${enable_serial_target_configure}" = xyes &&
7442 for item in ${target_configdirs} ; do
7443 case ${olditem} in
7444 "") ;;
7445 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7446 esac
7447 olditem=${item}
7448 done
7449 serialization_dependencies=serdep.tmp
7452 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7453 # target, nonopt, and variable assignments. These are the ones we
7454 # might not want to pass down to subconfigures. The exception being
7455 # --cache-file=/dev/null, which is used to turn off the use of cache
7456 # files altogether, and which should be passed on to subconfigures.
7457 # Also strip program-prefix, program-suffix, and program-transform-name,
7458 # so that we can pass down a consistent program-transform-name.
7459 baseargs=
7460 tbaseargs=
7461 keep_next=no
7462 skip_next=no
7463 eval "set -- $ac_configure_args"
7464 for ac_arg
7466 if test X"$skip_next" = X"yes"; then
7467 skip_next=no
7468 continue
7470 if test X"$keep_next" = X"yes"; then
7471 case $ac_arg in
7472 *\'*)
7473 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7474 esac
7475 baseargs="$baseargs '$ac_arg'"
7476 tbaseargs="$tbaseargs '$ac_arg'"
7477 keep_next=no
7478 continue
7481 # Handle separated arguments. Based on the logic generated by
7482 # autoconf 2.59.
7483 case $ac_arg in
7484 *=* | --config-cache | -C | -disable-* | --disable-* \
7485 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7486 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7487 | -with-* | --with-* | -without-* | --without-* | --x)
7488 separate_arg=no
7491 separate_arg=yes
7494 separate_arg=no
7496 esac
7498 skip_targ=no
7499 case $ac_arg in
7501 --with-* | --without-*)
7502 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7504 case $libopt in
7505 *[-_]include)
7506 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7508 *[-_]lib)
7509 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7512 lib=$libopt
7514 esac
7517 case $lib in
7518 mpc | mpfr | gmp | cloog)
7519 # If we're processing --with-$lib, --with-$lib-include or
7520 # --with-$lib-lib, for one of the libs above, and target is
7521 # different from host, don't pass the current argument to any
7522 # target library's configure.
7523 if test x$is_cross_compiler = xyes; then
7524 skip_targ=yes
7527 esac
7529 esac
7531 case "$ac_arg" in
7532 --cache-file=/dev/null | \
7533 -cache-file=/dev/null )
7534 # Handled here to avoid the test to skip args below.
7535 baseargs="$baseargs '$ac_arg'"
7536 tbaseargs="$tbaseargs '$ac_arg'"
7537 # Assert: $separate_arg should always be no.
7538 keep_next=$separate_arg
7540 --no*)
7541 continue
7543 --c* | \
7544 --sr* | \
7545 --ho* | \
7546 --bu* | \
7547 --t* | \
7548 --program-* | \
7549 -cache_file* | \
7550 -srcdir* | \
7551 -host* | \
7552 -build* | \
7553 -target* | \
7554 -program-prefix* | \
7555 -program-suffix* | \
7556 -program-transform-name* )
7557 skip_next=$separate_arg
7558 continue
7561 # An option. Add it.
7562 case $ac_arg in
7563 *\'*)
7564 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7565 esac
7566 baseargs="$baseargs '$ac_arg'"
7567 if test X"$skip_targ" = Xno; then
7568 tbaseargs="$tbaseargs '$ac_arg'"
7570 keep_next=$separate_arg
7573 # Either a variable assignment, or a nonopt (triplet). Don't
7574 # pass it down; let the Makefile handle this.
7575 continue
7577 esac
7578 done
7579 # Remove the initial space we just introduced and, as these will be
7580 # expanded by make, quote '$'.
7581 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7583 # Add in --program-transform-name, after --program-prefix and
7584 # --program-suffix have been applied to it. Autoconf has already
7585 # doubled dollar signs and backslashes in program_transform_name; we want
7586 # the backslashes un-doubled, and then the entire thing wrapped in single
7587 # quotes, because this will be expanded first by make and then by the shell.
7588 # Also, because we want to override the logic in subdir configure scripts to
7589 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7590 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7591 ${program_transform_name}
7592 EOF_SED
7593 gcc_transform_name=`cat conftestsed.out`
7594 rm -f conftestsed.out
7595 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7596 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7597 if test "$silent" = yes; then
7598 baseargs="$baseargs --silent"
7599 tbaseargs="$tbaseargs --silent"
7601 baseargs="$baseargs --disable-option-checking"
7602 tbaseargs="$tbaseargs --disable-option-checking"
7604 # Record and document user additions to sub configure arguments.
7609 # For the build-side libraries, we just need to pretend we're native,
7610 # and not use the same cache file. Multilibs are neither needed nor
7611 # desired.
7612 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7614 # For host modules, accept cache file option, or specification as blank.
7615 case "${cache_file}" in
7616 "") # empty
7617 cache_file_option="" ;;
7618 /* | [A-Za-z]:[\\/]* ) # absolute path
7619 cache_file_option="--cache-file=${cache_file}" ;;
7620 *) # relative path
7621 cache_file_option="--cache-file=../${cache_file}" ;;
7622 esac
7624 # Host dirs don't like to share a cache file either, horribly enough.
7625 # This seems to be due to autoconf 2.5x stupidity.
7626 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7628 target_configargs="$target_configargs ${tbaseargs}"
7630 # Passing a --with-cross-host argument lets the target libraries know
7631 # whether they are being built with a cross-compiler or being built
7632 # native. However, it would be better to use other mechanisms to make the
7633 # sorts of decisions they want to make on this basis. Please consider
7634 # this option to be deprecated. FIXME.
7635 if test x${is_cross_compiler} = xyes ; then
7636 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7639 # Special user-friendly check for native x86_64-linux build, if
7640 # multilib is not explicitly enabled.
7641 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7642 x86_64-*linux*:yes:$build:$build:)
7643 # Make sure we have a developement environment that handles 32-bit
7644 dev64=no
7645 echo "int main () { return 0; }" > conftest.c
7646 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7647 if test $? = 0 ; then
7648 if test -s conftest || test -s conftest.exe ; then
7649 dev64=yes
7652 rm -f conftest*
7653 if test x${dev64} != xyes ; then
7654 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7657 esac
7659 # Default to --enable-multilib.
7660 if test x${enable_multilib} = x ; then
7661 target_configargs="--enable-multilib ${target_configargs}"
7664 # Pass --with-newlib if appropriate. Note that target_configdirs has
7665 # changed from the earlier setting of with_newlib.
7666 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7667 target_configargs="--with-newlib ${target_configargs}"
7670 # Different target subdirs use different values of certain variables
7671 # (notably CXX). Worse, multilibs use *lots* of different values.
7672 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7673 # it doesn't automatically accept command-line overrides of them.
7674 # This means it's not safe for target subdirs to share a cache file,
7675 # which is disgusting, but there you have it. Hopefully this can be
7676 # fixed in future. It's still worthwhile to use a cache file for each
7677 # directory. I think.
7679 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7680 # We need to pass --target, as newer autoconf's requires consistency
7681 # for target_alias and gcc doesn't manage it consistently.
7682 target_configargs="--cache-file=./config.cache ${target_configargs}"
7684 FLAGS_FOR_TARGET=
7685 case " $target_configdirs " in
7686 *" newlib "*)
7687 case " $target_configargs " in
7688 *" --with-newlib "*)
7689 case "$target" in
7690 *-cygwin*)
7691 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7693 esac
7695 # If we're not building GCC, don't discard standard headers.
7696 if test -d ${srcdir}/gcc; then
7697 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7699 if test "${build}" != "${host}"; then
7700 # On Canadian crosses, CC_FOR_TARGET will have already been set
7701 # by `configure', so we won't have an opportunity to add -Bgcc/
7702 # to it. This is right: we don't want to search that directory
7703 # for binaries, but we want the header files in there, so add
7704 # them explicitly.
7705 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7707 # Someone might think of using the pre-installed headers on
7708 # Canadian crosses, in case the installed compiler is not fully
7709 # compatible with the compiler being built. In this case, it
7710 # would be better to flag an error than risking having
7711 # incompatible object files being constructed. We can't
7712 # guarantee that an error will be flagged, but let's hope the
7713 # compiler will do it, when presented with incompatible header
7714 # files.
7718 case "${target}-${is_cross_compiler}" in
7719 i[3456789]86-*-linux*-no)
7720 # Here host == target, so we don't need to build gcc,
7721 # so we don't want to discard standard headers.
7722 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7725 # If we're building newlib, use its generic headers last, but search
7726 # for any libc-related directories first (so make it the last -B
7727 # switch).
7728 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7730 # If we're building libgloss, find the startup file, simulator library
7731 # and linker script.
7732 case " $target_configdirs " in
7733 *" libgloss "*)
7734 # Look for startup file, simulator library and maybe linker script.
7735 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7736 # Look for libnosys.a in case the target needs it.
7737 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7738 # Most targets have the linker script in the source directory.
7739 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7741 esac
7743 esac
7745 esac
7747 esac
7749 case "$target" in
7750 x86_64-*mingw* | *-w64-mingw*)
7751 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7752 # however, use a symlink named 'mingw' in ${prefix} .
7753 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7755 *-mingw*)
7756 # MinGW can't be handled as Cygwin above since it does not use newlib.
7757 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'
7759 esac
7761 # Allow the user to override the flags for
7762 # our build compiler if desired.
7763 if test x"${build}" = x"${host}" ; then
7764 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7765 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7766 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7769 # On Canadian crosses, we'll be searching the right directories for
7770 # the previously-installed cross compiler, so don't bother to add
7771 # flags for directories within the install tree of the compiler
7772 # being built; programs in there won't even run.
7773 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7774 # Search for pre-installed headers if nothing else fits.
7775 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7778 if test "x${use_gnu_ld}" = x &&
7779 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7780 # Arrange for us to find uninstalled linker scripts.
7781 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7784 # Search for other target-specific linker scripts and such.
7785 case "${target}" in
7786 mep*)
7787 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7789 esac
7791 # Makefile fragments.
7792 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7794 eval fragval=\$$frag
7795 if test $fragval != /dev/null; then
7796 eval $frag=${srcdir}/$fragval
7798 done
7804 # Miscellanea: directories, flags, etc.
7813 # Build module lists & subconfigure args.
7817 # Host module lists & subconfigure args.
7822 # Target module lists & subconfigure args.
7826 # Build tools.
7844 # Generate default definitions for YACC, M4, LEX and other programs that run
7845 # on the build machine. These are used if the Makefile can't locate these
7846 # programs in objdir.
7847 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7849 for ac_prog in 'bison -y' byacc yacc
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852 set dummy $ac_prog; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_YACC+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$YACC"; then
7859 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_YACC="$ac_prog"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7872 done
7873 done
7874 IFS=$as_save_IFS
7878 YACC=$ac_cv_prog_YACC
7879 if test -n "$YACC"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7881 $as_echo "$YACC" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7888 test -n "$YACC" && break
7889 done
7890 test -n "$YACC" || YACC="$MISSING bison -y"
7892 case " $build_configdirs " in
7893 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7894 esac
7896 for ac_prog in bison
7898 # Extract the first word of "$ac_prog", so it can be a program name with args.
7899 set dummy $ac_prog; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_BISON+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$BISON"; then
7906 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_BISON="$ac_prog"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7919 done
7920 done
7921 IFS=$as_save_IFS
7925 BISON=$ac_cv_prog_BISON
7926 if test -n "$BISON"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7928 $as_echo "$BISON" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7935 test -n "$BISON" && break
7936 done
7937 test -n "$BISON" || BISON="$MISSING bison"
7939 case " $build_configdirs " in
7940 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7941 esac
7943 for ac_prog in gm4 gnum4 m4
7945 # Extract the first word of "$ac_prog", so it can be a program name with args.
7946 set dummy $ac_prog; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if test "${ac_cv_prog_M4+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$M4"; then
7953 ac_cv_prog_M4="$M4" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_M4="$ac_prog"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7966 done
7967 done
7968 IFS=$as_save_IFS
7972 M4=$ac_cv_prog_M4
7973 if test -n "$M4"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7975 $as_echo "$M4" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7982 test -n "$M4" && break
7983 done
7984 test -n "$M4" || M4="$MISSING m4"
7986 case " $build_configdirs " in
7987 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7988 esac
7990 for ac_prog in flex lex
7992 # Extract the first word of "$ac_prog", so it can be a program name with args.
7993 set dummy $ac_prog; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if test "${ac_cv_prog_LEX+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -n "$LEX"; then
8000 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8001 else
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_prog_LEX="$ac_prog"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8013 done
8014 done
8015 IFS=$as_save_IFS
8019 LEX=$ac_cv_prog_LEX
8020 if test -n "$LEX"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8022 $as_echo "$LEX" >&6; }
8023 else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8029 test -n "$LEX" && break
8030 done
8031 test -n "$LEX" || LEX="$MISSING flex"
8033 case " $build_configdirs " in
8034 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8035 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8036 esac
8038 for ac_prog in flex
8040 # Extract the first word of "$ac_prog", so it can be a program name with args.
8041 set dummy $ac_prog; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if test "${ac_cv_prog_FLEX+set}" = set; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 if test -n "$FLEX"; then
8048 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8049 else
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 for as_dir in $PATH
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8057 ac_cv_prog_FLEX="$ac_prog"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8061 done
8062 done
8063 IFS=$as_save_IFS
8067 FLEX=$ac_cv_prog_FLEX
8068 if test -n "$FLEX"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8070 $as_echo "$FLEX" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8077 test -n "$FLEX" && break
8078 done
8079 test -n "$FLEX" || FLEX="$MISSING flex"
8081 case " $build_configdirs " in
8082 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8083 esac
8085 for ac_prog in makeinfo
8087 # Extract the first word of "$ac_prog", so it can be a program name with args.
8088 set dummy $ac_prog; ac_word=$2
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090 $as_echo_n "checking for $ac_word... " >&6; }
8091 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 if test -n "$MAKEINFO"; then
8095 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8096 else
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8104 ac_cv_prog_MAKEINFO="$ac_prog"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 break 2
8108 done
8109 done
8110 IFS=$as_save_IFS
8114 MAKEINFO=$ac_cv_prog_MAKEINFO
8115 if test -n "$MAKEINFO"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8117 $as_echo "$MAKEINFO" >&6; }
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8124 test -n "$MAKEINFO" && break
8125 done
8126 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8128 case " $build_configdirs " in
8129 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8132 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8133 # higher, else we use the "missing" dummy.
8134 if ${MAKEINFO} --version \
8135 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8137 else
8138 MAKEINFO="$MISSING makeinfo"
8142 esac
8144 # FIXME: expect and dejagnu may become build tools?
8146 for ac_prog in expect
8148 # Extract the first word of "$ac_prog", so it can be a program name with args.
8149 set dummy $ac_prog; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 if test -n "$EXPECT"; then
8156 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8165 ac_cv_prog_EXPECT="$ac_prog"
8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 break 2
8169 done
8170 done
8171 IFS=$as_save_IFS
8175 EXPECT=$ac_cv_prog_EXPECT
8176 if test -n "$EXPECT"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8178 $as_echo "$EXPECT" >&6; }
8179 else
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8185 test -n "$EXPECT" && break
8186 done
8187 test -n "$EXPECT" || EXPECT="expect"
8189 case " $configdirs " in
8190 *" expect "*)
8191 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8193 esac
8195 for ac_prog in runtest
8197 # Extract the first word of "$ac_prog", so it can be a program name with args.
8198 set dummy $ac_prog; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 if test -n "$RUNTEST"; then
8205 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8214 ac_cv_prog_RUNTEST="$ac_prog"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8218 done
8219 done
8220 IFS=$as_save_IFS
8224 RUNTEST=$ac_cv_prog_RUNTEST
8225 if test -n "$RUNTEST"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8227 $as_echo "$RUNTEST" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8234 test -n "$RUNTEST" && break
8235 done
8236 test -n "$RUNTEST" || RUNTEST="runtest"
8238 case " $configdirs " in
8239 *" dejagnu "*)
8240 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8242 esac
8244 # Host tools.
8245 ncn_tool_prefix=
8246 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8247 ncn_target_tool_prefix=
8248 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8252 if test -n "$AR"; then
8253 ac_cv_prog_AR=$AR
8254 elif test -n "$ac_cv_prog_AR"; then
8255 AR=$ac_cv_prog_AR
8258 if test -n "$ac_cv_prog_AR"; then
8259 for ncn_progname in ar; do
8260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8261 set dummy ${ncn_progname}; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_AR+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 if test -n "$AR"; then
8268 ac_cv_prog_AR="$AR" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_AR="${ncn_progname}"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8281 done
8282 done
8283 IFS=$as_save_IFS
8287 AR=$ac_cv_prog_AR
8288 if test -n "$AR"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8290 $as_echo "$AR" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8297 done
8300 for ncn_progname in ar; do
8301 if test -n "$ncn_tool_prefix"; then
8302 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8303 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_AR+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$AR"; then
8310 ac_cv_prog_AR="$AR" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8325 IFS=$as_save_IFS
8329 AR=$ac_cv_prog_AR
8330 if test -n "$AR"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8332 $as_echo "$AR" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8340 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8342 set dummy ${ncn_progname}; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if test "${ac_cv_prog_AR+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 if test -n "$AR"; then
8349 ac_cv_prog_AR="$AR" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_prog_AR="${ncn_progname}"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8362 done
8363 done
8364 IFS=$as_save_IFS
8368 AR=$ac_cv_prog_AR
8369 if test -n "$AR"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8371 $as_echo "$AR" >&6; }
8372 else
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8379 test -n "$ac_cv_prog_AR" && break
8380 done
8382 if test -z "$ac_cv_prog_AR" ; then
8383 set dummy ar
8384 if test $build = $host ; then
8385 AR="$2"
8386 else
8387 AR="${ncn_tool_prefix}$2"
8393 if test -n "$AS"; then
8394 ac_cv_prog_AS=$AS
8395 elif test -n "$ac_cv_prog_AS"; then
8396 AS=$ac_cv_prog_AS
8399 if test -n "$ac_cv_prog_AS"; then
8400 for ncn_progname in as; do
8401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8402 set dummy ${ncn_progname}; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_prog_AS+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 if test -n "$AS"; then
8409 ac_cv_prog_AS="$AS" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8414 IFS=$as_save_IFS
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_prog_AS="${ncn_progname}"
8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420 break 2
8422 done
8423 done
8424 IFS=$as_save_IFS
8428 AS=$ac_cv_prog_AS
8429 if test -n "$AS"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8431 $as_echo "$AS" >&6; }
8432 else
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8438 done
8441 for ncn_progname in as; do
8442 if test -n "$ncn_tool_prefix"; then
8443 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8444 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_prog_AS+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 if test -n "$AS"; then
8451 ac_cv_prog_AS="$AS" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8464 done
8465 done
8466 IFS=$as_save_IFS
8470 AS=$ac_cv_prog_AS
8471 if test -n "$AS"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8473 $as_echo "$AS" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8481 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8483 set dummy ${ncn_progname}; ac_word=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if test "${ac_cv_prog_AS+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8488 else
8489 if test -n "$AS"; then
8490 ac_cv_prog_AS="$AS" # Let the user override the test.
8491 else
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499 ac_cv_prog_AS="${ncn_progname}"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8503 done
8504 done
8505 IFS=$as_save_IFS
8509 AS=$ac_cv_prog_AS
8510 if test -n "$AS"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8512 $as_echo "$AS" >&6; }
8513 else
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8520 test -n "$ac_cv_prog_AS" && break
8521 done
8523 if test -z "$ac_cv_prog_AS" ; then
8524 set dummy as
8525 if test $build = $host ; then
8526 AS="$2"
8527 else
8528 AS="${ncn_tool_prefix}$2"
8534 if test -n "$DLLTOOL"; then
8535 ac_cv_prog_DLLTOOL=$DLLTOOL
8536 elif test -n "$ac_cv_prog_DLLTOOL"; then
8537 DLLTOOL=$ac_cv_prog_DLLTOOL
8540 if test -n "$ac_cv_prog_DLLTOOL"; then
8541 for ncn_progname in dlltool; do
8542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8543 set dummy ${ncn_progname}; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 if test -n "$DLLTOOL"; then
8550 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8551 else
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 for as_dir in $PATH
8555 IFS=$as_save_IFS
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8559 ac_cv_prog_DLLTOOL="${ncn_progname}"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 break 2
8563 done
8564 done
8565 IFS=$as_save_IFS
8569 DLLTOOL=$ac_cv_prog_DLLTOOL
8570 if test -n "$DLLTOOL"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8572 $as_echo "$DLLTOOL" >&6; }
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8579 done
8582 for ncn_progname in dlltool; do
8583 if test -n "$ncn_tool_prefix"; then
8584 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8585 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 if test -n "$DLLTOOL"; then
8592 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8605 done
8606 done
8607 IFS=$as_save_IFS
8611 DLLTOOL=$ac_cv_prog_DLLTOOL
8612 if test -n "$DLLTOOL"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8614 $as_echo "$DLLTOOL" >&6; }
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8622 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8624 set dummy ${ncn_progname}; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8629 else
8630 if test -n "$DLLTOOL"; then
8631 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_prog_DLLTOOL="${ncn_progname}"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8644 done
8645 done
8646 IFS=$as_save_IFS
8650 DLLTOOL=$ac_cv_prog_DLLTOOL
8651 if test -n "$DLLTOOL"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8653 $as_echo "$DLLTOOL" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8661 test -n "$ac_cv_prog_DLLTOOL" && break
8662 done
8664 if test -z "$ac_cv_prog_DLLTOOL" ; then
8665 set dummy dlltool
8666 if test $build = $host ; then
8667 DLLTOOL="$2"
8668 else
8669 DLLTOOL="${ncn_tool_prefix}$2"
8675 if test -n "$LD"; then
8676 ac_cv_prog_LD=$LD
8677 elif test -n "$ac_cv_prog_LD"; then
8678 LD=$ac_cv_prog_LD
8681 if test -n "$ac_cv_prog_LD"; then
8682 for ncn_progname in ld; do
8683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8684 set dummy ${ncn_progname}; ac_word=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if test "${ac_cv_prog_LD+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 if test -n "$LD"; then
8691 ac_cv_prog_LD="$LD" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700 ac_cv_prog_LD="${ncn_progname}"
8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 break 2
8704 done
8705 done
8706 IFS=$as_save_IFS
8710 LD=$ac_cv_prog_LD
8711 if test -n "$LD"; then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8713 $as_echo "$LD" >&6; }
8714 else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8720 done
8723 for ncn_progname in ld; do
8724 if test -n "$ncn_tool_prefix"; then
8725 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8726 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if test "${ac_cv_prog_LD+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test -n "$LD"; then
8733 ac_cv_prog_LD="$LD" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8746 done
8747 done
8748 IFS=$as_save_IFS
8752 LD=$ac_cv_prog_LD
8753 if test -n "$LD"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8755 $as_echo "$LD" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8763 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8765 set dummy ${ncn_progname}; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if test "${ac_cv_prog_LD+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 if test -n "$LD"; then
8772 ac_cv_prog_LD="$LD" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8781 ac_cv_prog_LD="${ncn_progname}"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8785 done
8786 done
8787 IFS=$as_save_IFS
8791 LD=$ac_cv_prog_LD
8792 if test -n "$LD"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8794 $as_echo "$LD" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8802 test -n "$ac_cv_prog_LD" && break
8803 done
8805 if test -z "$ac_cv_prog_LD" ; then
8806 set dummy ld
8807 if test $build = $host ; then
8808 LD="$2"
8809 else
8810 LD="${ncn_tool_prefix}$2"
8816 if test -n "$LIPO"; then
8817 ac_cv_prog_LIPO=$LIPO
8818 elif test -n "$ac_cv_prog_LIPO"; then
8819 LIPO=$ac_cv_prog_LIPO
8822 if test -n "$ac_cv_prog_LIPO"; then
8823 for ncn_progname in lipo; do
8824 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8825 set dummy ${ncn_progname}; ac_word=$2
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8827 $as_echo_n "checking for $ac_word... " >&6; }
8828 if test "${ac_cv_prog_LIPO+set}" = set; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 if test -n "$LIPO"; then
8832 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8833 else
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835 for as_dir in $PATH
8837 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8841 ac_cv_prog_LIPO="${ncn_progname}"
8842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2
8845 done
8846 done
8847 IFS=$as_save_IFS
8851 LIPO=$ac_cv_prog_LIPO
8852 if test -n "$LIPO"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8854 $as_echo "$LIPO" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8861 done
8864 for ncn_progname in lipo; do
8865 if test -n "$ncn_tool_prefix"; then
8866 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8867 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if test "${ac_cv_prog_LIPO+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 if test -n "$LIPO"; then
8874 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8893 LIPO=$ac_cv_prog_LIPO
8894 if test -n "$LIPO"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8896 $as_echo "$LIPO" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8904 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8906 set dummy ${ncn_progname}; ac_word=$2
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 $as_echo_n "checking for $ac_word... " >&6; }
8909 if test "${ac_cv_prog_LIPO+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 if test -n "$LIPO"; then
8913 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8914 else
8915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 for as_dir in $PATH
8918 IFS=$as_save_IFS
8919 test -z "$as_dir" && as_dir=.
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8922 ac_cv_prog_LIPO="${ncn_progname}"
8923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 break 2
8926 done
8927 done
8928 IFS=$as_save_IFS
8932 LIPO=$ac_cv_prog_LIPO
8933 if test -n "$LIPO"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8935 $as_echo "$LIPO" >&6; }
8936 else
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8943 test -n "$ac_cv_prog_LIPO" && break
8944 done
8946 if test -z "$ac_cv_prog_LIPO" ; then
8947 set dummy lipo
8948 if test $build = $host ; then
8949 LIPO="$2"
8950 else
8951 LIPO="${ncn_tool_prefix}$2"
8957 if test -n "$NM"; then
8958 ac_cv_prog_NM=$NM
8959 elif test -n "$ac_cv_prog_NM"; then
8960 NM=$ac_cv_prog_NM
8963 if test -n "$ac_cv_prog_NM"; then
8964 for ncn_progname in nm; do
8965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8966 set dummy ${ncn_progname}; ac_word=$2
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 $as_echo_n "checking for $ac_word... " >&6; }
8969 if test "${ac_cv_prog_NM+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 if test -n "$NM"; then
8973 ac_cv_prog_NM="$NM" # Let the user override the test.
8974 else
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8978 IFS=$as_save_IFS
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982 ac_cv_prog_NM="${ncn_progname}"
8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8984 break 2
8986 done
8987 done
8988 IFS=$as_save_IFS
8992 NM=$ac_cv_prog_NM
8993 if test -n "$NM"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8995 $as_echo "$NM" >&6; }
8996 else
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
9002 done
9005 for ncn_progname in nm; do
9006 if test -n "$ncn_tool_prefix"; then
9007 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9008 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 $as_echo_n "checking for $ac_word... " >&6; }
9011 if test "${ac_cv_prog_NM+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 if test -n "$NM"; then
9015 ac_cv_prog_NM="$NM" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9028 done
9029 done
9030 IFS=$as_save_IFS
9034 NM=$ac_cv_prog_NM
9035 if test -n "$NM"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9037 $as_echo "$NM" >&6; }
9038 else
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9045 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9047 set dummy ${ncn_progname}; ac_word=$2
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 $as_echo_n "checking for $ac_word... " >&6; }
9050 if test "${ac_cv_prog_NM+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 if test -n "$NM"; then
9054 ac_cv_prog_NM="$NM" # Let the user override the test.
9055 else
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9059 IFS=$as_save_IFS
9060 test -z "$as_dir" && as_dir=.
9061 for ac_exec_ext in '' $ac_executable_extensions; do
9062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9063 ac_cv_prog_NM="${ncn_progname}"
9064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 break 2
9067 done
9068 done
9069 IFS=$as_save_IFS
9073 NM=$ac_cv_prog_NM
9074 if test -n "$NM"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9076 $as_echo "$NM" >&6; }
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9084 test -n "$ac_cv_prog_NM" && break
9085 done
9087 if test -z "$ac_cv_prog_NM" ; then
9088 set dummy nm
9089 if test $build = $host ; then
9090 NM="$2"
9091 else
9092 NM="${ncn_tool_prefix}$2"
9098 if test -n "$RANLIB"; then
9099 ac_cv_prog_RANLIB=$RANLIB
9100 elif test -n "$ac_cv_prog_RANLIB"; then
9101 RANLIB=$ac_cv_prog_RANLIB
9104 if test -n "$ac_cv_prog_RANLIB"; then
9105 for ncn_progname in ranlib; do
9106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9107 set dummy ${ncn_progname}; ac_word=$2
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109 $as_echo_n "checking for $ac_word... " >&6; }
9110 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 if test -n "$RANLIB"; then
9114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9115 else
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_prog_RANLIB="${ncn_progname}"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9133 RANLIB=$ac_cv_prog_RANLIB
9134 if test -n "$RANLIB"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9136 $as_echo "$RANLIB" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9143 done
9146 for ncn_progname in ranlib; do
9147 if test -n "$ncn_tool_prefix"; then
9148 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9149 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 if test -n "$RANLIB"; then
9156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9169 done
9170 done
9171 IFS=$as_save_IFS
9175 RANLIB=$ac_cv_prog_RANLIB
9176 if test -n "$RANLIB"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9178 $as_echo "$RANLIB" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9188 set dummy ${ncn_progname}; ac_word=$2
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190 $as_echo_n "checking for $ac_word... " >&6; }
9191 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 if test -n "$RANLIB"; then
9195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9196 else
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 for as_dir in $PATH
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204 ac_cv_prog_RANLIB="${ncn_progname}"
9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9208 done
9209 done
9210 IFS=$as_save_IFS
9214 RANLIB=$ac_cv_prog_RANLIB
9215 if test -n "$RANLIB"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9217 $as_echo "$RANLIB" >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9225 test -n "$ac_cv_prog_RANLIB" && break
9226 done
9228 if test -z "$ac_cv_prog_RANLIB" ; then
9229 RANLIB="true"
9234 if test -n "$STRIP"; then
9235 ac_cv_prog_STRIP=$STRIP
9236 elif test -n "$ac_cv_prog_STRIP"; then
9237 STRIP=$ac_cv_prog_STRIP
9240 if test -n "$ac_cv_prog_STRIP"; then
9241 for ncn_progname in strip; do
9242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9243 set dummy ${ncn_progname}; ac_word=$2
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 $as_echo_n "checking for $ac_word... " >&6; }
9246 if test "${ac_cv_prog_STRIP+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
9248 else
9249 if test -n "$STRIP"; then
9250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9251 else
9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 for as_dir in $PATH
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9259 ac_cv_prog_STRIP="${ncn_progname}"
9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 break 2
9263 done
9264 done
9265 IFS=$as_save_IFS
9269 STRIP=$ac_cv_prog_STRIP
9270 if test -n "$STRIP"; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9272 $as_echo "$STRIP" >&6; }
9273 else
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275 $as_echo "no" >&6; }
9279 done
9282 for ncn_progname in strip; do
9283 if test -n "$ncn_tool_prefix"; then
9284 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9285 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if test "${ac_cv_prog_STRIP+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
9290 else
9291 if test -n "$STRIP"; then
9292 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9293 else
9294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 for as_dir in $PATH
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9301 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9305 done
9306 done
9307 IFS=$as_save_IFS
9311 STRIP=$ac_cv_prog_STRIP
9312 if test -n "$STRIP"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9314 $as_echo "$STRIP" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9322 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9324 set dummy ${ncn_progname}; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if test "${ac_cv_prog_STRIP+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 if test -n "$STRIP"; then
9331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9332 else
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9340 ac_cv_prog_STRIP="${ncn_progname}"
9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 break 2
9344 done
9345 done
9346 IFS=$as_save_IFS
9350 STRIP=$ac_cv_prog_STRIP
9351 if test -n "$STRIP"; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9353 $as_echo "$STRIP" >&6; }
9354 else
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 $as_echo "no" >&6; }
9361 test -n "$ac_cv_prog_STRIP" && break
9362 done
9364 if test -z "$ac_cv_prog_STRIP" ; then
9365 STRIP="true"
9370 if test -n "$WINDRES"; then
9371 ac_cv_prog_WINDRES=$WINDRES
9372 elif test -n "$ac_cv_prog_WINDRES"; then
9373 WINDRES=$ac_cv_prog_WINDRES
9376 if test -n "$ac_cv_prog_WINDRES"; then
9377 for ncn_progname in windres; do
9378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9379 set dummy ${ncn_progname}; ac_word=$2
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9381 $as_echo_n "checking for $ac_word... " >&6; }
9382 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9383 $as_echo_n "(cached) " >&6
9384 else
9385 if test -n "$WINDRES"; then
9386 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9387 else
9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389 for as_dir in $PATH
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395 ac_cv_prog_WINDRES="${ncn_progname}"
9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9399 done
9400 done
9401 IFS=$as_save_IFS
9405 WINDRES=$ac_cv_prog_WINDRES
9406 if test -n "$WINDRES"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9408 $as_echo "$WINDRES" >&6; }
9409 else
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9411 $as_echo "no" >&6; }
9415 done
9418 for ncn_progname in windres; do
9419 if test -n "$ncn_tool_prefix"; then
9420 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9421 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 if test -n "$WINDRES"; then
9428 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9429 else
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9441 done
9442 done
9443 IFS=$as_save_IFS
9447 WINDRES=$ac_cv_prog_WINDRES
9448 if test -n "$WINDRES"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9450 $as_echo "$WINDRES" >&6; }
9451 else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9458 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9460 set dummy ${ncn_progname}; ac_word=$2
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462 $as_echo_n "checking for $ac_word... " >&6; }
9463 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 if test -n "$WINDRES"; then
9467 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9468 else
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in $PATH
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9476 ac_cv_prog_WINDRES="${ncn_progname}"
9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9480 done
9481 done
9482 IFS=$as_save_IFS
9486 WINDRES=$ac_cv_prog_WINDRES
9487 if test -n "$WINDRES"; then
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9489 $as_echo "$WINDRES" >&6; }
9490 else
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492 $as_echo "no" >&6; }
9497 test -n "$ac_cv_prog_WINDRES" && break
9498 done
9500 if test -z "$ac_cv_prog_WINDRES" ; then
9501 set dummy windres
9502 if test $build = $host ; then
9503 WINDRES="$2"
9504 else
9505 WINDRES="${ncn_tool_prefix}$2"
9511 if test -n "$WINDMC"; then
9512 ac_cv_prog_WINDMC=$WINDMC
9513 elif test -n "$ac_cv_prog_WINDMC"; then
9514 WINDMC=$ac_cv_prog_WINDMC
9517 if test -n "$ac_cv_prog_WINDMC"; then
9518 for ncn_progname in windmc; do
9519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9520 set dummy ${ncn_progname}; ac_word=$2
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522 $as_echo_n "checking for $ac_word... " >&6; }
9523 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 if test -n "$WINDMC"; then
9527 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9528 else
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_prog_WINDMC="${ncn_progname}"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9540 done
9541 done
9542 IFS=$as_save_IFS
9546 WINDMC=$ac_cv_prog_WINDMC
9547 if test -n "$WINDMC"; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9549 $as_echo "$WINDMC" >&6; }
9550 else
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9556 done
9559 for ncn_progname in windmc; do
9560 if test -n "$ncn_tool_prefix"; then
9561 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9562 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 if test -n "$WINDMC"; then
9569 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9570 else
9571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 for as_dir in $PATH
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9578 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 break 2
9582 done
9583 done
9584 IFS=$as_save_IFS
9588 WINDMC=$ac_cv_prog_WINDMC
9589 if test -n "$WINDMC"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9591 $as_echo "$WINDMC" >&6; }
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9599 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9601 set dummy ${ncn_progname}; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 if test -n "$WINDMC"; then
9608 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9609 else
9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9617 ac_cv_prog_WINDMC="${ncn_progname}"
9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 break 2
9621 done
9622 done
9623 IFS=$as_save_IFS
9627 WINDMC=$ac_cv_prog_WINDMC
9628 if test -n "$WINDMC"; then
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9630 $as_echo "$WINDMC" >&6; }
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633 $as_echo "no" >&6; }
9638 test -n "$ac_cv_prog_WINDMC" && break
9639 done
9641 if test -z "$ac_cv_prog_WINDMC" ; then
9642 set dummy windmc
9643 if test $build = $host ; then
9644 WINDMC="$2"
9645 else
9646 WINDMC="${ncn_tool_prefix}$2"
9652 if test -n "$OBJCOPY"; then
9653 ac_cv_prog_OBJCOPY=$OBJCOPY
9654 elif test -n "$ac_cv_prog_OBJCOPY"; then
9655 OBJCOPY=$ac_cv_prog_OBJCOPY
9658 if test -n "$ac_cv_prog_OBJCOPY"; then
9659 for ncn_progname in objcopy; do
9660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9661 set dummy ${ncn_progname}; ac_word=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 if test -n "$OBJCOPY"; then
9668 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9669 else
9670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9671 for as_dir in $PATH
9673 IFS=$as_save_IFS
9674 test -z "$as_dir" && as_dir=.
9675 for ac_exec_ext in '' $ac_executable_extensions; do
9676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9677 ac_cv_prog_OBJCOPY="${ncn_progname}"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 break 2
9681 done
9682 done
9683 IFS=$as_save_IFS
9687 OBJCOPY=$ac_cv_prog_OBJCOPY
9688 if test -n "$OBJCOPY"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9690 $as_echo "$OBJCOPY" >&6; }
9691 else
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9697 done
9700 for ncn_progname in objcopy; do
9701 if test -n "$ncn_tool_prefix"; then
9702 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9703 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 if test -n "$OBJCOPY"; then
9710 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9723 done
9724 done
9725 IFS=$as_save_IFS
9729 OBJCOPY=$ac_cv_prog_OBJCOPY
9730 if test -n "$OBJCOPY"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9732 $as_echo "$OBJCOPY" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9740 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9742 set dummy ${ncn_progname}; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 if test -n "$OBJCOPY"; then
9749 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9750 else
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 for as_dir in $PATH
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_prog_OBJCOPY="${ncn_progname}"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9762 done
9763 done
9764 IFS=$as_save_IFS
9768 OBJCOPY=$ac_cv_prog_OBJCOPY
9769 if test -n "$OBJCOPY"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9771 $as_echo "$OBJCOPY" >&6; }
9772 else
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9779 test -n "$ac_cv_prog_OBJCOPY" && break
9780 done
9782 if test -z "$ac_cv_prog_OBJCOPY" ; then
9783 set dummy objcopy
9784 if test $build = $host ; then
9785 OBJCOPY="$2"
9786 else
9787 OBJCOPY="${ncn_tool_prefix}$2"
9793 if test -n "$OBJDUMP"; then
9794 ac_cv_prog_OBJDUMP=$OBJDUMP
9795 elif test -n "$ac_cv_prog_OBJDUMP"; then
9796 OBJDUMP=$ac_cv_prog_OBJDUMP
9799 if test -n "$ac_cv_prog_OBJDUMP"; then
9800 for ncn_progname in objdump; do
9801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9802 set dummy ${ncn_progname}; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 if test -n "$OBJDUMP"; then
9809 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9810 else
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_prog_OBJDUMP="${ncn_progname}"
9819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9822 done
9823 done
9824 IFS=$as_save_IFS
9828 OBJDUMP=$ac_cv_prog_OBJDUMP
9829 if test -n "$OBJDUMP"; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9831 $as_echo "$OBJDUMP" >&6; }
9832 else
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9838 done
9841 for ncn_progname in objdump; do
9842 if test -n "$ncn_tool_prefix"; then
9843 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9844 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 if test -n "$OBJDUMP"; then
9851 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9852 else
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9864 done
9865 done
9866 IFS=$as_save_IFS
9870 OBJDUMP=$ac_cv_prog_OBJDUMP
9871 if test -n "$OBJDUMP"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9873 $as_echo "$OBJDUMP" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9881 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883 set dummy ${ncn_progname}; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 if test -n "$OBJDUMP"; then
9890 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9891 else
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9899 ac_cv_prog_OBJDUMP="${ncn_progname}"
9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9901 break 2
9903 done
9904 done
9905 IFS=$as_save_IFS
9909 OBJDUMP=$ac_cv_prog_OBJDUMP
9910 if test -n "$OBJDUMP"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9912 $as_echo "$OBJDUMP" >&6; }
9913 else
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9920 test -n "$ac_cv_prog_OBJDUMP" && break
9921 done
9923 if test -z "$ac_cv_prog_OBJDUMP" ; then
9924 set dummy objdump
9925 if test $build = $host ; then
9926 OBJDUMP="$2"
9927 else
9928 OBJDUMP="${ncn_tool_prefix}$2"
9934 if test -n "$READELF"; then
9935 ac_cv_prog_READELF=$READELF
9936 elif test -n "$ac_cv_prog_READELF"; then
9937 READELF=$ac_cv_prog_READELF
9940 if test -n "$ac_cv_prog_READELF"; then
9941 for ncn_progname in readelf; do
9942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9943 set dummy ${ncn_progname}; ac_word=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_prog_READELF+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 if test -n "$READELF"; then
9950 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9951 else
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_READELF="${ncn_progname}"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9963 done
9964 done
9965 IFS=$as_save_IFS
9969 READELF=$ac_cv_prog_READELF
9970 if test -n "$READELF"; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9972 $as_echo "$READELF" >&6; }
9973 else
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9979 done
9982 for ncn_progname in readelf; do
9983 if test -n "$ncn_tool_prefix"; then
9984 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9985 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if test "${ac_cv_prog_READELF+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 if test -n "$READELF"; then
9992 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9993 else
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10005 done
10006 done
10007 IFS=$as_save_IFS
10011 READELF=$ac_cv_prog_READELF
10012 if test -n "$READELF"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10014 $as_echo "$READELF" >&6; }
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10022 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10024 set dummy ${ncn_progname}; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if test "${ac_cv_prog_READELF+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 if test -n "$READELF"; then
10031 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10032 else
10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $PATH
10036 IFS=$as_save_IFS
10037 test -z "$as_dir" && as_dir=.
10038 for ac_exec_ext in '' $ac_executable_extensions; do
10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040 ac_cv_prog_READELF="${ncn_progname}"
10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 break 2
10044 done
10045 done
10046 IFS=$as_save_IFS
10050 READELF=$ac_cv_prog_READELF
10051 if test -n "$READELF"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10053 $as_echo "$READELF" >&6; }
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10061 test -n "$ac_cv_prog_READELF" && break
10062 done
10064 if test -z "$ac_cv_prog_READELF" ; then
10065 set dummy readelf
10066 if test $build = $host ; then
10067 READELF="$2"
10068 else
10069 READELF="${ncn_tool_prefix}$2"
10078 # Target tools.
10080 # Check whether --with-build-time-tools was given.
10081 if test "${with_build_time_tools+set}" = set; then :
10082 withval=$with_build_time_tools; case x"$withval" in
10083 x/*) ;;
10085 with_build_time_tools=
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10087 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10089 esac
10090 else
10091 with_build_time_tools=
10097 if test -n "$CC_FOR_TARGET"; then
10098 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10099 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10100 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10103 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10104 for ncn_progname in cc gcc; do
10105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10106 set dummy ${ncn_progname}; ac_word=$2
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10108 $as_echo_n "checking for $ac_word... " >&6; }
10109 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 if test -n "$CC_FOR_TARGET"; then
10113 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10114 else
10115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10116 for as_dir in $PATH
10118 IFS=$as_save_IFS
10119 test -z "$as_dir" && as_dir=.
10120 for ac_exec_ext in '' $ac_executable_extensions; do
10121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10122 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 break 2
10126 done
10127 done
10128 IFS=$as_save_IFS
10132 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10133 if test -n "$CC_FOR_TARGET"; then
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10135 $as_echo "$CC_FOR_TARGET" >&6; }
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10138 $as_echo "no" >&6; }
10142 done
10145 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10146 for ncn_progname in cc gcc; do
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10148 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10149 if test -x $with_build_time_tools/${ncn_progname}; then
10150 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; }
10153 break
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10158 done
10161 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10162 for ncn_progname in cc gcc; do
10163 if test -n "$ncn_target_tool_prefix"; then
10164 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10165 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167 $as_echo_n "checking for $ac_word... " >&6; }
10168 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 if test -n "$CC_FOR_TARGET"; then
10172 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10173 else
10174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10181 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10185 done
10186 done
10187 IFS=$as_save_IFS
10191 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10192 if test -n "$CC_FOR_TARGET"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10194 $as_echo "$CC_FOR_TARGET" >&6; }
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10202 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10204 set dummy ${ncn_progname}; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 if test -n "$CC_FOR_TARGET"; then
10211 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10212 else
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10216 IFS=$as_save_IFS
10217 test -z "$as_dir" && as_dir=.
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10220 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 break 2
10224 done
10225 done
10226 IFS=$as_save_IFS
10230 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10231 if test -n "$CC_FOR_TARGET"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10233 $as_echo "$CC_FOR_TARGET" >&6; }
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10241 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10242 done
10245 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10246 set dummy cc gcc
10247 if test $build = $target ; then
10248 CC_FOR_TARGET="$2"
10249 else
10250 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10252 else
10253 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10258 if test -n "$CXX_FOR_TARGET"; then
10259 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10260 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10261 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10264 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10265 for ncn_progname in c++ g++ cxx gxx; do
10266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10267 set dummy ${ncn_progname}; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 if test -n "$CXX_FOR_TARGET"; then
10274 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10275 else
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10279 IFS=$as_save_IFS
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 break 2
10287 done
10288 done
10289 IFS=$as_save_IFS
10293 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10294 if test -n "$CXX_FOR_TARGET"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10296 $as_echo "$CXX_FOR_TARGET" >&6; }
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10303 done
10306 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10307 for ncn_progname in c++ g++ cxx gxx; do
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10309 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10310 if test -x $with_build_time_tools/${ncn_progname}; then
10311 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10313 $as_echo "yes" >&6; }
10314 break
10315 else
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 $as_echo "no" >&6; }
10319 done
10322 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10323 for ncn_progname in c++ g++ cxx gxx; do
10324 if test -n "$ncn_target_tool_prefix"; then
10325 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10326 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 if test -n "$CXX_FOR_TARGET"; then
10333 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10334 else
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10342 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10344 break 2
10346 done
10347 done
10348 IFS=$as_save_IFS
10352 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10353 if test -n "$CXX_FOR_TARGET"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10355 $as_echo "$CXX_FOR_TARGET" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10363 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10365 set dummy ${ncn_progname}; ac_word=$2
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10367 $as_echo_n "checking for $ac_word... " >&6; }
10368 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10369 $as_echo_n "(cached) " >&6
10370 else
10371 if test -n "$CXX_FOR_TARGET"; then
10372 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10373 else
10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10375 for as_dir in $PATH
10377 IFS=$as_save_IFS
10378 test -z "$as_dir" && as_dir=.
10379 for ac_exec_ext in '' $ac_executable_extensions; do
10380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10381 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10383 break 2
10385 done
10386 done
10387 IFS=$as_save_IFS
10391 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10392 if test -n "$CXX_FOR_TARGET"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10394 $as_echo "$CXX_FOR_TARGET" >&6; }
10395 else
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10402 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10403 done
10406 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10407 set dummy c++ g++ cxx gxx
10408 if test $build = $target ; then
10409 CXX_FOR_TARGET="$2"
10410 else
10411 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10413 else
10414 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10419 if test -n "$GCC_FOR_TARGET"; then
10420 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10421 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10422 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10425 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10426 for ncn_progname in gcc; do
10427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10428 set dummy ${ncn_progname}; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 if test -n "$GCC_FOR_TARGET"; then
10435 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10440 IFS=$as_save_IFS
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446 break 2
10448 done
10449 done
10450 IFS=$as_save_IFS
10454 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10455 if test -n "$GCC_FOR_TARGET"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10457 $as_echo "$GCC_FOR_TARGET" >&6; }
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10464 done
10467 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10468 for ncn_progname in gcc; do
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10470 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10471 if test -x $with_build_time_tools/${ncn_progname}; then
10472 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10474 $as_echo "yes" >&6; }
10475 break
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10480 done
10483 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10484 for ncn_progname in gcc; do
10485 if test -n "$ncn_target_tool_prefix"; then
10486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10487 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 if test -n "$GCC_FOR_TARGET"; then
10494 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10495 else
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10507 done
10508 done
10509 IFS=$as_save_IFS
10513 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10514 if test -n "$GCC_FOR_TARGET"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10516 $as_echo "$GCC_FOR_TARGET" >&6; }
10517 else
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10524 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10526 set dummy ${ncn_progname}; ac_word=$2
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528 $as_echo_n "checking for $ac_word... " >&6; }
10529 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 if test -n "$GCC_FOR_TARGET"; then
10533 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10534 else
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10538 IFS=$as_save_IFS
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10542 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 break 2
10546 done
10547 done
10548 IFS=$as_save_IFS
10552 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10553 if test -n "$GCC_FOR_TARGET"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10555 $as_echo "$GCC_FOR_TARGET" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10563 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10564 done
10567 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10568 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10569 else
10570 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10575 if test -n "$GCJ_FOR_TARGET"; then
10576 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10577 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10578 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10581 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10582 for ncn_progname in gcj; do
10583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10584 set dummy ${ncn_progname}; ac_word=$2
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10586 $as_echo_n "checking for $ac_word... " >&6; }
10587 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 if test -n "$GCJ_FOR_TARGET"; then
10591 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10592 else
10593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10594 for as_dir in $PATH
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
10599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10600 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10604 done
10605 done
10606 IFS=$as_save_IFS
10610 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10611 if test -n "$GCJ_FOR_TARGET"; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10613 $as_echo "$GCJ_FOR_TARGET" >&6; }
10614 else
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10620 done
10623 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10624 for ncn_progname in gcj; do
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10626 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10627 if test -x $with_build_time_tools/${ncn_progname}; then
10628 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630 $as_echo "yes" >&6; }
10631 break
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10636 done
10639 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10640 for ncn_progname in gcj; do
10641 if test -n "$ncn_target_tool_prefix"; then
10642 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10643 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645 $as_echo_n "checking for $ac_word... " >&6; }
10646 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 if test -n "$GCJ_FOR_TARGET"; then
10650 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10651 else
10652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653 for as_dir in $PATH
10655 IFS=$as_save_IFS
10656 test -z "$as_dir" && as_dir=.
10657 for ac_exec_ext in '' $ac_executable_extensions; do
10658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10659 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10661 break 2
10663 done
10664 done
10665 IFS=$as_save_IFS
10669 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10670 if test -n "$GCJ_FOR_TARGET"; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10672 $as_echo "$GCJ_FOR_TARGET" >&6; }
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10680 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10682 set dummy ${ncn_progname}; ac_word=$2
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10684 $as_echo_n "checking for $ac_word... " >&6; }
10685 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 if test -n "$GCJ_FOR_TARGET"; then
10689 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10690 else
10691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10692 for as_dir in $PATH
10694 IFS=$as_save_IFS
10695 test -z "$as_dir" && as_dir=.
10696 for ac_exec_ext in '' $ac_executable_extensions; do
10697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10698 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 break 2
10702 done
10703 done
10704 IFS=$as_save_IFS
10708 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10709 if test -n "$GCJ_FOR_TARGET"; then
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10711 $as_echo "$GCJ_FOR_TARGET" >&6; }
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; }
10719 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10720 done
10723 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10724 set dummy gcj
10725 if test $build = $target ; then
10726 GCJ_FOR_TARGET="$2"
10727 else
10728 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10730 else
10731 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10736 if test -n "$GFORTRAN_FOR_TARGET"; then
10737 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10738 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10739 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10742 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10743 for ncn_progname in gfortran; do
10744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10745 set dummy ${ncn_progname}; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 if test -n "$GFORTRAN_FOR_TARGET"; then
10752 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10753 else
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10765 done
10766 done
10767 IFS=$as_save_IFS
10771 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10772 if test -n "$GFORTRAN_FOR_TARGET"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10774 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10781 done
10784 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10785 for ncn_progname in gfortran; do
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10787 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10788 if test -x $with_build_time_tools/${ncn_progname}; then
10789 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10791 $as_echo "yes" >&6; }
10792 break
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10797 done
10800 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10801 for ncn_progname in gfortran; do
10802 if test -n "$ncn_target_tool_prefix"; then
10803 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10804 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806 $as_echo_n "checking for $ac_word... " >&6; }
10807 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 if test -n "$GFORTRAN_FOR_TARGET"; then
10811 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10812 else
10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814 for as_dir in $PATH
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10820 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10824 done
10825 done
10826 IFS=$as_save_IFS
10830 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10831 if test -n "$GFORTRAN_FOR_TARGET"; then
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10833 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10834 else
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836 $as_echo "no" >&6; }
10841 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10843 set dummy ${ncn_progname}; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 if test -n "$GFORTRAN_FOR_TARGET"; then
10850 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10851 else
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10859 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10861 break 2
10863 done
10864 done
10865 IFS=$as_save_IFS
10869 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10870 if test -n "$GFORTRAN_FOR_TARGET"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10872 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10880 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10881 done
10884 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10885 set dummy gfortran
10886 if test $build = $target ; then
10887 GFORTRAN_FOR_TARGET="$2"
10888 else
10889 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10891 else
10892 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10897 if test -n "$GOC_FOR_TARGET"; then
10898 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10899 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10900 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10903 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10904 for ncn_progname in gccgo; do
10905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10906 set dummy ${ncn_progname}; ac_word=$2
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10908 $as_echo_n "checking for $ac_word... " >&6; }
10909 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 if test -n "$GOC_FOR_TARGET"; then
10913 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10914 else
10915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10916 for as_dir in $PATH
10918 IFS=$as_save_IFS
10919 test -z "$as_dir" && as_dir=.
10920 for ac_exec_ext in '' $ac_executable_extensions; do
10921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10922 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 break 2
10926 done
10927 done
10928 IFS=$as_save_IFS
10932 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10933 if test -n "$GOC_FOR_TARGET"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10935 $as_echo "$GOC_FOR_TARGET" >&6; }
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938 $as_echo "no" >&6; }
10942 done
10945 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10946 for ncn_progname in gccgo; do
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10948 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10949 if test -x $with_build_time_tools/${ncn_progname}; then
10950 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10952 $as_echo "yes" >&6; }
10953 break
10954 else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; }
10958 done
10961 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10962 for ncn_progname in gccgo; do
10963 if test -n "$ncn_target_tool_prefix"; then
10964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967 $as_echo_n "checking for $ac_word... " >&6; }
10968 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 if test -n "$GOC_FOR_TARGET"; then
10972 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10973 else
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10981 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10985 done
10986 done
10987 IFS=$as_save_IFS
10991 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10992 if test -n "$GOC_FOR_TARGET"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10994 $as_echo "$GOC_FOR_TARGET" >&6; }
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
11002 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11004 set dummy ${ncn_progname}; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11006 $as_echo_n "checking for $ac_word... " >&6; }
11007 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 if test -n "$GOC_FOR_TARGET"; then
11011 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11012 else
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11016 IFS=$as_save_IFS
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11020 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 break 2
11024 done
11025 done
11026 IFS=$as_save_IFS
11030 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11031 if test -n "$GOC_FOR_TARGET"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11033 $as_echo "$GOC_FOR_TARGET" >&6; }
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11041 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11042 done
11045 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11046 set dummy gccgo
11047 if test $build = $target ; then
11048 GOC_FOR_TARGET="$2"
11049 else
11050 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11052 else
11053 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11058 cat > conftest.c << \EOF
11059 #ifdef __GNUC__
11060 gcc_yay;
11061 #endif
11063 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11064 have_gcc_for_target=yes
11065 else
11066 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11067 have_gcc_for_target=no
11069 rm conftest.c
11074 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11075 if test -n "$with_build_time_tools"; then
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11077 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11078 if test -x $with_build_time_tools/ar; then
11079 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11080 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11082 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11087 elif test $build != $host && test $have_gcc_for_target = yes; then
11088 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11089 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11090 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11093 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11094 # Extract the first word of "ar", so it can be a program name with args.
11095 set dummy ar; ac_word=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 case $AR_FOR_TARGET in
11102 [\\/]* | ?:[\\/]*)
11103 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $gcc_cv_tool_dirs
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11117 done
11118 done
11119 IFS=$as_save_IFS
11122 esac
11124 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11125 if test -n "$AR_FOR_TARGET"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11127 $as_echo "$AR_FOR_TARGET" >&6; }
11128 else
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11135 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11138 if test -n "$AR_FOR_TARGET"; then
11139 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11140 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11141 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11144 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11145 for ncn_progname in ar; do
11146 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11147 set dummy ${ncn_progname}; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11151 $as_echo_n "(cached) " >&6
11152 else
11153 if test -n "$AR_FOR_TARGET"; then
11154 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11155 else
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11167 done
11168 done
11169 IFS=$as_save_IFS
11173 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11174 if test -n "$AR_FOR_TARGET"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11176 $as_echo "$AR_FOR_TARGET" >&6; }
11177 else
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11183 done
11186 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11187 for ncn_progname in ar; do
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11189 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11190 if test -x $with_build_time_tools/${ncn_progname}; then
11191 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11193 $as_echo "yes" >&6; }
11194 break
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11199 done
11202 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11203 for ncn_progname in ar; do
11204 if test -n "$ncn_target_tool_prefix"; then
11205 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11206 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 if test -n "$AR_FOR_TARGET"; then
11213 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11214 else
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $PATH
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11222 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11226 done
11227 done
11228 IFS=$as_save_IFS
11232 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11233 if test -n "$AR_FOR_TARGET"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11235 $as_echo "$AR_FOR_TARGET" >&6; }
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11243 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11245 set dummy ${ncn_progname}; ac_word=$2
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247 $as_echo_n "checking for $ac_word... " >&6; }
11248 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 if test -n "$AR_FOR_TARGET"; then
11252 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11253 else
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11271 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11272 if test -n "$AR_FOR_TARGET"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11274 $as_echo "$AR_FOR_TARGET" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11282 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11283 done
11286 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11287 set dummy ar
11288 if test $build = $target ; then
11289 AR_FOR_TARGET="$2"
11290 else
11291 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11293 else
11294 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11297 else
11298 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11304 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11305 if test -n "$with_build_time_tools"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11307 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11308 if test -x $with_build_time_tools/as; then
11309 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11310 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11312 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11317 elif test $build != $host && test $have_gcc_for_target = yes; then
11318 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11319 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11320 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11323 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11324 # Extract the first word of "as", so it can be a program name with args.
11325 set dummy as; ac_word=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11330 else
11331 case $AS_FOR_TARGET in
11332 [\\/]* | ?:[\\/]*)
11333 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337 for as_dir in $gcc_cv_tool_dirs
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11343 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11347 done
11348 done
11349 IFS=$as_save_IFS
11352 esac
11354 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11355 if test -n "$AS_FOR_TARGET"; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11357 $as_echo "$AS_FOR_TARGET" >&6; }
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11365 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11368 if test -n "$AS_FOR_TARGET"; then
11369 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11370 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11371 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11374 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11375 for ncn_progname in as; do
11376 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11377 set dummy ${ncn_progname}; ac_word=$2
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379 $as_echo_n "checking for $ac_word... " >&6; }
11380 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11381 $as_echo_n "(cached) " >&6
11382 else
11383 if test -n "$AS_FOR_TARGET"; then
11384 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11385 else
11386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11387 for as_dir in $PATH
11389 IFS=$as_save_IFS
11390 test -z "$as_dir" && as_dir=.
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11393 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11395 break 2
11397 done
11398 done
11399 IFS=$as_save_IFS
11403 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11404 if test -n "$AS_FOR_TARGET"; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11406 $as_echo "$AS_FOR_TARGET" >&6; }
11407 else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11413 done
11416 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11417 for ncn_progname in as; do
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11419 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11420 if test -x $with_build_time_tools/${ncn_progname}; then
11421 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11423 $as_echo "yes" >&6; }
11424 break
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11429 done
11432 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11433 for ncn_progname in as; do
11434 if test -n "$ncn_target_tool_prefix"; then
11435 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11436 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 if test -n "$AS_FOR_TARGET"; then
11443 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11444 else
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11452 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11456 done
11457 done
11458 IFS=$as_save_IFS
11462 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11463 if test -n "$AS_FOR_TARGET"; then
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11465 $as_echo "$AS_FOR_TARGET" >&6; }
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11473 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11475 set dummy ${ncn_progname}; ac_word=$2
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 $as_echo_n "checking for $ac_word... " >&6; }
11478 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 if test -n "$AS_FOR_TARGET"; then
11482 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11483 else
11484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485 for as_dir in $PATH
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11491 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11495 done
11496 done
11497 IFS=$as_save_IFS
11501 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11502 if test -n "$AS_FOR_TARGET"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11504 $as_echo "$AS_FOR_TARGET" >&6; }
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507 $as_echo "no" >&6; }
11512 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11513 done
11516 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11517 set dummy as
11518 if test $build = $target ; then
11519 AS_FOR_TARGET="$2"
11520 else
11521 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11523 else
11524 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11527 else
11528 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11534 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11535 if test -n "$with_build_time_tools"; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11537 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11538 if test -x $with_build_time_tools/dlltool; then
11539 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11540 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11542 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11547 elif test $build != $host && test $have_gcc_for_target = yes; then
11548 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11549 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11550 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11553 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11554 # Extract the first word of "dlltool", so it can be a program name with args.
11555 set dummy dlltool; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 $as_echo_n "checking for $ac_word... " >&6; }
11558 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 case $DLLTOOL_FOR_TARGET in
11562 [\\/]* | ?:[\\/]*)
11563 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $gcc_cv_tool_dirs
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11573 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11577 done
11578 done
11579 IFS=$as_save_IFS
11582 esac
11584 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11585 if test -n "$DLLTOOL_FOR_TARGET"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11587 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11595 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11598 if test -n "$DLLTOOL_FOR_TARGET"; then
11599 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11600 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11601 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11604 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11605 for ncn_progname in dlltool; do
11606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11607 set dummy ${ncn_progname}; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 if test -n "$DLLTOOL_FOR_TARGET"; then
11614 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11615 else
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $PATH
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11623 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11627 done
11628 done
11629 IFS=$as_save_IFS
11633 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11634 if test -n "$DLLTOOL_FOR_TARGET"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11636 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11637 else
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11643 done
11646 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11647 for ncn_progname in dlltool; do
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11649 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11650 if test -x $with_build_time_tools/${ncn_progname}; then
11651 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11653 $as_echo "yes" >&6; }
11654 break
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11659 done
11662 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11663 for ncn_progname in dlltool; do
11664 if test -n "$ncn_target_tool_prefix"; then
11665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11666 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11672 if test -n "$DLLTOOL_FOR_TARGET"; then
11673 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11674 else
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11686 done
11687 done
11688 IFS=$as_save_IFS
11692 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11693 if test -n "$DLLTOOL_FOR_TARGET"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11695 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11696 else
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11703 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11705 set dummy ${ncn_progname}; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 if test -n "$DLLTOOL_FOR_TARGET"; then
11712 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11713 else
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11725 done
11726 done
11727 IFS=$as_save_IFS
11731 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11732 if test -n "$DLLTOOL_FOR_TARGET"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11734 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11742 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11743 done
11746 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11747 set dummy dlltool
11748 if test $build = $target ; then
11749 DLLTOOL_FOR_TARGET="$2"
11750 else
11751 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11753 else
11754 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11757 else
11758 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11764 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11765 if test -n "$with_build_time_tools"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11767 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11768 if test -x $with_build_time_tools/ld; then
11769 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11770 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11772 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11777 elif test $build != $host && test $have_gcc_for_target = yes; then
11778 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11779 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11780 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11783 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11784 # Extract the first word of "ld", so it can be a program name with args.
11785 set dummy ld; ac_word=$2
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787 $as_echo_n "checking for $ac_word... " >&6; }
11788 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 case $LD_FOR_TARGET in
11792 [\\/]* | ?:[\\/]*)
11793 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $gcc_cv_tool_dirs
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11803 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 break 2
11807 done
11808 done
11809 IFS=$as_save_IFS
11812 esac
11814 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11815 if test -n "$LD_FOR_TARGET"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11817 $as_echo "$LD_FOR_TARGET" >&6; }
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11825 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11828 if test -n "$LD_FOR_TARGET"; then
11829 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11830 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11831 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11834 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11835 for ncn_progname in ld; do
11836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11837 set dummy ${ncn_progname}; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839 $as_echo_n "checking for $ac_word... " >&6; }
11840 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 if test -n "$LD_FOR_TARGET"; then
11844 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11845 else
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11857 done
11858 done
11859 IFS=$as_save_IFS
11863 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11864 if test -n "$LD_FOR_TARGET"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11866 $as_echo "$LD_FOR_TARGET" >&6; }
11867 else
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11873 done
11876 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11877 for ncn_progname in ld; do
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11879 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11880 if test -x $with_build_time_tools/${ncn_progname}; then
11881 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11883 $as_echo "yes" >&6; }
11884 break
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11889 done
11892 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11893 for ncn_progname in ld; do
11894 if test -n "$ncn_target_tool_prefix"; then
11895 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11896 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 if test -n "$LD_FOR_TARGET"; then
11903 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11922 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11923 if test -n "$LD_FOR_TARGET"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11925 $as_echo "$LD_FOR_TARGET" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11933 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11935 set dummy ${ncn_progname}; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 if test -n "$LD_FOR_TARGET"; then
11942 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11943 else
11944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945 for as_dir in $PATH
11947 IFS=$as_save_IFS
11948 test -z "$as_dir" && as_dir=.
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11951 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11953 break 2
11955 done
11956 done
11957 IFS=$as_save_IFS
11961 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11962 if test -n "$LD_FOR_TARGET"; then
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11964 $as_echo "$LD_FOR_TARGET" >&6; }
11965 else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11972 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11973 done
11976 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11977 set dummy ld
11978 if test $build = $target ; then
11979 LD_FOR_TARGET="$2"
11980 else
11981 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11983 else
11984 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11987 else
11988 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11994 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11995 if test -n "$with_build_time_tools"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11997 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11998 if test -x $with_build_time_tools/lipo; then
11999 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12000 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12002 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
12003 else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12007 elif test $build != $host && test $have_gcc_for_target = yes; then
12008 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
12009 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12010 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12013 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12014 # Extract the first word of "lipo", so it can be a program name with args.
12015 set dummy lipo; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12017 $as_echo_n "checking for $ac_word... " >&6; }
12018 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 case $LIPO_FOR_TARGET in
12022 [\\/]* | ?:[\\/]*)
12023 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $gcc_cv_tool_dirs
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12033 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12035 break 2
12037 done
12038 done
12039 IFS=$as_save_IFS
12042 esac
12044 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12045 if test -n "$LIPO_FOR_TARGET"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12047 $as_echo "$LIPO_FOR_TARGET" >&6; }
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12055 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12058 if test -n "$LIPO_FOR_TARGET"; then
12059 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12060 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12061 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12064 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12065 for ncn_progname in lipo; do
12066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12067 set dummy ${ncn_progname}; ac_word=$2
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12069 $as_echo_n "checking for $ac_word... " >&6; }
12070 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 if test -n "$LIPO_FOR_TARGET"; then
12074 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12075 else
12076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077 for as_dir in $PATH
12079 IFS=$as_save_IFS
12080 test -z "$as_dir" && as_dir=.
12081 for ac_exec_ext in '' $ac_executable_extensions; do
12082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12083 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085 break 2
12087 done
12088 done
12089 IFS=$as_save_IFS
12093 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12094 if test -n "$LIPO_FOR_TARGET"; then
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12096 $as_echo "$LIPO_FOR_TARGET" >&6; }
12097 else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12103 done
12106 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12107 for ncn_progname in lipo; do
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12109 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12110 if test -x $with_build_time_tools/${ncn_progname}; then
12111 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12113 $as_echo "yes" >&6; }
12114 break
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12119 done
12122 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12123 for ncn_progname in lipo; do
12124 if test -n "$ncn_target_tool_prefix"; then
12125 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12126 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128 $as_echo_n "checking for $ac_word... " >&6; }
12129 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12130 $as_echo_n "(cached) " >&6
12131 else
12132 if test -n "$LIPO_FOR_TARGET"; then
12133 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12134 else
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12146 done
12147 done
12148 IFS=$as_save_IFS
12152 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12153 if test -n "$LIPO_FOR_TARGET"; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12155 $as_echo "$LIPO_FOR_TARGET" >&6; }
12156 else
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158 $as_echo "no" >&6; }
12163 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12165 set dummy ${ncn_progname}; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 if test -n "$LIPO_FOR_TARGET"; then
12172 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12173 else
12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175 for as_dir in $PATH
12177 IFS=$as_save_IFS
12178 test -z "$as_dir" && as_dir=.
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12181 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12183 break 2
12185 done
12186 done
12187 IFS=$as_save_IFS
12191 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12192 if test -n "$LIPO_FOR_TARGET"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12194 $as_echo "$LIPO_FOR_TARGET" >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12202 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12203 done
12206 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12207 set dummy lipo
12208 if test $build = $target ; then
12209 LIPO_FOR_TARGET="$2"
12210 else
12211 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12213 else
12214 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12217 else
12218 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12224 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12225 if test -n "$with_build_time_tools"; then
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12227 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12228 if test -x $with_build_time_tools/nm; then
12229 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12230 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12232 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12233 else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12237 elif test $build != $host && test $have_gcc_for_target = yes; then
12238 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12239 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12240 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12243 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12244 # Extract the first word of "nm", so it can be a program name with args.
12245 set dummy nm; ac_word=$2
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12247 $as_echo_n "checking for $ac_word... " >&6; }
12248 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 case $NM_FOR_TARGET in
12252 [\\/]* | ?:[\\/]*)
12253 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257 for as_dir in $gcc_cv_tool_dirs
12259 IFS=$as_save_IFS
12260 test -z "$as_dir" && as_dir=.
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12263 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265 break 2
12267 done
12268 done
12269 IFS=$as_save_IFS
12272 esac
12274 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12275 if test -n "$NM_FOR_TARGET"; then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12277 $as_echo "$NM_FOR_TARGET" >&6; }
12278 else
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280 $as_echo "no" >&6; }
12285 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12288 if test -n "$NM_FOR_TARGET"; then
12289 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12290 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12291 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12294 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12295 for ncn_progname in nm; do
12296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12297 set dummy ${ncn_progname}; ac_word=$2
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299 $as_echo_n "checking for $ac_word... " >&6; }
12300 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 if test -n "$NM_FOR_TARGET"; then
12304 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12305 else
12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $PATH
12309 IFS=$as_save_IFS
12310 test -z "$as_dir" && as_dir=.
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12315 break 2
12317 done
12318 done
12319 IFS=$as_save_IFS
12323 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12324 if test -n "$NM_FOR_TARGET"; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12326 $as_echo "$NM_FOR_TARGET" >&6; }
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12333 done
12336 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12337 for ncn_progname in nm; do
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12339 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12340 if test -x $with_build_time_tools/${ncn_progname}; then
12341 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12343 $as_echo "yes" >&6; }
12344 break
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12349 done
12352 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12353 for ncn_progname in nm; do
12354 if test -n "$ncn_target_tool_prefix"; then
12355 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12356 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 if test -n "$NM_FOR_TARGET"; then
12363 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12364 else
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $PATH
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12372 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 break 2
12376 done
12377 done
12378 IFS=$as_save_IFS
12382 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12383 if test -n "$NM_FOR_TARGET"; then
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12385 $as_echo "$NM_FOR_TARGET" >&6; }
12386 else
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12393 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12395 set dummy ${ncn_progname}; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 if test -n "$NM_FOR_TARGET"; then
12402 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12403 else
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12411 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 break 2
12415 done
12416 done
12417 IFS=$as_save_IFS
12421 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12422 if test -n "$NM_FOR_TARGET"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12424 $as_echo "$NM_FOR_TARGET" >&6; }
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12432 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12433 done
12436 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12437 set dummy nm
12438 if test $build = $target ; then
12439 NM_FOR_TARGET="$2"
12440 else
12441 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12443 else
12444 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12447 else
12448 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12454 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12455 if test -n "$with_build_time_tools"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12457 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12458 if test -x $with_build_time_tools/objdump; then
12459 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12460 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12462 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12463 else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12467 elif test $build != $host && test $have_gcc_for_target = yes; then
12468 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12469 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12470 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12473 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12474 # Extract the first word of "objdump", so it can be a program name with args.
12475 set dummy objdump; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477 $as_echo_n "checking for $ac_word... " >&6; }
12478 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 case $OBJDUMP_FOR_TARGET in
12482 [\\/]* | ?:[\\/]*)
12483 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $gcc_cv_tool_dirs
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12493 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12497 done
12498 done
12499 IFS=$as_save_IFS
12502 esac
12504 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12505 if test -n "$OBJDUMP_FOR_TARGET"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12507 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12515 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12518 if test -n "$OBJDUMP_FOR_TARGET"; then
12519 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12520 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12521 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12524 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12525 for ncn_progname in objdump; do
12526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12527 set dummy ${ncn_progname}; ac_word=$2
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12529 $as_echo_n "checking for $ac_word... " >&6; }
12530 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 if test -n "$OBJDUMP_FOR_TARGET"; then
12534 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12535 else
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12543 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12547 done
12548 done
12549 IFS=$as_save_IFS
12553 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12554 if test -n "$OBJDUMP_FOR_TARGET"; then
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12556 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12557 else
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12559 $as_echo "no" >&6; }
12563 done
12566 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12567 for ncn_progname in objdump; do
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12569 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12570 if test -x $with_build_time_tools/${ncn_progname}; then
12571 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12573 $as_echo "yes" >&6; }
12574 break
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12579 done
12582 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12583 for ncn_progname in objdump; do
12584 if test -n "$ncn_target_tool_prefix"; then
12585 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12586 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12592 if test -n "$OBJDUMP_FOR_TARGET"; then
12593 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12594 else
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $PATH
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12602 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12606 done
12607 done
12608 IFS=$as_save_IFS
12612 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12613 if test -n "$OBJDUMP_FOR_TARGET"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12615 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12616 else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12623 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12625 set dummy ${ncn_progname}; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 if test -n "$OBJDUMP_FOR_TARGET"; then
12632 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12633 else
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12641 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12645 done
12646 done
12647 IFS=$as_save_IFS
12651 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12652 if test -n "$OBJDUMP_FOR_TARGET"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12654 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12655 else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12662 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12663 done
12666 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12667 set dummy objdump
12668 if test $build = $target ; then
12669 OBJDUMP_FOR_TARGET="$2"
12670 else
12671 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12673 else
12674 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12677 else
12678 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12684 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12685 if test -n "$with_build_time_tools"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12687 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12688 if test -x $with_build_time_tools/ranlib; then
12689 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12690 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12692 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12693 else
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12697 elif test $build != $host && test $have_gcc_for_target = yes; then
12698 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12699 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12700 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12703 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12704 # Extract the first word of "ranlib", so it can be a program name with args.
12705 set dummy ranlib; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 case $RANLIB_FOR_TARGET in
12712 [\\/]* | ?:[\\/]*)
12713 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717 for as_dir in $gcc_cv_tool_dirs
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
12721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12725 break 2
12727 done
12728 done
12729 IFS=$as_save_IFS
12732 esac
12734 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12735 if test -n "$RANLIB_FOR_TARGET"; then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12737 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12738 else
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12740 $as_echo "no" >&6; }
12745 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12748 if test -n "$RANLIB_FOR_TARGET"; then
12749 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12750 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12751 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12754 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12755 for ncn_progname in ranlib; do
12756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12757 set dummy ${ncn_progname}; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759 $as_echo_n "checking for $ac_word... " >&6; }
12760 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 if test -n "$RANLIB_FOR_TARGET"; then
12764 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12765 else
12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in $PATH
12769 IFS=$as_save_IFS
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
12772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12773 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 break 2
12777 done
12778 done
12779 IFS=$as_save_IFS
12783 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12784 if test -n "$RANLIB_FOR_TARGET"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12786 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12787 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12793 done
12796 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12797 for ncn_progname in ranlib; do
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12799 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12800 if test -x $with_build_time_tools/${ncn_progname}; then
12801 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12803 $as_echo "yes" >&6; }
12804 break
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12809 done
12812 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12813 for ncn_progname in ranlib; do
12814 if test -n "$ncn_target_tool_prefix"; then
12815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12820 $as_echo_n "(cached) " >&6
12821 else
12822 if test -n "$RANLIB_FOR_TARGET"; then
12823 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12824 else
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12832 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 break 2
12836 done
12837 done
12838 IFS=$as_save_IFS
12842 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12843 if test -n "$RANLIB_FOR_TARGET"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12845 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12853 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855 set dummy ${ncn_progname}; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 if test -n "$RANLIB_FOR_TARGET"; then
12862 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12863 else
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12871 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 break 2
12875 done
12876 done
12877 IFS=$as_save_IFS
12881 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12882 if test -n "$RANLIB_FOR_TARGET"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12884 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12892 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12893 done
12896 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12897 set dummy ranlib
12898 if test $build = $target ; then
12899 RANLIB_FOR_TARGET="$2"
12900 else
12901 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12903 else
12904 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12907 else
12908 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12914 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12915 if test -n "$with_build_time_tools"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12917 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12918 if test -x $with_build_time_tools/readelf; then
12919 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12920 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12922 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12923 else
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12927 elif test $build != $host && test $have_gcc_for_target = yes; then
12928 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12929 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12930 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12933 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12934 # Extract the first word of "readelf", so it can be a program name with args.
12935 set dummy readelf; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 case $READELF_FOR_TARGET in
12942 [\\/]* | ?:[\\/]*)
12943 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947 for as_dir in $gcc_cv_tool_dirs
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
12952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12953 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12957 done
12958 done
12959 IFS=$as_save_IFS
12962 esac
12964 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12965 if test -n "$READELF_FOR_TARGET"; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12967 $as_echo "$READELF_FOR_TARGET" >&6; }
12968 else
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 $as_echo "no" >&6; }
12975 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12978 if test -n "$READELF_FOR_TARGET"; then
12979 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12980 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12981 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12984 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12985 for ncn_progname in readelf; do
12986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12987 set dummy ${ncn_progname}; ac_word=$2
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12989 $as_echo_n "checking for $ac_word... " >&6; }
12990 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 if test -n "$READELF_FOR_TARGET"; then
12994 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12995 else
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
12999 IFS=$as_save_IFS
13000 test -z "$as_dir" && as_dir=.
13001 for ac_exec_ext in '' $ac_executable_extensions; do
13002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13003 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13005 break 2
13007 done
13008 done
13009 IFS=$as_save_IFS
13013 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13014 if test -n "$READELF_FOR_TARGET"; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13016 $as_echo "$READELF_FOR_TARGET" >&6; }
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13023 done
13026 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13027 for ncn_progname in readelf; do
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13029 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13030 if test -x $with_build_time_tools/${ncn_progname}; then
13031 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13033 $as_echo "yes" >&6; }
13034 break
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13039 done
13042 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13043 for ncn_progname in readelf; do
13044 if test -n "$ncn_target_tool_prefix"; then
13045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13046 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test -n "$READELF_FOR_TARGET"; then
13053 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13066 done
13067 done
13068 IFS=$as_save_IFS
13072 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13073 if test -n "$READELF_FOR_TARGET"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13075 $as_echo "$READELF_FOR_TARGET" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13083 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13085 set dummy ${ncn_progname}; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 if test -n "$READELF_FOR_TARGET"; then
13092 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13093 else
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13105 done
13106 done
13107 IFS=$as_save_IFS
13111 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13112 if test -n "$READELF_FOR_TARGET"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13114 $as_echo "$READELF_FOR_TARGET" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13122 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13123 done
13126 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13127 set dummy readelf
13128 if test $build = $target ; then
13129 READELF_FOR_TARGET="$2"
13130 else
13131 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13133 else
13134 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13137 else
13138 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13144 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13145 if test -n "$with_build_time_tools"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13147 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13148 if test -x $with_build_time_tools/strip; then
13149 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13150 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13152 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13153 else
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13157 elif test $build != $host && test $have_gcc_for_target = yes; then
13158 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13159 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13160 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13163 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13164 # Extract the first word of "strip", so it can be a program name with args.
13165 set dummy strip; ac_word=$2
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13167 $as_echo_n "checking for $ac_word... " >&6; }
13168 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 case $STRIP_FOR_TARGET in
13172 [\\/]* | ?:[\\/]*)
13173 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177 for as_dir in $gcc_cv_tool_dirs
13179 IFS=$as_save_IFS
13180 test -z "$as_dir" && as_dir=.
13181 for ac_exec_ext in '' $ac_executable_extensions; do
13182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185 break 2
13187 done
13188 done
13189 IFS=$as_save_IFS
13192 esac
13194 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13195 if test -n "$STRIP_FOR_TARGET"; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13197 $as_echo "$STRIP_FOR_TARGET" >&6; }
13198 else
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200 $as_echo "no" >&6; }
13205 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13208 if test -n "$STRIP_FOR_TARGET"; then
13209 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13210 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13211 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13214 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13215 for ncn_progname in strip; do
13216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13217 set dummy ${ncn_progname}; ac_word=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223 if test -n "$STRIP_FOR_TARGET"; then
13224 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13225 else
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13235 break 2
13237 done
13238 done
13239 IFS=$as_save_IFS
13243 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13244 if test -n "$STRIP_FOR_TARGET"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13246 $as_echo "$STRIP_FOR_TARGET" >&6; }
13247 else
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13253 done
13256 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13257 for ncn_progname in strip; do
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13259 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13260 if test -x $with_build_time_tools/${ncn_progname}; then
13261 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13263 $as_echo "yes" >&6; }
13264 break
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13269 done
13272 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13273 for ncn_progname in strip; do
13274 if test -n "$ncn_target_tool_prefix"; then
13275 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13276 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13278 $as_echo_n "checking for $ac_word... " >&6; }
13279 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13281 else
13282 if test -n "$STRIP_FOR_TARGET"; then
13283 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13284 else
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13296 done
13297 done
13298 IFS=$as_save_IFS
13302 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13303 if test -n "$STRIP_FOR_TARGET"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13305 $as_echo "$STRIP_FOR_TARGET" >&6; }
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13313 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13315 set dummy ${ncn_progname}; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$STRIP_FOR_TARGET"; then
13322 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13335 done
13336 done
13337 IFS=$as_save_IFS
13341 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13342 if test -n "$STRIP_FOR_TARGET"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13344 $as_echo "$STRIP_FOR_TARGET" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13352 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13353 done
13356 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13357 set dummy strip
13358 if test $build = $target ; then
13359 STRIP_FOR_TARGET="$2"
13360 else
13361 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13363 else
13364 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13367 else
13368 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13374 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13375 if test -n "$with_build_time_tools"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13377 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13378 if test -x $with_build_time_tools/windres; then
13379 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13380 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13382 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13383 else
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 $as_echo "no" >&6; }
13387 elif test $build != $host && test $have_gcc_for_target = yes; then
13388 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13389 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13390 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13393 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13394 # Extract the first word of "windres", so it can be a program name with args.
13395 set dummy windres; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 case $WINDRES_FOR_TARGET in
13402 [\\/]* | ?:[\\/]*)
13403 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $gcc_cv_tool_dirs
13409 IFS=$as_save_IFS
13410 test -z "$as_dir" && as_dir=.
13411 for ac_exec_ext in '' $ac_executable_extensions; do
13412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13413 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415 break 2
13417 done
13418 done
13419 IFS=$as_save_IFS
13422 esac
13424 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13425 if test -n "$WINDRES_FOR_TARGET"; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13427 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13428 else
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13435 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13438 if test -n "$WINDRES_FOR_TARGET"; then
13439 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13440 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13441 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13444 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13445 for ncn_progname in windres; do
13446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13447 set dummy ${ncn_progname}; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 if test -n "$WINDRES_FOR_TARGET"; then
13454 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13455 else
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 break 2
13467 done
13468 done
13469 IFS=$as_save_IFS
13473 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13474 if test -n "$WINDRES_FOR_TARGET"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13476 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13477 else
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13483 done
13486 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13487 for ncn_progname in windres; do
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13489 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13490 if test -x $with_build_time_tools/${ncn_progname}; then
13491 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13493 $as_echo "yes" >&6; }
13494 break
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13499 done
13502 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13503 for ncn_progname in windres; do
13504 if test -n "$ncn_target_tool_prefix"; then
13505 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13506 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508 $as_echo_n "checking for $ac_word... " >&6; }
13509 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 if test -n "$WINDRES_FOR_TARGET"; then
13513 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13514 else
13515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516 for as_dir in $PATH
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
13521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13522 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13526 done
13527 done
13528 IFS=$as_save_IFS
13532 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13533 if test -n "$WINDRES_FOR_TARGET"; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13535 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13536 else
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13543 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13545 set dummy ${ncn_progname}; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test -n "$WINDRES_FOR_TARGET"; then
13552 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13561 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13565 done
13566 done
13567 IFS=$as_save_IFS
13571 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13572 if test -n "$WINDRES_FOR_TARGET"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13574 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13582 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13583 done
13586 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13587 set dummy windres
13588 if test $build = $target ; then
13589 WINDRES_FOR_TARGET="$2"
13590 else
13591 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13593 else
13594 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13597 else
13598 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13604 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13605 if test -n "$with_build_time_tools"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13607 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13608 if test -x $with_build_time_tools/windmc; then
13609 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13610 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13612 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13613 else
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13617 elif test $build != $host && test $have_gcc_for_target = yes; then
13618 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13619 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13620 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13623 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13624 # Extract the first word of "windmc", so it can be a program name with args.
13625 set dummy windmc; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 case $WINDMC_FOR_TARGET in
13632 [\\/]* | ?:[\\/]*)
13633 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637 for as_dir in $gcc_cv_tool_dirs
13639 IFS=$as_save_IFS
13640 test -z "$as_dir" && as_dir=.
13641 for ac_exec_ext in '' $ac_executable_extensions; do
13642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13643 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13645 break 2
13647 done
13648 done
13649 IFS=$as_save_IFS
13652 esac
13654 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13655 if test -n "$WINDMC_FOR_TARGET"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13657 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660 $as_echo "no" >&6; }
13665 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13668 if test -n "$WINDMC_FOR_TARGET"; then
13669 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13670 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13671 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13674 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13675 for ncn_progname in windmc; do
13676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13677 set dummy ${ncn_progname}; ac_word=$2
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13679 $as_echo_n "checking for $ac_word... " >&6; }
13680 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 if test -n "$WINDMC_FOR_TARGET"; then
13684 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13685 else
13686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687 for as_dir in $PATH
13689 IFS=$as_save_IFS
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
13692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13693 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13695 break 2
13697 done
13698 done
13699 IFS=$as_save_IFS
13703 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13704 if test -n "$WINDMC_FOR_TARGET"; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13706 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13707 else
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709 $as_echo "no" >&6; }
13713 done
13716 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13717 for ncn_progname in windmc; do
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13719 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13720 if test -x $with_build_time_tools/${ncn_progname}; then
13721 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13723 $as_echo "yes" >&6; }
13724 break
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13729 done
13732 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13733 for ncn_progname in windmc; do
13734 if test -n "$ncn_target_tool_prefix"; then
13735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13736 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13738 $as_echo_n "checking for $ac_word... " >&6; }
13739 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 if test -n "$WINDMC_FOR_TARGET"; then
13743 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13744 else
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13752 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13756 done
13757 done
13758 IFS=$as_save_IFS
13762 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13763 if test -n "$WINDMC_FOR_TARGET"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13765 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13766 else
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768 $as_echo "no" >&6; }
13773 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13775 set dummy ${ncn_progname}; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 if test -n "$WINDMC_FOR_TARGET"; then
13782 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13783 else
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13787 IFS=$as_save_IFS
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13791 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 break 2
13795 done
13796 done
13797 IFS=$as_save_IFS
13801 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13802 if test -n "$WINDMC_FOR_TARGET"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13804 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13805 else
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13812 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13813 done
13816 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13817 set dummy windmc
13818 if test $build = $target ; then
13819 WINDMC_FOR_TARGET="$2"
13820 else
13821 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13823 else
13824 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13827 else
13828 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13832 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13835 $as_echo_n "checking where to find the target ar... " >&6; }
13836 if test "x${build}" != "x${host}" ; then
13837 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13838 # We already found the complete path
13839 ac_dir=`dirname $AR_FOR_TARGET`
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13841 $as_echo "pre-installed in $ac_dir" >&6; }
13842 else
13843 # Canadian cross, just use what we found
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845 $as_echo "pre-installed" >&6; }
13847 else
13848 ok=yes
13849 case " ${configdirs} " in
13850 *" binutils "*) ;;
13851 *) ok=no ;;
13852 esac
13854 if test $ok = yes; then
13855 # An in-tree tool is available and we can use it
13856 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13858 $as_echo "just compiled" >&6; }
13859 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13860 # We already found the complete path
13861 ac_dir=`dirname $AR_FOR_TARGET`
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13863 $as_echo "pre-installed in $ac_dir" >&6; }
13864 elif test "x$target" = "x$host"; then
13865 # We can use an host tool
13866 AR_FOR_TARGET='$(AR)'
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13868 $as_echo "host tool" >&6; }
13869 else
13870 # We need a cross tool
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13872 $as_echo "pre-installed" >&6; }
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13877 $as_echo_n "checking where to find the target as... " >&6; }
13878 if test "x${build}" != "x${host}" ; then
13879 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13880 # We already found the complete path
13881 ac_dir=`dirname $AS_FOR_TARGET`
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13883 $as_echo "pre-installed in $ac_dir" >&6; }
13884 else
13885 # Canadian cross, just use what we found
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13887 $as_echo "pre-installed" >&6; }
13889 else
13890 ok=yes
13891 case " ${configdirs} " in
13892 *" gas "*) ;;
13893 *) ok=no ;;
13894 esac
13896 if test $ok = yes; then
13897 # An in-tree tool is available and we can use it
13898 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13900 $as_echo "just compiled" >&6; }
13901 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13902 # We already found the complete path
13903 ac_dir=`dirname $AS_FOR_TARGET`
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13905 $as_echo "pre-installed in $ac_dir" >&6; }
13906 elif test "x$target" = "x$host"; then
13907 # We can use an host tool
13908 AS_FOR_TARGET='$(AS)'
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13910 $as_echo "host tool" >&6; }
13911 else
13912 # We need a cross tool
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13914 $as_echo "pre-installed" >&6; }
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13919 $as_echo_n "checking where to find the target cc... " >&6; }
13920 if test "x${build}" != "x${host}" ; then
13921 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13922 # We already found the complete path
13923 ac_dir=`dirname $CC_FOR_TARGET`
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13925 $as_echo "pre-installed in $ac_dir" >&6; }
13926 else
13927 # Canadian cross, just use what we found
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929 $as_echo "pre-installed" >&6; }
13931 else
13932 ok=yes
13933 case " ${configdirs} " in
13934 *" gcc "*) ;;
13935 *) ok=no ;;
13936 esac
13938 if test $ok = yes; then
13939 # An in-tree tool is available and we can use it
13940 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13942 $as_echo "just compiled" >&6; }
13943 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13944 # We already found the complete path
13945 ac_dir=`dirname $CC_FOR_TARGET`
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13947 $as_echo "pre-installed in $ac_dir" >&6; }
13948 elif test "x$target" = "x$host"; then
13949 # We can use an host tool
13950 CC_FOR_TARGET='$(CC)'
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13952 $as_echo "host tool" >&6; }
13953 else
13954 # We need a cross tool
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13956 $as_echo "pre-installed" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13961 $as_echo_n "checking where to find the target c++... " >&6; }
13962 if test "x${build}" != "x${host}" ; then
13963 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
13965 ac_dir=`dirname $CXX_FOR_TARGET`
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967 $as_echo "pre-installed in $ac_dir" >&6; }
13968 else
13969 # Canadian cross, just use what we found
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971 $as_echo "pre-installed" >&6; }
13973 else
13974 ok=yes
13975 case " ${configdirs} " in
13976 *" gcc "*) ;;
13977 *) ok=no ;;
13978 esac
13979 case ,${enable_languages}, in
13980 *,c++,*) ;;
13981 *) ok=no ;;
13982 esac
13983 if test $ok = yes; then
13984 # An in-tree tool is available and we can use it
13985 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13987 $as_echo "just compiled" >&6; }
13988 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13989 # We already found the complete path
13990 ac_dir=`dirname $CXX_FOR_TARGET`
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13992 $as_echo "pre-installed in $ac_dir" >&6; }
13993 elif test "x$target" = "x$host"; then
13994 # We can use an host tool
13995 CXX_FOR_TARGET='$(CXX)'
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13997 $as_echo "host tool" >&6; }
13998 else
13999 # We need a cross tool
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14001 $as_echo "pre-installed" >&6; }
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14006 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14007 if test "x${build}" != "x${host}" ; then
14008 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
14010 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012 $as_echo "pre-installed in $ac_dir" >&6; }
14013 else
14014 # Canadian cross, just use what we found
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016 $as_echo "pre-installed" >&6; }
14018 else
14019 ok=yes
14020 case " ${configdirs} " in
14021 *" gcc "*) ;;
14022 *) ok=no ;;
14023 esac
14024 case ,${enable_languages}, in
14025 *,c++,*) ;;
14026 *) ok=no ;;
14027 esac
14028 if test $ok = yes; then
14029 # An in-tree tool is available and we can use it
14030 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 -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14032 $as_echo "just compiled" >&6; }
14033 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14034 # We already found the complete path
14035 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14037 $as_echo "pre-installed in $ac_dir" >&6; }
14038 elif test "x$target" = "x$host"; then
14039 # We can use an host tool
14040 RAW_CXX_FOR_TARGET='$(CXX)'
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14042 $as_echo "host tool" >&6; }
14043 else
14044 # We need a cross tool
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14046 $as_echo "pre-installed" >&6; }
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14051 $as_echo_n "checking where to find the target dlltool... " >&6; }
14052 if test "x${build}" != "x${host}" ; then
14053 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
14055 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057 $as_echo "pre-installed in $ac_dir" >&6; }
14058 else
14059 # Canadian cross, just use what we found
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14061 $as_echo "pre-installed" >&6; }
14063 else
14064 ok=yes
14065 case " ${configdirs} " in
14066 *" binutils "*) ;;
14067 *) ok=no ;;
14068 esac
14070 if test $ok = yes; then
14071 # An in-tree tool is available and we can use it
14072 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14074 $as_echo "just compiled" >&6; }
14075 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14076 # We already found the complete path
14077 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14079 $as_echo "pre-installed in $ac_dir" >&6; }
14080 elif test "x$target" = "x$host"; then
14081 # We can use an host tool
14082 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14084 $as_echo "host tool" >&6; }
14085 else
14086 # We need a cross tool
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14088 $as_echo "pre-installed" >&6; }
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14093 $as_echo_n "checking where to find the target gcc... " >&6; }
14094 if test "x${build}" != "x${host}" ; then
14095 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
14097 ac_dir=`dirname $GCC_FOR_TARGET`
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099 $as_echo "pre-installed in $ac_dir" >&6; }
14100 else
14101 # Canadian cross, just use what we found
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14103 $as_echo "pre-installed" >&6; }
14105 else
14106 ok=yes
14107 case " ${configdirs} " in
14108 *" gcc "*) ;;
14109 *) ok=no ;;
14110 esac
14112 if test $ok = yes; then
14113 # An in-tree tool is available and we can use it
14114 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14116 $as_echo "just compiled" >&6; }
14117 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14118 # We already found the complete path
14119 ac_dir=`dirname $GCC_FOR_TARGET`
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14121 $as_echo "pre-installed in $ac_dir" >&6; }
14122 elif test "x$target" = "x$host"; then
14123 # We can use an host tool
14124 GCC_FOR_TARGET='$()'
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14126 $as_echo "host tool" >&6; }
14127 else
14128 # We need a cross tool
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14130 $as_echo "pre-installed" >&6; }
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14135 $as_echo_n "checking where to find the target gcj... " >&6; }
14136 if test "x${build}" != "x${host}" ; then
14137 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
14139 ac_dir=`dirname $GCJ_FOR_TARGET`
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141 $as_echo "pre-installed in $ac_dir" >&6; }
14142 else
14143 # Canadian cross, just use what we found
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14145 $as_echo "pre-installed" >&6; }
14147 else
14148 ok=yes
14149 case " ${configdirs} " in
14150 *" gcc "*) ;;
14151 *) ok=no ;;
14152 esac
14153 case ,${enable_languages}, in
14154 *,java,*) ;;
14155 *) ok=no ;;
14156 esac
14157 if test $ok = yes; then
14158 # An in-tree tool is available and we can use it
14159 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14161 $as_echo "just compiled" >&6; }
14162 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14163 # We already found the complete path
14164 ac_dir=`dirname $GCJ_FOR_TARGET`
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14166 $as_echo "pre-installed in $ac_dir" >&6; }
14167 elif test "x$target" = "x$host"; then
14168 # We can use an host tool
14169 GCJ_FOR_TARGET='$(GCJ)'
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14171 $as_echo "host tool" >&6; }
14172 else
14173 # We need a cross tool
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14175 $as_echo "pre-installed" >&6; }
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14180 $as_echo_n "checking where to find the target gfortran... " >&6; }
14181 if test "x${build}" != "x${host}" ; then
14182 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14183 # We already found the complete path
14184 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14186 $as_echo "pre-installed in $ac_dir" >&6; }
14187 else
14188 # Canadian cross, just use what we found
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190 $as_echo "pre-installed" >&6; }
14192 else
14193 ok=yes
14194 case " ${configdirs} " in
14195 *" gcc "*) ;;
14196 *) ok=no ;;
14197 esac
14198 case ,${enable_languages}, in
14199 *,fortran,*) ;;
14200 *) ok=no ;;
14201 esac
14202 if test $ok = yes; then
14203 # An in-tree tool is available and we can use it
14204 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14206 $as_echo "just compiled" >&6; }
14207 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14208 # We already found the complete path
14209 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14211 $as_echo "pre-installed in $ac_dir" >&6; }
14212 elif test "x$target" = "x$host"; then
14213 # We can use an host tool
14214 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14216 $as_echo "host tool" >&6; }
14217 else
14218 # We need a cross tool
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220 $as_echo "pre-installed" >&6; }
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14225 $as_echo_n "checking where to find the target gccgo... " >&6; }
14226 if test "x${build}" != "x${host}" ; then
14227 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14228 # We already found the complete path
14229 ac_dir=`dirname $GOC_FOR_TARGET`
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14231 $as_echo "pre-installed in $ac_dir" >&6; }
14232 else
14233 # Canadian cross, just use what we found
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14235 $as_echo "pre-installed" >&6; }
14237 else
14238 ok=yes
14239 case " ${configdirs} " in
14240 *" gcc "*) ;;
14241 *) ok=no ;;
14242 esac
14243 case ,${enable_languages}, in
14244 *,go,*) ;;
14245 *) ok=no ;;
14246 esac
14247 if test $ok = yes; then
14248 # An in-tree tool is available and we can use it
14249 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14251 $as_echo "just compiled" >&6; }
14252 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
14254 ac_dir=`dirname $GOC_FOR_TARGET`
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256 $as_echo "pre-installed in $ac_dir" >&6; }
14257 elif test "x$target" = "x$host"; then
14258 # We can use an host tool
14259 GOC_FOR_TARGET='$(GOC)'
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14261 $as_echo "host tool" >&6; }
14262 else
14263 # We need a cross tool
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265 $as_echo "pre-installed" >&6; }
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14270 $as_echo_n "checking where to find the target ld... " >&6; }
14271 if test "x${build}" != "x${host}" ; then
14272 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
14274 ac_dir=`dirname $LD_FOR_TARGET`
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276 $as_echo "pre-installed in $ac_dir" >&6; }
14277 else
14278 # Canadian cross, just use what we found
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280 $as_echo "pre-installed" >&6; }
14282 else
14283 ok=yes
14284 case " ${configdirs} " in
14285 *" ld "*) ;;
14286 *) ok=no ;;
14287 esac
14289 if test $ok = yes; then
14290 # An in-tree tool is available and we can use it
14291 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14293 $as_echo "just compiled" >&6; }
14294 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
14296 ac_dir=`dirname $LD_FOR_TARGET`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298 $as_echo "pre-installed in $ac_dir" >&6; }
14299 elif test "x$target" = "x$host"; then
14300 # We can use an host tool
14301 LD_FOR_TARGET='$(LD)'
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14303 $as_echo "host tool" >&6; }
14304 else
14305 # We need a cross tool
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307 $as_echo "pre-installed" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14312 $as_echo_n "checking where to find the target lipo... " >&6; }
14313 if test "x${build}" != "x${host}" ; then
14314 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $LIPO_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318 $as_echo "pre-installed in $ac_dir" >&6; }
14319 else
14320 # Canadian cross, just use what we found
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322 $as_echo "pre-installed" >&6; }
14324 else
14325 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14326 # We already found the complete path
14327 ac_dir=`dirname $LIPO_FOR_TARGET`
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329 $as_echo "pre-installed in $ac_dir" >&6; }
14330 elif test "x$target" = "x$host"; then
14331 # We can use an host tool
14332 LIPO_FOR_TARGET='$(LIPO)'
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14334 $as_echo "host tool" >&6; }
14335 else
14336 # We need a cross tool
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14338 $as_echo "pre-installed" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14343 $as_echo_n "checking where to find the target nm... " >&6; }
14344 if test "x${build}" != "x${host}" ; then
14345 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14346 # We already found the complete path
14347 ac_dir=`dirname $NM_FOR_TARGET`
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349 $as_echo "pre-installed in $ac_dir" >&6; }
14350 else
14351 # Canadian cross, just use what we found
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14353 $as_echo "pre-installed" >&6; }
14355 else
14356 ok=yes
14357 case " ${configdirs} " in
14358 *" binutils "*) ;;
14359 *) ok=no ;;
14360 esac
14362 if test $ok = yes; then
14363 # An in-tree tool is available and we can use it
14364 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14366 $as_echo "just compiled" >&6; }
14367 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14368 # We already found the complete path
14369 ac_dir=`dirname $NM_FOR_TARGET`
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14371 $as_echo "pre-installed in $ac_dir" >&6; }
14372 elif test "x$target" = "x$host"; then
14373 # We can use an host tool
14374 NM_FOR_TARGET='$(NM)'
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14376 $as_echo "host tool" >&6; }
14377 else
14378 # We need a cross tool
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380 $as_echo "pre-installed" >&6; }
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14385 $as_echo_n "checking where to find the target objdump... " >&6; }
14386 if test "x${build}" != "x${host}" ; then
14387 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14388 # We already found the complete path
14389 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14391 $as_echo "pre-installed in $ac_dir" >&6; }
14392 else
14393 # Canadian cross, just use what we found
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14395 $as_echo "pre-installed" >&6; }
14397 else
14398 ok=yes
14399 case " ${configdirs} " in
14400 *" binutils "*) ;;
14401 *) ok=no ;;
14402 esac
14404 if test $ok = yes; then
14405 # An in-tree tool is available and we can use it
14406 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14408 $as_echo "just compiled" >&6; }
14409 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14410 # We already found the complete path
14411 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14413 $as_echo "pre-installed in $ac_dir" >&6; }
14414 elif test "x$target" = "x$host"; then
14415 # We can use an host tool
14416 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14418 $as_echo "host tool" >&6; }
14419 else
14420 # We need a cross tool
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422 $as_echo "pre-installed" >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14427 $as_echo_n "checking where to find the target ranlib... " >&6; }
14428 if test "x${build}" != "x${host}" ; then
14429 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14430 # We already found the complete path
14431 ac_dir=`dirname $RANLIB_FOR_TARGET`
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14433 $as_echo "pre-installed in $ac_dir" >&6; }
14434 else
14435 # Canadian cross, just use what we found
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14437 $as_echo "pre-installed" >&6; }
14439 else
14440 ok=yes
14441 case " ${configdirs} " in
14442 *" binutils "*) ;;
14443 *) ok=no ;;
14444 esac
14446 if test $ok = yes; then
14447 # An in-tree tool is available and we can use it
14448 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14450 $as_echo "just compiled" >&6; }
14451 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14452 # We already found the complete path
14453 ac_dir=`dirname $RANLIB_FOR_TARGET`
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14455 $as_echo "pre-installed in $ac_dir" >&6; }
14456 elif test "x$target" = "x$host"; then
14457 # We can use an host tool
14458 RANLIB_FOR_TARGET='$(RANLIB)'
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14460 $as_echo "host tool" >&6; }
14461 else
14462 # We need a cross tool
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14464 $as_echo "pre-installed" >&6; }
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14469 $as_echo_n "checking where to find the target readelf... " >&6; }
14470 if test "x${build}" != "x${host}" ; then
14471 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14472 # We already found the complete path
14473 ac_dir=`dirname $READELF_FOR_TARGET`
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14475 $as_echo "pre-installed in $ac_dir" >&6; }
14476 else
14477 # Canadian cross, just use what we found
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14479 $as_echo "pre-installed" >&6; }
14481 else
14482 ok=yes
14483 case " ${configdirs} " in
14484 *" binutils "*) ;;
14485 *) ok=no ;;
14486 esac
14488 if test $ok = yes; then
14489 # An in-tree tool is available and we can use it
14490 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14492 $as_echo "just compiled" >&6; }
14493 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14494 # We already found the complete path
14495 ac_dir=`dirname $READELF_FOR_TARGET`
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14497 $as_echo "pre-installed in $ac_dir" >&6; }
14498 elif test "x$target" = "x$host"; then
14499 # We can use an host tool
14500 READELF_FOR_TARGET='$(READELF)'
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14502 $as_echo "host tool" >&6; }
14503 else
14504 # We need a cross tool
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14506 $as_echo "pre-installed" >&6; }
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14511 $as_echo_n "checking where to find the target strip... " >&6; }
14512 if test "x${build}" != "x${host}" ; then
14513 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14514 # We already found the complete path
14515 ac_dir=`dirname $STRIP_FOR_TARGET`
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14517 $as_echo "pre-installed in $ac_dir" >&6; }
14518 else
14519 # Canadian cross, just use what we found
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14521 $as_echo "pre-installed" >&6; }
14523 else
14524 ok=yes
14525 case " ${configdirs} " in
14526 *" binutils "*) ;;
14527 *) ok=no ;;
14528 esac
14530 if test $ok = yes; then
14531 # An in-tree tool is available and we can use it
14532 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14534 $as_echo "just compiled" >&6; }
14535 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14536 # We already found the complete path
14537 ac_dir=`dirname $STRIP_FOR_TARGET`
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14539 $as_echo "pre-installed in $ac_dir" >&6; }
14540 elif test "x$target" = "x$host"; then
14541 # We can use an host tool
14542 STRIP_FOR_TARGET='$(STRIP)'
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14544 $as_echo "host tool" >&6; }
14545 else
14546 # We need a cross tool
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14548 $as_echo "pre-installed" >&6; }
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14553 $as_echo_n "checking where to find the target windres... " >&6; }
14554 if test "x${build}" != "x${host}" ; then
14555 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14556 # We already found the complete path
14557 ac_dir=`dirname $WINDRES_FOR_TARGET`
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14559 $as_echo "pre-installed in $ac_dir" >&6; }
14560 else
14561 # Canadian cross, just use what we found
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14563 $as_echo "pre-installed" >&6; }
14565 else
14566 ok=yes
14567 case " ${configdirs} " in
14568 *" binutils "*) ;;
14569 *) ok=no ;;
14570 esac
14572 if test $ok = yes; then
14573 # An in-tree tool is available and we can use it
14574 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14576 $as_echo "just compiled" >&6; }
14577 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14578 # We already found the complete path
14579 ac_dir=`dirname $WINDRES_FOR_TARGET`
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14581 $as_echo "pre-installed in $ac_dir" >&6; }
14582 elif test "x$target" = "x$host"; then
14583 # We can use an host tool
14584 WINDRES_FOR_TARGET='$(WINDRES)'
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14586 $as_echo "host tool" >&6; }
14587 else
14588 # We need a cross tool
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14590 $as_echo "pre-installed" >&6; }
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14595 $as_echo_n "checking where to find the target windmc... " >&6; }
14596 if test "x${build}" != "x${host}" ; then
14597 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14598 # We already found the complete path
14599 ac_dir=`dirname $WINDMC_FOR_TARGET`
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14601 $as_echo "pre-installed in $ac_dir" >&6; }
14602 else
14603 # Canadian cross, just use what we found
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14605 $as_echo "pre-installed" >&6; }
14607 else
14608 ok=yes
14609 case " ${configdirs} " in
14610 *" binutils "*) ;;
14611 *) ok=no ;;
14612 esac
14614 if test $ok = yes; then
14615 # An in-tree tool is available and we can use it
14616 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14618 $as_echo "just compiled" >&6; }
14619 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14620 # We already found the complete path
14621 ac_dir=`dirname $WINDMC_FOR_TARGET`
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14623 $as_echo "pre-installed in $ac_dir" >&6; }
14624 elif test "x$target" = "x$host"; then
14625 # We can use an host tool
14626 WINDMC_FOR_TARGET='$(WINDMC)'
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14628 $as_echo "host tool" >&6; }
14629 else
14630 # We need a cross tool
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14632 $as_echo "pre-installed" >&6; }
14640 # Certain tools may need extra flags.
14641 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14642 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14643 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14645 # When building target libraries, except in a Canadian cross, we use
14646 # the same toolchain as the compiler we just built.
14647 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14648 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14649 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14650 if test $host = $build; then
14651 case " $configdirs " in
14652 *" gcc "*)
14653 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14654 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14655 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14657 esac
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14665 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14666 # Check whether --enable-maintainer-mode was given.
14667 if test "${enable_maintainer_mode+set}" = set; then :
14668 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14669 else
14670 USE_MAINTAINER_MODE=no
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14674 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14677 if test "$USE_MAINTAINER_MODE" = yes; then
14678 MAINTAINER_MODE_TRUE=
14679 MAINTAINER_MODE_FALSE='#'
14680 else
14681 MAINTAINER_MODE_TRUE='#'
14682 MAINTAINER_MODE_FALSE=
14684 MAINT=$MAINTAINER_MODE_TRUE
14686 # ---------------------
14687 # GCC bootstrap support
14688 # ---------------------
14690 # Stage specific cflags for build.
14691 stage1_cflags="-g"
14692 case $build in
14693 vax-*-*)
14694 case ${GCC} in
14695 yes) stage1_cflags="-g -Wa,-J" ;;
14696 *) stage1_cflags="-g -J" ;;
14697 esac ;;
14698 esac
14702 # Enable --enable-checking in stage1 of the compiler.
14703 # Check whether --enable-stage1-checking was given.
14704 if test "${enable_stage1_checking+set}" = set; then :
14705 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14706 else
14707 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14708 stage1_checking=--enable-checking=yes,types
14709 else
14710 stage1_checking=--enable-checking=$enable_checking,types
14716 # Enable -Werror in bootstrap stage2 and later.
14717 # Check whether --enable-werror was given.
14718 if test "${enable_werror+set}" = set; then :
14719 enableval=$enable_werror;
14720 else
14721 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14722 enable_werror=yes
14723 else
14724 enable_werror=no
14728 case ${enable_werror} in
14729 yes) stage2_werror_flag="--enable-werror-always" ;;
14730 *) stage2_werror_flag="" ;;
14731 esac
14734 # Enable --enable-host-shared.
14735 # Check whether --enable-host-shared was given.
14736 if test "${enable_host_shared+set}" = set; then :
14737 enableval=$enable_host_shared; host_shared=$enableval
14738 else
14739 host_shared=no
14744 # Specify what files to not compare during bootstrap.
14746 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14747 case "$target" in
14748 hppa*64*-*-hpux*) ;;
14749 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14750 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14751 esac
14754 ac_config_files="$ac_config_files Makefile"
14756 cat >confcache <<\_ACEOF
14757 # This file is a shell script that caches the results of configure
14758 # tests run on this system so they can be shared between configure
14759 # scripts and configure runs, see configure's option --config-cache.
14760 # It is not useful on other systems. If it contains results you don't
14761 # want to keep, you may remove or edit it.
14763 # config.status only pays attention to the cache file if you give it
14764 # the --recheck option to rerun configure.
14766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14768 # following values.
14770 _ACEOF
14772 # The following way of writing the cache mishandles newlines in values,
14773 # but we know of no workaround that is simple, portable, and efficient.
14774 # So, we kill variables containing newlines.
14775 # Ultrix sh set writes to stderr and can't be redirected directly,
14776 # and sets the high bit in the cache file unless we assign to the vars.
14778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14779 eval ac_val=\$$ac_var
14780 case $ac_val in #(
14781 *${as_nl}*)
14782 case $ac_var in #(
14783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14785 esac
14786 case $ac_var in #(
14787 _ | IFS | as_nl) ;; #(
14788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14789 *) { eval $ac_var=; unset $ac_var;} ;;
14790 esac ;;
14791 esac
14792 done
14794 (set) 2>&1 |
14795 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14796 *${as_nl}ac_space=\ *)
14797 # `set' does not quote correctly, so add quotes: double-quote
14798 # substitution turns \\\\ into \\, and sed turns \\ into \.
14799 sed -n \
14800 "s/'/'\\\\''/g;
14801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14802 ;; #(
14804 # `set' quotes correctly as required by POSIX, so do not add quotes.
14805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14807 esac |
14808 sort
14810 sed '
14811 /^ac_cv_env_/b end
14812 t clear
14813 :clear
14814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14815 t end
14816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14817 :end' >>confcache
14818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14819 if test -w "$cache_file"; then
14820 test "x$cache_file" != "x/dev/null" &&
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14822 $as_echo "$as_me: updating cache $cache_file" >&6;}
14823 cat confcache >$cache_file
14824 else
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14829 rm -f confcache
14831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14832 # Let make expand exec_prefix.
14833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14835 # Transform confdefs.h into DEFS.
14836 # Protect against shell expansion while executing Makefile rules.
14837 # Protect against Makefile macro expansion.
14839 # If the first sed substitution is executed (which looks for macros that
14840 # take arguments), then branch to the quote section. Otherwise,
14841 # look for a macro that doesn't take arguments.
14842 ac_script='
14843 :mline
14844 /\\$/{
14846 s,\\\n,,
14847 b mline
14849 t clear
14850 :clear
14851 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14852 t quote
14853 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14854 t quote
14855 b any
14856 :quote
14857 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14858 s/\[/\\&/g
14859 s/\]/\\&/g
14860 s/\$/$$/g
14862 :any
14865 s/^\n//
14866 s/\n/ /g
14870 DEFS=`sed -n "$ac_script" confdefs.h`
14873 ac_libobjs=
14874 ac_ltlibobjs=
14875 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14876 # 1. Remove the extension, and $U if already installed.
14877 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14878 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14879 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14880 # will be set to the directory where LIBOBJS objects are built.
14881 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14882 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14883 done
14884 LIBOBJS=$ac_libobjs
14886 LTLIBOBJS=$ac_ltlibobjs
14890 : ${CONFIG_STATUS=./config.status}
14891 ac_write_fail=0
14892 ac_clean_files_save=$ac_clean_files
14893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14895 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14896 as_write_fail=0
14897 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14898 #! $SHELL
14899 # Generated by $as_me.
14900 # Run this file to recreate the current configuration.
14901 # Compiler output produced by configure, useful for debugging
14902 # configure, is in config.log if it exists.
14904 debug=false
14905 ac_cs_recheck=false
14906 ac_cs_silent=false
14908 SHELL=\${CONFIG_SHELL-$SHELL}
14909 export SHELL
14910 _ASEOF
14911 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14912 ## -------------------- ##
14913 ## M4sh Initialization. ##
14914 ## -------------------- ##
14916 # Be more Bourne compatible
14917 DUALCASE=1; export DUALCASE # for MKS sh
14918 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14919 emulate sh
14920 NULLCMD=:
14921 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14922 # is contrary to our usage. Disable this feature.
14923 alias -g '${1+"$@"}'='"$@"'
14924 setopt NO_GLOB_SUBST
14925 else
14926 case `(set -o) 2>/dev/null` in #(
14927 *posix*) :
14928 set -o posix ;; #(
14929 *) :
14931 esac
14935 as_nl='
14937 export as_nl
14938 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14939 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14941 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14942 # Prefer a ksh shell builtin over an external printf program on Solaris,
14943 # but without wasting forks for bash or zsh.
14944 if test -z "$BASH_VERSION$ZSH_VERSION" \
14945 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14946 as_echo='print -r --'
14947 as_echo_n='print -rn --'
14948 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14949 as_echo='printf %s\n'
14950 as_echo_n='printf %s'
14951 else
14952 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14953 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14954 as_echo_n='/usr/ucb/echo -n'
14955 else
14956 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14957 as_echo_n_body='eval
14958 arg=$1;
14959 case $arg in #(
14960 *"$as_nl"*)
14961 expr "X$arg" : "X\\(.*\\)$as_nl";
14962 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14963 esac;
14964 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14966 export as_echo_n_body
14967 as_echo_n='sh -c $as_echo_n_body as_echo'
14969 export as_echo_body
14970 as_echo='sh -c $as_echo_body as_echo'
14973 # The user is always right.
14974 if test "${PATH_SEPARATOR+set}" != set; then
14975 PATH_SEPARATOR=:
14976 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14977 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14978 PATH_SEPARATOR=';'
14983 # IFS
14984 # We need space, tab and new line, in precisely that order. Quoting is
14985 # there to prevent editors from complaining about space-tab.
14986 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14987 # splitting by setting IFS to empty value.)
14988 IFS=" "" $as_nl"
14990 # Find who we are. Look in the path if we contain no directory separator.
14991 case $0 in #((
14992 *[\\/]* ) as_myself=$0 ;;
14993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14994 for as_dir in $PATH
14996 IFS=$as_save_IFS
14997 test -z "$as_dir" && as_dir=.
14998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14999 done
15000 IFS=$as_save_IFS
15003 esac
15004 # We did not find ourselves, most probably we were run as `sh COMMAND'
15005 # in which case we are not to be found in the path.
15006 if test "x$as_myself" = x; then
15007 as_myself=$0
15009 if test ! -f "$as_myself"; then
15010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15011 exit 1
15014 # Unset variables that we do not need and which cause bugs (e.g. in
15015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15016 # suppresses any "Segmentation fault" message there. '((' could
15017 # trigger a bug in pdksh 5.2.14.
15018 for as_var in BASH_ENV ENV MAIL MAILPATH
15019 do eval test x\${$as_var+set} = xset \
15020 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15021 done
15022 PS1='$ '
15023 PS2='> '
15024 PS4='+ '
15026 # NLS nuisances.
15027 LC_ALL=C
15028 export LC_ALL
15029 LANGUAGE=C
15030 export LANGUAGE
15032 # CDPATH.
15033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15036 # as_fn_error ERROR [LINENO LOG_FD]
15037 # ---------------------------------
15038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15040 # script with status $?, using 1 if that was 0.
15041 as_fn_error ()
15043 as_status=$?; test $as_status -eq 0 && as_status=1
15044 if test "$3"; then
15045 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15048 $as_echo "$as_me: error: $1" >&2
15049 as_fn_exit $as_status
15050 } # as_fn_error
15053 # as_fn_set_status STATUS
15054 # -----------------------
15055 # Set $? to STATUS, without forking.
15056 as_fn_set_status ()
15058 return $1
15059 } # as_fn_set_status
15061 # as_fn_exit STATUS
15062 # -----------------
15063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15064 as_fn_exit ()
15066 set +e
15067 as_fn_set_status $1
15068 exit $1
15069 } # as_fn_exit
15071 # as_fn_unset VAR
15072 # ---------------
15073 # Portably unset VAR.
15074 as_fn_unset ()
15076 { eval $1=; unset $1;}
15078 as_unset=as_fn_unset
15079 # as_fn_append VAR VALUE
15080 # ----------------------
15081 # Append the text in VALUE to the end of the definition contained in VAR. Take
15082 # advantage of any shell optimizations that allow amortized linear growth over
15083 # repeated appends, instead of the typical quadratic growth present in naive
15084 # implementations.
15085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15086 eval 'as_fn_append ()
15088 eval $1+=\$2
15090 else
15091 as_fn_append ()
15093 eval $1=\$$1\$2
15095 fi # as_fn_append
15097 # as_fn_arith ARG...
15098 # ------------------
15099 # Perform arithmetic evaluation on the ARGs, and store the result in the
15100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15101 # must be portable across $(()) and expr.
15102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15103 eval 'as_fn_arith ()
15105 as_val=$(( $* ))
15107 else
15108 as_fn_arith ()
15110 as_val=`expr "$@" || test $? -eq 1`
15112 fi # as_fn_arith
15115 if expr a : '\(a\)' >/dev/null 2>&1 &&
15116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15117 as_expr=expr
15118 else
15119 as_expr=false
15122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15123 as_basename=basename
15124 else
15125 as_basename=false
15128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15129 as_dirname=dirname
15130 else
15131 as_dirname=false
15134 as_me=`$as_basename -- "$0" ||
15135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15136 X"$0" : 'X\(//\)$' \| \
15137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15138 $as_echo X/"$0" |
15139 sed '/^.*\/\([^/][^/]*\)\/*$/{
15140 s//\1/
15143 /^X\/\(\/\/\)$/{
15144 s//\1/
15147 /^X\/\(\/\).*/{
15148 s//\1/
15151 s/.*/./; q'`
15153 # Avoid depending upon Character Ranges.
15154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15157 as_cr_digits='0123456789'
15158 as_cr_alnum=$as_cr_Letters$as_cr_digits
15160 ECHO_C= ECHO_N= ECHO_T=
15161 case `echo -n x` in #(((((
15162 -n*)
15163 case `echo 'xy\c'` in
15164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15165 xy) ECHO_C='\c';;
15166 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15167 ECHO_T=' ';;
15168 esac;;
15170 ECHO_N='-n';;
15171 esac
15173 rm -f conf$$ conf$$.exe conf$$.file
15174 if test -d conf$$.dir; then
15175 rm -f conf$$.dir/conf$$.file
15176 else
15177 rm -f conf$$.dir
15178 mkdir conf$$.dir 2>/dev/null
15180 if (echo >conf$$.file) 2>/dev/null; then
15181 if ln -s conf$$.file conf$$ 2>/dev/null; then
15182 as_ln_s='ln -s'
15183 # ... but there are two gotchas:
15184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15186 # In both cases, we have to default to `cp -p'.
15187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15188 as_ln_s='cp -p'
15189 elif ln conf$$.file conf$$ 2>/dev/null; then
15190 as_ln_s=ln
15191 else
15192 as_ln_s='cp -p'
15194 else
15195 as_ln_s='cp -p'
15197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15198 rmdir conf$$.dir 2>/dev/null
15201 # as_fn_mkdir_p
15202 # -------------
15203 # Create "$as_dir" as a directory, including parents if necessary.
15204 as_fn_mkdir_p ()
15207 case $as_dir in #(
15208 -*) as_dir=./$as_dir;;
15209 esac
15210 test -d "$as_dir" || eval $as_mkdir_p || {
15211 as_dirs=
15212 while :; do
15213 case $as_dir in #(
15214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15215 *) as_qdir=$as_dir;;
15216 esac
15217 as_dirs="'$as_qdir' $as_dirs"
15218 as_dir=`$as_dirname -- "$as_dir" ||
15219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15220 X"$as_dir" : 'X\(//\)[^/]' \| \
15221 X"$as_dir" : 'X\(//\)$' \| \
15222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15223 $as_echo X"$as_dir" |
15224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15225 s//\1/
15228 /^X\(\/\/\)[^/].*/{
15229 s//\1/
15232 /^X\(\/\/\)$/{
15233 s//\1/
15236 /^X\(\/\).*/{
15237 s//\1/
15240 s/.*/./; q'`
15241 test -d "$as_dir" && break
15242 done
15243 test -z "$as_dirs" || eval "mkdir $as_dirs"
15244 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15247 } # as_fn_mkdir_p
15248 if mkdir -p . 2>/dev/null; then
15249 as_mkdir_p='mkdir -p "$as_dir"'
15250 else
15251 test -d ./-p && rmdir ./-p
15252 as_mkdir_p=false
15255 if test -x / >/dev/null 2>&1; then
15256 as_test_x='test -x'
15257 else
15258 if ls -dL / >/dev/null 2>&1; then
15259 as_ls_L_option=L
15260 else
15261 as_ls_L_option=
15263 as_test_x='
15264 eval sh -c '\''
15265 if test -d "$1"; then
15266 test -d "$1/.";
15267 else
15268 case $1 in #(
15269 -*)set "./$1";;
15270 esac;
15271 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15272 ???[sx]*):;;*)false;;esac;fi
15273 '\'' sh
15276 as_executable_p=$as_test_x
15278 # Sed expression to map a string onto a valid CPP name.
15279 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15281 # Sed expression to map a string onto a valid variable name.
15282 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15285 exec 6>&1
15286 ## ----------------------------------- ##
15287 ## Main body of $CONFIG_STATUS script. ##
15288 ## ----------------------------------- ##
15289 _ASEOF
15290 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293 # Save the log message, to keep $0 and so on meaningful, and to
15294 # report actual input values of CONFIG_FILES etc. instead of their
15295 # values after options handling.
15296 ac_log="
15297 This file was extended by $as_me, which was
15298 generated by GNU Autoconf 2.64. Invocation command line was
15300 CONFIG_FILES = $CONFIG_FILES
15301 CONFIG_HEADERS = $CONFIG_HEADERS
15302 CONFIG_LINKS = $CONFIG_LINKS
15303 CONFIG_COMMANDS = $CONFIG_COMMANDS
15304 $ $0 $@
15306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15309 _ACEOF
15311 case $ac_config_files in *"
15312 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15313 esac
15317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15318 # Files that config.status was made for.
15319 config_files="$ac_config_files"
15321 _ACEOF
15323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15324 ac_cs_usage="\
15325 \`$as_me' instantiates files and other configuration actions
15326 from templates according to the current configuration. Unless the files
15327 and actions are specified as TAGs, all are instantiated by default.
15329 Usage: $0 [OPTION]... [TAG]...
15331 -h, --help print this help, then exit
15332 -V, --version print version number and configuration settings, then exit
15333 -q, --quiet, --silent
15334 do not print progress messages
15335 -d, --debug don't remove temporary files
15336 --recheck update $as_me by reconfiguring in the same conditions
15337 --file=FILE[:TEMPLATE]
15338 instantiate the configuration file FILE
15340 Configuration files:
15341 $config_files
15343 Report bugs to the package provider."
15345 _ACEOF
15346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15347 ac_cs_version="\\
15348 config.status
15349 configured by $0, generated by GNU Autoconf 2.64,
15350 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15352 Copyright (C) 2009 Free Software Foundation, Inc.
15353 This config.status script is free software; the Free Software Foundation
15354 gives unlimited permission to copy, distribute and modify it."
15356 ac_pwd='$ac_pwd'
15357 srcdir='$srcdir'
15358 INSTALL='$INSTALL'
15359 AWK='$AWK'
15360 test -n "\$AWK" || AWK=awk
15361 _ACEOF
15363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15364 # The default lists apply if the user does not specify any file.
15365 ac_need_defaults=:
15366 while test $# != 0
15368 case $1 in
15369 --*=*)
15370 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15371 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15372 ac_shift=:
15375 ac_option=$1
15376 ac_optarg=$2
15377 ac_shift=shift
15379 esac
15381 case $ac_option in
15382 # Handling of the options.
15383 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15384 ac_cs_recheck=: ;;
15385 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15386 $as_echo "$ac_cs_version"; exit ;;
15387 --debug | --debu | --deb | --de | --d | -d )
15388 debug=: ;;
15389 --file | --fil | --fi | --f )
15390 $ac_shift
15391 case $ac_optarg in
15392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15393 esac
15394 as_fn_append CONFIG_FILES " '$ac_optarg'"
15395 ac_need_defaults=false;;
15396 --he | --h | --help | --hel | -h )
15397 $as_echo "$ac_cs_usage"; exit ;;
15398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15400 ac_cs_silent=: ;;
15402 # This is an error.
15403 -*) as_fn_error "unrecognized option: \`$1'
15404 Try \`$0 --help' for more information." ;;
15406 *) as_fn_append ac_config_targets " $1"
15407 ac_need_defaults=false ;;
15409 esac
15410 shift
15411 done
15413 ac_configure_extra_args=
15415 if $ac_cs_silent; then
15416 exec 6>/dev/null
15417 ac_configure_extra_args="$ac_configure_extra_args --silent"
15420 _ACEOF
15421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15422 if \$ac_cs_recheck; then
15423 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15424 shift
15425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15426 CONFIG_SHELL='$SHELL'
15427 export CONFIG_SHELL
15428 exec "\$@"
15431 _ACEOF
15432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15433 exec 5>>config.log
15435 echo
15436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15437 ## Running $as_me. ##
15438 _ASBOX
15439 $as_echo "$ac_log"
15440 } >&5
15442 _ACEOF
15443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15445 # INIT-COMMANDS
15447 extrasub_build="$extrasub_build"
15448 extrasub_host="$extrasub_host"
15449 extrasub_target="$extrasub_target"
15451 _ACEOF
15453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15455 # Handling of arguments.
15456 for ac_config_target in $ac_config_targets
15458 case $ac_config_target in
15459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15461 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15462 esac
15463 done
15466 # If the user did not use the arguments to specify the items to instantiate,
15467 # then the envvar interface is used. Set only those that are not.
15468 # We use the long form for the default assignment because of an extremely
15469 # bizarre bug on SunOS 4.1.3.
15470 if $ac_need_defaults; then
15471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15474 # Have a temporary directory for convenience. Make it in the build tree
15475 # simply because there is no reason against having it here, and in addition,
15476 # creating and moving files from /tmp can sometimes cause problems.
15477 # Hook for its removal unless debugging.
15478 # Note that there is a small window in which the directory will not be cleaned:
15479 # after its creation but before its name has been assigned to `$tmp'.
15480 $debug ||
15482 tmp=
15483 trap 'exit_status=$?
15484 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15486 trap 'as_fn_exit 1' 1 2 13 15
15488 # Create a (secure) tmp directory for tmp files.
15491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15492 test -n "$tmp" && test -d "$tmp"
15493 } ||
15495 tmp=./conf$$-$RANDOM
15496 (umask 077 && mkdir "$tmp")
15497 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15499 # Set up the scripts for CONFIG_FILES section.
15500 # No need to generate them if there are no CONFIG_FILES.
15501 # This happens for instance with `./config.status config.h'.
15502 if test -n "$CONFIG_FILES"; then
15504 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15505 ac_cs_awk_getline=:
15506 ac_cs_awk_pipe_init=
15507 ac_cs_awk_read_file='
15508 while ((getline aline < (F[key])) > 0)
15509 print(aline)
15510 close(F[key])'
15511 ac_cs_awk_pipe_fini=
15512 else
15513 ac_cs_awk_getline=false
15514 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15515 ac_cs_awk_read_file='
15516 print "|#_!!_#|"
15517 print "cat " F[key] " &&"
15518 '$ac_cs_awk_pipe_init
15519 # The final `:' finishes the AND list.
15520 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15522 ac_cr=`echo X | tr X '\015'`
15523 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15524 # But we know of no other shell where ac_cr would be empty at this
15525 # point, so we can use a bashism as a fallback.
15526 if test "x$ac_cr" = x; then
15527 eval ac_cr=\$\'\\r\'
15529 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15530 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15531 ac_cs_awk_cr='\r'
15532 else
15533 ac_cs_awk_cr=$ac_cr
15536 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15537 _ACEOF
15539 # Create commands to substitute file output variables.
15541 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15542 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15543 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15544 echo "_ACAWK" &&
15545 echo "_ACEOF"
15546 } >conf$$files.sh &&
15547 . ./conf$$files.sh ||
15548 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15549 rm -f conf$$files.sh
15552 echo "cat >conf$$subs.awk <<_ACEOF" &&
15553 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15554 echo "_ACEOF"
15555 } >conf$$subs.sh ||
15556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15557 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15558 ac_delim='%!_!# '
15559 for ac_last_try in false false false false false :; do
15560 . ./conf$$subs.sh ||
15561 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15563 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15564 if test $ac_delim_n = $ac_delim_num; then
15565 break
15566 elif $ac_last_try; then
15567 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15568 else
15569 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15571 done
15572 rm -f conf$$subs.sh
15574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15576 _ACEOF
15577 sed -n '
15579 s/^/S["/; s/!.*/"]=/
15582 s/^[^!]*!//
15583 :repl
15584 t repl
15585 s/'"$ac_delim"'$//
15586 t delim
15589 s/\(.\{148\}\).*/\1/
15590 t more1
15591 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15594 b repl
15595 :more1
15596 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15599 s/.\{148\}//
15600 t nl
15601 :delim
15603 s/\(.\{148\}\).*/\1/
15604 t more2
15605 s/["\\]/\\&/g; s/^/"/; s/$/"/
15608 :more2
15609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15612 s/.\{148\}//
15613 t delim
15614 ' <conf$$subs.awk | sed '
15615 /^[^""]/{
15617 s/\n//
15619 ' >>$CONFIG_STATUS || ac_write_fail=1
15620 rm -f conf$$subs.awk
15621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15622 _ACAWK
15623 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15624 for (key in S) S_is_set[key] = 1
15625 FS = "\a"
15626 \$ac_cs_awk_pipe_init
15629 line = $ 0
15630 nfields = split(line, field, "@")
15631 substed = 0
15632 len = length(field[1])
15633 for (i = 2; i < nfields; i++) {
15634 key = field[i]
15635 keylen = length(key)
15636 if (S_is_set[key]) {
15637 value = S[key]
15638 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15639 len += length(value) + length(field[++i])
15640 substed = 1
15641 } else
15642 len += 1 + keylen
15644 if (nfields == 3 && !substed) {
15645 key = field[2]
15646 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15647 \$ac_cs_awk_read_file
15648 next
15651 print line
15653 \$ac_cs_awk_pipe_fini
15654 _ACAWK
15655 _ACEOF
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15658 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15659 else
15661 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15662 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15663 _ACEOF
15665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15667 # trailing colons and then remove the whole line if VPATH becomes empty
15668 # (actually we leave an empty line to preserve line numbers).
15669 if test "x$srcdir" = x.; then
15670 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15671 s/:*\$(srcdir):*/:/
15672 s/:*\${srcdir}:*/:/
15673 s/:*@srcdir@:*/:/
15674 s/^\([^=]*=[ ]*\):*/\1/
15675 s/:*$//
15676 s/^[^=]*=[ ]*$//
15680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15681 fi # test -n "$CONFIG_FILES"
15684 eval set X " :F $CONFIG_FILES "
15685 shift
15686 for ac_tag
15688 case $ac_tag in
15689 :[FHLC]) ac_mode=$ac_tag; continue;;
15690 esac
15691 case $ac_mode$ac_tag in
15692 :[FHL]*:*);;
15693 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15694 :[FH]-) ac_tag=-:-;;
15695 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15696 esac
15697 ac_save_IFS=$IFS
15698 IFS=:
15699 set x $ac_tag
15700 IFS=$ac_save_IFS
15701 shift
15702 ac_file=$1
15703 shift
15705 case $ac_mode in
15706 :L) ac_source=$1;;
15707 :[FH])
15708 ac_file_inputs=
15709 for ac_f
15711 case $ac_f in
15712 -) ac_f="$tmp/stdin";;
15713 *) # Look for the file first in the build tree, then in the source tree
15714 # (if the path is not absolute). The absolute path cannot be DOS-style,
15715 # because $ac_f cannot contain `:'.
15716 test -f "$ac_f" ||
15717 case $ac_f in
15718 [\\/$]*) false;;
15719 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15720 esac ||
15721 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15722 esac
15723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15724 as_fn_append ac_file_inputs " '$ac_f'"
15725 done
15727 # Let's still pretend it is `configure' which instantiates (i.e., don't
15728 # use $as_me), people would be surprised to read:
15729 # /* config.h. Generated by config.status. */
15730 configure_input='Generated from '`
15731 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15732 `' by configure.'
15733 if test x"$ac_file" != x-; then
15734 configure_input="$ac_file. $configure_input"
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15736 $as_echo "$as_me: creating $ac_file" >&6;}
15738 # Neutralize special characters interpreted by sed in replacement strings.
15739 case $configure_input in #(
15740 *\&* | *\|* | *\\* )
15741 ac_sed_conf_input=`$as_echo "$configure_input" |
15742 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15743 *) ac_sed_conf_input=$configure_input;;
15744 esac
15746 case $ac_tag in
15747 *:-:* | *:-) cat >"$tmp/stdin" \
15748 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15749 esac
15751 esac
15753 ac_dir=`$as_dirname -- "$ac_file" ||
15754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15755 X"$ac_file" : 'X\(//\)[^/]' \| \
15756 X"$ac_file" : 'X\(//\)$' \| \
15757 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15758 $as_echo X"$ac_file" |
15759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15760 s//\1/
15763 /^X\(\/\/\)[^/].*/{
15764 s//\1/
15767 /^X\(\/\/\)$/{
15768 s//\1/
15771 /^X\(\/\).*/{
15772 s//\1/
15775 s/.*/./; q'`
15776 as_dir="$ac_dir"; as_fn_mkdir_p
15777 ac_builddir=.
15779 case "$ac_dir" in
15780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15783 # A ".." for each directory in $ac_dir_suffix.
15784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15785 case $ac_top_builddir_sub in
15786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15788 esac ;;
15789 esac
15790 ac_abs_top_builddir=$ac_pwd
15791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15792 # for backward compatibility:
15793 ac_top_builddir=$ac_top_build_prefix
15795 case $srcdir in
15796 .) # We are building in place.
15797 ac_srcdir=.
15798 ac_top_srcdir=$ac_top_builddir_sub
15799 ac_abs_top_srcdir=$ac_pwd ;;
15800 [\\/]* | ?:[\\/]* ) # Absolute name.
15801 ac_srcdir=$srcdir$ac_dir_suffix;
15802 ac_top_srcdir=$srcdir
15803 ac_abs_top_srcdir=$srcdir ;;
15804 *) # Relative name.
15805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15806 ac_top_srcdir=$ac_top_build_prefix$srcdir
15807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15808 esac
15809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15812 case $ac_mode in
15815 # CONFIG_FILE
15818 case $INSTALL in
15819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15821 esac
15822 _ACEOF
15824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15825 # If the template does not know about datarootdir, expand it.
15826 # FIXME: This hack should be removed a few years after 2.60.
15827 ac_datarootdir_hack=; ac_datarootdir_seen=
15828 ac_sed_dataroot='
15829 /datarootdir/ {
15833 /@datadir@/p
15834 /@docdir@/p
15835 /@infodir@/p
15836 /@localedir@/p
15837 /@mandir@/p'
15838 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15839 *datarootdir*) ac_datarootdir_seen=yes;;
15840 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15842 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15843 _ACEOF
15844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15845 ac_datarootdir_hack='
15846 s&@datadir@&$datadir&g
15847 s&@docdir@&$docdir&g
15848 s&@infodir@&$infodir&g
15849 s&@localedir@&$localedir&g
15850 s&@mandir@&$mandir&g
15851 s&\\\${datarootdir}&$datarootdir&g' ;;
15852 esac
15853 _ACEOF
15855 # Neutralize VPATH when `$srcdir' = `.'.
15856 # Shell code in configure.ac might set extrasub.
15857 # FIXME: do we really want to maintain this feature?
15858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15859 ac_sed_extra="$ac_vpsub
15860 $extrasub
15861 _ACEOF
15862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15864 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15865 s|@configure_input@|$ac_sed_conf_input|;t t
15866 s&@top_builddir@&$ac_top_builddir_sub&;t t
15867 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15868 s&@srcdir@&$ac_srcdir&;t t
15869 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15870 s&@top_srcdir@&$ac_top_srcdir&;t t
15871 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15872 s&@builddir@&$ac_builddir&;t t
15873 s&@abs_builddir@&$ac_abs_builddir&;t t
15874 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15875 s&@INSTALL@&$ac_INSTALL&;t t
15876 $ac_datarootdir_hack
15878 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15879 if $ac_cs_awk_getline; then
15880 $AWK -f "$tmp/subs.awk"
15881 else
15882 $AWK -f "$tmp/subs.awk" | $SHELL
15883 fi >$tmp/out \
15884 || as_fn_error "could not create $ac_file" "$LINENO" 5
15886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15887 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15890 which seems to be undefined. Please make sure it is defined." >&5
15891 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15892 which seems to be undefined. Please make sure it is defined." >&2;}
15894 rm -f "$tmp/stdin"
15895 case $ac_file in
15896 -) cat "$tmp/out" && rm -f "$tmp/out";;
15897 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15898 esac \
15899 || as_fn_error "could not create $ac_file" "$LINENO" 5
15904 esac
15907 case $ac_file$ac_mode in
15908 "Makefile":F) sed "$extrasub_build" Makefile |
15909 sed "$extrasub_host" |
15910 sed "$extrasub_target" > mf$$
15911 mv -f mf$$ Makefile ;;
15913 esac
15914 done # for ac_tag
15917 as_fn_exit 0
15918 _ACEOF
15919 ac_clean_files=$ac_clean_files_save
15921 test $ac_write_fail = 0 ||
15922 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15925 # configure is writing to config.log, and then calls config.status.
15926 # config.status does its own redirection, appending to config.log.
15927 # Unfortunately, on DOS this fails, as config.log is still kept open
15928 # by configure, so config.status won't be able to write to it; its
15929 # output is simply discarded. So we exec the FD to /dev/null,
15930 # effectively closing config.log, so it can be properly (re)opened and
15931 # appended to by config.status. When coming back to configure, we
15932 # need to make the FD available again.
15933 if test "$no_create" != yes; then
15934 ac_cs_success=:
15935 ac_config_status_args=
15936 test "$silent" = yes &&
15937 ac_config_status_args="$ac_config_status_args --quiet"
15938 exec 5>/dev/null
15939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15940 exec 5>>config.log
15941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15942 # would make configure fail if this is the last instruction.
15943 $ac_cs_success || as_fn_exit $?
15945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}