* diagnostic.c (build_message_string): Use xvasprintf.
[official-gcc.git] / configure
blob1804198338bdadf854bbd5b692a7e39e805ee918
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 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 islinc
650 isllibs
651 poststage1_ldflags
652 poststage1_libs
653 stage1_ldflags
654 stage1_libs
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
659 gmpinc
660 gmplibs
661 do_compare
662 GNATMAKE
663 GNATBIND
664 ac_ct_CXX
665 CXXFLAGS
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 EXTRA_CONFIGARGS_LIBJAVA
675 extra_liboffloadmic_configure_flags
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
682 LN_S
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 enable_as_accelerator_for
750 enable_offload_targets
751 enable_gold
752 enable_ld
753 enable_libquadmath
754 enable_libquadmath_support
755 enable_libada
756 enable_libssp
757 enable_libstdcxx
758 enable_liboffloadmic
759 enable_static_libjava
760 enable_bootstrap
761 with_mpc
762 with_mpc_include
763 with_mpc_lib
764 with_mpfr_dir
765 with_mpfr
766 with_mpfr_include
767 with_mpfr_lib
768 with_gmp_dir
769 with_gmp
770 with_gmp_include
771 with_gmp_lib
772 with_host_libstdcxx
773 with_stage1_libs
774 with_stage1_ldflags
775 with_boot_libs
776 with_boot_ldflags
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 enable_lto
782 enable_linker_plugin_configure_flags
783 enable_linker_plugin_flags
784 enable_stage1_languages
785 enable_objc_gc
786 with_build_sysroot
787 with_debug_prefix_map
788 with_build_config
789 enable_vtable_verify
790 enable_serial_configure
791 with_build_time_tools
792 enable_maintainer_mode
793 enable_stage1_checking
794 enable_werror
795 enable_host_shared
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
806 CXXFLAGS
808 build_configargs
809 host_configargs
810 target_configargs
813 DLLTOOL
815 LIPO
817 RANLIB
818 STRIP
819 WINDRES
820 WINDMC
821 OBJCOPY
822 OBJDUMP
823 READELF
824 CC_FOR_TARGET
825 CXX_FOR_TARGET
826 GCC_FOR_TARGET
827 GCJ_FOR_TARGET
828 GFORTRAN_FOR_TARGET
829 GOC_FOR_TARGET
830 AR_FOR_TARGET
831 AS_FOR_TARGET
832 DLLTOOL_FOR_TARGET
833 LD_FOR_TARGET
834 LIPO_FOR_TARGET
835 NM_FOR_TARGET
836 OBJDUMP_FOR_TARGET
837 RANLIB_FOR_TARGET
838 READELF_FOR_TARGET
839 STRIP_FOR_TARGET
840 WINDRES_FOR_TARGET
841 WINDMC_FOR_TARGET'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information."
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 case $srcdir in
1370 *" "*)
1371 as_fn_error "path to source, $srcdir, contains spaces"
1373 esac
1374 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1384 # Report the --help message.
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures this package to adapt to many kinds of systems.
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1397 Defaults for the options are specified in brackets.
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1421 For better control, use the options below.
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1445 cat <<\_ACEOF
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456 _ACEOF
1459 if test -n "$ac_init_help"; then
1461 cat <<\_ACEOF
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-as-accelerator-for=ARG
1468 build as offload target compiler. Specify offload
1469 host triple by ARG
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from comma-separated
1472 LIST of TARGET[=DIR]. Use optional path to find
1473 offload target compiler during the build
1474 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1475 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1476 --disable-libquadmath do not build libquadmath directory
1477 --disable-libquadmath-support
1478 disable libquadmath support for Fortran
1479 --enable-libada build libada directory
1480 --enable-libssp build libssp directory
1481 --disable-libstdcxx do not build libstdc++-v3 directory
1482 --enable-liboffloadmic=ARG
1483 build liboffloadmic [ARG={no,host,target}]
1484 --enable-static-libjava[=ARG]
1485 build static libjava [default=no]
1486 --enable-bootstrap enable bootstrapping [yes if native build]
1487 --disable-isl-version-check
1488 disable check for ISL version
1489 --enable-lto enable link time optimization support
1490 --enable-linker-plugin-configure-flags=FLAGS
1491 additional flags for configuring linker plugins
1492 [none]
1493 --enable-linker-plugin-flags=FLAGS
1494 additional flags for configuring and building linker
1495 plugins [none]
1496 --enable-stage1-languages[=all]
1497 choose additional languages to build during stage1.
1498 Mostly useful for compiler development
1499 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1500 Objective-C runtime
1501 --enable-vtable-verify Enable vtable verification feature
1502 --enable-serial-[{host,target,build}-]configure
1503 force sequential configuration of sub-packages for
1504 the host, target or build machine, or all
1505 sub-packages
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509 --enable-stage1-checking[=all]
1510 choose additional checking for stage1 of the
1511 compiler
1512 --enable-werror enable -Werror in bootstrap stage2 and later
1513 --enable-host-shared build host code as shared libraries
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-build-libsubdir=DIR Directory where to find libraries for build system
1519 --with-mpc=PATH specify prefix directory for installed MPC package.
1520 Equivalent to --with-mpc-include=PATH/include plus
1521 --with-mpc-lib=PATH/lib
1522 --with-mpc-include=PATH specify directory for installed MPC include files
1523 --with-mpc-lib=PATH specify directory for the installed MPC library
1524 --with-mpfr-dir=PATH this option has been REMOVED
1525 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1526 Equivalent to --with-mpfr-include=PATH/include plus
1527 --with-mpfr-lib=PATH/lib
1528 --with-mpfr-include=PATH
1529 specify directory for installed MPFR include files
1530 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1531 --with-gmp-dir=PATH this option has been REMOVED
1532 --with-gmp=PATH specify prefix directory for the installed GMP
1533 package. Equivalent to
1534 --with-gmp-include=PATH/include plus
1535 --with-gmp-lib=PATH/lib
1536 --with-gmp-include=PATH specify directory for installed GMP include files
1537 --with-gmp-lib=PATH specify directory for the installed GMP library
1538 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1539 linking with PPL
1540 --with-stage1-libs=LIBS libraries for stage1
1541 --with-stage1-ldflags=FLAGS
1542 linker flags for stage1
1543 --with-boot-libs=LIBS libraries for stage2 and later
1544 --with-boot-ldflags=FLAGS
1545 linker flags for stage2 and later
1546 --with-isl=PATH Specify prefix directory for the installed ISL
1547 package. Equivalent to
1548 --with-isl-include=PATH/include plus
1549 --with-isl-lib=PATH/lib
1550 --with-isl-include=PATH Specify directory for installed ISL include files
1551 --with-isl-lib=PATH Specify the directory for the installed ISL library
1552 --with-build-sysroot=SYSROOT
1553 use sysroot as the system root during the build
1554 --with-debug-prefix-map='A=B C=D ...'
1555 map A to B, C to D ... in debug information
1556 --with-build-config='NAME NAME2...'
1557 use config/NAME.mk build configuration
1558 --with-build-time-tools=PATH
1559 use given path to find target tools during the build
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 build_configargs
1572 additional configure arguments for build directories
1573 host_configargs
1574 additional configure arguments for host directories
1575 target_configargs
1576 additional configure arguments for target directories
1577 AR AR for the host
1578 AS AS for the host
1579 DLLTOOL DLLTOOL for the host
1580 LD LD for the host
1581 LIPO LIPO for the host
1582 NM NM for the host
1583 RANLIB RANLIB for the host
1584 STRIP STRIP for the host
1585 WINDRES WINDRES for the host
1586 WINDMC WINDMC for the host
1587 OBJCOPY OBJCOPY for the host
1588 OBJDUMP OBJDUMP for the host
1589 READELF READELF for the host
1590 CC_FOR_TARGET
1591 CC for the target
1592 CXX_FOR_TARGET
1593 CXX for the target
1594 GCC_FOR_TARGET
1595 GCC for the target
1596 GCJ_FOR_TARGET
1597 GCJ for the target
1598 GFORTRAN_FOR_TARGET
1599 GFORTRAN for the target
1600 GOC_FOR_TARGET
1601 GOC for the target
1602 AR_FOR_TARGET
1603 AR for the target
1604 AS_FOR_TARGET
1605 AS for the target
1606 DLLTOOL_FOR_TARGET
1607 DLLTOOL for the target
1608 LD_FOR_TARGET
1609 LD for the target
1610 LIPO_FOR_TARGET
1611 LIPO for the target
1612 NM_FOR_TARGET
1613 NM for the target
1614 OBJDUMP_FOR_TARGET
1615 OBJDUMP for the target
1616 RANLIB_FOR_TARGET
1617 RANLIB for the target
1618 READELF_FOR_TARGET
1619 READELF for the target
1620 STRIP_FOR_TARGET
1621 STRIP for the target
1622 WINDRES_FOR_TARGET
1623 WINDRES for the target
1624 WINDMC_FOR_TARGET
1625 WINDMC for the target
1627 Use these variables to override the choices made by `configure' or to help
1628 it to find libraries and programs with nonstandard names/locations.
1630 Report bugs to the package provider.
1631 _ACEOF
1632 ac_status=$?
1635 if test "$ac_init_help" = "recursive"; then
1636 # If there are subdirs, report their specific --help.
1637 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1638 test -d "$ac_dir" ||
1639 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1640 continue
1641 ac_builddir=.
1643 case "$ac_dir" in
1644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1647 # A ".." for each directory in $ac_dir_suffix.
1648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1649 case $ac_top_builddir_sub in
1650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 esac ;;
1653 esac
1654 ac_abs_top_builddir=$ac_pwd
1655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1656 # for backward compatibility:
1657 ac_top_builddir=$ac_top_build_prefix
1659 case $srcdir in
1660 .) # We are building in place.
1661 ac_srcdir=.
1662 ac_top_srcdir=$ac_top_builddir_sub
1663 ac_abs_top_srcdir=$ac_pwd ;;
1664 [\\/]* | ?:[\\/]* ) # Absolute name.
1665 ac_srcdir=$srcdir$ac_dir_suffix;
1666 ac_top_srcdir=$srcdir
1667 ac_abs_top_srcdir=$srcdir ;;
1668 *) # Relative name.
1669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1670 ac_top_srcdir=$ac_top_build_prefix$srcdir
1671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 esac
1673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675 cd "$ac_dir" || { ac_status=$?; continue; }
1676 # Check for guested configure.
1677 if test -f "$ac_srcdir/configure.gnu"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1680 elif test -f "$ac_srcdir/configure"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure" --help=recursive
1683 else
1684 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 fi || ac_status=$?
1686 cd "$ac_pwd" || { ac_status=$?; break; }
1687 done
1690 test -n "$ac_init_help" && exit $ac_status
1691 if $ac_init_version; then
1692 cat <<\_ACEOF
1693 configure
1694 generated by GNU Autoconf 2.64
1696 Copyright (C) 2009 Free Software Foundation, Inc.
1697 This configure script is free software; the Free Software Foundation
1698 gives unlimited permission to copy, distribute and modify it.
1699 _ACEOF
1700 exit
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=1
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1743 } # ac_fn_c_try_compile
1745 # ac_fn_cxx_try_compile LINENO
1746 # ----------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_cxx_try_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext
1752 if { { ac_try="$ac_compile"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 return $ac_retval
1781 } # ac_fn_cxx_try_compile
1783 # ac_fn_cxx_try_link LINENO
1784 # -------------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_cxx_try_link ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_cxx_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=1
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1827 } # ac_fn_cxx_try_link
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1857 }; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1873 } # ac_fn_c_try_link
1874 cat >config.log <<_ACEOF
1875 This file contains any messages produced by compilers while
1876 running configure, to aid debugging if configure makes a mistake.
1878 It was created by $as_me, which was
1879 generated by GNU Autoconf 2.64. Invocation command line was
1881 $ $0 $@
1883 _ACEOF
1884 exec 5>>config.log
1886 cat <<_ASUNAME
1887 ## --------- ##
1888 ## Platform. ##
1889 ## --------- ##
1891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908 _ASUNAME
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 $as_echo "PATH: $as_dir"
1916 done
1917 IFS=$as_save_IFS
1919 } >&5
1921 cat >&5 <<_ACEOF
1924 ## ----------- ##
1925 ## Core tests. ##
1926 ## ----------- ##
1928 _ACEOF
1931 # Keep a trace of the command line.
1932 # Strip out --no-create and --no-recursion so they do not pile up.
1933 # Strip out --silent because we don't want to record it for future runs.
1934 # Also quote any args containing shell meta-characters.
1935 # Make two passes to allow for proper duplicate-argument suppression.
1936 ac_configure_args=
1937 ac_configure_args0=
1938 ac_configure_args1=
1939 ac_must_keep_next=false
1940 for ac_pass in 1 2
1942 for ac_arg
1944 case $ac_arg in
1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1947 | -silent | --silent | --silen | --sile | --sil)
1948 continue ;;
1949 *\'*)
1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1951 esac
1952 case $ac_pass in
1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955 as_fn_append ac_configure_args1 " '$ac_arg'"
1956 if test $ac_must_keep_next = true; then
1957 ac_must_keep_next=false # Got value, back to normal.
1958 else
1959 case $ac_arg in
1960 *=* | --config-cache | -C | -disable-* | --disable-* \
1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1963 | -with-* | --with-* | -without-* | --without-* | --x)
1964 case "$ac_configure_args0 " in
1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1966 esac
1968 -* ) ac_must_keep_next=true ;;
1969 esac
1971 as_fn_append ac_configure_args " '$ac_arg'"
1973 esac
1974 done
1975 done
1976 { ac_configure_args0=; unset ac_configure_args0;}
1977 { ac_configure_args1=; unset ac_configure_args1;}
1979 # When interrupted or exit'd, cleanup temporary files, and complete
1980 # config.log. We remove comments because anyway the quotes in there
1981 # would cause problems or look ugly.
1982 # WARNING: Use '\'' to represent an apostrophe within the trap.
1983 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1984 trap 'exit_status=$?
1985 # Save into config.log some information that might help in debugging.
1987 echo
1989 cat <<\_ASBOX
1990 ## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##
1993 _ASBOX
1994 echo
1995 # The following way of writing the cache mishandles newlines in values,
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
1999 case $ac_val in #(
2000 *${as_nl}*)
2001 case $ac_var in #(
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2004 esac
2005 case $ac_var in #(
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2009 esac ;;
2010 esac
2011 done
2012 (set) 2>&1 |
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2015 sed -n \
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2018 ;; #(
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022 esac |
2023 sort
2025 echo
2027 cat <<\_ASBOX
2028 ## ----------------- ##
2029 ## Output variables. ##
2030 ## ----------------- ##
2031 _ASBOX
2032 echo
2033 for ac_var in $ac_subst_vars
2035 eval ac_val=\$$ac_var
2036 case $ac_val in
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038 esac
2039 $as_echo "$ac_var='\''$ac_val'\''"
2040 done | sort
2041 echo
2043 if test -n "$ac_subst_files"; then
2044 cat <<\_ASBOX
2045 ## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##
2048 _ASBOX
2049 echo
2050 for ac_var in $ac_subst_files
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
2057 done | sort
2058 echo
2061 if test -s confdefs.h; then
2062 cat <<\_ASBOX
2063 ## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##
2066 _ASBOX
2067 echo
2068 cat confdefs.h
2069 echo
2071 test "$ac_signal" != 0 &&
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
2074 } >&5
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 exit $exit_status
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2087 $as_echo "/* confdefs.h */" > confdefs.h
2089 # Predefined preprocessor variables.
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 _ACEOF
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 _ACEOF
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 _ACEOF
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2113 _ACEOF
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 ac_site_file1=NONE
2119 ac_site_file2=NONE
2120 if test -n "$CONFIG_SITE"; then
2121 ac_site_file1=$CONFIG_SITE
2122 elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125 else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
2129 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131 test "x$ac_site_file" = xNONE && continue
2132 if test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file"
2138 done
2140 if test -r "$cache_file"; then
2141 # Some versions of bash will fail to source /dev/null (special
2142 # files actually), so we avoid doing that.
2143 if test -f "$cache_file"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145 $as_echo "$as_me: loading cache $cache_file" >&6;}
2146 case $cache_file in
2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
2149 esac
2151 else
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153 $as_echo "$as_me: creating cache $cache_file" >&6;}
2154 >$cache_file
2157 # Check that the precious variables saved in the cache have kept the same
2158 # value.
2159 ac_cache_corrupted=false
2160 for ac_var in $ac_precious_vars; do
2161 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2162 eval ac_new_set=\$ac_env_${ac_var}_set
2163 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2164 eval ac_new_val=\$ac_env_${ac_var}_value
2165 case $ac_old_set,$ac_new_set in
2166 set,)
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2168 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2169 ac_cache_corrupted=: ;;
2170 ,set)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2172 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,);;
2176 if test "x$ac_old_val" != "x$ac_new_val"; then
2177 # differences in whitespace do not lead to failure.
2178 ac_old_val_w=`echo x $ac_old_val`
2179 ac_new_val_w=`echo x $ac_new_val`
2180 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2182 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2183 ac_cache_corrupted=:
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2186 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2187 eval $ac_var=\$ac_old_val
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2190 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2192 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2193 fi;;
2194 esac
2195 # Pass precious variables to config.status.
2196 if test "$ac_new_set" = set; then
2197 case $ac_new_val in
2198 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2199 *) ac_arg=$ac_var=$ac_new_val ;;
2200 esac
2201 case " $ac_configure_args " in
2202 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2203 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2204 esac
2206 done
2207 if $ac_cache_corrupted; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2211 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2212 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2214 ## -------------------- ##
2215 ## Main body of script. ##
2216 ## -------------------- ##
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232 progname=$0
2233 # if PWD already has a value, it is probably wrong.
2234 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2236 # Export original configure arguments for use by sub-configures.
2237 # Quote arguments with shell meta charatcers.
2238 TOPLEVEL_CONFIGURE_ARGUMENTS=
2239 set -- "$progname" "$@"
2240 for ac_arg
2242 case "$ac_arg" in
2243 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2244 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2245 # if the argument is of the form -foo=baz, quote the baz part only
2246 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2247 *) ;;
2248 esac
2249 # Add the quoted argument to the list.
2250 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2251 done
2252 if test "$silent" = yes; then
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2255 # Remove the initial space we just introduced and, as these will be
2256 # expanded by make, quote '$'.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2260 # Find the build, host, and target systems.
2261 ac_aux_dir=
2262 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2263 for ac_t in install-sh install.sh shtool; do
2264 if test -f "$ac_dir/$ac_t"; then
2265 ac_aux_dir=$ac_dir
2266 ac_install_sh="$ac_aux_dir/$ac_t -c"
2267 break 2
2269 done
2270 done
2271 if test -z "$ac_aux_dir"; then
2272 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2275 # These three variables are undocumented and unsupported,
2276 # and are intended to be withdrawn in a future Autoconf release.
2277 # They can cause serious problems if a builder's source tree is in a directory
2278 # whose full name contains unusual characters.
2279 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284 # Make sure we can run config.sub.
2285 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2286 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2289 $as_echo_n "checking build system type... " >&6; }
2290 if test "${ac_cv_build+set}" = set; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 ac_build_alias=$build_alias
2294 test "x$ac_build_alias" = x &&
2295 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2296 test "x$ac_build_alias" = x &&
2297 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2303 $as_echo "$ac_cv_build" >&6; }
2304 case $ac_cv_build in
2305 *-*-*) ;;
2306 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2307 esac
2308 build=$ac_cv_build
2309 ac_save_IFS=$IFS; IFS='-'
2310 set x $ac_cv_build
2311 shift
2312 build_cpu=$1
2313 build_vendor=$2
2314 shift; shift
2315 # Remember, the first character of IFS is used to create $*,
2316 # except with old shells:
2317 build_os=$*
2318 IFS=$ac_save_IFS
2319 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2322 case ${build_alias} in
2323 "") build_noncanonical=${build} ;;
2324 *) build_noncanonical=${build_alias} ;;
2325 esac
2329 case ${host_alias} in
2330 "") host_noncanonical=${build_noncanonical} ;;
2331 *) host_noncanonical=${host_alias} ;;
2332 esac
2336 case ${target_alias} in
2337 "") target_noncanonical=${host_noncanonical} ;;
2338 *) target_noncanonical=${target_alias} ;;
2339 esac
2344 test "$host_noncanonical" = "$target_noncanonical" &&
2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
2347 program_transform_name=s,y,y,
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350 $as_echo_n "checking host system type... " >&6; }
2351 if test "${ac_cv_host+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356 else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363 $as_echo "$ac_cv_host" >&6; }
2364 case $ac_cv_host in
2365 *-*-*) ;;
2366 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2367 esac
2368 host=$ac_cv_host
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_host
2371 shift
2372 host_cpu=$1
2373 host_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 host_os=$*
2378 IFS=$ac_save_IFS
2379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383 $as_echo_n "checking target system type... " >&6; }
2384 if test "${ac_cv_target+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389 else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396 $as_echo "$ac_cv_target" >&6; }
2397 case $ac_cv_target in
2398 *-*-*) ;;
2399 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2400 esac
2401 target=$ac_cv_target
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_target
2404 shift
2405 target_cpu=$1
2406 target_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 target_os=$*
2411 IFS=$ac_save_IFS
2412 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2415 # The aliases save the names the user supplied, while $host etc.
2416 # will get canonicalized.
2417 test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
2422 test "$program_prefix" != NONE &&
2423 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2424 # Use a double $ so make ignores it.
2425 test "$program_suffix" != NONE &&
2426 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2427 # Double any \ or $.
2428 # By default was `s,x,x', remove it if useless.
2429 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2430 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2434 # Get 'install' or 'install-sh' and its variants.
2435 # Find a good install program. We prefer a C program (faster),
2436 # so one script is as good as another. But avoid the broken or
2437 # incompatible versions:
2438 # SysV /etc/install, /usr/sbin/install
2439 # SunOS /usr/etc/install
2440 # IRIX /sbin/install
2441 # AIX /bin/install
2442 # AmigaOS /C/install, which installs bootblocks on floppy discs
2443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2446 # OS/2's system install, which has a completely different semantic
2447 # ./install, which can be erroneously created by make from ./install.sh.
2448 # Reject install programs that cannot install multiple files.
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2450 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2451 if test -z "$INSTALL"; then
2452 if test "${ac_cv_path_install+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 # Account for people who put trailing slashes in PATH elements.
2461 case $as_dir/ in #((
2462 ./ | .// | /[cC]/* | \
2463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2465 /usr/ucb/* ) ;;
2467 # OSF1 and SCO ODT 3.0 have their own names for install.
2468 # Don't use installbsd from OSF since it installs stuff as root
2469 # by default.
2470 for ac_prog in ginstall scoinst install; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2473 if test $ac_prog = install &&
2474 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2475 # AIX install. It has an incompatible calling convention.
2477 elif test $ac_prog = install &&
2478 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2479 # program-specific install script used by HP pwplus--don't use.
2481 else
2482 rm -rf conftest.one conftest.two conftest.dir
2483 echo one > conftest.one
2484 echo two > conftest.two
2485 mkdir conftest.dir
2486 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2487 test -s conftest.one && test -s conftest.two &&
2488 test -s conftest.dir/conftest.one &&
2489 test -s conftest.dir/conftest.two
2490 then
2491 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2492 break 3
2496 done
2497 done
2499 esac
2501 done
2502 IFS=$as_save_IFS
2504 rm -rf conftest.one conftest.two conftest.dir
2507 if test "${ac_cv_path_install+set}" = set; then
2508 INSTALL=$ac_cv_path_install
2509 else
2510 # As a last resort, use the slow shell script. Don't cache a
2511 # value for INSTALL within a source directory, because that will
2512 # break other packages using the cache if that directory is
2513 # removed, or if the value is a relative name.
2514 INSTALL=$ac_install_sh
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2518 $as_echo "$INSTALL" >&6; }
2520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2521 # It thinks the first close brace ends the variable substitution.
2522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2529 $as_echo_n "checking whether ln works... " >&6; }
2530 if test "${acx_cv_prog_LN+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 rm -f conftestdata_t
2534 echo >conftestdata_f
2535 if ln conftestdata_f conftestdata_t 2>/dev/null
2536 then
2537 acx_cv_prog_LN=ln
2538 else
2539 acx_cv_prog_LN=no
2541 rm -f conftestdata_f conftestdata_t
2544 if test $acx_cv_prog_LN = no; then
2545 LN="cp"
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2547 $as_echo "no, using $LN" >&6; }
2548 else
2549 LN="$acx_cv_prog_LN"
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2551 $as_echo "yes" >&6; }
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2555 $as_echo_n "checking whether ln -s works... " >&6; }
2556 LN_S=$as_ln_s
2557 if test "$LN_S" = "ln -s"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2559 $as_echo "yes" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2562 $as_echo "no, using $LN_S" >&6; }
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2566 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2567 if test "${ac_cv_path_SED+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2571 for ac_i in 1 2 3 4 5 6 7; do
2572 ac_script="$ac_script$as_nl$ac_script"
2573 done
2574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2575 { ac_script=; unset ac_script;}
2576 if test -z "$SED"; then
2577 ac_path_SED_found=false
2578 # Loop through the user's path and test for each of PROGNAME-LIST
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_prog in sed gsed; do
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2588 # Check for GNU ac_path_SED and select it if it is found.
2589 # Check for GNU $ac_path_SED
2590 case `"$ac_path_SED" --version 2>&1` in
2591 *GNU*)
2592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2594 ac_count=0
2595 $as_echo_n 0123456789 >"conftest.in"
2596 while :
2598 cat "conftest.in" "conftest.in" >"conftest.tmp"
2599 mv "conftest.tmp" "conftest.in"
2600 cp "conftest.in" "conftest.nl"
2601 $as_echo '' >> "conftest.nl"
2602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2604 as_fn_arith $ac_count + 1 && ac_count=$as_val
2605 if test $ac_count -gt ${ac_path_SED_max-0}; then
2606 # Best one so far, save it but keep looking for a better one
2607 ac_cv_path_SED="$ac_path_SED"
2608 ac_path_SED_max=$ac_count
2610 # 10*(2^10) chars as input seems more than enough
2611 test $ac_count -gt 10 && break
2612 done
2613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2614 esac
2616 $ac_path_SED_found && break 3
2617 done
2618 done
2619 done
2620 IFS=$as_save_IFS
2621 if test -z "$ac_cv_path_SED"; then
2622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2624 else
2625 ac_cv_path_SED=$SED
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2630 $as_echo "$ac_cv_path_SED" >&6; }
2631 SED="$ac_cv_path_SED"
2632 rm -f conftest.sed
2634 for ac_prog in gawk mawk nawk awk
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2657 done
2658 done
2659 IFS=$as_save_IFS
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2673 test -n "$AWK" && break
2674 done
2677 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2679 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2680 # a relative path.
2681 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2682 INSTALL="${srcpwd}/install-sh -c"
2685 # Set srcdir to "." if that's what it is.
2686 # This is important for multilib support.
2687 pwd=`${PWDCMD-pwd}`
2688 if test "${pwd}" = "${srcpwd}" ; then
2689 srcdir=.
2692 topsrcdir=$srcpwd
2694 extra_host_args=
2696 ### To add a new directory to the tree, first choose whether it is a target
2697 ### or a host dependent tool. Then put it into the appropriate list
2698 ### (library or tools, host or target), doing a dependency sort.
2700 # Subdirs will be configured in the order listed in build_configdirs,
2701 # configdirs, or target_configdirs; see the serialization section below.
2703 # Dependency sorting is only needed when *configuration* must be done in
2704 # a particular order. In all cases a dependency should be specified in
2705 # the Makefile, whether or not it's implicitly specified here.
2707 # Double entries in build_configdirs, configdirs, or target_configdirs may
2708 # cause circular dependencies and break everything horribly.
2710 # these library is used by various programs built for the build
2711 # environment
2713 build_libs="build-libiberty build-libcpp"
2715 # these tools are built for the build environment
2716 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2718 # these libraries are used by various programs built for the host environment
2720 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2722 # these tools are built for the host environment
2723 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2724 # know that we are building the simulator.
2725 # binutils, gas and ld appear in that order because it makes sense to run
2726 # "make check" in that particular order.
2727 # If --enable-gold is used, "gold" may replace "ld".
2728 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
2730 # libgcj represents the runtime libraries only used by gcj.
2731 libgcj="target-libffi \
2732 target-zlib \
2733 target-libjava"
2735 # these libraries are built for the target environment, and are built after
2736 # the host libraries and the host tools (which may be a cross compiler)
2737 # Note that libiberty is not a target library.
2738 target_libraries="target-libgcc \
2739 target-libbacktrace \
2740 target-libgloss \
2741 target-newlib \
2742 target-libgomp \
2743 target-libcilkrts \
2744 target-liboffloadmic \
2745 target-libatomic \
2746 target-libitm \
2747 target-libstdc++-v3 \
2748 target-libsanitizer \
2749 target-libvtv \
2750 target-libssp \
2751 target-libquadmath \
2752 target-libgfortran \
2753 target-boehm-gc \
2754 ${libgcj} \
2755 target-libobjc \
2756 target-libada \
2757 target-libgo"
2759 # these tools are built using the target libraries, and are intended to
2760 # run only in the target environment
2762 # note: any program that *uses* libraries that are in the "target_libraries"
2763 # list belongs in this list.
2765 target_tools="target-rda"
2767 ################################################################################
2769 ## All tools belong in one of the four categories, and are assigned above
2770 ## We assign ${configdirs} this way to remove all embedded newlines. This
2771 ## is important because configure will choke if they ever get through.
2772 ## ${configdirs} is directories we build using the host tools.
2773 ## ${target_configdirs} is directories we build using the target tools.
2774 configdirs=`echo ${host_libs} ${host_tools}`
2775 target_configdirs=`echo ${target_libraries} ${target_tools}`
2776 build_configdirs=`echo ${build_libs} ${build_tools}`
2780 ################################################################################
2782 srcname="gnu development package"
2784 # This gets set non-empty for some net releases of packages.
2785 appdirs=""
2787 # Define is_cross_compiler to save on calls to 'test'.
2788 is_cross_compiler=
2789 if test x"${host}" = x"${target}" ; then
2790 is_cross_compiler=no
2791 else
2792 is_cross_compiler=yes
2795 # Find the build and target subdir names.
2797 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2798 # have matching libraries, they should use host libraries: Makefile.tpl
2799 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2800 # However, they still use the build modules, because the corresponding
2801 # host modules (e.g. bison) are only built for the host when bootstrap
2802 # finishes. So:
2803 # - build_subdir is where we find build modules, and never changes.
2804 # - build_libsubdir is where we find build libraries, and can be overridden.
2806 # Prefix 'build-' so this never conflicts with target_subdir.
2807 build_subdir="build-${build_noncanonical}"
2809 # Check whether --with-build-libsubdir was given.
2810 if test "${with_build_libsubdir+set}" = set; then :
2811 withval=$with_build_libsubdir; build_libsubdir="$withval"
2812 else
2813 build_libsubdir="$build_subdir"
2816 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2817 if ( test $srcdir = . && test -d gcc ) \
2818 || test -d $srcdir/../host-${host_noncanonical}; then
2819 host_subdir="host-${host_noncanonical}"
2820 else
2821 host_subdir=.
2823 # No prefix.
2824 target_subdir=${target_noncanonical}
2826 # Be sure to cover against remnants of an in-tree build.
2827 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2828 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2829 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2832 # Skipdirs are removed silently.
2833 skipdirs=
2834 # Noconfigdirs are removed loudly.
2835 noconfigdirs=""
2837 use_gnu_ld=
2838 # Make sure we don't let GNU ld be added if we didn't want it.
2839 if test x$with_gnu_ld = xno ; then
2840 use_gnu_ld=no
2841 noconfigdirs="$noconfigdirs ld gold"
2844 use_gnu_as=
2845 # Make sure we don't let GNU as be added if we didn't want it.
2846 if test x$with_gnu_as = xno ; then
2847 use_gnu_as=no
2848 noconfigdirs="$noconfigdirs gas"
2851 use_included_zlib=
2852 # Make sure we don't let ZLIB be added if we didn't want it.
2853 if test x$with_system_zlib = xyes ; then
2854 use_included_zlib=no
2855 noconfigdirs="$noconfigdirs zlib"
2858 # some tools are so dependent upon X11 that if we're not building with X,
2859 # it's not even worth trying to configure, much less build, that tool.
2861 case ${with_x} in
2862 yes | "") ;; # the default value for this tree is that X11 is available
2864 skipdirs="${skipdirs} tk itcl libgui"
2865 # We won't be able to build gdbtk without X.
2866 enable_gdbtk=no
2868 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2869 esac
2871 # Some are only suitable for cross toolchains.
2872 # Remove these if host=target.
2873 cross_only="target-libgloss target-newlib target-opcodes"
2875 case $is_cross_compiler in
2876 no) skipdirs="${skipdirs} ${cross_only}" ;;
2877 esac
2879 # If both --with-headers and --with-libs are specified, default to
2880 # --without-newlib.
2881 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2882 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2883 if test x"${with_newlib}" = x ; then
2884 with_newlib=no
2888 # Recognize --with-newlib/--without-newlib.
2889 case ${with_newlib} in
2890 no) skipdirs="${skipdirs} target-newlib" ;;
2891 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2892 esac
2894 # Check whether --enable-as-accelerator-for was given.
2895 if test "${enable_as_accelerator_for+set}" = set; then :
2896 enableval=$enable_as_accelerator_for;
2900 # Check whether --enable-offload-targets was given.
2901 if test "${enable_offload_targets+set}" = set; then :
2902 enableval=$enable_offload_targets;
2903 if test x"$enable_offload_targets" = x; then
2904 as_fn_error "no offload targets specified" "$LINENO" 5
2907 else
2908 enable_offload_targets=
2912 # Handle --enable-gold, --enable-ld.
2913 # --disable-gold [--enable-ld]
2914 # Build only ld. Default option.
2915 # --enable-gold [--enable-ld]
2916 # Build both gold and ld. Install gold as "ld.gold", install ld
2917 # as "ld.bfd" and "ld".
2918 # --enable-gold=default [--enable-ld]
2919 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2920 # install ld as "ld.bfd".
2921 # --enable-gold[=default] --disable-ld
2922 # Build only gold, which is then installed as both "ld.gold" and "ld".
2923 # --enable-gold --enable-ld=default
2924 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2925 # and ld.bfd).
2926 # In other words, ld is default
2927 # --enable-gold=default --enable-ld=default
2928 # Error.
2930 default_ld=
2931 # Check whether --enable-gold was given.
2932 if test "${enable_gold+set}" = set; then :
2933 enableval=$enable_gold; ENABLE_GOLD=$enableval
2934 else
2935 ENABLE_GOLD=no
2938 case "${ENABLE_GOLD}" in
2939 yes|default)
2940 # Check for ELF target.
2941 is_elf=no
2942 case "${target}" in
2943 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2944 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2945 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2946 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2947 case "${target}" in
2948 *-*-linux*aout* | *-*-linux*oldld*)
2951 is_elf=yes
2953 esac
2954 esac
2956 if test "$is_elf" = "yes"; then
2957 # Check for target supported by gold.
2958 case "${target}" in
2959 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2960 | aarch64*-*-* | tilegx*-*-*)
2961 configdirs="$configdirs gold"
2962 if test x${ENABLE_GOLD} = xdefault; then
2963 default_ld=gold
2965 ENABLE_GOLD=yes
2967 esac
2973 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2975 esac
2977 # Check whether --enable-ld was given.
2978 if test "${enable_ld+set}" = set; then :
2979 enableval=$enable_ld; ENABLE_LD=$enableval
2980 else
2981 ENABLE_LD=yes
2985 case "${ENABLE_LD}" in
2986 default)
2987 if test x${default_ld} != x; then
2988 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2991 yes)
2994 if test x${ENABLE_GOLD} != xyes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2996 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2998 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3001 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3003 esac
3005 # Configure extra directories which are host specific
3007 case "${host}" in
3008 *-cygwin*)
3009 configdirs="$configdirs libtermcap" ;;
3010 esac
3012 # A target can indicate whether a language isn't supported for some reason.
3013 # Only spaces may be used in this macro; not newlines or tabs.
3014 unsupported_languages=
3016 # Remove more programs from consideration, based on the host or
3017 # target this usually means that a port of the program doesn't
3018 # exist yet.
3020 case "${host}" in
3021 i[3456789]86-*-msdosdjgpp*)
3022 noconfigdirs="$noconfigdirs tcl tk itcl"
3024 esac
3027 # Check whether --enable-libquadmath was given.
3028 if test "${enable_libquadmath+set}" = set; then :
3029 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3030 else
3031 ENABLE_LIBQUADMATH=yes
3034 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3035 noconfigdirs="$noconfigdirs target-libquadmath"
3039 # Check whether --enable-libquadmath-support was given.
3040 if test "${enable_libquadmath_support+set}" = set; then :
3041 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3042 else
3043 ENABLE_LIBQUADMATH_SUPPORT=yes
3046 enable_libquadmath_support=
3047 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3048 enable_libquadmath_support=no
3052 # Check whether --enable-libada was given.
3053 if test "${enable_libada+set}" = set; then :
3054 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3055 else
3056 ENABLE_LIBADA=yes
3059 if test "${ENABLE_LIBADA}" != "yes" ; then
3060 noconfigdirs="$noconfigdirs gnattools"
3063 # Check whether --enable-libssp was given.
3064 if test "${enable_libssp+set}" = set; then :
3065 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3066 else
3067 ENABLE_LIBSSP=yes
3071 # Check whether --enable-libstdcxx was given.
3072 if test "${enable_libstdcxx+set}" = set; then :
3073 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3074 else
3075 ENABLE_LIBSTDCXX=default
3078 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3079 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3082 # If this is accelerator compiler and its target is intelmic we enable
3083 # target liboffloadmic by default. If this is compiler with offloading
3084 # for intelmic we enable host liboffloadmic by default. Otherwise
3085 # liboffloadmic is disabled by default.
3086 # Check whether --enable-liboffloadmic was given.
3087 if test "${enable_liboffloadmic+set}" = set; then :
3088 enableval=$enable_liboffloadmic; case "$enableval" in
3089 no | host | target)
3090 enable_liboffloadmic=$enableval ;;
3092 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3093 esac
3094 else
3095 if test x"$enable_as_accelerator_for" != x; then
3096 case "${target}" in
3097 *-intelmic-* | *-intelmicemul-*)
3098 enable_liboffloadmic=target
3099 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3102 enable_liboffloadmic=no
3104 esac
3105 else
3106 case "${enable_offload_targets}" in
3107 *-intelmic-* | *-intelmicemul-*)
3108 enable_liboffloadmic=host
3109 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3112 enable_liboffloadmic=no
3114 esac
3120 # Save it here so that, even in case of --enable-libgcj, if the Java
3121 # front-end isn't enabled, we still get libgcj disabled.
3122 libgcj_saved=$libgcj
3123 case $enable_libgcj in
3124 yes)
3125 # If we reset it here, it won't get added to noconfigdirs in the
3126 # target-specific build rules, so it will be forcibly enabled
3127 # (unless the Java language itself isn't enabled).
3128 libgcj=
3131 # Make sure we get it printed in the list of not supported target libs.
3132 # Don't disable libffi, though, other languages use it.
3133 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3134 # Clear libgcj_saved so that even if java is enabled libffi won't be
3135 # built.
3136 libgcj_saved=
3138 esac
3140 # Check whether --enable-static-libjava was given.
3141 if test "${enable_static_libjava+set}" = set; then :
3142 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3143 else
3144 ENABLE_STATIC_LIBJAVA=no
3147 enable_static_libjava=
3148 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3149 enable_static_libjava=yes
3152 if test x$enable_static_libjava != xyes ; then
3153 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3157 # Disable libgomp on non POSIX hosted systems.
3158 if test x$enable_libgomp = x ; then
3159 # Enable libgomp by default on hosted POSIX systems.
3160 case "${target}" in
3161 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3163 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3165 *-*-solaris2* | *-*-hpux11*)
3167 *-*-darwin* | *-*-aix*)
3170 noconfigdirs="$noconfigdirs target-libgomp"
3172 esac
3175 # Disable libatomic on unsupported systems.
3176 if test -d ${srcdir}/libatomic; then
3177 if test x$enable_libatomic = x; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3179 $as_echo_n "checking for libatomic support... " >&6; }
3180 if (srcdir=${srcdir}/libatomic; \
3181 . ${srcdir}/configure.tgt; \
3182 test -n "$UNSUPPORTED")
3183 then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 noconfigdirs="$noconfigdirs target-libatomic"
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189 $as_echo "yes" >&6; }
3194 # Disable libcilkrts on unsupported systems.
3195 if test -d ${srcdir}/libcilkrts; then
3196 if test x$enable_libcilkrts = x; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3198 $as_echo_n "checking for libcilkrts support... " >&6; }
3199 if (srcdir=${srcdir}/libcilkrts; \
3200 . ${srcdir}/configure.tgt; \
3201 test -n "$UNSUPPORTED")
3202 then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 noconfigdirs="$noconfigdirs target-libcilkrts"
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3213 # Disable liboffloadmic on unsupported systems.
3214 if test -d ${srcdir}/liboffloadmic; then
3215 if test x$enable_liboffloadmic != xno; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3217 $as_echo_n "checking for liboffloadmic support... " >&6; }
3218 if (srcdir=${srcdir}/liboffloadmic; \
3219 . ${srcdir}/configure.tgt; \
3220 test -n "$UNSUPPORTED")
3221 then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 noconfigdirs="$noconfigdirs target-liboffloadmic"
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3232 # Disable libitm on unsupported systems.
3233 if test -d ${srcdir}/libitm; then
3234 if test x$enable_libitm = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3236 $as_echo_n "checking for libitm support... " >&6; }
3237 if (srcdir=${srcdir}/libitm; \
3238 . ${srcdir}/configure.tgt; \
3239 test -n "$UNSUPPORTED")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 noconfigdirs="$noconfigdirs target-libitm"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3251 # Disable libsanitizer on unsupported systems.
3252 if test -d ${srcdir}/libsanitizer; then
3253 if test x$enable_libsanitizer = x; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3255 $as_echo_n "checking for libsanitizer support... " >&6; }
3256 if (srcdir=${srcdir}/libsanitizer; \
3257 . ${srcdir}/configure.tgt; \
3258 test -n "$UNSUPPORTED")
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-libsanitizer"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3270 # Disable libvtv on unsupported systems.
3271 if test -d ${srcdir}/libvtv; then
3272 if test x$enable_libvtv = x; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3274 $as_echo_n "checking for libvtv support... " >&6; }
3275 if (srcdir=${srcdir}/libvtv; \
3276 . ${srcdir}/configure.tgt; \
3277 test "$VTV_SUPPORTED" != "yes")
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 noconfigdirs="$noconfigdirs target-libvtv"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284 $as_echo "yes" >&6; }
3289 # Disable libquadmath for some systems.
3290 case "${target}" in
3291 avr-*-*)
3292 noconfigdirs="$noconfigdirs target-libquadmath"
3294 # libquadmath is unused on AIX and libquadmath build process use of
3295 # LD_LIBRARY_PATH can break AIX bootstrap.
3296 powerpc-*-aix* | rs6000-*-aix*)
3297 noconfigdirs="$noconfigdirs target-libquadmath"
3299 esac
3301 # Disable libssp for some systems.
3302 case "${target}" in
3303 avr-*-*)
3304 # No hosted I/O support.
3305 noconfigdirs="$noconfigdirs target-libssp"
3307 powerpc-*-aix* | rs6000-*-aix*)
3308 noconfigdirs="$noconfigdirs target-libssp"
3310 rl78-*-*)
3311 # libssp uses a misaligned load to trigger a fault, but the RL78
3312 # doesn't fault for those - instead, it gives a build-time error
3313 # for explicit misaligned loads.
3314 noconfigdirs="$noconfigdirs target-libssp"
3316 esac
3318 # Disable libstdc++-v3 for some systems.
3319 # Allow user to override this if they pass --enable-libstdc++-v3
3320 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3321 case "${target}" in
3322 *-*-vxworks*)
3323 # VxWorks uses the Dinkumware C++ library.
3324 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3326 arm*-wince-pe*)
3327 # the C++ libraries don't build on top of CE's C libraries
3328 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3330 avr-*-*)
3331 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3333 esac
3336 # Disable Fortran for some systems.
3337 case "${target}" in
3338 mmix-*-*)
3339 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3340 unsupported_languages="$unsupported_languages fortran"
3342 esac
3344 # Disable Java if libffi is not supported.
3345 case "${target}" in
3346 aarch64-*-*)
3348 alpha*-*-*)
3350 arm*-*-*)
3352 cris-*-*)
3354 frv-*-*)
3356 hppa*-*-linux*)
3358 hppa*-*-hpux*)
3360 i?86-*-*)
3362 ia64*-*-*)
3364 m32r*-*-*)
3366 m68k-*-*)
3368 mips*-*-rtems*)
3370 mips*-*-linux*)
3372 powerpc*-*-linux*)
3374 powerpc-*-darwin*)
3376 powerpc-*-aix* | rs6000-*-aix*)
3378 powerpc-*-freebsd*)
3380 powerpc64-*-freebsd*)
3382 powerpc*-*-rtems*)
3384 s390-*-* | s390x-*-*)
3386 sh-*-* | sh[34]*-*-*)
3388 sh64-*-* | sh5*-*-*)
3390 sparc*-*-*)
3392 x86_64-*-*)
3394 *-*-*)
3395 unsupported_languages="$unsupported_languages java"
3397 esac
3399 # Disable Java, libgcj or related libraries for some systems.
3400 case "${target}" in
3401 powerpc-*-darwin*)
3403 i[3456789]86-*-darwin*)
3405 x86_64-*-darwin[912]*)
3407 *-*-darwin*)
3408 noconfigdirs="$noconfigdirs ${libgcj}"
3410 *-*-netware*)
3411 noconfigdirs="$noconfigdirs ${libgcj}"
3413 *-*-rtems*)
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3416 *-*-tpf*)
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3419 *-*-uclinux*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3422 *-*-vxworks*)
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3425 alpha*-*-*vms*)
3426 noconfigdirs="$noconfigdirs ${libgcj}"
3428 arm-wince-pe)
3429 noconfigdirs="$noconfigdirs ${libgcj}"
3431 arm*-*-symbianelf*)
3432 noconfigdirs="$noconfigdirs ${libgcj}"
3434 bfin-*-*)
3435 noconfigdirs="$noconfigdirs target-boehm-gc"
3437 cris-*-* | crisv32-*-*)
3438 unsupported_languages="$unsupported_languages java"
3439 case "${target}" in
3440 *-*-linux*)
3442 *) # See PR46792 regarding target-libffi.
3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3444 esac
3446 hppa*64*-*-linux*)
3447 # In this case, it's because the hppa64-linux target is for
3448 # the kernel only at this point and has no libc, and thus no
3449 # headers, crt*.o, etc., all of which are needed by these.
3450 unsupported_languages="$unsupported_languages java"
3452 hppa*64*-*-hpux*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3455 hppa*-hp-hpux11*)
3457 hppa*-*-hpux*)
3458 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3459 # build on HP-UX 10.20.
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3462 ia64*-*-*vms*)
3463 noconfigdirs="$noconfigdirs ${libgcj}"
3465 i[3456789]86-w64-mingw*)
3466 noconfigdirs="$noconfigdirs ${libgcj}"
3468 i[3456789]86-*-mingw*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3471 x86_64-*-mingw*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3474 mmix-*-*)
3475 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3477 powerpc-*-aix*)
3478 # copied from rs6000-*-* entry
3479 noconfigdirs="$noconfigdirs ${libgcj}"
3481 rs6000-*-aix*)
3482 noconfigdirs="$noconfigdirs ${libgcj}"
3484 *-*-lynxos*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3487 esac
3489 # Disable the go frontend on systems where it is known to not work. Please keep
3490 # this in sync with contrib/config-list.mk.
3491 case "${target}" in
3492 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3493 unsupported_languages="$unsupported_languages go"
3495 esac
3497 # Disable libgo for some systems where it is known to not work.
3498 # For testing, you can easily override this with --enable-libgo.
3499 if test x$enable_libgo = x; then
3500 case "${target}" in
3501 *-*-darwin*)
3502 # PR 46986
3503 noconfigdirs="$noconfigdirs target-libgo"
3505 *-*-cygwin* | *-*-mingw*)
3506 noconfigdirs="$noconfigdirs target-libgo"
3508 *-*-aix*)
3509 noconfigdirs="$noconfigdirs target-libgo"
3511 esac
3514 # Default libgloss CPU subdirectory.
3515 libgloss_dir="$target_cpu"
3517 case "${target}" in
3518 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3519 libgloss_dir=wince
3521 aarch64*-*-* )
3522 libgloss_dir=aarch64
3524 arm*-*-*)
3525 libgloss_dir=arm
3527 cris-*-* | crisv32-*-*)
3528 libgloss_dir=cris
3530 hppa*-*-*)
3531 libgloss_dir=pa
3533 i[3456789]86-*-*)
3534 libgloss_dir=i386
3536 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3537 libgloss_dir=m68hc11
3539 m68*-*-* | fido-*-*)
3540 libgloss_dir=m68k
3542 mips*-*-*)
3543 libgloss_dir=mips
3545 powerpc*-*-*)
3546 libgloss_dir=rs6000
3548 sparc*-*-*)
3549 libgloss_dir=sparc
3551 esac
3553 # Disable newlib and libgloss for various target OSes.
3554 case "${target}" in
3555 alpha*-dec-osf*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3558 i[3456789]86-*-linux*)
3559 # This section makes it possible to build newlib natively on linux.
3560 # If we are using a cross compiler then don't configure newlib.
3561 if test x${is_cross_compiler} != xno ; then
3562 noconfigdirs="$noconfigdirs target-newlib"
3564 noconfigdirs="$noconfigdirs target-libgloss"
3565 # If we are not using a cross compiler, do configure newlib.
3566 # Note however, that newlib will only be configured in this situation
3567 # if the --with-newlib option has been given, because otherwise
3568 # 'target-newlib' will appear in skipdirs.
3570 i[3456789]86-*-rdos*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3573 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3576 sparc-*-sunos4*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3579 *-*-aix*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3582 *-*-beos*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 *-*-chorusos)
3586 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3588 *-*-dragonfly*)
3589 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3591 *-*-freebsd*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 *-*-lynxos*)
3598 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3600 *-*-mingw*)
3601 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3603 *-*-netbsd*)
3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 *-*-netware*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609 *-*-tpf*)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 *-*-uclinux*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 *-*-vxworks*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 esac
3620 case "${target}" in
3621 *-*-chorusos)
3623 powerpc-*-darwin*)
3624 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3625 noconfigdirs="$noconfigdirs sim target-rda"
3627 i[3456789]86-*-darwin*)
3628 noconfigdirs="$noconfigdirs ld gprof"
3629 noconfigdirs="$noconfigdirs sim target-rda"
3631 x86_64-*-darwin[912]*)
3632 noconfigdirs="$noconfigdirs ld gas gprof"
3633 noconfigdirs="$noconfigdirs sim target-rda"
3635 *-*-darwin*)
3636 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3637 noconfigdirs="$noconfigdirs sim target-rda"
3639 *-*-dragonfly*)
3641 *-*-freebsd*)
3642 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3643 && test -f /usr/local/include/gmp.h; then
3644 with_gmp=/usr/local
3647 *-*-kaos*)
3648 # Remove unsupported stuff on all kaOS configurations.
3649 noconfigdirs="$noconfigdirs target-libgloss"
3651 *-*-netbsd*)
3653 *-*-netware*)
3655 *-*-rtems*)
3656 noconfigdirs="$noconfigdirs target-libgloss"
3657 # this is not caught below because this stanza matches earlier
3658 case $target in
3659 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3660 esac
3662 # The tpf target doesn't support gdb yet.
3663 *-*-tpf*)
3664 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3666 *-*-uclinux*)
3667 noconfigdirs="$noconfigdirs target-rda"
3669 *-*-vxworks*)
3671 alpha*-dec-osf*)
3672 # ld works, but does not support shared libraries.
3673 # gas doesn't generate exception information.
3674 noconfigdirs="$noconfigdirs gas ld"
3676 alpha*-*-*vms*)
3677 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3679 alpha*-*-*)
3680 # newlib is not 64 bit ready
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3684 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3686 arc-*-*|arceb-*-*)
3687 noconfigdirs="$noconfigdirs target-libgloss"
3689 arm-*-pe*)
3690 noconfigdirs="$noconfigdirs target-libgloss"
3692 arm-*-riscix*)
3693 noconfigdirs="$noconfigdirs ld target-libgloss"
3695 avr-*-rtems*)
3697 avr-*-*)
3698 if test x${with_avrlibc} != xno; then
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 c4x-*-* | tic4x-*-*)
3703 noconfigdirs="$noconfigdirs target-libgloss"
3705 tic54x-*-*)
3706 noconfigdirs="$noconfigdirs target-libgloss gdb"
3708 d10v-*-*)
3709 noconfigdirs="$noconfigdirs target-libgloss"
3711 d30v-*-*)
3712 noconfigdirs="$noconfigdirs gdb"
3714 fr30-*-elf*)
3715 noconfigdirs="$noconfigdirs gdb"
3717 moxie-*-*)
3718 noconfigdirs="$noconfigdirs gprof"
3720 h8300*-*-*)
3721 noconfigdirs="$noconfigdirs target-libgloss"
3723 h8500-*-*)
3724 noconfigdirs="$noconfigdirs target-libgloss"
3726 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3728 hppa*64*-*-linux*)
3730 hppa*-*-linux*)
3732 hppa*-*-*elf* | \
3733 hppa*-*-lites* | \
3734 hppa*-*-openbsd* | \
3735 hppa*64*-*-*)
3737 hppa*-hp-hpux11*)
3738 noconfigdirs="$noconfigdirs ld"
3740 hppa*-*-pro*)
3742 hppa*-*-*)
3743 noconfigdirs="$noconfigdirs ld"
3745 i960-*-*)
3746 noconfigdirs="$noconfigdirs gdb"
3748 ia64*-*-elf*)
3749 # No gdb support yet.
3750 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3752 ia64*-**-hpux*)
3753 # No ld support yet.
3754 noconfigdirs="$noconfigdirs libgui itcl ld"
3756 ia64*-*-*vms*)
3757 # No ld support yet.
3758 noconfigdirs="$noconfigdirs libgui itcl ld"
3760 i[3456789]86-w64-mingw*)
3762 i[3456789]86-*-mingw*)
3763 target_configdirs="$target_configdirs target-winsup"
3765 *-*-cygwin*)
3766 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3767 noconfigdirs="$noconfigdirs target-libgloss"
3768 # always build newlib if winsup directory is present.
3769 if test -d "$srcdir/winsup/cygwin"; then
3770 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3771 elif test -d "$srcdir/newlib"; then
3772 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3775 i[3456789]86-*-pe)
3776 noconfigdirs="$noconfigdirs target-libgloss"
3778 i[3456789]86-*-sco3.2v5*)
3779 # The linker does not yet know about weak symbols in COFF,
3780 # and is not configured to handle mixed ELF and COFF.
3781 noconfigdirs="$noconfigdirs ld target-libgloss"
3783 i[3456789]86-*-sco*)
3784 noconfigdirs="$noconfigdirs gprof target-libgloss"
3786 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3787 noconfigdirs="$noconfigdirs target-libgloss"
3789 i[3456789]86-*-sysv4*)
3790 noconfigdirs="$noconfigdirs target-libgloss"
3792 i[3456789]86-*-beos*)
3793 noconfigdirs="$noconfigdirs gdb"
3795 i[3456789]86-*-rdos*)
3796 noconfigdirs="$noconfigdirs gdb"
3798 mmix-*-*)
3799 noconfigdirs="$noconfigdirs gdb"
3801 mt-*-*)
3802 noconfigdirs="$noconfigdirs sim"
3804 powerpc-*-aix*)
3805 # copied from rs6000-*-* entry
3806 noconfigdirs="$noconfigdirs gprof"
3808 powerpc*-*-winnt* | powerpc*-*-pe*)
3809 target_configdirs="$target_configdirs target-winsup"
3810 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3811 # always build newlib.
3812 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3814 # This is temporary until we can link against shared libraries
3815 powerpcle-*-solaris*)
3816 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3818 powerpc-*-beos*)
3819 noconfigdirs="$noconfigdirs gdb"
3821 rs6000-*-lynxos*)
3822 noconfigdirs="$noconfigdirs gprof"
3824 rs6000-*-aix*)
3825 noconfigdirs="$noconfigdirs gprof"
3827 rs6000-*-*)
3828 noconfigdirs="$noconfigdirs gprof"
3830 m68k-apollo-*)
3831 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3833 microblaze*)
3834 noconfigdirs="$noconfigdirs gprof"
3836 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3837 if test x$with_newlib = xyes; then
3838 noconfigdirs="$noconfigdirs gprof"
3841 mips*-*-irix5*)
3842 noconfigdirs="$noconfigdirs gprof target-libgloss"
3844 mips*-*-irix6*)
3845 noconfigdirs="$noconfigdirs gprof target-libgloss"
3847 mips*-*-bsd*)
3848 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3850 mips*-*-linux*)
3852 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3853 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3854 noconfigdirs="$noconfigdirs ld gas gprof"
3856 mips*-*-*)
3857 noconfigdirs="$noconfigdirs gprof"
3859 nds32*-*-*)
3860 noconfigdirs="$noconfigdirs gdb"
3862 nvptx*-*-*)
3863 # nvptx is just a compiler
3864 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3866 or1k*-*-*)
3867 noconfigdirs="$noconfigdirs gdb"
3869 sh-*-* | sh64-*-*)
3870 case "${target}" in
3871 sh*-*-elf)
3874 noconfigdirs="$noconfigdirs target-libgloss" ;;
3875 esac
3877 sparc-*-sunos4*)
3878 if test x${is_cross_compiler} = xno ; then
3879 use_gnu_ld=no
3882 tic6x-*-*)
3883 noconfigdirs="$noconfigdirs sim"
3885 tilepro*-*-* | tilegx*-*-*)
3886 noconfigdirs="$noconfigdirs sim"
3888 v810-*-*)
3889 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3891 vax-*-*)
3892 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3894 esac
3896 # If we aren't building newlib, then don't build libgloss, since libgloss
3897 # depends upon some newlib header files.
3898 case "${noconfigdirs}" in
3899 *target-libgloss*) ;;
3900 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3901 esac
3903 # Work in distributions that contain no compiler tools, like Autoconf.
3904 host_makefile_frag=/dev/null
3905 if test -d ${srcdir}/config ; then
3906 case "${host}" in
3907 i[3456789]86-*-msdosdjgpp*)
3908 host_makefile_frag="config/mh-djgpp"
3910 *-cygwin*)
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3913 $as_echo_n "checking to see if cat works as expected... " >&6; }
3914 echo a >cygwin-cat-check
3915 if test `cat cygwin-cat-check` = a ; then
3916 rm cygwin-cat-check
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3918 $as_echo "yes" >&6; }
3919 else
3920 rm cygwin-cat-check
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 as_fn_error "The cat command does not ignore carriage return characters.
3924 Please either mount the build directory in binary mode or run the following
3925 commands before running any configure script:
3926 set -o igncr
3927 export SHELLOPTS
3928 " "$LINENO" 5
3931 host_makefile_frag="config/mh-cygwin"
3933 *-mingw*)
3934 host_makefile_frag="config/mh-mingw"
3936 alpha*-*-linux*)
3937 host_makefile_frag="config/mh-alpha-linux"
3939 hppa*-hp-hpux10*)
3940 host_makefile_frag="config/mh-pa-hpux10"
3942 hppa*-hp-hpux*)
3943 host_makefile_frag="config/mh-pa"
3945 hppa*-*)
3946 host_makefile_frag="config/mh-pa"
3948 *-*-darwin*)
3949 host_makefile_frag="config/mh-darwin"
3951 powerpc-*-aix*)
3952 host_makefile_frag="config/mh-ppc-aix"
3954 rs6000-*-aix*)
3955 host_makefile_frag="config/mh-ppc-aix"
3957 esac
3960 if test "${build}" != "${host}" ; then
3961 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3962 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3963 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3964 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3965 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3966 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3967 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3968 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3969 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3970 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3971 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3972 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3973 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3974 else
3975 AR_FOR_BUILD="\$(AR)"
3976 AS_FOR_BUILD="\$(AS)"
3977 CC_FOR_BUILD="\$(CC)"
3978 CXX_FOR_BUILD="\$(CXX)"
3979 GCJ_FOR_BUILD="\$(GCJ)"
3980 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3981 GOC_FOR_BUILD="\$(GOC)"
3982 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3983 LD_FOR_BUILD="\$(LD)"
3984 NM_FOR_BUILD="\$(NM)"
3985 RANLIB_FOR_BUILD="\$(RANLIB)"
3986 WINDRES_FOR_BUILD="\$(WINDRES)"
3987 WINDMC_FOR_BUILD="\$(WINDMC)"
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if test "${ac_cv_prog_CC+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4017 done
4018 done
4019 IFS=$as_save_IFS
4023 CC=$ac_cv_prog_CC
4024 if test -n "$CC"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4026 $as_echo "$CC" >&6; }
4027 else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4034 if test -z "$ac_cv_prog_CC"; then
4035 ac_ct_CC=$CC
4036 # Extract the first word of "gcc", so it can be a program name with args.
4037 set dummy gcc; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test -n "$ac_ct_CC"; then
4044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_ac_ct_CC="gcc"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4057 done
4058 done
4059 IFS=$as_save_IFS
4063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4064 if test -n "$ac_ct_CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4066 $as_echo "$ac_ct_CC" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081 CC=$ac_ct_CC
4083 else
4084 CC="$ac_cv_prog_CC"
4087 if test -z "$CC"; then
4088 if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4090 set dummy ${ac_tool_prefix}cc; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if test "${ac_cv_prog_CC+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_CC="${ac_tool_prefix}cc"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4110 done
4111 done
4112 IFS=$as_save_IFS
4116 CC=$ac_cv_prog_CC
4117 if test -n "$CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119 $as_echo "$CC" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4128 if test -z "$CC"; then
4129 # Extract the first word of "cc", so it can be a program name with args.
4130 set dummy cc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if test "${ac_cv_prog_CC+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4148 ac_prog_rejected=yes
4149 continue
4151 ac_cv_prog_CC="cc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 break 2
4155 done
4156 done
4157 IFS=$as_save_IFS
4159 if test $ac_prog_rejected = yes; then
4160 # We found a bogon in the path, so make sure we never use it.
4161 set dummy $ac_cv_prog_CC
4162 shift
4163 if test $# != 0; then
4164 # We chose a different compiler from the bogus one.
4165 # However, it has the same basename, so the bogon will be chosen
4166 # first if we set CC to just the basename; use the full file name.
4167 shift
4168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 $as_echo "$CC" >&6; }
4177 else
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 $as_echo "no" >&6; }
4184 if test -z "$CC"; then
4185 if test -n "$ac_tool_prefix"; then
4186 for ac_prog in cl.exe
4188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_CC+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4209 done
4210 done
4211 IFS=$as_save_IFS
4215 CC=$ac_cv_prog_CC
4216 if test -n "$CC"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4225 test -n "$CC" && break
4226 done
4228 if test -z "$CC"; then
4229 ac_ct_CC=$CC
4230 for ac_prog in cl.exe
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4238 else
4239 if test -n "$ac_ct_CC"; then
4240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_ac_ct_CC="$ac_prog"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4253 done
4254 done
4255 IFS=$as_save_IFS
4259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260 if test -n "$ac_ct_CC"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262 $as_echo "$ac_ct_CC" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4269 test -n "$ac_ct_CC" && break
4270 done
4272 if test "x$ac_ct_CC" = x; then
4273 CC=""
4274 else
4275 case $cross_compiling:$ac_tool_warned in
4276 yes:)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279 ac_tool_warned=yes ;;
4280 esac
4281 CC=$ac_ct_CC
4288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4290 as_fn_error "no acceptable C compiler found in \$PATH
4291 See \`config.log' for more details." "$LINENO" 5; }
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4295 set X $ac_compile
4296 ac_compiler=$2
4297 for ac_option in --version -v -V -qversion; do
4298 { { ac_try="$ac_compiler $ac_option >&5"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4306 ac_status=$?
4307 if test -s conftest.err; then
4308 sed '10a\
4309 ... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
4312 rm -f conftest.er1 conftest.err
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316 done
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4322 main ()
4326 return 0;
4328 _ACEOF
4329 ac_clean_files_save=$ac_clean_files
4330 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4331 # Try to create an executable without -o first, disregard a.out.
4332 # It will help us diagnose broken compilers, and finding out an intuition
4333 # of exeext.
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4335 $as_echo_n "checking for C compiler default output file name... " >&6; }
4336 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4338 # The possible output files:
4339 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4341 ac_rmfiles=
4342 for ac_file in $ac_files
4344 case $ac_file in
4345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4346 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4347 esac
4348 done
4349 rm -f $ac_rmfiles
4351 if { { ac_try="$ac_link_default"
4352 case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4357 $as_echo "$ac_try_echo"; } >&5
4358 (eval "$ac_link_default") 2>&5
4359 ac_status=$?
4360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4361 test $ac_status = 0; }; then :
4362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4364 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4365 # so that the user can short-circuit this test for compilers unknown to
4366 # Autoconf.
4367 for ac_file in $ac_files ''
4369 test -f "$ac_file" || continue
4370 case $ac_file in
4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4373 [ab].out )
4374 # We found the default executable, but exeext='' is most
4375 # certainly right.
4376 break;;
4377 *.* )
4378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4379 then :; else
4380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4382 # We set ac_cv_exeext here because the later test for it is not
4383 # safe: cross compilers may not add the suffix if given an `-o'
4384 # argument, so we may need to know it at that point already.
4385 # Even if this section looks crufty: it has the advantage of
4386 # actually working.
4387 break;;
4389 break;;
4390 esac
4391 done
4392 test "$ac_cv_exeext" = no && ac_cv_exeext=
4394 else
4395 ac_file=''
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4398 $as_echo "$ac_file" >&6; }
4399 if test -z "$ac_file"; then :
4400 $as_echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 { as_fn_set_status 77
4406 as_fn_error "C compiler cannot create executables
4407 See \`config.log' for more details." "$LINENO" 5; }; }
4409 ac_exeext=$ac_cv_exeext
4411 # Check that the compiler produces executables we can run. If not, either
4412 # the compiler is broken, or we cross compile.
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4414 $as_echo_n "checking whether the C compiler works... " >&6; }
4415 # If not cross compiling, check that we can run a simple program.
4416 if test "$cross_compiling" != yes; then
4417 if { ac_try='./$ac_file'
4418 { { case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$ac_try") 2>&5
4425 ac_status=$?
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }; }; then
4428 cross_compiling=no
4429 else
4430 if test "$cross_compiling" = maybe; then
4431 cross_compiling=yes
4432 else
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error "cannot run C compiled programs.
4436 If you meant to cross compile, use \`--host'.
4437 See \`config.log' for more details." "$LINENO" 5; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4444 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4445 ac_clean_files=$ac_clean_files_save
4446 # Check that the compiler produces executables we can run. If not, either
4447 # the compiler is broken, or we cross compile.
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4449 $as_echo_n "checking whether we are cross compiling... " >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4451 $as_echo "$cross_compiling" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4454 $as_echo_n "checking for suffix of executables... " >&6; }
4455 if { { ac_try="$ac_link"
4456 case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462 (eval "$ac_link") 2>&5
4463 ac_status=$?
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; then :
4466 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4467 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4468 # work properly (i.e., refer to `conftest.exe'), while it won't with
4469 # `rm'.
4470 for ac_file in conftest.exe conftest conftest.*; do
4471 test -f "$ac_file" || continue
4472 case $ac_file in
4473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4474 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4475 break;;
4476 * ) break;;
4477 esac
4478 done
4479 else
4480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4482 as_fn_error "cannot compute suffix of executables: cannot compile and link
4483 See \`config.log' for more details." "$LINENO" 5; }
4485 rm -f conftest$ac_cv_exeext
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4487 $as_echo "$ac_cv_exeext" >&6; }
4489 rm -f conftest.$ac_ext
4490 EXEEXT=$ac_cv_exeext
4491 ac_exeext=$EXEEXT
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4493 $as_echo_n "checking for suffix of object files... " >&6; }
4494 if test "${ac_cv_objext+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4501 main ()
4505 return 0;
4507 _ACEOF
4508 rm -f conftest.o conftest.obj
4509 if { { ac_try="$ac_compile"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4515 $as_echo "$ac_try_echo"; } >&5
4516 (eval "$ac_compile") 2>&5
4517 ac_status=$?
4518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4519 test $ac_status = 0; }; then :
4520 for ac_file in conftest.o conftest.obj conftest.*; do
4521 test -f "$ac_file" || continue;
4522 case $ac_file in
4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4525 break;;
4526 esac
4527 done
4528 else
4529 $as_echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4534 as_fn_error "cannot compute suffix of object files: cannot compile
4535 See \`config.log' for more details." "$LINENO" 5; }
4537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4540 $as_echo "$ac_cv_objext" >&6; }
4541 OBJEXT=$ac_cv_objext
4542 ac_objext=$OBJEXT
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4545 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4552 main ()
4554 #ifndef __GNUC__
4555 choke me
4556 #endif
4559 return 0;
4561 _ACEOF
4562 if ac_fn_c_try_compile "$LINENO"; then :
4563 ac_compiler_gnu=yes
4564 else
4565 ac_compiler_gnu=no
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4573 if test $ac_compiler_gnu = yes; then
4574 GCC=yes
4575 else
4576 GCC=
4578 ac_test_CFLAGS=${CFLAGS+set}
4579 ac_save_CFLAGS=$CFLAGS
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4582 if test "${ac_cv_prog_cc_g+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 ac_save_c_werror_flag=$ac_c_werror_flag
4586 ac_c_werror_flag=yes
4587 ac_cv_prog_cc_g=no
4588 CFLAGS="-g"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4593 main ()
4597 return 0;
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_prog_cc_g=yes
4602 else
4603 CFLAGS=""
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4608 main ()
4612 return 0;
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4617 else
4618 ac_c_werror_flag=$ac_save_c_werror_flag
4619 CFLAGS="-g"
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 main ()
4628 return 0;
4630 _ACEOF
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_prog_cc_g=yes
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 ac_c_werror_flag=$ac_save_c_werror_flag
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4642 $as_echo "$ac_cv_prog_cc_g" >&6; }
4643 if test "$ac_test_CFLAGS" = set; then
4644 CFLAGS=$ac_save_CFLAGS
4645 elif test $ac_cv_prog_cc_g = yes; then
4646 if test "$GCC" = yes; then
4647 CFLAGS="-g -O2"
4648 else
4649 CFLAGS="-g"
4651 else
4652 if test "$GCC" = yes; then
4653 CFLAGS="-O2"
4654 else
4655 CFLAGS=
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4660 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 ac_cv_prog_cc_c89=no
4664 ac_save_CC=$CC
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667 #include <stdarg.h>
4668 #include <stdio.h>
4669 #include <sys/types.h>
4670 #include <sys/stat.h>
4671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4672 struct buf { int x; };
4673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4674 static char *e (p, i)
4675 char **p;
4676 int i;
4678 return p[i];
4680 static char *f (char * (*g) (char **, int), char **p, ...)
4682 char *s;
4683 va_list v;
4684 va_start (v,p);
4685 s = g (p, va_arg (v,int));
4686 va_end (v);
4687 return s;
4690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4691 function prototypes and stuff, but not '\xHH' hex character constants.
4692 These don't provoke an error unfortunately, instead are silently treated
4693 as 'x'. The following induces an error, until -std is added to get
4694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4695 array size at least. It's necessary to write '\x00'==0 to get something
4696 that's true only with -std. */
4697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4700 inside strings and character constants. */
4701 #define FOO(x) 'x'
4702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4704 int test (int i, double x);
4705 struct s1 {int (*f) (int a);};
4706 struct s2 {int (*f) (double a);};
4707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4708 int argc;
4709 char **argv;
4711 main ()
4713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4715 return 0;
4717 _ACEOF
4718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4721 CC="$ac_save_CC $ac_arg"
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 ac_cv_prog_cc_c89=$ac_arg
4725 rm -f core conftest.err conftest.$ac_objext
4726 test "x$ac_cv_prog_cc_c89" != "xno" && break
4727 done
4728 rm -f conftest.$ac_ext
4729 CC=$ac_save_CC
4732 # AC_CACHE_VAL
4733 case "x$ac_cv_prog_cc_c89" in
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4736 $as_echo "none needed" >&6; } ;;
4737 xno)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4739 $as_echo "unsupported" >&6; } ;;
4741 CC="$CC $ac_cv_prog_cc_c89"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4744 esac
4745 if test "x$ac_cv_prog_cc_c89" != xno; then :
4749 ac_ext=c
4750 ac_cpp='$CPP $CPPFLAGS'
4751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755 ac_ext=cpp
4756 ac_cpp='$CXXCPP $CPPFLAGS'
4757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4760 if test -z "$CXX"; then
4761 if test -n "$CCC"; then
4762 CXX=$CCC
4763 else
4764 if test -n "$ac_tool_prefix"; then
4765 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_CXX+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$CXX"; then
4775 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4794 CXX=$ac_cv_prog_CXX
4795 if test -n "$CXX"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4797 $as_echo "$CXX" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4804 test -n "$CXX" && break
4805 done
4807 if test -z "$CXX"; then
4808 ac_ct_CXX=$CXX
4809 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4814 $as_echo_n "checking for $ac_word... " >&6; }
4815 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 if test -n "$ac_ct_CXX"; then
4819 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4820 else
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_prog_ac_ct_CXX="$ac_prog"
4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4838 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4839 if test -n "$ac_ct_CXX"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4841 $as_echo "$ac_ct_CXX" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4848 test -n "$ac_ct_CXX" && break
4849 done
4851 if test "x$ac_ct_CXX" = x; then
4852 CXX="g++"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860 CXX=$ac_ct_CXX
4866 # Provide some information about the compiler.
4867 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4868 set X $ac_compile
4869 ac_compiler=$2
4870 for ac_option in --version -v -V -qversion; do
4871 { { ac_try="$ac_compiler $ac_option >&5"
4872 case "(($ac_try" in
4873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874 *) ac_try_echo=$ac_try;;
4875 esac
4876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4877 $as_echo "$ac_try_echo"; } >&5
4878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4879 ac_status=$?
4880 if test -s conftest.err; then
4881 sed '10a\
4882 ... rest of stderr output deleted ...
4883 10q' conftest.err >conftest.er1
4884 cat conftest.er1 >&5
4885 rm -f conftest.er1 conftest.err
4887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4888 test $ac_status = 0; }
4889 done
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4892 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4893 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4900 main ()
4902 #ifndef __GNUC__
4903 choke me
4904 #endif
4907 return 0;
4909 _ACEOF
4910 if ac_fn_cxx_try_compile "$LINENO"; then :
4911 ac_compiler_gnu=yes
4912 else
4913 ac_compiler_gnu=no
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4920 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4921 if test $ac_compiler_gnu = yes; then
4922 GXX=yes
4923 else
4924 GXX=
4926 ac_test_CXXFLAGS=${CXXFLAGS+set}
4927 ac_save_CXXFLAGS=$CXXFLAGS
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4929 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4930 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4934 ac_cxx_werror_flag=yes
4935 ac_cv_prog_cxx_g=no
4936 CXXFLAGS="-g"
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4941 main ()
4945 return 0;
4947 _ACEOF
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4949 ac_cv_prog_cxx_g=yes
4950 else
4951 CXXFLAGS=""
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4956 main ()
4960 return 0;
4962 _ACEOF
4963 if ac_fn_cxx_try_compile "$LINENO"; then :
4965 else
4966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4967 CXXFLAGS="-g"
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4972 main ()
4976 return 0;
4978 _ACEOF
4979 if ac_fn_cxx_try_compile "$LINENO"; then :
4980 ac_cv_prog_cxx_g=yes
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4990 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4991 if test "$ac_test_CXXFLAGS" = set; then
4992 CXXFLAGS=$ac_save_CXXFLAGS
4993 elif test $ac_cv_prog_cxx_g = yes; then
4994 if test "$GXX" = yes; then
4995 CXXFLAGS="-g -O2"
4996 else
4997 CXXFLAGS="-g"
4999 else
5000 if test "$GXX" = yes; then
5001 CXXFLAGS="-O2"
5002 else
5003 CXXFLAGS=
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 # We must set the default linker to the linker used by gcc for the correct
5014 # operation of libtool. If LD is not defined and we are using gcc, try to
5015 # set the LD default to the ld used by gcc.
5016 if test -z "$LD"; then
5017 if test "$GCC" = yes; then
5018 case $build in
5019 *-*-mingw*)
5020 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5023 esac
5024 case $gcc_prog_ld in
5025 # Accept absolute paths.
5026 [\\/]* | [A-Za-z]:[\\/]*)
5027 LD="$gcc_prog_ld" ;;
5028 esac
5032 # Check whether -static-libstdc++ -static-libgcc is supported.
5033 have_static_libs=no
5034 if test "$GCC" = yes; then
5035 saved_LDFLAGS="$LDFLAGS"
5037 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5039 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5040 ac_ext=cpp
5041 ac_cpp='$CXXCPP $CPPFLAGS'
5042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5050 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5051 #error -static-libstdc++ not implemented
5052 #endif
5053 int main() {}
5054 _ACEOF
5055 if ac_fn_cxx_try_link "$LINENO"; then :
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5057 $as_echo "yes" >&6; }; have_static_libs=yes
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5062 rm -f core conftest.err conftest.$ac_objext \
5063 conftest$ac_exeext conftest.$ac_ext
5064 ac_ext=c
5065 ac_cpp='$CPP $CPPFLAGS'
5066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071 LDFLAGS="$saved_LDFLAGS"
5077 if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5079 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$GNATBIND"; then
5086 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 GNATBIND=$ac_cv_prog_GNATBIND
5106 if test -n "$GNATBIND"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5108 $as_echo "$GNATBIND" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5116 if test -z "$ac_cv_prog_GNATBIND"; then
5117 ac_ct_GNATBIND=$GNATBIND
5118 # Extract the first word of "gnatbind", so it can be a program name with args.
5119 set dummy gnatbind; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$ac_ct_GNATBIND"; then
5126 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5139 done
5140 done
5141 IFS=$as_save_IFS
5145 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5146 if test -n "$ac_ct_GNATBIND"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5148 $as_echo "$ac_ct_GNATBIND" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5154 if test "x$ac_ct_GNATBIND" = x; then
5155 GNATBIND="no"
5156 else
5157 case $cross_compiling:$ac_tool_warned in
5158 yes:)
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161 ac_tool_warned=yes ;;
5162 esac
5163 GNATBIND=$ac_ct_GNATBIND
5165 else
5166 GNATBIND="$ac_cv_prog_GNATBIND"
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$GNATMAKE"; then
5178 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5191 done
5192 done
5193 IFS=$as_save_IFS
5197 GNATMAKE=$ac_cv_prog_GNATMAKE
5198 if test -n "$GNATMAKE"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5200 $as_echo "$GNATMAKE" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5208 if test -z "$ac_cv_prog_GNATMAKE"; then
5209 ac_ct_GNATMAKE=$GNATMAKE
5210 # Extract the first word of "gnatmake", so it can be a program name with args.
5211 set dummy gnatmake; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ac_ct_GNATMAKE"; then
5218 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5231 done
5232 done
5233 IFS=$as_save_IFS
5237 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5238 if test -n "$ac_ct_GNATMAKE"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5240 $as_echo "$ac_ct_GNATMAKE" >&6; }
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5246 if test "x$ac_ct_GNATMAKE" = x; then
5247 GNATMAKE="no"
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5254 esac
5255 GNATMAKE=$ac_ct_GNATMAKE
5257 else
5258 GNATMAKE="$ac_cv_prog_GNATMAKE"
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5262 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5263 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat >conftest.adb <<EOF
5267 procedure conftest is begin null; end conftest;
5269 acx_cv_cc_gcc_supports_ada=no
5270 # There is a bug in old released versions of GCC which causes the
5271 # driver to exit successfully when the appropriate language module
5272 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5273 # Therefore we must check for the error message as well as an
5274 # unsuccessful exit.
5275 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5276 # given a .adb file, but produce no object file. So we must check
5277 # if an object file was really produced to guard against this.
5278 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5279 if test x"$errors" = x && test -f conftest.$ac_objext; then
5280 acx_cv_cc_gcc_supports_ada=yes
5282 rm -f conftest.*
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5285 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5287 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5288 have_gnat=yes
5289 else
5290 have_gnat=no
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5294 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5295 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 echo abfoo >t1
5299 echo cdfoo >t2
5300 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5301 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5302 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5304 else
5305 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5308 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5309 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5311 else
5312 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5315 rm t1 t2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5319 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5320 do_compare="$gcc_cv_prog_cmp_skip"
5324 # Check whether --enable-bootstrap was given.
5325 if test "${enable_bootstrap+set}" = set; then :
5326 enableval=$enable_bootstrap;
5327 else
5328 enable_bootstrap=default
5332 # Issue errors and warnings for invalid/strange bootstrap combinations.
5333 if test -r $srcdir/gcc/configure; then
5334 have_compiler=yes
5335 else
5336 have_compiler=no
5339 case "$have_compiler:$host:$target:$enable_bootstrap" in
5340 *:*:*:no) ;;
5342 # Default behavior. Enable bootstrap if we have a compiler
5343 # and we are in a native configuration.
5344 yes:$build:$build:default)
5345 enable_bootstrap=yes ;;
5347 *:*:*:default)
5348 enable_bootstrap=no ;;
5350 # We have a compiler and we are in a native configuration, bootstrap is ok
5351 yes:$build:$build:yes)
5354 # Other configurations, but we have a compiler. Assume the user knows
5355 # what he's doing.
5356 yes:*:*:yes)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5358 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5361 # No compiler: if they passed --enable-bootstrap explicitly, fail
5362 no:*:*:yes)
5363 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5365 # Fail if wrong command line
5367 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5369 esac
5371 # Used for setting $lt_cv_objdir
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5373 $as_echo_n "checking for objdir... " >&6; }
5374 if test "${lt_cv_objdir+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 rm -f .libs 2>/dev/null
5378 mkdir .libs 2>/dev/null
5379 if test -d .libs; then
5380 lt_cv_objdir=.libs
5381 else
5382 # MS-DOS does not allow filenames that begin with a dot.
5383 lt_cv_objdir=_libs
5385 rmdir .libs 2>/dev/null
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5388 $as_echo "$lt_cv_objdir" >&6; }
5389 objdir=$lt_cv_objdir
5395 cat >>confdefs.h <<_ACEOF
5396 #define LT_OBJDIR "$lt_cv_objdir/"
5397 _ACEOF
5401 # Check for GMP, MPFR and MPC
5402 gmplibs="-lmpc -lmpfr -lgmp"
5403 gmpinc=
5404 have_gmp=no
5406 # Specify a location for mpc
5407 # check for this first so it ends up on the link line before mpfr.
5409 # Check whether --with-mpc was given.
5410 if test "${with_mpc+set}" = set; then :
5411 withval=$with_mpc;
5415 # Check whether --with-mpc-include was given.
5416 if test "${with_mpc_include+set}" = set; then :
5417 withval=$with_mpc_include;
5421 # Check whether --with-mpc-lib was given.
5422 if test "${with_mpc_lib+set}" = set; then :
5423 withval=$with_mpc_lib;
5427 if test "x$with_mpc" != x; then
5428 gmplibs="-L$with_mpc/lib $gmplibs"
5429 gmpinc="-I$with_mpc/include $gmpinc"
5431 if test "x$with_mpc_include" != x; then
5432 gmpinc="-I$with_mpc_include $gmpinc"
5434 if test "x$with_mpc_lib" != x; then
5435 gmplibs="-L$with_mpc_lib $gmplibs"
5437 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5438 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5439 gmpinc='-I$$s/mpc/src '"$gmpinc"
5440 # Do not test the mpc version. Assume that it is sufficient, since
5441 # it is in the source tree, and the library has not been built yet
5442 # but it would be included on the link line in the version check below
5443 # hence making the test fail.
5444 have_gmp=yes
5447 # Specify a location for mpfr
5448 # check for this first so it ends up on the link line before gmp.
5450 # Check whether --with-mpfr-dir was given.
5451 if test "${with_mpfr_dir+set}" = set; then :
5452 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5453 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5458 # Check whether --with-mpfr was given.
5459 if test "${with_mpfr+set}" = set; then :
5460 withval=$with_mpfr;
5464 # Check whether --with-mpfr-include was given.
5465 if test "${with_mpfr_include+set}" = set; then :
5466 withval=$with_mpfr_include;
5470 # Check whether --with-mpfr-lib was given.
5471 if test "${with_mpfr_lib+set}" = set; then :
5472 withval=$with_mpfr_lib;
5476 if test "x$with_mpfr" != x; then
5477 gmplibs="-L$with_mpfr/lib $gmplibs"
5478 gmpinc="-I$with_mpfr/include $gmpinc"
5480 if test "x$with_mpfr_include" != x; then
5481 gmpinc="-I$with_mpfr_include $gmpinc"
5483 if test "x$with_mpfr_lib" != x; then
5484 gmplibs="-L$with_mpfr_lib $gmplibs"
5486 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5487 # MPFR v3.1.0 moved the sources into a src sub-directory.
5488 if test -d ${srcdir}/mpfr/src; then
5489 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5490 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5491 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5492 else
5493 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5494 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5495 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5497 # Do not test the mpfr version. Assume that it is sufficient, since
5498 # it is in the source tree, and the library has not been built yet
5499 # but it would be included on the link line in the version check below
5500 # hence making the test fail.
5501 have_gmp=yes
5504 # Specify a location for gmp
5506 # Check whether --with-gmp-dir was given.
5507 if test "${with_gmp_dir+set}" = set; then :
5508 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5509 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5514 # Check whether --with-gmp was given.
5515 if test "${with_gmp+set}" = set; then :
5516 withval=$with_gmp;
5520 # Check whether --with-gmp-include was given.
5521 if test "${with_gmp_include+set}" = set; then :
5522 withval=$with_gmp_include;
5526 # Check whether --with-gmp-lib was given.
5527 if test "${with_gmp_lib+set}" = set; then :
5528 withval=$with_gmp_lib;
5533 if test "x$with_gmp" != x; then
5534 gmplibs="-L$with_gmp/lib $gmplibs"
5535 gmpinc="-I$with_gmp/include $gmpinc"
5537 if test "x$with_gmp_include" != x; then
5538 gmpinc="-I$with_gmp_include $gmpinc"
5540 if test "x$with_gmp_lib" != x; then
5541 gmplibs="-L$with_gmp_lib $gmplibs"
5543 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5544 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5545 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5546 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5547 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5548 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5549 # Do not test the gmp version. Assume that it is sufficient, since
5550 # it is in the source tree, and the library has not been built yet
5551 # but it would be included on the link line in the version check below
5552 # hence making the test fail.
5553 have_gmp=yes
5556 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5557 have_gmp=yes
5558 saved_CFLAGS="$CFLAGS"
5559 CFLAGS="$CFLAGS $gmpinc"
5560 # Check for the recommended and required versions of GMP.
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5562 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #include "gmp.h"
5568 main ()
5571 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5572 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5573 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5574 choke me
5575 #endif
5578 return 0;
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <gmp.h>
5586 main ()
5589 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5590 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5591 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5592 choke me
5593 #endif
5596 return 0;
5598 _ACEOF
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5601 $as_echo "yes" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5604 $as_echo "buggy but acceptable" >&6; }
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }; have_gmp=no
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 # If we have GMP, check the MPFR version.
5614 if test x"$have_gmp" = xyes; then
5615 # Check for the recommended and required versions of MPFR.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5617 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <gmp.h>
5621 #include <mpfr.h>
5623 main ()
5626 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5627 choke me
5628 #endif
5631 return 0;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"; then :
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <gmp.h>
5638 #include <mpfr.h>
5640 main ()
5643 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5644 choke me
5645 #endif
5648 return 0;
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"; then :
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5653 $as_echo "yes" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5656 $as_echo "buggy but acceptable" >&6; }
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }; have_gmp=no
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 # Check for the MPC header version.
5667 if test x"$have_gmp" = xyes ; then
5668 # Check for the recommended and required versions of MPC.
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5670 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673 #include <mpc.h>
5675 main ()
5678 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5679 choke me
5680 #endif
5683 return 0;
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <mpc.h>
5691 main ()
5694 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5695 choke me
5696 #endif
5699 return 0;
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5704 $as_echo "yes" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5707 $as_echo "buggy but acceptable" >&6; }
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }; have_gmp=no
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 # Now check the MPFR library.
5718 if test x"$have_gmp" = xyes; then
5719 saved_LIBS="$LIBS"
5720 LIBS="$LIBS $gmplibs"
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5722 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 #include <mpc.h>
5727 main ()
5730 mpfr_t n;
5731 mpfr_t x;
5732 mpc_t c;
5733 int t;
5734 mpfr_init (n);
5735 mpfr_init (x);
5736 mpfr_atan2 (n, n, x, GMP_RNDN);
5737 mpfr_erfc (n, x, GMP_RNDN);
5738 mpfr_subnormalize (x, t, GMP_RNDN);
5739 mpfr_clear(n);
5740 mpfr_clear(x);
5741 mpc_init2 (c, 53);
5742 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5743 mpc_cosh (c, c, MPC_RNDNN);
5744 mpc_pow (c, c, c, MPC_RNDNN);
5745 mpc_acosh (c, c, MPC_RNDNN);
5746 mpc_clear (c);
5749 return 0;
5751 _ACEOF
5752 if ac_fn_c_try_link "$LINENO"; then :
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754 $as_echo "yes" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }; have_gmp=no
5759 rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 LIBS="$saved_LIBS"
5764 CFLAGS="$saved_CFLAGS"
5766 # The library versions listed in the error message below should match
5767 # the HARD-minimums enforced above.
5768 if test x$have_gmp != xyes; then
5769 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5770 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5771 their locations. Source code for these libraries can be found at
5772 their respective hosting sites as well as at
5773 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5774 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5775 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5776 make sure that you have installed both the libraries and the header
5777 files. They may be located in separate packages." "$LINENO" 5
5781 # Flags needed for both GMP, MPFR and/or MPC.
5789 # Allow host libstdc++ to be specified for static linking with PPL.
5791 # Check whether --with-host-libstdcxx was given.
5792 if test "${with_host_libstdcxx+set}" = set; then :
5793 withval=$with_host_libstdcxx;
5797 case $with_host_libstdcxx in
5798 no|yes)
5799 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5801 esac
5803 # Libraries to use for stage1 or when not bootstrapping.
5805 # Check whether --with-stage1-libs was given.
5806 if test "${with_stage1_libs+set}" = set; then :
5807 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5808 stage1_libs=
5809 else
5810 stage1_libs=$withval
5812 else
5813 stage1_libs=$with_host_libstdcxx
5818 # Linker flags to use for stage1 or when not bootstrapping.
5820 # Check whether --with-stage1-ldflags was given.
5821 if test "${with_stage1_ldflags+set}" = set; then :
5822 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5823 stage1_ldflags=
5824 else
5825 stage1_ldflags=$withval
5827 else
5828 stage1_ldflags=
5829 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5830 # if supported. But if the user explicitly specified the libraries to use,
5831 # trust that they are doing what they want.
5832 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5833 stage1_ldflags="-static-libstdc++ -static-libgcc"
5839 # Libraries to use for stage2 and later builds. This defaults to the
5840 # argument passed to --with-host-libstdcxx.
5842 # Check whether --with-boot-libs was given.
5843 if test "${with_boot_libs+set}" = set; then :
5844 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5845 poststage1_libs=
5846 else
5847 poststage1_libs=$withval
5849 else
5850 poststage1_libs=$with_host_libstdcxx
5855 # Linker flags to use for stage2 and later builds.
5857 # Check whether --with-boot-ldflags was given.
5858 if test "${with_boot_ldflags+set}" = set; then :
5859 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5860 poststage1_ldflags=
5861 else
5862 poststage1_ldflags=$withval
5864 else
5865 poststage1_ldflags=
5866 # In stages 2 and 3, default to linking libstdc++ and libgcc
5867 # statically. But if the user explicitly specified the libraries to
5868 # use, trust that they are doing what they want.
5869 if test "$poststage1_libs" = ""; then
5870 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5876 # GCC GRAPHITE dependency ISL.
5877 # Basic setup is inlined here, actual checks are in config/isl.m4
5880 # Check whether --with-isl was given.
5881 if test "${with_isl+set}" = set; then :
5882 withval=$with_isl;
5886 # Treat --without-isl as a request to disable
5887 # GRAPHITE support and skip all following checks.
5888 if test "x$with_isl" != "xno"; then
5889 # Check for ISL
5892 # Check whether --with-isl-include was given.
5893 if test "${with_isl_include+set}" = set; then :
5894 withval=$with_isl_include;
5898 # Check whether --with-isl-lib was given.
5899 if test "${with_isl_lib+set}" = set; then :
5900 withval=$with_isl_lib;
5904 # Check whether --enable-isl-version-check was given.
5905 if test "${enable_isl_version_check+set}" = set; then :
5906 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5907 else
5908 ENABLE_ISL_CHECK=yes
5912 # Initialize isllibs and islinc.
5913 case $with_isl in
5915 isllibs=
5916 islinc=
5918 "" | yes)
5921 isllibs="-L$with_isl/lib"
5922 islinc="-I$with_isl/include"
5924 esac
5925 if test "x${with_isl_include}" != x ; then
5926 islinc="-I$with_isl_include"
5928 if test "x${with_isl_lib}" != x; then
5929 isllibs="-L$with_isl_lib"
5931 if test "x${islinc}" = x && test "x${isllibs}" = x \
5932 && test -d ${srcdir}/isl; then
5933 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5934 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5935 ENABLE_ISL_CHECK=no
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5937 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5940 isllibs="${isllibs} -lisl"
5944 if test "${ENABLE_ISL_CHECK}" = yes ; then
5945 _isl_saved_CFLAGS=$CFLAGS
5946 _isl_saved_LDFLAGS=$LDFLAGS
5947 _isl_saved_LIBS=$LIBS
5949 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5950 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5951 LIBS="${_isl_saved_LIBS} -lisl"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5954 $as_echo_n "checking for compatible ISL... " >&6; }
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 #include <isl/val.h>
5959 main ()
5963 return 0;
5965 _ACEOF
5966 if ac_fn_c_try_link "$LINENO"; then :
5967 gcc_cv_isl=yes
5968 else
5969 gcc_cv_isl=no
5971 rm -f core conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5974 $as_echo "$gcc_cv_isl" >&6; }
5976 CFLAGS=$_isl_saved_CFLAGS
5977 LDFLAGS=$_isl_saved_LDFLAGS
5978 LIBS=$_isl_saved_LIBS
5986 if test "x${with_isl}" = xno; then
5987 graphite_requested=no
5988 elif test "x${with_isl}" != x \
5989 || test "x${with_isl_include}" != x \
5990 || test "x${with_isl_lib}" != x ; then
5991 graphite_requested=yes
5992 else
5993 graphite_requested=no
5998 if test "${gcc_cv_isl}" = no ; then
5999 isllibs=
6000 islinc=
6003 if test "${graphite_requested}" = yes \
6004 && test "x${isllibs}" = x \
6005 && test "x${islinc}" = x ; then
6007 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6013 # If the ISL check failed, disable builds of in-tree variant of ISL
6014 if test "x$with_isl" = xno ||
6015 test "x$gcc_cv_isl" = xno; then
6016 noconfigdirs="$noconfigdirs isl"
6017 islinc=
6023 # Check for LTO support.
6024 # Check whether --enable-lto was given.
6025 if test "${enable_lto+set}" = set; then :
6026 enableval=$enable_lto; enable_lto=$enableval
6027 else
6028 enable_lto=yes; default_enable_lto=yes
6035 target_elf=no
6036 case $target in
6037 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6038 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6039 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6040 target_elf=no
6043 target_elf=yes
6045 esac
6047 if test $target_elf = yes; then :
6048 # ELF platforms build the lto-plugin always.
6049 build_lto_plugin=yes
6051 else
6052 if test x"$default_enable_lto" = x"yes" ; then
6053 case $target in
6054 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6055 # On other non-ELF platforms, LTO has yet to be validated.
6056 *) enable_lto=no ;;
6057 esac
6058 else
6059 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6060 # It would also be nice to check the binutils support, but we don't
6061 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6062 # warn during gcc/ subconfigure; unless you're bootstrapping with
6063 # -flto it won't be needed until after installation anyway.
6064 case $target in
6065 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6066 *) if test x"$enable_lto" = x"yes"; then
6067 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6070 esac
6072 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6073 # Build it unless LTO was explicitly disabled.
6074 case $target in
6075 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6076 *) ;;
6077 esac
6082 # Check whether --enable-linker-plugin-configure-flags was given.
6083 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6084 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6085 else
6086 extra_linker_plugin_configure_flags=
6090 # Check whether --enable-linker-plugin-flags was given.
6091 if test "${enable_linker_plugin_flags+set}" = set; then :
6092 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6093 else
6094 extra_linker_plugin_flags=
6100 # By default, C and C++ are the only stage 1 languages.
6101 stage1_languages=,c,
6103 # Target libraries that we bootstrap.
6104 bootstrap_target_libs=,target-libgcc,
6106 # Figure out what language subdirectories are present.
6107 # Look if the user specified --enable-languages="..."; if not, use
6108 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6109 # go away some day.
6110 # NB: embedded tabs in this IF block -- do not untabify
6111 if test -d ${srcdir}/gcc; then
6112 if test x"${enable_languages+set}" != xset; then
6113 if test x"${LANGUAGES+set}" = xset; then
6114 enable_languages="${LANGUAGES}"
6115 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6116 else
6117 enable_languages=all
6119 else
6120 if test x"${enable_languages}" = x ||
6121 test x"${enable_languages}" = xyes;
6122 then
6123 echo configure.in: --enable-languages needs at least one language argument 1>&2
6124 exit 1
6127 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6129 # 'f95' is the old name for the 'fortran' language. We issue a warning
6130 # and make the substitution.
6131 case ,${enable_languages}, in
6132 *,f95,*)
6133 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6134 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6136 esac
6138 # If bootstrapping, C++ must be enabled.
6139 case ",$enable_languages,:$enable_bootstrap" in
6140 *,c++,*:*) ;;
6141 *:yes)
6142 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6143 enable_languages="${enable_languages},c++"
6144 else
6145 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6148 esac
6150 # First scan to see if an enabled language requires some other language.
6151 # We assume that a given config-lang.in will list all the language
6152 # front ends it requires, even if some are required indirectly.
6153 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6154 case ${lang_frag} in
6155 ..) ;;
6156 # The odd quoting in the next line works around
6157 # an apparent bug in bash 1.12 on linux.
6158 ${srcdir}/gcc/[*]/config-lang.in) ;;
6160 # From the config-lang.in, get $language, $lang_requires, and
6161 # $lang_requires_boot_languages.
6162 language=
6163 lang_requires=
6164 lang_requires_boot_languages=
6165 . ${lang_frag}
6166 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6167 case ,${enable_languages}, in
6168 *,$other,*) ;;
6169 *,all,*) ;;
6170 *,$language,*)
6171 echo " \`$other' language required by \`$language'; enabling" 1>&2
6172 enable_languages="${enable_languages},${other}"
6174 esac
6175 done
6176 for other in ${lang_requires_boot_languages} ; do
6177 if test "$other" != "c"; then
6178 case ,${enable_stage1_languages}, in
6179 *,$other,*) ;;
6180 *,all,*) ;;
6182 case ,${enable_languages}, in
6183 *,$language,*)
6184 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6185 enable_stage1_languages="$enable_stage1_languages,${other}"
6187 esac
6189 esac
6191 done
6193 esac
6194 done
6196 new_enable_languages=,c,
6198 # If LTO is enabled, add the LTO front end.
6199 if test "$enable_lto" = "yes" ; then
6200 case ,${enable_languages}, in
6201 *,lto,*) ;;
6202 *) enable_languages="${enable_languages},lto" ;;
6203 esac
6204 if test "${build_lto_plugin}" = "yes" ; then
6205 configdirs="$configdirs lto-plugin"
6209 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6210 potential_languages=,c,
6212 enabled_target_libs=
6213 disabled_target_libs=
6215 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6216 case ${lang_frag} in
6217 ..) ;;
6218 # The odd quoting in the next line works around
6219 # an apparent bug in bash 1.12 on linux.
6220 ${srcdir}/gcc/[*]/config-lang.in) ;;
6222 # From the config-lang.in, get $language, $target_libs,
6223 # $lang_dirs, $boot_language, and $build_by_default
6224 language=
6225 target_libs=
6226 lang_dirs=
6227 subdir_requires=
6228 boot_language=no
6229 build_by_default=yes
6230 . ${lang_frag}
6231 if test x${language} = x; then
6232 echo "${lang_frag} doesn't set \$language." 1>&2
6233 exit 1
6236 if test "$language" = "c++"; then
6237 boot_language=yes
6240 add_this_lang=no
6241 case ,${enable_languages}, in
6242 *,${language},*)
6243 # Language was explicitly selected; include it
6244 # unless it is C, which is enabled by default.
6245 if test "$language" != "c"; then
6246 add_this_lang=yes
6249 *,all,*)
6250 # 'all' was selected, select it if it is a default language
6251 if test "$language" != "c"; then
6252 add_this_lang=${build_by_default}
6255 esac
6257 # Disable languages that need other directories if these aren't available.
6258 for i in $subdir_requires; do
6259 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6260 case ,${enable_languages}, in
6261 *,${language},*)
6262 # Specifically requested language; tell them.
6263 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6266 # Silently disable.
6267 add_this_lang=unsupported
6269 esac
6270 done
6272 # Disable Ada if no preexisting GNAT is available.
6273 case ,${enable_languages},:${language}:${have_gnat} in
6274 *,${language},*:ada:no)
6275 # Specifically requested language; tell them.
6276 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6278 *:ada:no)
6279 # Silently disable.
6280 add_this_lang=unsupported
6282 esac
6284 # Disable a language that is unsupported by the target.
6285 case " $unsupported_languages " in
6286 *" $language "*)
6287 add_this_lang=unsupported
6289 esac
6291 case $add_this_lang in
6292 unsupported)
6293 # Remove language-dependent dirs.
6294 disabled_target_libs="$disabled_target_libs $target_libs"
6295 noconfigdirs="$noconfigdirs $lang_dirs"
6298 # Remove language-dependent dirs; still show language as supported.
6299 disabled_target_libs="$disabled_target_libs $target_libs"
6300 noconfigdirs="$noconfigdirs $lang_dirs"
6301 potential_languages="${potential_languages}${language},"
6303 yes)
6304 new_enable_languages="${new_enable_languages}${language},"
6305 potential_languages="${potential_languages}${language},"
6306 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6307 enabled_target_libs="$enabled_target_libs $target_libs"
6308 case "${boot_language}:,$enable_stage1_languages," in
6309 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6310 # Add to (comma-separated) list of stage 1 languages.
6311 case ",$stage1_languages," in
6312 *,$language,* | ,yes, | ,all,) ;;
6313 *) stage1_languages="${stage1_languages}${language}," ;;
6314 esac
6315 # We need to bootstrap any supporting libraries.
6316 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6318 esac
6320 esac
6322 esac
6323 done
6325 # Add target libraries which are only needed for disabled languages
6326 # to noconfigdirs.
6327 if test -n "$disabled_target_libs"; then
6328 for dir in $disabled_target_libs; do
6329 case " $enabled_target_libs " in
6330 *" ${dir} "*) ;;
6331 *) noconfigdirs="$noconfigdirs $dir" ;;
6332 esac
6333 done
6336 # Check whether --enable-stage1-languages was given.
6337 if test "${enable_stage1_languages+set}" = set; then :
6338 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6339 ,no,|,,)
6340 # Set it to something that will have no effect in the loop below
6341 enable_stage1_languages=c ;;
6342 ,yes,)
6343 enable_stage1_languages=`echo $new_enable_languages | \
6344 sed -e "s/^,//" -e "s/,$//" ` ;;
6345 *,all,*)
6346 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6347 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6348 esac
6350 # Add "good" languages from enable_stage1_languages to stage1_languages,
6351 # while "bad" languages go in missing_languages. Leave no duplicates.
6352 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6353 case $potential_languages in
6354 *,$i,*)
6355 case $stage1_languages in
6356 *,$i,*) ;;
6357 *) stage1_languages="$stage1_languages$i," ;;
6358 esac ;;
6360 case $missing_languages in
6361 *,$i,*) ;;
6362 *) missing_languages="$missing_languages$i," ;;
6363 esac ;;
6364 esac
6365 done
6369 # Remove leading/trailing commas that were added for simplicity
6370 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6371 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6372 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6373 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6375 if test "x$missing_languages" != x; then
6376 as_fn_error "
6377 The following requested languages could not be built: ${missing_languages}
6378 Supported languages are: ${potential_languages}" "$LINENO" 5
6380 if test "x$new_enable_languages" != "x$enable_languages"; then
6381 echo The following languages will be built: ${new_enable_languages}
6382 enable_languages="$new_enable_languages"
6386 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6389 # Handle --disable-<component> generically.
6390 for dir in $configdirs $build_configdirs $target_configdirs ; do
6391 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6392 varname=`echo $dirname | sed -e s/+/_/g`
6393 if eval test x\${enable_${varname}} "=" xno ; then
6394 noconfigdirs="$noconfigdirs $dir"
6396 done
6398 # Check for Boehm's garbage collector
6399 # Check whether --enable-objc-gc was given.
6400 if test "${enable_objc_gc+set}" = set; then :
6401 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6402 *,objc,*:*:yes:*target-boehm-gc*)
6403 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6405 esac
6409 # Make sure we only build Boehm's garbage collector if required.
6410 case ,${enable_languages},:${enable_objc_gc} in
6411 *,objc,*:yes)
6412 # Keep target-boehm-gc if requested for Objective-C.
6415 # Otherwise remove target-boehm-gc depending on target-libjava.
6416 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6417 noconfigdirs="$noconfigdirs target-boehm-gc"
6420 esac
6422 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6423 case ,${enable_languages}, in
6424 *,c++,*)
6425 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6426 case "${noconfigdirs}" in
6427 *target-libstdc++-v3*)
6428 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6430 *) ;;
6431 esac
6434 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6436 esac
6438 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6439 # $build_configdirs and $target_configdirs.
6440 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6442 notsupp=""
6443 for dir in . $skipdirs $noconfigdirs ; do
6444 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6445 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6446 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6447 if test -r $srcdir/$dirname/configure ; then
6448 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6449 true
6450 else
6451 notsupp="$notsupp $dir"
6455 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6456 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6457 if test -r $srcdir/$dirname/configure ; then
6458 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6459 true
6460 else
6461 notsupp="$notsupp $dir"
6465 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6466 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6467 if test -r $srcdir/$dirname/configure ; then
6468 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6469 true
6470 else
6471 notsupp="$notsupp $dir"
6475 done
6477 # Quietly strip out all directories which aren't configurable in this tree.
6478 # This relies on all configurable subdirectories being autoconfiscated, which
6479 # is now the case.
6480 build_configdirs_all="$build_configdirs"
6481 build_configdirs=
6482 for i in ${build_configdirs_all} ; do
6483 j=`echo $i | sed -e s/build-//g`
6484 if test -f ${srcdir}/$j/configure ; then
6485 build_configdirs="${build_configdirs} $i"
6487 done
6489 configdirs_all="$configdirs"
6490 configdirs=
6491 for i in ${configdirs_all} ; do
6492 if test -f ${srcdir}/$i/configure ; then
6493 configdirs="${configdirs} $i"
6495 done
6497 target_configdirs_all="$target_configdirs"
6498 target_configdirs=
6499 for i in ${target_configdirs_all} ; do
6500 j=`echo $i | sed -e s/target-//g`
6501 if test -f ${srcdir}/$j/configure ; then
6502 target_configdirs="${target_configdirs} $i"
6504 done
6506 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6507 # so we have to add it after the preceding checks.
6508 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6509 then
6510 case " $configdirs " in
6511 *" libiberty "*)
6512 # If we can build libiberty, we can also build libiberty-linker-plugin.
6513 configdirs="$configdirs libiberty-linker-plugin"
6514 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6515 --with-libiberty=../libiberty-linker-plugin";;
6517 as_fn_error "libiberty missing" "$LINENO" 5;;
6518 esac
6521 # Sometimes we have special requirements for the host libiberty.
6522 extra_host_libiberty_configure_flags=
6523 case " $configdirs " in
6524 *" lto-plugin "* | *" libcc1 "*)
6525 # When these are to be built as shared libraries, the same applies to
6526 # libiberty.
6527 extra_host_libiberty_configure_flags=--enable-shared
6529 esac
6532 # Produce a warning message for the subdirs we can't configure.
6533 # This isn't especially interesting in the Cygnus tree, but in the individual
6534 # FSF releases, it's important to let people know when their machine isn't
6535 # supported by the one or two programs in a package.
6537 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6538 # If $appdirs is non-empty, at least one of those directories must still
6539 # be configured, or we error out. (E.g., if the gas release supports a
6540 # specified target in some subdirs but not the gas subdir, we shouldn't
6541 # pretend that all is well.)
6542 if test -n "$appdirs" ; then
6543 for dir in $appdirs ; do
6544 if test -r $dir/Makefile.in ; then
6545 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6546 appdirs=""
6547 break
6549 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6550 appdirs=""
6551 break
6554 done
6555 if test -n "$appdirs" ; then
6556 echo "*** This configuration is not supported by this package." 1>&2
6557 exit 1
6560 # Okay, some application will build, or we don't care to check. Still
6561 # notify of subdirs not getting built.
6562 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6563 echo " ${notsupp}" 1>&2
6564 echo " (Any other directories should still work fine.)" 1>&2
6567 case "$host" in
6568 *msdosdjgpp*)
6569 enable_gdbtk=no ;;
6570 esac
6572 # To find our prefix, in gcc_cv_tool_prefix.
6574 # The user is always right.
6575 if test "${PATH_SEPARATOR+set}" != set; then
6576 echo "#! /bin/sh" >conf$$.sh
6577 echo "exit 0" >>conf$$.sh
6578 chmod +x conf$$.sh
6579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6580 PATH_SEPARATOR=';'
6581 else
6582 PATH_SEPARATOR=:
6584 rm -f conf$$.sh
6589 if test "x$exec_prefix" = xNONE; then
6590 if test "x$prefix" = xNONE; then
6591 gcc_cv_tool_prefix=$ac_default_prefix
6592 else
6593 gcc_cv_tool_prefix=$prefix
6595 else
6596 gcc_cv_tool_prefix=$exec_prefix
6599 # If there is no compiler in the tree, use the PATH only. In any
6600 # case, if there is no compiler in the tree nobody should use
6601 # AS_FOR_TARGET and LD_FOR_TARGET.
6602 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6603 gcc_version=`cat $srcdir/gcc/BASE-VER`
6604 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6605 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6606 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6607 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6609 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6610 else
6611 gcc_cv_tool_dirs=
6614 if test x$build = x$target && test -n "$md_exec_prefix"; then
6615 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6620 copy_dirs=
6623 # Check whether --with-build-sysroot was given.
6624 if test "${with_build_sysroot+set}" = set; then :
6625 withval=$with_build_sysroot; if test x"$withval" != x ; then
6626 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6628 else
6629 SYSROOT_CFLAGS_FOR_TARGET=
6635 # Check whether --with-debug-prefix-map was given.
6636 if test "${with_debug_prefix_map+set}" = set; then :
6637 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6638 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6639 for debug_map in $withval; do
6640 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6641 done
6643 else
6644 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6649 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6650 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6651 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6652 # We want to ensure that TARGET libraries (which we know are built with
6653 # gcc) are built with "-O2 -g", so include those options when setting
6654 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6655 if test "x$CFLAGS_FOR_TARGET" = x; then
6656 CFLAGS_FOR_TARGET=$CFLAGS
6657 case " $CFLAGS " in
6658 *" -O2 "*) ;;
6659 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6660 esac
6661 case " $CFLAGS " in
6662 *" -g "* | *" -g3 "*) ;;
6663 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6664 esac
6668 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6669 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6670 case " $CXXFLAGS " in
6671 *" -O2 "*) ;;
6672 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6673 esac
6674 case " $CXXFLAGS " in
6675 *" -g "* | *" -g3 "*) ;;
6676 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6677 esac
6683 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6684 # the named directory are copied to $(tooldir)/sys-include.
6685 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6686 if test x${is_cross_compiler} = xno ; then
6687 echo 1>&2 '***' --with-headers is only supported when cross compiling
6688 exit 1
6690 if test x"${with_headers}" != xyes ; then
6691 x=${gcc_cv_tool_prefix}
6692 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6696 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6697 # the name directories are copied to $(tooldir)/lib. Multiple directories
6698 # are permitted.
6699 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6700 if test x${is_cross_compiler} = xno ; then
6701 echo 1>&2 '***' --with-libs is only supported when cross compiling
6702 exit 1
6704 if test x"${with_libs}" != xyes ; then
6705 # Copy the libraries in reverse order, so that files in the first named
6706 # library override files in subsequent libraries.
6707 x=${gcc_cv_tool_prefix}
6708 for l in ${with_libs}; do
6709 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6710 done
6714 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6716 # This is done by determining whether or not the appropriate directory
6717 # is available, and by checking whether or not specific configurations
6718 # have requested that this magic not happen.
6720 # The command line options always override the explicit settings in
6721 # configure.in, and the settings in configure.in override this magic.
6723 # If the default for a toolchain is to use GNU as and ld, and you don't
6724 # want to do that, then you should use the --without-gnu-as and
6725 # --without-gnu-ld options for the configure script. Similarly, if
6726 # the default is to use the included zlib and you don't want to do that,
6727 # you should use the --with-system-zlib option for the configure script.
6729 if test x${use_gnu_as} = x &&
6730 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6731 with_gnu_as=yes
6732 extra_host_args="$extra_host_args --with-gnu-as"
6735 if test x${use_gnu_ld} = x &&
6736 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6737 with_gnu_ld=yes
6738 extra_host_args="$extra_host_args --with-gnu-ld"
6741 if test x${use_included_zlib} = x &&
6742 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6744 else
6745 with_system_zlib=yes
6746 extra_host_args="$extra_host_args --with-system-zlib"
6749 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6750 # can detect this case.
6752 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6753 with_newlib=yes
6754 extra_host_args="$extra_host_args --with-newlib"
6757 # Handle ${copy_dirs}
6758 set fnord ${copy_dirs}
6759 shift
6760 while test $# != 0 ; do
6761 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6763 else
6764 echo Copying $1 to $2
6766 # Use the install script to create the directory and all required
6767 # parent directories.
6768 if test -d $2 ; then
6770 else
6771 echo >config.temp
6772 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6775 # Copy the directory, assuming we have tar.
6776 # FIXME: Should we use B in the second tar? Not all systems support it.
6777 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6779 # It is the responsibility of the user to correctly adjust all
6780 # symlinks. If somebody can figure out how to handle them correctly
6781 # here, feel free to add the code.
6783 echo $1 > $2/COPIED
6785 shift; shift
6786 done
6788 # Determine a target-dependent exec_prefix that the installed
6789 # gcc will search in. Keep this list sorted by triplet, with
6790 # the *-*-osname triplets last.
6791 md_exec_prefix=
6792 case "${target}" in
6793 i[34567]86-pc-msdosdjgpp*)
6794 md_exec_prefix=/dev/env/DJDIR/bin
6796 *-*-hpux* | \
6797 *-*-nto-qnx* | \
6798 *-*-solaris2*)
6799 md_exec_prefix=/usr/ccs/bin
6801 esac
6803 extra_arflags_for_target=
6804 extra_nmflags_for_target=
6805 extra_ranlibflags_for_target=
6806 target_makefile_frag=/dev/null
6807 case "${target}" in
6808 spu-*-*)
6809 target_makefile_frag="config/mt-spu"
6811 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6812 target_makefile_frag="config/mt-sde"
6814 mipsisa*-*-elfoabi*)
6815 target_makefile_frag="config/mt-mips-elfoabi"
6817 mips*-*-*linux* | mips*-*-gnu*)
6818 target_makefile_frag="config/mt-mips-gnu"
6820 nios2-*-elf*)
6821 target_makefile_frag="config/mt-nios2-elf"
6823 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6824 target_makefile_frag="config/mt-gnu"
6826 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6827 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6828 # commands to handle both 32-bit and 64-bit objects. These flags are
6829 # harmless if we're using GNU nm or ar.
6830 extra_arflags_for_target=" -X32_64"
6831 extra_nmflags_for_target=" -B -X32_64"
6833 esac
6835 alphaieee_frag=/dev/null
6836 case $target in
6837 alpha*-*-*)
6838 # This just makes sure to use the -mieee option to build target libs.
6839 # This should probably be set individually by each library.
6840 alphaieee_frag="config/mt-alphaieee"
6842 esac
6844 # If --enable-target-optspace always use -Os instead of -O2 to build
6845 # the target libraries, similarly if it is not specified, use -Os
6846 # on selected platforms.
6847 ospace_frag=/dev/null
6848 case "${enable_target_optspace}:${target}" in
6849 yes:*)
6850 ospace_frag="config/mt-ospace"
6852 :d30v-*)
6853 ospace_frag="config/mt-d30v"
6855 :m32r-* | :d10v-* | :fr30-*)
6856 ospace_frag="config/mt-ospace"
6858 no:* | :*)
6861 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6863 esac
6865 # Some systems (e.g., one of the i386-aix systems the gas testers are
6866 # using) don't handle "\$" correctly, so don't use it here.
6867 tooldir='${exec_prefix}'/${target_noncanonical}
6868 build_tooldir=${tooldir}
6870 # Create a .gdbinit file which runs the one in srcdir
6871 # and tells GDB to look there for source files.
6873 if test -r ${srcdir}/.gdbinit ; then
6874 case ${srcdir} in
6875 .) ;;
6876 *) cat > ./.gdbinit <<EOF
6877 # ${NO_EDIT}
6878 dir ${srcdir}
6879 dir .
6880 source ${srcdir}/.gdbinit
6883 esac
6886 # Make sure that the compiler is able to generate an executable. If it
6887 # can't, we are probably in trouble. We don't care whether we can run the
6888 # executable--we might be using a cross compiler--we only care whether it
6889 # can be created. At this point the main configure script has set CC.
6890 we_are_ok=no
6891 echo "int main () { return 0; }" > conftest.c
6892 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6893 if test $? = 0 ; then
6894 if test -s conftest || test -s conftest.exe ; then
6895 we_are_ok=yes
6898 case $we_are_ok in
6900 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6901 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6902 rm -f conftest*
6903 exit 1
6905 esac
6906 rm -f conftest*
6908 # Decide which environment variable is used to find dynamic libraries.
6909 case "${host}" in
6910 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6911 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6912 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6913 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6914 esac
6916 # On systems where the dynamic library environment variable is PATH,
6917 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6918 # built executables to PATH.
6919 if test "$RPATH_ENVVAR" = PATH; then
6920 GCC_SHLIB_SUBDIR=/shlib
6921 else
6922 GCC_SHLIB_SUBDIR=
6925 # Adjust the toplevel makefile according to whether bootstrap was selected.
6926 case $enable_bootstrap in
6927 yes)
6928 bootstrap_suffix=bootstrap
6929 BUILD_CONFIG=bootstrap-debug
6932 bootstrap_suffix=no-bootstrap
6933 BUILD_CONFIG=
6935 esac
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6938 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6941 # Check whether --with-build-config was given.
6942 if test "${with_build_config+set}" = set; then :
6943 withval=$with_build_config; case $with_build_config in
6944 yes) with_build_config= ;;
6945 no) with_build_config= BUILD_CONFIG= ;;
6946 esac
6950 if test "x${with_build_config}" != x; then
6951 BUILD_CONFIG=$with_build_config
6952 else
6953 case $BUILD_CONFIG in
6954 bootstrap-debug)
6955 if echo "int f (void) { return 0; }" > conftest.c &&
6956 ${CC} -c conftest.c &&
6957 mv conftest.o conftest.o.g0 &&
6958 ${CC} -c -g conftest.c &&
6959 mv conftest.o conftest.o.g &&
6960 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6962 else
6963 BUILD_CONFIG=
6965 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6967 esac
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6970 $as_echo "$BUILD_CONFIG" >&6; }
6973 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6975 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6976 # Check whether --enable-vtable-verify was given.
6977 if test "${enable_vtable_verify+set}" = set; then :
6978 enableval=$enable_vtable_verify; case "$enableval" in
6979 yes) enable_vtable_verify=yes ;;
6980 no) enable_vtable_verify=no ;;
6981 *) enable_vtable_verify=no;;
6982 esac
6983 else
6984 enable_vtable_verify=no
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
6988 $as_echo "$enable_vtable_verify" >&6; }
6990 # Record target_configdirs and the configure arguments for target and
6991 # build configuration in Makefile.
6992 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6993 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6994 bootstrap_fixincludes=no
6996 # If we are building libgomp, bootstrap it.
6997 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6998 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7001 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7002 # or bootstrap-ubsan, bootstrap it.
7003 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7004 case "$BUILD_CONFIG" in
7005 *bootstrap-asan* | *bootstrap-ubsan* )
7006 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7007 bootstrap_fixincludes=yes
7009 esac
7012 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7013 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7014 test "$enable_vtable_verify" != no; then
7015 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7018 # Determine whether gdb needs tk/tcl or not.
7019 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7020 # and in that case we want gdb to be built without tk. Ugh!
7021 # In fact I believe gdb is the *only* package directly dependent on tk,
7022 # so we should be able to put the 'maybe's in unconditionally and
7023 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7024 # 100% sure that that's safe though.
7026 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7027 case "$enable_gdbtk" in
7029 GDB_TK="" ;;
7030 yes)
7031 GDB_TK="${gdb_tk}" ;;
7033 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7034 # distro. Eventually someone will fix this and move Insight, nee
7035 # gdbtk to a separate directory.
7036 if test -d ${srcdir}/gdb/gdbtk ; then
7037 GDB_TK="${gdb_tk}"
7038 else
7039 GDB_TK=""
7042 esac
7043 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7044 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7046 # Strip out unwanted targets.
7048 # While at that, we remove Makefiles if we were started for recursive
7049 # configuration, so that the top-level Makefile reconfigures them,
7050 # like we used to do when configure itself was recursive.
7052 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7053 # but now we're fixing up the Makefile ourselves with the additional
7054 # commands passed to AC_CONFIG_FILES. Use separate variables
7055 # extrasub-{build,host,target} not because there is any reason to split
7056 # the substitutions up that way, but only to remain below the limit of
7057 # 99 commands in a script, for HP-UX sed.
7058 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7060 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7061 yes:yes:*\ gold\ *:*,c++,*) ;;
7062 yes:yes:*\ gold\ *:*)
7063 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7065 esac
7067 extrasub_build=
7068 for module in ${build_configdirs} ; do
7069 if test -z "${no_recursion}" \
7070 && test -f ${build_subdir}/${module}/Makefile; then
7071 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7072 rm -f ${build_subdir}/${module}/Makefile
7074 extrasub_build="$extrasub_build
7075 /^@if build-$module\$/d
7076 /^@endif build-$module\$/d
7077 /^@if build-$module-$bootstrap_suffix\$/d
7078 /^@endif build-$module-$bootstrap_suffix\$/d"
7079 done
7080 extrasub_host=
7081 for module in ${configdirs} ; do
7082 if test -z "${no_recursion}"; then
7083 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7084 if test -f ${file}; then
7085 echo 1>&2 "*** removing ${file} to force reconfigure"
7086 rm -f ${file}
7088 done
7090 case ${module},${bootstrap_fixincludes} in
7091 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7092 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7093 esac
7094 extrasub_host="$extrasub_host
7095 /^@if $module\$/d
7096 /^@endif $module\$/d
7097 /^@if $module-$host_bootstrap_suffix\$/d
7098 /^@endif $module-$host_bootstrap_suffix\$/d"
7099 done
7100 extrasub_target=
7101 for module in ${target_configdirs} ; do
7102 if test -z "${no_recursion}" \
7103 && test -f ${target_subdir}/${module}/Makefile; then
7104 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7105 rm -f ${target_subdir}/${module}/Makefile
7108 # We only bootstrap target libraries listed in bootstrap_target_libs.
7109 case $bootstrap_target_libs in
7110 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7111 *) target_bootstrap_suffix=no-bootstrap ;;
7112 esac
7114 extrasub_target="$extrasub_target
7115 /^@if target-$module\$/d
7116 /^@endif target-$module\$/d
7117 /^@if target-$module-$target_bootstrap_suffix\$/d
7118 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7119 done
7121 # Do the final fixup along with target modules.
7122 extrasub_target="$extrasub_target
7123 /^@if /,/^@endif /d"
7125 # Create the serialization dependencies. This uses a temporary file.
7127 # Check whether --enable-serial-configure was given.
7128 if test "${enable_serial_configure+set}" = set; then :
7129 enableval=$enable_serial_configure;
7133 case ${enable_serial_configure} in
7134 yes)
7135 enable_serial_build_configure=yes
7136 enable_serial_host_configure=yes
7137 enable_serial_target_configure=yes
7139 esac
7141 # These force 'configure's to be done one at a time, to avoid problems
7142 # with contention over a shared config.cache.
7143 rm -f serdep.tmp
7144 echo '# serdep.tmp' > serdep.tmp
7145 olditem=
7146 test "x${enable_serial_build_configure}" = xyes &&
7147 for item in ${build_configdirs} ; do
7148 case ${olditem} in
7149 "") ;;
7150 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7151 esac
7152 olditem=${item}
7153 done
7154 olditem=
7155 test "x${enable_serial_host_configure}" = xyes &&
7156 for item in ${configdirs} ; do
7157 case ${olditem} in
7158 "") ;;
7159 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7160 esac
7161 olditem=${item}
7162 done
7163 olditem=
7164 test "x${enable_serial_target_configure}" = xyes &&
7165 for item in ${target_configdirs} ; do
7166 case ${olditem} in
7167 "") ;;
7168 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7169 esac
7170 olditem=${item}
7171 done
7172 serialization_dependencies=serdep.tmp
7175 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7176 # target, nonopt, and variable assignments. These are the ones we
7177 # might not want to pass down to subconfigures. The exception being
7178 # --cache-file=/dev/null, which is used to turn off the use of cache
7179 # files altogether, and which should be passed on to subconfigures.
7180 # Also strip program-prefix, program-suffix, and program-transform-name,
7181 # so that we can pass down a consistent program-transform-name.
7182 baseargs=
7183 tbaseargs=
7184 keep_next=no
7185 skip_next=no
7186 eval "set -- $ac_configure_args"
7187 for ac_arg
7189 if test X"$skip_next" = X"yes"; then
7190 skip_next=no
7191 continue
7193 if test X"$keep_next" = X"yes"; then
7194 case $ac_arg in
7195 *\'*)
7196 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7197 esac
7198 baseargs="$baseargs '$ac_arg'"
7199 tbaseargs="$tbaseargs '$ac_arg'"
7200 keep_next=no
7201 continue
7204 # Handle separated arguments. Based on the logic generated by
7205 # autoconf 2.59.
7206 case $ac_arg in
7207 *=* | --config-cache | -C | -disable-* | --disable-* \
7208 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7209 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7210 | -with-* | --with-* | -without-* | --without-* | --x)
7211 separate_arg=no
7214 separate_arg=yes
7217 separate_arg=no
7219 esac
7221 skip_targ=no
7222 case $ac_arg in
7224 --with-* | --without-*)
7225 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7227 case $libopt in
7228 *[-_]include)
7229 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7231 *[-_]lib)
7232 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7235 lib=$libopt
7237 esac
7240 case $lib in
7241 mpc | mpfr | gmp | isl)
7242 # If we're processing --with-$lib, --with-$lib-include or
7243 # --with-$lib-lib, for one of the libs above, and target is
7244 # different from host, don't pass the current argument to any
7245 # target library's configure.
7246 if test x$is_cross_compiler = xyes; then
7247 skip_targ=yes
7250 esac
7252 esac
7254 case "$ac_arg" in
7255 --cache-file=/dev/null | \
7256 -cache-file=/dev/null )
7257 # Handled here to avoid the test to skip args below.
7258 baseargs="$baseargs '$ac_arg'"
7259 tbaseargs="$tbaseargs '$ac_arg'"
7260 # Assert: $separate_arg should always be no.
7261 keep_next=$separate_arg
7263 --no*)
7264 continue
7266 --c* | \
7267 --sr* | \
7268 --ho* | \
7269 --bu* | \
7270 --t* | \
7271 --program-* | \
7272 -cache_file* | \
7273 -srcdir* | \
7274 -host* | \
7275 -build* | \
7276 -target* | \
7277 -program-prefix* | \
7278 -program-suffix* | \
7279 -program-transform-name* )
7280 skip_next=$separate_arg
7281 continue
7284 # An option. Add it.
7285 case $ac_arg in
7286 *\'*)
7287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7288 esac
7289 baseargs="$baseargs '$ac_arg'"
7290 if test X"$skip_targ" = Xno; then
7291 tbaseargs="$tbaseargs '$ac_arg'"
7293 keep_next=$separate_arg
7296 # Either a variable assignment, or a nonopt (triplet). Don't
7297 # pass it down; let the Makefile handle this.
7298 continue
7300 esac
7301 done
7302 # Remove the initial space we just introduced and, as these will be
7303 # expanded by make, quote '$'.
7304 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7306 # Add in --program-transform-name, after --program-prefix and
7307 # --program-suffix have been applied to it. Autoconf has already
7308 # doubled dollar signs and backslashes in program_transform_name; we want
7309 # the backslashes un-doubled, and then the entire thing wrapped in single
7310 # quotes, because this will be expanded first by make and then by the shell.
7311 # Also, because we want to override the logic in subdir configure scripts to
7312 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7313 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7314 ${program_transform_name}
7315 EOF_SED
7316 gcc_transform_name=`cat conftestsed.out`
7317 rm -f conftestsed.out
7318 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7319 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7320 if test "$silent" = yes; then
7321 baseargs="$baseargs --silent"
7322 tbaseargs="$tbaseargs --silent"
7324 baseargs="$baseargs --disable-option-checking"
7325 tbaseargs="$tbaseargs --disable-option-checking"
7327 # Record and document user additions to sub configure arguments.
7332 # For the build-side libraries, we just need to pretend we're native,
7333 # and not use the same cache file. Multilibs are neither needed nor
7334 # desired. We can't even use the same cache file for all build-side
7335 # libraries, as they're compiled differently; some with C, some with
7336 # C++ or with different feature-enabling options.
7337 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7339 # For host modules, accept cache file option, or specification as blank.
7340 case "${cache_file}" in
7341 "") # empty
7342 cache_file_option="" ;;
7343 /* | [A-Za-z]:[\\/]* ) # absolute path
7344 cache_file_option="--cache-file=${cache_file}" ;;
7345 *) # relative path
7346 cache_file_option="--cache-file=../${cache_file}" ;;
7347 esac
7349 # Host dirs don't like to share a cache file either, horribly enough.
7350 # This seems to be due to autoconf 2.5x stupidity.
7351 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7353 target_configargs="$target_configargs ${tbaseargs}"
7355 # Passing a --with-cross-host argument lets the target libraries know
7356 # whether they are being built with a cross-compiler or being built
7357 # native. However, it would be better to use other mechanisms to make the
7358 # sorts of decisions they want to make on this basis. Please consider
7359 # this option to be deprecated. FIXME.
7360 if test x${is_cross_compiler} = xyes ; then
7361 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7364 # Special user-friendly check for native x86_64-linux build, if
7365 # multilib is not explicitly enabled.
7366 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7367 x86_64-*linux*:yes:$build:$build:)
7368 # Make sure we have a developement environment that handles 32-bit
7369 dev64=no
7370 echo "int main () { return 0; }" > conftest.c
7371 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7372 if test $? = 0 ; then
7373 if test -s conftest || test -s conftest.exe ; then
7374 dev64=yes
7377 rm -f conftest*
7378 if test x${dev64} != xyes ; then
7379 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
7382 esac
7384 # Default to --enable-multilib.
7385 if test x${enable_multilib} = x ; then
7386 target_configargs="--enable-multilib ${target_configargs}"
7389 # Pass --with-newlib if appropriate. Note that target_configdirs has
7390 # changed from the earlier setting of with_newlib.
7391 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7392 target_configargs="--with-newlib ${target_configargs}"
7395 # Different target subdirs use different values of certain variables
7396 # (notably CXX). Worse, multilibs use *lots* of different values.
7397 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7398 # it doesn't automatically accept command-line overrides of them.
7399 # This means it's not safe for target subdirs to share a cache file,
7400 # which is disgusting, but there you have it. Hopefully this can be
7401 # fixed in future. It's still worthwhile to use a cache file for each
7402 # directory. I think.
7404 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7405 # We need to pass --target, as newer autoconf's requires consistency
7406 # for target_alias and gcc doesn't manage it consistently.
7407 target_configargs="--cache-file=./config.cache ${target_configargs}"
7409 FLAGS_FOR_TARGET=
7410 case " $target_configdirs " in
7411 *" newlib "*)
7412 case " $target_configargs " in
7413 *" --with-newlib "*)
7414 case "$target" in
7415 *-cygwin*)
7416 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7418 esac
7420 # If we're not building GCC, don't discard standard headers.
7421 if test -d ${srcdir}/gcc; then
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7424 if test "${build}" != "${host}"; then
7425 # On Canadian crosses, CC_FOR_TARGET will have already been set
7426 # by `configure', so we won't have an opportunity to add -Bgcc/
7427 # to it. This is right: we don't want to search that directory
7428 # for binaries, but we want the header files in there, so add
7429 # them explicitly.
7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7432 # Someone might think of using the pre-installed headers on
7433 # Canadian crosses, in case the installed compiler is not fully
7434 # compatible with the compiler being built. In this case, it
7435 # would be better to flag an error than risking having
7436 # incompatible object files being constructed. We can't
7437 # guarantee that an error will be flagged, but let's hope the
7438 # compiler will do it, when presented with incompatible header
7439 # files.
7443 case "${target}-${is_cross_compiler}" in
7444 i[3456789]86-*-linux*-no)
7445 # Here host == target, so we don't need to build gcc,
7446 # so we don't want to discard standard headers.
7447 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7450 # If we're building newlib, use its generic headers last, but search
7451 # for any libc-related directories first (so make it the last -B
7452 # switch).
7453 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7455 # If we're building libgloss, find the startup file, simulator library
7456 # and linker script.
7457 case " $target_configdirs " in
7458 *" libgloss "*)
7459 # Look for startup file, simulator library and maybe linker script.
7460 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7461 # Look for libnosys.a in case the target needs it.
7462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7463 # Most targets have the linker script in the source directory.
7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7466 esac
7468 esac
7470 esac
7472 esac
7474 case "$target" in
7475 x86_64-*mingw* | *-w64-mingw*)
7476 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7477 # however, use a symlink named 'mingw' in ${prefix} .
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7480 *-mingw*)
7481 # MinGW can't be handled as Cygwin above since it does not use newlib.
7482 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'
7484 esac
7486 # Allow the user to override the flags for
7487 # our build compiler if desired.
7488 if test x"${build}" = x"${host}" ; then
7489 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7490 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7491 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7494 # On Canadian crosses, we'll be searching the right directories for
7495 # the previously-installed cross compiler, so don't bother to add
7496 # flags for directories within the install tree of the compiler
7497 # being built; programs in there won't even run.
7498 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7499 # Search for pre-installed headers if nothing else fits.
7500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7503 if test "x${use_gnu_ld}" = x &&
7504 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7505 # Arrange for us to find uninstalled linker scripts.
7506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7509 # Search for other target-specific linker scripts and such.
7510 case "${target}" in
7511 mep*)
7512 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7514 esac
7516 # Makefile fragments.
7517 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7519 eval fragval=\$$frag
7520 if test $fragval != /dev/null; then
7521 eval $frag=${srcdir}/$fragval
7523 done
7529 # Miscellanea: directories, flags, etc.
7538 # Build module lists & subconfigure args.
7542 # Host module lists & subconfigure args.
7547 # Target module lists & subconfigure args.
7551 # Build tools.
7569 # Generate default definitions for YACC, M4, LEX and other programs that run
7570 # on the build machine. These are used if the Makefile can't locate these
7571 # programs in objdir.
7572 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7574 for ac_prog in 'bison -y' byacc yacc
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy $ac_prog; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_YACC+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 if test -n "$YACC"; then
7584 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_YACC="$ac_prog"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7597 done
7598 done
7599 IFS=$as_save_IFS
7603 YACC=$ac_cv_prog_YACC
7604 if test -n "$YACC"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7606 $as_echo "$YACC" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7613 test -n "$YACC" && break
7614 done
7615 test -n "$YACC" || YACC="$MISSING bison -y"
7617 case " $build_configdirs " in
7618 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7619 esac
7621 for ac_prog in bison
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if test "${ac_cv_prog_BISON+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 if test -n "$BISON"; then
7631 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_prog_BISON="$ac_prog"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7644 done
7645 done
7646 IFS=$as_save_IFS
7650 BISON=$ac_cv_prog_BISON
7651 if test -n "$BISON"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7653 $as_echo "$BISON" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7660 test -n "$BISON" && break
7661 done
7662 test -n "$BISON" || BISON="$MISSING bison"
7664 case " $build_configdirs " in
7665 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7666 esac
7668 for ac_prog in gm4 gnum4 m4
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7673 $as_echo_n "checking for $ac_word... " >&6; }
7674 if test "${ac_cv_prog_M4+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 if test -n "$M4"; then
7678 ac_cv_prog_M4="$M4" # Let the user override the test.
7679 else
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_prog_M4="$ac_prog"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7691 done
7692 done
7693 IFS=$as_save_IFS
7697 M4=$ac_cv_prog_M4
7698 if test -n "$M4"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7700 $as_echo "$M4" >&6; }
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7707 test -n "$M4" && break
7708 done
7709 test -n "$M4" || M4="$MISSING m4"
7711 case " $build_configdirs " in
7712 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7713 esac
7715 for ac_prog in flex lex
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_LEX+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$LEX"; then
7725 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_LEX="$ac_prog"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7738 done
7739 done
7740 IFS=$as_save_IFS
7744 LEX=$ac_cv_prog_LEX
7745 if test -n "$LEX"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7747 $as_echo "$LEX" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7754 test -n "$LEX" && break
7755 done
7756 test -n "$LEX" || LEX="$MISSING flex"
7758 case " $build_configdirs " in
7759 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7760 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7761 esac
7763 for ac_prog in flex
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_FLEX+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$FLEX"; then
7773 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_FLEX="$ac_prog"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7786 done
7787 done
7788 IFS=$as_save_IFS
7792 FLEX=$ac_cv_prog_FLEX
7793 if test -n "$FLEX"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7795 $as_echo "$FLEX" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7802 test -n "$FLEX" && break
7803 done
7804 test -n "$FLEX" || FLEX="$MISSING flex"
7806 case " $build_configdirs " in
7807 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7808 esac
7810 for ac_prog in makeinfo
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 if test -n "$MAKEINFO"; then
7820 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_prog_MAKEINFO="$ac_prog"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7833 done
7834 done
7835 IFS=$as_save_IFS
7839 MAKEINFO=$ac_cv_prog_MAKEINFO
7840 if test -n "$MAKEINFO"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7842 $as_echo "$MAKEINFO" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 test -n "$MAKEINFO" && break
7850 done
7851 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7853 case " $build_configdirs " in
7854 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7857 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7858 # higher, else we use the "missing" dummy.
7859 if ${MAKEINFO} --version \
7860 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7862 else
7863 MAKEINFO="$MISSING makeinfo"
7867 esac
7869 # FIXME: expect and dejagnu may become build tools?
7871 for ac_prog in expect
7873 # Extract the first word of "$ac_prog", so it can be a program name with args.
7874 set dummy $ac_prog; ac_word=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 if test -n "$EXPECT"; then
7881 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7890 ac_cv_prog_EXPECT="$ac_prog"
7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7894 done
7895 done
7896 IFS=$as_save_IFS
7900 EXPECT=$ac_cv_prog_EXPECT
7901 if test -n "$EXPECT"; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7903 $as_echo "$EXPECT" >&6; }
7904 else
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7910 test -n "$EXPECT" && break
7911 done
7912 test -n "$EXPECT" || EXPECT="expect"
7914 case " $configdirs " in
7915 *" expect "*)
7916 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7918 esac
7920 for ac_prog in runtest
7922 # Extract the first word of "$ac_prog", so it can be a program name with args.
7923 set dummy $ac_prog; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 if test -n "$RUNTEST"; then
7930 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7931 else
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in $PATH
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_RUNTEST="$ac_prog"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7943 done
7944 done
7945 IFS=$as_save_IFS
7949 RUNTEST=$ac_cv_prog_RUNTEST
7950 if test -n "$RUNTEST"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7952 $as_echo "$RUNTEST" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7959 test -n "$RUNTEST" && break
7960 done
7961 test -n "$RUNTEST" || RUNTEST="runtest"
7963 case " $configdirs " in
7964 *" dejagnu "*)
7965 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7967 esac
7970 # Host tools.
7971 ncn_tool_prefix=
7972 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7973 ncn_target_tool_prefix=
7974 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7978 if test -n "$AR"; then
7979 ac_cv_prog_AR=$AR
7980 elif test -n "$ac_cv_prog_AR"; then
7981 AR=$ac_cv_prog_AR
7984 if test -n "$ac_cv_prog_AR"; then
7985 for ncn_progname in ar; do
7986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7987 set dummy ${ncn_progname}; ac_word=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if test "${ac_cv_prog_AR+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 if test -n "$AR"; then
7994 ac_cv_prog_AR="$AR" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_prog_AR="${ncn_progname}"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8007 done
8008 done
8009 IFS=$as_save_IFS
8013 AR=$ac_cv_prog_AR
8014 if test -n "$AR"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8016 $as_echo "$AR" >&6; }
8017 else
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8023 done
8026 for ncn_progname in ar; do
8027 if test -n "$ncn_tool_prefix"; then
8028 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8029 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 $as_echo_n "checking for $ac_word... " >&6; }
8032 if test "${ac_cv_prog_AR+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 if test -n "$AR"; then
8036 ac_cv_prog_AR="$AR" # Let the user override the test.
8037 else
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8049 done
8050 done
8051 IFS=$as_save_IFS
8055 AR=$ac_cv_prog_AR
8056 if test -n "$AR"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8058 $as_echo "$AR" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8066 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8068 set dummy ${ncn_progname}; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if test "${ac_cv_prog_AR+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$AR"; then
8075 ac_cv_prog_AR="$AR" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_AR="${ncn_progname}"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8088 done
8089 done
8090 IFS=$as_save_IFS
8094 AR=$ac_cv_prog_AR
8095 if test -n "$AR"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8097 $as_echo "$AR" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8105 test -n "$ac_cv_prog_AR" && break
8106 done
8108 if test -z "$ac_cv_prog_AR" ; then
8109 set dummy ar
8110 if test $build = $host ; then
8111 AR="$2"
8112 else
8113 AR="${ncn_tool_prefix}$2"
8119 if test -n "$AS"; then
8120 ac_cv_prog_AS=$AS
8121 elif test -n "$ac_cv_prog_AS"; then
8122 AS=$ac_cv_prog_AS
8125 if test -n "$ac_cv_prog_AS"; then
8126 for ncn_progname in as; do
8127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128 set dummy ${ncn_progname}; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_AS+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 if test -n "$AS"; then
8135 ac_cv_prog_AS="$AS" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_AS="${ncn_progname}"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8150 IFS=$as_save_IFS
8154 AS=$ac_cv_prog_AS
8155 if test -n "$AS"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8157 $as_echo "$AS" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8164 done
8167 for ncn_progname in as; do
8168 if test -n "$ncn_tool_prefix"; then
8169 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8170 set dummy ${ncn_tool_prefix}${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_AS+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$AS"; then
8177 ac_cv_prog_AS="$AS" # 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_AS="${ncn_tool_prefix}${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 AS=$ac_cv_prog_AS
8197 if test -n "$AS"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8199 $as_echo "$AS" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8207 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8208 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8209 set dummy ${ncn_progname}; ac_word=$2
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211 $as_echo_n "checking for $ac_word... " >&6; }
8212 if test "${ac_cv_prog_AS+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 if test -n "$AS"; then
8216 ac_cv_prog_AS="$AS" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8225 ac_cv_prog_AS="${ncn_progname}"
8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8229 done
8230 done
8231 IFS=$as_save_IFS
8235 AS=$ac_cv_prog_AS
8236 if test -n "$AS"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8238 $as_echo "$AS" >&6; }
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8246 test -n "$ac_cv_prog_AS" && break
8247 done
8249 if test -z "$ac_cv_prog_AS" ; then
8250 set dummy as
8251 if test $build = $host ; then
8252 AS="$2"
8253 else
8254 AS="${ncn_tool_prefix}$2"
8260 if test -n "$DLLTOOL"; then
8261 ac_cv_prog_DLLTOOL=$DLLTOOL
8262 elif test -n "$ac_cv_prog_DLLTOOL"; then
8263 DLLTOOL=$ac_cv_prog_DLLTOOL
8266 if test -n "$ac_cv_prog_DLLTOOL"; then
8267 for ncn_progname in dlltool; do
8268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8269 set dummy ${ncn_progname}; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$DLLTOOL"; then
8276 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_DLLTOOL="${ncn_progname}"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8289 done
8290 done
8291 IFS=$as_save_IFS
8295 DLLTOOL=$ac_cv_prog_DLLTOOL
8296 if test -n "$DLLTOOL"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8298 $as_echo "$DLLTOOL" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8305 done
8308 for ncn_progname in dlltool; do
8309 if test -n "$ncn_tool_prefix"; then
8310 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8311 set dummy ${ncn_tool_prefix}${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_DLLTOOL+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 if test -n "$DLLTOOL"; then
8318 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ncn_tool_prefix}${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 DLLTOOL=$ac_cv_prog_DLLTOOL
8338 if test -n "$DLLTOOL"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8340 $as_echo "$DLLTOOL" >&6; }
8341 else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8348 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8350 set dummy ${ncn_progname}; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$DLLTOOL"; then
8357 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_prog_DLLTOOL="${ncn_progname}"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8370 done
8371 done
8372 IFS=$as_save_IFS
8376 DLLTOOL=$ac_cv_prog_DLLTOOL
8377 if test -n "$DLLTOOL"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8379 $as_echo "$DLLTOOL" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8387 test -n "$ac_cv_prog_DLLTOOL" && break
8388 done
8390 if test -z "$ac_cv_prog_DLLTOOL" ; then
8391 set dummy dlltool
8392 if test $build = $host ; then
8393 DLLTOOL="$2"
8394 else
8395 DLLTOOL="${ncn_tool_prefix}$2"
8401 if test -n "$LD"; then
8402 ac_cv_prog_LD=$LD
8403 elif test -n "$ac_cv_prog_LD"; then
8404 LD=$ac_cv_prog_LD
8407 if test -n "$ac_cv_prog_LD"; then
8408 for ncn_progname in ld; do
8409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8410 set dummy ${ncn_progname}; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if test "${ac_cv_prog_LD+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$LD"; then
8417 ac_cv_prog_LD="$LD" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_prog_LD="${ncn_progname}"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8436 LD=$ac_cv_prog_LD
8437 if test -n "$LD"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8439 $as_echo "$LD" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8446 done
8449 for ncn_progname in ld; do
8450 if test -n "$ncn_tool_prefix"; then
8451 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8452 set dummy ${ncn_tool_prefix}${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_LD+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 if test -n "$LD"; then
8459 ac_cv_prog_LD="$LD" # 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_LD="${ncn_tool_prefix}${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 LD=$ac_cv_prog_LD
8479 if test -n "$LD"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8481 $as_echo "$LD" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8489 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8491 set dummy ${ncn_progname}; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if test "${ac_cv_prog_LD+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 if test -n "$LD"; then
8498 ac_cv_prog_LD="$LD" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_prog_LD="${ncn_progname}"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8517 LD=$ac_cv_prog_LD
8518 if test -n "$LD"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8520 $as_echo "$LD" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8528 test -n "$ac_cv_prog_LD" && break
8529 done
8531 if test -z "$ac_cv_prog_LD" ; then
8532 set dummy ld
8533 if test $build = $host ; then
8534 LD="$2"
8535 else
8536 LD="${ncn_tool_prefix}$2"
8542 if test -n "$LIPO"; then
8543 ac_cv_prog_LIPO=$LIPO
8544 elif test -n "$ac_cv_prog_LIPO"; then
8545 LIPO=$ac_cv_prog_LIPO
8548 if test -n "$ac_cv_prog_LIPO"; then
8549 for ncn_progname in lipo; do
8550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8551 set dummy ${ncn_progname}; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_LIPO+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 if test -n "$LIPO"; then
8558 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8559 else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_prog_LIPO="${ncn_progname}"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8571 done
8572 done
8573 IFS=$as_save_IFS
8577 LIPO=$ac_cv_prog_LIPO
8578 if test -n "$LIPO"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8580 $as_echo "$LIPO" >&6; }
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8587 done
8590 for ncn_progname in lipo; do
8591 if test -n "$ncn_tool_prefix"; then
8592 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8593 set dummy ${ncn_tool_prefix}${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_LIPO+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 if test -n "$LIPO"; then
8600 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ncn_tool_prefix}${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 LIPO=$ac_cv_prog_LIPO
8620 if test -n "$LIPO"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8622 $as_echo "$LIPO" >&6; }
8623 else
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8630 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8632 set dummy ${ncn_progname}; ac_word=$2
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8634 $as_echo_n "checking for $ac_word... " >&6; }
8635 if test "${ac_cv_prog_LIPO+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 if test -n "$LIPO"; then
8639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8640 else
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 for as_dir in $PATH
8644 IFS=$as_save_IFS
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8648 ac_cv_prog_LIPO="${ncn_progname}"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 break 2
8652 done
8653 done
8654 IFS=$as_save_IFS
8658 LIPO=$ac_cv_prog_LIPO
8659 if test -n "$LIPO"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8661 $as_echo "$LIPO" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8669 test -n "$ac_cv_prog_LIPO" && break
8670 done
8672 if test -z "$ac_cv_prog_LIPO" ; then
8673 set dummy lipo
8674 if test $build = $host ; then
8675 LIPO="$2"
8676 else
8677 LIPO="${ncn_tool_prefix}$2"
8683 if test -n "$NM"; then
8684 ac_cv_prog_NM=$NM
8685 elif test -n "$ac_cv_prog_NM"; then
8686 NM=$ac_cv_prog_NM
8689 if test -n "$ac_cv_prog_NM"; then
8690 for ncn_progname in nm; do
8691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8692 set dummy ${ncn_progname}; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_prog_NM+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 if test -n "$NM"; then
8699 ac_cv_prog_NM="$NM" # Let the user override the test.
8700 else
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8708 ac_cv_prog_NM="${ncn_progname}"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 break 2
8712 done
8713 done
8714 IFS=$as_save_IFS
8718 NM=$ac_cv_prog_NM
8719 if test -n "$NM"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8721 $as_echo "$NM" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8728 done
8731 for ncn_progname in nm; do
8732 if test -n "$ncn_tool_prefix"; then
8733 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8734 set dummy ${ncn_tool_prefix}${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_NM+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 if test -n "$NM"; then
8741 ac_cv_prog_NM="$NM" # 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_NM="${ncn_tool_prefix}${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 NM=$ac_cv_prog_NM
8761 if test -n "$NM"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8763 $as_echo "$NM" >&6; }
8764 else
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8771 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8773 set dummy ${ncn_progname}; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if test "${ac_cv_prog_NM+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 if test -n "$NM"; then
8780 ac_cv_prog_NM="$NM" # Let the user override the test.
8781 else
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_prog_NM="${ncn_progname}"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8793 done
8794 done
8795 IFS=$as_save_IFS
8799 NM=$ac_cv_prog_NM
8800 if test -n "$NM"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8802 $as_echo "$NM" >&6; }
8803 else
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8810 test -n "$ac_cv_prog_NM" && break
8811 done
8813 if test -z "$ac_cv_prog_NM" ; then
8814 set dummy nm
8815 if test $build = $host ; then
8816 NM="$2"
8817 else
8818 NM="${ncn_tool_prefix}$2"
8824 if test -n "$RANLIB"; then
8825 ac_cv_prog_RANLIB=$RANLIB
8826 elif test -n "$ac_cv_prog_RANLIB"; then
8827 RANLIB=$ac_cv_prog_RANLIB
8830 if test -n "$ac_cv_prog_RANLIB"; then
8831 for ncn_progname in ranlib; do
8832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8833 set dummy ${ncn_progname}; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 if test -n "$RANLIB"; then
8840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_RANLIB="${ncn_progname}"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8853 done
8854 done
8855 IFS=$as_save_IFS
8859 RANLIB=$ac_cv_prog_RANLIB
8860 if test -n "$RANLIB"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8862 $as_echo "$RANLIB" >&6; }
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8869 done
8872 for ncn_progname in ranlib; do
8873 if test -n "$ncn_tool_prefix"; then
8874 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8875 set dummy ${ncn_tool_prefix}${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_RANLIB+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 if test -n "$RANLIB"; then
8882 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ncn_tool_prefix}${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 RANLIB=$ac_cv_prog_RANLIB
8902 if test -n "$RANLIB"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8904 $as_echo "$RANLIB" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8912 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8914 set dummy ${ncn_progname}; ac_word=$2
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916 $as_echo_n "checking for $ac_word... " >&6; }
8917 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 if test -n "$RANLIB"; then
8921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8922 else
8923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924 for as_dir in $PATH
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8930 ac_cv_prog_RANLIB="${ncn_progname}"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8934 done
8935 done
8936 IFS=$as_save_IFS
8940 RANLIB=$ac_cv_prog_RANLIB
8941 if test -n "$RANLIB"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8943 $as_echo "$RANLIB" >&6; }
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8951 test -n "$ac_cv_prog_RANLIB" && break
8952 done
8954 if test -z "$ac_cv_prog_RANLIB" ; then
8955 RANLIB="true"
8960 if test -n "$STRIP"; then
8961 ac_cv_prog_STRIP=$STRIP
8962 elif test -n "$ac_cv_prog_STRIP"; then
8963 STRIP=$ac_cv_prog_STRIP
8966 if test -n "$ac_cv_prog_STRIP"; then
8967 for ncn_progname in strip; do
8968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8969 set dummy ${ncn_progname}; ac_word=$2
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8971 $as_echo_n "checking for $ac_word... " >&6; }
8972 if test "${ac_cv_prog_STRIP+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 if test -n "$STRIP"; then
8976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8985 ac_cv_prog_STRIP="${ncn_progname}"
8986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 break 2
8989 done
8990 done
8991 IFS=$as_save_IFS
8995 STRIP=$ac_cv_prog_STRIP
8996 if test -n "$STRIP"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8998 $as_echo "$STRIP" >&6; }
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9005 done
9008 for ncn_progname in strip; do
9009 if test -n "$ncn_tool_prefix"; then
9010 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9011 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if test "${ac_cv_prog_STRIP+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 if test -n "$STRIP"; then
9018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9019 else
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9027 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9031 done
9032 done
9033 IFS=$as_save_IFS
9037 STRIP=$ac_cv_prog_STRIP
9038 if test -n "$STRIP"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9040 $as_echo "$STRIP" >&6; }
9041 else
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9048 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9049 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9050 set dummy ${ncn_progname}; ac_word=$2
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052 $as_echo_n "checking for $ac_word... " >&6; }
9053 if test "${ac_cv_prog_STRIP+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 if test -n "$STRIP"; then
9057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9058 else
9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060 for as_dir in $PATH
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9066 ac_cv_prog_STRIP="${ncn_progname}"
9067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9068 break 2
9070 done
9071 done
9072 IFS=$as_save_IFS
9076 STRIP=$ac_cv_prog_STRIP
9077 if test -n "$STRIP"; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9079 $as_echo "$STRIP" >&6; }
9080 else
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }
9087 test -n "$ac_cv_prog_STRIP" && break
9088 done
9090 if test -z "$ac_cv_prog_STRIP" ; then
9091 STRIP="true"
9096 if test -n "$WINDRES"; then
9097 ac_cv_prog_WINDRES=$WINDRES
9098 elif test -n "$ac_cv_prog_WINDRES"; then
9099 WINDRES=$ac_cv_prog_WINDRES
9102 if test -n "$ac_cv_prog_WINDRES"; then
9103 for ncn_progname in windres; do
9104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9105 set dummy ${ncn_progname}; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 if test -n "$WINDRES"; then
9112 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9113 else
9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 for as_dir in $PATH
9117 IFS=$as_save_IFS
9118 test -z "$as_dir" && as_dir=.
9119 for ac_exec_ext in '' $ac_executable_extensions; do
9120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9121 ac_cv_prog_WINDRES="${ncn_progname}"
9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9123 break 2
9125 done
9126 done
9127 IFS=$as_save_IFS
9131 WINDRES=$ac_cv_prog_WINDRES
9132 if test -n "$WINDRES"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9134 $as_echo "$WINDRES" >&6; }
9135 else
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9141 done
9144 for ncn_progname in windres; do
9145 if test -n "$ncn_tool_prefix"; then
9146 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9147 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 if test -n "$WINDRES"; then
9154 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9155 else
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 for as_dir in $PATH
9159 IFS=$as_save_IFS
9160 test -z "$as_dir" && as_dir=.
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9163 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9165 break 2
9167 done
9168 done
9169 IFS=$as_save_IFS
9173 WINDRES=$ac_cv_prog_WINDRES
9174 if test -n "$WINDRES"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9176 $as_echo "$WINDRES" >&6; }
9177 else
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9184 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9186 set dummy ${ncn_progname}; ac_word=$2
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 $as_echo_n "checking for $ac_word... " >&6; }
9189 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 if test -n "$WINDRES"; then
9193 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9194 else
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9196 for as_dir in $PATH
9198 IFS=$as_save_IFS
9199 test -z "$as_dir" && as_dir=.
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9202 ac_cv_prog_WINDRES="${ncn_progname}"
9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 break 2
9206 done
9207 done
9208 IFS=$as_save_IFS
9212 WINDRES=$ac_cv_prog_WINDRES
9213 if test -n "$WINDRES"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9215 $as_echo "$WINDRES" >&6; }
9216 else
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218 $as_echo "no" >&6; }
9223 test -n "$ac_cv_prog_WINDRES" && break
9224 done
9226 if test -z "$ac_cv_prog_WINDRES" ; then
9227 set dummy windres
9228 if test $build = $host ; then
9229 WINDRES="$2"
9230 else
9231 WINDRES="${ncn_tool_prefix}$2"
9237 if test -n "$WINDMC"; then
9238 ac_cv_prog_WINDMC=$WINDMC
9239 elif test -n "$ac_cv_prog_WINDMC"; then
9240 WINDMC=$ac_cv_prog_WINDMC
9243 if test -n "$ac_cv_prog_WINDMC"; then
9244 for ncn_progname in windmc; do
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246 set dummy ${ncn_progname}; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 if test -n "$WINDMC"; then
9253 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9254 else
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in $PATH
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_prog_WINDMC="${ncn_progname}"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9266 done
9267 done
9268 IFS=$as_save_IFS
9272 WINDMC=$ac_cv_prog_WINDMC
9273 if test -n "$WINDMC"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9275 $as_echo "$WINDMC" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9282 done
9285 for ncn_progname in windmc; do
9286 if test -n "$ncn_tool_prefix"; then
9287 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9288 set dummy ${ncn_tool_prefix}${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_WINDMC+set}" = set; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 if test -n "$WINDMC"; then
9295 ac_cv_prog_WINDMC="$WINDMC" # 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_WINDMC="${ncn_tool_prefix}${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 WINDMC=$ac_cv_prog_WINDMC
9315 if test -n "$WINDMC"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9317 $as_echo "$WINDMC" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9325 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9327 set dummy ${ncn_progname}; ac_word=$2
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 if test -n "$WINDMC"; then
9334 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9343 ac_cv_prog_WINDMC="${ncn_progname}"
9344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9347 done
9348 done
9349 IFS=$as_save_IFS
9353 WINDMC=$ac_cv_prog_WINDMC
9354 if test -n "$WINDMC"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9356 $as_echo "$WINDMC" >&6; }
9357 else
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 $as_echo "no" >&6; }
9364 test -n "$ac_cv_prog_WINDMC" && break
9365 done
9367 if test -z "$ac_cv_prog_WINDMC" ; then
9368 set dummy windmc
9369 if test $build = $host ; then
9370 WINDMC="$2"
9371 else
9372 WINDMC="${ncn_tool_prefix}$2"
9378 if test -n "$OBJCOPY"; then
9379 ac_cv_prog_OBJCOPY=$OBJCOPY
9380 elif test -n "$ac_cv_prog_OBJCOPY"; then
9381 OBJCOPY=$ac_cv_prog_OBJCOPY
9384 if test -n "$ac_cv_prog_OBJCOPY"; then
9385 for ncn_progname in objcopy; do
9386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9387 set dummy ${ncn_progname}; ac_word=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 if test -n "$OBJCOPY"; then
9394 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9395 else
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9403 ac_cv_prog_OBJCOPY="${ncn_progname}"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 break 2
9407 done
9408 done
9409 IFS=$as_save_IFS
9413 OBJCOPY=$ac_cv_prog_OBJCOPY
9414 if test -n "$OBJCOPY"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9416 $as_echo "$OBJCOPY" >&6; }
9417 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9423 done
9426 for ncn_progname in objcopy; do
9427 if test -n "$ncn_tool_prefix"; then
9428 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9429 set dummy ${ncn_tool_prefix}${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_OBJCOPY+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 if test -n "$OBJCOPY"; then
9436 ac_cv_prog_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="${ncn_tool_prefix}${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 OBJCOPY=$ac_cv_prog_OBJCOPY
9456 if test -n "$OBJCOPY"; then
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9458 $as_echo "$OBJCOPY" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9466 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9467 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9468 set dummy ${ncn_progname}; ac_word=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9472 $as_echo_n "(cached) " >&6
9473 else
9474 if test -n "$OBJCOPY"; then
9475 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9476 else
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 for as_dir in $PATH
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484 ac_cv_prog_OBJCOPY="${ncn_progname}"
9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9488 done
9489 done
9490 IFS=$as_save_IFS
9494 OBJCOPY=$ac_cv_prog_OBJCOPY
9495 if test -n "$OBJCOPY"; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9497 $as_echo "$OBJCOPY" >&6; }
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9505 test -n "$ac_cv_prog_OBJCOPY" && break
9506 done
9508 if test -z "$ac_cv_prog_OBJCOPY" ; then
9509 set dummy objcopy
9510 if test $build = $host ; then
9511 OBJCOPY="$2"
9512 else
9513 OBJCOPY="${ncn_tool_prefix}$2"
9519 if test -n "$OBJDUMP"; then
9520 ac_cv_prog_OBJDUMP=$OBJDUMP
9521 elif test -n "$ac_cv_prog_OBJDUMP"; then
9522 OBJDUMP=$ac_cv_prog_OBJDUMP
9525 if test -n "$ac_cv_prog_OBJDUMP"; then
9526 for ncn_progname in objdump; do
9527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9528 set dummy ${ncn_progname}; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 if test -n "$OBJDUMP"; then
9535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9536 else
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_prog_OBJDUMP="${ncn_progname}"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9548 done
9549 done
9550 IFS=$as_save_IFS
9554 OBJDUMP=$ac_cv_prog_OBJDUMP
9555 if test -n "$OBJDUMP"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9557 $as_echo "$OBJDUMP" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9564 done
9567 for ncn_progname in objdump; do
9568 if test -n "$ncn_tool_prefix"; then
9569 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9570 set dummy ${ncn_tool_prefix}${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_OBJDUMP+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 if test -n "$OBJDUMP"; then
9577 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ncn_tool_prefix}${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 OBJDUMP=$ac_cv_prog_OBJDUMP
9597 if test -n "$OBJDUMP"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9599 $as_echo "$OBJDUMP" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9607 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9608 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9609 set dummy ${ncn_progname}; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 if test -n "$OBJDUMP"; then
9616 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9617 else
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 for as_dir in $PATH
9621 IFS=$as_save_IFS
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_prog_OBJDUMP="${ncn_progname}"
9626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9627 break 2
9629 done
9630 done
9631 IFS=$as_save_IFS
9635 OBJDUMP=$ac_cv_prog_OBJDUMP
9636 if test -n "$OBJDUMP"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9638 $as_echo "$OBJDUMP" >&6; }
9639 else
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641 $as_echo "no" >&6; }
9646 test -n "$ac_cv_prog_OBJDUMP" && break
9647 done
9649 if test -z "$ac_cv_prog_OBJDUMP" ; then
9650 set dummy objdump
9651 if test $build = $host ; then
9652 OBJDUMP="$2"
9653 else
9654 OBJDUMP="${ncn_tool_prefix}$2"
9660 if test -n "$READELF"; then
9661 ac_cv_prog_READELF=$READELF
9662 elif test -n "$ac_cv_prog_READELF"; then
9663 READELF=$ac_cv_prog_READELF
9666 if test -n "$ac_cv_prog_READELF"; then
9667 for ncn_progname in readelf; do
9668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9669 set dummy ${ncn_progname}; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if test "${ac_cv_prog_READELF+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 if test -n "$READELF"; then
9676 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9677 else
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_READELF="${ncn_progname}"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9689 done
9690 done
9691 IFS=$as_save_IFS
9695 READELF=$ac_cv_prog_READELF
9696 if test -n "$READELF"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9698 $as_echo "$READELF" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9705 done
9708 for ncn_progname in readelf; do
9709 if test -n "$ncn_tool_prefix"; then
9710 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9711 set dummy ${ncn_tool_prefix}${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_READELF+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 if test -n "$READELF"; then
9718 ac_cv_prog_READELF="$READELF" # 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_READELF="${ncn_tool_prefix}${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 READELF=$ac_cv_prog_READELF
9738 if test -n "$READELF"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9740 $as_echo "$READELF" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9748 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9750 set dummy ${ncn_progname}; ac_word=$2
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752 $as_echo_n "checking for $ac_word... " >&6; }
9753 if test "${ac_cv_prog_READELF+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 if test -n "$READELF"; then
9757 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9758 else
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9766 ac_cv_prog_READELF="${ncn_progname}"
9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 break 2
9770 done
9771 done
9772 IFS=$as_save_IFS
9776 READELF=$ac_cv_prog_READELF
9777 if test -n "$READELF"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9779 $as_echo "$READELF" >&6; }
9780 else
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9787 test -n "$ac_cv_prog_READELF" && break
9788 done
9790 if test -z "$ac_cv_prog_READELF" ; then
9791 set dummy readelf
9792 if test $build = $host ; then
9793 READELF="$2"
9794 else
9795 READELF="${ncn_tool_prefix}$2"
9804 # Target tools.
9806 # Check whether --with-build-time-tools was given.
9807 if test "${with_build_time_tools+set}" = set; then :
9808 withval=$with_build_time_tools; case x"$withval" in
9809 x/*) ;;
9811 with_build_time_tools=
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9813 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9815 esac
9816 else
9817 with_build_time_tools=
9823 if test -n "$CC_FOR_TARGET"; then
9824 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9825 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9826 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9829 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9830 for ncn_progname in cc gcc; do
9831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9832 set dummy ${ncn_progname}; ac_word=$2
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834 $as_echo_n "checking for $ac_word... " >&6; }
9835 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
9837 else
9838 if test -n "$CC_FOR_TARGET"; then
9839 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9840 else
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842 for as_dir in $PATH
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9848 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 break 2
9852 done
9853 done
9854 IFS=$as_save_IFS
9858 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9859 if test -n "$CC_FOR_TARGET"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9861 $as_echo "$CC_FOR_TARGET" >&6; }
9862 else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9868 done
9871 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9872 for ncn_progname in cc gcc; do
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9874 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9875 if test -x $with_build_time_tools/${ncn_progname}; then
9876 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9878 $as_echo "yes" >&6; }
9879 break
9880 else
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9884 done
9887 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9888 for ncn_progname in cc gcc; do
9889 if test -n "$ncn_target_tool_prefix"; then
9890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9891 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 if test -n "$CC_FOR_TARGET"; then
9898 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9899 else
9900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 for as_dir in $PATH
9903 IFS=$as_save_IFS
9904 test -z "$as_dir" && as_dir=.
9905 for ac_exec_ext in '' $ac_executable_extensions; do
9906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9907 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 break 2
9911 done
9912 done
9913 IFS=$as_save_IFS
9917 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9918 if test -n "$CC_FOR_TARGET"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9920 $as_echo "$CC_FOR_TARGET" >&6; }
9921 else
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9928 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9930 set dummy ${ncn_progname}; ac_word=$2
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932 $as_echo_n "checking for $ac_word... " >&6; }
9933 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 if test -n "$CC_FOR_TARGET"; then
9937 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9938 else
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 for as_dir in $PATH
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9950 done
9951 done
9952 IFS=$as_save_IFS
9956 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9957 if test -n "$CC_FOR_TARGET"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9959 $as_echo "$CC_FOR_TARGET" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9967 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9968 done
9971 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9972 set dummy cc gcc
9973 if test $build = $target ; then
9974 CC_FOR_TARGET="$2"
9975 else
9976 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9978 else
9979 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9984 if test -n "$CXX_FOR_TARGET"; then
9985 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9986 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9987 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9990 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9991 for ncn_progname in c++ g++ cxx gxx; do
9992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9993 set dummy ${ncn_progname}; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 if test -n "$CXX_FOR_TARGET"; then
10000 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10001 else
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10013 done
10014 done
10015 IFS=$as_save_IFS
10019 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10020 if test -n "$CXX_FOR_TARGET"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10022 $as_echo "$CXX_FOR_TARGET" >&6; }
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10029 done
10032 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10033 for ncn_progname in c++ g++ cxx gxx; do
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10035 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10036 if test -x $with_build_time_tools/${ncn_progname}; then
10037 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10039 $as_echo "yes" >&6; }
10040 break
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10045 done
10048 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10049 for ncn_progname in c++ g++ cxx gxx; do
10050 if test -n "$ncn_target_tool_prefix"; then
10051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10052 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10054 $as_echo_n "checking for $ac_word... " >&6; }
10055 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10056 $as_echo_n "(cached) " >&6
10057 else
10058 if test -n "$CXX_FOR_TARGET"; then
10059 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10060 else
10061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062 for as_dir in $PATH
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10068 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10072 done
10073 done
10074 IFS=$as_save_IFS
10078 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10079 if test -n "$CXX_FOR_TARGET"; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10081 $as_echo "$CXX_FOR_TARGET" >&6; }
10082 else
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10084 $as_echo "no" >&6; }
10089 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10091 set dummy ${ncn_progname}; ac_word=$2
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093 $as_echo_n "checking for $ac_word... " >&6; }
10094 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 if test -n "$CXX_FOR_TARGET"; then
10098 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10099 else
10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101 for as_dir in $PATH
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10107 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 break 2
10111 done
10112 done
10113 IFS=$as_save_IFS
10117 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10118 if test -n "$CXX_FOR_TARGET"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10120 $as_echo "$CXX_FOR_TARGET" >&6; }
10121 else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10128 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10129 done
10132 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10133 set dummy c++ g++ cxx gxx
10134 if test $build = $target ; then
10135 CXX_FOR_TARGET="$2"
10136 else
10137 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10139 else
10140 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10145 if test -n "$GCC_FOR_TARGET"; then
10146 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10147 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10148 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10151 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10152 for ncn_progname in gcc; do
10153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10154 set dummy ${ncn_progname}; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 if test -n "$GCC_FOR_TARGET"; then
10161 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10162 else
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10166 IFS=$as_save_IFS
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10172 break 2
10174 done
10175 done
10176 IFS=$as_save_IFS
10180 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10181 if test -n "$GCC_FOR_TARGET"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10183 $as_echo "$GCC_FOR_TARGET" >&6; }
10184 else
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10190 done
10193 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10194 for ncn_progname in gcc; do
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10196 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10197 if test -x $with_build_time_tools/${ncn_progname}; then
10198 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10200 $as_echo "yes" >&6; }
10201 break
10202 else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10206 done
10209 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10210 for ncn_progname in gcc; do
10211 if test -n "$ncn_target_tool_prefix"; then
10212 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10213 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10215 $as_echo_n "checking for $ac_word... " >&6; }
10216 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 if test -n "$GCC_FOR_TARGET"; then
10220 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10221 else
10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10223 for as_dir in $PATH
10225 IFS=$as_save_IFS
10226 test -z "$as_dir" && as_dir=.
10227 for ac_exec_ext in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10229 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10231 break 2
10233 done
10234 done
10235 IFS=$as_save_IFS
10239 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10240 if test -n "$GCC_FOR_TARGET"; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10242 $as_echo "$GCC_FOR_TARGET" >&6; }
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10250 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10252 set dummy ${ncn_progname}; ac_word=$2
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254 $as_echo_n "checking for $ac_word... " >&6; }
10255 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 if test -n "$GCC_FOR_TARGET"; then
10259 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10260 else
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $PATH
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10272 done
10273 done
10274 IFS=$as_save_IFS
10278 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10279 if test -n "$GCC_FOR_TARGET"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10281 $as_echo "$GCC_FOR_TARGET" >&6; }
10282 else
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 $as_echo "no" >&6; }
10289 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10290 done
10293 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10294 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10295 else
10296 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10301 if test -n "$GCJ_FOR_TARGET"; then
10302 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10303 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10304 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10307 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10308 for ncn_progname in gcj; do
10309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10310 set dummy ${ncn_progname}; ac_word=$2
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 $as_echo_n "checking for $ac_word... " >&6; }
10313 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10314 $as_echo_n "(cached) " >&6
10315 else
10316 if test -n "$GCJ_FOR_TARGET"; then
10317 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10318 else
10319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in $PATH
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10326 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10330 done
10331 done
10332 IFS=$as_save_IFS
10336 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10337 if test -n "$GCJ_FOR_TARGET"; then
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10339 $as_echo "$GCJ_FOR_TARGET" >&6; }
10340 else
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10346 done
10349 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10350 for ncn_progname in gcj; do
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10352 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10353 if test -x $with_build_time_tools/${ncn_progname}; then
10354 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10356 $as_echo "yes" >&6; }
10357 break
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10362 done
10365 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10366 for ncn_progname in gcj; do
10367 if test -n "$ncn_target_tool_prefix"; then
10368 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10369 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 if test -n "$GCJ_FOR_TARGET"; then
10376 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10377 else
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $PATH
10381 IFS=$as_save_IFS
10382 test -z "$as_dir" && as_dir=.
10383 for ac_exec_ext in '' $ac_executable_extensions; do
10384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10385 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10387 break 2
10389 done
10390 done
10391 IFS=$as_save_IFS
10395 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10396 if test -n "$GCJ_FOR_TARGET"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10398 $as_echo "$GCJ_FOR_TARGET" >&6; }
10399 else
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10401 $as_echo "no" >&6; }
10406 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10408 set dummy ${ncn_progname}; ac_word=$2
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10410 $as_echo_n "checking for $ac_word... " >&6; }
10411 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10414 if test -n "$GCJ_FOR_TARGET"; then
10415 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10416 else
10417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418 for as_dir in $PATH
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10424 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10426 break 2
10428 done
10429 done
10430 IFS=$as_save_IFS
10434 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10435 if test -n "$GCJ_FOR_TARGET"; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10437 $as_echo "$GCJ_FOR_TARGET" >&6; }
10438 else
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10445 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10446 done
10449 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10450 set dummy gcj
10451 if test $build = $target ; then
10452 GCJ_FOR_TARGET="$2"
10453 else
10454 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10456 else
10457 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10462 if test -n "$GFORTRAN_FOR_TARGET"; then
10463 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10464 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10465 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10468 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10469 for ncn_progname in gfortran; do
10470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10471 set dummy ${ncn_progname}; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 if test -n "$GFORTRAN_FOR_TARGET"; then
10478 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10479 else
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10491 done
10492 done
10493 IFS=$as_save_IFS
10497 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10498 if test -n "$GFORTRAN_FOR_TARGET"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10500 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10507 done
10510 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10511 for ncn_progname in gfortran; do
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10513 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10514 if test -x $with_build_time_tools/${ncn_progname}; then
10515 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10517 $as_echo "yes" >&6; }
10518 break
10519 else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 $as_echo "no" >&6; }
10523 done
10526 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10527 for ncn_progname in gfortran; do
10528 if test -n "$ncn_target_tool_prefix"; then
10529 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10530 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 if test -n "$GFORTRAN_FOR_TARGET"; then
10537 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10538 else
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10550 done
10551 done
10552 IFS=$as_save_IFS
10556 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10557 if test -n "$GFORTRAN_FOR_TARGET"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10559 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10560 else
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10567 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10569 set dummy ${ncn_progname}; ac_word=$2
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10571 $as_echo_n "checking for $ac_word... " >&6; }
10572 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 if test -n "$GFORTRAN_FOR_TARGET"; then
10576 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10577 else
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10585 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10589 done
10590 done
10591 IFS=$as_save_IFS
10595 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10596 if test -n "$GFORTRAN_FOR_TARGET"; then
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10598 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10606 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10607 done
10610 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10611 set dummy gfortran
10612 if test $build = $target ; then
10613 GFORTRAN_FOR_TARGET="$2"
10614 else
10615 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10617 else
10618 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10623 if test -n "$GOC_FOR_TARGET"; then
10624 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10625 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10626 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10629 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10630 for ncn_progname in gccgo; do
10631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10632 set dummy ${ncn_progname}; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 if test -n "$GOC_FOR_TARGET"; then
10639 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10640 else
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10648 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 break 2
10652 done
10653 done
10654 IFS=$as_save_IFS
10658 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10659 if test -n "$GOC_FOR_TARGET"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10661 $as_echo "$GOC_FOR_TARGET" >&6; }
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10668 done
10671 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10672 for ncn_progname in gccgo; do
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10674 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10675 if test -x $with_build_time_tools/${ncn_progname}; then
10676 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; }
10679 break
10680 else
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10684 done
10687 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10688 for ncn_progname in gccgo; do
10689 if test -n "$ncn_target_tool_prefix"; then
10690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693 $as_echo_n "checking for $ac_word... " >&6; }
10694 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10695 $as_echo_n "(cached) " >&6
10696 else
10697 if test -n "$GOC_FOR_TARGET"; then
10698 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10699 else
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10703 IFS=$as_save_IFS
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10709 break 2
10711 done
10712 done
10713 IFS=$as_save_IFS
10717 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10718 if test -n "$GOC_FOR_TARGET"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10720 $as_echo "$GOC_FOR_TARGET" >&6; }
10721 else
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10728 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10730 set dummy ${ncn_progname}; ac_word=$2
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 $as_echo_n "checking for $ac_word... " >&6; }
10733 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10734 $as_echo_n "(cached) " >&6
10735 else
10736 if test -n "$GOC_FOR_TARGET"; then
10737 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10738 else
10739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740 for as_dir in $PATH
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10750 done
10751 done
10752 IFS=$as_save_IFS
10756 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10757 if test -n "$GOC_FOR_TARGET"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10759 $as_echo "$GOC_FOR_TARGET" >&6; }
10760 else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762 $as_echo "no" >&6; }
10767 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10768 done
10771 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10772 set dummy gccgo
10773 if test $build = $target ; then
10774 GOC_FOR_TARGET="$2"
10775 else
10776 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10778 else
10779 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10784 cat > conftest.c << \EOF
10785 #ifdef __GNUC__
10786 gcc_yay;
10787 #endif
10789 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10790 have_gcc_for_target=yes
10791 else
10792 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10793 have_gcc_for_target=no
10795 rm conftest.c
10800 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10801 if test -n "$with_build_time_tools"; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10803 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10804 if test -x $with_build_time_tools/ar; then
10805 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10806 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10808 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10813 elif test $build != $host && test $have_gcc_for_target = yes; then
10814 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10815 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10816 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10819 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10820 # Extract the first word of "ar", so it can be a program name with args.
10821 set dummy ar; ac_word=$2
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823 $as_echo_n "checking for $ac_word... " >&6; }
10824 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 case $AR_FOR_TARGET in
10828 [\\/]* | ?:[\\/]*)
10829 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $gcc_cv_tool_dirs
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10839 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841 break 2
10843 done
10844 done
10845 IFS=$as_save_IFS
10848 esac
10850 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10851 if test -n "$AR_FOR_TARGET"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10853 $as_echo "$AR_FOR_TARGET" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10861 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10864 if test -n "$AR_FOR_TARGET"; then
10865 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10866 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10867 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10870 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10871 for ncn_progname in ar; do
10872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10873 set dummy ${ncn_progname}; ac_word=$2
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875 $as_echo_n "checking for $ac_word... " >&6; }
10876 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10877 $as_echo_n "(cached) " >&6
10878 else
10879 if test -n "$AR_FOR_TARGET"; then
10880 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10881 else
10882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10883 for as_dir in $PATH
10885 IFS=$as_save_IFS
10886 test -z "$as_dir" && as_dir=.
10887 for ac_exec_ext in '' $ac_executable_extensions; do
10888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10889 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10891 break 2
10893 done
10894 done
10895 IFS=$as_save_IFS
10899 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10900 if test -n "$AR_FOR_TARGET"; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10902 $as_echo "$AR_FOR_TARGET" >&6; }
10903 else
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905 $as_echo "no" >&6; }
10909 done
10912 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10913 for ncn_progname in ar; do
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10915 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10916 if test -x $with_build_time_tools/${ncn_progname}; then
10917 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919 $as_echo "yes" >&6; }
10920 break
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10925 done
10928 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10929 for ncn_progname in ar; do
10930 if test -n "$ncn_target_tool_prefix"; then
10931 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10932 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934 $as_echo_n "checking for $ac_word... " >&6; }
10935 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 if test -n "$AR_FOR_TARGET"; then
10939 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10940 else
10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10944 IFS=$as_save_IFS
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10948 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 break 2
10952 done
10953 done
10954 IFS=$as_save_IFS
10958 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10959 if test -n "$AR_FOR_TARGET"; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10961 $as_echo "$AR_FOR_TARGET" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10969 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10971 set dummy ${ncn_progname}; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 if test -n "$AR_FOR_TARGET"; then
10978 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10979 else
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10991 done
10992 done
10993 IFS=$as_save_IFS
10997 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10998 if test -n "$AR_FOR_TARGET"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11000 $as_echo "$AR_FOR_TARGET" >&6; }
11001 else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003 $as_echo "no" >&6; }
11008 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11009 done
11012 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11013 set dummy ar
11014 if test $build = $target ; then
11015 AR_FOR_TARGET="$2"
11016 else
11017 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11019 else
11020 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11023 else
11024 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11030 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11031 if test -n "$with_build_time_tools"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11033 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11034 if test -x $with_build_time_tools/as; then
11035 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11036 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11038 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11043 elif test $build != $host && test $have_gcc_for_target = yes; then
11044 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11045 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11046 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11049 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11050 # Extract the first word of "as", so it can be a program name with args.
11051 set dummy as; ac_word=$2
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053 $as_echo_n "checking for $ac_word... " >&6; }
11054 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 case $AS_FOR_TARGET in
11058 [\\/]* | ?:[\\/]*)
11059 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $gcc_cv_tool_dirs
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11069 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 break 2
11073 done
11074 done
11075 IFS=$as_save_IFS
11078 esac
11080 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11081 if test -n "$AS_FOR_TARGET"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11083 $as_echo "$AS_FOR_TARGET" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11091 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11094 if test -n "$AS_FOR_TARGET"; then
11095 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11096 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11097 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11100 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11101 for ncn_progname in as; do
11102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11103 set dummy ${ncn_progname}; ac_word=$2
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11105 $as_echo_n "checking for $ac_word... " >&6; }
11106 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 if test -n "$AS_FOR_TARGET"; then
11110 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11111 else
11112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113 for as_dir in $PATH
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11119 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11123 done
11124 done
11125 IFS=$as_save_IFS
11129 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11130 if test -n "$AS_FOR_TARGET"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11132 $as_echo "$AS_FOR_TARGET" >&6; }
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; }
11139 done
11142 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11143 for ncn_progname in as; do
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11145 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11146 if test -x $with_build_time_tools/${ncn_progname}; then
11147 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149 $as_echo "yes" >&6; }
11150 break
11151 else
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153 $as_echo "no" >&6; }
11155 done
11158 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11159 for ncn_progname in as; do
11160 if test -n "$ncn_target_tool_prefix"; then
11161 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11162 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 if test -n "$AS_FOR_TARGET"; then
11169 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11170 else
11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11172 for as_dir in $PATH
11174 IFS=$as_save_IFS
11175 test -z "$as_dir" && as_dir=.
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11178 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 break 2
11182 done
11183 done
11184 IFS=$as_save_IFS
11188 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11189 if test -n "$AS_FOR_TARGET"; then
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11191 $as_echo "$AS_FOR_TARGET" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11199 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11201 set dummy ${ncn_progname}; ac_word=$2
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11203 $as_echo_n "checking for $ac_word... " >&6; }
11204 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 if test -n "$AS_FOR_TARGET"; then
11208 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11209 else
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $PATH
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11217 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11221 done
11222 done
11223 IFS=$as_save_IFS
11227 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11228 if test -n "$AS_FOR_TARGET"; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11230 $as_echo "$AS_FOR_TARGET" >&6; }
11231 else
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11233 $as_echo "no" >&6; }
11238 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11239 done
11242 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11243 set dummy as
11244 if test $build = $target ; then
11245 AS_FOR_TARGET="$2"
11246 else
11247 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11249 else
11250 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11253 else
11254 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11260 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11261 if test -n "$with_build_time_tools"; then
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11263 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11264 if test -x $with_build_time_tools/dlltool; then
11265 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11266 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11268 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11273 elif test $build != $host && test $have_gcc_for_target = yes; then
11274 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11275 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11276 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11279 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11280 # Extract the first word of "dlltool", so it can be a program name with args.
11281 set dummy dlltool; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 case $DLLTOOL_FOR_TARGET in
11288 [\\/]* | ?:[\\/]*)
11289 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $gcc_cv_tool_dirs
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11303 done
11304 done
11305 IFS=$as_save_IFS
11308 esac
11310 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11311 if test -n "$DLLTOOL_FOR_TARGET"; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11313 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11321 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11324 if test -n "$DLLTOOL_FOR_TARGET"; then
11325 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11326 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11327 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11330 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11331 for ncn_progname in dlltool; do
11332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11333 set dummy ${ncn_progname}; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 if test -n "$DLLTOOL_FOR_TARGET"; then
11340 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11341 else
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11345 IFS=$as_save_IFS
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11351 break 2
11353 done
11354 done
11355 IFS=$as_save_IFS
11359 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11360 if test -n "$DLLTOOL_FOR_TARGET"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11362 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11369 done
11372 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11373 for ncn_progname in dlltool; do
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11375 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11376 if test -x $with_build_time_tools/${ncn_progname}; then
11377 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11379 $as_echo "yes" >&6; }
11380 break
11381 else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11385 done
11388 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11389 for ncn_progname in dlltool; do
11390 if test -n "$ncn_target_tool_prefix"; then
11391 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11392 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394 $as_echo_n "checking for $ac_word... " >&6; }
11395 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 if test -n "$DLLTOOL_FOR_TARGET"; then
11399 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11400 else
11401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402 for as_dir in $PATH
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11408 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11410 break 2
11412 done
11413 done
11414 IFS=$as_save_IFS
11418 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11419 if test -n "$DLLTOOL_FOR_TARGET"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11421 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11422 else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 $as_echo "no" >&6; }
11429 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11431 set dummy ${ncn_progname}; ac_word=$2
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433 $as_echo_n "checking for $ac_word... " >&6; }
11434 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 if test -n "$DLLTOOL_FOR_TARGET"; then
11438 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11439 else
11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441 for as_dir in $PATH
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
11445 for ac_exec_ext in '' $ac_executable_extensions; do
11446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11447 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11449 break 2
11451 done
11452 done
11453 IFS=$as_save_IFS
11457 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11458 if test -n "$DLLTOOL_FOR_TARGET"; then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11460 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11461 else
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 $as_echo "no" >&6; }
11468 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11469 done
11472 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11473 set dummy dlltool
11474 if test $build = $target ; then
11475 DLLTOOL_FOR_TARGET="$2"
11476 else
11477 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11479 else
11480 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11483 else
11484 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11490 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11491 if test -n "$with_build_time_tools"; then
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11493 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11494 if test -x $with_build_time_tools/ld; then
11495 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11496 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11498 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11499 else
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501 $as_echo "no" >&6; }
11503 elif test $build != $host && test $have_gcc_for_target = yes; then
11504 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11505 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11506 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11509 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11510 # Extract the first word of "ld", so it can be a program name with args.
11511 set dummy ld; ac_word=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 case $LD_FOR_TARGET in
11518 [\\/]* | ?:[\\/]*)
11519 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523 for as_dir in $gcc_cv_tool_dirs
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11529 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11533 done
11534 done
11535 IFS=$as_save_IFS
11538 esac
11540 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11541 if test -n "$LD_FOR_TARGET"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11543 $as_echo "$LD_FOR_TARGET" >&6; }
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11551 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11554 if test -n "$LD_FOR_TARGET"; then
11555 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11556 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11557 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11560 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11561 for ncn_progname in ld; do
11562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11563 set dummy ${ncn_progname}; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 if test -n "$LD_FOR_TARGET"; then
11570 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11571 else
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11575 IFS=$as_save_IFS
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11579 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 break 2
11583 done
11584 done
11585 IFS=$as_save_IFS
11589 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11590 if test -n "$LD_FOR_TARGET"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11592 $as_echo "$LD_FOR_TARGET" >&6; }
11593 else
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11599 done
11602 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11603 for ncn_progname in ld; do
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11605 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11606 if test -x $with_build_time_tools/${ncn_progname}; then
11607 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; }
11610 break
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11615 done
11618 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11619 for ncn_progname in ld; do
11620 if test -n "$ncn_target_tool_prefix"; then
11621 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11622 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 if test -n "$LD_FOR_TARGET"; then
11629 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11634 IFS=$as_save_IFS
11635 test -z "$as_dir" && as_dir=.
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 break 2
11642 done
11643 done
11644 IFS=$as_save_IFS
11648 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11649 if test -n "$LD_FOR_TARGET"; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11651 $as_echo "$LD_FOR_TARGET" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11659 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11661 set dummy ${ncn_progname}; ac_word=$2
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 $as_echo_n "checking for $ac_word... " >&6; }
11664 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11665 $as_echo_n "(cached) " >&6
11666 else
11667 if test -n "$LD_FOR_TARGET"; then
11668 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11669 else
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 break 2
11681 done
11682 done
11683 IFS=$as_save_IFS
11687 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11688 if test -n "$LD_FOR_TARGET"; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11690 $as_echo "$LD_FOR_TARGET" >&6; }
11691 else
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11698 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11699 done
11702 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11703 set dummy ld
11704 if test $build = $target ; then
11705 LD_FOR_TARGET="$2"
11706 else
11707 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11709 else
11710 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11713 else
11714 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11720 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11721 if test -n "$with_build_time_tools"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11723 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11724 if test -x $with_build_time_tools/lipo; then
11725 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11726 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11728 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11733 elif test $build != $host && test $have_gcc_for_target = yes; then
11734 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11735 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11736 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11739 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11740 # Extract the first word of "lipo", so it can be a program name with args.
11741 set dummy lipo; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 case $LIPO_FOR_TARGET in
11748 [\\/]* | ?:[\\/]*)
11749 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $gcc_cv_tool_dirs
11755 IFS=$as_save_IFS
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 break 2
11763 done
11764 done
11765 IFS=$as_save_IFS
11768 esac
11770 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11771 if test -n "$LIPO_FOR_TARGET"; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11773 $as_echo "$LIPO_FOR_TARGET" >&6; }
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11781 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11784 if test -n "$LIPO_FOR_TARGET"; then
11785 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11786 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11787 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11790 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11791 for ncn_progname in lipo; do
11792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11793 set dummy ${ncn_progname}; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 if test -n "$LIPO_FOR_TARGET"; then
11800 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11801 else
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11805 IFS=$as_save_IFS
11806 test -z "$as_dir" && as_dir=.
11807 for ac_exec_ext in '' $ac_executable_extensions; do
11808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11809 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811 break 2
11813 done
11814 done
11815 IFS=$as_save_IFS
11819 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11820 if test -n "$LIPO_FOR_TARGET"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11822 $as_echo "$LIPO_FOR_TARGET" >&6; }
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11829 done
11832 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11833 for ncn_progname in lipo; do
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11835 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11836 if test -x $with_build_time_tools/${ncn_progname}; then
11837 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11839 $as_echo "yes" >&6; }
11840 break
11841 else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11845 done
11848 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11849 for ncn_progname in lipo; do
11850 if test -n "$ncn_target_tool_prefix"; then
11851 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11852 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 if test -n "$LIPO_FOR_TARGET"; then
11859 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11860 else
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11872 done
11873 done
11874 IFS=$as_save_IFS
11878 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11879 if test -n "$LIPO_FOR_TARGET"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11881 $as_echo "$LIPO_FOR_TARGET" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11889 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11891 set dummy ${ncn_progname}; ac_word=$2
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893 $as_echo_n "checking for $ac_word... " >&6; }
11894 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 if test -n "$LIPO_FOR_TARGET"; then
11898 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11899 else
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11907 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 break 2
11911 done
11912 done
11913 IFS=$as_save_IFS
11917 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11918 if test -n "$LIPO_FOR_TARGET"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11920 $as_echo "$LIPO_FOR_TARGET" >&6; }
11921 else
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11928 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11929 done
11932 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11933 set dummy lipo
11934 if test $build = $target ; then
11935 LIPO_FOR_TARGET="$2"
11936 else
11937 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11939 else
11940 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11943 else
11944 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11950 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11951 if test -n "$with_build_time_tools"; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11953 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11954 if test -x $with_build_time_tools/nm; then
11955 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11956 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11958 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11959 else
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11963 elif test $build != $host && test $have_gcc_for_target = yes; then
11964 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11965 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11966 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11969 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11970 # Extract the first word of "nm", so it can be a program name with args.
11971 set dummy nm; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 case $NM_FOR_TARGET in
11978 [\\/]* | ?:[\\/]*)
11979 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $gcc_cv_tool_dirs
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11989 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991 break 2
11993 done
11994 done
11995 IFS=$as_save_IFS
11998 esac
12000 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12001 if test -n "$NM_FOR_TARGET"; then
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12003 $as_echo "$NM_FOR_TARGET" >&6; }
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12011 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12014 if test -n "$NM_FOR_TARGET"; then
12015 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12016 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12017 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12020 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12021 for ncn_progname in nm; do
12022 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12023 set dummy ${ncn_progname}; ac_word=$2
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025 $as_echo_n "checking for $ac_word... " >&6; }
12026 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 if test -n "$NM_FOR_TARGET"; then
12030 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12031 else
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12035 IFS=$as_save_IFS
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12041 break 2
12043 done
12044 done
12045 IFS=$as_save_IFS
12049 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12050 if test -n "$NM_FOR_TARGET"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12052 $as_echo "$NM_FOR_TARGET" >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12059 done
12062 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12063 for ncn_progname in nm; do
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12065 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12066 if test -x $with_build_time_tools/${ncn_progname}; then
12067 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069 $as_echo "yes" >&6; }
12070 break
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12075 done
12078 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12079 for ncn_progname in nm; do
12080 if test -n "$ncn_target_tool_prefix"; then
12081 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12082 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 if test -n "$NM_FOR_TARGET"; then
12089 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12090 else
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12094 IFS=$as_save_IFS
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12098 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12100 break 2
12102 done
12103 done
12104 IFS=$as_save_IFS
12108 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12109 if test -n "$NM_FOR_TARGET"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12111 $as_echo "$NM_FOR_TARGET" >&6; }
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12119 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12121 set dummy ${ncn_progname}; ac_word=$2
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123 $as_echo_n "checking for $ac_word... " >&6; }
12124 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 if test -n "$NM_FOR_TARGET"; then
12128 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12129 else
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12137 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 break 2
12141 done
12142 done
12143 IFS=$as_save_IFS
12147 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12148 if test -n "$NM_FOR_TARGET"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12150 $as_echo "$NM_FOR_TARGET" >&6; }
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12158 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12159 done
12162 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12163 set dummy nm
12164 if test $build = $target ; then
12165 NM_FOR_TARGET="$2"
12166 else
12167 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12169 else
12170 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12173 else
12174 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12180 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12181 if test -n "$with_build_time_tools"; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12183 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12184 if test -x $with_build_time_tools/objdump; then
12185 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12186 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12188 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12193 elif test $build != $host && test $have_gcc_for_target = yes; then
12194 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12195 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12196 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12199 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12200 # Extract the first word of "objdump", so it can be a program name with args.
12201 set dummy objdump; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 case $OBJDUMP_FOR_TARGET in
12208 [\\/]* | ?:[\\/]*)
12209 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12213 for as_dir in $gcc_cv_tool_dirs
12215 IFS=$as_save_IFS
12216 test -z "$as_dir" && as_dir=.
12217 for ac_exec_ext in '' $ac_executable_extensions; do
12218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12219 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 break 2
12223 done
12224 done
12225 IFS=$as_save_IFS
12228 esac
12230 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12231 if test -n "$OBJDUMP_FOR_TARGET"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12233 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12241 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12244 if test -n "$OBJDUMP_FOR_TARGET"; then
12245 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12246 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12247 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12250 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12251 for ncn_progname in objdump; do
12252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12253 set dummy ${ncn_progname}; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test -n "$OBJDUMP_FOR_TARGET"; then
12260 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12273 done
12274 done
12275 IFS=$as_save_IFS
12279 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12280 if test -n "$OBJDUMP_FOR_TARGET"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12282 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12289 done
12292 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12293 for ncn_progname in objdump; do
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12295 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12296 if test -x $with_build_time_tools/${ncn_progname}; then
12297 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299 $as_echo "yes" >&6; }
12300 break
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12305 done
12308 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12309 for ncn_progname in objdump; do
12310 if test -n "$ncn_target_tool_prefix"; then
12311 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12312 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 if test -n "$OBJDUMP_FOR_TARGET"; then
12319 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12320 else
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12328 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12332 done
12333 done
12334 IFS=$as_save_IFS
12338 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12339 if test -n "$OBJDUMP_FOR_TARGET"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12341 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12342 else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12349 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12351 set dummy ${ncn_progname}; ac_word=$2
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 $as_echo_n "checking for $ac_word... " >&6; }
12354 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 if test -n "$OBJDUMP_FOR_TARGET"; then
12358 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12359 else
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361 for as_dir in $PATH
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12367 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12369 break 2
12371 done
12372 done
12373 IFS=$as_save_IFS
12377 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12378 if test -n "$OBJDUMP_FOR_TARGET"; then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12380 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12388 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12389 done
12392 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12393 set dummy objdump
12394 if test $build = $target ; then
12395 OBJDUMP_FOR_TARGET="$2"
12396 else
12397 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12399 else
12400 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12403 else
12404 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12410 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12411 if test -n "$with_build_time_tools"; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12413 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12414 if test -x $with_build_time_tools/ranlib; then
12415 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12416 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12418 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12423 elif test $build != $host && test $have_gcc_for_target = yes; then
12424 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12425 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12426 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12429 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12430 # Extract the first word of "ranlib", so it can be a program name with args.
12431 set dummy ranlib; ac_word=$2
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433 $as_echo_n "checking for $ac_word... " >&6; }
12434 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 case $RANLIB_FOR_TARGET in
12438 [\\/]* | ?:[\\/]*)
12439 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $gcc_cv_tool_dirs
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12449 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 break 2
12453 done
12454 done
12455 IFS=$as_save_IFS
12458 esac
12460 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12461 if test -n "$RANLIB_FOR_TARGET"; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12463 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12464 else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12471 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12474 if test -n "$RANLIB_FOR_TARGET"; then
12475 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12476 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12477 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12480 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12481 for ncn_progname in ranlib; do
12482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12483 set dummy ${ncn_progname}; ac_word=$2
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 if test -n "$RANLIB_FOR_TARGET"; then
12490 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12491 else
12492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12495 IFS=$as_save_IFS
12496 test -z "$as_dir" && as_dir=.
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12499 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501 break 2
12503 done
12504 done
12505 IFS=$as_save_IFS
12509 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12510 if test -n "$RANLIB_FOR_TARGET"; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12512 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12513 else
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515 $as_echo "no" >&6; }
12519 done
12522 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12523 for ncn_progname in ranlib; do
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12525 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12526 if test -x $with_build_time_tools/${ncn_progname}; then
12527 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12529 $as_echo "yes" >&6; }
12530 break
12531 else
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12535 done
12538 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12539 for ncn_progname in ranlib; do
12540 if test -n "$ncn_target_tool_prefix"; then
12541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12542 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 if test -n "$RANLIB_FOR_TARGET"; then
12549 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12550 else
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12554 IFS=$as_save_IFS
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560 break 2
12562 done
12563 done
12564 IFS=$as_save_IFS
12568 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12569 if test -n "$RANLIB_FOR_TARGET"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12571 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12579 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12581 set dummy ${ncn_progname}; ac_word=$2
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583 $as_echo_n "checking for $ac_word... " >&6; }
12584 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 if test -n "$RANLIB_FOR_TARGET"; then
12588 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12589 else
12590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591 for as_dir in $PATH
12593 IFS=$as_save_IFS
12594 test -z "$as_dir" && as_dir=.
12595 for ac_exec_ext in '' $ac_executable_extensions; do
12596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12597 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12599 break 2
12601 done
12602 done
12603 IFS=$as_save_IFS
12607 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12608 if test -n "$RANLIB_FOR_TARGET"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12610 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12618 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12619 done
12622 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12623 set dummy ranlib
12624 if test $build = $target ; then
12625 RANLIB_FOR_TARGET="$2"
12626 else
12627 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12629 else
12630 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12633 else
12634 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12640 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12641 if test -n "$with_build_time_tools"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12643 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12644 if test -x $with_build_time_tools/readelf; then
12645 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12646 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12648 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651 $as_echo "no" >&6; }
12653 elif test $build != $host && test $have_gcc_for_target = yes; then
12654 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12655 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12656 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12659 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12660 # Extract the first word of "readelf", so it can be a program name with args.
12661 set dummy readelf; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667 case $READELF_FOR_TARGET in
12668 [\\/]* | ?:[\\/]*)
12669 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $gcc_cv_tool_dirs
12675 IFS=$as_save_IFS
12676 test -z "$as_dir" && as_dir=.
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12679 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681 break 2
12683 done
12684 done
12685 IFS=$as_save_IFS
12688 esac
12690 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12691 if test -n "$READELF_FOR_TARGET"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12693 $as_echo "$READELF_FOR_TARGET" >&6; }
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12701 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12704 if test -n "$READELF_FOR_TARGET"; then
12705 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12706 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12707 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12710 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12711 for ncn_progname in readelf; do
12712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12713 set dummy ${ncn_progname}; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 if test -n "$READELF_FOR_TARGET"; then
12720 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12721 else
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12725 IFS=$as_save_IFS
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 break 2
12733 done
12734 done
12735 IFS=$as_save_IFS
12739 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12740 if test -n "$READELF_FOR_TARGET"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12742 $as_echo "$READELF_FOR_TARGET" >&6; }
12743 else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12749 done
12752 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12753 for ncn_progname in readelf; do
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12755 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12756 if test -x $with_build_time_tools/${ncn_progname}; then
12757 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759 $as_echo "yes" >&6; }
12760 break
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12765 done
12768 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12769 for ncn_progname in readelf; do
12770 if test -n "$ncn_target_tool_prefix"; then
12771 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12772 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 if test -n "$READELF_FOR_TARGET"; then
12779 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12780 else
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 for as_dir in $PATH
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12792 done
12793 done
12794 IFS=$as_save_IFS
12798 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12799 if test -n "$READELF_FOR_TARGET"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12801 $as_echo "$READELF_FOR_TARGET" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12809 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12811 set dummy ${ncn_progname}; ac_word=$2
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813 $as_echo_n "checking for $ac_word... " >&6; }
12814 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 if test -n "$READELF_FOR_TARGET"; then
12818 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12819 else
12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821 for as_dir in $PATH
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
12825 for ac_exec_ext in '' $ac_executable_extensions; do
12826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12827 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 break 2
12831 done
12832 done
12833 IFS=$as_save_IFS
12837 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12838 if test -n "$READELF_FOR_TARGET"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12840 $as_echo "$READELF_FOR_TARGET" >&6; }
12841 else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843 $as_echo "no" >&6; }
12848 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12849 done
12852 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12853 set dummy readelf
12854 if test $build = $target ; then
12855 READELF_FOR_TARGET="$2"
12856 else
12857 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12859 else
12860 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12863 else
12864 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12870 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12871 if test -n "$with_build_time_tools"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12873 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12874 if test -x $with_build_time_tools/strip; then
12875 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12876 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12878 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12879 else
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881 $as_echo "no" >&6; }
12883 elif test $build != $host && test $have_gcc_for_target = yes; then
12884 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12885 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12886 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12889 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12890 # Extract the first word of "strip", so it can be a program name with args.
12891 set dummy strip; ac_word=$2
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893 $as_echo_n "checking for $ac_word... " >&6; }
12894 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 case $STRIP_FOR_TARGET in
12898 [\\/]* | ?:[\\/]*)
12899 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $gcc_cv_tool_dirs
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12909 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 break 2
12913 done
12914 done
12915 IFS=$as_save_IFS
12918 esac
12920 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12921 if test -n "$STRIP_FOR_TARGET"; then
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12923 $as_echo "$STRIP_FOR_TARGET" >&6; }
12924 else
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12931 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12934 if test -n "$STRIP_FOR_TARGET"; then
12935 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12936 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12937 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12940 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12941 for ncn_progname in strip; do
12942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12943 set dummy ${ncn_progname}; ac_word=$2
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 if test -n "$STRIP_FOR_TARGET"; then
12950 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12951 else
12952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12955 IFS=$as_save_IFS
12956 test -z "$as_dir" && as_dir=.
12957 for ac_exec_ext in '' $ac_executable_extensions; do
12958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12959 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961 break 2
12963 done
12964 done
12965 IFS=$as_save_IFS
12969 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12970 if test -n "$STRIP_FOR_TARGET"; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12972 $as_echo "$STRIP_FOR_TARGET" >&6; }
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12979 done
12982 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12983 for ncn_progname in strip; do
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12985 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12986 if test -x $with_build_time_tools/${ncn_progname}; then
12987 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12989 $as_echo "yes" >&6; }
12990 break
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12995 done
12998 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12999 for ncn_progname in strip; do
13000 if test -n "$ncn_target_tool_prefix"; then
13001 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13002 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004 $as_echo_n "checking for $ac_word... " >&6; }
13005 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
13007 else
13008 if test -n "$STRIP_FOR_TARGET"; then
13009 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13010 else
13011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13012 for as_dir in $PATH
13014 IFS=$as_save_IFS
13015 test -z "$as_dir" && as_dir=.
13016 for ac_exec_ext in '' $ac_executable_extensions; do
13017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13018 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13020 break 2
13022 done
13023 done
13024 IFS=$as_save_IFS
13028 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13029 if test -n "$STRIP_FOR_TARGET"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13031 $as_echo "$STRIP_FOR_TARGET" >&6; }
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13039 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13041 set dummy ${ncn_progname}; ac_word=$2
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043 $as_echo_n "checking for $ac_word... " >&6; }
13044 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 if test -n "$STRIP_FOR_TARGET"; then
13048 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13049 else
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051 for as_dir in $PATH
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13057 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 break 2
13061 done
13062 done
13063 IFS=$as_save_IFS
13067 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13068 if test -n "$STRIP_FOR_TARGET"; then
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13070 $as_echo "$STRIP_FOR_TARGET" >&6; }
13071 else
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073 $as_echo "no" >&6; }
13078 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13079 done
13082 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13083 set dummy strip
13084 if test $build = $target ; then
13085 STRIP_FOR_TARGET="$2"
13086 else
13087 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13089 else
13090 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13093 else
13094 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13100 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13101 if test -n "$with_build_time_tools"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13103 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13104 if test -x $with_build_time_tools/windres; then
13105 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13106 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13108 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13109 else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 $as_echo "no" >&6; }
13113 elif test $build != $host && test $have_gcc_for_target = yes; then
13114 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13115 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13116 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13119 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13120 # Extract the first word of "windres", so it can be a program name with args.
13121 set dummy windres; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 case $WINDRES_FOR_TARGET in
13128 [\\/]* | ?:[\\/]*)
13129 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133 for as_dir in $gcc_cv_tool_dirs
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13139 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 break 2
13143 done
13144 done
13145 IFS=$as_save_IFS
13148 esac
13150 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13151 if test -n "$WINDRES_FOR_TARGET"; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13153 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13161 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13164 if test -n "$WINDRES_FOR_TARGET"; then
13165 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13166 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13167 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13170 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13171 for ncn_progname in windres; do
13172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13173 set dummy ${ncn_progname}; ac_word=$2
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175 $as_echo_n "checking for $ac_word... " >&6; }
13176 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 if test -n "$WINDRES_FOR_TARGET"; then
13180 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13181 else
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13185 IFS=$as_save_IFS
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13189 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191 break 2
13193 done
13194 done
13195 IFS=$as_save_IFS
13199 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13200 if test -n "$WINDRES_FOR_TARGET"; then
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13202 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205 $as_echo "no" >&6; }
13209 done
13212 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13213 for ncn_progname in windres; do
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13215 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13216 if test -x $with_build_time_tools/${ncn_progname}; then
13217 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13219 $as_echo "yes" >&6; }
13220 break
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13225 done
13228 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13229 for ncn_progname in windres; do
13230 if test -n "$ncn_target_tool_prefix"; then
13231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13232 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 if test -n "$WINDRES_FOR_TARGET"; then
13239 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13240 else
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13252 done
13253 done
13254 IFS=$as_save_IFS
13258 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13259 if test -n "$WINDRES_FOR_TARGET"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13261 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13269 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13271 set dummy ${ncn_progname}; ac_word=$2
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273 $as_echo_n "checking for $ac_word... " >&6; }
13274 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 if test -n "$WINDRES_FOR_TARGET"; then
13278 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13279 else
13280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in $PATH
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
13285 for ac_exec_ext in '' $ac_executable_extensions; do
13286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13287 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13289 break 2
13291 done
13292 done
13293 IFS=$as_save_IFS
13297 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13298 if test -n "$WINDRES_FOR_TARGET"; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13300 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13301 else
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303 $as_echo "no" >&6; }
13308 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13309 done
13312 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13313 set dummy windres
13314 if test $build = $target ; then
13315 WINDRES_FOR_TARGET="$2"
13316 else
13317 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13319 else
13320 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13323 else
13324 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13330 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13331 if test -n "$with_build_time_tools"; then
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13333 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13334 if test -x $with_build_time_tools/windmc; then
13335 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13336 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13338 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13339 else
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13343 elif test $build != $host && test $have_gcc_for_target = yes; then
13344 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13345 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13346 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13349 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13350 # Extract the first word of "windmc", so it can be a program name with args.
13351 set dummy windmc; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 case $WINDMC_FOR_TARGET in
13358 [\\/]* | ?:[\\/]*)
13359 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363 for as_dir in $gcc_cv_tool_dirs
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13369 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 break 2
13373 done
13374 done
13375 IFS=$as_save_IFS
13378 esac
13380 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13381 if test -n "$WINDMC_FOR_TARGET"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13383 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13391 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13394 if test -n "$WINDMC_FOR_TARGET"; then
13395 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13396 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13397 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13400 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13401 for ncn_progname in windmc; do
13402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13403 set dummy ${ncn_progname}; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405 $as_echo_n "checking for $ac_word... " >&6; }
13406 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 if test -n "$WINDMC_FOR_TARGET"; then
13410 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13411 else
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13415 IFS=$as_save_IFS
13416 test -z "$as_dir" && as_dir=.
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421 break 2
13423 done
13424 done
13425 IFS=$as_save_IFS
13429 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13430 if test -n "$WINDMC_FOR_TARGET"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13432 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13433 else
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435 $as_echo "no" >&6; }
13439 done
13442 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13443 for ncn_progname in windmc; do
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13445 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13446 if test -x $with_build_time_tools/${ncn_progname}; then
13447 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449 $as_echo "yes" >&6; }
13450 break
13451 else
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13455 done
13458 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13459 for ncn_progname in windmc; do
13460 if test -n "$ncn_target_tool_prefix"; then
13461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13462 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464 $as_echo_n "checking for $ac_word... " >&6; }
13465 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 if test -n "$WINDMC_FOR_TARGET"; then
13469 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13470 else
13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472 for as_dir in $PATH
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13478 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13480 break 2
13482 done
13483 done
13484 IFS=$as_save_IFS
13488 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13489 if test -n "$WINDMC_FOR_TARGET"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13491 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13499 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13501 set dummy ${ncn_progname}; ac_word=$2
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13503 $as_echo_n "checking for $ac_word... " >&6; }
13504 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13505 $as_echo_n "(cached) " >&6
13506 else
13507 if test -n "$WINDMC_FOR_TARGET"; then
13508 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13509 else
13510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13511 for as_dir in $PATH
13513 IFS=$as_save_IFS
13514 test -z "$as_dir" && as_dir=.
13515 for ac_exec_ext in '' $ac_executable_extensions; do
13516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13517 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13519 break 2
13521 done
13522 done
13523 IFS=$as_save_IFS
13527 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13528 if test -n "$WINDMC_FOR_TARGET"; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13530 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13531 else
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13538 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13539 done
13542 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13543 set dummy windmc
13544 if test $build = $target ; then
13545 WINDMC_FOR_TARGET="$2"
13546 else
13547 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13549 else
13550 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13553 else
13554 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13558 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13561 $as_echo_n "checking where to find the target ar... " >&6; }
13562 if test "x${build}" != "x${host}" ; then
13563 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
13565 ac_dir=`dirname $AR_FOR_TARGET`
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13567 $as_echo "pre-installed in $ac_dir" >&6; }
13568 else
13569 # Canadian cross, just use what we found
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571 $as_echo "pre-installed" >&6; }
13573 else
13574 ok=yes
13575 case " ${configdirs} " in
13576 *" binutils "*) ;;
13577 *) ok=no ;;
13578 esac
13580 if test $ok = yes; then
13581 # An in-tree tool is available and we can use it
13582 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13584 $as_echo "just compiled" >&6; }
13585 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13586 # We already found the complete path
13587 ac_dir=`dirname $AR_FOR_TARGET`
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13589 $as_echo "pre-installed in $ac_dir" >&6; }
13590 elif test "x$target" = "x$host"; then
13591 # We can use an host tool
13592 AR_FOR_TARGET='$(AR)'
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13594 $as_echo "host tool" >&6; }
13595 else
13596 # We need a cross tool
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13598 $as_echo "pre-installed" >&6; }
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13603 $as_echo_n "checking where to find the target as... " >&6; }
13604 if test "x${build}" != "x${host}" ; then
13605 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13606 # We already found the complete path
13607 ac_dir=`dirname $AS_FOR_TARGET`
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13609 $as_echo "pre-installed in $ac_dir" >&6; }
13610 else
13611 # Canadian cross, just use what we found
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613 $as_echo "pre-installed" >&6; }
13615 else
13616 ok=yes
13617 case " ${configdirs} " in
13618 *" gas "*) ;;
13619 *) ok=no ;;
13620 esac
13622 if test $ok = yes; then
13623 # An in-tree tool is available and we can use it
13624 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13626 $as_echo "just compiled" >&6; }
13627 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13628 # We already found the complete path
13629 ac_dir=`dirname $AS_FOR_TARGET`
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13631 $as_echo "pre-installed in $ac_dir" >&6; }
13632 elif test "x$target" = "x$host"; then
13633 # We can use an host tool
13634 AS_FOR_TARGET='$(AS)'
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13636 $as_echo "host tool" >&6; }
13637 else
13638 # We need a cross tool
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13640 $as_echo "pre-installed" >&6; }
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13645 $as_echo_n "checking where to find the target cc... " >&6; }
13646 if test "x${build}" != "x${host}" ; then
13647 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13648 # We already found the complete path
13649 ac_dir=`dirname $CC_FOR_TARGET`
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13651 $as_echo "pre-installed in $ac_dir" >&6; }
13652 else
13653 # Canadian cross, just use what we found
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13655 $as_echo "pre-installed" >&6; }
13657 else
13658 ok=yes
13659 case " ${configdirs} " in
13660 *" gcc "*) ;;
13661 *) ok=no ;;
13662 esac
13664 if test $ok = yes; then
13665 # An in-tree tool is available and we can use it
13666 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13668 $as_echo "just compiled" >&6; }
13669 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13670 # We already found the complete path
13671 ac_dir=`dirname $CC_FOR_TARGET`
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13673 $as_echo "pre-installed in $ac_dir" >&6; }
13674 elif test "x$target" = "x$host"; then
13675 # We can use an host tool
13676 CC_FOR_TARGET='$(CC)'
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13678 $as_echo "host tool" >&6; }
13679 else
13680 # We need a cross tool
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13682 $as_echo "pre-installed" >&6; }
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13687 $as_echo_n "checking where to find the target c++... " >&6; }
13688 if test "x${build}" != "x${host}" ; then
13689 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13690 # We already found the complete path
13691 ac_dir=`dirname $CXX_FOR_TARGET`
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13693 $as_echo "pre-installed in $ac_dir" >&6; }
13694 else
13695 # Canadian cross, just use what we found
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697 $as_echo "pre-installed" >&6; }
13699 else
13700 ok=yes
13701 case " ${configdirs} " in
13702 *" gcc "*) ;;
13703 *) ok=no ;;
13704 esac
13705 case ,${enable_languages}, in
13706 *,c++,*) ;;
13707 *) ok=no ;;
13708 esac
13709 if test $ok = yes; then
13710 # An in-tree tool is available and we can use it
13711 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'
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13713 $as_echo "just compiled" >&6; }
13714 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13715 # We already found the complete path
13716 ac_dir=`dirname $CXX_FOR_TARGET`
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13718 $as_echo "pre-installed in $ac_dir" >&6; }
13719 elif test "x$target" = "x$host"; then
13720 # We can use an host tool
13721 CXX_FOR_TARGET='$(CXX)'
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13723 $as_echo "host tool" >&6; }
13724 else
13725 # We need a cross tool
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727 $as_echo "pre-installed" >&6; }
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13732 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13733 if test "x${build}" != "x${host}" ; then
13734 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
13736 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738 $as_echo "pre-installed in $ac_dir" >&6; }
13739 else
13740 # Canadian cross, just use what we found
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13744 else
13745 ok=yes
13746 case " ${configdirs} " in
13747 *" gcc "*) ;;
13748 *) ok=no ;;
13749 esac
13750 case ,${enable_languages}, in
13751 *,c++,*) ;;
13752 *) ok=no ;;
13753 esac
13754 if test $ok = yes; then
13755 # An in-tree tool is available and we can use it
13756 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'
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13758 $as_echo "just compiled" >&6; }
13759 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13760 # We already found the complete path
13761 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13763 $as_echo "pre-installed in $ac_dir" >&6; }
13764 elif test "x$target" = "x$host"; then
13765 # We can use an host tool
13766 RAW_CXX_FOR_TARGET='$(CXX)'
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13768 $as_echo "host tool" >&6; }
13769 else
13770 # We need a cross tool
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772 $as_echo "pre-installed" >&6; }
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13777 $as_echo_n "checking where to find the target dlltool... " >&6; }
13778 if test "x${build}" != "x${host}" ; then
13779 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13780 # We already found the complete path
13781 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13783 $as_echo "pre-installed in $ac_dir" >&6; }
13784 else
13785 # Canadian cross, just use what we found
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13789 else
13790 ok=yes
13791 case " ${configdirs} " in
13792 *" binutils "*) ;;
13793 *) ok=no ;;
13794 esac
13796 if test $ok = yes; then
13797 # An in-tree tool is available and we can use it
13798 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13800 $as_echo "just compiled" >&6; }
13801 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13802 # We already found the complete path
13803 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13805 $as_echo "pre-installed in $ac_dir" >&6; }
13806 elif test "x$target" = "x$host"; then
13807 # We can use an host tool
13808 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13810 $as_echo "host tool" >&6; }
13811 else
13812 # We need a cross tool
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13814 $as_echo "pre-installed" >&6; }
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13819 $as_echo_n "checking where to find the target gcc... " >&6; }
13820 if test "x${build}" != "x${host}" ; then
13821 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13822 # We already found the complete path
13823 ac_dir=`dirname $GCC_FOR_TARGET`
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13825 $as_echo "pre-installed in $ac_dir" >&6; }
13826 else
13827 # Canadian cross, just use what we found
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13829 $as_echo "pre-installed" >&6; }
13831 else
13832 ok=yes
13833 case " ${configdirs} " in
13834 *" gcc "*) ;;
13835 *) ok=no ;;
13836 esac
13838 if test $ok = yes; then
13839 # An in-tree tool is available and we can use it
13840 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13842 $as_echo "just compiled" >&6; }
13843 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13844 # We already found the complete path
13845 ac_dir=`dirname $GCC_FOR_TARGET`
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13847 $as_echo "pre-installed in $ac_dir" >&6; }
13848 elif test "x$target" = "x$host"; then
13849 # We can use an host tool
13850 GCC_FOR_TARGET='$()'
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13852 $as_echo "host tool" >&6; }
13853 else
13854 # We need a cross tool
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13856 $as_echo "pre-installed" >&6; }
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13861 $as_echo_n "checking where to find the target gcj... " >&6; }
13862 if test "x${build}" != "x${host}" ; then
13863 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13864 # We already found the complete path
13865 ac_dir=`dirname $GCJ_FOR_TARGET`
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13867 $as_echo "pre-installed in $ac_dir" >&6; }
13868 else
13869 # Canadian cross, just use what we found
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13871 $as_echo "pre-installed" >&6; }
13873 else
13874 ok=yes
13875 case " ${configdirs} " in
13876 *" gcc "*) ;;
13877 *) ok=no ;;
13878 esac
13879 case ,${enable_languages}, in
13880 *,java,*) ;;
13881 *) ok=no ;;
13882 esac
13883 if test $ok = yes; then
13884 # An in-tree tool is available and we can use it
13885 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13887 $as_echo "just compiled" >&6; }
13888 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13889 # We already found the complete path
13890 ac_dir=`dirname $GCJ_FOR_TARGET`
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13892 $as_echo "pre-installed in $ac_dir" >&6; }
13893 elif test "x$target" = "x$host"; then
13894 # We can use an host tool
13895 GCJ_FOR_TARGET='$(GCJ)'
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13897 $as_echo "host tool" >&6; }
13898 else
13899 # We need a cross tool
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901 $as_echo "pre-installed" >&6; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13906 $as_echo_n "checking where to find the target gfortran... " >&6; }
13907 if test "x${build}" != "x${host}" ; then
13908 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
13910 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912 $as_echo "pre-installed in $ac_dir" >&6; }
13913 else
13914 # Canadian cross, just use what we found
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916 $as_echo "pre-installed" >&6; }
13918 else
13919 ok=yes
13920 case " ${configdirs} " in
13921 *" gcc "*) ;;
13922 *) ok=no ;;
13923 esac
13924 case ,${enable_languages}, in
13925 *,fortran,*) ;;
13926 *) ok=no ;;
13927 esac
13928 if test $ok = yes; then
13929 # An in-tree tool is available and we can use it
13930 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13932 $as_echo "just compiled" >&6; }
13933 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13934 # We already found the complete path
13935 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13937 $as_echo "pre-installed in $ac_dir" >&6; }
13938 elif test "x$target" = "x$host"; then
13939 # We can use an host tool
13940 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13942 $as_echo "host tool" >&6; }
13943 else
13944 # We need a cross tool
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946 $as_echo "pre-installed" >&6; }
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13951 $as_echo_n "checking where to find the target gccgo... " >&6; }
13952 if test "x${build}" != "x${host}" ; then
13953 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13954 # We already found the complete path
13955 ac_dir=`dirname $GOC_FOR_TARGET`
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13957 $as_echo "pre-installed in $ac_dir" >&6; }
13958 else
13959 # Canadian cross, just use what we found
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961 $as_echo "pre-installed" >&6; }
13963 else
13964 ok=yes
13965 case " ${configdirs} " in
13966 *" gcc "*) ;;
13967 *) ok=no ;;
13968 esac
13969 case ,${enable_languages}, in
13970 *,go,*) ;;
13971 *) ok=no ;;
13972 esac
13973 if test $ok = yes; then
13974 # An in-tree tool is available and we can use it
13975 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13977 $as_echo "just compiled" >&6; }
13978 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
13980 ac_dir=`dirname $GOC_FOR_TARGET`
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982 $as_echo "pre-installed in $ac_dir" >&6; }
13983 elif test "x$target" = "x$host"; then
13984 # We can use an host tool
13985 GOC_FOR_TARGET='$(GOC)'
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13987 $as_echo "host tool" >&6; }
13988 else
13989 # We need a cross tool
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991 $as_echo "pre-installed" >&6; }
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13996 $as_echo_n "checking where to find the target ld... " >&6; }
13997 if test "x${build}" != "x${host}" ; then
13998 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13999 # We already found the complete path
14000 ac_dir=`dirname $LD_FOR_TARGET`
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14002 $as_echo "pre-installed in $ac_dir" >&6; }
14003 else
14004 # Canadian cross, just use what we found
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14008 else
14009 ok=yes
14010 case " ${configdirs} " in
14011 *" ld "*) ;;
14012 *) ok=no ;;
14013 esac
14015 if test $ok = yes; then
14016 # An in-tree tool is available and we can use it
14017 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14019 $as_echo "just compiled" >&6; }
14020 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14021 # We already found the complete path
14022 ac_dir=`dirname $LD_FOR_TARGET`
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14024 $as_echo "pre-installed in $ac_dir" >&6; }
14025 elif test "x$target" = "x$host"; then
14026 # We can use an host tool
14027 LD_FOR_TARGET='$(LD)'
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14029 $as_echo "host tool" >&6; }
14030 else
14031 # We need a cross tool
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14033 $as_echo "pre-installed" >&6; }
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14038 $as_echo_n "checking where to find the target lipo... " >&6; }
14039 if test "x${build}" != "x${host}" ; then
14040 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14041 # We already found the complete path
14042 ac_dir=`dirname $LIPO_FOR_TARGET`
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14044 $as_echo "pre-installed in $ac_dir" >&6; }
14045 else
14046 # Canadian cross, just use what we found
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048 $as_echo "pre-installed" >&6; }
14050 else
14051 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
14053 ac_dir=`dirname $LIPO_FOR_TARGET`
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055 $as_echo "pre-installed in $ac_dir" >&6; }
14056 elif test "x$target" = "x$host"; then
14057 # We can use an host tool
14058 LIPO_FOR_TARGET='$(LIPO)'
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14060 $as_echo "host tool" >&6; }
14061 else
14062 # We need a cross tool
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064 $as_echo "pre-installed" >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14069 $as_echo_n "checking where to find the target nm... " >&6; }
14070 if test "x${build}" != "x${host}" ; then
14071 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
14073 ac_dir=`dirname $NM_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 else
14077 # Canadian cross, just use what we found
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079 $as_echo "pre-installed" >&6; }
14081 else
14082 ok=yes
14083 case " ${configdirs} " in
14084 *" binutils "*) ;;
14085 *) ok=no ;;
14086 esac
14088 if test $ok = yes; then
14089 # An in-tree tool is available and we can use it
14090 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14092 $as_echo "just compiled" >&6; }
14093 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
14095 ac_dir=`dirname $NM_FOR_TARGET`
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097 $as_echo "pre-installed in $ac_dir" >&6; }
14098 elif test "x$target" = "x$host"; then
14099 # We can use an host tool
14100 NM_FOR_TARGET='$(NM)'
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14102 $as_echo "host tool" >&6; }
14103 else
14104 # We need a cross tool
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14106 $as_echo "pre-installed" >&6; }
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14111 $as_echo_n "checking where to find the target objdump... " >&6; }
14112 if test "x${build}" != "x${host}" ; then
14113 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14114 # We already found the complete path
14115 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14117 $as_echo "pre-installed in $ac_dir" >&6; }
14118 else
14119 # Canadian cross, just use what we found
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121 $as_echo "pre-installed" >&6; }
14123 else
14124 ok=yes
14125 case " ${configdirs} " in
14126 *" binutils "*) ;;
14127 *) ok=no ;;
14128 esac
14130 if test $ok = yes; then
14131 # An in-tree tool is available and we can use it
14132 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14134 $as_echo "just compiled" >&6; }
14135 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14136 # We already found the complete path
14137 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14139 $as_echo "pre-installed in $ac_dir" >&6; }
14140 elif test "x$target" = "x$host"; then
14141 # We can use an host tool
14142 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14144 $as_echo "host tool" >&6; }
14145 else
14146 # We need a cross tool
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14148 $as_echo "pre-installed" >&6; }
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14153 $as_echo_n "checking where to find the target ranlib... " >&6; }
14154 if test "x${build}" != "x${host}" ; then
14155 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14156 # We already found the complete path
14157 ac_dir=`dirname $RANLIB_FOR_TARGET`
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14159 $as_echo "pre-installed in $ac_dir" >&6; }
14160 else
14161 # Canadian cross, just use what we found
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163 $as_echo "pre-installed" >&6; }
14165 else
14166 ok=yes
14167 case " ${configdirs} " in
14168 *" binutils "*) ;;
14169 *) ok=no ;;
14170 esac
14172 if test $ok = yes; then
14173 # An in-tree tool is available and we can use it
14174 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14176 $as_echo "just compiled" >&6; }
14177 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14178 # We already found the complete path
14179 ac_dir=`dirname $RANLIB_FOR_TARGET`
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14181 $as_echo "pre-installed in $ac_dir" >&6; }
14182 elif test "x$target" = "x$host"; then
14183 # We can use an host tool
14184 RANLIB_FOR_TARGET='$(RANLIB)'
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14186 $as_echo "host tool" >&6; }
14187 else
14188 # We need a cross tool
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14190 $as_echo "pre-installed" >&6; }
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14195 $as_echo_n "checking where to find the target readelf... " >&6; }
14196 if test "x${build}" != "x${host}" ; then
14197 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14198 # We already found the complete path
14199 ac_dir=`dirname $READELF_FOR_TARGET`
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14201 $as_echo "pre-installed in $ac_dir" >&6; }
14202 else
14203 # Canadian cross, just use what we found
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205 $as_echo "pre-installed" >&6; }
14207 else
14208 ok=yes
14209 case " ${configdirs} " in
14210 *" binutils "*) ;;
14211 *) ok=no ;;
14212 esac
14214 if test $ok = yes; then
14215 # An in-tree tool is available and we can use it
14216 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14218 $as_echo "just compiled" >&6; }
14219 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
14221 ac_dir=`dirname $READELF_FOR_TARGET`
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14223 $as_echo "pre-installed in $ac_dir" >&6; }
14224 elif test "x$target" = "x$host"; then
14225 # We can use an host tool
14226 READELF_FOR_TARGET='$(READELF)'
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14228 $as_echo "host tool" >&6; }
14229 else
14230 # We need a cross tool
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14232 $as_echo "pre-installed" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14237 $as_echo_n "checking where to find the target strip... " >&6; }
14238 if test "x${build}" != "x${host}" ; then
14239 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14240 # We already found the complete path
14241 ac_dir=`dirname $STRIP_FOR_TARGET`
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14243 $as_echo "pre-installed in $ac_dir" >&6; }
14244 else
14245 # Canadian cross, just use what we found
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14249 else
14250 ok=yes
14251 case " ${configdirs} " in
14252 *" binutils "*) ;;
14253 *) ok=no ;;
14254 esac
14256 if test $ok = yes; then
14257 # An in-tree tool is available and we can use it
14258 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14260 $as_echo "just compiled" >&6; }
14261 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14262 # We already found the complete path
14263 ac_dir=`dirname $STRIP_FOR_TARGET`
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14265 $as_echo "pre-installed in $ac_dir" >&6; }
14266 elif test "x$target" = "x$host"; then
14267 # We can use an host tool
14268 STRIP_FOR_TARGET='$(STRIP)'
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14270 $as_echo "host tool" >&6; }
14271 else
14272 # We need a cross tool
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14274 $as_echo "pre-installed" >&6; }
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14279 $as_echo_n "checking where to find the target windres... " >&6; }
14280 if test "x${build}" != "x${host}" ; then
14281 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14282 # We already found the complete path
14283 ac_dir=`dirname $WINDRES_FOR_TARGET`
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14285 $as_echo "pre-installed in $ac_dir" >&6; }
14286 else
14287 # Canadian cross, just use what we found
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289 $as_echo "pre-installed" >&6; }
14291 else
14292 ok=yes
14293 case " ${configdirs} " in
14294 *" binutils "*) ;;
14295 *) ok=no ;;
14296 esac
14298 if test $ok = yes; then
14299 # An in-tree tool is available and we can use it
14300 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14302 $as_echo "just compiled" >&6; }
14303 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14304 # We already found the complete path
14305 ac_dir=`dirname $WINDRES_FOR_TARGET`
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14307 $as_echo "pre-installed in $ac_dir" >&6; }
14308 elif test "x$target" = "x$host"; then
14309 # We can use an host tool
14310 WINDRES_FOR_TARGET='$(WINDRES)'
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14312 $as_echo "host tool" >&6; }
14313 else
14314 # We need a cross tool
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14316 $as_echo "pre-installed" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14321 $as_echo_n "checking where to find the target windmc... " >&6; }
14322 if test "x${build}" != "x${host}" ; then
14323 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14324 # We already found the complete path
14325 ac_dir=`dirname $WINDMC_FOR_TARGET`
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14327 $as_echo "pre-installed in $ac_dir" >&6; }
14328 else
14329 # Canadian cross, just use what we found
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331 $as_echo "pre-installed" >&6; }
14333 else
14334 ok=yes
14335 case " ${configdirs} " in
14336 *" binutils "*) ;;
14337 *) ok=no ;;
14338 esac
14340 if test $ok = yes; then
14341 # An in-tree tool is available and we can use it
14342 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14344 $as_echo "just compiled" >&6; }
14345 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14346 # We already found the complete path
14347 ac_dir=`dirname $WINDMC_FOR_TARGET`
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349 $as_echo "pre-installed in $ac_dir" >&6; }
14350 elif test "x$target" = "x$host"; then
14351 # We can use an host tool
14352 WINDMC_FOR_TARGET='$(WINDMC)'
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14354 $as_echo "host tool" >&6; }
14355 else
14356 # We need a cross tool
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14358 $as_echo "pre-installed" >&6; }
14366 # Certain tools may need extra flags.
14367 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14368 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14369 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14371 # When building target libraries, except in a Canadian cross, we use
14372 # the same toolchain as the compiler we just built.
14373 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14374 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14375 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14376 if test $host = $build; then
14377 case " $configdirs " in
14378 *" gcc "*)
14379 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14380 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14381 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14383 esac
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14391 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14392 # Check whether --enable-maintainer-mode was given.
14393 if test "${enable_maintainer_mode+set}" = set; then :
14394 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14395 else
14396 USE_MAINTAINER_MODE=no
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14400 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14403 if test "$USE_MAINTAINER_MODE" = yes; then
14404 MAINTAINER_MODE_TRUE=
14405 MAINTAINER_MODE_FALSE='#'
14406 else
14407 MAINTAINER_MODE_TRUE='#'
14408 MAINTAINER_MODE_FALSE=
14410 MAINT=$MAINTAINER_MODE_TRUE
14412 # ---------------------
14413 # GCC bootstrap support
14414 # ---------------------
14416 # Stage specific cflags for build.
14417 stage1_cflags="-g"
14418 case $build in
14419 vax-*-*)
14420 case ${GCC} in
14421 yes) stage1_cflags="-g -Wa,-J" ;;
14422 *) stage1_cflags="-g -J" ;;
14423 esac ;;
14424 esac
14428 # Enable --enable-checking in stage1 of the compiler.
14429 # Check whether --enable-stage1-checking was given.
14430 if test "${enable_stage1_checking+set}" = set; then :
14431 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14432 else
14433 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14434 stage1_checking=--enable-checking=yes,types
14435 else
14436 stage1_checking=--enable-checking=$enable_checking,types
14442 # Enable -Werror in bootstrap stage2 and later.
14443 # Check whether --enable-werror was given.
14444 if test "${enable_werror+set}" = set; then :
14445 enableval=$enable_werror;
14446 else
14447 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14448 enable_werror=yes
14449 else
14450 enable_werror=no
14454 case ${enable_werror} in
14455 yes) stage2_werror_flag="--enable-werror-always" ;;
14456 *) stage2_werror_flag="" ;;
14457 esac
14460 # Enable --enable-host-shared.
14461 # Check whether --enable-host-shared was given.
14462 if test "${enable_host_shared+set}" = set; then :
14463 enableval=$enable_host_shared; host_shared=$enableval
14464 else
14465 host_shared=no
14470 # Specify what files to not compare during bootstrap.
14472 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14473 case "$target" in
14474 hppa*64*-*-hpux*) ;;
14475 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14476 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14477 esac
14480 ac_config_files="$ac_config_files Makefile"
14482 cat >confcache <<\_ACEOF
14483 # This file is a shell script that caches the results of configure
14484 # tests run on this system so they can be shared between configure
14485 # scripts and configure runs, see configure's option --config-cache.
14486 # It is not useful on other systems. If it contains results you don't
14487 # want to keep, you may remove or edit it.
14489 # config.status only pays attention to the cache file if you give it
14490 # the --recheck option to rerun configure.
14492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14494 # following values.
14496 _ACEOF
14498 # The following way of writing the cache mishandles newlines in values,
14499 # but we know of no workaround that is simple, portable, and efficient.
14500 # So, we kill variables containing newlines.
14501 # Ultrix sh set writes to stderr and can't be redirected directly,
14502 # and sets the high bit in the cache file unless we assign to the vars.
14504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14505 eval ac_val=\$$ac_var
14506 case $ac_val in #(
14507 *${as_nl}*)
14508 case $ac_var in #(
14509 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14511 esac
14512 case $ac_var in #(
14513 _ | IFS | as_nl) ;; #(
14514 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14515 *) { eval $ac_var=; unset $ac_var;} ;;
14516 esac ;;
14517 esac
14518 done
14520 (set) 2>&1 |
14521 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14522 *${as_nl}ac_space=\ *)
14523 # `set' does not quote correctly, so add quotes: double-quote
14524 # substitution turns \\\\ into \\, and sed turns \\ into \.
14525 sed -n \
14526 "s/'/'\\\\''/g;
14527 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14528 ;; #(
14530 # `set' quotes correctly as required by POSIX, so do not add quotes.
14531 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14533 esac |
14534 sort
14536 sed '
14537 /^ac_cv_env_/b end
14538 t clear
14539 :clear
14540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14541 t end
14542 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14543 :end' >>confcache
14544 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14545 if test -w "$cache_file"; then
14546 test "x$cache_file" != "x/dev/null" &&
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14548 $as_echo "$as_me: updating cache $cache_file" >&6;}
14549 cat confcache >$cache_file
14550 else
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14555 rm -f confcache
14557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14558 # Let make expand exec_prefix.
14559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14561 # Transform confdefs.h into DEFS.
14562 # Protect against shell expansion while executing Makefile rules.
14563 # Protect against Makefile macro expansion.
14565 # If the first sed substitution is executed (which looks for macros that
14566 # take arguments), then branch to the quote section. Otherwise,
14567 # look for a macro that doesn't take arguments.
14568 ac_script='
14569 :mline
14570 /\\$/{
14572 s,\\\n,,
14573 b mline
14575 t clear
14576 :clear
14577 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14578 t quote
14579 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14580 t quote
14581 b any
14582 :quote
14583 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14584 s/\[/\\&/g
14585 s/\]/\\&/g
14586 s/\$/$$/g
14588 :any
14591 s/^\n//
14592 s/\n/ /g
14596 DEFS=`sed -n "$ac_script" confdefs.h`
14599 ac_libobjs=
14600 ac_ltlibobjs=
14601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14602 # 1. Remove the extension, and $U if already installed.
14603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14606 # will be set to the directory where LIBOBJS objects are built.
14607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14609 done
14610 LIBOBJS=$ac_libobjs
14612 LTLIBOBJS=$ac_ltlibobjs
14616 : ${CONFIG_STATUS=./config.status}
14617 ac_write_fail=0
14618 ac_clean_files_save=$ac_clean_files
14619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14622 as_write_fail=0
14623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14624 #! $SHELL
14625 # Generated by $as_me.
14626 # Run this file to recreate the current configuration.
14627 # Compiler output produced by configure, useful for debugging
14628 # configure, is in config.log if it exists.
14630 debug=false
14631 ac_cs_recheck=false
14632 ac_cs_silent=false
14634 SHELL=\${CONFIG_SHELL-$SHELL}
14635 export SHELL
14636 _ASEOF
14637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14638 ## -------------------- ##
14639 ## M4sh Initialization. ##
14640 ## -------------------- ##
14642 # Be more Bourne compatible
14643 DUALCASE=1; export DUALCASE # for MKS sh
14644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14645 emulate sh
14646 NULLCMD=:
14647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14648 # is contrary to our usage. Disable this feature.
14649 alias -g '${1+"$@"}'='"$@"'
14650 setopt NO_GLOB_SUBST
14651 else
14652 case `(set -o) 2>/dev/null` in #(
14653 *posix*) :
14654 set -o posix ;; #(
14655 *) :
14657 esac
14661 as_nl='
14663 export as_nl
14664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14668 # Prefer a ksh shell builtin over an external printf program on Solaris,
14669 # but without wasting forks for bash or zsh.
14670 if test -z "$BASH_VERSION$ZSH_VERSION" \
14671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14672 as_echo='print -r --'
14673 as_echo_n='print -rn --'
14674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14675 as_echo='printf %s\n'
14676 as_echo_n='printf %s'
14677 else
14678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14680 as_echo_n='/usr/ucb/echo -n'
14681 else
14682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14683 as_echo_n_body='eval
14684 arg=$1;
14685 case $arg in #(
14686 *"$as_nl"*)
14687 expr "X$arg" : "X\\(.*\\)$as_nl";
14688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14689 esac;
14690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14692 export as_echo_n_body
14693 as_echo_n='sh -c $as_echo_n_body as_echo'
14695 export as_echo_body
14696 as_echo='sh -c $as_echo_body as_echo'
14699 # The user is always right.
14700 if test "${PATH_SEPARATOR+set}" != set; then
14701 PATH_SEPARATOR=:
14702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14704 PATH_SEPARATOR=';'
14709 # IFS
14710 # We need space, tab and new line, in precisely that order. Quoting is
14711 # there to prevent editors from complaining about space-tab.
14712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14713 # splitting by setting IFS to empty value.)
14714 IFS=" "" $as_nl"
14716 # Find who we are. Look in the path if we contain no directory separator.
14717 case $0 in #((
14718 *[\\/]* ) as_myself=$0 ;;
14719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $PATH
14722 IFS=$as_save_IFS
14723 test -z "$as_dir" && as_dir=.
14724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14725 done
14726 IFS=$as_save_IFS
14729 esac
14730 # We did not find ourselves, most probably we were run as `sh COMMAND'
14731 # in which case we are not to be found in the path.
14732 if test "x$as_myself" = x; then
14733 as_myself=$0
14735 if test ! -f "$as_myself"; then
14736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14737 exit 1
14740 # Unset variables that we do not need and which cause bugs (e.g. in
14741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14742 # suppresses any "Segmentation fault" message there. '((' could
14743 # trigger a bug in pdksh 5.2.14.
14744 for as_var in BASH_ENV ENV MAIL MAILPATH
14745 do eval test x\${$as_var+set} = xset \
14746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14747 done
14748 PS1='$ '
14749 PS2='> '
14750 PS4='+ '
14752 # NLS nuisances.
14753 LC_ALL=C
14754 export LC_ALL
14755 LANGUAGE=C
14756 export LANGUAGE
14758 # CDPATH.
14759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14762 # as_fn_error ERROR [LINENO LOG_FD]
14763 # ---------------------------------
14764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14766 # script with status $?, using 1 if that was 0.
14767 as_fn_error ()
14769 as_status=$?; test $as_status -eq 0 && as_status=1
14770 if test "$3"; then
14771 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14774 $as_echo "$as_me: error: $1" >&2
14775 as_fn_exit $as_status
14776 } # as_fn_error
14779 # as_fn_set_status STATUS
14780 # -----------------------
14781 # Set $? to STATUS, without forking.
14782 as_fn_set_status ()
14784 return $1
14785 } # as_fn_set_status
14787 # as_fn_exit STATUS
14788 # -----------------
14789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14790 as_fn_exit ()
14792 set +e
14793 as_fn_set_status $1
14794 exit $1
14795 } # as_fn_exit
14797 # as_fn_unset VAR
14798 # ---------------
14799 # Portably unset VAR.
14800 as_fn_unset ()
14802 { eval $1=; unset $1;}
14804 as_unset=as_fn_unset
14805 # as_fn_append VAR VALUE
14806 # ----------------------
14807 # Append the text in VALUE to the end of the definition contained in VAR. Take
14808 # advantage of any shell optimizations that allow amortized linear growth over
14809 # repeated appends, instead of the typical quadratic growth present in naive
14810 # implementations.
14811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14812 eval 'as_fn_append ()
14814 eval $1+=\$2
14816 else
14817 as_fn_append ()
14819 eval $1=\$$1\$2
14821 fi # as_fn_append
14823 # as_fn_arith ARG...
14824 # ------------------
14825 # Perform arithmetic evaluation on the ARGs, and store the result in the
14826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14827 # must be portable across $(()) and expr.
14828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14829 eval 'as_fn_arith ()
14831 as_val=$(( $* ))
14833 else
14834 as_fn_arith ()
14836 as_val=`expr "$@" || test $? -eq 1`
14838 fi # as_fn_arith
14841 if expr a : '\(a\)' >/dev/null 2>&1 &&
14842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14843 as_expr=expr
14844 else
14845 as_expr=false
14848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14849 as_basename=basename
14850 else
14851 as_basename=false
14854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14855 as_dirname=dirname
14856 else
14857 as_dirname=false
14860 as_me=`$as_basename -- "$0" ||
14861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14862 X"$0" : 'X\(//\)$' \| \
14863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14864 $as_echo X/"$0" |
14865 sed '/^.*\/\([^/][^/]*\)\/*$/{
14866 s//\1/
14869 /^X\/\(\/\/\)$/{
14870 s//\1/
14873 /^X\/\(\/\).*/{
14874 s//\1/
14877 s/.*/./; q'`
14879 # Avoid depending upon Character Ranges.
14880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14883 as_cr_digits='0123456789'
14884 as_cr_alnum=$as_cr_Letters$as_cr_digits
14886 ECHO_C= ECHO_N= ECHO_T=
14887 case `echo -n x` in #(((((
14888 -n*)
14889 case `echo 'xy\c'` in
14890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14891 xy) ECHO_C='\c';;
14892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14893 ECHO_T=' ';;
14894 esac;;
14896 ECHO_N='-n';;
14897 esac
14899 rm -f conf$$ conf$$.exe conf$$.file
14900 if test -d conf$$.dir; then
14901 rm -f conf$$.dir/conf$$.file
14902 else
14903 rm -f conf$$.dir
14904 mkdir conf$$.dir 2>/dev/null
14906 if (echo >conf$$.file) 2>/dev/null; then
14907 if ln -s conf$$.file conf$$ 2>/dev/null; then
14908 as_ln_s='ln -s'
14909 # ... but there are two gotchas:
14910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14912 # In both cases, we have to default to `cp -p'.
14913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14914 as_ln_s='cp -p'
14915 elif ln conf$$.file conf$$ 2>/dev/null; then
14916 as_ln_s=ln
14917 else
14918 as_ln_s='cp -p'
14920 else
14921 as_ln_s='cp -p'
14923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14924 rmdir conf$$.dir 2>/dev/null
14927 # as_fn_mkdir_p
14928 # -------------
14929 # Create "$as_dir" as a directory, including parents if necessary.
14930 as_fn_mkdir_p ()
14933 case $as_dir in #(
14934 -*) as_dir=./$as_dir;;
14935 esac
14936 test -d "$as_dir" || eval $as_mkdir_p || {
14937 as_dirs=
14938 while :; do
14939 case $as_dir in #(
14940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14941 *) as_qdir=$as_dir;;
14942 esac
14943 as_dirs="'$as_qdir' $as_dirs"
14944 as_dir=`$as_dirname -- "$as_dir" ||
14945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14946 X"$as_dir" : 'X\(//\)[^/]' \| \
14947 X"$as_dir" : 'X\(//\)$' \| \
14948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14949 $as_echo X"$as_dir" |
14950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14951 s//\1/
14954 /^X\(\/\/\)[^/].*/{
14955 s//\1/
14958 /^X\(\/\/\)$/{
14959 s//\1/
14962 /^X\(\/\).*/{
14963 s//\1/
14966 s/.*/./; q'`
14967 test -d "$as_dir" && break
14968 done
14969 test -z "$as_dirs" || eval "mkdir $as_dirs"
14970 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14973 } # as_fn_mkdir_p
14974 if mkdir -p . 2>/dev/null; then
14975 as_mkdir_p='mkdir -p "$as_dir"'
14976 else
14977 test -d ./-p && rmdir ./-p
14978 as_mkdir_p=false
14981 if test -x / >/dev/null 2>&1; then
14982 as_test_x='test -x'
14983 else
14984 if ls -dL / >/dev/null 2>&1; then
14985 as_ls_L_option=L
14986 else
14987 as_ls_L_option=
14989 as_test_x='
14990 eval sh -c '\''
14991 if test -d "$1"; then
14992 test -d "$1/.";
14993 else
14994 case $1 in #(
14995 -*)set "./$1";;
14996 esac;
14997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14998 ???[sx]*):;;*)false;;esac;fi
14999 '\'' sh
15002 as_executable_p=$as_test_x
15004 # Sed expression to map a string onto a valid CPP name.
15005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15007 # Sed expression to map a string onto a valid variable name.
15008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15011 exec 6>&1
15012 ## ----------------------------------- ##
15013 ## Main body of $CONFIG_STATUS script. ##
15014 ## ----------------------------------- ##
15015 _ASEOF
15016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15019 # Save the log message, to keep $0 and so on meaningful, and to
15020 # report actual input values of CONFIG_FILES etc. instead of their
15021 # values after options handling.
15022 ac_log="
15023 This file was extended by $as_me, which was
15024 generated by GNU Autoconf 2.64. Invocation command line was
15026 CONFIG_FILES = $CONFIG_FILES
15027 CONFIG_HEADERS = $CONFIG_HEADERS
15028 CONFIG_LINKS = $CONFIG_LINKS
15029 CONFIG_COMMANDS = $CONFIG_COMMANDS
15030 $ $0 $@
15032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15035 _ACEOF
15037 case $ac_config_files in *"
15038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15039 esac
15043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15044 # Files that config.status was made for.
15045 config_files="$ac_config_files"
15047 _ACEOF
15049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15050 ac_cs_usage="\
15051 \`$as_me' instantiates files and other configuration actions
15052 from templates according to the current configuration. Unless the files
15053 and actions are specified as TAGs, all are instantiated by default.
15055 Usage: $0 [OPTION]... [TAG]...
15057 -h, --help print this help, then exit
15058 -V, --version print version number and configuration settings, then exit
15059 -q, --quiet, --silent
15060 do not print progress messages
15061 -d, --debug don't remove temporary files
15062 --recheck update $as_me by reconfiguring in the same conditions
15063 --file=FILE[:TEMPLATE]
15064 instantiate the configuration file FILE
15066 Configuration files:
15067 $config_files
15069 Report bugs to the package provider."
15071 _ACEOF
15072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15073 ac_cs_version="\\
15074 config.status
15075 configured by $0, generated by GNU Autoconf 2.64,
15076 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15078 Copyright (C) 2009 Free Software Foundation, Inc.
15079 This config.status script is free software; the Free Software Foundation
15080 gives unlimited permission to copy, distribute and modify it."
15082 ac_pwd='$ac_pwd'
15083 srcdir='$srcdir'
15084 INSTALL='$INSTALL'
15085 AWK='$AWK'
15086 test -n "\$AWK" || AWK=awk
15087 _ACEOF
15089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090 # The default lists apply if the user does not specify any file.
15091 ac_need_defaults=:
15092 while test $# != 0
15094 case $1 in
15095 --*=*)
15096 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15097 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15098 ac_shift=:
15101 ac_option=$1
15102 ac_optarg=$2
15103 ac_shift=shift
15105 esac
15107 case $ac_option in
15108 # Handling of the options.
15109 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15110 ac_cs_recheck=: ;;
15111 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15112 $as_echo "$ac_cs_version"; exit ;;
15113 --debug | --debu | --deb | --de | --d | -d )
15114 debug=: ;;
15115 --file | --fil | --fi | --f )
15116 $ac_shift
15117 case $ac_optarg in
15118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15119 esac
15120 as_fn_append CONFIG_FILES " '$ac_optarg'"
15121 ac_need_defaults=false;;
15122 --he | --h | --help | --hel | -h )
15123 $as_echo "$ac_cs_usage"; exit ;;
15124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15125 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15126 ac_cs_silent=: ;;
15128 # This is an error.
15129 -*) as_fn_error "unrecognized option: \`$1'
15130 Try \`$0 --help' for more information." ;;
15132 *) as_fn_append ac_config_targets " $1"
15133 ac_need_defaults=false ;;
15135 esac
15136 shift
15137 done
15139 ac_configure_extra_args=
15141 if $ac_cs_silent; then
15142 exec 6>/dev/null
15143 ac_configure_extra_args="$ac_configure_extra_args --silent"
15146 _ACEOF
15147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15148 if \$ac_cs_recheck; then
15149 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15150 shift
15151 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15152 CONFIG_SHELL='$SHELL'
15153 export CONFIG_SHELL
15154 exec "\$@"
15157 _ACEOF
15158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15159 exec 5>>config.log
15161 echo
15162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15163 ## Running $as_me. ##
15164 _ASBOX
15165 $as_echo "$ac_log"
15166 } >&5
15168 _ACEOF
15169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 # INIT-COMMANDS
15173 extrasub_build="$extrasub_build"
15174 extrasub_host="$extrasub_host"
15175 extrasub_target="$extrasub_target"
15177 _ACEOF
15179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15181 # Handling of arguments.
15182 for ac_config_target in $ac_config_targets
15184 case $ac_config_target in
15185 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15187 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15188 esac
15189 done
15192 # If the user did not use the arguments to specify the items to instantiate,
15193 # then the envvar interface is used. Set only those that are not.
15194 # We use the long form for the default assignment because of an extremely
15195 # bizarre bug on SunOS 4.1.3.
15196 if $ac_need_defaults; then
15197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15200 # Have a temporary directory for convenience. Make it in the build tree
15201 # simply because there is no reason against having it here, and in addition,
15202 # creating and moving files from /tmp can sometimes cause problems.
15203 # Hook for its removal unless debugging.
15204 # Note that there is a small window in which the directory will not be cleaned:
15205 # after its creation but before its name has been assigned to `$tmp'.
15206 $debug ||
15208 tmp=
15209 trap 'exit_status=$?
15210 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15212 trap 'as_fn_exit 1' 1 2 13 15
15214 # Create a (secure) tmp directory for tmp files.
15217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15218 test -n "$tmp" && test -d "$tmp"
15219 } ||
15221 tmp=./conf$$-$RANDOM
15222 (umask 077 && mkdir "$tmp")
15223 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15225 # Set up the scripts for CONFIG_FILES section.
15226 # No need to generate them if there are no CONFIG_FILES.
15227 # This happens for instance with `./config.status config.h'.
15228 if test -n "$CONFIG_FILES"; then
15230 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15231 ac_cs_awk_getline=:
15232 ac_cs_awk_pipe_init=
15233 ac_cs_awk_read_file='
15234 while ((getline aline < (F[key])) > 0)
15235 print(aline)
15236 close(F[key])'
15237 ac_cs_awk_pipe_fini=
15238 else
15239 ac_cs_awk_getline=false
15240 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15241 ac_cs_awk_read_file='
15242 print "|#_!!_#|"
15243 print "cat " F[key] " &&"
15244 '$ac_cs_awk_pipe_init
15245 # The final `:' finishes the AND list.
15246 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15248 ac_cr=`echo X | tr X '\015'`
15249 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15250 # But we know of no other shell where ac_cr would be empty at this
15251 # point, so we can use a bashism as a fallback.
15252 if test "x$ac_cr" = x; then
15253 eval ac_cr=\$\'\\r\'
15255 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15256 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15257 ac_cs_awk_cr='\r'
15258 else
15259 ac_cs_awk_cr=$ac_cr
15262 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15263 _ACEOF
15265 # Create commands to substitute file output variables.
15267 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15268 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15269 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15270 echo "_ACAWK" &&
15271 echo "_ACEOF"
15272 } >conf$$files.sh &&
15273 . ./conf$$files.sh ||
15274 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15275 rm -f conf$$files.sh
15278 echo "cat >conf$$subs.awk <<_ACEOF" &&
15279 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15280 echo "_ACEOF"
15281 } >conf$$subs.sh ||
15282 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15283 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15284 ac_delim='%!_!# '
15285 for ac_last_try in false false false false false :; do
15286 . ./conf$$subs.sh ||
15287 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15289 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15290 if test $ac_delim_n = $ac_delim_num; then
15291 break
15292 elif $ac_last_try; then
15293 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15294 else
15295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15297 done
15298 rm -f conf$$subs.sh
15300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15301 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15302 _ACEOF
15303 sed -n '
15305 s/^/S["/; s/!.*/"]=/
15308 s/^[^!]*!//
15309 :repl
15310 t repl
15311 s/'"$ac_delim"'$//
15312 t delim
15315 s/\(.\{148\}\).*/\1/
15316 t more1
15317 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15320 b repl
15321 :more1
15322 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15325 s/.\{148\}//
15326 t nl
15327 :delim
15329 s/\(.\{148\}\).*/\1/
15330 t more2
15331 s/["\\]/\\&/g; s/^/"/; s/$/"/
15334 :more2
15335 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15338 s/.\{148\}//
15339 t delim
15340 ' <conf$$subs.awk | sed '
15341 /^[^""]/{
15343 s/\n//
15345 ' >>$CONFIG_STATUS || ac_write_fail=1
15346 rm -f conf$$subs.awk
15347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15348 _ACAWK
15349 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15350 for (key in S) S_is_set[key] = 1
15351 FS = "\a"
15352 \$ac_cs_awk_pipe_init
15355 line = $ 0
15356 nfields = split(line, field, "@")
15357 substed = 0
15358 len = length(field[1])
15359 for (i = 2; i < nfields; i++) {
15360 key = field[i]
15361 keylen = length(key)
15362 if (S_is_set[key]) {
15363 value = S[key]
15364 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15365 len += length(value) + length(field[++i])
15366 substed = 1
15367 } else
15368 len += 1 + keylen
15370 if (nfields == 3 && !substed) {
15371 key = field[2]
15372 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15373 \$ac_cs_awk_read_file
15374 next
15377 print line
15379 \$ac_cs_awk_pipe_fini
15380 _ACAWK
15381 _ACEOF
15382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15383 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15384 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15385 else
15387 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15388 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15389 _ACEOF
15391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15393 # trailing colons and then remove the whole line if VPATH becomes empty
15394 # (actually we leave an empty line to preserve line numbers).
15395 if test "x$srcdir" = x.; then
15396 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15397 s/:*\$(srcdir):*/:/
15398 s/:*\${srcdir}:*/:/
15399 s/:*@srcdir@:*/:/
15400 s/^\([^=]*=[ ]*\):*/\1/
15401 s/:*$//
15402 s/^[^=]*=[ ]*$//
15406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15407 fi # test -n "$CONFIG_FILES"
15410 eval set X " :F $CONFIG_FILES "
15411 shift
15412 for ac_tag
15414 case $ac_tag in
15415 :[FHLC]) ac_mode=$ac_tag; continue;;
15416 esac
15417 case $ac_mode$ac_tag in
15418 :[FHL]*:*);;
15419 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15420 :[FH]-) ac_tag=-:-;;
15421 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15422 esac
15423 ac_save_IFS=$IFS
15424 IFS=:
15425 set x $ac_tag
15426 IFS=$ac_save_IFS
15427 shift
15428 ac_file=$1
15429 shift
15431 case $ac_mode in
15432 :L) ac_source=$1;;
15433 :[FH])
15434 ac_file_inputs=
15435 for ac_f
15437 case $ac_f in
15438 -) ac_f="$tmp/stdin";;
15439 *) # Look for the file first in the build tree, then in the source tree
15440 # (if the path is not absolute). The absolute path cannot be DOS-style,
15441 # because $ac_f cannot contain `:'.
15442 test -f "$ac_f" ||
15443 case $ac_f in
15444 [\\/$]*) false;;
15445 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15446 esac ||
15447 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15448 esac
15449 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15450 as_fn_append ac_file_inputs " '$ac_f'"
15451 done
15453 # Let's still pretend it is `configure' which instantiates (i.e., don't
15454 # use $as_me), people would be surprised to read:
15455 # /* config.h. Generated by config.status. */
15456 configure_input='Generated from '`
15457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15458 `' by configure.'
15459 if test x"$ac_file" != x-; then
15460 configure_input="$ac_file. $configure_input"
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15462 $as_echo "$as_me: creating $ac_file" >&6;}
15464 # Neutralize special characters interpreted by sed in replacement strings.
15465 case $configure_input in #(
15466 *\&* | *\|* | *\\* )
15467 ac_sed_conf_input=`$as_echo "$configure_input" |
15468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15469 *) ac_sed_conf_input=$configure_input;;
15470 esac
15472 case $ac_tag in
15473 *:-:* | *:-) cat >"$tmp/stdin" \
15474 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15475 esac
15477 esac
15479 ac_dir=`$as_dirname -- "$ac_file" ||
15480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15481 X"$ac_file" : 'X\(//\)[^/]' \| \
15482 X"$ac_file" : 'X\(//\)$' \| \
15483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15484 $as_echo X"$ac_file" |
15485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15486 s//\1/
15489 /^X\(\/\/\)[^/].*/{
15490 s//\1/
15493 /^X\(\/\/\)$/{
15494 s//\1/
15497 /^X\(\/\).*/{
15498 s//\1/
15501 s/.*/./; q'`
15502 as_dir="$ac_dir"; as_fn_mkdir_p
15503 ac_builddir=.
15505 case "$ac_dir" in
15506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15509 # A ".." for each directory in $ac_dir_suffix.
15510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15511 case $ac_top_builddir_sub in
15512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15514 esac ;;
15515 esac
15516 ac_abs_top_builddir=$ac_pwd
15517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15518 # for backward compatibility:
15519 ac_top_builddir=$ac_top_build_prefix
15521 case $srcdir in
15522 .) # We are building in place.
15523 ac_srcdir=.
15524 ac_top_srcdir=$ac_top_builddir_sub
15525 ac_abs_top_srcdir=$ac_pwd ;;
15526 [\\/]* | ?:[\\/]* ) # Absolute name.
15527 ac_srcdir=$srcdir$ac_dir_suffix;
15528 ac_top_srcdir=$srcdir
15529 ac_abs_top_srcdir=$srcdir ;;
15530 *) # Relative name.
15531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15532 ac_top_srcdir=$ac_top_build_prefix$srcdir
15533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15534 esac
15535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15538 case $ac_mode in
15541 # CONFIG_FILE
15544 case $INSTALL in
15545 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15546 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15547 esac
15548 _ACEOF
15550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15551 # If the template does not know about datarootdir, expand it.
15552 # FIXME: This hack should be removed a few years after 2.60.
15553 ac_datarootdir_hack=; ac_datarootdir_seen=
15554 ac_sed_dataroot='
15555 /datarootdir/ {
15559 /@datadir@/p
15560 /@docdir@/p
15561 /@infodir@/p
15562 /@localedir@/p
15563 /@mandir@/p'
15564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15565 *datarootdir*) ac_datarootdir_seen=yes;;
15566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15569 _ACEOF
15570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571 ac_datarootdir_hack='
15572 s&@datadir@&$datadir&g
15573 s&@docdir@&$docdir&g
15574 s&@infodir@&$infodir&g
15575 s&@localedir@&$localedir&g
15576 s&@mandir@&$mandir&g
15577 s&\\\${datarootdir}&$datarootdir&g' ;;
15578 esac
15579 _ACEOF
15581 # Neutralize VPATH when `$srcdir' = `.'.
15582 # Shell code in configure.ac might set extrasub.
15583 # FIXME: do we really want to maintain this feature?
15584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585 ac_sed_extra="$ac_vpsub
15586 $extrasub
15587 _ACEOF
15588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15591 s|@configure_input@|$ac_sed_conf_input|;t t
15592 s&@top_builddir@&$ac_top_builddir_sub&;t t
15593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15594 s&@srcdir@&$ac_srcdir&;t t
15595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15596 s&@top_srcdir@&$ac_top_srcdir&;t t
15597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15598 s&@builddir@&$ac_builddir&;t t
15599 s&@abs_builddir@&$ac_abs_builddir&;t t
15600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15601 s&@INSTALL@&$ac_INSTALL&;t t
15602 $ac_datarootdir_hack
15604 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15605 if $ac_cs_awk_getline; then
15606 $AWK -f "$tmp/subs.awk"
15607 else
15608 $AWK -f "$tmp/subs.awk" | $SHELL
15609 fi >$tmp/out \
15610 || as_fn_error "could not create $ac_file" "$LINENO" 5
15612 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15613 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15616 which seems to be undefined. Please make sure it is defined." >&5
15617 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15618 which seems to be undefined. Please make sure it is defined." >&2;}
15620 rm -f "$tmp/stdin"
15621 case $ac_file in
15622 -) cat "$tmp/out" && rm -f "$tmp/out";;
15623 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15624 esac \
15625 || as_fn_error "could not create $ac_file" "$LINENO" 5
15630 esac
15633 case $ac_file$ac_mode in
15634 "Makefile":F) sed "$extrasub_build" Makefile |
15635 sed "$extrasub_host" |
15636 sed "$extrasub_target" > mf$$
15637 mv -f mf$$ Makefile ;;
15639 esac
15640 done # for ac_tag
15643 as_fn_exit 0
15644 _ACEOF
15645 ac_clean_files=$ac_clean_files_save
15647 test $ac_write_fail = 0 ||
15648 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15651 # configure is writing to config.log, and then calls config.status.
15652 # config.status does its own redirection, appending to config.log.
15653 # Unfortunately, on DOS this fails, as config.log is still kept open
15654 # by configure, so config.status won't be able to write to it; its
15655 # output is simply discarded. So we exec the FD to /dev/null,
15656 # effectively closing config.log, so it can be properly (re)opened and
15657 # appended to by config.status. When coming back to configure, we
15658 # need to make the FD available again.
15659 if test "$no_create" != yes; then
15660 ac_cs_success=:
15661 ac_config_status_args=
15662 test "$silent" = yes &&
15663 ac_config_status_args="$ac_config_status_args --quiet"
15664 exec 5>/dev/null
15665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15666 exec 5>>config.log
15667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15668 # would make configure fail if this is the last instruction.
15669 $ac_cs_success || as_fn_exit $?
15671 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15673 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}