ARM: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
[binutils-gdb.git] / configure
blob4d0985e3259f64ada7e49f071b159c67f27278f8
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 target_subdir
675 host_subdir
676 build_subdir
677 build_libsubdir
680 LN_S
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 target_os
686 target_vendor
687 target_cpu
688 target
689 host_os
690 host_vendor
691 host_cpu
692 host
693 target_noncanonical
694 host_noncanonical
695 build_noncanonical
696 build_os
697 build_vendor
698 build_cpu
699 build
700 TOPLEVEL_CONFIGURE_ARGUMENTS
701 target_alias
702 host_alias
703 build_alias
704 LIBS
705 ECHO_T
706 ECHO_N
707 ECHO_C
708 DEFS
709 mandir
710 localedir
711 libdir
712 psdir
713 pdfdir
714 dvidir
715 htmldir
716 infodir
717 docdir
718 oldincludedir
719 includedir
720 localstatedir
721 sharedstatedir
722 sysconfdir
723 datadir
724 datarootdir
725 libexecdir
726 sbindir
727 bindir
728 program_transform_name
729 prefix
730 exec_prefix
731 PACKAGE_URL
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files='serialization_dependencies
740 host_makefile_frag
741 target_makefile_frag
742 alphaieee_frag
743 ospace_frag'
744 ac_user_opts='
745 enable_option_checking
746 with_build_libsubdir
747 enable_gold
748 enable_ld
749 enable_libquadmath
750 enable_libquadmath_support
751 enable_libada
752 enable_libssp
753 enable_libstdcxx
754 enable_static_libjava
755 enable_bootstrap
756 with_mpc
757 with_mpc_include
758 with_mpc_lib
759 with_mpfr_dir
760 with_mpfr
761 with_mpfr_include
762 with_mpfr_lib
763 with_gmp_dir
764 with_gmp
765 with_gmp_include
766 with_gmp_lib
767 with_host_libstdcxx
768 with_stage1_libs
769 with_stage1_ldflags
770 with_boot_libs
771 with_boot_ldflags
772 with_cloog
773 with_isl
774 with_isl_include
775 with_isl_lib
776 enable_isl_version_check
777 with_cloog_include
778 with_cloog_lib
779 enable_cloog_version_check
780 enable_lto
781 enable_stage1_languages
782 enable_objc_gc
783 with_build_sysroot
784 with_debug_prefix_map
785 with_build_config
786 enable_vtable_verify
787 enable_serial_configure
788 with_build_time_tools
789 enable_maintainer_mode
790 enable_stage1_checking
791 enable_werror
792 enable_host_shared
794 ac_precious_vars='build_alias
795 host_alias
796 target_alias
798 CFLAGS
799 LDFLAGS
800 LIBS
801 CPPFLAGS
803 CXXFLAGS
805 build_configargs
806 host_configargs
807 target_configargs
810 DLLTOOL
812 LIPO
814 RANLIB
815 STRIP
816 WINDRES
817 WINDMC
818 OBJCOPY
819 OBJDUMP
820 READELF
821 CC_FOR_TARGET
822 CXX_FOR_TARGET
823 GCC_FOR_TARGET
824 GCJ_FOR_TARGET
825 GFORTRAN_FOR_TARGET
826 GOC_FOR_TARGET
827 AR_FOR_TARGET
828 AS_FOR_TARGET
829 DLLTOOL_FOR_TARGET
830 LD_FOR_TARGET
831 LIPO_FOR_TARGET
832 NM_FOR_TARGET
833 OBJDUMP_FOR_TARGET
834 RANLIB_FOR_TARGET
835 READELF_FOR_TARGET
836 STRIP_FOR_TARGET
837 WINDRES_FOR_TARGET
838 WINDMC_FOR_TARGET'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
909 ac_dashdash=yes ;;
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
928 --config-cache | -C)
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information."
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245 esac
1246 done
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1294 If a cross compiler is detected then cross compile mode will be used." >&2
1295 elif test "x$build_alias" != "x$host_alias"; then
1296 cross_compiling=yes
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1303 test "$silent" = yes && exec 6>/dev/null
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309 as_fn_error "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311 as_fn_error "pwd does not report name of working directory"
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316 ac_srcdir_defaulted=yes
1317 # Try the directory containing this script, then the parent directory.
1318 ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320 X"$as_myself" : 'X\(//\)[^/]' \| \
1321 X"$as_myself" : 'X\(//\)$' \| \
1322 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 s//\1/
1328 /^X\(\/\/\)[^/].*/{
1329 s//\1/
1332 /^X\(\/\/\)$/{
1333 s//\1/
1336 /^X\(\/\).*/{
1337 s//\1/
1340 s/.*/./; q'`
1341 srcdir=$ac_confdir
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 srcdir=..
1345 else
1346 ac_srcdir_defaulted=no
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1355 pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 srcdir=.
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 case $srcdir in
1367 *" "*)
1368 as_fn_error "path to source, $srcdir, contains spaces"
1370 esac
1371 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures this package to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1442 cat <<\_ACEOF
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453 _ACEOF
1456 if test -n "$ac_init_help"; then
1458 cat <<\_ACEOF
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1465 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1466 --disable-libquadmath do not build libquadmath directory
1467 --disable-libquadmath-support
1468 disable libquadmath support for Fortran
1469 --enable-libada build libada directory
1470 --enable-libssp build libssp directory
1471 --disable-libstdcxx do not build libstdc++-v3 directory
1472 --enable-static-libjava[=ARG]
1473 build static libjava [default=no]
1474 --enable-bootstrap enable bootstrapping [yes if native build]
1475 --disable-isl-version-check
1476 disable check for ISL version
1477 --disable-cloog-version-check
1478 disable check for CLooG version
1479 --enable-lto enable link time optimization support
1480 --enable-stage1-languages[=all]
1481 choose additional languages to build during stage1.
1482 Mostly useful for compiler development
1483 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1484 Objective-C runtime
1485 --enable-vtable-verify Enable vtable verification feature
1486 --enable-serial-[{host,target,build}-]configure
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
1496 --enable-werror enable -Werror in bootstrap stage2 and later
1497 --enable-host-shared build host code as shared libraries
1499 Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-build-libsubdir=DIR Directory where to find libraries for build system
1503 --with-mpc=PATH specify prefix directory for installed MPC package.
1504 Equivalent to --with-mpc-include=PATH/include plus
1505 --with-mpc-lib=PATH/lib
1506 --with-mpc-include=PATH specify directory for installed MPC include files
1507 --with-mpc-lib=PATH specify directory for the installed MPC library
1508 --with-mpfr-dir=PATH this option has been REMOVED
1509 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1510 Equivalent to --with-mpfr-include=PATH/include plus
1511 --with-mpfr-lib=PATH/lib
1512 --with-mpfr-include=PATH
1513 specify directory for installed MPFR include files
1514 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1515 --with-gmp-dir=PATH this option has been REMOVED
1516 --with-gmp=PATH specify prefix directory for the installed GMP
1517 package. Equivalent to
1518 --with-gmp-include=PATH/include plus
1519 --with-gmp-lib=PATH/lib
1520 --with-gmp-include=PATH specify directory for installed GMP include files
1521 --with-gmp-lib=PATH specify directory for the installed GMP library
1522 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1523 linking with PPL
1524 --with-stage1-libs=LIBS libraries for stage1
1525 --with-stage1-ldflags=FLAGS
1526 linker flags for stage1
1527 --with-boot-libs=LIBS libraries for stage2 and later
1528 --with-boot-ldflags=FLAGS
1529 linker flags for stage2 and later
1530 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1531 package. Equivalent to
1532 --with-cloog-include=PATH/include plus
1533 --with-cloog-lib=PATH/lib
1534 --with-isl=PATH Specify prefix directory for the installed ISL
1535 package. Equivalent to
1536 --with-isl-include=PATH/include plus
1537 --with-isl-lib=PATH/lib
1538 --with-isl-include=PATH Specify directory for installed ISL include files
1539 --with-isl-lib=PATH Specify the directory for the installed ISL library
1540 --with-cloog-include=PATH
1541 Specify directory for installed CLooG include files
1542 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1543 library
1544 --with-build-sysroot=SYSROOT
1545 use sysroot as the system root during the build
1546 --with-debug-prefix-map='A=B C=D ...'
1547 map A to B, C to D ... in debug information
1548 --with-build-config='NAME NAME2...'
1549 use config/NAME.mk build configuration
1550 --with-build-time-tools=PATH
1551 use given path to find target tools during the build
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 build_configargs
1564 additional configure arguments for build directories
1565 host_configargs
1566 additional configure arguments for host directories
1567 target_configargs
1568 additional configure arguments for target directories
1569 AR AR for the host
1570 AS AS for the host
1571 DLLTOOL DLLTOOL for the host
1572 LD LD for the host
1573 LIPO LIPO for the host
1574 NM NM for the host
1575 RANLIB RANLIB for the host
1576 STRIP STRIP for the host
1577 WINDRES WINDRES for the host
1578 WINDMC WINDMC for the host
1579 OBJCOPY OBJCOPY for the host
1580 OBJDUMP OBJDUMP for the host
1581 READELF READELF for the host
1582 CC_FOR_TARGET
1583 CC for the target
1584 CXX_FOR_TARGET
1585 CXX for the target
1586 GCC_FOR_TARGET
1587 GCC for the target
1588 GCJ_FOR_TARGET
1589 GCJ for the target
1590 GFORTRAN_FOR_TARGET
1591 GFORTRAN for the target
1592 GOC_FOR_TARGET
1593 GOC for the target
1594 AR_FOR_TARGET
1595 AR for the target
1596 AS_FOR_TARGET
1597 AS for the target
1598 DLLTOOL_FOR_TARGET
1599 DLLTOOL for the target
1600 LD_FOR_TARGET
1601 LD for the target
1602 LIPO_FOR_TARGET
1603 LIPO for the target
1604 NM_FOR_TARGET
1605 NM for the target
1606 OBJDUMP_FOR_TARGET
1607 OBJDUMP for the target
1608 RANLIB_FOR_TARGET
1609 RANLIB for the target
1610 READELF_FOR_TARGET
1611 READELF for the target
1612 STRIP_FOR_TARGET
1613 STRIP for the target
1614 WINDRES_FOR_TARGET
1615 WINDRES for the target
1616 WINDMC_FOR_TARGET
1617 WINDMC for the target
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1622 Report bugs to the package provider.
1623 _ACEOF
1624 ac_status=$?
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 continue
1633 ac_builddir=.
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1651 case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1675 else
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1679 done
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684 cat <<\_ACEOF
1685 configure
1686 generated by GNU Autoconf 2.64
1688 Copyright (C) 2009 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1691 _ACEOF
1692 exit
1695 ## ------------------------ ##
1696 ## Autoconf initialization. ##
1697 ## ------------------------ ##
1699 # ac_fn_c_try_compile LINENO
1700 # --------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=1
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 return $ac_retval
1735 } # ac_fn_c_try_compile
1737 # ac_fn_cxx_try_compile LINENO
1738 # ----------------------------
1739 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_cxx_try_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_cxx_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 ac_retval=1
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 return $ac_retval
1773 } # ac_fn_cxx_try_compile
1775 # ac_fn_cxx_try_link LINENO
1776 # -------------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_cxx_try_link ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_cxx_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 $as_test_x conftest$ac_exeext
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 return $ac_retval
1819 } # ac_fn_cxx_try_link
1821 # ac_fn_c_try_link LINENO
1822 # -----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_link ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext conftest$ac_exeext
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest$ac_exeext && {
1847 test "$cross_compiling" = yes ||
1848 $as_test_x conftest$ac_exeext
1849 }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=1
1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1859 # interfere with the next link command; also delete a directory that is
1860 # left behind by Apple's compiler. We do this before executing the actions.
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1865 } # ac_fn_c_try_link
1867 # ac_fn_c_try_run LINENO
1868 # ----------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1870 # that executables *can* be run.
1871 ac_fn_c_try_run ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_link"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1885 { { case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_try") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; }; }; then :
1895 ac_retval=0
1896 else
1897 $as_echo "$as_me: program exited with status $ac_status" >&5
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=$ac_status
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 return $ac_retval
1907 } # ac_fn_c_try_run
1908 cat >config.log <<_ACEOF
1909 This file contains any messages produced by compilers while
1910 running configure, to aid debugging if configure makes a mistake.
1912 It was created by $as_me, which was
1913 generated by GNU Autoconf 2.64. Invocation command line was
1915 $ $0 $@
1917 _ACEOF
1918 exec 5>>config.log
1920 cat <<_ASUNAME
1921 ## --------- ##
1922 ## Platform. ##
1923 ## --------- ##
1925 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1942 _ASUNAME
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 $as_echo "PATH: $as_dir"
1950 done
1951 IFS=$as_save_IFS
1953 } >&5
1955 cat >&5 <<_ACEOF
1958 ## ----------- ##
1959 ## Core tests. ##
1960 ## ----------- ##
1962 _ACEOF
1965 # Keep a trace of the command line.
1966 # Strip out --no-create and --no-recursion so they do not pile up.
1967 # Strip out --silent because we don't want to record it for future runs.
1968 # Also quote any args containing shell meta-characters.
1969 # Make two passes to allow for proper duplicate-argument suppression.
1970 ac_configure_args=
1971 ac_configure_args0=
1972 ac_configure_args1=
1973 ac_must_keep_next=false
1974 for ac_pass in 1 2
1976 for ac_arg
1978 case $ac_arg in
1979 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981 | -silent | --silent | --silen | --sile | --sil)
1982 continue ;;
1983 *\'*)
1984 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 esac
1986 case $ac_pass in
1987 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989 as_fn_append ac_configure_args1 " '$ac_arg'"
1990 if test $ac_must_keep_next = true; then
1991 ac_must_keep_next=false # Got value, back to normal.
1992 else
1993 case $ac_arg in
1994 *=* | --config-cache | -C | -disable-* | --disable-* \
1995 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997 | -with-* | --with-* | -without-* | --without-* | --x)
1998 case "$ac_configure_args0 " in
1999 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2000 esac
2002 -* ) ac_must_keep_next=true ;;
2003 esac
2005 as_fn_append ac_configure_args " '$ac_arg'"
2007 esac
2008 done
2009 done
2010 { ac_configure_args0=; unset ac_configure_args0;}
2011 { ac_configure_args1=; unset ac_configure_args1;}
2013 # When interrupted or exit'd, cleanup temporary files, and complete
2014 # config.log. We remove comments because anyway the quotes in there
2015 # would cause problems or look ugly.
2016 # WARNING: Use '\'' to represent an apostrophe within the trap.
2017 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018 trap 'exit_status=$?
2019 # Save into config.log some information that might help in debugging.
2021 echo
2023 cat <<\_ASBOX
2024 ## ---------------- ##
2025 ## Cache variables. ##
2026 ## ---------------- ##
2027 _ASBOX
2028 echo
2029 # The following way of writing the cache mishandles newlines in values,
2031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in #(
2034 *${as_nl}*)
2035 case $ac_var in #(
2036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2037 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038 esac
2039 case $ac_var in #(
2040 _ | IFS | as_nl) ;; #(
2041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2042 *) { eval $ac_var=; unset $ac_var;} ;;
2043 esac ;;
2044 esac
2045 done
2046 (set) 2>&1 |
2047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2048 *${as_nl}ac_space=\ *)
2049 sed -n \
2050 "s/'\''/'\''\\\\'\'''\''/g;
2051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052 ;; #(
2054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2056 esac |
2057 sort
2059 echo
2061 cat <<\_ASBOX
2062 ## ----------------- ##
2063 ## Output variables. ##
2064 ## ----------------- ##
2065 _ASBOX
2066 echo
2067 for ac_var in $ac_subst_vars
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2077 if test -n "$ac_subst_files"; then
2078 cat <<\_ASBOX
2079 ## ------------------- ##
2080 ## File substitutions. ##
2081 ## ------------------- ##
2082 _ASBOX
2083 echo
2084 for ac_var in $ac_subst_files
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2095 if test -s confdefs.h; then
2096 cat <<\_ASBOX
2097 ## ----------- ##
2098 ## confdefs.h. ##
2099 ## ----------- ##
2100 _ASBOX
2101 echo
2102 cat confdefs.h
2103 echo
2105 test "$ac_signal" != 0 &&
2106 $as_echo "$as_me: caught signal $ac_signal"
2107 $as_echo "$as_me: exit $exit_status"
2108 } >&5
2109 rm -f core *.core core.conftest.* &&
2110 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2111 exit $exit_status
2113 for ac_signal in 1 2 13 15; do
2114 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2115 done
2116 ac_signal=0
2118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2119 rm -f -r conftest* confdefs.h
2121 $as_echo "/* confdefs.h */" > confdefs.h
2123 # Predefined preprocessor variables.
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_NAME "$PACKAGE_NAME"
2127 _ACEOF
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2131 _ACEOF
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2135 _ACEOF
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_STRING "$PACKAGE_STRING"
2139 _ACEOF
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2143 _ACEOF
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_URL "$PACKAGE_URL"
2147 _ACEOF
2150 # Let the site file select an alternate cache file if it wants to.
2151 # Prefer an explicitly selected file to automatically selected ones.
2152 ac_site_file1=NONE
2153 ac_site_file2=NONE
2154 if test -n "$CONFIG_SITE"; then
2155 ac_site_file1=$CONFIG_SITE
2156 elif test "x$prefix" != xNONE; then
2157 ac_site_file1=$prefix/share/config.site
2158 ac_site_file2=$prefix/etc/config.site
2159 else
2160 ac_site_file1=$ac_default_prefix/share/config.site
2161 ac_site_file2=$ac_default_prefix/etc/config.site
2163 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2165 test "x$ac_site_file" = xNONE && continue
2166 if test -r "$ac_site_file"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2168 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2169 sed 's/^/| /' "$ac_site_file" >&5
2170 . "$ac_site_file"
2172 done
2174 if test -r "$cache_file"; then
2175 # Some versions of bash will fail to source /dev/null (special
2176 # files actually), so we avoid doing that.
2177 if test -f "$cache_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 $as_echo "$as_me: loading cache $cache_file" >&6;}
2180 case $cache_file in
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
2183 esac
2185 else
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 $as_echo "$as_me: creating cache $cache_file" >&6;}
2188 >$cache_file
2191 # Check that the precious variables saved in the cache have kept the same
2192 # value.
2193 ac_cache_corrupted=false
2194 for ac_var in $ac_precious_vars; do
2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196 eval ac_new_set=\$ac_env_${ac_var}_set
2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198 eval ac_new_val=\$ac_env_${ac_var}_value
2199 case $ac_old_set,$ac_new_set in
2200 set,)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2204 ,set)
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2208 ,);;
2210 if test "x$ac_old_val" != "x$ac_new_val"; then
2211 # differences in whitespace do not lead to failure.
2212 ac_old_val_w=`echo x $ac_old_val`
2213 ac_new_val_w=`echo x $ac_new_val`
2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217 ac_cache_corrupted=:
2218 else
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221 eval $ac_var=\$ac_old_val
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2224 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2226 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2227 fi;;
2228 esac
2229 # Pass precious variables to config.status.
2230 if test "$ac_new_set" = set; then
2231 case $ac_new_val in
2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 *) ac_arg=$ac_var=$ac_new_val ;;
2234 esac
2235 case " $ac_configure_args " in
2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2238 esac
2240 done
2241 if $ac_cache_corrupted; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2248 ## -------------------- ##
2249 ## Main body of script. ##
2250 ## -------------------- ##
2252 ac_ext=c
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266 progname=$0
2267 # if PWD already has a value, it is probably wrong.
2268 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2270 # Export original configure arguments for use by sub-configures.
2271 # Quote arguments with shell meta charatcers.
2272 TOPLEVEL_CONFIGURE_ARGUMENTS=
2273 set -- "$progname" "$@"
2274 for ac_arg
2276 case "$ac_arg" in
2277 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2278 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2279 # if the argument is of the form -foo=baz, quote the baz part only
2280 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2281 *) ;;
2282 esac
2283 # Add the quoted argument to the list.
2284 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2285 done
2286 if test "$silent" = yes; then
2287 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2289 # Remove the initial space we just introduced and, as these will be
2290 # expanded by make, quote '$'.
2291 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2294 # Find the build, host, and target systems.
2295 ac_aux_dir=
2296 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2297 for ac_t in install-sh install.sh shtool; do
2298 if test -f "$ac_dir/$ac_t"; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/$ac_t -c"
2301 break 2
2303 done
2304 done
2305 if test -z "$ac_aux_dir"; then
2306 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2309 # These three variables are undocumented and unsupported,
2310 # and are intended to be withdrawn in a future Autoconf release.
2311 # They can cause serious problems if a builder's source tree is in a directory
2312 # whose full name contains unusual characters.
2313 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2314 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2315 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2318 # Make sure we can run config.sub.
2319 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2320 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2323 $as_echo_n "checking build system type... " >&6; }
2324 if test "${ac_cv_build+set}" = set; then :
2325 $as_echo_n "(cached) " >&6
2326 else
2327 ac_build_alias=$build_alias
2328 test "x$ac_build_alias" = x &&
2329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2330 test "x$ac_build_alias" = x &&
2331 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2332 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2337 $as_echo "$ac_cv_build" >&6; }
2338 case $ac_cv_build in
2339 *-*-*) ;;
2340 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2341 esac
2342 build=$ac_cv_build
2343 ac_save_IFS=$IFS; IFS='-'
2344 set x $ac_cv_build
2345 shift
2346 build_cpu=$1
2347 build_vendor=$2
2348 shift; shift
2349 # Remember, the first character of IFS is used to create $*,
2350 # except with old shells:
2351 build_os=$*
2352 IFS=$ac_save_IFS
2353 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2356 case ${build_alias} in
2357 "") build_noncanonical=${build} ;;
2358 *) build_noncanonical=${build_alias} ;;
2359 esac
2363 case ${host_alias} in
2364 "") host_noncanonical=${build_noncanonical} ;;
2365 *) host_noncanonical=${host_alias} ;;
2366 esac
2370 case ${target_alias} in
2371 "") target_noncanonical=${host_noncanonical} ;;
2372 *) target_noncanonical=${target_alias} ;;
2373 esac
2378 test "$host_noncanonical" = "$target_noncanonical" &&
2379 test "$program_prefix$program_suffix$program_transform_name" = \
2380 NONENONEs,x,x, &&
2381 program_transform_name=s,y,y,
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2384 $as_echo_n "checking host system type... " >&6; }
2385 if test "${ac_cv_host+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 if test "x$host_alias" = x; then
2389 ac_cv_host=$ac_cv_build
2390 else
2391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2392 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2397 $as_echo "$ac_cv_host" >&6; }
2398 case $ac_cv_host in
2399 *-*-*) ;;
2400 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2401 esac
2402 host=$ac_cv_host
2403 ac_save_IFS=$IFS; IFS='-'
2404 set x $ac_cv_host
2405 shift
2406 host_cpu=$1
2407 host_vendor=$2
2408 shift; shift
2409 # Remember, the first character of IFS is used to create $*,
2410 # except with old shells:
2411 host_os=$*
2412 IFS=$ac_save_IFS
2413 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2417 $as_echo_n "checking target system type... " >&6; }
2418 if test "${ac_cv_target+set}" = set; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test "x$target_alias" = x; then
2422 ac_cv_target=$ac_cv_host
2423 else
2424 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2425 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2430 $as_echo "$ac_cv_target" >&6; }
2431 case $ac_cv_target in
2432 *-*-*) ;;
2433 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2434 esac
2435 target=$ac_cv_target
2436 ac_save_IFS=$IFS; IFS='-'
2437 set x $ac_cv_target
2438 shift
2439 target_cpu=$1
2440 target_vendor=$2
2441 shift; shift
2442 # Remember, the first character of IFS is used to create $*,
2443 # except with old shells:
2444 target_os=$*
2445 IFS=$ac_save_IFS
2446 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2449 # The aliases save the names the user supplied, while $host etc.
2450 # will get canonicalized.
2451 test -n "$target_alias" &&
2452 test "$program_prefix$program_suffix$program_transform_name" = \
2453 NONENONEs,x,x, &&
2454 program_prefix=${target_alias}-
2456 test "$program_prefix" != NONE &&
2457 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2458 # Use a double $ so make ignores it.
2459 test "$program_suffix" != NONE &&
2460 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2461 # Double any \ or $.
2462 # By default was `s,x,x', remove it if useless.
2463 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2464 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2468 # Get 'install' or 'install-sh' and its variants.
2469 # Find a good install program. We prefer a C program (faster),
2470 # so one script is as good as another. But avoid the broken or
2471 # incompatible versions:
2472 # SysV /etc/install, /usr/sbin/install
2473 # SunOS /usr/etc/install
2474 # IRIX /sbin/install
2475 # AIX /bin/install
2476 # AmigaOS /C/install, which installs bootblocks on floppy discs
2477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2480 # OS/2's system install, which has a completely different semantic
2481 # ./install, which can be erroneously created by make from ./install.sh.
2482 # Reject install programs that cannot install multiple files.
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2484 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2485 if test -z "$INSTALL"; then
2486 if test "${ac_cv_path_install+set}" = set; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 # Account for people who put trailing slashes in PATH elements.
2495 case $as_dir/ in #((
2496 ./ | .// | /[cC]/* | \
2497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2499 /usr/ucb/* ) ;;
2501 # OSF1 and SCO ODT 3.0 have their own names for install.
2502 # Don't use installbsd from OSF since it installs stuff as root
2503 # by default.
2504 for ac_prog in ginstall scoinst install; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2507 if test $ac_prog = install &&
2508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2509 # AIX install. It has an incompatible calling convention.
2511 elif test $ac_prog = install &&
2512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513 # program-specific install script used by HP pwplus--don't use.
2515 else
2516 rm -rf conftest.one conftest.two conftest.dir
2517 echo one > conftest.one
2518 echo two > conftest.two
2519 mkdir conftest.dir
2520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2521 test -s conftest.one && test -s conftest.two &&
2522 test -s conftest.dir/conftest.one &&
2523 test -s conftest.dir/conftest.two
2524 then
2525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2526 break 3
2530 done
2531 done
2533 esac
2535 done
2536 IFS=$as_save_IFS
2538 rm -rf conftest.one conftest.two conftest.dir
2541 if test "${ac_cv_path_install+set}" = set; then
2542 INSTALL=$ac_cv_path_install
2543 else
2544 # As a last resort, use the slow shell script. Don't cache a
2545 # value for INSTALL within a source directory, because that will
2546 # break other packages using the cache if that directory is
2547 # removed, or if the value is a relative name.
2548 INSTALL=$ac_install_sh
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2552 $as_echo "$INSTALL" >&6; }
2554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2555 # It thinks the first close brace ends the variable substitution.
2556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2563 $as_echo_n "checking whether ln works... " >&6; }
2564 if test "${acx_cv_prog_LN+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 rm -f conftestdata_t
2568 echo >conftestdata_f
2569 if ln conftestdata_f conftestdata_t 2>/dev/null
2570 then
2571 acx_cv_prog_LN=ln
2572 else
2573 acx_cv_prog_LN=no
2575 rm -f conftestdata_f conftestdata_t
2578 if test $acx_cv_prog_LN = no; then
2579 LN="cp"
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2581 $as_echo "no, using $LN" >&6; }
2582 else
2583 LN="$acx_cv_prog_LN"
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2585 $as_echo "yes" >&6; }
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2589 $as_echo_n "checking whether ln -s works... " >&6; }
2590 LN_S=$as_ln_s
2591 if test "$LN_S" = "ln -s"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593 $as_echo "yes" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2596 $as_echo "no, using $LN_S" >&6; }
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2600 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2601 if test "${ac_cv_path_SED+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2605 for ac_i in 1 2 3 4 5 6 7; do
2606 ac_script="$ac_script$as_nl$ac_script"
2607 done
2608 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2609 { ac_script=; unset ac_script;}
2610 if test -z "$SED"; then
2611 ac_path_SED_found=false
2612 # Loop through the user's path and test for each of PROGNAME-LIST
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_prog in sed gsed; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2621 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2622 # Check for GNU ac_path_SED and select it if it is found.
2623 # Check for GNU $ac_path_SED
2624 case `"$ac_path_SED" --version 2>&1` in
2625 *GNU*)
2626 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2628 ac_count=0
2629 $as_echo_n 0123456789 >"conftest.in"
2630 while :
2632 cat "conftest.in" "conftest.in" >"conftest.tmp"
2633 mv "conftest.tmp" "conftest.in"
2634 cp "conftest.in" "conftest.nl"
2635 $as_echo '' >> "conftest.nl"
2636 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2638 as_fn_arith $ac_count + 1 && ac_count=$as_val
2639 if test $ac_count -gt ${ac_path_SED_max-0}; then
2640 # Best one so far, save it but keep looking for a better one
2641 ac_cv_path_SED="$ac_path_SED"
2642 ac_path_SED_max=$ac_count
2644 # 10*(2^10) chars as input seems more than enough
2645 test $ac_count -gt 10 && break
2646 done
2647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2648 esac
2650 $ac_path_SED_found && break 3
2651 done
2652 done
2653 done
2654 IFS=$as_save_IFS
2655 if test -z "$ac_cv_path_SED"; then
2656 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2658 else
2659 ac_cv_path_SED=$SED
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2664 $as_echo "$ac_cv_path_SED" >&6; }
2665 SED="$ac_cv_path_SED"
2666 rm -f conftest.sed
2668 for ac_prog in gawk mawk nawk awk
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if test "${ac_cv_prog_AWK+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test -n "$AWK"; then
2678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_AWK="$ac_prog"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2697 AWK=$ac_cv_prog_AWK
2698 if test -n "$AWK"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2700 $as_echo "$AWK" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2707 test -n "$AWK" && break
2708 done
2711 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2713 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2714 # a relative path.
2715 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2716 INSTALL="${srcpwd}/install-sh -c"
2719 # Set srcdir to "." if that's what it is.
2720 # This is important for multilib support.
2721 pwd=`${PWDCMD-pwd}`
2722 if test "${pwd}" = "${srcpwd}" ; then
2723 srcdir=.
2726 topsrcdir=$srcpwd
2728 extra_host_args=
2730 ### To add a new directory to the tree, first choose whether it is a target
2731 ### or a host dependent tool. Then put it into the appropriate list
2732 ### (library or tools, host or target), doing a dependency sort.
2734 # Subdirs will be configured in the order listed in build_configdirs,
2735 # configdirs, or target_configdirs; see the serialization section below.
2737 # Dependency sorting is only needed when *configuration* must be done in
2738 # a particular order. In all cases a dependency should be specified in
2739 # the Makefile, whether or not it's implicitly specified here.
2741 # Double entries in build_configdirs, configdirs, or target_configdirs may
2742 # cause circular dependencies and break everything horribly.
2744 # these library is used by various programs built for the build
2745 # environment
2747 build_libs="build-libiberty"
2749 # these tools are built for the build environment
2750 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2752 # these libraries are used by various programs built for the host environment
2754 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2756 # these tools are built for the host environment
2757 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2758 # know that we are building the simulator.
2759 # binutils, gas and ld appear in that order because it makes sense to run
2760 # "make check" in that particular order.
2761 # If --enable-gold is used, "gold" may replace "ld".
2762 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2764 # libgcj represents the runtime libraries only used by gcj.
2765 libgcj="target-libffi \
2766 target-zlib \
2767 target-libjava"
2769 # these libraries are built for the target environment, and are built after
2770 # the host libraries and the host tools (which may be a cross compiler)
2771 # Note that libiberty is not a target library.
2772 target_libraries="target-libgcc \
2773 target-libbacktrace \
2774 target-libgloss \
2775 target-newlib \
2776 target-libgomp \
2777 target-libcilkrts \
2778 target-libatomic \
2779 target-libitm \
2780 target-libstdc++-v3 \
2781 target-libsanitizer \
2782 target-libvtv \
2783 target-libssp \
2784 target-libquadmath \
2785 target-libgfortran \
2786 target-boehm-gc \
2787 ${libgcj} \
2788 target-libobjc \
2789 target-libada \
2790 target-libgo"
2792 # these tools are built using the target libraries, and are intended to
2793 # run only in the target environment
2795 # note: any program that *uses* libraries that are in the "target_libraries"
2796 # list belongs in this list.
2798 target_tools="target-rda"
2800 ################################################################################
2802 ## All tools belong in one of the four categories, and are assigned above
2803 ## We assign ${configdirs} this way to remove all embedded newlines. This
2804 ## is important because configure will choke if they ever get through.
2805 ## ${configdirs} is directories we build using the host tools.
2806 ## ${target_configdirs} is directories we build using the target tools.
2807 configdirs=`echo ${host_libs} ${host_tools}`
2808 target_configdirs=`echo ${target_libraries} ${target_tools}`
2809 build_configdirs=`echo ${build_libs} ${build_tools}`
2813 ################################################################################
2815 srcname="gnu development package"
2817 # This gets set non-empty for some net releases of packages.
2818 appdirs=""
2820 # Define is_cross_compiler to save on calls to 'test'.
2821 is_cross_compiler=
2822 if test x"${host}" = x"${target}" ; then
2823 is_cross_compiler=no
2824 else
2825 is_cross_compiler=yes
2828 # Find the build and target subdir names.
2830 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2831 # have matching libraries, they should use host libraries: Makefile.tpl
2832 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2833 # However, they still use the build modules, because the corresponding
2834 # host modules (e.g. bison) are only built for the host when bootstrap
2835 # finishes. So:
2836 # - build_subdir is where we find build modules, and never changes.
2837 # - build_libsubdir is where we find build libraries, and can be overridden.
2839 # Prefix 'build-' so this never conflicts with target_subdir.
2840 build_subdir="build-${build_noncanonical}"
2842 # Check whether --with-build-libsubdir was given.
2843 if test "${with_build_libsubdir+set}" = set; then :
2844 withval=$with_build_libsubdir; build_libsubdir="$withval"
2845 else
2846 build_libsubdir="$build_subdir"
2849 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2850 if ( test $srcdir = . && test -d gcc ) \
2851 || test -d $srcdir/../host-${host_noncanonical}; then
2852 host_subdir="host-${host_noncanonical}"
2853 else
2854 host_subdir=.
2856 # No prefix.
2857 target_subdir=${target_noncanonical}
2859 # Be sure to cover against remnants of an in-tree build.
2860 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2861 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2862 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2865 # Skipdirs are removed silently.
2866 skipdirs=
2867 # Noconfigdirs are removed loudly.
2868 noconfigdirs=""
2870 use_gnu_ld=
2871 # Make sure we don't let GNU ld be added if we didn't want it.
2872 if test x$with_gnu_ld = xno ; then
2873 use_gnu_ld=no
2874 noconfigdirs="$noconfigdirs ld gold"
2877 use_gnu_as=
2878 # Make sure we don't let GNU as be added if we didn't want it.
2879 if test x$with_gnu_as = xno ; then
2880 use_gnu_as=no
2881 noconfigdirs="$noconfigdirs gas"
2884 use_included_zlib=
2885 # Make sure we don't let ZLIB be added if we didn't want it.
2886 if test x$with_system_zlib = xyes ; then
2887 use_included_zlib=no
2888 noconfigdirs="$noconfigdirs zlib"
2891 # some tools are so dependent upon X11 that if we're not building with X,
2892 # it's not even worth trying to configure, much less build, that tool.
2894 case ${with_x} in
2895 yes | "") ;; # the default value for this tree is that X11 is available
2897 skipdirs="${skipdirs} tk itcl libgui"
2898 # We won't be able to build gdbtk without X.
2899 enable_gdbtk=no
2901 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2902 esac
2904 # Some are only suitable for cross toolchains.
2905 # Remove these if host=target.
2906 cross_only="target-libgloss target-newlib target-opcodes"
2908 case $is_cross_compiler in
2909 no) skipdirs="${skipdirs} ${cross_only}" ;;
2910 esac
2912 # If both --with-headers and --with-libs are specified, default to
2913 # --without-newlib.
2914 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2915 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2916 if test x"${with_newlib}" = x ; then
2917 with_newlib=no
2921 # Recognize --with-newlib/--without-newlib.
2922 case ${with_newlib} in
2923 no) skipdirs="${skipdirs} target-newlib" ;;
2924 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2925 esac
2927 # Handle --enable-gold, --enable-ld.
2928 # --disable-gold [--enable-ld]
2929 # Build only ld. Default option.
2930 # --enable-gold [--enable-ld]
2931 # Build both gold and ld. Install gold as "ld.gold", install ld
2932 # as "ld.bfd" and "ld".
2933 # --enable-gold=default [--enable-ld]
2934 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2935 # install ld as "ld.bfd".
2936 # --enable-gold[=default] --disable-ld
2937 # Build only gold, which is then installed as both "ld.gold" and "ld".
2938 # --enable-gold --enable-ld=default
2939 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2940 # and ld.bfd).
2941 # In other words, ld is default
2942 # --enable-gold=default --enable-ld=default
2943 # Error.
2945 default_ld=
2946 # Check whether --enable-gold was given.
2947 if test "${enable_gold+set}" = set; then :
2948 enableval=$enable_gold; ENABLE_GOLD=$enableval
2949 else
2950 ENABLE_GOLD=no
2953 case "${ENABLE_GOLD}" in
2954 yes|default)
2955 # Check for ELF target.
2956 is_elf=no
2957 case "${target}" in
2958 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2959 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2960 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2961 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2962 case "${target}" in
2963 *-*-linux*aout* | *-*-linux*oldld*)
2966 is_elf=yes
2968 esac
2969 esac
2971 if test "$is_elf" = "yes"; then
2972 # Check for target supported by gold.
2973 case "${target}" in
2974 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2979 ENABLE_GOLD=yes
2981 esac
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2989 esac
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994 else
2995 ENABLE_LD=yes
2999 case "${ENABLE_LD}" in
3000 default)
3001 if test x${default_ld} != x; then
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005 yes)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3017 esac
3019 # Configure extra directories which are host specific
3021 case "${host}" in
3022 *-cygwin*)
3023 configdirs="$configdirs libtermcap" ;;
3024 esac
3026 # A target can indicate whether a language isn't supported for some reason.
3027 # Only spaces may be used in this macro; not newlines or tabs.
3028 unsupported_languages=
3030 # Remove more programs from consideration, based on the host or
3031 # target this usually means that a port of the program doesn't
3032 # exist yet.
3034 case "${host}" in
3035 i[3456789]86-*-msdosdjgpp*)
3036 noconfigdirs="$noconfigdirs tcl tk itcl"
3038 esac
3041 # Check whether --enable-libquadmath was given.
3042 if test "${enable_libquadmath+set}" = set; then :
3043 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3044 else
3045 ENABLE_LIBQUADMATH=yes
3048 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3049 noconfigdirs="$noconfigdirs target-libquadmath"
3053 # Check whether --enable-libquadmath-support was given.
3054 if test "${enable_libquadmath_support+set}" = set; then :
3055 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3056 else
3057 ENABLE_LIBQUADMATH_SUPPORT=yes
3060 enable_libquadmath_support=
3061 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3062 enable_libquadmath_support=no
3066 # Check whether --enable-libada was given.
3067 if test "${enable_libada+set}" = set; then :
3068 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3069 else
3070 ENABLE_LIBADA=yes
3073 if test "${ENABLE_LIBADA}" != "yes" ; then
3074 noconfigdirs="$noconfigdirs gnattools"
3077 # Check whether --enable-libssp was given.
3078 if test "${enable_libssp+set}" = set; then :
3079 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3080 else
3081 ENABLE_LIBSSP=yes
3085 # Check whether --enable-libstdcxx was given.
3086 if test "${enable_libstdcxx+set}" = set; then :
3087 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3088 else
3089 ENABLE_LIBSTDCXX=default
3092 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3093 noconfigdirs="$noconfigdirs libstdc++-v3"
3096 # Save it here so that, even in case of --enable-libgcj, if the Java
3097 # front-end isn't enabled, we still get libgcj disabled.
3098 libgcj_saved=$libgcj
3099 case $enable_libgcj in
3100 yes)
3101 # If we reset it here, it won't get added to noconfigdirs in the
3102 # target-specific build rules, so it will be forcibly enabled
3103 # (unless the Java language itself isn't enabled).
3104 libgcj=
3107 # Make sure we get it printed in the list of not supported target libs.
3108 # Don't disable libffi, though, other languages use it.
3109 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3110 # Clear libgcj_saved so that even if java is enabled libffi won't be
3111 # built.
3112 libgcj_saved=
3114 esac
3116 # Check whether --enable-static-libjava was given.
3117 if test "${enable_static_libjava+set}" = set; then :
3118 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3119 else
3120 ENABLE_STATIC_LIBJAVA=no
3123 enable_static_libjava=
3124 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3125 enable_static_libjava=yes
3128 if test x$enable_static_libjava != xyes ; then
3129 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3133 # Disable libgomp on non POSIX hosted systems.
3134 if test x$enable_libgomp = x ; then
3135 # Enable libgomp by default on hosted POSIX systems.
3136 case "${target}" in
3137 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3139 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3141 *-*-solaris2* | *-*-hpux11*)
3143 *-*-darwin* | *-*-aix*)
3146 noconfigdirs="$noconfigdirs target-libgomp"
3148 esac
3151 # Disable libatomic on unsupported systems.
3152 if test -d ${srcdir}/libatomic; then
3153 if test x$enable_libatomic = x; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3155 $as_echo_n "checking for libatomic support... " >&6; }
3156 if (srcdir=${srcdir}/libatomic; \
3157 . ${srcdir}/configure.tgt; \
3158 test -n "$UNSUPPORTED")
3159 then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 noconfigdirs="$noconfigdirs target-libatomic"
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165 $as_echo "yes" >&6; }
3170 # Disable libcilkrts on unsupported systems.
3171 if test -d ${srcdir}/libcilkrts; then
3172 if test x$enable_libcilkrts = x; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3174 $as_echo_n "checking for libcilkrts support... " >&6; }
3175 if (srcdir=${srcdir}/libcilkrts; \
3176 . ${srcdir}/configure.tgt; \
3177 test -n "$UNSUPPORTED")
3178 then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 noconfigdirs="$noconfigdirs target-libcilkrts"
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184 $as_echo "yes" >&6; }
3189 # Disable libitm on unsupported systems.
3190 if test -d ${srcdir}/libitm; then
3191 if test x$enable_libitm = x; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3193 $as_echo_n "checking for libitm support... " >&6; }
3194 if (srcdir=${srcdir}/libitm; \
3195 . ${srcdir}/configure.tgt; \
3196 test -n "$UNSUPPORTED")
3197 then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 noconfigdirs="$noconfigdirs target-libitm"
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3208 # Disable libsanitizer on unsupported systems.
3209 if test -d ${srcdir}/libsanitizer; then
3210 if test x$enable_libsanitizer = x; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3212 $as_echo_n "checking for libsanitizer support... " >&6; }
3213 if (srcdir=${srcdir}/libsanitizer; \
3214 . ${srcdir}/configure.tgt; \
3215 test -n "$UNSUPPORTED")
3216 then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 noconfigdirs="$noconfigdirs target-libsanitizer"
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3227 # Disable libvtv on unsupported systems.
3228 if test -d ${srcdir}/libvtv; then
3229 if test x$enable_libvtv = x; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3231 $as_echo_n "checking for libvtv support... " >&6; }
3232 if (srcdir=${srcdir}/libvtv; \
3233 . ${srcdir}/configure.tgt; \
3234 test "$VTV_SUPPORTED" != "yes")
3235 then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 noconfigdirs="$noconfigdirs target-libvtv"
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3246 # Disable libquadmath for some systems.
3247 case "${target}" in
3248 avr-*-*)
3249 noconfigdirs="$noconfigdirs target-libquadmath"
3251 # libquadmath is unused on AIX and libquadmath build process use of
3252 # LD_LIBRARY_PATH can break AIX bootstrap.
3253 powerpc-*-aix* | rs6000-*-aix*)
3254 noconfigdirs="$noconfigdirs target-libquadmath"
3256 esac
3258 # Disable libssp for some systems.
3259 case "${target}" in
3260 avr-*-*)
3261 # No hosted I/O support.
3262 noconfigdirs="$noconfigdirs target-libssp"
3264 powerpc-*-aix* | rs6000-*-aix*)
3265 noconfigdirs="$noconfigdirs target-libssp"
3267 rl78-*-*)
3268 # libssp uses a misaligned load to trigger a fault, but the RL78
3269 # doesn't fault for those - instead, it gives a build-time error
3270 # for explicit misaligned loads.
3271 noconfigdirs="$noconfigdirs target-libssp"
3273 esac
3275 # Disable libstdc++-v3 for some systems.
3276 # Allow user to override this if they pass --enable-libstdc++-v3
3277 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3278 case "${target}" in
3279 *-*-vxworks*)
3280 # VxWorks uses the Dinkumware C++ library.
3281 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3283 arm*-wince-pe*)
3284 # the C++ libraries don't build on top of CE's C libraries
3285 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3287 avr-*-*)
3288 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3290 esac
3293 # Disable Fortran for some systems.
3294 case "${target}" in
3295 mmix-*-*)
3296 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3297 unsupported_languages="$unsupported_languages fortran"
3299 esac
3301 # Disable Java if libffi is not supported.
3302 case "${target}" in
3303 aarch64-*-*)
3305 alpha*-*-*)
3307 arm*-*-*)
3309 cris-*-*)
3311 frv-*-*)
3313 hppa*-*-linux*)
3315 hppa*-*-hpux*)
3317 i?86-*-*)
3319 ia64*-*-*)
3321 m32r*-*-*)
3323 m68k-*-*)
3325 mips*-*-rtems*)
3327 mips*-*-linux*)
3329 powerpc*-*-linux*)
3331 powerpc-*-darwin*)
3333 powerpc-*-aix* | rs6000-*-aix*)
3335 powerpc-*-freebsd*)
3337 powerpc64-*-freebsd*)
3339 powerpc*-*-rtems*)
3341 s390-*-* | s390x-*-*)
3343 sh-*-* | sh[34]*-*-*)
3345 sh64-*-* | sh5*-*-*)
3347 sparc*-*-*)
3349 x86_64-*-*)
3351 *-*-*)
3352 unsupported_languages="$unsupported_languages java"
3354 esac
3356 # Disable Java, libgcj or related libraries for some systems.
3357 case "${target}" in
3358 powerpc-*-darwin*)
3360 i[3456789]86-*-darwin*)
3362 x86_64-*-darwin[912]*)
3364 *-*-darwin*)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3367 *-*-netware*)
3368 noconfigdirs="$noconfigdirs ${libgcj}"
3370 *-*-rtems*)
3371 noconfigdirs="$noconfigdirs ${libgcj}"
3373 *-*-tpf*)
3374 noconfigdirs="$noconfigdirs ${libgcj}"
3376 *-*-uclinux*)
3377 noconfigdirs="$noconfigdirs ${libgcj}"
3379 *-*-vxworks*)
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3382 alpha*-*-*vms*)
3383 noconfigdirs="$noconfigdirs ${libgcj}"
3385 arm-wince-pe)
3386 noconfigdirs="$noconfigdirs ${libgcj}"
3388 arm*-*-symbianelf*)
3389 noconfigdirs="$noconfigdirs ${libgcj}"
3391 bfin-*-*)
3392 noconfigdirs="$noconfigdirs target-boehm-gc"
3394 cris-*-* | crisv32-*-*)
3395 unsupported_languages="$unsupported_languages java"
3396 case "${target}" in
3397 *-*-linux*)
3399 *) # See PR46792 regarding target-libffi.
3400 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3401 esac
3403 hppa*64*-*-linux*)
3404 # In this case, it's because the hppa64-linux target is for
3405 # the kernel only at this point and has no libc, and thus no
3406 # headers, crt*.o, etc., all of which are needed by these.
3407 unsupported_languages="$unsupported_languages java"
3409 hppa*64*-*-hpux*)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3412 hppa*-hp-hpux11*)
3414 hppa*-*-hpux*)
3415 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3416 # build on HP-UX 10.20.
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3419 ia64*-*-*vms*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3422 i[3456789]86-w64-mingw*)
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3425 i[3456789]86-*-mingw*)
3426 noconfigdirs="$noconfigdirs ${libgcj}"
3428 x86_64-*-mingw*)
3429 noconfigdirs="$noconfigdirs ${libgcj}"
3431 mmix-*-*)
3432 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3434 powerpc-*-aix*)
3435 # copied from rs6000-*-* entry
3436 noconfigdirs="$noconfigdirs ${libgcj}"
3438 rs6000-*-aix*)
3439 noconfigdirs="$noconfigdirs ${libgcj}"
3441 *-*-lynxos*)
3442 noconfigdirs="$noconfigdirs ${libgcj}"
3444 esac
3446 # Disable libgo for some systems where it is known to not work.
3447 # For testing, you can easily override this with --enable-libgo.
3448 if test x$enable_libgo = x; then
3449 case "${target}" in
3450 *-*-darwin*)
3451 # PR 46986
3452 noconfigdirs="$noconfigdirs target-libgo"
3454 *-*-cygwin* | *-*-mingw*)
3455 noconfigdirs="$noconfigdirs target-libgo"
3457 *-*-aix*)
3458 noconfigdirs="$noconfigdirs target-libgo"
3460 esac
3463 # Default libgloss CPU subdirectory.
3464 libgloss_dir="$target_cpu"
3466 case "${target}" in
3467 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3468 libgloss_dir=wince
3470 aarch64*-*-* )
3471 libgloss_dir=aarch64
3473 arm*-*-*)
3474 libgloss_dir=arm
3476 cris-*-* | crisv32-*-*)
3477 libgloss_dir=cris
3479 hppa*-*-*)
3480 libgloss_dir=pa
3482 i[3456789]86-*-*)
3483 libgloss_dir=i386
3485 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3486 libgloss_dir=m68hc11
3488 m68*-*-* | fido-*-*)
3489 libgloss_dir=m68k
3491 mips*-*-*)
3492 libgloss_dir=mips
3494 powerpc*-*-*)
3495 libgloss_dir=rs6000
3497 sparc*-*-*)
3498 libgloss_dir=sparc
3500 esac
3502 # Disable newlib and libgloss for various target OSes.
3503 case "${target}" in
3504 alpha*-dec-osf*)
3505 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3507 i[3456789]86-*-linux*)
3508 # This section makes it possible to build newlib natively on linux.
3509 # If we are using a cross compiler then don't configure newlib.
3510 if test x${is_cross_compiler} != xno ; then
3511 noconfigdirs="$noconfigdirs target-newlib"
3513 noconfigdirs="$noconfigdirs target-libgloss"
3514 # If we are not using a cross compiler, do configure newlib.
3515 # Note however, that newlib will only be configured in this situation
3516 # if the --with-newlib option has been given, because otherwise
3517 # 'target-newlib' will appear in skipdirs.
3519 i[3456789]86-*-rdos*)
3520 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3522 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 sparc-*-sunos4*)
3526 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3528 *-*-aix*)
3529 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3531 *-*-beos*)
3532 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3534 *-*-chorusos)
3535 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3537 *-*-dragonfly*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3540 *-*-freebsd*)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3543 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3546 *-*-lynxos*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3549 *-*-mingw*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3552 *-*-netbsd*)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3555 *-*-netware*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3558 *-*-tpf*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3561 *-*-uclinux*)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 *-*-vxworks*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 esac
3569 case "${target}" in
3570 *-*-chorusos)
3572 powerpc-*-darwin*)
3573 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3574 noconfigdirs="$noconfigdirs sim target-rda"
3576 i[3456789]86-*-darwin*)
3577 noconfigdirs="$noconfigdirs ld gprof"
3578 noconfigdirs="$noconfigdirs sim target-rda"
3580 x86_64-*-darwin[912]*)
3581 noconfigdirs="$noconfigdirs ld gas gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
3584 *-*-darwin*)
3585 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3588 *-*-dragonfly*)
3590 *-*-freebsd*)
3591 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3592 && test -f /usr/local/include/gmp.h; then
3593 with_gmp=/usr/local
3596 *-*-kaos*)
3597 # Remove unsupported stuff on all kaOS configurations.
3598 noconfigdirs="$noconfigdirs target-libgloss"
3600 *-*-netbsd*)
3602 *-*-netware*)
3604 *-*-rtems*)
3605 noconfigdirs="$noconfigdirs target-libgloss"
3606 # this is not caught below because this stanza matches earlier
3607 case $target in
3608 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3609 esac
3611 # The tpf target doesn't support gdb yet.
3612 *-*-tpf*)
3613 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3615 *-*-uclinux*)
3616 noconfigdirs="$noconfigdirs target-rda"
3618 *-*-vxworks*)
3620 alpha*-dec-osf*)
3621 # ld works, but does not support shared libraries.
3622 # gas doesn't generate exception information.
3623 noconfigdirs="$noconfigdirs gas ld"
3625 alpha*-*-*vms*)
3626 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3628 alpha*-*-*)
3629 # newlib is not 64 bit ready
3630 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3632 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3633 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3635 arc-*-*|arceb-*-*)
3636 noconfigdirs="$noconfigdirs target-libgloss"
3638 arm-*-pe*)
3639 noconfigdirs="$noconfigdirs target-libgloss"
3641 arm-*-riscix*)
3642 noconfigdirs="$noconfigdirs ld target-libgloss"
3644 avr-*-rtems*)
3646 avr-*-*)
3647 if test x${with_avrlibc} != xno; then
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 c4x-*-* | tic4x-*-*)
3652 noconfigdirs="$noconfigdirs target-libgloss"
3654 tic54x-*-*)
3655 noconfigdirs="$noconfigdirs target-libgloss gdb"
3657 d10v-*-*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3660 d30v-*-*)
3661 noconfigdirs="$noconfigdirs gdb"
3663 fr30-*-elf*)
3664 noconfigdirs="$noconfigdirs gdb"
3666 moxie-*-*)
3667 noconfigdirs="$noconfigdirs gprof"
3669 h8300*-*-*)
3670 noconfigdirs="$noconfigdirs target-libgloss"
3672 h8500-*-*)
3673 noconfigdirs="$noconfigdirs target-libgloss"
3675 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3677 hppa*64*-*-linux*)
3679 hppa*-*-linux*)
3681 hppa*-*-*elf* | \
3682 hppa*-*-lites* | \
3683 hppa*-*-openbsd* | \
3684 hppa*64*-*-*)
3686 hppa*-hp-hpux11*)
3687 noconfigdirs="$noconfigdirs ld"
3689 hppa*-*-pro*)
3691 hppa*-*-*)
3692 noconfigdirs="$noconfigdirs ld"
3694 i960-*-*)
3695 noconfigdirs="$noconfigdirs gdb"
3697 ia64*-*-elf*)
3698 # No gdb support yet.
3699 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3701 ia64*-**-hpux*)
3702 # No ld support yet.
3703 noconfigdirs="$noconfigdirs libgui itcl ld"
3705 ia64*-*-*vms*)
3706 # No ld support yet.
3707 noconfigdirs="$noconfigdirs libgui itcl ld"
3709 i[3456789]86-w64-mingw*)
3711 i[3456789]86-*-mingw*)
3712 target_configdirs="$target_configdirs target-winsup"
3714 *-*-cygwin*)
3715 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3716 noconfigdirs="$noconfigdirs target-libgloss"
3717 # always build newlib if winsup directory is present.
3718 if test -d "$srcdir/winsup/cygwin"; then
3719 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3720 elif test -d "$srcdir/newlib"; then
3721 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3724 i[3456789]86-*-pe)
3725 noconfigdirs="$noconfigdirs target-libgloss"
3727 i[3456789]86-*-sco3.2v5*)
3728 # The linker does not yet know about weak symbols in COFF,
3729 # and is not configured to handle mixed ELF and COFF.
3730 noconfigdirs="$noconfigdirs ld target-libgloss"
3732 i[3456789]86-*-sco*)
3733 noconfigdirs="$noconfigdirs gprof target-libgloss"
3735 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3736 noconfigdirs="$noconfigdirs target-libgloss"
3738 i[3456789]86-*-sysv4*)
3739 noconfigdirs="$noconfigdirs target-libgloss"
3741 i[3456789]86-*-beos*)
3742 noconfigdirs="$noconfigdirs gdb"
3744 i[3456789]86-*-rdos*)
3745 noconfigdirs="$noconfigdirs gdb"
3747 mmix-*-*)
3748 noconfigdirs="$noconfigdirs gdb"
3750 mt-*-*)
3751 noconfigdirs="$noconfigdirs sim"
3753 powerpc-*-aix*)
3754 # copied from rs6000-*-* entry
3755 noconfigdirs="$noconfigdirs gprof"
3757 powerpc*-*-winnt* | powerpc*-*-pe*)
3758 target_configdirs="$target_configdirs target-winsup"
3759 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3760 # always build newlib.
3761 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3763 # This is temporary until we can link against shared libraries
3764 powerpcle-*-solaris*)
3765 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3767 powerpc-*-beos*)
3768 noconfigdirs="$noconfigdirs gdb"
3770 rs6000-*-lynxos*)
3771 noconfigdirs="$noconfigdirs gprof"
3773 rs6000-*-aix*)
3774 noconfigdirs="$noconfigdirs gprof"
3776 rs6000-*-*)
3777 noconfigdirs="$noconfigdirs gprof"
3779 m68k-apollo-*)
3780 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3782 microblaze*)
3783 noconfigdirs="$noconfigdirs gprof"
3785 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3786 if test x$with_newlib = xyes; then
3787 noconfigdirs="$noconfigdirs gprof"
3790 mips*-*-irix5*)
3791 noconfigdirs="$noconfigdirs gprof target-libgloss"
3793 mips*-*-irix6*)
3794 noconfigdirs="$noconfigdirs gprof target-libgloss"
3796 mips*-*-bsd*)
3797 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3799 mips*-*-linux*)
3801 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3802 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3803 noconfigdirs="$noconfigdirs ld gas gprof"
3805 mips*-*-*)
3806 noconfigdirs="$noconfigdirs gprof"
3808 nds32*-*-*)
3809 noconfigdirs="$noconfigdirs gdb"
3811 or1k*-*-*)
3812 noconfigdirs="$noconfigdirs gdb"
3814 sh-*-* | sh64-*-*)
3815 case "${target}" in
3816 sh*-*-elf)
3819 noconfigdirs="$noconfigdirs target-libgloss" ;;
3820 esac
3822 sparc-*-sunos4*)
3823 if test x${is_cross_compiler} = xno ; then
3824 use_gnu_ld=no
3827 tic6x-*-*)
3828 noconfigdirs="$noconfigdirs sim"
3830 tilepro*-*-* | tilegx*-*-*)
3831 noconfigdirs="$noconfigdirs sim"
3833 v810-*-*)
3834 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3836 vax-*-*)
3837 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3839 esac
3841 # If we aren't building newlib, then don't build libgloss, since libgloss
3842 # depends upon some newlib header files.
3843 case "${noconfigdirs}" in
3844 *target-libgloss*) ;;
3845 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3846 esac
3848 # Work in distributions that contain no compiler tools, like Autoconf.
3849 host_makefile_frag=/dev/null
3850 if test -d ${srcdir}/config ; then
3851 case "${host}" in
3852 i[3456789]86-*-msdosdjgpp*)
3853 host_makefile_frag="config/mh-djgpp"
3855 *-cygwin*)
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3858 $as_echo_n "checking to see if cat works as expected... " >&6; }
3859 echo a >cygwin-cat-check
3860 if test `cat cygwin-cat-check` = a ; then
3861 rm cygwin-cat-check
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3863 $as_echo "yes" >&6; }
3864 else
3865 rm cygwin-cat-check
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3868 as_fn_error "The cat command does not ignore carriage return characters.
3869 Please either mount the build directory in binary mode or run the following
3870 commands before running any configure script:
3871 set -o igncr
3872 export SHELLOPTS
3873 " "$LINENO" 5
3876 host_makefile_frag="config/mh-cygwin"
3878 *-mingw*)
3879 host_makefile_frag="config/mh-mingw"
3881 hppa*-hp-hpux10*)
3882 host_makefile_frag="config/mh-pa-hpux10"
3884 hppa*-hp-hpux*)
3885 host_makefile_frag="config/mh-pa"
3887 hppa*-*)
3888 host_makefile_frag="config/mh-pa"
3890 *-*-darwin*)
3891 host_makefile_frag="config/mh-darwin"
3893 powerpc-*-aix*)
3894 host_makefile_frag="config/mh-ppc-aix"
3896 rs6000-*-aix*)
3897 host_makefile_frag="config/mh-ppc-aix"
3899 esac
3902 if test "${build}" != "${host}" ; then
3903 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3904 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3905 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3906 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3907 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3908 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3909 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3910 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3911 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3912 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3913 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3914 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3915 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3916 else
3917 AR_FOR_BUILD="\$(AR)"
3918 AS_FOR_BUILD="\$(AS)"
3919 CC_FOR_BUILD="\$(CC)"
3920 CXX_FOR_BUILD="\$(CXX)"
3921 GCJ_FOR_BUILD="\$(GCJ)"
3922 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3923 GOC_FOR_BUILD="\$(GOC)"
3924 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3925 LD_FOR_BUILD="\$(LD)"
3926 NM_FOR_BUILD="\$(NM)"
3927 RANLIB_FOR_BUILD="\$(RANLIB)"
3928 WINDRES_FOR_BUILD="\$(WINDRES)"
3929 WINDMC_FOR_BUILD="\$(WINDMC)"
3932 ac_ext=c
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937 if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_prog_CC+set}" = set; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 if test -n "$CC"; then
3946 ac_cv_prog_CC="$CC" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3965 CC=$ac_cv_prog_CC
3966 if test -n "$CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 $as_echo "$CC" >&6; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3976 if test -z "$ac_cv_prog_CC"; then
3977 ac_ct_CC=$CC
3978 # Extract the first word of "gcc", so it can be a program name with args.
3979 set dummy gcc; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$ac_ct_CC"; then
3986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_ac_ct_CC="gcc"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3999 done
4000 done
4001 IFS=$as_save_IFS
4005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006 if test -n "$ac_ct_CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008 $as_echo "$ac_ct_CC" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4014 if test "x$ac_ct_CC" = x; then
4015 CC=""
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018 yes:)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4021 ac_tool_warned=yes ;;
4022 esac
4023 CC=$ac_ct_CC
4025 else
4026 CC="$ac_cv_prog_CC"
4029 if test -z "$CC"; then
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}cc; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if test "${ac_cv_prog_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_CC="${ac_tool_prefix}cc"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4052 done
4053 done
4054 IFS=$as_save_IFS
4058 CC=$ac_cv_prog_CC
4059 if test -n "$CC"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061 $as_echo "$CC" >&6; }
4062 else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4070 if test -z "$CC"; then
4071 # Extract the first word of "cc", so it can be a program name with args.
4072 set dummy cc; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_prog_CC+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4080 else
4081 ac_prog_rejected=no
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4090 ac_prog_rejected=yes
4091 continue
4093 ac_cv_prog_CC="cc"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4099 IFS=$as_save_IFS
4101 if test $ac_prog_rejected = yes; then
4102 # We found a bogon in the path, so make sure we never use it.
4103 set dummy $ac_cv_prog_CC
4104 shift
4105 if test $# != 0; then
4106 # We chose a different compiler from the bogus one.
4107 # However, it has the same basename, so the bogon will be chosen
4108 # first if we set CC to just the basename; use the full file name.
4109 shift
4110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4115 CC=$ac_cv_prog_CC
4116 if test -n "$CC"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4118 $as_echo "$CC" >&6; }
4119 else
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4126 if test -z "$CC"; then
4127 if test -n "$ac_tool_prefix"; then
4128 for ac_prog in cl.exe
4130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if test "${ac_cv_prog_CC+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4151 done
4152 done
4153 IFS=$as_save_IFS
4157 CC=$ac_cv_prog_CC
4158 if test -n "$CC"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160 $as_echo "$CC" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4167 test -n "$CC" && break
4168 done
4170 if test -z "$CC"; then
4171 ac_ct_CC=$CC
4172 for ac_prog in cl.exe
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$ac_ct_CC"; then
4182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_ac_ct_CC="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4197 IFS=$as_save_IFS
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4204 $as_echo "$ac_ct_CC" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4211 test -n "$ac_ct_CC" && break
4212 done
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218 yes:)
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221 ac_tool_warned=yes ;;
4222 esac
4223 CC=$ac_ct_CC
4230 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232 as_fn_error "no acceptable C compiler found in \$PATH
4233 See \`config.log' for more details." "$LINENO" 5; }
4235 # Provide some information about the compiler.
4236 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4237 set X $ac_compile
4238 ac_compiler=$2
4239 for ac_option in --version -v -V -qversion; do
4240 { { ac_try="$ac_compiler $ac_option >&5"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4248 ac_status=$?
4249 if test -s conftest.err; then
4250 sed '10a\
4251 ... rest of stderr output deleted ...
4252 10q' conftest.err >conftest.er1
4253 cat conftest.er1 >&5
4254 rm -f conftest.er1 conftest.err
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }
4258 done
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4264 main ()
4268 return 0;
4270 _ACEOF
4271 ac_clean_files_save=$ac_clean_files
4272 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4273 # Try to create an executable without -o first, disregard a.out.
4274 # It will help us diagnose broken compilers, and finding out an intuition
4275 # of exeext.
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4277 $as_echo_n "checking for C compiler default output file name... " >&6; }
4278 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4280 # The possible output files:
4281 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4283 ac_rmfiles=
4284 for ac_file in $ac_files
4286 case $ac_file in
4287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4288 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4289 esac
4290 done
4291 rm -f $ac_rmfiles
4293 if { { ac_try="$ac_link_default"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_link_default") 2>&5
4301 ac_status=$?
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
4304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4307 # so that the user can short-circuit this test for compilers unknown to
4308 # Autoconf.
4309 for ac_file in $ac_files ''
4311 test -f "$ac_file" || continue
4312 case $ac_file in
4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4315 [ab].out )
4316 # We found the default executable, but exeext='' is most
4317 # certainly right.
4318 break;;
4319 *.* )
4320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4321 then :; else
4322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4324 # We set ac_cv_exeext here because the later test for it is not
4325 # safe: cross compilers may not add the suffix if given an `-o'
4326 # argument, so we may need to know it at that point already.
4327 # Even if this section looks crufty: it has the advantage of
4328 # actually working.
4329 break;;
4331 break;;
4332 esac
4333 done
4334 test "$ac_cv_exeext" = no && ac_cv_exeext=
4336 else
4337 ac_file=''
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4340 $as_echo "$ac_file" >&6; }
4341 if test -z "$ac_file"; then :
4342 $as_echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347 { as_fn_set_status 77
4348 as_fn_error "C compiler cannot create executables
4349 See \`config.log' for more details." "$LINENO" 5; }; }
4351 ac_exeext=$ac_cv_exeext
4353 # Check that the compiler produces executables we can run. If not, either
4354 # the compiler is broken, or we cross compile.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4356 $as_echo_n "checking whether the C compiler works... " >&6; }
4357 # If not cross compiling, check that we can run a simple program.
4358 if test "$cross_compiling" != yes; then
4359 if { ac_try='./$ac_file'
4360 { { case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_try") 2>&5
4367 ac_status=$?
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }; }; then
4370 cross_compiling=no
4371 else
4372 if test "$cross_compiling" = maybe; then
4373 cross_compiling=yes
4374 else
4375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4377 as_fn_error "cannot run C compiled programs.
4378 If you meant to cross compile, use \`--host'.
4379 See \`config.log' for more details." "$LINENO" 5; }
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384 $as_echo "yes" >&6; }
4386 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4387 ac_clean_files=$ac_clean_files_save
4388 # Check that the compiler produces executables we can run. If not, either
4389 # the compiler is broken, or we cross compile.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4391 $as_echo_n "checking whether we are cross compiling... " >&6; }
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4393 $as_echo "$cross_compiling" >&6; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4396 $as_echo_n "checking for suffix of executables... " >&6; }
4397 if { { ac_try="$ac_link"
4398 case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 $as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_link") 2>&5
4405 ac_status=$?
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }; then :
4408 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4410 # work properly (i.e., refer to `conftest.exe'), while it won't with
4411 # `rm'.
4412 for ac_file in conftest.exe conftest conftest.*; do
4413 test -f "$ac_file" || continue
4414 case $ac_file in
4415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4416 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4417 break;;
4418 * ) break;;
4419 esac
4420 done
4421 else
4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424 as_fn_error "cannot compute suffix of executables: cannot compile and link
4425 See \`config.log' for more details." "$LINENO" 5; }
4427 rm -f conftest$ac_cv_exeext
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4429 $as_echo "$ac_cv_exeext" >&6; }
4431 rm -f conftest.$ac_ext
4432 EXEEXT=$ac_cv_exeext
4433 ac_exeext=$EXEEXT
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4435 $as_echo_n "checking for suffix of object files... " >&6; }
4436 if test "${ac_cv_objext+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4443 main ()
4447 return 0;
4449 _ACEOF
4450 rm -f conftest.o conftest.obj
4451 if { { ac_try="$ac_compile"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_compile") 2>&5
4459 ac_status=$?
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; then :
4462 for ac_file in conftest.o conftest.obj conftest.*; do
4463 test -f "$ac_file" || continue;
4464 case $ac_file in
4465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4467 break;;
4468 esac
4469 done
4470 else
4471 $as_echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error "cannot compute suffix of object files: cannot compile
4477 See \`config.log' for more details." "$LINENO" 5; }
4479 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4482 $as_echo "$ac_cv_objext" >&6; }
4483 OBJEXT=$ac_cv_objext
4484 ac_objext=$OBJEXT
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4487 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4494 main ()
4496 #ifndef __GNUC__
4497 choke me
4498 #endif
4501 return 0;
4503 _ACEOF
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_compiler_gnu=yes
4506 else
4507 ac_compiler_gnu=no
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4515 if test $ac_compiler_gnu = yes; then
4516 GCC=yes
4517 else
4518 GCC=
4520 ac_test_CFLAGS=${CFLAGS+set}
4521 ac_save_CFLAGS=$CFLAGS
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4523 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4524 if test "${ac_cv_prog_cc_g+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 ac_save_c_werror_flag=$ac_c_werror_flag
4528 ac_c_werror_flag=yes
4529 ac_cv_prog_cc_g=no
4530 CFLAGS="-g"
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4535 main ()
4539 return 0;
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_prog_cc_g=yes
4544 else
4545 CFLAGS=""
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4550 main ()
4554 return 0;
4556 _ACEOF
4557 if ac_fn_c_try_compile "$LINENO"; then :
4559 else
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4561 CFLAGS="-g"
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4566 main ()
4570 return 0;
4572 _ACEOF
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_prog_cc_g=yes
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_c_werror_flag=$ac_save_c_werror_flag
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4584 $as_echo "$ac_cv_prog_cc_g" >&6; }
4585 if test "$ac_test_CFLAGS" = set; then
4586 CFLAGS=$ac_save_CFLAGS
4587 elif test $ac_cv_prog_cc_g = yes; then
4588 if test "$GCC" = yes; then
4589 CFLAGS="-g -O2"
4590 else
4591 CFLAGS="-g"
4593 else
4594 if test "$GCC" = yes; then
4595 CFLAGS="-O2"
4596 else
4597 CFLAGS=
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4602 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 ac_cv_prog_cc_c89=no
4606 ac_save_CC=$CC
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4609 #include <stdarg.h>
4610 #include <stdio.h>
4611 #include <sys/types.h>
4612 #include <sys/stat.h>
4613 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4614 struct buf { int x; };
4615 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4616 static char *e (p, i)
4617 char **p;
4618 int i;
4620 return p[i];
4622 static char *f (char * (*g) (char **, int), char **p, ...)
4624 char *s;
4625 va_list v;
4626 va_start (v,p);
4627 s = g (p, va_arg (v,int));
4628 va_end (v);
4629 return s;
4632 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4633 function prototypes and stuff, but not '\xHH' hex character constants.
4634 These don't provoke an error unfortunately, instead are silently treated
4635 as 'x'. The following induces an error, until -std is added to get
4636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4637 array size at least. It's necessary to write '\x00'==0 to get something
4638 that's true only with -std. */
4639 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4641 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4642 inside strings and character constants. */
4643 #define FOO(x) 'x'
4644 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4646 int test (int i, double x);
4647 struct s1 {int (*f) (int a);};
4648 struct s2 {int (*f) (double a);};
4649 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4650 int argc;
4651 char **argv;
4653 main ()
4655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4657 return 0;
4659 _ACEOF
4660 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4663 CC="$ac_save_CC $ac_arg"
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 ac_cv_prog_cc_c89=$ac_arg
4667 rm -f core conftest.err conftest.$ac_objext
4668 test "x$ac_cv_prog_cc_c89" != "xno" && break
4669 done
4670 rm -f conftest.$ac_ext
4671 CC=$ac_save_CC
4674 # AC_CACHE_VAL
4675 case "x$ac_cv_prog_cc_c89" in
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4678 $as_echo "none needed" >&6; } ;;
4679 xno)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4681 $as_echo "unsupported" >&6; } ;;
4683 CC="$CC $ac_cv_prog_cc_c89"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4685 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4686 esac
4687 if test "x$ac_cv_prog_cc_c89" != xno; then :
4691 ac_ext=c
4692 ac_cpp='$CPP $CPPFLAGS'
4693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 ac_ext=cpp
4698 ac_cpp='$CXXCPP $CPPFLAGS'
4699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4702 if test -z "$CXX"; then
4703 if test -n "$CCC"; then
4704 CXX=$CCC
4705 else
4706 if test -n "$ac_tool_prefix"; then
4707 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4710 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if test "${ac_cv_prog_CXX+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test -n "$CXX"; then
4717 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4726 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
4730 done
4731 done
4732 IFS=$as_save_IFS
4736 CXX=$ac_cv_prog_CXX
4737 if test -n "$CXX"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4739 $as_echo "$CXX" >&6; }
4740 else
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4746 test -n "$CXX" && break
4747 done
4749 if test -z "$CXX"; then
4750 ac_ct_CXX=$CXX
4751 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4753 # Extract the first word of "$ac_prog", so it can be a program name with args.
4754 set dummy $ac_prog; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$ac_ct_CXX"; then
4761 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_CXX="$ac_prog"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4780 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4781 if test -n "$ac_ct_CXX"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4783 $as_echo "$ac_ct_CXX" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4790 test -n "$ac_ct_CXX" && break
4791 done
4793 if test "x$ac_ct_CXX" = x; then
4794 CXX="g++"
4795 else
4796 case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802 CXX=$ac_ct_CXX
4808 # Provide some information about the compiler.
4809 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4810 set X $ac_compile
4811 ac_compiler=$2
4812 for ac_option in --version -v -V -qversion; do
4813 { { ac_try="$ac_compiler $ac_option >&5"
4814 case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817 esac
4818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4819 $as_echo "$ac_try_echo"; } >&5
4820 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4821 ac_status=$?
4822 if test -s conftest.err; then
4823 sed '10a\
4824 ... rest of stderr output deleted ...
4825 10q' conftest.err >conftest.er1
4826 cat conftest.er1 >&5
4827 rm -f conftest.er1 conftest.err
4829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4830 test $ac_status = 0; }
4831 done
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4834 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4835 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4837 else
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4842 main ()
4844 #ifndef __GNUC__
4845 choke me
4846 #endif
4849 return 0;
4851 _ACEOF
4852 if ac_fn_cxx_try_compile "$LINENO"; then :
4853 ac_compiler_gnu=yes
4854 else
4855 ac_compiler_gnu=no
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4862 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4863 if test $ac_compiler_gnu = yes; then
4864 GXX=yes
4865 else
4866 GXX=
4868 ac_test_CXXFLAGS=${CXXFLAGS+set}
4869 ac_save_CXXFLAGS=$CXXFLAGS
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4871 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4872 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4876 ac_cxx_werror_flag=yes
4877 ac_cv_prog_cxx_g=no
4878 CXXFLAGS="-g"
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 main ()
4887 return 0;
4889 _ACEOF
4890 if ac_fn_cxx_try_compile "$LINENO"; then :
4891 ac_cv_prog_cxx_g=yes
4892 else
4893 CXXFLAGS=""
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4898 main ()
4902 return 0;
4904 _ACEOF
4905 if ac_fn_cxx_try_compile "$LINENO"; then :
4907 else
4908 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4909 CXXFLAGS="-g"
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4914 main ()
4918 return 0;
4920 _ACEOF
4921 if ac_fn_cxx_try_compile "$LINENO"; then :
4922 ac_cv_prog_cxx_g=yes
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4932 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4933 if test "$ac_test_CXXFLAGS" = set; then
4934 CXXFLAGS=$ac_save_CXXFLAGS
4935 elif test $ac_cv_prog_cxx_g = yes; then
4936 if test "$GXX" = yes; then
4937 CXXFLAGS="-g -O2"
4938 else
4939 CXXFLAGS="-g"
4941 else
4942 if test "$GXX" = yes; then
4943 CXXFLAGS="-O2"
4944 else
4945 CXXFLAGS=
4948 ac_ext=c
4949 ac_cpp='$CPP $CPPFLAGS'
4950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4955 # We must set the default linker to the linker used by gcc for the correct
4956 # operation of libtool. If LD is not defined and we are using gcc, try to
4957 # set the LD default to the ld used by gcc.
4958 if test -z "$LD"; then
4959 if test "$GCC" = yes; then
4960 case $build in
4961 *-*-mingw*)
4962 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4964 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4965 esac
4966 case $gcc_prog_ld in
4967 # Accept absolute paths.
4968 [\\/]* | [A-Za-z]:[\\/]*)
4969 LD="$gcc_prog_ld" ;;
4970 esac
4974 # Check whether -static-libstdc++ -static-libgcc is supported.
4975 have_static_libs=no
4976 if test "$GCC" = yes; then
4977 saved_LDFLAGS="$LDFLAGS"
4979 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4981 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4982 ac_ext=cpp
4983 ac_cpp='$CXXCPP $CPPFLAGS'
4984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4992 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4993 #error -static-libstdc++ not implemented
4994 #endif
4995 int main() {}
4996 _ACEOF
4997 if ac_fn_cxx_try_link "$LINENO"; then :
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999 $as_echo "yes" >&6; }; have_static_libs=yes
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5004 rm -f core conftest.err conftest.$ac_objext \
5005 conftest$ac_exeext conftest.$ac_ext
5006 ac_ext=c
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013 LDFLAGS="$saved_LDFLAGS"
5019 if test -n "$ac_tool_prefix"; then
5020 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5021 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5026 else
5027 if test -n "$GNATBIND"; then
5028 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5041 done
5042 done
5043 IFS=$as_save_IFS
5047 GNATBIND=$ac_cv_prog_GNATBIND
5048 if test -n "$GNATBIND"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5050 $as_echo "$GNATBIND" >&6; }
5051 else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5058 if test -z "$ac_cv_prog_GNATBIND"; then
5059 ac_ct_GNATBIND=$GNATBIND
5060 # Extract the first word of "gnatbind", so it can be a program name with args.
5061 set dummy gnatbind; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$ac_ct_GNATBIND"; then
5068 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5088 if test -n "$ac_ct_GNATBIND"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5090 $as_echo "$ac_ct_GNATBIND" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5096 if test "x$ac_ct_GNATBIND" = x; then
5097 GNATBIND="no"
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103 ac_tool_warned=yes ;;
5104 esac
5105 GNATBIND=$ac_ct_GNATBIND
5107 else
5108 GNATBIND="$ac_cv_prog_GNATBIND"
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$GNATMAKE"; then
5120 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5133 done
5134 done
5135 IFS=$as_save_IFS
5139 GNATMAKE=$ac_cv_prog_GNATMAKE
5140 if test -n "$GNATMAKE"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5142 $as_echo "$GNATMAKE" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5150 if test -z "$ac_cv_prog_GNATMAKE"; then
5151 ac_ct_GNATMAKE=$GNATMAKE
5152 # Extract the first word of "gnatmake", so it can be a program name with args.
5153 set dummy gnatmake; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -n "$ac_ct_GNATMAKE"; then
5160 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5161 else
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5173 done
5174 done
5175 IFS=$as_save_IFS
5179 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5180 if test -n "$ac_ct_GNATMAKE"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5182 $as_echo "$ac_ct_GNATMAKE" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5188 if test "x$ac_ct_GNATMAKE" = x; then
5189 GNATMAKE="no"
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 GNATMAKE=$ac_ct_GNATMAKE
5199 else
5200 GNATMAKE="$ac_cv_prog_GNATMAKE"
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5204 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5205 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 cat >conftest.adb <<EOF
5209 procedure conftest is begin null; end conftest;
5211 acx_cv_cc_gcc_supports_ada=no
5212 # There is a bug in old released versions of GCC which causes the
5213 # driver to exit successfully when the appropriate language module
5214 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5215 # Therefore we must check for the error message as well as an
5216 # unsuccessful exit.
5217 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5218 # given a .adb file, but produce no object file. So we must check
5219 # if an object file was really produced to guard against this.
5220 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5221 if test x"$errors" = x && test -f conftest.$ac_objext; then
5222 acx_cv_cc_gcc_supports_ada=yes
5224 rm -f conftest.*
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5227 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5229 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5230 have_gnat=yes
5231 else
5232 have_gnat=no
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5236 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5237 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 echo abfoo >t1
5241 echo cdfoo >t2
5242 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5243 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5244 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5246 else
5247 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5250 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5251 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5253 else
5254 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5257 rm t1 t2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5261 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5262 do_compare="$gcc_cv_prog_cmp_skip"
5266 # Check whether --enable-bootstrap was given.
5267 if test "${enable_bootstrap+set}" = set; then :
5268 enableval=$enable_bootstrap;
5269 else
5270 enable_bootstrap=default
5274 # Issue errors and warnings for invalid/strange bootstrap combinations.
5275 if test -r $srcdir/gcc/configure; then
5276 have_compiler=yes
5277 else
5278 have_compiler=no
5281 case "$have_compiler:$host:$target:$enable_bootstrap" in
5282 *:*:*:no) ;;
5284 # Default behavior. Enable bootstrap if we have a compiler
5285 # and we are in a native configuration.
5286 yes:$build:$build:default)
5287 enable_bootstrap=yes ;;
5289 *:*:*:default)
5290 enable_bootstrap=no ;;
5292 # We have a compiler and we are in a native configuration, bootstrap is ok
5293 yes:$build:$build:yes)
5296 # Other configurations, but we have a compiler. Assume the user knows
5297 # what he's doing.
5298 yes:*:*:yes)
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5300 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5303 # No compiler: if they passed --enable-bootstrap explicitly, fail
5304 no:*:*:yes)
5305 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5307 # Fail if wrong command line
5309 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5311 esac
5313 # Used for setting $lt_cv_objdir
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5315 $as_echo_n "checking for objdir... " >&6; }
5316 if test "${lt_cv_objdir+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 rm -f .libs 2>/dev/null
5320 mkdir .libs 2>/dev/null
5321 if test -d .libs; then
5322 lt_cv_objdir=.libs
5323 else
5324 # MS-DOS does not allow filenames that begin with a dot.
5325 lt_cv_objdir=_libs
5327 rmdir .libs 2>/dev/null
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5330 $as_echo "$lt_cv_objdir" >&6; }
5331 objdir=$lt_cv_objdir
5337 cat >>confdefs.h <<_ACEOF
5338 #define LT_OBJDIR "$lt_cv_objdir/"
5339 _ACEOF
5343 # Check for GMP, MPFR and MPC
5344 gmplibs="-lmpc -lmpfr -lgmp"
5345 gmpinc=
5346 have_gmp=no
5348 # Specify a location for mpc
5349 # check for this first so it ends up on the link line before mpfr.
5351 # Check whether --with-mpc was given.
5352 if test "${with_mpc+set}" = set; then :
5353 withval=$with_mpc;
5357 # Check whether --with-mpc-include was given.
5358 if test "${with_mpc_include+set}" = set; then :
5359 withval=$with_mpc_include;
5363 # Check whether --with-mpc-lib was given.
5364 if test "${with_mpc_lib+set}" = set; then :
5365 withval=$with_mpc_lib;
5369 if test "x$with_mpc" != x; then
5370 gmplibs="-L$with_mpc/lib $gmplibs"
5371 gmpinc="-I$with_mpc/include $gmpinc"
5373 if test "x$with_mpc_include" != x; then
5374 gmpinc="-I$with_mpc_include $gmpinc"
5376 if test "x$with_mpc_lib" != x; then
5377 gmplibs="-L$with_mpc_lib $gmplibs"
5379 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5380 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5381 gmpinc='-I$$s/mpc/src '"$gmpinc"
5382 # Do not test the mpc version. Assume that it is sufficient, since
5383 # it is in the source tree, and the library has not been built yet
5384 # but it would be included on the link line in the version check below
5385 # hence making the test fail.
5386 have_gmp=yes
5389 # Specify a location for mpfr
5390 # check for this first so it ends up on the link line before gmp.
5392 # Check whether --with-mpfr-dir was given.
5393 if test "${with_mpfr_dir+set}" = set; then :
5394 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5395 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5400 # Check whether --with-mpfr was given.
5401 if test "${with_mpfr+set}" = set; then :
5402 withval=$with_mpfr;
5406 # Check whether --with-mpfr-include was given.
5407 if test "${with_mpfr_include+set}" = set; then :
5408 withval=$with_mpfr_include;
5412 # Check whether --with-mpfr-lib was given.
5413 if test "${with_mpfr_lib+set}" = set; then :
5414 withval=$with_mpfr_lib;
5418 if test "x$with_mpfr" != x; then
5419 gmplibs="-L$with_mpfr/lib $gmplibs"
5420 gmpinc="-I$with_mpfr/include $gmpinc"
5422 if test "x$with_mpfr_include" != x; then
5423 gmpinc="-I$with_mpfr_include $gmpinc"
5425 if test "x$with_mpfr_lib" != x; then
5426 gmplibs="-L$with_mpfr_lib $gmplibs"
5428 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5429 # MPFR v3.1.0 moved the sources into a src sub-directory.
5430 if test -d ${srcdir}/mpfr/src; then
5431 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5432 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5433 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5434 else
5435 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5436 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5437 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5439 # Do not test the mpfr version. Assume that it is sufficient, since
5440 # it is in the source tree, and the library has not been built yet
5441 # but it would be included on the link line in the version check below
5442 # hence making the test fail.
5443 have_gmp=yes
5446 # Specify a location for gmp
5448 # Check whether --with-gmp-dir was given.
5449 if test "${with_gmp_dir+set}" = set; then :
5450 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5451 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5456 # Check whether --with-gmp was given.
5457 if test "${with_gmp+set}" = set; then :
5458 withval=$with_gmp;
5462 # Check whether --with-gmp-include was given.
5463 if test "${with_gmp_include+set}" = set; then :
5464 withval=$with_gmp_include;
5468 # Check whether --with-gmp-lib was given.
5469 if test "${with_gmp_lib+set}" = set; then :
5470 withval=$with_gmp_lib;
5475 if test "x$with_gmp" != x; then
5476 gmplibs="-L$with_gmp/lib $gmplibs"
5477 gmpinc="-I$with_gmp/include $gmpinc"
5479 if test "x$with_gmp_include" != x; then
5480 gmpinc="-I$with_gmp_include $gmpinc"
5482 if test "x$with_gmp_lib" != x; then
5483 gmplibs="-L$with_gmp_lib $gmplibs"
5485 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5486 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5487 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5488 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5489 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5490 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5491 # Do not test the gmp version. Assume that it is sufficient, since
5492 # it is in the source tree, and the library has not been built yet
5493 # but it would be included on the link line in the version check below
5494 # hence making the test fail.
5495 have_gmp=yes
5498 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5499 have_gmp=yes
5500 saved_CFLAGS="$CFLAGS"
5501 CFLAGS="$CFLAGS $gmpinc"
5502 # Check for the recommended and required versions of GMP.
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5504 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 #include "gmp.h"
5510 main ()
5513 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5514 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5515 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5516 choke me
5517 #endif
5520 return 0;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #include <gmp.h>
5528 main ()
5531 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5532 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5533 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5534 choke me
5535 #endif
5538 return 0;
5540 _ACEOF
5541 if ac_fn_c_try_compile "$LINENO"; then :
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543 $as_echo "yes" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5546 $as_echo "buggy but acceptable" >&6; }
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }; have_gmp=no
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5555 # If we have GMP, check the MPFR version.
5556 if test x"$have_gmp" = xyes; then
5557 # Check for the recommended and required versions of MPFR.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5559 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #include <gmp.h>
5563 #include <mpfr.h>
5565 main ()
5568 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5569 choke me
5570 #endif
5573 return 0;
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 #include <gmp.h>
5580 #include <mpfr.h>
5582 main ()
5585 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5586 choke me
5587 #endif
5590 return 0;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5595 $as_echo "yes" >&6; }
5596 else
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5598 $as_echo "buggy but acceptable" >&6; }
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }; have_gmp=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 # Check for the MPC header version.
5609 if test x"$have_gmp" = xyes ; then
5610 # Check for the recommended and required versions of MPC.
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5612 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <mpc.h>
5617 main ()
5620 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5621 choke me
5622 #endif
5625 return 0;
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5631 #include <mpc.h>
5633 main ()
5636 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5637 choke me
5638 #endif
5641 return 0;
5643 _ACEOF
5644 if ac_fn_c_try_compile "$LINENO"; then :
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646 $as_echo "yes" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5649 $as_echo "buggy but acceptable" >&6; }
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }; have_gmp=no
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 # Now check the MPFR library.
5660 if test x"$have_gmp" = xyes; then
5661 saved_LIBS="$LIBS"
5662 LIBS="$LIBS $gmplibs"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5664 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <mpc.h>
5669 main ()
5672 mpfr_t n;
5673 mpfr_t x;
5674 mpc_t c;
5675 int t;
5676 mpfr_init (n);
5677 mpfr_init (x);
5678 mpfr_atan2 (n, n, x, GMP_RNDN);
5679 mpfr_erfc (n, x, GMP_RNDN);
5680 mpfr_subnormalize (x, t, GMP_RNDN);
5681 mpfr_clear(n);
5682 mpfr_clear(x);
5683 mpc_init2 (c, 53);
5684 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5685 mpc_cosh (c, c, MPC_RNDNN);
5686 mpc_pow (c, c, c, MPC_RNDNN);
5687 mpc_acosh (c, c, MPC_RNDNN);
5688 mpc_clear (c);
5691 return 0;
5693 _ACEOF
5694 if ac_fn_c_try_link "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }; have_gmp=no
5701 rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
5703 LIBS="$saved_LIBS"
5706 CFLAGS="$saved_CFLAGS"
5708 # The library versions listed in the error message below should match
5709 # the HARD-minimums enforced above.
5710 if test x$have_gmp != xyes; then
5711 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5712 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5713 their locations. Source code for these libraries can be found at
5714 their respective hosting sites as well as at
5715 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5716 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5717 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5718 make sure that you have installed both the libraries and the header
5719 files. They may be located in separate packages." "$LINENO" 5
5723 # Flags needed for both GMP, MPFR and/or MPC.
5731 # Allow host libstdc++ to be specified for static linking with PPL.
5733 # Check whether --with-host-libstdcxx was given.
5734 if test "${with_host_libstdcxx+set}" = set; then :
5735 withval=$with_host_libstdcxx;
5739 case $with_host_libstdcxx in
5740 no|yes)
5741 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5743 esac
5745 # Libraries to use for stage1 or when not bootstrapping.
5747 # Check whether --with-stage1-libs was given.
5748 if test "${with_stage1_libs+set}" = set; then :
5749 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5750 stage1_libs=
5751 else
5752 stage1_libs=$withval
5754 else
5755 stage1_libs=$with_host_libstdcxx
5760 # Linker flags to use for stage1 or when not bootstrapping.
5762 # Check whether --with-stage1-ldflags was given.
5763 if test "${with_stage1_ldflags+set}" = set; then :
5764 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5765 stage1_ldflags=
5766 else
5767 stage1_ldflags=$withval
5769 else
5770 stage1_ldflags=
5771 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5772 # if supported. But if the user explicitly specified the libraries to use,
5773 # trust that they are doing what they want.
5774 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5775 stage1_ldflags="-static-libstdc++ -static-libgcc"
5781 # Libraries to use for stage2 and later builds. This defaults to the
5782 # argument passed to --with-host-libstdcxx.
5784 # Check whether --with-boot-libs was given.
5785 if test "${with_boot_libs+set}" = set; then :
5786 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5787 poststage1_libs=
5788 else
5789 poststage1_libs=$withval
5791 else
5792 poststage1_libs=$with_host_libstdcxx
5797 # Linker flags to use for stage2 and later builds.
5799 # Check whether --with-boot-ldflags was given.
5800 if test "${with_boot_ldflags+set}" = set; then :
5801 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5802 poststage1_ldflags=
5803 else
5804 poststage1_ldflags=$withval
5806 else
5807 poststage1_ldflags=
5808 # In stages 2 and 3, default to linking libstdc++ and libgcc
5809 # statically. But if the user explicitly specified the libraries to
5810 # use, trust that they are doing what they want.
5811 if test "$poststage1_libs" = ""; then
5812 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5818 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5819 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5820 # config/isl.m4
5823 # Check whether --with-cloog was given.
5824 if test "${with_cloog+set}" = set; then :
5825 withval=$with_cloog;
5829 # Check whether --with-isl was given.
5830 if test "${with_isl+set}" = set; then :
5831 withval=$with_isl;
5835 # Treat either --without-cloog or --without-isl as a request to disable
5836 # GRAPHITE support and skip all following checks.
5837 if test "x$with_isl" != "xno" &&
5838 test "x$with_cloog" != "xno"; then
5839 # Check for ISL
5842 # Check whether --with-isl-include was given.
5843 if test "${with_isl_include+set}" = set; then :
5844 withval=$with_isl_include;
5848 # Check whether --with-isl-lib was given.
5849 if test "${with_isl_lib+set}" = set; then :
5850 withval=$with_isl_lib;
5854 # Check whether --enable-isl-version-check was given.
5855 if test "${enable_isl_version_check+set}" = set; then :
5856 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5857 else
5858 ENABLE_ISL_CHECK=yes
5862 # Initialize isllibs and islinc.
5863 case $with_isl in
5865 isllibs=
5866 islinc=
5868 "" | yes)
5871 isllibs="-L$with_isl/lib"
5872 islinc="-I$with_isl/include"
5874 esac
5875 if test "x${with_isl_include}" != x ; then
5876 islinc="-I$with_isl_include"
5878 if test "x${with_isl_lib}" != x; then
5879 isllibs="-L$with_isl_lib"
5881 if test "x${islinc}" = x && test "x${isllibs}" = x \
5882 && test -d ${srcdir}/isl; then
5883 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5884 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5885 ENABLE_ISL_CHECK=no
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5887 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5892 if test "${ENABLE_ISL_CHECK}" = yes ; then
5893 _isl_saved_CFLAGS=$CFLAGS
5894 _isl_saved_LDFLAGS=$LDFLAGS
5895 _isl_saved_LIBS=$LIBS
5897 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5898 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5899 LIBS="${_isl_saved_LIBS} -lisl"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5902 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5903 if test "$cross_compiling" = yes; then :
5904 gcc_cv_isl=yes
5905 else
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5908 #include <isl/version.h>
5909 #include <string.h>
5911 main ()
5913 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5914 return 1;
5917 return 0;
5919 _ACEOF
5920 if ac_fn_c_try_run "$LINENO"; then :
5921 gcc_cv_isl=yes
5922 else
5923 gcc_cv_isl=no
5925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5926 conftest.$ac_objext conftest.beam conftest.$ac_ext
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5930 $as_echo "$gcc_cv_isl" >&6; }
5932 CFLAGS=$_isl_saved_CFLAGS
5933 LDFLAGS=$_isl_saved_LDFLAGS
5934 LIBS=$_isl_saved_LIBS
5938 if test "${gcc_cv_isl}" = no ; then
5940 if test "${ENABLE_ISL_CHECK}" = yes ; then
5941 _isl_saved_CFLAGS=$CFLAGS
5942 _isl_saved_LDFLAGS=$LDFLAGS
5943 _isl_saved_LIBS=$LIBS
5945 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5946 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5947 LIBS="${_isl_saved_LIBS} -lisl"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5950 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5951 if test "$cross_compiling" = yes; then :
5952 gcc_cv_isl=yes
5953 else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 #include <isl/version.h>
5957 #include <string.h>
5959 main ()
5961 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5962 return 1;
5965 return 0;
5967 _ACEOF
5968 if ac_fn_c_try_run "$LINENO"; then :
5969 gcc_cv_isl=yes
5970 else
5971 gcc_cv_isl=no
5973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5974 conftest.$ac_objext conftest.beam conftest.$ac_ext
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5978 $as_echo "$gcc_cv_isl" >&6; }
5980 CFLAGS=$_isl_saved_CFLAGS
5981 LDFLAGS=$_isl_saved_LDFLAGS
5982 LIBS=$_isl_saved_LIBS
5986 if test "${gcc_cv_isl}" = no ; then
5988 if test "${ENABLE_ISL_CHECK}" = yes ; then
5989 _isl_saved_CFLAGS=$CFLAGS
5990 _isl_saved_LDFLAGS=$LDFLAGS
5991 _isl_saved_LIBS=$LIBS
5993 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5994 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5995 LIBS="${_isl_saved_LIBS} -lisl"
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5998 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
5999 if test "$cross_compiling" = yes; then :
6000 gcc_cv_isl=yes
6001 else
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 #include <isl/version.h>
6005 #include <string.h>
6007 main ()
6009 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6010 return 1;
6013 return 0;
6015 _ACEOF
6016 if ac_fn_c_try_run "$LINENO"; then :
6017 gcc_cv_isl=yes
6018 else
6019 gcc_cv_isl=no
6021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6022 conftest.$ac_objext conftest.beam conftest.$ac_ext
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6026 $as_echo "$gcc_cv_isl" >&6; }
6028 CFLAGS=$_isl_saved_CFLAGS
6029 LDFLAGS=$_isl_saved_LDFLAGS
6030 LIBS=$_isl_saved_LIBS
6040 if test "x${with_isl}" = xno; then
6041 graphite_requested=no
6042 elif test "x${with_isl}" != x \
6043 || test "x${with_isl_include}" != x \
6044 || test "x${with_isl_lib}" != x ; then
6045 graphite_requested=yes
6046 else
6047 graphite_requested=no
6052 if test "${gcc_cv_isl}" = no ; then
6053 isllibs=
6054 islinc=
6057 if test "${graphite_requested}" = yes \
6058 && test "x${isllibs}" = x \
6059 && test "x${islinc}" = x ; then
6061 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6066 if test "x$gcc_cv_isl" != "xno"; then
6067 # Check for CLOOG
6070 # Check whether --with-cloog-include was given.
6071 if test "${with_cloog_include+set}" = set; then :
6072 withval=$with_cloog_include;
6076 # Check whether --with-cloog-lib was given.
6077 if test "${with_cloog_lib+set}" = set; then :
6078 withval=$with_cloog_lib;
6082 # Check whether --enable-cloog-version-check was given.
6083 if test "${enable_cloog_version_check+set}" = set; then :
6084 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6085 else
6086 ENABLE_CLOOG_CHECK=yes
6090 # Initialize clooglibs and clooginc.
6091 case $with_cloog in
6093 clooglibs=
6094 clooginc=
6096 "" | yes)
6099 clooglibs="-L$with_cloog/lib"
6100 clooginc="-I$with_cloog/include"
6102 esac
6103 if test "x${with_cloog_include}" != x ; then
6104 clooginc="-I$with_cloog_include"
6106 if test "x${with_cloog_lib}" != x; then
6107 clooglibs="-L$with_cloog_lib"
6109 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6110 && test -d ${srcdir}/cloog; then
6111 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6112 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6113 ENABLE_CLOOG_CHECK=no
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6115 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6118 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6119 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6125 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6126 _cloog_saved_CFLAGS=$CFLAGS
6127 _cloog_saved_LDFLAGS=$LDFLAGS
6129 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6130 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6133 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 #include "cloog/version.h"
6138 main ()
6140 #if CLOOG_VERSION_MAJOR != 0 \
6141 || CLOOG_VERSION_MINOR != 17 \
6142 || CLOOG_VERSION_REVISION < 0
6143 choke me
6144 #endif
6146 return 0;
6148 _ACEOF
6149 if ac_fn_c_try_compile "$LINENO"; then :
6150 gcc_cv_cloog=yes
6151 else
6152 gcc_cv_cloog=no
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6156 $as_echo "$gcc_cv_cloog" >&6; }
6158 CFLAGS=$_cloog_saved_CFLAGS
6159 LDFLAGS=$_cloog_saved_LDFLAGS
6163 if test "${gcc_cv_cloog}" = no ; then
6167 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6168 _cloog_saved_CFLAGS=$CFLAGS
6169 _cloog_saved_LDFLAGS=$LDFLAGS
6171 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6172 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6175 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 #include "cloog/version.h"
6180 main ()
6182 #if CLOOG_VERSION_MAJOR != 0 \
6183 || CLOOG_VERSION_MINOR != 18 \
6184 || CLOOG_VERSION_REVISION < 0
6185 choke me
6186 #endif
6188 return 0;
6190 _ACEOF
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192 gcc_cv_cloog=yes
6193 else
6194 gcc_cv_cloog=no
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6198 $as_echo "$gcc_cv_cloog" >&6; }
6200 CFLAGS=$_cloog_saved_CFLAGS
6201 LDFLAGS=$_cloog_saved_LDFLAGS
6211 if test "x${with_cloog}" = xno; then
6212 graphite_requested=no
6213 elif test "x${with_cloog}" != x \
6214 || test "x${with_cloog_include}" != x \
6215 || test "x${with_cloog_lib}" != x ; then
6216 graphite_requested=yes
6217 else
6218 graphite_requested=no
6223 if test "${gcc_cv_cloog}" = no ; then
6224 clooglibs=
6225 clooginc=
6228 if test "${graphite_requested}" = yes \
6229 && test "x${clooglibs}" = x \
6230 && test "x${clooginc}" = x ; then
6232 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6239 # If either the ISL or the CLooG check failed, disable builds of in-tree
6240 # variants of both
6241 if test "x$with_isl" = xno ||
6242 test "x$with_cloog" = xno ||
6243 test "x$gcc_cv_cloog" = xno ||
6244 test "x$gcc_cv_isl" = xno; then
6245 noconfigdirs="$noconfigdirs cloog isl"
6246 islinc=
6247 clooginc=
6248 clooglibs=
6256 # Check for LTO support.
6257 # Check whether --enable-lto was given.
6258 if test "${enable_lto+set}" = set; then :
6259 enableval=$enable_lto; enable_lto=$enableval
6260 else
6261 enable_lto=yes; default_enable_lto=yes
6268 target_elf=no
6269 case $target in
6270 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6271 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6272 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6273 target_elf=no
6276 target_elf=yes
6278 esac
6280 if test $target_elf = yes; then :
6281 # ELF platforms build the lto-plugin always.
6282 build_lto_plugin=yes
6284 else
6285 if test x"$default_enable_lto" = x"yes" ; then
6286 case $target in
6287 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6288 # On other non-ELF platforms, LTO has yet to be validated.
6289 *) enable_lto=no ;;
6290 esac
6291 else
6292 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6293 # It would also be nice to check the binutils support, but we don't
6294 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6295 # warn during gcc/ subconfigure; unless you're bootstrapping with
6296 # -flto it won't be needed until after installation anyway.
6297 case $target in
6298 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6299 *) if test x"$enable_lto" = x"yes"; then
6300 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6303 esac
6305 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6306 # Build it unless LTO was explicitly disabled.
6307 case $target in
6308 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6309 *) ;;
6310 esac
6316 # By default, C and C++ are the only stage 1 languages.
6317 stage1_languages=,c,
6319 # Target libraries that we bootstrap.
6320 bootstrap_target_libs=,target-libgcc,
6322 # Figure out what language subdirectories are present.
6323 # Look if the user specified --enable-languages="..."; if not, use
6324 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6325 # go away some day.
6326 # NB: embedded tabs in this IF block -- do not untabify
6327 if test -d ${srcdir}/gcc; then
6328 if test x"${enable_languages+set}" != xset; then
6329 if test x"${LANGUAGES+set}" = xset; then
6330 enable_languages="${LANGUAGES}"
6331 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6332 else
6333 enable_languages=all
6335 else
6336 if test x"${enable_languages}" = x ||
6337 test x"${enable_languages}" = xyes;
6338 then
6339 echo configure.in: --enable-languages needs at least one language argument 1>&2
6340 exit 1
6343 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6345 # 'f95' is the old name for the 'fortran' language. We issue a warning
6346 # and make the substitution.
6347 case ,${enable_languages}, in
6348 *,f95,*)
6349 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6350 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6352 esac
6354 # If bootstrapping, C++ must be enabled.
6355 case ",$enable_languages,:$enable_bootstrap" in
6356 *,c++,*:*) ;;
6357 *:yes)
6358 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6359 enable_languages="${enable_languages},c++"
6360 else
6361 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6364 esac
6366 # First scan to see if an enabled language requires some other language.
6367 # We assume that a given config-lang.in will list all the language
6368 # front ends it requires, even if some are required indirectly.
6369 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6370 case ${lang_frag} in
6371 ..) ;;
6372 # The odd quoting in the next line works around
6373 # an apparent bug in bash 1.12 on linux.
6374 ${srcdir}/gcc/[*]/config-lang.in) ;;
6376 # From the config-lang.in, get $language, $lang_requires, and
6377 # $lang_requires_boot_languages.
6378 language=
6379 lang_requires=
6380 lang_requires_boot_languages=
6381 . ${lang_frag}
6382 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6383 case ,${enable_languages}, in
6384 *,$other,*) ;;
6385 *,all,*) ;;
6386 *,$language,*)
6387 echo " \`$other' language required by \`$language'; enabling" 1>&2
6388 enable_languages="${enable_languages},${other}"
6390 esac
6391 done
6392 for other in ${lang_requires_boot_languages} ; do
6393 if test "$other" != "c"; then
6394 case ,${enable_stage1_languages}, in
6395 *,$other,*) ;;
6396 *,all,*) ;;
6398 case ,${enable_languages}, in
6399 *,$language,*)
6400 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6401 enable_stage1_languages="$enable_stage1_languages,${other}"
6403 esac
6405 esac
6407 done
6409 esac
6410 done
6412 new_enable_languages=,c,
6414 # If LTO is enabled, add the LTO front end.
6415 extra_host_libiberty_configure_flags=
6416 if test "$enable_lto" = "yes" ; then
6417 case ,${enable_languages}, in
6418 *,lto,*) ;;
6419 *) enable_languages="${enable_languages},lto" ;;
6420 esac
6421 if test "${build_lto_plugin}" = "yes" ; then
6422 configdirs="$configdirs lto-plugin"
6423 extra_host_libiberty_configure_flags=--enable-shared
6428 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6429 potential_languages=,c,
6431 enabled_target_libs=
6432 disabled_target_libs=
6434 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6435 case ${lang_frag} in
6436 ..) ;;
6437 # The odd quoting in the next line works around
6438 # an apparent bug in bash 1.12 on linux.
6439 ${srcdir}/gcc/[*]/config-lang.in) ;;
6441 # From the config-lang.in, get $language, $target_libs,
6442 # $lang_dirs, $boot_language, and $build_by_default
6443 language=
6444 target_libs=
6445 lang_dirs=
6446 subdir_requires=
6447 boot_language=no
6448 build_by_default=yes
6449 . ${lang_frag}
6450 if test x${language} = x; then
6451 echo "${lang_frag} doesn't set \$language." 1>&2
6452 exit 1
6455 if test "$language" = "c++"; then
6456 boot_language=yes
6459 add_this_lang=no
6460 case ,${enable_languages}, in
6461 *,${language},*)
6462 # Language was explicitly selected; include it
6463 # unless it is C, which is enabled by default.
6464 if test "$language" != "c"; then
6465 add_this_lang=yes
6468 *,all,*)
6469 # 'all' was selected, select it if it is a default language
6470 if test "$language" != "c"; then
6471 add_this_lang=${build_by_default}
6474 esac
6476 # Disable languages that need other directories if these aren't available.
6477 for i in $subdir_requires; do
6478 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6479 case ,${enable_languages}, in
6480 *,${language},*)
6481 # Specifically requested language; tell them.
6482 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6485 # Silently disable.
6486 add_this_lang=unsupported
6488 esac
6489 done
6491 # Disable Ada if no preexisting GNAT is available.
6492 case ,${enable_languages},:${language}:${have_gnat} in
6493 *,${language},*:ada:no)
6494 # Specifically requested language; tell them.
6495 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6497 *:ada:no)
6498 # Silently disable.
6499 add_this_lang=unsupported
6501 esac
6503 # Disable a language that is unsupported by the target.
6504 case " $unsupported_languages " in
6505 *" $language "*)
6506 add_this_lang=unsupported
6508 esac
6510 case $add_this_lang in
6511 unsupported)
6512 # Remove language-dependent dirs.
6513 disabled_target_libs="$disabled_target_libs $target_libs"
6514 noconfigdirs="$noconfigdirs $lang_dirs"
6517 # Remove language-dependent dirs; still show language as supported.
6518 disabled_target_libs="$disabled_target_libs $target_libs"
6519 noconfigdirs="$noconfigdirs $lang_dirs"
6520 potential_languages="${potential_languages}${language},"
6522 yes)
6523 new_enable_languages="${new_enable_languages}${language},"
6524 potential_languages="${potential_languages}${language},"
6525 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6526 enabled_target_libs="$enabled_target_libs $target_libs"
6527 case "${boot_language}:,$enable_stage1_languages," in
6528 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6529 # Add to (comma-separated) list of stage 1 languages.
6530 case ",$stage1_languages," in
6531 *,$language,* | ,yes, | ,all,) ;;
6532 *) stage1_languages="${stage1_languages}${language}," ;;
6533 esac
6534 # We need to bootstrap any supporting libraries.
6535 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6537 esac
6539 esac
6541 esac
6542 done
6544 # Add target libraries which are only needed for disabled languages
6545 # to noconfigdirs.
6546 if test -n "$disabled_target_libs"; then
6547 for dir in $disabled_target_libs; do
6548 case " $enabled_target_libs " in
6549 *" ${dir} "*) ;;
6550 *) noconfigdirs="$noconfigdirs $dir" ;;
6551 esac
6552 done
6555 # Check whether --enable-stage1-languages was given.
6556 if test "${enable_stage1_languages+set}" = set; then :
6557 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6558 ,no,|,,)
6559 # Set it to something that will have no effect in the loop below
6560 enable_stage1_languages=c ;;
6561 ,yes,)
6562 enable_stage1_languages=`echo $new_enable_languages | \
6563 sed -e "s/^,//" -e "s/,$//" ` ;;
6564 *,all,*)
6565 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6566 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6567 esac
6569 # Add "good" languages from enable_stage1_languages to stage1_languages,
6570 # while "bad" languages go in missing_languages. Leave no duplicates.
6571 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6572 case $potential_languages in
6573 *,$i,*)
6574 case $stage1_languages in
6575 *,$i,*) ;;
6576 *) stage1_languages="$stage1_languages$i," ;;
6577 esac ;;
6579 case $missing_languages in
6580 *,$i,*) ;;
6581 *) missing_languages="$missing_languages$i," ;;
6582 esac ;;
6583 esac
6584 done
6588 # Remove leading/trailing commas that were added for simplicity
6589 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6590 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6591 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6592 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6594 if test "x$missing_languages" != x; then
6595 as_fn_error "
6596 The following requested languages could not be built: ${missing_languages}
6597 Supported languages are: ${potential_languages}" "$LINENO" 5
6599 if test "x$new_enable_languages" != "x$enable_languages"; then
6600 echo The following languages will be built: ${new_enable_languages}
6601 enable_languages="$new_enable_languages"
6605 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6608 # Handle --disable-<component> generically.
6609 for dir in $configdirs $build_configdirs $target_configdirs ; do
6610 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6611 varname=`echo $dirname | sed -e s/+/_/g`
6612 if eval test x\${enable_${varname}} "=" xno ; then
6613 noconfigdirs="$noconfigdirs $dir"
6615 done
6617 # Check for Boehm's garbage collector
6618 # Check whether --enable-objc-gc was given.
6619 if test "${enable_objc_gc+set}" = set; then :
6620 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6621 *,objc,*:*:yes:*target-boehm-gc*)
6622 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6624 esac
6628 # Make sure we only build Boehm's garbage collector if required.
6629 case ,${enable_languages},:${enable_objc_gc} in
6630 *,objc,*:yes)
6631 # Keep target-boehm-gc if requested for Objective-C.
6634 # Otherwise remove target-boehm-gc depending on target-libjava.
6635 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6636 noconfigdirs="$noconfigdirs target-boehm-gc"
6639 esac
6641 # Disable libitm, libsanitizer, libvtv if we're not building C++
6642 case ,${enable_languages}, in
6643 *,c++,*) ;;
6645 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6647 esac
6649 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6650 # $build_configdirs and $target_configdirs.
6651 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6653 notsupp=""
6654 for dir in . $skipdirs $noconfigdirs ; do
6655 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6656 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6657 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6658 if test -r $srcdir/$dirname/configure ; then
6659 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6660 true
6661 else
6662 notsupp="$notsupp $dir"
6666 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6667 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6668 if test -r $srcdir/$dirname/configure ; then
6669 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6670 true
6671 else
6672 notsupp="$notsupp $dir"
6676 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6677 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6678 if test -r $srcdir/$dirname/configure ; then
6679 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6680 true
6681 else
6682 notsupp="$notsupp $dir"
6686 done
6688 # Quietly strip out all directories which aren't configurable in this tree.
6689 # This relies on all configurable subdirectories being autoconfiscated, which
6690 # is now the case.
6691 build_configdirs_all="$build_configdirs"
6692 build_configdirs=
6693 for i in ${build_configdirs_all} ; do
6694 j=`echo $i | sed -e s/build-//g`
6695 if test -f ${srcdir}/$j/configure ; then
6696 build_configdirs="${build_configdirs} $i"
6698 done
6700 configdirs_all="$configdirs"
6701 configdirs=
6702 for i in ${configdirs_all} ; do
6703 if test -f ${srcdir}/$i/configure ; then
6704 configdirs="${configdirs} $i"
6706 done
6708 target_configdirs_all="$target_configdirs"
6709 target_configdirs=
6710 for i in ${target_configdirs_all} ; do
6711 j=`echo $i | sed -e s/target-//g`
6712 if test -f ${srcdir}/$j/configure ; then
6713 target_configdirs="${target_configdirs} $i"
6715 done
6717 # Produce a warning message for the subdirs we can't configure.
6718 # This isn't especially interesting in the Cygnus tree, but in the individual
6719 # FSF releases, it's important to let people know when their machine isn't
6720 # supported by the one or two programs in a package.
6722 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6723 # If $appdirs is non-empty, at least one of those directories must still
6724 # be configured, or we error out. (E.g., if the gas release supports a
6725 # specified target in some subdirs but not the gas subdir, we shouldn't
6726 # pretend that all is well.)
6727 if test -n "$appdirs" ; then
6728 for dir in $appdirs ; do
6729 if test -r $dir/Makefile.in ; then
6730 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6731 appdirs=""
6732 break
6734 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6735 appdirs=""
6736 break
6739 done
6740 if test -n "$appdirs" ; then
6741 echo "*** This configuration is not supported by this package." 1>&2
6742 exit 1
6745 # Okay, some application will build, or we don't care to check. Still
6746 # notify of subdirs not getting built.
6747 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6748 echo " ${notsupp}" 1>&2
6749 echo " (Any other directories should still work fine.)" 1>&2
6752 case "$host" in
6753 *msdosdjgpp*)
6754 enable_gdbtk=no ;;
6755 esac
6757 # To find our prefix, in gcc_cv_tool_prefix.
6759 # The user is always right.
6760 if test "${PATH_SEPARATOR+set}" != set; then
6761 echo "#! /bin/sh" >conf$$.sh
6762 echo "exit 0" >>conf$$.sh
6763 chmod +x conf$$.sh
6764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6765 PATH_SEPARATOR=';'
6766 else
6767 PATH_SEPARATOR=:
6769 rm -f conf$$.sh
6774 if test "x$exec_prefix" = xNONE; then
6775 if test "x$prefix" = xNONE; then
6776 gcc_cv_tool_prefix=$ac_default_prefix
6777 else
6778 gcc_cv_tool_prefix=$prefix
6780 else
6781 gcc_cv_tool_prefix=$exec_prefix
6784 # If there is no compiler in the tree, use the PATH only. In any
6785 # case, if there is no compiler in the tree nobody should use
6786 # AS_FOR_TARGET and LD_FOR_TARGET.
6787 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6788 gcc_version=`cat $srcdir/gcc/BASE-VER`
6789 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6790 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6791 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6792 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6793 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6794 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6795 else
6796 gcc_cv_tool_dirs=
6799 if test x$build = x$target && test -n "$md_exec_prefix"; then
6800 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6805 copy_dirs=
6808 # Check whether --with-build-sysroot was given.
6809 if test "${with_build_sysroot+set}" = set; then :
6810 withval=$with_build_sysroot; if test x"$withval" != x ; then
6811 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6813 else
6814 SYSROOT_CFLAGS_FOR_TARGET=
6820 # Check whether --with-debug-prefix-map was given.
6821 if test "${with_debug_prefix_map+set}" = set; then :
6822 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6823 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6824 for debug_map in $withval; do
6825 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6826 done
6828 else
6829 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6834 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6835 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6836 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6837 # We want to ensure that TARGET libraries (which we know are built with
6838 # gcc) are built with "-O2 -g", so include those options when setting
6839 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6840 if test "x$CFLAGS_FOR_TARGET" = x; then
6841 CFLAGS_FOR_TARGET=$CFLAGS
6842 case " $CFLAGS " in
6843 *" -O2 "*) ;;
6844 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6845 esac
6846 case " $CFLAGS " in
6847 *" -g "* | *" -g3 "*) ;;
6848 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6849 esac
6853 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6854 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6855 case " $CXXFLAGS " in
6856 *" -O2 "*) ;;
6857 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6858 esac
6859 case " $CXXFLAGS " in
6860 *" -g "* | *" -g3 "*) ;;
6861 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6862 esac
6868 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6869 # the named directory are copied to $(tooldir)/sys-include.
6870 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6871 if test x${is_cross_compiler} = xno ; then
6872 echo 1>&2 '***' --with-headers is only supported when cross compiling
6873 exit 1
6875 if test x"${with_headers}" != xyes ; then
6876 x=${gcc_cv_tool_prefix}
6877 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6881 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6882 # the name directories are copied to $(tooldir)/lib. Multiple directories
6883 # are permitted.
6884 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6885 if test x${is_cross_compiler} = xno ; then
6886 echo 1>&2 '***' --with-libs is only supported when cross compiling
6887 exit 1
6889 if test x"${with_libs}" != xyes ; then
6890 # Copy the libraries in reverse order, so that files in the first named
6891 # library override files in subsequent libraries.
6892 x=${gcc_cv_tool_prefix}
6893 for l in ${with_libs}; do
6894 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6895 done
6899 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6901 # This is done by determining whether or not the appropriate directory
6902 # is available, and by checking whether or not specific configurations
6903 # have requested that this magic not happen.
6905 # The command line options always override the explicit settings in
6906 # configure.in, and the settings in configure.in override this magic.
6908 # If the default for a toolchain is to use GNU as and ld, and you don't
6909 # want to do that, then you should use the --without-gnu-as and
6910 # --without-gnu-ld options for the configure script. Similarly, if
6911 # the default is to use the included zlib and you don't want to do that,
6912 # you should use the --with-system-zlib option for the configure script.
6914 if test x${use_gnu_as} = x &&
6915 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6916 with_gnu_as=yes
6917 extra_host_args="$extra_host_args --with-gnu-as"
6920 if test x${use_gnu_ld} = x &&
6921 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6922 with_gnu_ld=yes
6923 extra_host_args="$extra_host_args --with-gnu-ld"
6926 if test x${use_included_zlib} = x &&
6927 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6929 else
6930 with_system_zlib=yes
6931 extra_host_args="$extra_host_args --with-system-zlib"
6934 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6935 # can detect this case.
6937 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6938 with_newlib=yes
6939 extra_host_args="$extra_host_args --with-newlib"
6942 # Handle ${copy_dirs}
6943 set fnord ${copy_dirs}
6944 shift
6945 while test $# != 0 ; do
6946 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6948 else
6949 echo Copying $1 to $2
6951 # Use the install script to create the directory and all required
6952 # parent directories.
6953 if test -d $2 ; then
6955 else
6956 echo >config.temp
6957 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6960 # Copy the directory, assuming we have tar.
6961 # FIXME: Should we use B in the second tar? Not all systems support it.
6962 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6964 # It is the responsibility of the user to correctly adjust all
6965 # symlinks. If somebody can figure out how to handle them correctly
6966 # here, feel free to add the code.
6968 echo $1 > $2/COPIED
6970 shift; shift
6971 done
6973 # Determine a target-dependent exec_prefix that the installed
6974 # gcc will search in. Keep this list sorted by triplet, with
6975 # the *-*-osname triplets last.
6976 md_exec_prefix=
6977 case "${target}" in
6978 i[34567]86-pc-msdosdjgpp*)
6979 md_exec_prefix=/dev/env/DJDIR/bin
6981 *-*-hpux* | \
6982 *-*-nto-qnx* | \
6983 *-*-solaris2*)
6984 md_exec_prefix=/usr/ccs/bin
6986 esac
6988 extra_arflags_for_target=
6989 extra_nmflags_for_target=
6990 extra_ranlibflags_for_target=
6991 target_makefile_frag=/dev/null
6992 case "${target}" in
6993 spu-*-*)
6994 target_makefile_frag="config/mt-spu"
6996 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6997 target_makefile_frag="config/mt-sde"
6999 mipsisa*-*-elfoabi*)
7000 target_makefile_frag="config/mt-mips-elfoabi"
7002 mips*-*-*linux* | mips*-*-gnu*)
7003 target_makefile_frag="config/mt-mips-gnu"
7005 nios2-*-elf*)
7006 target_makefile_frag="config/mt-nios2-elf"
7008 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7009 target_makefile_frag="config/mt-gnu"
7011 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7012 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7013 # commands to handle both 32-bit and 64-bit objects. These flags are
7014 # harmless if we're using GNU nm or ar.
7015 extra_arflags_for_target=" -X32_64"
7016 extra_nmflags_for_target=" -B -X32_64"
7018 esac
7020 alphaieee_frag=/dev/null
7021 case $target in
7022 alpha*-*-*)
7023 # This just makes sure to use the -mieee option to build target libs.
7024 # This should probably be set individually by each library.
7025 alphaieee_frag="config/mt-alphaieee"
7027 esac
7029 # If --enable-target-optspace always use -Os instead of -O2 to build
7030 # the target libraries, similarly if it is not specified, use -Os
7031 # on selected platforms.
7032 ospace_frag=/dev/null
7033 case "${enable_target_optspace}:${target}" in
7034 yes:*)
7035 ospace_frag="config/mt-ospace"
7037 :d30v-*)
7038 ospace_frag="config/mt-d30v"
7040 :m32r-* | :d10v-* | :fr30-*)
7041 ospace_frag="config/mt-ospace"
7043 no:* | :*)
7046 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7048 esac
7050 # Some systems (e.g., one of the i386-aix systems the gas testers are
7051 # using) don't handle "\$" correctly, so don't use it here.
7052 tooldir='${exec_prefix}'/${target_noncanonical}
7053 build_tooldir=${tooldir}
7055 # Create a .gdbinit file which runs the one in srcdir
7056 # and tells GDB to look there for source files.
7058 if test -r ${srcdir}/.gdbinit ; then
7059 case ${srcdir} in
7060 .) ;;
7061 *) cat > ./.gdbinit <<EOF
7062 # ${NO_EDIT}
7063 dir ${srcdir}
7064 dir .
7065 source ${srcdir}/.gdbinit
7068 esac
7071 # Make sure that the compiler is able to generate an executable. If it
7072 # can't, we are probably in trouble. We don't care whether we can run the
7073 # executable--we might be using a cross compiler--we only care whether it
7074 # can be created. At this point the main configure script has set CC.
7075 we_are_ok=no
7076 echo "int main () { return 0; }" > conftest.c
7077 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7078 if test $? = 0 ; then
7079 if test -s conftest || test -s conftest.exe ; then
7080 we_are_ok=yes
7083 case $we_are_ok in
7085 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7086 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7087 rm -f conftest*
7088 exit 1
7090 esac
7091 rm -f conftest*
7093 # Decide which environment variable is used to find dynamic libraries.
7094 case "${host}" in
7095 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7096 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7097 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7098 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7099 esac
7101 # On systems where the dynamic library environment variable is PATH,
7102 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7103 # built executables to PATH.
7104 if test "$RPATH_ENVVAR" = PATH; then
7105 GCC_SHLIB_SUBDIR=/shlib
7106 else
7107 GCC_SHLIB_SUBDIR=
7110 # Adjust the toplevel makefile according to whether bootstrap was selected.
7111 case $enable_bootstrap in
7112 yes)
7113 bootstrap_suffix=bootstrap
7114 BUILD_CONFIG=bootstrap-debug
7117 bootstrap_suffix=no-bootstrap
7118 BUILD_CONFIG=
7120 esac
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7123 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7126 # Check whether --with-build-config was given.
7127 if test "${with_build_config+set}" = set; then :
7128 withval=$with_build_config; case $with_build_config in
7129 yes) with_build_config= ;;
7130 no) with_build_config= BUILD_CONFIG= ;;
7131 esac
7135 if test "x${with_build_config}" != x; then
7136 BUILD_CONFIG=$with_build_config
7137 else
7138 case $BUILD_CONFIG in
7139 bootstrap-debug)
7140 if echo "int f (void) { return 0; }" > conftest.c &&
7141 ${CC} -c conftest.c &&
7142 mv conftest.o conftest.o.g0 &&
7143 ${CC} -c -g conftest.c &&
7144 mv conftest.o conftest.o.g &&
7145 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7147 else
7148 BUILD_CONFIG=
7150 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7152 esac
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7155 $as_echo "$BUILD_CONFIG" >&6; }
7158 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7160 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7161 # Check whether --enable-vtable-verify was given.
7162 if test "${enable_vtable_verify+set}" = set; then :
7163 enableval=$enable_vtable_verify; case "$enableval" in
7164 yes) enable_vtable_verify=yes ;;
7165 no) enable_vtable_verify=no ;;
7166 *) enable_vtable_verify=no;;
7167 esac
7168 else
7169 enable_vtable_verify=no
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7173 $as_echo "$enable_vtable_verify" >&6; }
7175 # Record target_configdirs and the configure arguments for target and
7176 # build configuration in Makefile.
7177 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7178 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7179 bootstrap_fixincludes=no
7181 # If we are building libgomp, bootstrap it.
7182 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7183 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7186 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7187 # or bootstrap-ubsan, bootstrap it.
7188 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7189 case "$BUILD_CONFIG" in
7190 *bootstrap-asan* | *bootstrap-ubsan* )
7191 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7192 bootstrap_fixincludes=yes
7194 esac
7197 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7198 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7199 test "$enable_vtable_verify" != no; then
7200 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7203 # Determine whether gdb needs tk/tcl or not.
7204 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7205 # and in that case we want gdb to be built without tk. Ugh!
7206 # In fact I believe gdb is the *only* package directly dependent on tk,
7207 # so we should be able to put the 'maybe's in unconditionally and
7208 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7209 # 100% sure that that's safe though.
7211 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7212 case "$enable_gdbtk" in
7214 GDB_TK="" ;;
7215 yes)
7216 GDB_TK="${gdb_tk}" ;;
7218 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7219 # distro. Eventually someone will fix this and move Insight, nee
7220 # gdbtk to a separate directory.
7221 if test -d ${srcdir}/gdb/gdbtk ; then
7222 GDB_TK="${gdb_tk}"
7223 else
7224 GDB_TK=""
7227 esac
7228 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7229 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7231 # Strip out unwanted targets.
7233 # While at that, we remove Makefiles if we were started for recursive
7234 # configuration, so that the top-level Makefile reconfigures them,
7235 # like we used to do when configure itself was recursive.
7237 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7238 # but now we're fixing up the Makefile ourselves with the additional
7239 # commands passed to AC_CONFIG_FILES. Use separate variables
7240 # extrasub-{build,host,target} not because there is any reason to split
7241 # the substitutions up that way, but only to remain below the limit of
7242 # 99 commands in a script, for HP-UX sed.
7243 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7245 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7246 yes:yes:*\ gold\ *:*,c++,*) ;;
7247 yes:yes:*\ gold\ *:*)
7248 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7250 esac
7252 extrasub_build=
7253 for module in ${build_configdirs} ; do
7254 if test -z "${no_recursion}" \
7255 && test -f ${build_subdir}/${module}/Makefile; then
7256 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7257 rm -f ${build_subdir}/${module}/Makefile
7259 extrasub_build="$extrasub_build
7260 /^@if build-$module\$/d
7261 /^@endif build-$module\$/d
7262 /^@if build-$module-$bootstrap_suffix\$/d
7263 /^@endif build-$module-$bootstrap_suffix\$/d"
7264 done
7265 extrasub_host=
7266 for module in ${configdirs} ; do
7267 if test -z "${no_recursion}"; then
7268 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7269 if test -f ${file}; then
7270 echo 1>&2 "*** removing ${file} to force reconfigure"
7271 rm -f ${file}
7273 done
7275 case ${module},${bootstrap_fixincludes} in
7276 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7277 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7278 esac
7279 extrasub_host="$extrasub_host
7280 /^@if $module\$/d
7281 /^@endif $module\$/d
7282 /^@if $module-$host_bootstrap_suffix\$/d
7283 /^@endif $module-$host_bootstrap_suffix\$/d"
7284 done
7285 extrasub_target=
7286 for module in ${target_configdirs} ; do
7287 if test -z "${no_recursion}" \
7288 && test -f ${target_subdir}/${module}/Makefile; then
7289 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7290 rm -f ${target_subdir}/${module}/Makefile
7293 # We only bootstrap target libraries listed in bootstrap_target_libs.
7294 case $bootstrap_target_libs in
7295 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7296 *) target_bootstrap_suffix=no-bootstrap ;;
7297 esac
7299 extrasub_target="$extrasub_target
7300 /^@if target-$module\$/d
7301 /^@endif target-$module\$/d
7302 /^@if target-$module-$target_bootstrap_suffix\$/d
7303 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7304 done
7306 # Do the final fixup along with target modules.
7307 extrasub_target="$extrasub_target
7308 /^@if /,/^@endif /d"
7310 # Create the serialization dependencies. This uses a temporary file.
7312 # Check whether --enable-serial-configure was given.
7313 if test "${enable_serial_configure+set}" = set; then :
7314 enableval=$enable_serial_configure;
7318 case ${enable_serial_configure} in
7319 yes)
7320 enable_serial_build_configure=yes
7321 enable_serial_host_configure=yes
7322 enable_serial_target_configure=yes
7324 esac
7326 # These force 'configure's to be done one at a time, to avoid problems
7327 # with contention over a shared config.cache.
7328 rm -f serdep.tmp
7329 echo '# serdep.tmp' > serdep.tmp
7330 olditem=
7331 test "x${enable_serial_build_configure}" = xyes &&
7332 for item in ${build_configdirs} ; do
7333 case ${olditem} in
7334 "") ;;
7335 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7336 esac
7337 olditem=${item}
7338 done
7339 olditem=
7340 test "x${enable_serial_host_configure}" = xyes &&
7341 for item in ${configdirs} ; do
7342 case ${olditem} in
7343 "") ;;
7344 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7345 esac
7346 olditem=${item}
7347 done
7348 olditem=
7349 test "x${enable_serial_target_configure}" = xyes &&
7350 for item in ${target_configdirs} ; do
7351 case ${olditem} in
7352 "") ;;
7353 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7354 esac
7355 olditem=${item}
7356 done
7357 serialization_dependencies=serdep.tmp
7360 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7361 # target, nonopt, and variable assignments. These are the ones we
7362 # might not want to pass down to subconfigures. The exception being
7363 # --cache-file=/dev/null, which is used to turn off the use of cache
7364 # files altogether, and which should be passed on to subconfigures.
7365 # Also strip program-prefix, program-suffix, and program-transform-name,
7366 # so that we can pass down a consistent program-transform-name.
7367 baseargs=
7368 tbaseargs=
7369 keep_next=no
7370 skip_next=no
7371 eval "set -- $ac_configure_args"
7372 for ac_arg
7374 if test X"$skip_next" = X"yes"; then
7375 skip_next=no
7376 continue
7378 if test X"$keep_next" = X"yes"; then
7379 case $ac_arg in
7380 *\'*)
7381 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7382 esac
7383 baseargs="$baseargs '$ac_arg'"
7384 tbaseargs="$tbaseargs '$ac_arg'"
7385 keep_next=no
7386 continue
7389 # Handle separated arguments. Based on the logic generated by
7390 # autoconf 2.59.
7391 case $ac_arg in
7392 *=* | --config-cache | -C | -disable-* | --disable-* \
7393 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7394 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7395 | -with-* | --with-* | -without-* | --without-* | --x)
7396 separate_arg=no
7399 separate_arg=yes
7402 separate_arg=no
7404 esac
7406 skip_targ=no
7407 case $ac_arg in
7409 --with-* | --without-*)
7410 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7412 case $libopt in
7413 *[-_]include)
7414 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7416 *[-_]lib)
7417 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7420 lib=$libopt
7422 esac
7425 case $lib in
7426 mpc | mpfr | gmp | cloog)
7427 # If we're processing --with-$lib, --with-$lib-include or
7428 # --with-$lib-lib, for one of the libs above, and target is
7429 # different from host, don't pass the current argument to any
7430 # target library's configure.
7431 if test x$is_cross_compiler = xyes; then
7432 skip_targ=yes
7435 esac
7437 esac
7439 case "$ac_arg" in
7440 --cache-file=/dev/null | \
7441 -cache-file=/dev/null )
7442 # Handled here to avoid the test to skip args below.
7443 baseargs="$baseargs '$ac_arg'"
7444 tbaseargs="$tbaseargs '$ac_arg'"
7445 # Assert: $separate_arg should always be no.
7446 keep_next=$separate_arg
7448 --no*)
7449 continue
7451 --c* | \
7452 --sr* | \
7453 --ho* | \
7454 --bu* | \
7455 --t* | \
7456 --program-* | \
7457 -cache_file* | \
7458 -srcdir* | \
7459 -host* | \
7460 -build* | \
7461 -target* | \
7462 -program-prefix* | \
7463 -program-suffix* | \
7464 -program-transform-name* )
7465 skip_next=$separate_arg
7466 continue
7469 # An option. Add it.
7470 case $ac_arg in
7471 *\'*)
7472 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7473 esac
7474 baseargs="$baseargs '$ac_arg'"
7475 if test X"$skip_targ" = Xno; then
7476 tbaseargs="$tbaseargs '$ac_arg'"
7478 keep_next=$separate_arg
7481 # Either a variable assignment, or a nonopt (triplet). Don't
7482 # pass it down; let the Makefile handle this.
7483 continue
7485 esac
7486 done
7487 # Remove the initial space we just introduced and, as these will be
7488 # expanded by make, quote '$'.
7489 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7491 # Add in --program-transform-name, after --program-prefix and
7492 # --program-suffix have been applied to it. Autoconf has already
7493 # doubled dollar signs and backslashes in program_transform_name; we want
7494 # the backslashes un-doubled, and then the entire thing wrapped in single
7495 # quotes, because this will be expanded first by make and then by the shell.
7496 # Also, because we want to override the logic in subdir configure scripts to
7497 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7498 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7499 ${program_transform_name}
7500 EOF_SED
7501 gcc_transform_name=`cat conftestsed.out`
7502 rm -f conftestsed.out
7503 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7504 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7505 if test "$silent" = yes; then
7506 baseargs="$baseargs --silent"
7507 tbaseargs="$tbaseargs --silent"
7509 baseargs="$baseargs --disable-option-checking"
7510 tbaseargs="$tbaseargs --disable-option-checking"
7512 # Record and document user additions to sub configure arguments.
7517 # For the build-side libraries, we just need to pretend we're native,
7518 # and not use the same cache file. Multilibs are neither needed nor
7519 # desired.
7520 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7522 # For host modules, accept cache file option, or specification as blank.
7523 case "${cache_file}" in
7524 "") # empty
7525 cache_file_option="" ;;
7526 /* | [A-Za-z]:[\\/]* ) # absolute path
7527 cache_file_option="--cache-file=${cache_file}" ;;
7528 *) # relative path
7529 cache_file_option="--cache-file=../${cache_file}" ;;
7530 esac
7532 # Host dirs don't like to share a cache file either, horribly enough.
7533 # This seems to be due to autoconf 2.5x stupidity.
7534 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7536 target_configargs="$target_configargs ${tbaseargs}"
7538 # Passing a --with-cross-host argument lets the target libraries know
7539 # whether they are being built with a cross-compiler or being built
7540 # native. However, it would be better to use other mechanisms to make the
7541 # sorts of decisions they want to make on this basis. Please consider
7542 # this option to be deprecated. FIXME.
7543 if test x${is_cross_compiler} = xyes ; then
7544 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7547 # Special user-friendly check for native x86_64-linux build, if
7548 # multilib is not explicitly enabled.
7549 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7550 x86_64-*linux*:yes:$build:$build:)
7551 # Make sure we have a developement environment that handles 32-bit
7552 dev64=no
7553 echo "int main () { return 0; }" > conftest.c
7554 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7555 if test $? = 0 ; then
7556 if test -s conftest || test -s conftest.exe ; then
7557 dev64=yes
7560 rm -f conftest*
7561 if test x${dev64} != xyes ; then
7562 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
7565 esac
7567 # Default to --enable-multilib.
7568 if test x${enable_multilib} = x ; then
7569 target_configargs="--enable-multilib ${target_configargs}"
7572 # Pass --with-newlib if appropriate. Note that target_configdirs has
7573 # changed from the earlier setting of with_newlib.
7574 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7575 target_configargs="--with-newlib ${target_configargs}"
7578 # Different target subdirs use different values of certain variables
7579 # (notably CXX). Worse, multilibs use *lots* of different values.
7580 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7581 # it doesn't automatically accept command-line overrides of them.
7582 # This means it's not safe for target subdirs to share a cache file,
7583 # which is disgusting, but there you have it. Hopefully this can be
7584 # fixed in future. It's still worthwhile to use a cache file for each
7585 # directory. I think.
7587 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7588 # We need to pass --target, as newer autoconf's requires consistency
7589 # for target_alias and gcc doesn't manage it consistently.
7590 target_configargs="--cache-file=./config.cache ${target_configargs}"
7592 FLAGS_FOR_TARGET=
7593 case " $target_configdirs " in
7594 *" newlib "*)
7595 case " $target_configargs " in
7596 *" --with-newlib "*)
7597 case "$target" in
7598 *-cygwin*)
7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7601 esac
7603 # If we're not building GCC, don't discard standard headers.
7604 if test -d ${srcdir}/gcc; then
7605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7607 if test "${build}" != "${host}"; then
7608 # On Canadian crosses, CC_FOR_TARGET will have already been set
7609 # by `configure', so we won't have an opportunity to add -Bgcc/
7610 # to it. This is right: we don't want to search that directory
7611 # for binaries, but we want the header files in there, so add
7612 # them explicitly.
7613 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7615 # Someone might think of using the pre-installed headers on
7616 # Canadian crosses, in case the installed compiler is not fully
7617 # compatible with the compiler being built. In this case, it
7618 # would be better to flag an error than risking having
7619 # incompatible object files being constructed. We can't
7620 # guarantee that an error will be flagged, but let's hope the
7621 # compiler will do it, when presented with incompatible header
7622 # files.
7626 case "${target}-${is_cross_compiler}" in
7627 i[3456789]86-*-linux*-no)
7628 # Here host == target, so we don't need to build gcc,
7629 # so we don't want to discard standard headers.
7630 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7633 # If we're building newlib, use its generic headers last, but search
7634 # for any libc-related directories first (so make it the last -B
7635 # switch).
7636 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7638 # If we're building libgloss, find the startup file, simulator library
7639 # and linker script.
7640 case " $target_configdirs " in
7641 *" libgloss "*)
7642 # Look for startup file, simulator library and maybe linker script.
7643 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7644 # Look for libnosys.a in case the target needs it.
7645 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7646 # Most targets have the linker script in the source directory.
7647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7649 esac
7651 esac
7653 esac
7655 esac
7657 case "$target" in
7658 x86_64-*mingw* | *-w64-mingw*)
7659 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7660 # however, use a symlink named 'mingw' in ${prefix} .
7661 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7663 *-mingw*)
7664 # MinGW can't be handled as Cygwin above since it does not use newlib.
7665 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'
7667 esac
7669 # Allow the user to override the flags for
7670 # our build compiler if desired.
7671 if test x"${build}" = x"${host}" ; then
7672 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7673 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7674 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7677 # On Canadian crosses, we'll be searching the right directories for
7678 # the previously-installed cross compiler, so don't bother to add
7679 # flags for directories within the install tree of the compiler
7680 # being built; programs in there won't even run.
7681 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7682 # Search for pre-installed headers if nothing else fits.
7683 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7686 if test "x${use_gnu_ld}" = x &&
7687 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7688 # Arrange for us to find uninstalled linker scripts.
7689 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7692 # Search for other target-specific linker scripts and such.
7693 case "${target}" in
7694 mep*)
7695 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7697 esac
7699 # Makefile fragments.
7700 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7702 eval fragval=\$$frag
7703 if test $fragval != /dev/null; then
7704 eval $frag=${srcdir}/$fragval
7706 done
7712 # Miscellanea: directories, flags, etc.
7721 # Build module lists & subconfigure args.
7725 # Host module lists & subconfigure args.
7730 # Target module lists & subconfigure args.
7734 # Build tools.
7752 # Generate default definitions for YACC, M4, LEX and other programs that run
7753 # on the build machine. These are used if the Makefile can't locate these
7754 # programs in objdir.
7755 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7757 for ac_prog in 'bison -y' byacc yacc
7759 # Extract the first word of "$ac_prog", so it can be a program name with args.
7760 set dummy $ac_prog; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if test "${ac_cv_prog_YACC+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$YACC"; then
7767 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7776 ac_cv_prog_YACC="$ac_prog"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7780 done
7781 done
7782 IFS=$as_save_IFS
7786 YACC=$ac_cv_prog_YACC
7787 if test -n "$YACC"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7789 $as_echo "$YACC" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7796 test -n "$YACC" && break
7797 done
7798 test -n "$YACC" || YACC="$MISSING bison -y"
7800 case " $build_configdirs " in
7801 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7802 esac
7804 for ac_prog in bison
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807 set dummy $ac_prog; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_BISON+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 if test -n "$BISON"; then
7814 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7815 else
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817 for as_dir in $PATH
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_BISON="$ac_prog"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 break 2
7827 done
7828 done
7829 IFS=$as_save_IFS
7833 BISON=$ac_cv_prog_BISON
7834 if test -n "$BISON"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7836 $as_echo "$BISON" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7843 test -n "$BISON" && break
7844 done
7845 test -n "$BISON" || BISON="$MISSING bison"
7847 case " $build_configdirs " in
7848 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7849 esac
7851 for ac_prog in gm4 gnum4 m4
7853 # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_M4+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$M4"; then
7861 ac_cv_prog_M4="$M4" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_M4="$ac_prog"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7874 done
7875 done
7876 IFS=$as_save_IFS
7880 M4=$ac_cv_prog_M4
7881 if test -n "$M4"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7883 $as_echo "$M4" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7890 test -n "$M4" && break
7891 done
7892 test -n "$M4" || M4="$MISSING m4"
7894 case " $build_configdirs " in
7895 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7896 esac
7898 for ac_prog in flex lex
7900 # Extract the first word of "$ac_prog", so it can be a program name with args.
7901 set dummy $ac_prog; ac_word=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if test "${ac_cv_prog_LEX+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -n "$LEX"; then
7908 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7909 else
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in $PATH
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
7916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7917 ac_cv_prog_LEX="$ac_prog"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7921 done
7922 done
7923 IFS=$as_save_IFS
7927 LEX=$ac_cv_prog_LEX
7928 if test -n "$LEX"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7930 $as_echo "$LEX" >&6; }
7931 else
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7937 test -n "$LEX" && break
7938 done
7939 test -n "$LEX" || LEX="$MISSING flex"
7941 case " $build_configdirs " in
7942 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7943 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7944 esac
7946 for ac_prog in flex
7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
7949 set dummy $ac_prog; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_prog_FLEX+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$FLEX"; then
7956 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_FLEX="$ac_prog"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7969 done
7970 done
7971 IFS=$as_save_IFS
7975 FLEX=$ac_cv_prog_FLEX
7976 if test -n "$FLEX"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7978 $as_echo "$FLEX" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7985 test -n "$FLEX" && break
7986 done
7987 test -n "$FLEX" || FLEX="$MISSING flex"
7989 case " $build_configdirs " in
7990 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7991 esac
7993 for ac_prog in makeinfo
7995 # Extract the first word of "$ac_prog", so it can be a program name with args.
7996 set dummy $ac_prog; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 if test -n "$MAKEINFO"; then
8003 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_MAKEINFO="$ac_prog"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8016 done
8017 done
8018 IFS=$as_save_IFS
8022 MAKEINFO=$ac_cv_prog_MAKEINFO
8023 if test -n "$MAKEINFO"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8025 $as_echo "$MAKEINFO" >&6; }
8026 else
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8032 test -n "$MAKEINFO" && break
8033 done
8034 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8036 case " $build_configdirs " in
8037 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8040 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8041 # higher, else we use the "missing" dummy.
8042 if ${MAKEINFO} --version \
8043 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8045 else
8046 MAKEINFO="$MISSING makeinfo"
8050 esac
8052 # FIXME: expect and dejagnu may become build tools?
8054 for ac_prog in expect
8056 # Extract the first word of "$ac_prog", so it can be a program name with args.
8057 set dummy $ac_prog; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 if test -n "$EXPECT"; then
8064 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_prog_EXPECT="$ac_prog"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 break 2
8077 done
8078 done
8079 IFS=$as_save_IFS
8083 EXPECT=$ac_cv_prog_EXPECT
8084 if test -n "$EXPECT"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8086 $as_echo "$EXPECT" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8093 test -n "$EXPECT" && break
8094 done
8095 test -n "$EXPECT" || EXPECT="expect"
8097 case " $configdirs " in
8098 *" expect "*)
8099 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8101 esac
8103 for ac_prog in runtest
8105 # Extract the first word of "$ac_prog", so it can be a program name with args.
8106 set dummy $ac_prog; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 if test -n "$RUNTEST"; then
8113 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_RUNTEST="$ac_prog"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8126 done
8127 done
8128 IFS=$as_save_IFS
8132 RUNTEST=$ac_cv_prog_RUNTEST
8133 if test -n "$RUNTEST"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8135 $as_echo "$RUNTEST" >&6; }
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8142 test -n "$RUNTEST" && break
8143 done
8144 test -n "$RUNTEST" || RUNTEST="runtest"
8146 case " $configdirs " in
8147 *" dejagnu "*)
8148 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8150 esac
8153 # Host tools.
8154 ncn_tool_prefix=
8155 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8156 ncn_target_tool_prefix=
8157 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8161 if test -n "$AR"; then
8162 ac_cv_prog_AR=$AR
8163 elif test -n "$ac_cv_prog_AR"; then
8164 AR=$ac_cv_prog_AR
8167 if test -n "$ac_cv_prog_AR"; then
8168 for ncn_progname in ar; do
8169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8170 set dummy ${ncn_progname}; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if test "${ac_cv_prog_AR+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$AR"; then
8177 ac_cv_prog_AR="$AR" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8186 ac_cv_prog_AR="${ncn_progname}"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8196 AR=$ac_cv_prog_AR
8197 if test -n "$AR"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8199 $as_echo "$AR" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8206 done
8209 for ncn_progname in ar; do
8210 if test -n "$ncn_tool_prefix"; then
8211 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8212 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_AR+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 if test -n "$AR"; then
8219 ac_cv_prog_AR="$AR" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8232 done
8233 done
8234 IFS=$as_save_IFS
8238 AR=$ac_cv_prog_AR
8239 if test -n "$AR"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8241 $as_echo "$AR" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8249 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8251 set dummy ${ncn_progname}; ac_word=$2
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253 $as_echo_n "checking for $ac_word... " >&6; }
8254 if test "${ac_cv_prog_AR+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 if test -n "$AR"; then
8258 ac_cv_prog_AR="$AR" # Let the user override the test.
8259 else
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 for as_dir in $PATH
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_prog_AR="${ncn_progname}"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 break 2
8271 done
8272 done
8273 IFS=$as_save_IFS
8277 AR=$ac_cv_prog_AR
8278 if test -n "$AR"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8280 $as_echo "$AR" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8288 test -n "$ac_cv_prog_AR" && break
8289 done
8291 if test -z "$ac_cv_prog_AR" ; then
8292 set dummy ar
8293 if test $build = $host ; then
8294 AR="$2"
8295 else
8296 AR="${ncn_tool_prefix}$2"
8302 if test -n "$AS"; then
8303 ac_cv_prog_AS=$AS
8304 elif test -n "$ac_cv_prog_AS"; then
8305 AS=$ac_cv_prog_AS
8308 if test -n "$ac_cv_prog_AS"; then
8309 for ncn_progname in as; do
8310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8311 set dummy ${ncn_progname}; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_AS+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 if test -n "$AS"; then
8318 ac_cv_prog_AS="$AS" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8323 IFS=$as_save_IFS
8324 test -z "$as_dir" && as_dir=.
8325 for ac_exec_ext in '' $ac_executable_extensions; do
8326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327 ac_cv_prog_AS="${ncn_progname}"
8328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 break 2
8331 done
8332 done
8333 IFS=$as_save_IFS
8337 AS=$ac_cv_prog_AS
8338 if test -n "$AS"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8340 $as_echo "$AS" >&6; }
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8347 done
8350 for ncn_progname in as; do
8351 if test -n "$ncn_tool_prefix"; then
8352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_prog_AS+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test -n "$AS"; then
8360 ac_cv_prog_AS="$AS" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8373 done
8374 done
8375 IFS=$as_save_IFS
8379 AS=$ac_cv_prog_AS
8380 if test -n "$AS"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8382 $as_echo "$AS" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8390 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8392 set dummy ${ncn_progname}; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if test "${ac_cv_prog_AS+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 if test -n "$AS"; then
8399 ac_cv_prog_AS="$AS" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_prog_AS="${ncn_progname}"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8418 AS=$ac_cv_prog_AS
8419 if test -n "$AS"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8421 $as_echo "$AS" >&6; }
8422 else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8429 test -n "$ac_cv_prog_AS" && break
8430 done
8432 if test -z "$ac_cv_prog_AS" ; then
8433 set dummy as
8434 if test $build = $host ; then
8435 AS="$2"
8436 else
8437 AS="${ncn_tool_prefix}$2"
8443 if test -n "$DLLTOOL"; then
8444 ac_cv_prog_DLLTOOL=$DLLTOOL
8445 elif test -n "$ac_cv_prog_DLLTOOL"; then
8446 DLLTOOL=$ac_cv_prog_DLLTOOL
8449 if test -n "$ac_cv_prog_DLLTOOL"; then
8450 for ncn_progname in dlltool; do
8451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8452 set dummy ${ncn_progname}; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 if test -n "$DLLTOOL"; then
8459 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468 ac_cv_prog_DLLTOOL="${ncn_progname}"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8472 done
8473 done
8474 IFS=$as_save_IFS
8478 DLLTOOL=$ac_cv_prog_DLLTOOL
8479 if test -n "$DLLTOOL"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8481 $as_echo "$DLLTOOL" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8488 done
8491 for ncn_progname in dlltool; do
8492 if test -n "$ncn_tool_prefix"; then
8493 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8494 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$DLLTOOL"; then
8501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8514 done
8515 done
8516 IFS=$as_save_IFS
8520 DLLTOOL=$ac_cv_prog_DLLTOOL
8521 if test -n "$DLLTOOL"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8523 $as_echo "$DLLTOOL" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8533 set dummy ${ncn_progname}; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 if test -n "$DLLTOOL"; then
8540 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8541 else
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_prog_DLLTOOL="${ncn_progname}"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8553 done
8554 done
8555 IFS=$as_save_IFS
8559 DLLTOOL=$ac_cv_prog_DLLTOOL
8560 if test -n "$DLLTOOL"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8562 $as_echo "$DLLTOOL" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8570 test -n "$ac_cv_prog_DLLTOOL" && break
8571 done
8573 if test -z "$ac_cv_prog_DLLTOOL" ; then
8574 set dummy dlltool
8575 if test $build = $host ; then
8576 DLLTOOL="$2"
8577 else
8578 DLLTOOL="${ncn_tool_prefix}$2"
8584 if test -n "$LD"; then
8585 ac_cv_prog_LD=$LD
8586 elif test -n "$ac_cv_prog_LD"; then
8587 LD=$ac_cv_prog_LD
8590 if test -n "$ac_cv_prog_LD"; then
8591 for ncn_progname in ld; do
8592 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8593 set dummy ${ncn_progname}; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if test "${ac_cv_prog_LD+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$LD"; then
8600 ac_cv_prog_LD="$LD" # Let the user override the test.
8601 else
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 for as_dir in $PATH
8605 IFS=$as_save_IFS
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8609 ac_cv_prog_LD="${ncn_progname}"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 break 2
8613 done
8614 done
8615 IFS=$as_save_IFS
8619 LD=$ac_cv_prog_LD
8620 if test -n "$LD"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8622 $as_echo "$LD" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8629 done
8632 for ncn_progname in ld; do
8633 if test -n "$ncn_tool_prefix"; then
8634 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8635 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if test "${ac_cv_prog_LD+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 if test -n "$LD"; then
8642 ac_cv_prog_LD="$LD" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8655 done
8656 done
8657 IFS=$as_save_IFS
8661 LD=$ac_cv_prog_LD
8662 if test -n "$LD"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8664 $as_echo "$LD" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8672 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8674 set dummy ${ncn_progname}; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if test "${ac_cv_prog_LD+set}" = set; then :
8678 $as_echo_n "(cached) " >&6
8679 else
8680 if test -n "$LD"; then
8681 ac_cv_prog_LD="$LD" # Let the user override the test.
8682 else
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684 for as_dir in $PATH
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690 ac_cv_prog_LD="${ncn_progname}"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8694 done
8695 done
8696 IFS=$as_save_IFS
8700 LD=$ac_cv_prog_LD
8701 if test -n "$LD"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8703 $as_echo "$LD" >&6; }
8704 else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8711 test -n "$ac_cv_prog_LD" && break
8712 done
8714 if test -z "$ac_cv_prog_LD" ; then
8715 set dummy ld
8716 if test $build = $host ; then
8717 LD="$2"
8718 else
8719 LD="${ncn_tool_prefix}$2"
8725 if test -n "$LIPO"; then
8726 ac_cv_prog_LIPO=$LIPO
8727 elif test -n "$ac_cv_prog_LIPO"; then
8728 LIPO=$ac_cv_prog_LIPO
8731 if test -n "$ac_cv_prog_LIPO"; then
8732 for ncn_progname in lipo; do
8733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8734 set dummy ${ncn_progname}; ac_word=$2
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8736 $as_echo_n "checking for $ac_word... " >&6; }
8737 if test "${ac_cv_prog_LIPO+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test -n "$LIPO"; then
8741 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8742 else
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_prog_LIPO="${ncn_progname}"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8760 LIPO=$ac_cv_prog_LIPO
8761 if test -n "$LIPO"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8763 $as_echo "$LIPO" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8770 done
8773 for ncn_progname in lipo; do
8774 if test -n "$ncn_tool_prefix"; then
8775 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8776 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if test "${ac_cv_prog_LIPO+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8802 LIPO=$ac_cv_prog_LIPO
8803 if test -n "$LIPO"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8805 $as_echo "$LIPO" >&6; }
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8813 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8815 set dummy ${ncn_progname}; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if test "${ac_cv_prog_LIPO+set}" = set; then :
8819 $as_echo_n "(cached) " >&6
8820 else
8821 if test -n "$LIPO"; then
8822 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831 ac_cv_prog_LIPO="${ncn_progname}"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8835 done
8836 done
8837 IFS=$as_save_IFS
8841 LIPO=$ac_cv_prog_LIPO
8842 if test -n "$LIPO"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8844 $as_echo "$LIPO" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8852 test -n "$ac_cv_prog_LIPO" && break
8853 done
8855 if test -z "$ac_cv_prog_LIPO" ; then
8856 set dummy lipo
8857 if test $build = $host ; then
8858 LIPO="$2"
8859 else
8860 LIPO="${ncn_tool_prefix}$2"
8866 if test -n "$NM"; then
8867 ac_cv_prog_NM=$NM
8868 elif test -n "$ac_cv_prog_NM"; then
8869 NM=$ac_cv_prog_NM
8872 if test -n "$ac_cv_prog_NM"; then
8873 for ncn_progname in nm; do
8874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8875 set dummy ${ncn_progname}; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_prog_NM+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 if test -n "$NM"; then
8882 ac_cv_prog_NM="$NM" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_prog_NM="${ncn_progname}"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8895 done
8896 done
8897 IFS=$as_save_IFS
8901 NM=$ac_cv_prog_NM
8902 if test -n "$NM"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8904 $as_echo "$NM" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8911 done
8914 for ncn_progname in nm; do
8915 if test -n "$ncn_tool_prefix"; then
8916 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8917 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if test "${ac_cv_prog_NM+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$NM"; then
8924 ac_cv_prog_NM="$NM" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8937 done
8938 done
8939 IFS=$as_save_IFS
8943 NM=$ac_cv_prog_NM
8944 if test -n "$NM"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8946 $as_echo "$NM" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8954 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8956 set dummy ${ncn_progname}; ac_word=$2
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8958 $as_echo_n "checking for $ac_word... " >&6; }
8959 if test "${ac_cv_prog_NM+set}" = set; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 if test -n "$NM"; then
8963 ac_cv_prog_NM="$NM" # Let the user override the test.
8964 else
8965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966 for as_dir in $PATH
8968 IFS=$as_save_IFS
8969 test -z "$as_dir" && as_dir=.
8970 for ac_exec_ext in '' $ac_executable_extensions; do
8971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8972 ac_cv_prog_NM="${ncn_progname}"
8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8974 break 2
8976 done
8977 done
8978 IFS=$as_save_IFS
8982 NM=$ac_cv_prog_NM
8983 if test -n "$NM"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8985 $as_echo "$NM" >&6; }
8986 else
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8993 test -n "$ac_cv_prog_NM" && break
8994 done
8996 if test -z "$ac_cv_prog_NM" ; then
8997 set dummy nm
8998 if test $build = $host ; then
8999 NM="$2"
9000 else
9001 NM="${ncn_tool_prefix}$2"
9007 if test -n "$RANLIB"; then
9008 ac_cv_prog_RANLIB=$RANLIB
9009 elif test -n "$ac_cv_prog_RANLIB"; then
9010 RANLIB=$ac_cv_prog_RANLIB
9013 if test -n "$ac_cv_prog_RANLIB"; then
9014 for ncn_progname in ranlib; do
9015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9016 set dummy ${ncn_progname}; ac_word=$2
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9018 $as_echo_n "checking for $ac_word... " >&6; }
9019 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 if test -n "$RANLIB"; then
9023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_prog_RANLIB="${ncn_progname}"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9042 RANLIB=$ac_cv_prog_RANLIB
9043 if test -n "$RANLIB"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9045 $as_echo "$RANLIB" >&6; }
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9052 done
9055 for ncn_progname in ranlib; do
9056 if test -n "$ncn_tool_prefix"; then
9057 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9058 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060 $as_echo_n "checking for $ac_word... " >&6; }
9061 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 if test -n "$RANLIB"; then
9065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9066 else
9067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068 for as_dir in $PATH
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9074 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9076 break 2
9078 done
9079 done
9080 IFS=$as_save_IFS
9084 RANLIB=$ac_cv_prog_RANLIB
9085 if test -n "$RANLIB"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9087 $as_echo "$RANLIB" >&6; }
9088 else
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9095 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9097 set dummy ${ncn_progname}; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 if test -n "$RANLIB"; then
9104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_prog_RANLIB="${ncn_progname}"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9123 RANLIB=$ac_cv_prog_RANLIB
9124 if test -n "$RANLIB"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9126 $as_echo "$RANLIB" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9134 test -n "$ac_cv_prog_RANLIB" && break
9135 done
9137 if test -z "$ac_cv_prog_RANLIB" ; then
9138 RANLIB="true"
9143 if test -n "$STRIP"; then
9144 ac_cv_prog_STRIP=$STRIP
9145 elif test -n "$ac_cv_prog_STRIP"; then
9146 STRIP=$ac_cv_prog_STRIP
9149 if test -n "$ac_cv_prog_STRIP"; then
9150 for ncn_progname in strip; do
9151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9152 set dummy ${ncn_progname}; ac_word=$2
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if test "${ac_cv_prog_STRIP+set}" = set; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 if test -n "$STRIP"; then
9159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9160 else
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9168 ac_cv_prog_STRIP="${ncn_progname}"
9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9172 done
9173 done
9174 IFS=$as_save_IFS
9178 STRIP=$ac_cv_prog_STRIP
9179 if test -n "$STRIP"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9181 $as_echo "$STRIP" >&6; }
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9188 done
9191 for ncn_progname in strip; do
9192 if test -n "$ncn_tool_prefix"; then
9193 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9194 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196 $as_echo_n "checking for $ac_word... " >&6; }
9197 if test "${ac_cv_prog_STRIP+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 if test -n "$STRIP"; then
9201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9202 else
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 for as_dir in $PATH
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9210 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 break 2
9214 done
9215 done
9216 IFS=$as_save_IFS
9220 STRIP=$ac_cv_prog_STRIP
9221 if test -n "$STRIP"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9223 $as_echo "$STRIP" >&6; }
9224 else
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9231 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9233 set dummy ${ncn_progname}; ac_word=$2
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235 $as_echo_n "checking for $ac_word... " >&6; }
9236 if test "${ac_cv_prog_STRIP+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 if test -n "$STRIP"; then
9240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9241 else
9242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9243 for as_dir in $PATH
9245 IFS=$as_save_IFS
9246 test -z "$as_dir" && as_dir=.
9247 for ac_exec_ext in '' $ac_executable_extensions; do
9248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9249 ac_cv_prog_STRIP="${ncn_progname}"
9250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9251 break 2
9253 done
9254 done
9255 IFS=$as_save_IFS
9259 STRIP=$ac_cv_prog_STRIP
9260 if test -n "$STRIP"; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9262 $as_echo "$STRIP" >&6; }
9263 else
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9265 $as_echo "no" >&6; }
9270 test -n "$ac_cv_prog_STRIP" && break
9271 done
9273 if test -z "$ac_cv_prog_STRIP" ; then
9274 STRIP="true"
9279 if test -n "$WINDRES"; then
9280 ac_cv_prog_WINDRES=$WINDRES
9281 elif test -n "$ac_cv_prog_WINDRES"; then
9282 WINDRES=$ac_cv_prog_WINDRES
9285 if test -n "$ac_cv_prog_WINDRES"; then
9286 for ncn_progname in windres; do
9287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9288 set dummy ${ncn_progname}; ac_word=$2
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 $as_echo_n "checking for $ac_word... " >&6; }
9291 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 if test -n "$WINDRES"; then
9295 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9296 else
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298 for as_dir in $PATH
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for ac_exec_ext in '' $ac_executable_extensions; do
9303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304 ac_cv_prog_WINDRES="${ncn_progname}"
9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 break 2
9308 done
9309 done
9310 IFS=$as_save_IFS
9314 WINDRES=$ac_cv_prog_WINDRES
9315 if test -n "$WINDRES"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9317 $as_echo "$WINDRES" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9324 done
9327 for ncn_progname in windres; do
9328 if test -n "$ncn_tool_prefix"; then
9329 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9330 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 if test -n "$WINDRES"; then
9337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9338 else
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9350 done
9351 done
9352 IFS=$as_save_IFS
9356 WINDRES=$ac_cv_prog_WINDRES
9357 if test -n "$WINDRES"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9359 $as_echo "$WINDRES" >&6; }
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9367 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9369 set dummy ${ncn_progname}; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 if test -n "$WINDRES"; then
9376 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9377 else
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9385 ac_cv_prog_WINDRES="${ncn_progname}"
9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9389 done
9390 done
9391 IFS=$as_save_IFS
9395 WINDRES=$ac_cv_prog_WINDRES
9396 if test -n "$WINDRES"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9398 $as_echo "$WINDRES" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9406 test -n "$ac_cv_prog_WINDRES" && break
9407 done
9409 if test -z "$ac_cv_prog_WINDRES" ; then
9410 set dummy windres
9411 if test $build = $host ; then
9412 WINDRES="$2"
9413 else
9414 WINDRES="${ncn_tool_prefix}$2"
9420 if test -n "$WINDMC"; then
9421 ac_cv_prog_WINDMC=$WINDMC
9422 elif test -n "$ac_cv_prog_WINDMC"; then
9423 WINDMC=$ac_cv_prog_WINDMC
9426 if test -n "$ac_cv_prog_WINDMC"; then
9427 for ncn_progname in windmc; do
9428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9429 set dummy ${ncn_progname}; ac_word=$2
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9431 $as_echo_n "checking for $ac_word... " >&6; }
9432 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 if test -n "$WINDMC"; then
9436 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9437 else
9438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 for as_dir in $PATH
9441 IFS=$as_save_IFS
9442 test -z "$as_dir" && as_dir=.
9443 for ac_exec_ext in '' $ac_executable_extensions; do
9444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9445 ac_cv_prog_WINDMC="${ncn_progname}"
9446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447 break 2
9449 done
9450 done
9451 IFS=$as_save_IFS
9455 WINDMC=$ac_cv_prog_WINDMC
9456 if test -n "$WINDMC"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9458 $as_echo "$WINDMC" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9465 done
9468 for ncn_progname in windmc; do
9469 if test -n "$ncn_tool_prefix"; then
9470 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9471 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test -n "$WINDMC"; then
9478 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9479 else
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9491 done
9492 done
9493 IFS=$as_save_IFS
9497 WINDMC=$ac_cv_prog_WINDMC
9498 if test -n "$WINDMC"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9500 $as_echo "$WINDMC" >&6; }
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9508 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9510 set dummy ${ncn_progname}; ac_word=$2
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9512 $as_echo_n "checking for $ac_word... " >&6; }
9513 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 if test -n "$WINDMC"; then
9517 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9518 else
9519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 for as_dir in $PATH
9522 IFS=$as_save_IFS
9523 test -z "$as_dir" && as_dir=.
9524 for ac_exec_ext in '' $ac_executable_extensions; do
9525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9526 ac_cv_prog_WINDMC="${ncn_progname}"
9527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9528 break 2
9530 done
9531 done
9532 IFS=$as_save_IFS
9536 WINDMC=$ac_cv_prog_WINDMC
9537 if test -n "$WINDMC"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9539 $as_echo "$WINDMC" >&6; }
9540 else
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9547 test -n "$ac_cv_prog_WINDMC" && break
9548 done
9550 if test -z "$ac_cv_prog_WINDMC" ; then
9551 set dummy windmc
9552 if test $build = $host ; then
9553 WINDMC="$2"
9554 else
9555 WINDMC="${ncn_tool_prefix}$2"
9561 if test -n "$OBJCOPY"; then
9562 ac_cv_prog_OBJCOPY=$OBJCOPY
9563 elif test -n "$ac_cv_prog_OBJCOPY"; then
9564 OBJCOPY=$ac_cv_prog_OBJCOPY
9567 if test -n "$ac_cv_prog_OBJCOPY"; then
9568 for ncn_progname in objcopy; do
9569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9570 set dummy ${ncn_progname}; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 if test -n "$OBJCOPY"; then
9577 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9578 else
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 for as_dir in $PATH
9582 IFS=$as_save_IFS
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9586 ac_cv_prog_OBJCOPY="${ncn_progname}"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 break 2
9590 done
9591 done
9592 IFS=$as_save_IFS
9596 OBJCOPY=$ac_cv_prog_OBJCOPY
9597 if test -n "$OBJCOPY"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9599 $as_echo "$OBJCOPY" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9606 done
9609 for ncn_progname in objcopy; do
9610 if test -n "$ncn_tool_prefix"; then
9611 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9612 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 if test -n "$OBJCOPY"; then
9619 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9620 else
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 for as_dir in $PATH
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630 break 2
9632 done
9633 done
9634 IFS=$as_save_IFS
9638 OBJCOPY=$ac_cv_prog_OBJCOPY
9639 if test -n "$OBJCOPY"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9641 $as_echo "$OBJCOPY" >&6; }
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9649 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9651 set dummy ${ncn_progname}; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test -n "$OBJCOPY"; then
9658 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9659 else
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_prog_OBJCOPY="${ncn_progname}"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9671 done
9672 done
9673 IFS=$as_save_IFS
9677 OBJCOPY=$ac_cv_prog_OBJCOPY
9678 if test -n "$OBJCOPY"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9680 $as_echo "$OBJCOPY" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9688 test -n "$ac_cv_prog_OBJCOPY" && break
9689 done
9691 if test -z "$ac_cv_prog_OBJCOPY" ; then
9692 set dummy objcopy
9693 if test $build = $host ; then
9694 OBJCOPY="$2"
9695 else
9696 OBJCOPY="${ncn_tool_prefix}$2"
9702 if test -n "$OBJDUMP"; then
9703 ac_cv_prog_OBJDUMP=$OBJDUMP
9704 elif test -n "$ac_cv_prog_OBJDUMP"; then
9705 OBJDUMP=$ac_cv_prog_OBJDUMP
9708 if test -n "$ac_cv_prog_OBJDUMP"; then
9709 for ncn_progname in objdump; do
9710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9711 set dummy ${ncn_progname}; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 if test -n "$OBJDUMP"; then
9718 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9719 else
9720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9721 for as_dir in $PATH
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
9725 for ac_exec_ext in '' $ac_executable_extensions; do
9726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9727 ac_cv_prog_OBJDUMP="${ncn_progname}"
9728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9729 break 2
9731 done
9732 done
9733 IFS=$as_save_IFS
9737 OBJDUMP=$ac_cv_prog_OBJDUMP
9738 if test -n "$OBJDUMP"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9740 $as_echo "$OBJDUMP" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9747 done
9750 for ncn_progname in objdump; do
9751 if test -n "$ncn_tool_prefix"; then
9752 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9753 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 $as_echo_n "checking for $ac_word... " >&6; }
9756 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 if test -n "$OBJDUMP"; then
9760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9761 else
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9773 done
9774 done
9775 IFS=$as_save_IFS
9779 OBJDUMP=$ac_cv_prog_OBJDUMP
9780 if test -n "$OBJDUMP"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9782 $as_echo "$OBJDUMP" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9790 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9792 set dummy ${ncn_progname}; ac_word=$2
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794 $as_echo_n "checking for $ac_word... " >&6; }
9795 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9796 $as_echo_n "(cached) " >&6
9797 else
9798 if test -n "$OBJDUMP"; then
9799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9800 else
9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 for as_dir in $PATH
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9808 ac_cv_prog_OBJDUMP="${ncn_progname}"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9812 done
9813 done
9814 IFS=$as_save_IFS
9818 OBJDUMP=$ac_cv_prog_OBJDUMP
9819 if test -n "$OBJDUMP"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9821 $as_echo "$OBJDUMP" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9829 test -n "$ac_cv_prog_OBJDUMP" && break
9830 done
9832 if test -z "$ac_cv_prog_OBJDUMP" ; then
9833 set dummy objdump
9834 if test $build = $host ; then
9835 OBJDUMP="$2"
9836 else
9837 OBJDUMP="${ncn_tool_prefix}$2"
9843 if test -n "$READELF"; then
9844 ac_cv_prog_READELF=$READELF
9845 elif test -n "$ac_cv_prog_READELF"; then
9846 READELF=$ac_cv_prog_READELF
9849 if test -n "$ac_cv_prog_READELF"; then
9850 for ncn_progname in readelf; do
9851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9852 set dummy ${ncn_progname}; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if test "${ac_cv_prog_READELF+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 if test -n "$READELF"; then
9859 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9860 else
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_prog_READELF="${ncn_progname}"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9872 done
9873 done
9874 IFS=$as_save_IFS
9878 READELF=$ac_cv_prog_READELF
9879 if test -n "$READELF"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9881 $as_echo "$READELF" >&6; }
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9888 done
9891 for ncn_progname in readelf; do
9892 if test -n "$ncn_tool_prefix"; then
9893 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9894 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896 $as_echo_n "checking for $ac_word... " >&6; }
9897 if test "${ac_cv_prog_READELF+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 if test -n "$READELF"; then
9901 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9902 else
9903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904 for as_dir in $PATH
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9914 done
9915 done
9916 IFS=$as_save_IFS
9920 READELF=$ac_cv_prog_READELF
9921 if test -n "$READELF"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9923 $as_echo "$READELF" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9931 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9933 set dummy ${ncn_progname}; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if test "${ac_cv_prog_READELF+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 if test -n "$READELF"; then
9940 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9941 else
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in $PATH
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949 ac_cv_prog_READELF="${ncn_progname}"
9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 break 2
9953 done
9954 done
9955 IFS=$as_save_IFS
9959 READELF=$ac_cv_prog_READELF
9960 if test -n "$READELF"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9962 $as_echo "$READELF" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9970 test -n "$ac_cv_prog_READELF" && break
9971 done
9973 if test -z "$ac_cv_prog_READELF" ; then
9974 set dummy readelf
9975 if test $build = $host ; then
9976 READELF="$2"
9977 else
9978 READELF="${ncn_tool_prefix}$2"
9987 # Target tools.
9989 # Check whether --with-build-time-tools was given.
9990 if test "${with_build_time_tools+set}" = set; then :
9991 withval=$with_build_time_tools; case x"$withval" in
9992 x/*) ;;
9994 with_build_time_tools=
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9996 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9998 esac
9999 else
10000 with_build_time_tools=
10006 if test -n "$CC_FOR_TARGET"; then
10007 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10008 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10009 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10012 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10013 for ncn_progname in cc gcc; do
10014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10015 set dummy ${ncn_progname}; ac_word=$2
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10017 $as_echo_n "checking for $ac_word... " >&6; }
10018 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 if test -n "$CC_FOR_TARGET"; then
10022 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10031 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10035 done
10036 done
10037 IFS=$as_save_IFS
10041 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10042 if test -n "$CC_FOR_TARGET"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10044 $as_echo "$CC_FOR_TARGET" >&6; }
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047 $as_echo "no" >&6; }
10051 done
10054 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10055 for ncn_progname in cc gcc; do
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10057 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10058 if test -x $with_build_time_tools/${ncn_progname}; then
10059 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10061 $as_echo "yes" >&6; }
10062 break
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10067 done
10070 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10071 for ncn_progname in cc gcc; do
10072 if test -n "$ncn_target_tool_prefix"; then
10073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10074 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 $as_echo_n "checking for $ac_word... " >&6; }
10077 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 if test -n "$CC_FOR_TARGET"; then
10081 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10082 else
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10094 done
10095 done
10096 IFS=$as_save_IFS
10100 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10101 if test -n "$CC_FOR_TARGET"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10103 $as_echo "$CC_FOR_TARGET" >&6; }
10104 else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 $as_echo "no" >&6; }
10111 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10113 set dummy ${ncn_progname}; ac_word=$2
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115 $as_echo_n "checking for $ac_word... " >&6; }
10116 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 if test -n "$CC_FOR_TARGET"; then
10120 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10121 else
10122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10129 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131 break 2
10133 done
10134 done
10135 IFS=$as_save_IFS
10139 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10140 if test -n "$CC_FOR_TARGET"; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10142 $as_echo "$CC_FOR_TARGET" >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10150 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10151 done
10154 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10155 set dummy cc gcc
10156 if test $build = $target ; then
10157 CC_FOR_TARGET="$2"
10158 else
10159 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10161 else
10162 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10167 if test -n "$CXX_FOR_TARGET"; then
10168 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10169 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10170 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10173 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10174 for ncn_progname in c++ g++ cxx gxx; do
10175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10176 set dummy ${ncn_progname}; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 if test -n "$CXX_FOR_TARGET"; then
10183 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10184 else
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10188 IFS=$as_save_IFS
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10192 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10194 break 2
10196 done
10197 done
10198 IFS=$as_save_IFS
10202 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10203 if test -n "$CXX_FOR_TARGET"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10205 $as_echo "$CXX_FOR_TARGET" >&6; }
10206 else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10212 done
10215 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10216 for ncn_progname in c++ g++ cxx gxx; do
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10218 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10219 if test -x $with_build_time_tools/${ncn_progname}; then
10220 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10222 $as_echo "yes" >&6; }
10223 break
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10228 done
10231 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10232 for ncn_progname in c++ g++ cxx gxx; do
10233 if test -n "$ncn_target_tool_prefix"; then
10234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10235 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237 $as_echo_n "checking for $ac_word... " >&6; }
10238 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
10240 else
10241 if test -n "$CXX_FOR_TARGET"; then
10242 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10243 else
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in $PATH
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10251 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10255 done
10256 done
10257 IFS=$as_save_IFS
10261 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10262 if test -n "$CXX_FOR_TARGET"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10264 $as_echo "$CXX_FOR_TARGET" >&6; }
10265 else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10272 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10274 set dummy ${ncn_progname}; ac_word=$2
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10276 $as_echo_n "checking for $ac_word... " >&6; }
10277 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 if test -n "$CXX_FOR_TARGET"; then
10281 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10282 else
10283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10284 for as_dir in $PATH
10286 IFS=$as_save_IFS
10287 test -z "$as_dir" && as_dir=.
10288 for ac_exec_ext in '' $ac_executable_extensions; do
10289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10290 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 break 2
10294 done
10295 done
10296 IFS=$as_save_IFS
10300 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10301 if test -n "$CXX_FOR_TARGET"; then
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10303 $as_echo "$CXX_FOR_TARGET" >&6; }
10304 else
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10311 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10312 done
10315 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10316 set dummy c++ g++ cxx gxx
10317 if test $build = $target ; then
10318 CXX_FOR_TARGET="$2"
10319 else
10320 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10322 else
10323 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10328 if test -n "$GCC_FOR_TARGET"; then
10329 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10330 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10331 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10334 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10335 for ncn_progname in gcc; do
10336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10337 set dummy ${ncn_progname}; ac_word=$2
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339 $as_echo_n "checking for $ac_word... " >&6; }
10340 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 if test -n "$GCC_FOR_TARGET"; then
10344 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10345 else
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10353 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 break 2
10357 done
10358 done
10359 IFS=$as_save_IFS
10363 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10364 if test -n "$GCC_FOR_TARGET"; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10366 $as_echo "$GCC_FOR_TARGET" >&6; }
10367 else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; }
10373 done
10376 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10377 for ncn_progname in gcc; do
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10379 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10380 if test -x $with_build_time_tools/${ncn_progname}; then
10381 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10383 $as_echo "yes" >&6; }
10384 break
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10389 done
10392 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10393 for ncn_progname in gcc; do
10394 if test -n "$ncn_target_tool_prefix"; then
10395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10396 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 if test -n "$GCC_FOR_TARGET"; then
10403 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10404 else
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10416 done
10417 done
10418 IFS=$as_save_IFS
10422 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10423 if test -n "$GCC_FOR_TARGET"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10425 $as_echo "$GCC_FOR_TARGET" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10433 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10435 set dummy ${ncn_progname}; ac_word=$2
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437 $as_echo_n "checking for $ac_word... " >&6; }
10438 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10439 $as_echo_n "(cached) " >&6
10440 else
10441 if test -n "$GCC_FOR_TARGET"; then
10442 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10443 else
10444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445 for as_dir in $PATH
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
10449 for ac_exec_ext in '' $ac_executable_extensions; do
10450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10451 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 break 2
10455 done
10456 done
10457 IFS=$as_save_IFS
10461 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10462 if test -n "$GCC_FOR_TARGET"; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10464 $as_echo "$GCC_FOR_TARGET" >&6; }
10465 else
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10472 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10473 done
10476 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10477 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10478 else
10479 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10484 if test -n "$GCJ_FOR_TARGET"; then
10485 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10486 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10487 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10490 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10491 for ncn_progname in gcj; do
10492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10493 set dummy ${ncn_progname}; ac_word=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 if test -n "$GCJ_FOR_TARGET"; then
10500 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10501 else
10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10509 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10513 done
10514 done
10515 IFS=$as_save_IFS
10519 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10520 if test -n "$GCJ_FOR_TARGET"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10522 $as_echo "$GCJ_FOR_TARGET" >&6; }
10523 else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10529 done
10532 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10533 for ncn_progname in gcj; do
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10535 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10536 if test -x $with_build_time_tools/${ncn_progname}; then
10537 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; }
10540 break
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10545 done
10548 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10549 for ncn_progname in gcj; do
10550 if test -n "$ncn_target_tool_prefix"; then
10551 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10552 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554 $as_echo_n "checking for $ac_word... " >&6; }
10555 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 if test -n "$GCJ_FOR_TARGET"; then
10559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10560 else
10561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562 for as_dir in $PATH
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10570 break 2
10572 done
10573 done
10574 IFS=$as_save_IFS
10578 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10579 if test -n "$GCJ_FOR_TARGET"; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10581 $as_echo "$GCJ_FOR_TARGET" >&6; }
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10589 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10591 set dummy ${ncn_progname}; ac_word=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10595 $as_echo_n "(cached) " >&6
10596 else
10597 if test -n "$GCJ_FOR_TARGET"; then
10598 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10599 else
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10607 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 break 2
10611 done
10612 done
10613 IFS=$as_save_IFS
10617 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10618 if test -n "$GCJ_FOR_TARGET"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10620 $as_echo "$GCJ_FOR_TARGET" >&6; }
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10628 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10629 done
10632 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10633 set dummy gcj
10634 if test $build = $target ; then
10635 GCJ_FOR_TARGET="$2"
10636 else
10637 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10639 else
10640 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10645 if test -n "$GFORTRAN_FOR_TARGET"; then
10646 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10647 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10648 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10651 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10652 for ncn_progname in gfortran; do
10653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10654 set dummy ${ncn_progname}; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 if test -n "$GFORTRAN_FOR_TARGET"; then
10661 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10662 else
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10674 done
10675 done
10676 IFS=$as_save_IFS
10680 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10681 if test -n "$GFORTRAN_FOR_TARGET"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10683 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10690 done
10693 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10694 for ncn_progname in gfortran; do
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10696 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10697 if test -x $with_build_time_tools/${ncn_progname}; then
10698 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; }
10701 break
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; }
10706 done
10709 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10710 for ncn_progname in gfortran; do
10711 if test -n "$ncn_target_tool_prefix"; then
10712 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10713 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715 $as_echo_n "checking for $ac_word... " >&6; }
10716 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 if test -n "$GFORTRAN_FOR_TARGET"; then
10720 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10721 else
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10733 done
10734 done
10735 IFS=$as_save_IFS
10739 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10740 if test -n "$GFORTRAN_FOR_TARGET"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10742 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10750 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10752 set dummy ${ncn_progname}; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10754 $as_echo_n "checking for $ac_word... " >&6; }
10755 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 if test -n "$GFORTRAN_FOR_TARGET"; then
10759 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10760 else
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10764 IFS=$as_save_IFS
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10768 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10770 break 2
10772 done
10773 done
10774 IFS=$as_save_IFS
10778 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10779 if test -n "$GFORTRAN_FOR_TARGET"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10781 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10782 else
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10784 $as_echo "no" >&6; }
10789 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10790 done
10793 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10794 set dummy gfortran
10795 if test $build = $target ; then
10796 GFORTRAN_FOR_TARGET="$2"
10797 else
10798 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10800 else
10801 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10806 if test -n "$GOC_FOR_TARGET"; then
10807 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10808 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10809 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10812 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10813 for ncn_progname in gccgo; do
10814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10815 set dummy ${ncn_progname}; ac_word=$2
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10817 $as_echo_n "checking for $ac_word... " >&6; }
10818 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 if test -n "$GOC_FOR_TARGET"; then
10822 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10823 else
10824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825 for as_dir in $PATH
10827 IFS=$as_save_IFS
10828 test -z "$as_dir" && as_dir=.
10829 for ac_exec_ext in '' $ac_executable_extensions; do
10830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10831 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833 break 2
10835 done
10836 done
10837 IFS=$as_save_IFS
10841 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10842 if test -n "$GOC_FOR_TARGET"; then
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10844 $as_echo "$GOC_FOR_TARGET" >&6; }
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10847 $as_echo "no" >&6; }
10851 done
10854 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10855 for ncn_progname in gccgo; do
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10857 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10858 if test -x $with_build_time_tools/${ncn_progname}; then
10859 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10861 $as_echo "yes" >&6; }
10862 break
10863 else
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 $as_echo "no" >&6; }
10867 done
10870 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10871 for ncn_progname in gccgo; do
10872 if test -n "$ncn_target_tool_prefix"; then
10873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876 $as_echo_n "checking for $ac_word... " >&6; }
10877 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 if test -n "$GOC_FOR_TARGET"; then
10881 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10882 else
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10894 done
10895 done
10896 IFS=$as_save_IFS
10900 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10901 if test -n "$GOC_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10903 $as_echo "$GOC_FOR_TARGET" >&6; }
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906 $as_echo "no" >&6; }
10911 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10913 set dummy ${ncn_progname}; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 if test -n "$GOC_FOR_TARGET"; then
10920 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10921 else
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10933 done
10934 done
10935 IFS=$as_save_IFS
10939 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10940 if test -n "$GOC_FOR_TARGET"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10942 $as_echo "$GOC_FOR_TARGET" >&6; }
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; }
10950 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10951 done
10954 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10955 set dummy gccgo
10956 if test $build = $target ; then
10957 GOC_FOR_TARGET="$2"
10958 else
10959 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10961 else
10962 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10967 cat > conftest.c << \EOF
10968 #ifdef __GNUC__
10969 gcc_yay;
10970 #endif
10972 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10973 have_gcc_for_target=yes
10974 else
10975 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10976 have_gcc_for_target=no
10978 rm conftest.c
10983 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10984 if test -n "$with_build_time_tools"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10986 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10987 if test -x $with_build_time_tools/ar; then
10988 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10989 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10991 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10992 else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10996 elif test $build != $host && test $have_gcc_for_target = yes; then
10997 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10998 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10999 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11002 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11003 # Extract the first word of "ar", so it can be a program name with args.
11004 set dummy ar; 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_path_AR_FOR_TARGET+set}" = set; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 case $AR_FOR_TARGET in
11011 [\\/]* | ?:[\\/]*)
11012 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016 for as_dir in $gcc_cv_tool_dirs
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11022 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024 break 2
11026 done
11027 done
11028 IFS=$as_save_IFS
11031 esac
11033 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11034 if test -n "$AR_FOR_TARGET"; then
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11036 $as_echo "$AR_FOR_TARGET" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11044 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11047 if test -n "$AR_FOR_TARGET"; then
11048 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11049 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11050 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11053 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11054 for ncn_progname in ar; do
11055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11056 set dummy ${ncn_progname}; ac_word=$2
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11058 $as_echo_n "checking for $ac_word... " >&6; }
11059 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11060 $as_echo_n "(cached) " >&6
11061 else
11062 if test -n "$AR_FOR_TARGET"; then
11063 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11064 else
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11068 IFS=$as_save_IFS
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11072 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 break 2
11076 done
11077 done
11078 IFS=$as_save_IFS
11082 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11083 if test -n "$AR_FOR_TARGET"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11085 $as_echo "$AR_FOR_TARGET" >&6; }
11086 else
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11088 $as_echo "no" >&6; }
11092 done
11095 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11096 for ncn_progname in ar; do
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11098 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11099 if test -x $with_build_time_tools/${ncn_progname}; then
11100 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102 $as_echo "yes" >&6; }
11103 break
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11108 done
11111 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11112 for ncn_progname in ar; do
11113 if test -n "$ncn_target_tool_prefix"; then
11114 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11115 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 $as_echo_n "checking for $ac_word... " >&6; }
11118 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11120 else
11121 if test -n "$AR_FOR_TARGET"; then
11122 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11123 else
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $PATH
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133 break 2
11135 done
11136 done
11137 IFS=$as_save_IFS
11141 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11142 if test -n "$AR_FOR_TARGET"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11144 $as_echo "$AR_FOR_TARGET" >&6; }
11145 else
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11152 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11154 set dummy ${ncn_progname}; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
11159 else
11160 if test -n "$AR_FOR_TARGET"; then
11161 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11166 IFS=$as_save_IFS
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 break 2
11174 done
11175 done
11176 IFS=$as_save_IFS
11180 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11181 if test -n "$AR_FOR_TARGET"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11183 $as_echo "$AR_FOR_TARGET" >&6; }
11184 else
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11191 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11192 done
11195 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11196 set dummy ar
11197 if test $build = $target ; then
11198 AR_FOR_TARGET="$2"
11199 else
11200 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11202 else
11203 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11206 else
11207 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11213 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11214 if test -n "$with_build_time_tools"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11216 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11217 if test -x $with_build_time_tools/as; then
11218 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11219 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11221 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11226 elif test $build != $host && test $have_gcc_for_target = yes; then
11227 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11228 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11229 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11232 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11233 # Extract the first word of "as", so it can be a program name with args.
11234 set dummy as; ac_word=$2
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 $as_echo_n "checking for $ac_word... " >&6; }
11237 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 case $AS_FOR_TARGET in
11241 [\\/]* | ?:[\\/]*)
11242 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $gcc_cv_tool_dirs
11248 IFS=$as_save_IFS
11249 test -z "$as_dir" && as_dir=.
11250 for ac_exec_ext in '' $ac_executable_extensions; do
11251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11252 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11254 break 2
11256 done
11257 done
11258 IFS=$as_save_IFS
11261 esac
11263 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11264 if test -n "$AS_FOR_TARGET"; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11266 $as_echo "$AS_FOR_TARGET" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11274 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11277 if test -n "$AS_FOR_TARGET"; then
11278 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11279 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11280 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11283 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11284 for ncn_progname in as; do
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286 set dummy ${ncn_progname}; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 if test -n "$AS_FOR_TARGET"; then
11293 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11294 else
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11298 IFS=$as_save_IFS
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 break 2
11306 done
11307 done
11308 IFS=$as_save_IFS
11312 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11313 if test -n "$AS_FOR_TARGET"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11315 $as_echo "$AS_FOR_TARGET" >&6; }
11316 else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11322 done
11325 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11326 for ncn_progname in as; do
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11328 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11329 if test -x $with_build_time_tools/${ncn_progname}; then
11330 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11332 $as_echo "yes" >&6; }
11333 break
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11338 done
11341 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11342 for ncn_progname in as; do
11343 if test -n "$ncn_target_tool_prefix"; then
11344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11345 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 if test -n "$AS_FOR_TARGET"; then
11352 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11353 else
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11361 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11363 break 2
11365 done
11366 done
11367 IFS=$as_save_IFS
11371 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11372 if test -n "$AS_FOR_TARGET"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11374 $as_echo "$AS_FOR_TARGET" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11382 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11384 set dummy ${ncn_progname}; ac_word=$2
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386 $as_echo_n "checking for $ac_word... " >&6; }
11387 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 if test -n "$AS_FOR_TARGET"; then
11391 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11392 else
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH
11396 IFS=$as_save_IFS
11397 test -z "$as_dir" && as_dir=.
11398 for ac_exec_ext in '' $ac_executable_extensions; do
11399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11400 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11402 break 2
11404 done
11405 done
11406 IFS=$as_save_IFS
11410 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11411 if test -n "$AS_FOR_TARGET"; then
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11413 $as_echo "$AS_FOR_TARGET" >&6; }
11414 else
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416 $as_echo "no" >&6; }
11421 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11422 done
11425 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11426 set dummy as
11427 if test $build = $target ; then
11428 AS_FOR_TARGET="$2"
11429 else
11430 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11432 else
11433 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11436 else
11437 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11443 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11444 if test -n "$with_build_time_tools"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11446 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11447 if test -x $with_build_time_tools/dlltool; then
11448 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11449 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11451 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 $as_echo "no" >&6; }
11456 elif test $build != $host && test $have_gcc_for_target = yes; then
11457 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11458 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11459 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11462 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11463 # Extract the first word of "dlltool", so it can be a program name with args.
11464 set dummy dlltool; ac_word=$2
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11466 $as_echo_n "checking for $ac_word... " >&6; }
11467 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 case $DLLTOOL_FOR_TARGET in
11471 [\\/]* | ?:[\\/]*)
11472 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476 for as_dir in $gcc_cv_tool_dirs
11478 IFS=$as_save_IFS
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11482 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484 break 2
11486 done
11487 done
11488 IFS=$as_save_IFS
11491 esac
11493 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11494 if test -n "$DLLTOOL_FOR_TARGET"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11496 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499 $as_echo "no" >&6; }
11504 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11507 if test -n "$DLLTOOL_FOR_TARGET"; then
11508 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11509 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11510 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11513 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11514 for ncn_progname in dlltool; do
11515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11516 set dummy ${ncn_progname}; ac_word=$2
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11518 $as_echo_n "checking for $ac_word... " >&6; }
11519 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 if test -n "$DLLTOOL_FOR_TARGET"; then
11523 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11524 else
11525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11532 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11536 done
11537 done
11538 IFS=$as_save_IFS
11542 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11543 if test -n "$DLLTOOL_FOR_TARGET"; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11545 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11546 else
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548 $as_echo "no" >&6; }
11552 done
11555 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11556 for ncn_progname in dlltool; do
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11558 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11559 if test -x $with_build_time_tools/${ncn_progname}; then
11560 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562 $as_echo "yes" >&6; }
11563 break
11564 else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11568 done
11571 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11572 for ncn_progname in dlltool; do
11573 if test -n "$ncn_target_tool_prefix"; then
11574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11575 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577 $as_echo_n "checking for $ac_word... " >&6; }
11578 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 if test -n "$DLLTOOL_FOR_TARGET"; then
11582 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11583 else
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11591 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11595 done
11596 done
11597 IFS=$as_save_IFS
11601 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11602 if test -n "$DLLTOOL_FOR_TARGET"; then
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11604 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 $as_echo "no" >&6; }
11612 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11614 set dummy ${ncn_progname}; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 if test -n "$DLLTOOL_FOR_TARGET"; then
11621 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11622 else
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11634 done
11635 done
11636 IFS=$as_save_IFS
11640 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11641 if test -n "$DLLTOOL_FOR_TARGET"; then
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11643 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11651 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11652 done
11655 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11656 set dummy dlltool
11657 if test $build = $target ; then
11658 DLLTOOL_FOR_TARGET="$2"
11659 else
11660 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11662 else
11663 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11666 else
11667 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11673 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11674 if test -n "$with_build_time_tools"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11676 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11677 if test -x $with_build_time_tools/ld; then
11678 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11679 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11681 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11682 else
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684 $as_echo "no" >&6; }
11686 elif test $build != $host && test $have_gcc_for_target = yes; then
11687 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11688 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11689 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11692 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11693 # Extract the first word of "ld", so it can be a program name with args.
11694 set dummy ld; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 case $LD_FOR_TARGET in
11701 [\\/]* | ?:[\\/]*)
11702 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $gcc_cv_tool_dirs
11708 IFS=$as_save_IFS
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11712 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11714 break 2
11716 done
11717 done
11718 IFS=$as_save_IFS
11721 esac
11723 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11724 if test -n "$LD_FOR_TARGET"; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11726 $as_echo "$LD_FOR_TARGET" >&6; }
11727 else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11734 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11737 if test -n "$LD_FOR_TARGET"; then
11738 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11739 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11740 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11743 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11744 for ncn_progname in ld; do
11745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11746 set dummy ${ncn_progname}; ac_word=$2
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11748 $as_echo_n "checking for $ac_word... " >&6; }
11749 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 if test -n "$LD_FOR_TARGET"; then
11753 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11754 else
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11768 IFS=$as_save_IFS
11772 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11773 if test -n "$LD_FOR_TARGET"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11775 $as_echo "$LD_FOR_TARGET" >&6; }
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11782 done
11785 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11786 for ncn_progname in ld; do
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11788 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11789 if test -x $with_build_time_tools/${ncn_progname}; then
11790 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11792 $as_echo "yes" >&6; }
11793 break
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11798 done
11801 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11802 for ncn_progname in ld; do
11803 if test -n "$ncn_target_tool_prefix"; then
11804 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11805 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807 $as_echo_n "checking for $ac_word... " >&6; }
11808 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 if test -n "$LD_FOR_TARGET"; then
11812 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11813 else
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11821 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 break 2
11825 done
11826 done
11827 IFS=$as_save_IFS
11831 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11832 if test -n "$LD_FOR_TARGET"; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11834 $as_echo "$LD_FOR_TARGET" >&6; }
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11842 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11844 set dummy ${ncn_progname}; ac_word=$2
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11846 $as_echo_n "checking for $ac_word... " >&6; }
11847 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11848 $as_echo_n "(cached) " >&6
11849 else
11850 if test -n "$LD_FOR_TARGET"; then
11851 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11852 else
11853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11860 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 break 2
11864 done
11865 done
11866 IFS=$as_save_IFS
11870 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11871 if test -n "$LD_FOR_TARGET"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11873 $as_echo "$LD_FOR_TARGET" >&6; }
11874 else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876 $as_echo "no" >&6; }
11881 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11882 done
11885 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11886 set dummy ld
11887 if test $build = $target ; then
11888 LD_FOR_TARGET="$2"
11889 else
11890 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11892 else
11893 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11896 else
11897 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11903 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11904 if test -n "$with_build_time_tools"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11906 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11907 if test -x $with_build_time_tools/lipo; then
11908 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11909 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11911 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11912 else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11916 elif test $build != $host && test $have_gcc_for_target = yes; then
11917 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11918 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11919 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11922 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11923 # Extract the first word of "lipo", so it can be a program name with args.
11924 set dummy lipo; ac_word=$2
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926 $as_echo_n "checking for $ac_word... " >&6; }
11927 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 case $LIPO_FOR_TARGET in
11931 [\\/]* | ?:[\\/]*)
11932 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $gcc_cv_tool_dirs
11938 IFS=$as_save_IFS
11939 test -z "$as_dir" && as_dir=.
11940 for ac_exec_ext in '' $ac_executable_extensions; do
11941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944 break 2
11946 done
11947 done
11948 IFS=$as_save_IFS
11951 esac
11953 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11954 if test -n "$LIPO_FOR_TARGET"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11956 $as_echo "$LIPO_FOR_TARGET" >&6; }
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11964 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11967 if test -n "$LIPO_FOR_TARGET"; then
11968 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11969 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11970 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11973 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11974 for ncn_progname in lipo; do
11975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11976 set dummy ${ncn_progname}; ac_word=$2
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978 $as_echo_n "checking for $ac_word... " >&6; }
11979 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 if test -n "$LIPO_FOR_TARGET"; then
11983 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11984 else
11985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986 for as_dir in $PATH
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
11991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11992 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 break 2
11996 done
11997 done
11998 IFS=$as_save_IFS
12002 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12003 if test -n "$LIPO_FOR_TARGET"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12005 $as_echo "$LIPO_FOR_TARGET" >&6; }
12006 else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008 $as_echo "no" >&6; }
12012 done
12015 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12016 for ncn_progname in lipo; do
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12018 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12019 if test -x $with_build_time_tools/${ncn_progname}; then
12020 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12022 $as_echo "yes" >&6; }
12023 break
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12028 done
12031 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12032 for ncn_progname in lipo; do
12033 if test -n "$ncn_target_tool_prefix"; then
12034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12035 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if test -n "$LIPO_FOR_TARGET"; then
12042 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12043 else
12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 for as_dir in $PATH
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12051 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12055 done
12056 done
12057 IFS=$as_save_IFS
12061 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12062 if test -n "$LIPO_FOR_TARGET"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12064 $as_echo "$LIPO_FOR_TARGET" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12072 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12074 set dummy ${ncn_progname}; ac_word=$2
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076 $as_echo_n "checking for $ac_word... " >&6; }
12077 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 if test -n "$LIPO_FOR_TARGET"; then
12081 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12082 else
12083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084 for as_dir in $PATH
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12090 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 break 2
12094 done
12095 done
12096 IFS=$as_save_IFS
12100 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12101 if test -n "$LIPO_FOR_TARGET"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12103 $as_echo "$LIPO_FOR_TARGET" >&6; }
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12111 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12112 done
12115 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12116 set dummy lipo
12117 if test $build = $target ; then
12118 LIPO_FOR_TARGET="$2"
12119 else
12120 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12122 else
12123 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12126 else
12127 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12133 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12134 if test -n "$with_build_time_tools"; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12136 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12137 if test -x $with_build_time_tools/nm; then
12138 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12139 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12141 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12146 elif test $build != $host && test $have_gcc_for_target = yes; then
12147 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12148 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12149 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12152 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12153 # Extract the first word of "nm", so it can be a program name with args.
12154 set dummy nm; ac_word=$2
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12156 $as_echo_n "checking for $ac_word... " >&6; }
12157 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 case $NM_FOR_TARGET in
12161 [\\/]* | ?:[\\/]*)
12162 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12166 for as_dir in $gcc_cv_tool_dirs
12168 IFS=$as_save_IFS
12169 test -z "$as_dir" && as_dir=.
12170 for ac_exec_ext in '' $ac_executable_extensions; do
12171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12172 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12174 break 2
12176 done
12177 done
12178 IFS=$as_save_IFS
12181 esac
12183 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12184 if test -n "$NM_FOR_TARGET"; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12186 $as_echo "$NM_FOR_TARGET" >&6; }
12187 else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12189 $as_echo "no" >&6; }
12194 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12197 if test -n "$NM_FOR_TARGET"; then
12198 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12199 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12200 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12203 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12204 for ncn_progname in nm; do
12205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12206 set dummy ${ncn_progname}; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 if test -n "$NM_FOR_TARGET"; then
12213 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12214 else
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12226 done
12227 done
12228 IFS=$as_save_IFS
12232 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12233 if test -n "$NM_FOR_TARGET"; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12235 $as_echo "$NM_FOR_TARGET" >&6; }
12236 else
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12242 done
12245 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12246 for ncn_progname in nm; do
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12248 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12249 if test -x $with_build_time_tools/${ncn_progname}; then
12250 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12252 $as_echo "yes" >&6; }
12253 break
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12258 done
12261 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12262 for ncn_progname in nm; do
12263 if test -n "$ncn_target_tool_prefix"; then
12264 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12265 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267 $as_echo_n "checking for $ac_word... " >&6; }
12268 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 if test -n "$NM_FOR_TARGET"; then
12272 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12273 else
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $PATH
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12281 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 break 2
12285 done
12286 done
12287 IFS=$as_save_IFS
12291 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12292 if test -n "$NM_FOR_TARGET"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12294 $as_echo "$NM_FOR_TARGET" >&6; }
12295 else
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12302 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12304 set dummy ${ncn_progname}; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 if test -n "$NM_FOR_TARGET"; then
12311 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12312 else
12313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314 for as_dir in $PATH
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12320 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12324 done
12325 done
12326 IFS=$as_save_IFS
12330 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12331 if test -n "$NM_FOR_TARGET"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12333 $as_echo "$NM_FOR_TARGET" >&6; }
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12341 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12342 done
12345 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12346 set dummy nm
12347 if test $build = $target ; then
12348 NM_FOR_TARGET="$2"
12349 else
12350 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12352 else
12353 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12356 else
12357 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12363 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12364 if test -n "$with_build_time_tools"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12366 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12367 if test -x $with_build_time_tools/objdump; then
12368 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12369 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12371 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12376 elif test $build != $host && test $have_gcc_for_target = yes; then
12377 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12378 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12379 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12382 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12383 # Extract the first word of "objdump", so it can be a program name with args.
12384 set dummy objdump; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12389 else
12390 case $OBJDUMP_FOR_TARGET in
12391 [\\/]* | ?:[\\/]*)
12392 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12396 for as_dir in $gcc_cv_tool_dirs
12398 IFS=$as_save_IFS
12399 test -z "$as_dir" && as_dir=.
12400 for ac_exec_ext in '' $ac_executable_extensions; do
12401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12402 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12404 break 2
12406 done
12407 done
12408 IFS=$as_save_IFS
12411 esac
12413 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12414 if test -n "$OBJDUMP_FOR_TARGET"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12416 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12424 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12427 if test -n "$OBJDUMP_FOR_TARGET"; then
12428 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12429 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12430 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12433 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12434 for ncn_progname in objdump; do
12435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12436 set dummy ${ncn_progname}; ac_word=$2
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 $as_echo_n "checking for $ac_word... " >&6; }
12439 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 if test -n "$OBJDUMP_FOR_TARGET"; then
12443 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12444 else
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $PATH
12448 IFS=$as_save_IFS
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12452 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 break 2
12456 done
12457 done
12458 IFS=$as_save_IFS
12462 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12463 if test -n "$OBJDUMP_FOR_TARGET"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12465 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12466 else
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468 $as_echo "no" >&6; }
12472 done
12475 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12476 for ncn_progname in objdump; do
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12478 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12479 if test -x $with_build_time_tools/${ncn_progname}; then
12480 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482 $as_echo "yes" >&6; }
12483 break
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12488 done
12491 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12492 for ncn_progname in objdump; do
12493 if test -n "$ncn_target_tool_prefix"; then
12494 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12495 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497 $as_echo_n "checking for $ac_word... " >&6; }
12498 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 if test -n "$OBJDUMP_FOR_TARGET"; then
12502 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12503 else
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12515 done
12516 done
12517 IFS=$as_save_IFS
12521 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12522 if test -n "$OBJDUMP_FOR_TARGET"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12524 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12525 else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12532 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12534 set dummy ${ncn_progname}; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12536 $as_echo_n "checking for $ac_word... " >&6; }
12537 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 if test -n "$OBJDUMP_FOR_TARGET"; then
12541 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12542 else
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12546 IFS=$as_save_IFS
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12550 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12552 break 2
12554 done
12555 done
12556 IFS=$as_save_IFS
12560 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12561 if test -n "$OBJDUMP_FOR_TARGET"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12563 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12571 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12572 done
12575 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12576 set dummy objdump
12577 if test $build = $target ; then
12578 OBJDUMP_FOR_TARGET="$2"
12579 else
12580 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12582 else
12583 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12586 else
12587 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12593 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12594 if test -n "$with_build_time_tools"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12596 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12597 if test -x $with_build_time_tools/ranlib; then
12598 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12599 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12601 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12602 else
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12604 $as_echo "no" >&6; }
12606 elif test $build != $host && test $have_gcc_for_target = yes; then
12607 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12608 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12609 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12612 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12613 # Extract the first word of "ranlib", so it can be a program name with args.
12614 set dummy ranlib; ac_word=$2
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12616 $as_echo_n "checking for $ac_word... " >&6; }
12617 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 case $RANLIB_FOR_TARGET in
12621 [\\/]* | ?:[\\/]*)
12622 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $gcc_cv_tool_dirs
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12632 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12636 done
12637 done
12638 IFS=$as_save_IFS
12641 esac
12643 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12644 if test -n "$RANLIB_FOR_TARGET"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12646 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12654 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12657 if test -n "$RANLIB_FOR_TARGET"; then
12658 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12659 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12660 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12663 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12664 for ncn_progname in ranlib; do
12665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12666 set dummy ${ncn_progname}; ac_word=$2
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668 $as_echo_n "checking for $ac_word... " >&6; }
12669 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 if test -n "$RANLIB_FOR_TARGET"; then
12673 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12674 else
12675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676 for as_dir in $PATH
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12682 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 break 2
12686 done
12687 done
12688 IFS=$as_save_IFS
12692 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12693 if test -n "$RANLIB_FOR_TARGET"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12695 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12696 else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698 $as_echo "no" >&6; }
12702 done
12705 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12706 for ncn_progname in ranlib; do
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12708 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12709 if test -x $with_build_time_tools/${ncn_progname}; then
12710 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12712 $as_echo "yes" >&6; }
12713 break
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12718 done
12721 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12722 for ncn_progname in ranlib; do
12723 if test -n "$ncn_target_tool_prefix"; then
12724 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12725 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727 $as_echo_n "checking for $ac_word... " >&6; }
12728 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 if test -n "$RANLIB_FOR_TARGET"; then
12732 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12733 else
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12745 done
12746 done
12747 IFS=$as_save_IFS
12751 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12752 if test -n "$RANLIB_FOR_TARGET"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12754 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 $as_echo "no" >&6; }
12762 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12764 set dummy ${ncn_progname}; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 if test -n "$RANLIB_FOR_TARGET"; then
12771 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12772 else
12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774 for as_dir in $PATH
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12780 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12784 done
12785 done
12786 IFS=$as_save_IFS
12790 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12791 if test -n "$RANLIB_FOR_TARGET"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12793 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12801 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12802 done
12805 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12806 set dummy ranlib
12807 if test $build = $target ; then
12808 RANLIB_FOR_TARGET="$2"
12809 else
12810 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12812 else
12813 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12816 else
12817 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12823 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12824 if test -n "$with_build_time_tools"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12826 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12827 if test -x $with_build_time_tools/readelf; then
12828 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12829 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12831 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12836 elif test $build != $host && test $have_gcc_for_target = yes; then
12837 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12838 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12839 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12842 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12843 # Extract the first word of "readelf", so it can be a program name with args.
12844 set dummy readelf; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 case $READELF_FOR_TARGET in
12851 [\\/]* | ?:[\\/]*)
12852 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $gcc_cv_tool_dirs
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12862 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12866 done
12867 done
12868 IFS=$as_save_IFS
12871 esac
12873 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12874 if test -n "$READELF_FOR_TARGET"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12876 $as_echo "$READELF_FOR_TARGET" >&6; }
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12884 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12887 if test -n "$READELF_FOR_TARGET"; then
12888 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12889 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12890 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12893 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12894 for ncn_progname in readelf; do
12895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12896 set dummy ${ncn_progname}; ac_word=$2
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12898 $as_echo_n "checking for $ac_word... " >&6; }
12899 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 if test -n "$READELF_FOR_TARGET"; then
12903 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12904 else
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12916 done
12917 done
12918 IFS=$as_save_IFS
12922 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12923 if test -n "$READELF_FOR_TARGET"; then
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12925 $as_echo "$READELF_FOR_TARGET" >&6; }
12926 else
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12928 $as_echo "no" >&6; }
12932 done
12935 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12936 for ncn_progname in readelf; do
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12938 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12939 if test -x $with_build_time_tools/${ncn_progname}; then
12940 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12942 $as_echo "yes" >&6; }
12943 break
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12948 done
12951 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12952 for ncn_progname in readelf; do
12953 if test -n "$ncn_target_tool_prefix"; then
12954 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12955 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957 $as_echo_n "checking for $ac_word... " >&6; }
12958 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 if test -n "$READELF_FOR_TARGET"; then
12962 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12963 else
12964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12971 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12975 done
12976 done
12977 IFS=$as_save_IFS
12981 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12982 if test -n "$READELF_FOR_TARGET"; then
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12984 $as_echo "$READELF_FOR_TARGET" >&6; }
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987 $as_echo "no" >&6; }
12992 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12994 set dummy ${ncn_progname}; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996 $as_echo_n "checking for $ac_word... " >&6; }
12997 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test -n "$READELF_FOR_TARGET"; then
13001 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13002 else
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13010 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13014 done
13015 done
13016 IFS=$as_save_IFS
13020 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13021 if test -n "$READELF_FOR_TARGET"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13023 $as_echo "$READELF_FOR_TARGET" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13031 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13032 done
13035 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13036 set dummy readelf
13037 if test $build = $target ; then
13038 READELF_FOR_TARGET="$2"
13039 else
13040 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13042 else
13043 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13046 else
13047 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13053 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13054 if test -n "$with_build_time_tools"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13056 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13057 if test -x $with_build_time_tools/strip; then
13058 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13059 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13061 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13062 else
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13066 elif test $build != $host && test $have_gcc_for_target = yes; then
13067 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13068 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13069 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13072 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13073 # Extract the first word of "strip", so it can be a program name with args.
13074 set dummy strip; ac_word=$2
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 $as_echo_n "checking for $ac_word... " >&6; }
13077 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13078 $as_echo_n "(cached) " >&6
13079 else
13080 case $STRIP_FOR_TARGET in
13081 [\\/]* | ?:[\\/]*)
13082 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $gcc_cv_tool_dirs
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 break 2
13096 done
13097 done
13098 IFS=$as_save_IFS
13101 esac
13103 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13104 if test -n "$STRIP_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13106 $as_echo "$STRIP_FOR_TARGET" >&6; }
13107 else
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13114 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13117 if test -n "$STRIP_FOR_TARGET"; then
13118 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13119 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13120 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13123 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13124 for ncn_progname in strip; do
13125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13126 set dummy ${ncn_progname}; ac_word=$2
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13128 $as_echo_n "checking for $ac_word... " >&6; }
13129 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 if test -n "$STRIP_FOR_TARGET"; then
13133 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13134 else
13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13138 IFS=$as_save_IFS
13139 test -z "$as_dir" && as_dir=.
13140 for ac_exec_ext in '' $ac_executable_extensions; do
13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13142 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 break 2
13146 done
13147 done
13148 IFS=$as_save_IFS
13152 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13153 if test -n "$STRIP_FOR_TARGET"; then
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13155 $as_echo "$STRIP_FOR_TARGET" >&6; }
13156 else
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13162 done
13165 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13166 for ncn_progname in strip; do
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13168 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13169 if test -x $with_build_time_tools/${ncn_progname}; then
13170 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13172 $as_echo "yes" >&6; }
13173 break
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13178 done
13181 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13182 for ncn_progname in strip; do
13183 if test -n "$ncn_target_tool_prefix"; then
13184 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13185 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187 $as_echo_n "checking for $ac_word... " >&6; }
13188 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13190 else
13191 if test -n "$STRIP_FOR_TARGET"; then
13192 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13193 else
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $PATH
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 break 2
13205 done
13206 done
13207 IFS=$as_save_IFS
13211 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13212 if test -n "$STRIP_FOR_TARGET"; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13214 $as_echo "$STRIP_FOR_TARGET" >&6; }
13215 else
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217 $as_echo "no" >&6; }
13222 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13224 set dummy ${ncn_progname}; ac_word=$2
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13226 $as_echo_n "checking for $ac_word... " >&6; }
13227 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 if test -n "$STRIP_FOR_TARGET"; then
13231 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13232 else
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13244 done
13245 done
13246 IFS=$as_save_IFS
13250 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13251 if test -n "$STRIP_FOR_TARGET"; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13253 $as_echo "$STRIP_FOR_TARGET" >&6; }
13254 else
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13256 $as_echo "no" >&6; }
13261 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13262 done
13265 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13266 set dummy strip
13267 if test $build = $target ; then
13268 STRIP_FOR_TARGET="$2"
13269 else
13270 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13272 else
13273 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13276 else
13277 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13283 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13284 if test -n "$with_build_time_tools"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13286 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13287 if test -x $with_build_time_tools/windres; then
13288 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13289 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13291 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13292 else
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13296 elif test $build != $host && test $have_gcc_for_target = yes; then
13297 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13298 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13299 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13302 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13303 # Extract the first word of "windres", so it can be a program name with args.
13304 set dummy windres; ac_word=$2
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13306 $as_echo_n "checking for $ac_word... " >&6; }
13307 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13308 $as_echo_n "(cached) " >&6
13309 else
13310 case $WINDRES_FOR_TARGET in
13311 [\\/]* | ?:[\\/]*)
13312 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $gcc_cv_tool_dirs
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 break 2
13326 done
13327 done
13328 IFS=$as_save_IFS
13331 esac
13333 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13334 if test -n "$WINDRES_FOR_TARGET"; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13336 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13337 else
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339 $as_echo "no" >&6; }
13344 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13347 if test -n "$WINDRES_FOR_TARGET"; then
13348 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13349 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13350 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13353 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13354 for ncn_progname in windres; do
13355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13356 set dummy ${ncn_progname}; ac_word=$2
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13358 $as_echo_n "checking for $ac_word... " >&6; }
13359 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 if test -n "$WINDRES_FOR_TARGET"; then
13363 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13364 else
13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $PATH
13368 IFS=$as_save_IFS
13369 test -z "$as_dir" && as_dir=.
13370 for ac_exec_ext in '' $ac_executable_extensions; do
13371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13372 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13374 break 2
13376 done
13377 done
13378 IFS=$as_save_IFS
13382 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13383 if test -n "$WINDRES_FOR_TARGET"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13385 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13392 done
13395 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13396 for ncn_progname in windres; do
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13398 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13399 if test -x $with_build_time_tools/${ncn_progname}; then
13400 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13402 $as_echo "yes" >&6; }
13403 break
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13408 done
13411 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13412 for ncn_progname in windres; do
13413 if test -n "$ncn_target_tool_prefix"; then
13414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13415 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417 $as_echo_n "checking for $ac_word... " >&6; }
13418 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 if test -n "$WINDRES_FOR_TARGET"; then
13422 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13423 else
13424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425 for as_dir in $PATH
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13431 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13433 break 2
13435 done
13436 done
13437 IFS=$as_save_IFS
13441 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13442 if test -n "$WINDRES_FOR_TARGET"; then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13444 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13445 else
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447 $as_echo "no" >&6; }
13452 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13454 set dummy ${ncn_progname}; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 if test -n "$WINDRES_FOR_TARGET"; then
13461 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13462 else
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13474 done
13475 done
13476 IFS=$as_save_IFS
13480 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13481 if test -n "$WINDRES_FOR_TARGET"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13483 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13484 else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486 $as_echo "no" >&6; }
13491 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13492 done
13495 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13496 set dummy windres
13497 if test $build = $target ; then
13498 WINDRES_FOR_TARGET="$2"
13499 else
13500 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13502 else
13503 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13506 else
13507 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13513 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13514 if test -n "$with_build_time_tools"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13516 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13517 if test -x $with_build_time_tools/windmc; then
13518 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13519 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13521 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13522 else
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13524 $as_echo "no" >&6; }
13526 elif test $build != $host && test $have_gcc_for_target = yes; then
13527 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13528 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13529 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13532 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13533 # Extract the first word of "windmc", so it can be a program name with args.
13534 set dummy windmc; ac_word=$2
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536 $as_echo_n "checking for $ac_word... " >&6; }
13537 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540 case $WINDMC_FOR_TARGET in
13541 [\\/]* | ?:[\\/]*)
13542 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13546 for as_dir in $gcc_cv_tool_dirs
13548 IFS=$as_save_IFS
13549 test -z "$as_dir" && as_dir=.
13550 for ac_exec_ext in '' $ac_executable_extensions; do
13551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13552 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13554 break 2
13556 done
13557 done
13558 IFS=$as_save_IFS
13561 esac
13563 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13564 if test -n "$WINDMC_FOR_TARGET"; then
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13566 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569 $as_echo "no" >&6; }
13574 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13577 if test -n "$WINDMC_FOR_TARGET"; then
13578 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13579 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13580 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13583 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13584 for ncn_progname in windmc; do
13585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13586 set dummy ${ncn_progname}; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 if test -n "$WINDMC_FOR_TARGET"; then
13593 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13594 else
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13602 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13606 done
13607 done
13608 IFS=$as_save_IFS
13612 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13613 if test -n "$WINDMC_FOR_TARGET"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13615 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13622 done
13625 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13626 for ncn_progname in windmc; do
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13628 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13629 if test -x $with_build_time_tools/${ncn_progname}; then
13630 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13632 $as_echo "yes" >&6; }
13633 break
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13638 done
13641 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13642 for ncn_progname in windmc; do
13643 if test -n "$ncn_target_tool_prefix"; then
13644 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13645 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647 $as_echo_n "checking for $ac_word... " >&6; }
13648 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
13650 else
13651 if test -n "$WINDMC_FOR_TARGET"; then
13652 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13653 else
13654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655 for as_dir in $PATH
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13661 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13663 break 2
13665 done
13666 done
13667 IFS=$as_save_IFS
13671 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13672 if test -n "$WINDMC_FOR_TARGET"; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13674 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13675 else
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677 $as_echo "no" >&6; }
13682 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13684 set dummy ${ncn_progname}; ac_word=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 if test -n "$WINDMC_FOR_TARGET"; then
13691 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13692 else
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13696 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=.
13698 for ac_exec_ext in '' $ac_executable_extensions; do
13699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13700 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 break 2
13704 done
13705 done
13706 IFS=$as_save_IFS
13710 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13711 if test -n "$WINDMC_FOR_TARGET"; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13713 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13714 else
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13721 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13722 done
13725 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13726 set dummy windmc
13727 if test $build = $target ; then
13728 WINDMC_FOR_TARGET="$2"
13729 else
13730 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13732 else
13733 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13736 else
13737 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13741 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13744 $as_echo_n "checking where to find the target ar... " >&6; }
13745 if test "x${build}" != "x${host}" ; then
13746 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13747 # We already found the complete path
13748 ac_dir=`dirname $AR_FOR_TARGET`
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13750 $as_echo "pre-installed in $ac_dir" >&6; }
13751 else
13752 # Canadian cross, just use what we found
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754 $as_echo "pre-installed" >&6; }
13756 else
13757 ok=yes
13758 case " ${configdirs} " in
13759 *" binutils "*) ;;
13760 *) ok=no ;;
13761 esac
13763 if test $ok = yes; then
13764 # An in-tree tool is available and we can use it
13765 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13767 $as_echo "just compiled" >&6; }
13768 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
13770 ac_dir=`dirname $AR_FOR_TARGET`
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772 $as_echo "pre-installed in $ac_dir" >&6; }
13773 elif test "x$target" = "x$host"; then
13774 # We can use an host tool
13775 AR_FOR_TARGET='$(AR)'
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13777 $as_echo "host tool" >&6; }
13778 else
13779 # We need a cross tool
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781 $as_echo "pre-installed" >&6; }
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13786 $as_echo_n "checking where to find the target as... " >&6; }
13787 if test "x${build}" != "x${host}" ; then
13788 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
13790 ac_dir=`dirname $AS_FOR_TARGET`
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792 $as_echo "pre-installed in $ac_dir" >&6; }
13793 else
13794 # Canadian cross, just use what we found
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796 $as_echo "pre-installed" >&6; }
13798 else
13799 ok=yes
13800 case " ${configdirs} " in
13801 *" gas "*) ;;
13802 *) ok=no ;;
13803 esac
13805 if test $ok = yes; then
13806 # An in-tree tool is available and we can use it
13807 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13809 $as_echo "just compiled" >&6; }
13810 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
13812 ac_dir=`dirname $AS_FOR_TARGET`
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814 $as_echo "pre-installed in $ac_dir" >&6; }
13815 elif test "x$target" = "x$host"; then
13816 # We can use an host tool
13817 AS_FOR_TARGET='$(AS)'
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13819 $as_echo "host tool" >&6; }
13820 else
13821 # We need a cross tool
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13823 $as_echo "pre-installed" >&6; }
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13828 $as_echo_n "checking where to find the target cc... " >&6; }
13829 if test "x${build}" != "x${host}" ; then
13830 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13831 # We already found the complete path
13832 ac_dir=`dirname $CC_FOR_TARGET`
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13834 $as_echo "pre-installed in $ac_dir" >&6; }
13835 else
13836 # Canadian cross, just use what we found
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13838 $as_echo "pre-installed" >&6; }
13840 else
13841 ok=yes
13842 case " ${configdirs} " in
13843 *" gcc "*) ;;
13844 *) ok=no ;;
13845 esac
13847 if test $ok = yes; then
13848 # An in-tree tool is available and we can use it
13849 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13851 $as_echo "just compiled" >&6; }
13852 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
13854 ac_dir=`dirname $CC_FOR_TARGET`
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856 $as_echo "pre-installed in $ac_dir" >&6; }
13857 elif test "x$target" = "x$host"; then
13858 # We can use an host tool
13859 CC_FOR_TARGET='$(CC)'
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13861 $as_echo "host tool" >&6; }
13862 else
13863 # We need a cross tool
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13865 $as_echo "pre-installed" >&6; }
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13870 $as_echo_n "checking where to find the target c++... " >&6; }
13871 if test "x${build}" != "x${host}" ; then
13872 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13873 # We already found the complete path
13874 ac_dir=`dirname $CXX_FOR_TARGET`
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13876 $as_echo "pre-installed in $ac_dir" >&6; }
13877 else
13878 # Canadian cross, just use what we found
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13880 $as_echo "pre-installed" >&6; }
13882 else
13883 ok=yes
13884 case " ${configdirs} " in
13885 *" gcc "*) ;;
13886 *) ok=no ;;
13887 esac
13888 case ,${enable_languages}, in
13889 *,c++,*) ;;
13890 *) ok=no ;;
13891 esac
13892 if test $ok = yes; then
13893 # An in-tree tool is available and we can use it
13894 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'
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13896 $as_echo "just compiled" >&6; }
13897 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13898 # We already found the complete path
13899 ac_dir=`dirname $CXX_FOR_TARGET`
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13901 $as_echo "pre-installed in $ac_dir" >&6; }
13902 elif test "x$target" = "x$host"; then
13903 # We can use an host tool
13904 CXX_FOR_TARGET='$(CXX)'
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13906 $as_echo "host tool" >&6; }
13907 else
13908 # We need a cross tool
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13910 $as_echo "pre-installed" >&6; }
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13915 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13916 if test "x${build}" != "x${host}" ; then
13917 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13918 # We already found the complete path
13919 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921 $as_echo "pre-installed in $ac_dir" >&6; }
13922 else
13923 # Canadian cross, just use what we found
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13925 $as_echo "pre-installed" >&6; }
13927 else
13928 ok=yes
13929 case " ${configdirs} " in
13930 *" gcc "*) ;;
13931 *) ok=no ;;
13932 esac
13933 case ,${enable_languages}, in
13934 *,c++,*) ;;
13935 *) ok=no ;;
13936 esac
13937 if test $ok = yes; then
13938 # An in-tree tool is available and we can use it
13939 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'
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13941 $as_echo "just compiled" >&6; }
13942 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
13944 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946 $as_echo "pre-installed in $ac_dir" >&6; }
13947 elif test "x$target" = "x$host"; then
13948 # We can use an host tool
13949 RAW_CXX_FOR_TARGET='$(CXX)'
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13951 $as_echo "host tool" >&6; }
13952 else
13953 # We need a cross tool
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955 $as_echo "pre-installed" >&6; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13960 $as_echo_n "checking where to find the target dlltool... " >&6; }
13961 if test "x${build}" != "x${host}" ; then
13962 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966 $as_echo "pre-installed in $ac_dir" >&6; }
13967 else
13968 # Canadian cross, just use what we found
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970 $as_echo "pre-installed" >&6; }
13972 else
13973 ok=yes
13974 case " ${configdirs} " in
13975 *" binutils "*) ;;
13976 *) ok=no ;;
13977 esac
13979 if test $ok = yes; then
13980 # An in-tree tool is available and we can use it
13981 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13983 $as_echo "just compiled" >&6; }
13984 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13985 # We already found the complete path
13986 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13988 $as_echo "pre-installed in $ac_dir" >&6; }
13989 elif test "x$target" = "x$host"; then
13990 # We can use an host tool
13991 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13993 $as_echo "host tool" >&6; }
13994 else
13995 # We need a cross tool
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13997 $as_echo "pre-installed" >&6; }
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14002 $as_echo_n "checking where to find the target gcc... " >&6; }
14003 if test "x${build}" != "x${host}" ; then
14004 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14005 # We already found the complete path
14006 ac_dir=`dirname $GCC_FOR_TARGET`
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14008 $as_echo "pre-installed in $ac_dir" >&6; }
14009 else
14010 # Canadian cross, just use what we found
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14012 $as_echo "pre-installed" >&6; }
14014 else
14015 ok=yes
14016 case " ${configdirs} " in
14017 *" gcc "*) ;;
14018 *) ok=no ;;
14019 esac
14021 if test $ok = yes; then
14022 # An in-tree tool is available and we can use it
14023 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14025 $as_echo "just compiled" >&6; }
14026 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14027 # We already found the complete path
14028 ac_dir=`dirname $GCC_FOR_TARGET`
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14030 $as_echo "pre-installed in $ac_dir" >&6; }
14031 elif test "x$target" = "x$host"; then
14032 # We can use an host tool
14033 GCC_FOR_TARGET='$()'
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14035 $as_echo "host tool" >&6; }
14036 else
14037 # We need a cross tool
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14039 $as_echo "pre-installed" >&6; }
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14044 $as_echo_n "checking where to find the target gcj... " >&6; }
14045 if test "x${build}" != "x${host}" ; then
14046 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14047 # We already found the complete path
14048 ac_dir=`dirname $GCJ_FOR_TARGET`
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14050 $as_echo "pre-installed in $ac_dir" >&6; }
14051 else
14052 # Canadian cross, just use what we found
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14054 $as_echo "pre-installed" >&6; }
14056 else
14057 ok=yes
14058 case " ${configdirs} " in
14059 *" gcc "*) ;;
14060 *) ok=no ;;
14061 esac
14062 case ,${enable_languages}, in
14063 *,java,*) ;;
14064 *) ok=no ;;
14065 esac
14066 if test $ok = yes; then
14067 # An in-tree tool is available and we can use it
14068 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14070 $as_echo "just compiled" >&6; }
14071 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
14073 ac_dir=`dirname $GCJ_FOR_TARGET`
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075 $as_echo "pre-installed in $ac_dir" >&6; }
14076 elif test "x$target" = "x$host"; then
14077 # We can use an host tool
14078 GCJ_FOR_TARGET='$(GCJ)'
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14080 $as_echo "host tool" >&6; }
14081 else
14082 # We need a cross tool
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14084 $as_echo "pre-installed" >&6; }
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14089 $as_echo_n "checking where to find the target gfortran... " >&6; }
14090 if test "x${build}" != "x${host}" ; then
14091 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14092 # We already found the complete path
14093 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14095 $as_echo "pre-installed in $ac_dir" >&6; }
14096 else
14097 # Canadian cross, just use what we found
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099 $as_echo "pre-installed" >&6; }
14101 else
14102 ok=yes
14103 case " ${configdirs} " in
14104 *" gcc "*) ;;
14105 *) ok=no ;;
14106 esac
14107 case ,${enable_languages}, in
14108 *,fortran,*) ;;
14109 *) ok=no ;;
14110 esac
14111 if test $ok = yes; then
14112 # An in-tree tool is available and we can use it
14113 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14115 $as_echo "just compiled" >&6; }
14116 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
14118 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120 $as_echo "pre-installed in $ac_dir" >&6; }
14121 elif test "x$target" = "x$host"; then
14122 # We can use an host tool
14123 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14125 $as_echo "host tool" >&6; }
14126 else
14127 # We need a cross tool
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14129 $as_echo "pre-installed" >&6; }
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14134 $as_echo_n "checking where to find the target gccgo... " >&6; }
14135 if test "x${build}" != "x${host}" ; then
14136 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
14138 ac_dir=`dirname $GOC_FOR_TARGET`
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140 $as_echo "pre-installed in $ac_dir" >&6; }
14141 else
14142 # Canadian cross, just use what we found
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144 $as_echo "pre-installed" >&6; }
14146 else
14147 ok=yes
14148 case " ${configdirs} " in
14149 *" gcc "*) ;;
14150 *) ok=no ;;
14151 esac
14152 case ,${enable_languages}, in
14153 *,go,*) ;;
14154 *) ok=no ;;
14155 esac
14156 if test $ok = yes; then
14157 # An in-tree tool is available and we can use it
14158 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14160 $as_echo "just compiled" >&6; }
14161 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14162 # We already found the complete path
14163 ac_dir=`dirname $GOC_FOR_TARGET`
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14165 $as_echo "pre-installed in $ac_dir" >&6; }
14166 elif test "x$target" = "x$host"; then
14167 # We can use an host tool
14168 GOC_FOR_TARGET='$(GOC)'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14170 $as_echo "host tool" >&6; }
14171 else
14172 # We need a cross tool
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14174 $as_echo "pre-installed" >&6; }
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14179 $as_echo_n "checking where to find the target ld... " >&6; }
14180 if test "x${build}" != "x${host}" ; then
14181 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $LD_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14186 else
14187 # Canadian cross, just use what we found
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14189 $as_echo "pre-installed" >&6; }
14191 else
14192 ok=yes
14193 case " ${configdirs} " in
14194 *" ld "*) ;;
14195 *) ok=no ;;
14196 esac
14198 if test $ok = yes; then
14199 # An in-tree tool is available and we can use it
14200 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14202 $as_echo "just compiled" >&6; }
14203 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
14205 ac_dir=`dirname $LD_FOR_TARGET`
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207 $as_echo "pre-installed in $ac_dir" >&6; }
14208 elif test "x$target" = "x$host"; then
14209 # We can use an host tool
14210 LD_FOR_TARGET='$(LD)'
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14212 $as_echo "host tool" >&6; }
14213 else
14214 # We need a cross tool
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14216 $as_echo "pre-installed" >&6; }
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14221 $as_echo_n "checking where to find the target lipo... " >&6; }
14222 if test "x${build}" != "x${host}" ; then
14223 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
14225 ac_dir=`dirname $LIPO_FOR_TARGET`
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227 $as_echo "pre-installed in $ac_dir" >&6; }
14228 else
14229 # Canadian cross, just use what we found
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14231 $as_echo "pre-installed" >&6; }
14233 else
14234 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
14236 ac_dir=`dirname $LIPO_FOR_TARGET`
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238 $as_echo "pre-installed in $ac_dir" >&6; }
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 LIPO_FOR_TARGET='$(LIPO)'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243 $as_echo "host tool" >&6; }
14244 else
14245 # We need a cross tool
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14252 $as_echo_n "checking where to find the target nm... " >&6; }
14253 if test "x${build}" != "x${host}" ; then
14254 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $NM_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14259 else
14260 # Canadian cross, just use what we found
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262 $as_echo "pre-installed" >&6; }
14264 else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275 $as_echo "just compiled" >&6; }
14276 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
14278 ac_dir=`dirname $NM_FOR_TARGET`
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280 $as_echo "pre-installed in $ac_dir" >&6; }
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 NM_FOR_TARGET='$(NM)'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285 $as_echo "host tool" >&6; }
14286 else
14287 # We need a cross tool
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14294 $as_echo_n "checking where to find the target objdump... " >&6; }
14295 if test "x${build}" != "x${host}" ; then
14296 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14301 else
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304 $as_echo "pre-installed" >&6; }
14306 else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317 $as_echo "just compiled" >&6; }
14318 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322 $as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327 $as_echo "host tool" >&6; }
14328 else
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14336 $as_echo_n "checking where to find the target ranlib... " >&6; }
14337 if test "x${build}" != "x${host}" ; then
14338 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $RANLIB_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343 else
14344 # Canadian cross, just use what we found
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346 $as_echo "pre-installed" >&6; }
14348 else
14349 ok=yes
14350 case " ${configdirs} " in
14351 *" binutils "*) ;;
14352 *) ok=no ;;
14353 esac
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
14357 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359 $as_echo "just compiled" >&6; }
14360 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
14362 ac_dir=`dirname $RANLIB_FOR_TARGET`
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364 $as_echo "pre-installed in $ac_dir" >&6; }
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 RANLIB_FOR_TARGET='$(RANLIB)'
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369 $as_echo "host tool" >&6; }
14370 else
14371 # We need a cross tool
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373 $as_echo "pre-installed" >&6; }
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14378 $as_echo_n "checking where to find the target readelf... " >&6; }
14379 if test "x${build}" != "x${host}" ; then
14380 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $READELF_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384 $as_echo "pre-installed in $ac_dir" >&6; }
14385 else
14386 # Canadian cross, just use what we found
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388 $as_echo "pre-installed" >&6; }
14390 else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" binutils "*) ;;
14394 *) ok=no ;;
14395 esac
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401 $as_echo "just compiled" >&6; }
14402 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
14404 ac_dir=`dirname $READELF_FOR_TARGET`
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406 $as_echo "pre-installed in $ac_dir" >&6; }
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 READELF_FOR_TARGET='$(READELF)'
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411 $as_echo "host tool" >&6; }
14412 else
14413 # We need a cross tool
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415 $as_echo "pre-installed" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14420 $as_echo_n "checking where to find the target strip... " >&6; }
14421 if test "x${build}" != "x${host}" ; then
14422 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $STRIP_FOR_TARGET`
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426 $as_echo "pre-installed in $ac_dir" >&6; }
14427 else
14428 # Canadian cross, just use what we found
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430 $as_echo "pre-installed" >&6; }
14432 else
14433 ok=yes
14434 case " ${configdirs} " in
14435 *" binutils "*) ;;
14436 *) ok=no ;;
14437 esac
14439 if test $ok = yes; then
14440 # An in-tree tool is available and we can use it
14441 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14443 $as_echo "just compiled" >&6; }
14444 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
14446 ac_dir=`dirname $STRIP_FOR_TARGET`
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448 $as_echo "pre-installed in $ac_dir" >&6; }
14449 elif test "x$target" = "x$host"; then
14450 # We can use an host tool
14451 STRIP_FOR_TARGET='$(STRIP)'
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14453 $as_echo "host tool" >&6; }
14454 else
14455 # We need a cross tool
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457 $as_echo "pre-installed" >&6; }
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14462 $as_echo_n "checking where to find the target windres... " >&6; }
14463 if test "x${build}" != "x${host}" ; then
14464 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
14466 ac_dir=`dirname $WINDRES_FOR_TARGET`
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468 $as_echo "pre-installed in $ac_dir" >&6; }
14469 else
14470 # Canadian cross, just use what we found
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14472 $as_echo "pre-installed" >&6; }
14474 else
14475 ok=yes
14476 case " ${configdirs} " in
14477 *" binutils "*) ;;
14478 *) ok=no ;;
14479 esac
14481 if test $ok = yes; then
14482 # An in-tree tool is available and we can use it
14483 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14485 $as_echo "just compiled" >&6; }
14486 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14487 # We already found the complete path
14488 ac_dir=`dirname $WINDRES_FOR_TARGET`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14490 $as_echo "pre-installed in $ac_dir" >&6; }
14491 elif test "x$target" = "x$host"; then
14492 # We can use an host tool
14493 WINDRES_FOR_TARGET='$(WINDRES)'
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14495 $as_echo "host tool" >&6; }
14496 else
14497 # We need a cross tool
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14499 $as_echo "pre-installed" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14504 $as_echo_n "checking where to find the target windmc... " >&6; }
14505 if test "x${build}" != "x${host}" ; then
14506 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14507 # We already found the complete path
14508 ac_dir=`dirname $WINDMC_FOR_TARGET`
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14510 $as_echo "pre-installed in $ac_dir" >&6; }
14511 else
14512 # Canadian cross, just use what we found
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14514 $as_echo "pre-installed" >&6; }
14516 else
14517 ok=yes
14518 case " ${configdirs} " in
14519 *" binutils "*) ;;
14520 *) ok=no ;;
14521 esac
14523 if test $ok = yes; then
14524 # An in-tree tool is available and we can use it
14525 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14527 $as_echo "just compiled" >&6; }
14528 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14529 # We already found the complete path
14530 ac_dir=`dirname $WINDMC_FOR_TARGET`
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14532 $as_echo "pre-installed in $ac_dir" >&6; }
14533 elif test "x$target" = "x$host"; then
14534 # We can use an host tool
14535 WINDMC_FOR_TARGET='$(WINDMC)'
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14537 $as_echo "host tool" >&6; }
14538 else
14539 # We need a cross tool
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14541 $as_echo "pre-installed" >&6; }
14549 # Certain tools may need extra flags.
14550 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14551 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14552 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14554 # When building target libraries, except in a Canadian cross, we use
14555 # the same toolchain as the compiler we just built.
14556 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14557 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14558 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14559 if test $host = $build; then
14560 case " $configdirs " in
14561 *" gcc "*)
14562 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14563 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14564 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14566 esac
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14574 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14575 # Check whether --enable-maintainer-mode was given.
14576 if test "${enable_maintainer_mode+set}" = set; then :
14577 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14578 else
14579 USE_MAINTAINER_MODE=no
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14583 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14586 if test "$USE_MAINTAINER_MODE" = yes; then
14587 MAINTAINER_MODE_TRUE=
14588 MAINTAINER_MODE_FALSE='#'
14589 else
14590 MAINTAINER_MODE_TRUE='#'
14591 MAINTAINER_MODE_FALSE=
14593 MAINT=$MAINTAINER_MODE_TRUE
14595 # ---------------------
14596 # GCC bootstrap support
14597 # ---------------------
14599 # Stage specific cflags for build.
14600 stage1_cflags="-g"
14601 case $build in
14602 vax-*-*)
14603 case ${GCC} in
14604 yes) stage1_cflags="-g -Wa,-J" ;;
14605 *) stage1_cflags="-g -J" ;;
14606 esac ;;
14607 esac
14611 # Enable --enable-checking in stage1 of the compiler.
14612 # Check whether --enable-stage1-checking was given.
14613 if test "${enable_stage1_checking+set}" = set; then :
14614 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14615 else
14616 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14617 stage1_checking=--enable-checking=yes,types
14618 else
14619 stage1_checking=--enable-checking=$enable_checking,types
14625 # Enable -Werror in bootstrap stage2 and later.
14626 # Check whether --enable-werror was given.
14627 if test "${enable_werror+set}" = set; then :
14628 enableval=$enable_werror;
14629 else
14630 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14631 enable_werror=yes
14632 else
14633 enable_werror=no
14637 case ${enable_werror} in
14638 yes) stage2_werror_flag="--enable-werror-always" ;;
14639 *) stage2_werror_flag="" ;;
14640 esac
14643 # Enable --enable-host-shared.
14644 # Check whether --enable-host-shared was given.
14645 if test "${enable_host_shared+set}" = set; then :
14646 enableval=$enable_host_shared; host_shared=$enableval
14647 else
14648 host_shared=no
14653 # Specify what files to not compare during bootstrap.
14655 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14656 case "$target" in
14657 hppa*64*-*-hpux*) ;;
14658 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14659 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14660 esac
14663 ac_config_files="$ac_config_files Makefile"
14665 cat >confcache <<\_ACEOF
14666 # This file is a shell script that caches the results of configure
14667 # tests run on this system so they can be shared between configure
14668 # scripts and configure runs, see configure's option --config-cache.
14669 # It is not useful on other systems. If it contains results you don't
14670 # want to keep, you may remove or edit it.
14672 # config.status only pays attention to the cache file if you give it
14673 # the --recheck option to rerun configure.
14675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14677 # following values.
14679 _ACEOF
14681 # The following way of writing the cache mishandles newlines in values,
14682 # but we know of no workaround that is simple, portable, and efficient.
14683 # So, we kill variables containing newlines.
14684 # Ultrix sh set writes to stderr and can't be redirected directly,
14685 # and sets the high bit in the cache file unless we assign to the vars.
14687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14688 eval ac_val=\$$ac_var
14689 case $ac_val in #(
14690 *${as_nl}*)
14691 case $ac_var in #(
14692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14694 esac
14695 case $ac_var in #(
14696 _ | IFS | as_nl) ;; #(
14697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14698 *) { eval $ac_var=; unset $ac_var;} ;;
14699 esac ;;
14700 esac
14701 done
14703 (set) 2>&1 |
14704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14705 *${as_nl}ac_space=\ *)
14706 # `set' does not quote correctly, so add quotes: double-quote
14707 # substitution turns \\\\ into \\, and sed turns \\ into \.
14708 sed -n \
14709 "s/'/'\\\\''/g;
14710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14711 ;; #(
14713 # `set' quotes correctly as required by POSIX, so do not add quotes.
14714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14716 esac |
14717 sort
14719 sed '
14720 /^ac_cv_env_/b end
14721 t clear
14722 :clear
14723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14724 t end
14725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14726 :end' >>confcache
14727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14728 if test -w "$cache_file"; then
14729 test "x$cache_file" != "x/dev/null" &&
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14731 $as_echo "$as_me: updating cache $cache_file" >&6;}
14732 cat confcache >$cache_file
14733 else
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14738 rm -f confcache
14740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14741 # Let make expand exec_prefix.
14742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14744 # Transform confdefs.h into DEFS.
14745 # Protect against shell expansion while executing Makefile rules.
14746 # Protect against Makefile macro expansion.
14748 # If the first sed substitution is executed (which looks for macros that
14749 # take arguments), then branch to the quote section. Otherwise,
14750 # look for a macro that doesn't take arguments.
14751 ac_script='
14752 :mline
14753 /\\$/{
14755 s,\\\n,,
14756 b mline
14758 t clear
14759 :clear
14760 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14761 t quote
14762 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14763 t quote
14764 b any
14765 :quote
14766 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14767 s/\[/\\&/g
14768 s/\]/\\&/g
14769 s/\$/$$/g
14771 :any
14774 s/^\n//
14775 s/\n/ /g
14779 DEFS=`sed -n "$ac_script" confdefs.h`
14782 ac_libobjs=
14783 ac_ltlibobjs=
14784 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14785 # 1. Remove the extension, and $U if already installed.
14786 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14787 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14788 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14789 # will be set to the directory where LIBOBJS objects are built.
14790 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14791 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14792 done
14793 LIBOBJS=$ac_libobjs
14795 LTLIBOBJS=$ac_ltlibobjs
14799 : ${CONFIG_STATUS=./config.status}
14800 ac_write_fail=0
14801 ac_clean_files_save=$ac_clean_files
14802 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14804 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14805 as_write_fail=0
14806 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14807 #! $SHELL
14808 # Generated by $as_me.
14809 # Run this file to recreate the current configuration.
14810 # Compiler output produced by configure, useful for debugging
14811 # configure, is in config.log if it exists.
14813 debug=false
14814 ac_cs_recheck=false
14815 ac_cs_silent=false
14817 SHELL=\${CONFIG_SHELL-$SHELL}
14818 export SHELL
14819 _ASEOF
14820 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14821 ## -------------------- ##
14822 ## M4sh Initialization. ##
14823 ## -------------------- ##
14825 # Be more Bourne compatible
14826 DUALCASE=1; export DUALCASE # for MKS sh
14827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14828 emulate sh
14829 NULLCMD=:
14830 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14831 # is contrary to our usage. Disable this feature.
14832 alias -g '${1+"$@"}'='"$@"'
14833 setopt NO_GLOB_SUBST
14834 else
14835 case `(set -o) 2>/dev/null` in #(
14836 *posix*) :
14837 set -o posix ;; #(
14838 *) :
14840 esac
14844 as_nl='
14846 export as_nl
14847 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14848 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14851 # Prefer a ksh shell builtin over an external printf program on Solaris,
14852 # but without wasting forks for bash or zsh.
14853 if test -z "$BASH_VERSION$ZSH_VERSION" \
14854 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14855 as_echo='print -r --'
14856 as_echo_n='print -rn --'
14857 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14858 as_echo='printf %s\n'
14859 as_echo_n='printf %s'
14860 else
14861 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14862 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14863 as_echo_n='/usr/ucb/echo -n'
14864 else
14865 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14866 as_echo_n_body='eval
14867 arg=$1;
14868 case $arg in #(
14869 *"$as_nl"*)
14870 expr "X$arg" : "X\\(.*\\)$as_nl";
14871 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14872 esac;
14873 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14875 export as_echo_n_body
14876 as_echo_n='sh -c $as_echo_n_body as_echo'
14878 export as_echo_body
14879 as_echo='sh -c $as_echo_body as_echo'
14882 # The user is always right.
14883 if test "${PATH_SEPARATOR+set}" != set; then
14884 PATH_SEPARATOR=:
14885 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14886 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14887 PATH_SEPARATOR=';'
14892 # IFS
14893 # We need space, tab and new line, in precisely that order. Quoting is
14894 # there to prevent editors from complaining about space-tab.
14895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14896 # splitting by setting IFS to empty value.)
14897 IFS=" "" $as_nl"
14899 # Find who we are. Look in the path if we contain no directory separator.
14900 case $0 in #((
14901 *[\\/]* ) as_myself=$0 ;;
14902 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903 for as_dir in $PATH
14905 IFS=$as_save_IFS
14906 test -z "$as_dir" && as_dir=.
14907 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14908 done
14909 IFS=$as_save_IFS
14912 esac
14913 # We did not find ourselves, most probably we were run as `sh COMMAND'
14914 # in which case we are not to be found in the path.
14915 if test "x$as_myself" = x; then
14916 as_myself=$0
14918 if test ! -f "$as_myself"; then
14919 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14920 exit 1
14923 # Unset variables that we do not need and which cause bugs (e.g. in
14924 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14925 # suppresses any "Segmentation fault" message there. '((' could
14926 # trigger a bug in pdksh 5.2.14.
14927 for as_var in BASH_ENV ENV MAIL MAILPATH
14928 do eval test x\${$as_var+set} = xset \
14929 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14930 done
14931 PS1='$ '
14932 PS2='> '
14933 PS4='+ '
14935 # NLS nuisances.
14936 LC_ALL=C
14937 export LC_ALL
14938 LANGUAGE=C
14939 export LANGUAGE
14941 # CDPATH.
14942 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14945 # as_fn_error ERROR [LINENO LOG_FD]
14946 # ---------------------------------
14947 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14948 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14949 # script with status $?, using 1 if that was 0.
14950 as_fn_error ()
14952 as_status=$?; test $as_status -eq 0 && as_status=1
14953 if test "$3"; then
14954 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14955 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14957 $as_echo "$as_me: error: $1" >&2
14958 as_fn_exit $as_status
14959 } # as_fn_error
14962 # as_fn_set_status STATUS
14963 # -----------------------
14964 # Set $? to STATUS, without forking.
14965 as_fn_set_status ()
14967 return $1
14968 } # as_fn_set_status
14970 # as_fn_exit STATUS
14971 # -----------------
14972 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14973 as_fn_exit ()
14975 set +e
14976 as_fn_set_status $1
14977 exit $1
14978 } # as_fn_exit
14980 # as_fn_unset VAR
14981 # ---------------
14982 # Portably unset VAR.
14983 as_fn_unset ()
14985 { eval $1=; unset $1;}
14987 as_unset=as_fn_unset
14988 # as_fn_append VAR VALUE
14989 # ----------------------
14990 # Append the text in VALUE to the end of the definition contained in VAR. Take
14991 # advantage of any shell optimizations that allow amortized linear growth over
14992 # repeated appends, instead of the typical quadratic growth present in naive
14993 # implementations.
14994 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14995 eval 'as_fn_append ()
14997 eval $1+=\$2
14999 else
15000 as_fn_append ()
15002 eval $1=\$$1\$2
15004 fi # as_fn_append
15006 # as_fn_arith ARG...
15007 # ------------------
15008 # Perform arithmetic evaluation on the ARGs, and store the result in the
15009 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15010 # must be portable across $(()) and expr.
15011 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15012 eval 'as_fn_arith ()
15014 as_val=$(( $* ))
15016 else
15017 as_fn_arith ()
15019 as_val=`expr "$@" || test $? -eq 1`
15021 fi # as_fn_arith
15024 if expr a : '\(a\)' >/dev/null 2>&1 &&
15025 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15026 as_expr=expr
15027 else
15028 as_expr=false
15031 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15032 as_basename=basename
15033 else
15034 as_basename=false
15037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15038 as_dirname=dirname
15039 else
15040 as_dirname=false
15043 as_me=`$as_basename -- "$0" ||
15044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15045 X"$0" : 'X\(//\)$' \| \
15046 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15047 $as_echo X/"$0" |
15048 sed '/^.*\/\([^/][^/]*\)\/*$/{
15049 s//\1/
15052 /^X\/\(\/\/\)$/{
15053 s//\1/
15056 /^X\/\(\/\).*/{
15057 s//\1/
15060 s/.*/./; q'`
15062 # Avoid depending upon Character Ranges.
15063 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15064 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15065 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15066 as_cr_digits='0123456789'
15067 as_cr_alnum=$as_cr_Letters$as_cr_digits
15069 ECHO_C= ECHO_N= ECHO_T=
15070 case `echo -n x` in #(((((
15071 -n*)
15072 case `echo 'xy\c'` in
15073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15074 xy) ECHO_C='\c';;
15075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15076 ECHO_T=' ';;
15077 esac;;
15079 ECHO_N='-n';;
15080 esac
15082 rm -f conf$$ conf$$.exe conf$$.file
15083 if test -d conf$$.dir; then
15084 rm -f conf$$.dir/conf$$.file
15085 else
15086 rm -f conf$$.dir
15087 mkdir conf$$.dir 2>/dev/null
15089 if (echo >conf$$.file) 2>/dev/null; then
15090 if ln -s conf$$.file conf$$ 2>/dev/null; then
15091 as_ln_s='ln -s'
15092 # ... but there are two gotchas:
15093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15095 # In both cases, we have to default to `cp -p'.
15096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15097 as_ln_s='cp -p'
15098 elif ln conf$$.file conf$$ 2>/dev/null; then
15099 as_ln_s=ln
15100 else
15101 as_ln_s='cp -p'
15103 else
15104 as_ln_s='cp -p'
15106 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15107 rmdir conf$$.dir 2>/dev/null
15110 # as_fn_mkdir_p
15111 # -------------
15112 # Create "$as_dir" as a directory, including parents if necessary.
15113 as_fn_mkdir_p ()
15116 case $as_dir in #(
15117 -*) as_dir=./$as_dir;;
15118 esac
15119 test -d "$as_dir" || eval $as_mkdir_p || {
15120 as_dirs=
15121 while :; do
15122 case $as_dir in #(
15123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15124 *) as_qdir=$as_dir;;
15125 esac
15126 as_dirs="'$as_qdir' $as_dirs"
15127 as_dir=`$as_dirname -- "$as_dir" ||
15128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15129 X"$as_dir" : 'X\(//\)[^/]' \| \
15130 X"$as_dir" : 'X\(//\)$' \| \
15131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15132 $as_echo X"$as_dir" |
15133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15134 s//\1/
15137 /^X\(\/\/\)[^/].*/{
15138 s//\1/
15141 /^X\(\/\/\)$/{
15142 s//\1/
15145 /^X\(\/\).*/{
15146 s//\1/
15149 s/.*/./; q'`
15150 test -d "$as_dir" && break
15151 done
15152 test -z "$as_dirs" || eval "mkdir $as_dirs"
15153 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15156 } # as_fn_mkdir_p
15157 if mkdir -p . 2>/dev/null; then
15158 as_mkdir_p='mkdir -p "$as_dir"'
15159 else
15160 test -d ./-p && rmdir ./-p
15161 as_mkdir_p=false
15164 if test -x / >/dev/null 2>&1; then
15165 as_test_x='test -x'
15166 else
15167 if ls -dL / >/dev/null 2>&1; then
15168 as_ls_L_option=L
15169 else
15170 as_ls_L_option=
15172 as_test_x='
15173 eval sh -c '\''
15174 if test -d "$1"; then
15175 test -d "$1/.";
15176 else
15177 case $1 in #(
15178 -*)set "./$1";;
15179 esac;
15180 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15181 ???[sx]*):;;*)false;;esac;fi
15182 '\'' sh
15185 as_executable_p=$as_test_x
15187 # Sed expression to map a string onto a valid CPP name.
15188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15190 # Sed expression to map a string onto a valid variable name.
15191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15194 exec 6>&1
15195 ## ----------------------------------- ##
15196 ## Main body of $CONFIG_STATUS script. ##
15197 ## ----------------------------------- ##
15198 _ASEOF
15199 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15202 # Save the log message, to keep $0 and so on meaningful, and to
15203 # report actual input values of CONFIG_FILES etc. instead of their
15204 # values after options handling.
15205 ac_log="
15206 This file was extended by $as_me, which was
15207 generated by GNU Autoconf 2.64. Invocation command line was
15209 CONFIG_FILES = $CONFIG_FILES
15210 CONFIG_HEADERS = $CONFIG_HEADERS
15211 CONFIG_LINKS = $CONFIG_LINKS
15212 CONFIG_COMMANDS = $CONFIG_COMMANDS
15213 $ $0 $@
15215 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15218 _ACEOF
15220 case $ac_config_files in *"
15221 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15222 esac
15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227 # Files that config.status was made for.
15228 config_files="$ac_config_files"
15230 _ACEOF
15232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15233 ac_cs_usage="\
15234 \`$as_me' instantiates files and other configuration actions
15235 from templates according to the current configuration. Unless the files
15236 and actions are specified as TAGs, all are instantiated by default.
15238 Usage: $0 [OPTION]... [TAG]...
15240 -h, --help print this help, then exit
15241 -V, --version print version number and configuration settings, then exit
15242 -q, --quiet, --silent
15243 do not print progress messages
15244 -d, --debug don't remove temporary files
15245 --recheck update $as_me by reconfiguring in the same conditions
15246 --file=FILE[:TEMPLATE]
15247 instantiate the configuration file FILE
15249 Configuration files:
15250 $config_files
15252 Report bugs to the package provider."
15254 _ACEOF
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 ac_cs_version="\\
15257 config.status
15258 configured by $0, generated by GNU Autoconf 2.64,
15259 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15261 Copyright (C) 2009 Free Software Foundation, Inc.
15262 This config.status script is free software; the Free Software Foundation
15263 gives unlimited permission to copy, distribute and modify it."
15265 ac_pwd='$ac_pwd'
15266 srcdir='$srcdir'
15267 INSTALL='$INSTALL'
15268 AWK='$AWK'
15269 test -n "\$AWK" || AWK=awk
15270 _ACEOF
15272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15273 # The default lists apply if the user does not specify any file.
15274 ac_need_defaults=:
15275 while test $# != 0
15277 case $1 in
15278 --*=*)
15279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15281 ac_shift=:
15284 ac_option=$1
15285 ac_optarg=$2
15286 ac_shift=shift
15288 esac
15290 case $ac_option in
15291 # Handling of the options.
15292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15293 ac_cs_recheck=: ;;
15294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15295 $as_echo "$ac_cs_version"; exit ;;
15296 --debug | --debu | --deb | --de | --d | -d )
15297 debug=: ;;
15298 --file | --fil | --fi | --f )
15299 $ac_shift
15300 case $ac_optarg in
15301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15302 esac
15303 as_fn_append CONFIG_FILES " '$ac_optarg'"
15304 ac_need_defaults=false;;
15305 --he | --h | --help | --hel | -h )
15306 $as_echo "$ac_cs_usage"; exit ;;
15307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15308 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15309 ac_cs_silent=: ;;
15311 # This is an error.
15312 -*) as_fn_error "unrecognized option: \`$1'
15313 Try \`$0 --help' for more information." ;;
15315 *) as_fn_append ac_config_targets " $1"
15316 ac_need_defaults=false ;;
15318 esac
15319 shift
15320 done
15322 ac_configure_extra_args=
15324 if $ac_cs_silent; then
15325 exec 6>/dev/null
15326 ac_configure_extra_args="$ac_configure_extra_args --silent"
15329 _ACEOF
15330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15331 if \$ac_cs_recheck; then
15332 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15333 shift
15334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15335 CONFIG_SHELL='$SHELL'
15336 export CONFIG_SHELL
15337 exec "\$@"
15340 _ACEOF
15341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15342 exec 5>>config.log
15344 echo
15345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15346 ## Running $as_me. ##
15347 _ASBOX
15348 $as_echo "$ac_log"
15349 } >&5
15351 _ACEOF
15352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15354 # INIT-COMMANDS
15356 extrasub_build="$extrasub_build"
15357 extrasub_host="$extrasub_host"
15358 extrasub_target="$extrasub_target"
15360 _ACEOF
15362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15364 # Handling of arguments.
15365 for ac_config_target in $ac_config_targets
15367 case $ac_config_target in
15368 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15370 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15371 esac
15372 done
15375 # If the user did not use the arguments to specify the items to instantiate,
15376 # then the envvar interface is used. Set only those that are not.
15377 # We use the long form for the default assignment because of an extremely
15378 # bizarre bug on SunOS 4.1.3.
15379 if $ac_need_defaults; then
15380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15383 # Have a temporary directory for convenience. Make it in the build tree
15384 # simply because there is no reason against having it here, and in addition,
15385 # creating and moving files from /tmp can sometimes cause problems.
15386 # Hook for its removal unless debugging.
15387 # Note that there is a small window in which the directory will not be cleaned:
15388 # after its creation but before its name has been assigned to `$tmp'.
15389 $debug ||
15391 tmp=
15392 trap 'exit_status=$?
15393 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15395 trap 'as_fn_exit 1' 1 2 13 15
15397 # Create a (secure) tmp directory for tmp files.
15400 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15401 test -n "$tmp" && test -d "$tmp"
15402 } ||
15404 tmp=./conf$$-$RANDOM
15405 (umask 077 && mkdir "$tmp")
15406 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15408 # Set up the scripts for CONFIG_FILES section.
15409 # No need to generate them if there are no CONFIG_FILES.
15410 # This happens for instance with `./config.status config.h'.
15411 if test -n "$CONFIG_FILES"; then
15413 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15414 ac_cs_awk_getline=:
15415 ac_cs_awk_pipe_init=
15416 ac_cs_awk_read_file='
15417 while ((getline aline < (F[key])) > 0)
15418 print(aline)
15419 close(F[key])'
15420 ac_cs_awk_pipe_fini=
15421 else
15422 ac_cs_awk_getline=false
15423 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15424 ac_cs_awk_read_file='
15425 print "|#_!!_#|"
15426 print "cat " F[key] " &&"
15427 '$ac_cs_awk_pipe_init
15428 # The final `:' finishes the AND list.
15429 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15431 ac_cr=`echo X | tr X '\015'`
15432 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15433 # But we know of no other shell where ac_cr would be empty at this
15434 # point, so we can use a bashism as a fallback.
15435 if test "x$ac_cr" = x; then
15436 eval ac_cr=\$\'\\r\'
15438 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15439 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15440 ac_cs_awk_cr='\r'
15441 else
15442 ac_cs_awk_cr=$ac_cr
15445 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15446 _ACEOF
15448 # Create commands to substitute file output variables.
15450 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15451 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15452 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15453 echo "_ACAWK" &&
15454 echo "_ACEOF"
15455 } >conf$$files.sh &&
15456 . ./conf$$files.sh ||
15457 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15458 rm -f conf$$files.sh
15461 echo "cat >conf$$subs.awk <<_ACEOF" &&
15462 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15463 echo "_ACEOF"
15464 } >conf$$subs.sh ||
15465 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15466 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15467 ac_delim='%!_!# '
15468 for ac_last_try in false false false false false :; do
15469 . ./conf$$subs.sh ||
15470 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15472 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15473 if test $ac_delim_n = $ac_delim_num; then
15474 break
15475 elif $ac_last_try; then
15476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15477 else
15478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15480 done
15481 rm -f conf$$subs.sh
15483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15484 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15485 _ACEOF
15486 sed -n '
15488 s/^/S["/; s/!.*/"]=/
15491 s/^[^!]*!//
15492 :repl
15493 t repl
15494 s/'"$ac_delim"'$//
15495 t delim
15498 s/\(.\{148\}\).*/\1/
15499 t more1
15500 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15503 b repl
15504 :more1
15505 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15508 s/.\{148\}//
15509 t nl
15510 :delim
15512 s/\(.\{148\}\).*/\1/
15513 t more2
15514 s/["\\]/\\&/g; s/^/"/; s/$/"/
15517 :more2
15518 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15521 s/.\{148\}//
15522 t delim
15523 ' <conf$$subs.awk | sed '
15524 /^[^""]/{
15526 s/\n//
15528 ' >>$CONFIG_STATUS || ac_write_fail=1
15529 rm -f conf$$subs.awk
15530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15531 _ACAWK
15532 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15533 for (key in S) S_is_set[key] = 1
15534 FS = "\a"
15535 \$ac_cs_awk_pipe_init
15538 line = $ 0
15539 nfields = split(line, field, "@")
15540 substed = 0
15541 len = length(field[1])
15542 for (i = 2; i < nfields; i++) {
15543 key = field[i]
15544 keylen = length(key)
15545 if (S_is_set[key]) {
15546 value = S[key]
15547 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15548 len += length(value) + length(field[++i])
15549 substed = 1
15550 } else
15551 len += 1 + keylen
15553 if (nfields == 3 && !substed) {
15554 key = field[2]
15555 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15556 \$ac_cs_awk_read_file
15557 next
15560 print line
15562 \$ac_cs_awk_pipe_fini
15563 _ACAWK
15564 _ACEOF
15565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15567 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15568 else
15570 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15571 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15572 _ACEOF
15574 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15575 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15576 # trailing colons and then remove the whole line if VPATH becomes empty
15577 # (actually we leave an empty line to preserve line numbers).
15578 if test "x$srcdir" = x.; then
15579 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15580 s/:*\$(srcdir):*/:/
15581 s/:*\${srcdir}:*/:/
15582 s/:*@srcdir@:*/:/
15583 s/^\([^=]*=[ ]*\):*/\1/
15584 s/:*$//
15585 s/^[^=]*=[ ]*$//
15589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590 fi # test -n "$CONFIG_FILES"
15593 eval set X " :F $CONFIG_FILES "
15594 shift
15595 for ac_tag
15597 case $ac_tag in
15598 :[FHLC]) ac_mode=$ac_tag; continue;;
15599 esac
15600 case $ac_mode$ac_tag in
15601 :[FHL]*:*);;
15602 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15603 :[FH]-) ac_tag=-:-;;
15604 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15605 esac
15606 ac_save_IFS=$IFS
15607 IFS=:
15608 set x $ac_tag
15609 IFS=$ac_save_IFS
15610 shift
15611 ac_file=$1
15612 shift
15614 case $ac_mode in
15615 :L) ac_source=$1;;
15616 :[FH])
15617 ac_file_inputs=
15618 for ac_f
15620 case $ac_f in
15621 -) ac_f="$tmp/stdin";;
15622 *) # Look for the file first in the build tree, then in the source tree
15623 # (if the path is not absolute). The absolute path cannot be DOS-style,
15624 # because $ac_f cannot contain `:'.
15625 test -f "$ac_f" ||
15626 case $ac_f in
15627 [\\/$]*) false;;
15628 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15629 esac ||
15630 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15631 esac
15632 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15633 as_fn_append ac_file_inputs " '$ac_f'"
15634 done
15636 # Let's still pretend it is `configure' which instantiates (i.e., don't
15637 # use $as_me), people would be surprised to read:
15638 # /* config.h. Generated by config.status. */
15639 configure_input='Generated from '`
15640 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15641 `' by configure.'
15642 if test x"$ac_file" != x-; then
15643 configure_input="$ac_file. $configure_input"
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15645 $as_echo "$as_me: creating $ac_file" >&6;}
15647 # Neutralize special characters interpreted by sed in replacement strings.
15648 case $configure_input in #(
15649 *\&* | *\|* | *\\* )
15650 ac_sed_conf_input=`$as_echo "$configure_input" |
15651 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15652 *) ac_sed_conf_input=$configure_input;;
15653 esac
15655 case $ac_tag in
15656 *:-:* | *:-) cat >"$tmp/stdin" \
15657 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15658 esac
15660 esac
15662 ac_dir=`$as_dirname -- "$ac_file" ||
15663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15664 X"$ac_file" : 'X\(//\)[^/]' \| \
15665 X"$ac_file" : 'X\(//\)$' \| \
15666 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15667 $as_echo X"$ac_file" |
15668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15669 s//\1/
15672 /^X\(\/\/\)[^/].*/{
15673 s//\1/
15676 /^X\(\/\/\)$/{
15677 s//\1/
15680 /^X\(\/\).*/{
15681 s//\1/
15684 s/.*/./; q'`
15685 as_dir="$ac_dir"; as_fn_mkdir_p
15686 ac_builddir=.
15688 case "$ac_dir" in
15689 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15692 # A ".." for each directory in $ac_dir_suffix.
15693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15694 case $ac_top_builddir_sub in
15695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15697 esac ;;
15698 esac
15699 ac_abs_top_builddir=$ac_pwd
15700 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15701 # for backward compatibility:
15702 ac_top_builddir=$ac_top_build_prefix
15704 case $srcdir in
15705 .) # We are building in place.
15706 ac_srcdir=.
15707 ac_top_srcdir=$ac_top_builddir_sub
15708 ac_abs_top_srcdir=$ac_pwd ;;
15709 [\\/]* | ?:[\\/]* ) # Absolute name.
15710 ac_srcdir=$srcdir$ac_dir_suffix;
15711 ac_top_srcdir=$srcdir
15712 ac_abs_top_srcdir=$srcdir ;;
15713 *) # Relative name.
15714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15715 ac_top_srcdir=$ac_top_build_prefix$srcdir
15716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15717 esac
15718 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15721 case $ac_mode in
15724 # CONFIG_FILE
15727 case $INSTALL in
15728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15729 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15730 esac
15731 _ACEOF
15733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15734 # If the template does not know about datarootdir, expand it.
15735 # FIXME: This hack should be removed a few years after 2.60.
15736 ac_datarootdir_hack=; ac_datarootdir_seen=
15737 ac_sed_dataroot='
15738 /datarootdir/ {
15742 /@datadir@/p
15743 /@docdir@/p
15744 /@infodir@/p
15745 /@localedir@/p
15746 /@mandir@/p'
15747 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15748 *datarootdir*) ac_datarootdir_seen=yes;;
15749 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15751 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15752 _ACEOF
15753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15754 ac_datarootdir_hack='
15755 s&@datadir@&$datadir&g
15756 s&@docdir@&$docdir&g
15757 s&@infodir@&$infodir&g
15758 s&@localedir@&$localedir&g
15759 s&@mandir@&$mandir&g
15760 s&\\\${datarootdir}&$datarootdir&g' ;;
15761 esac
15762 _ACEOF
15764 # Neutralize VPATH when `$srcdir' = `.'.
15765 # Shell code in configure.ac might set extrasub.
15766 # FIXME: do we really want to maintain this feature?
15767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15768 ac_sed_extra="$ac_vpsub
15769 $extrasub
15770 _ACEOF
15771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15773 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15774 s|@configure_input@|$ac_sed_conf_input|;t t
15775 s&@top_builddir@&$ac_top_builddir_sub&;t t
15776 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15777 s&@srcdir@&$ac_srcdir&;t t
15778 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15779 s&@top_srcdir@&$ac_top_srcdir&;t t
15780 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15781 s&@builddir@&$ac_builddir&;t t
15782 s&@abs_builddir@&$ac_abs_builddir&;t t
15783 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15784 s&@INSTALL@&$ac_INSTALL&;t t
15785 $ac_datarootdir_hack
15787 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15788 if $ac_cs_awk_getline; then
15789 $AWK -f "$tmp/subs.awk"
15790 else
15791 $AWK -f "$tmp/subs.awk" | $SHELL
15792 fi >$tmp/out \
15793 || as_fn_error "could not create $ac_file" "$LINENO" 5
15795 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15796 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15797 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15799 which seems to be undefined. Please make sure it is defined." >&5
15800 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15801 which seems to be undefined. Please make sure it is defined." >&2;}
15803 rm -f "$tmp/stdin"
15804 case $ac_file in
15805 -) cat "$tmp/out" && rm -f "$tmp/out";;
15806 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15807 esac \
15808 || as_fn_error "could not create $ac_file" "$LINENO" 5
15813 esac
15816 case $ac_file$ac_mode in
15817 "Makefile":F) sed "$extrasub_build" Makefile |
15818 sed "$extrasub_host" |
15819 sed "$extrasub_target" > mf$$
15820 mv -f mf$$ Makefile ;;
15822 esac
15823 done # for ac_tag
15826 as_fn_exit 0
15827 _ACEOF
15828 ac_clean_files=$ac_clean_files_save
15830 test $ac_write_fail = 0 ||
15831 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15834 # configure is writing to config.log, and then calls config.status.
15835 # config.status does its own redirection, appending to config.log.
15836 # Unfortunately, on DOS this fails, as config.log is still kept open
15837 # by configure, so config.status won't be able to write to it; its
15838 # output is simply discarded. So we exec the FD to /dev/null,
15839 # effectively closing config.log, so it can be properly (re)opened and
15840 # appended to by config.status. When coming back to configure, we
15841 # need to make the FD available again.
15842 if test "$no_create" != yes; then
15843 ac_cs_success=:
15844 ac_config_status_args=
15845 test "$silent" = yes &&
15846 ac_config_status_args="$ac_config_status_args --quiet"
15847 exec 5>/dev/null
15848 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15849 exec 5>>config.log
15850 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15851 # would make configure fail if this is the last instruction.
15852 $ac_cs_success || as_fn_exit $?
15854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}