Merge trunk version 220104 into gupc branch.
[official-gcc.git] / configure
blobd96ba9a1b7be563bfa04c20c526cb09b2d7b3a1f
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 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GUPC_FOR_TARGET
585 GOC_FOR_TARGET
586 GFORTRAN_FOR_TARGET
587 GCJ_FOR_TARGET
588 GCC_FOR_TARGET
589 CXX_FOR_TARGET
590 CC_FOR_TARGET
591 READELF
592 OBJDUMP
593 OBJCOPY
594 WINDMC
595 WINDRES
596 STRIP
597 RANLIB
599 LIPO
601 DLLTOOL
604 RUNTEST
605 EXPECT
606 MAKEINFO
607 FLEX
610 BISON
611 YACC
612 WINDRES_FOR_BUILD
613 WINDMC_FOR_BUILD
614 RANLIB_FOR_BUILD
615 NM_FOR_BUILD
616 LD_FOR_BUILD
617 LDFLAGS_FOR_BUILD
618 GUPC_FOR_BUILD
619 GOC_FOR_BUILD
620 GFORTRAN_FOR_BUILD
621 GCJ_FOR_BUILD
622 DLLTOOL_FOR_BUILD
623 CXX_FOR_BUILD
624 CXXFLAGS_FOR_BUILD
625 CFLAGS_FOR_BUILD
626 CC_FOR_BUILD
627 AS_FOR_BUILD
628 AR_FOR_BUILD
629 target_configdirs
630 configdirs
631 build_configdirs
632 INSTALL_GDB_TK
633 GDB_TK
634 CONFIGURE_GDB_TK
635 build_tooldir
636 tooldir
637 GCC_SHLIB_SUBDIR
638 RPATH_ENVVAR
639 target_configargs
640 host_configargs
641 build_configargs
642 BUILD_CONFIG
643 LDFLAGS_FOR_TARGET
644 CXXFLAGS_FOR_TARGET
645 CFLAGS_FOR_TARGET
646 DEBUG_PREFIX_CFLAGS_FOR_TARGET
647 SYSROOT_CFLAGS_FOR_TARGET
648 extra_host_libiberty_configure_flags
649 stage1_languages
650 extra_linker_plugin_flags
651 extra_linker_plugin_configure_flags
652 islinc
653 isllibs
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
685 LN_S
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 with_build_libsubdir
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_static_libjava
763 enable_bootstrap
764 with_mpc
765 with_mpc_include
766 with_mpc_lib
767 with_mpfr_dir
768 with_mpfr
769 with_mpfr_include
770 with_mpfr_lib
771 with_gmp_dir
772 with_gmp
773 with_gmp_include
774 with_gmp_lib
775 with_host_libstdcxx
776 with_stage1_libs
777 with_stage1_ldflags
778 with_boot_libs
779 with_boot_ldflags
780 with_isl
781 with_isl_include
782 with_isl_lib
783 enable_isl_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_upc_pts
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 enable_upc_link_script
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
800 enable_host_shared
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
811 CXXFLAGS
813 build_configargs
814 host_configargs
815 target_configargs
818 DLLTOOL
820 LIPO
822 RANLIB
823 STRIP
824 WINDRES
825 WINDMC
826 OBJCOPY
827 OBJDUMP
828 READELF
829 CC_FOR_TARGET
830 CXX_FOR_TARGET
831 GCC_FOR_TARGET
832 GCJ_FOR_TARGET
833 GFORTRAN_FOR_TARGET
834 GOC_FOR_TARGET
835 GUPC_FOR_TARGET
836 AR_FOR_TARGET
837 AS_FOR_TARGET
838 DLLTOOL_FOR_TARGET
839 LD_FOR_TARGET
840 LIPO_FOR_TARGET
841 NM_FOR_TARGET
842 OBJCOPY_FOR_TARGET
843 OBJDUMP_FOR_TARGET
844 RANLIB_FOR_TARGET
845 READELF_FOR_TARGET
846 STRIP_FOR_TARGET
847 WINDRES_FOR_TARGET
848 WINDMC_FOR_TARGET'
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
899 ac_prev=
900 ac_dashdash=
901 for ac_option
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
910 case $ac_option in
911 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *) ac_optarg=yes ;;
913 esac
915 # Accept the important Cygnus configure options, so we can diagnose typos.
917 case $ac_dashdash$ac_option in
919 ac_dashdash=yes ;;
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
938 --config-cache | -C)
939 cache_file=config.cache ;;
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1233 -*) as_fn_error "unrecognized option: \`$ac_option'
1234 Try \`$0 --help' for more information."
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1248 # FIXME: should be removed in autoconf 3.0.
1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 esac
1256 done
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error "missing argument to $ac_option"
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error "pwd does not report name of working directory"
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1342 /^X\(\/\/\)$/{
1343 s//\1/
1346 /^X\(\/\).*/{
1347 s//\1/
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1355 else
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 case $srcdir in
1377 *" "*)
1378 as_fn_error "path to source, $srcdir, contains spaces"
1380 esac
1381 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1452 cat <<\_ACEOF
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463 _ACEOF
1466 if test -n "$ac_init_help"; then
1468 cat <<\_ACEOF
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-as-accelerator-for=ARG
1475 build as offload target compiler. Specify offload
1476 host triple by ARG
1477 --enable-offload-targets=LIST
1478 enable offloading to devices from comma-separated
1479 LIST of TARGET[=DIR]. Use optional path to find
1480 offload target compiler during the build
1481 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1482 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1483 --disable-libquadmath do not build libquadmath directory
1484 --disable-libquadmath-support
1485 disable libquadmath support for Fortran
1486 --enable-libada build libada directory
1487 --enable-libssp build libssp directory
1488 --disable-libstdcxx do not build libstdc++-v3 directory
1489 --enable-liboffloadmic=ARG
1490 build liboffloadmic [ARG={no,host,target}]
1491 --enable-static-libjava[=ARG]
1492 build static libjava [default=no]
1493 --enable-bootstrap enable bootstrapping [yes if native build]
1494 --disable-isl-version-check
1495 disable check for ISL version
1496 --enable-lto enable link time optimization support
1497 --enable-linker-plugin-configure-flags=FLAGS
1498 additional flags for configuring linker plugins
1499 [none]
1500 --enable-linker-plugin-flags=FLAGS
1501 additional flags for configuring and building linker
1502 plugins [none]
1503 --enable-stage1-languages[=all]
1504 choose additional languages to build during stage1.
1505 Mostly useful for compiler development
1506 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1507 Objective-C runtime
1508 --enable-vtable-verify Enable vtable verification feature
1509 --enable-serial-[{host,target,build}-]configure
1510 force sequential configuration of sub-packages for
1511 the host, target or build machine, or all
1512 sub-packages
1513 --enable-upc-link-script
1514 enable UPC's use of a custom linker script; this
1515 will define the UPC shared section as a no load
1516 section on targets where this feature is supported
1517 (requires GNU LD)
1518 --enable-maintainer-mode
1519 enable make rules and dependencies not useful (and
1520 sometimes confusing) to the casual installer
1521 --enable-stage1-checking[=all]
1522 choose additional checking for stage1 of the
1523 compiler
1524 --enable-werror enable -Werror in bootstrap stage2 and later
1525 --enable-host-shared build host code as shared libraries
1527 Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-build-libsubdir=DIR Directory where to find libraries for build system
1531 --with-mpc=PATH specify prefix directory for installed MPC package.
1532 Equivalent to --with-mpc-include=PATH/include plus
1533 --with-mpc-lib=PATH/lib
1534 --with-mpc-include=PATH specify directory for installed MPC include files
1535 --with-mpc-lib=PATH specify directory for the installed MPC library
1536 --with-mpfr-dir=PATH this option has been REMOVED
1537 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1538 Equivalent to --with-mpfr-include=PATH/include plus
1539 --with-mpfr-lib=PATH/lib
1540 --with-mpfr-include=PATH
1541 specify directory for installed MPFR include files
1542 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1543 --with-gmp-dir=PATH this option has been REMOVED
1544 --with-gmp=PATH specify prefix directory for the installed GMP
1545 package. Equivalent to
1546 --with-gmp-include=PATH/include plus
1547 --with-gmp-lib=PATH/lib
1548 --with-gmp-include=PATH specify directory for installed GMP include files
1549 --with-gmp-lib=PATH specify directory for the installed GMP library
1550 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1551 linking with PPL
1552 --with-stage1-libs=LIBS libraries for stage1
1553 --with-stage1-ldflags=FLAGS
1554 linker flags for stage1
1555 --with-boot-libs=LIBS libraries for stage2 and later
1556 --with-boot-ldflags=FLAGS
1557 linker flags for stage2 and later
1558 --with-isl=PATH Specify prefix directory for the installed ISL
1559 package. Equivalent to
1560 --with-isl-include=PATH/include plus
1561 --with-isl-lib=PATH/lib
1562 --with-isl-include=PATH Specify directory for installed ISL include files
1563 --with-isl-lib=PATH Specify the directory for the installed ISL library
1564 --with-upc-pts={struct,packed}
1565 choose the default representation of a UPC
1566 pointer-to-shared
1567 --with-build-sysroot=SYSROOT
1568 use sysroot as the system root during the build
1569 --with-debug-prefix-map='A=B C=D ...'
1570 map A to B, C to D ... in debug information
1571 --with-build-config='NAME NAME2...'
1572 use config/NAME.mk build configuration
1573 --with-build-time-tools=PATH
1574 use given path to find target tools during the build
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CXX C++ compiler command
1585 CXXFLAGS C++ compiler flags
1586 build_configargs
1587 additional configure arguments for build directories
1588 host_configargs
1589 additional configure arguments for host directories
1590 target_configargs
1591 additional configure arguments for target directories
1592 AR AR for the host
1593 AS AS for the host
1594 DLLTOOL DLLTOOL for the host
1595 LD LD for the host
1596 LIPO LIPO for the host
1597 NM NM for the host
1598 RANLIB RANLIB for the host
1599 STRIP STRIP for the host
1600 WINDRES WINDRES for the host
1601 WINDMC WINDMC for the host
1602 OBJCOPY OBJCOPY for the host
1603 OBJDUMP OBJDUMP for the host
1604 READELF READELF for the host
1605 CC_FOR_TARGET
1606 CC for the target
1607 CXX_FOR_TARGET
1608 CXX for the target
1609 GCC_FOR_TARGET
1610 GCC for the target
1611 GCJ_FOR_TARGET
1612 GCJ for the target
1613 GFORTRAN_FOR_TARGET
1614 GFORTRAN for the target
1615 GOC_FOR_TARGET
1616 GOC for the target
1617 GUPC_FOR_TARGET
1618 GUPC for the target
1619 AR_FOR_TARGET
1620 AR for the target
1621 AS_FOR_TARGET
1622 AS for the target
1623 DLLTOOL_FOR_TARGET
1624 DLLTOOL for the target
1625 LD_FOR_TARGET
1626 LD for the target
1627 LIPO_FOR_TARGET
1628 LIPO for the target
1629 NM_FOR_TARGET
1630 NM for the target
1631 OBJCOPY_FOR_TARGET
1632 OBJCOPY for the target
1633 OBJDUMP_FOR_TARGET
1634 OBJDUMP for the target
1635 RANLIB_FOR_TARGET
1636 RANLIB for the target
1637 READELF_FOR_TARGET
1638 READELF for the target
1639 STRIP_FOR_TARGET
1640 STRIP for the target
1641 WINDRES_FOR_TARGET
1642 WINDRES for the target
1643 WINDMC_FOR_TARGET
1644 WINDMC for the target
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1649 Report bugs to the package provider.
1650 _ACEOF
1651 ac_status=$?
1654 if test "$ac_init_help" = "recursive"; then
1655 # If there are subdirs, report their specific --help.
1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 test -d "$ac_dir" ||
1658 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659 continue
1660 ac_builddir=.
1662 case "$ac_dir" in
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1666 # A ".." for each directory in $ac_dir_suffix.
1667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1668 case $ac_top_builddir_sub in
1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671 esac ;;
1672 esac
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1678 case $srcdir in
1679 .) # We are building in place.
1680 ac_srcdir=.
1681 ac_top_srcdir=$ac_top_builddir_sub
1682 ac_abs_top_srcdir=$ac_pwd ;;
1683 [\\/]* | ?:[\\/]* ) # Absolute name.
1684 ac_srcdir=$srcdir$ac_dir_suffix;
1685 ac_top_srcdir=$srcdir
1686 ac_abs_top_srcdir=$srcdir ;;
1687 *) # Relative name.
1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689 ac_top_srcdir=$ac_top_build_prefix$srcdir
1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 esac
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694 cd "$ac_dir" || { ac_status=$?; continue; }
1695 # Check for guested configure.
1696 if test -f "$ac_srcdir/configure.gnu"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699 elif test -f "$ac_srcdir/configure"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure" --help=recursive
1702 else
1703 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 fi || ac_status=$?
1705 cd "$ac_pwd" || { ac_status=$?; break; }
1706 done
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1711 cat <<\_ACEOF
1712 configure
1713 generated by GNU Autoconf 2.64
1715 Copyright (C) 2009 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718 _ACEOF
1719 exit
1722 ## ------------------------ ##
1723 ## Autoconf initialization. ##
1724 ## ------------------------ ##
1726 # ac_fn_c_try_compile LINENO
1727 # --------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext
1733 if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1762 } # ac_fn_c_try_compile
1764 # ac_fn_cxx_try_compile LINENO
1765 # ----------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_cxx_try_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_cxx_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1795 ac_retval=1
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 return $ac_retval
1800 } # ac_fn_cxx_try_compile
1802 # ac_fn_cxx_try_link LINENO
1803 # -------------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_cxx_try_link ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_cxx_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 $as_test_x conftest$ac_exeext
1830 }; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1836 ac_retval=1
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 return $ac_retval
1846 } # ac_fn_cxx_try_link
1848 # ac_fn_c_try_link LINENO
1849 # -----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_link ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext conftest$ac_exeext
1855 if { { ac_try="$ac_link"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest$ac_exeext && {
1874 test "$cross_compiling" = yes ||
1875 $as_test_x conftest$ac_exeext
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886 # interfere with the next link command; also delete a directory that is
1887 # left behind by Apple's compiler. We do this before executing the actions.
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 return $ac_retval
1892 } # ac_fn_c_try_link
1893 cat >config.log <<_ACEOF
1894 This file contains any messages produced by compilers while
1895 running configure, to aid debugging if configure makes a mistake.
1897 It was created by $as_me, which was
1898 generated by GNU Autoconf 2.64. Invocation command line was
1900 $ $0 $@
1902 _ACEOF
1903 exec 5>>config.log
1905 cat <<_ASUNAME
1906 ## --------- ##
1907 ## Platform. ##
1908 ## --------- ##
1910 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1911 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1912 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1913 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1914 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1916 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1917 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1919 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1920 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1921 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1922 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1923 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1924 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1925 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1927 _ASUNAME
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 $as_echo "PATH: $as_dir"
1935 done
1936 IFS=$as_save_IFS
1938 } >&5
1940 cat >&5 <<_ACEOF
1943 ## ----------- ##
1944 ## Core tests. ##
1945 ## ----------- ##
1947 _ACEOF
1950 # Keep a trace of the command line.
1951 # Strip out --no-create and --no-recursion so they do not pile up.
1952 # Strip out --silent because we don't want to record it for future runs.
1953 # Also quote any args containing shell meta-characters.
1954 # Make two passes to allow for proper duplicate-argument suppression.
1955 ac_configure_args=
1956 ac_configure_args0=
1957 ac_configure_args1=
1958 ac_must_keep_next=false
1959 for ac_pass in 1 2
1961 for ac_arg
1963 case $ac_arg in
1964 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1966 | -silent | --silent | --silen | --sile | --sil)
1967 continue ;;
1968 *\'*)
1969 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1970 esac
1971 case $ac_pass in
1972 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1974 as_fn_append ac_configure_args1 " '$ac_arg'"
1975 if test $ac_must_keep_next = true; then
1976 ac_must_keep_next=false # Got value, back to normal.
1977 else
1978 case $ac_arg in
1979 *=* | --config-cache | -C | -disable-* | --disable-* \
1980 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1981 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1982 | -with-* | --with-* | -without-* | --without-* | --x)
1983 case "$ac_configure_args0 " in
1984 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1985 esac
1987 -* ) ac_must_keep_next=true ;;
1988 esac
1990 as_fn_append ac_configure_args " '$ac_arg'"
1992 esac
1993 done
1994 done
1995 { ac_configure_args0=; unset ac_configure_args0;}
1996 { ac_configure_args1=; unset ac_configure_args1;}
1998 # When interrupted or exit'd, cleanup temporary files, and complete
1999 # config.log. We remove comments because anyway the quotes in there
2000 # would cause problems or look ugly.
2001 # WARNING: Use '\'' to represent an apostrophe within the trap.
2002 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2003 trap 'exit_status=$?
2004 # Save into config.log some information that might help in debugging.
2006 echo
2008 cat <<\_ASBOX
2009 ## ---------------- ##
2010 ## Cache variables. ##
2011 ## ---------------- ##
2012 _ASBOX
2013 echo
2014 # The following way of writing the cache mishandles newlines in values,
2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in #(
2019 *${as_nl}*)
2020 case $ac_var in #(
2021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023 esac
2024 case $ac_var in #(
2025 _ | IFS | as_nl) ;; #(
2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027 *) { eval $ac_var=; unset $ac_var;} ;;
2028 esac ;;
2029 esac
2030 done
2031 (set) 2>&1 |
2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033 *${as_nl}ac_space=\ *)
2034 sed -n \
2035 "s/'\''/'\''\\\\'\'''\''/g;
2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037 ;; #(
2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2041 esac |
2042 sort
2044 echo
2046 cat <<\_ASBOX
2047 ## ----------------- ##
2048 ## Output variables. ##
2049 ## ----------------- ##
2050 _ASBOX
2051 echo
2052 for ac_var in $ac_subst_vars
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2062 if test -n "$ac_subst_files"; then
2063 cat <<\_ASBOX
2064 ## ------------------- ##
2065 ## File substitutions. ##
2066 ## ------------------- ##
2067 _ASBOX
2068 echo
2069 for ac_var in $ac_subst_files
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2080 if test -s confdefs.h; then
2081 cat <<\_ASBOX
2082 ## ----------- ##
2083 ## confdefs.h. ##
2084 ## ----------- ##
2085 _ASBOX
2086 echo
2087 cat confdefs.h
2088 echo
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2106 $as_echo "/* confdefs.h */" > confdefs.h
2108 # Predefined preprocessor variables.
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140 ac_site_file1=$CONFIG_SITE
2141 elif test "x$prefix" != xNONE; then
2142 ac_site_file1=$prefix/share/config.site
2143 ac_site_file2=$prefix/etc/config.site
2144 else
2145 ac_site_file1=$ac_default_prefix/share/config.site
2146 ac_site_file2=$ac_default_prefix/etc/config.site
2148 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150 test "x$ac_site_file" = xNONE && continue
2151 if test -r "$ac_site_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2153 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2154 sed 's/^/| /' "$ac_site_file" >&5
2155 . "$ac_site_file"
2157 done
2159 if test -r "$cache_file"; then
2160 # Some versions of bash will fail to source /dev/null (special
2161 # files actually), so we avoid doing that.
2162 if test -f "$cache_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 $as_echo "$as_me: loading cache $cache_file" >&6;}
2165 case $cache_file in
2166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167 *) . "./$cache_file";;
2168 esac
2170 else
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 $as_echo "$as_me: creating cache $cache_file" >&6;}
2173 >$cache_file
2176 # Check that the precious variables saved in the cache have kept the same
2177 # value.
2178 ac_cache_corrupted=false
2179 for ac_var in $ac_precious_vars; do
2180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181 eval ac_new_set=\$ac_env_${ac_var}_set
2182 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183 eval ac_new_val=\$ac_env_${ac_var}_value
2184 case $ac_old_set,$ac_new_set in
2185 set,)
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2189 ,set)
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2193 ,);;
2195 if test "x$ac_old_val" != "x$ac_new_val"; then
2196 # differences in whitespace do not lead to failure.
2197 ac_old_val_w=`echo x $ac_old_val`
2198 ac_new_val_w=`echo x $ac_new_val`
2199 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202 ac_cache_corrupted=:
2203 else
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206 eval $ac_var=\$ac_old_val
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2209 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2211 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2212 fi;;
2213 esac
2214 # Pass precious variables to config.status.
2215 if test "$ac_new_set" = set; then
2216 case $ac_new_val in
2217 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 *) ac_arg=$ac_var=$ac_new_val ;;
2219 esac
2220 case " $ac_configure_args " in
2221 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2222 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223 esac
2225 done
2226 if $ac_cache_corrupted; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2233 ## -------------------- ##
2234 ## Main body of script. ##
2235 ## -------------------- ##
2237 ac_ext=c
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251 progname=$0
2252 # if PWD already has a value, it is probably wrong.
2253 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2255 # Export original configure arguments for use by sub-configures.
2256 # Quote arguments with shell meta charatcers.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS=
2258 set -- "$progname" "$@"
2259 for ac_arg
2261 case "$ac_arg" in
2262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2263 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2264 # if the argument is of the form -foo=baz, quote the baz part only
2265 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2266 *) ;;
2267 esac
2268 # Add the quoted argument to the list.
2269 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2270 done
2271 if test "$silent" = yes; then
2272 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2274 # Remove the initial space we just introduced and, as these will be
2275 # expanded by make, quote '$'.
2276 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2279 # Find the build, host, and target systems.
2280 ac_aux_dir=
2281 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2282 for ac_t in install-sh install.sh shtool; do
2283 if test -f "$ac_dir/$ac_t"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/$ac_t -c"
2286 break 2
2288 done
2289 done
2290 if test -z "$ac_aux_dir"; then
2291 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2294 # These three variables are undocumented and unsupported,
2295 # and are intended to be withdrawn in a future Autoconf release.
2296 # They can cause serious problems if a builder's source tree is in a directory
2297 # whose full name contains unusual characters.
2298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2303 # Make sure we can run config.sub.
2304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2305 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2308 $as_echo_n "checking build system type... " >&6; }
2309 if test "${ac_cv_build+set}" = set; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 ac_build_alias=$build_alias
2313 test "x$ac_build_alias" = x &&
2314 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2315 test "x$ac_build_alias" = x &&
2316 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2318 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2322 $as_echo "$ac_cv_build" >&6; }
2323 case $ac_cv_build in
2324 *-*-*) ;;
2325 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2326 esac
2327 build=$ac_cv_build
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_build
2330 shift
2331 build_cpu=$1
2332 build_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 build_os=$*
2337 IFS=$ac_save_IFS
2338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2341 case ${build_alias} in
2342 "") build_noncanonical=${build} ;;
2343 *) build_noncanonical=${build_alias} ;;
2344 esac
2348 case ${host_alias} in
2349 "") host_noncanonical=${build_noncanonical} ;;
2350 *) host_noncanonical=${host_alias} ;;
2351 esac
2355 case ${target_alias} in
2356 "") target_noncanonical=${host_noncanonical} ;;
2357 *) target_noncanonical=${target_alias} ;;
2358 esac
2363 test "$host_noncanonical" = "$target_noncanonical" &&
2364 test "$program_prefix$program_suffix$program_transform_name" = \
2365 NONENONEs,x,x, &&
2366 program_transform_name=s,y,y,
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2369 $as_echo_n "checking host system type... " >&6; }
2370 if test "${ac_cv_host+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 if test "x$host_alias" = x; then
2374 ac_cv_host=$ac_cv_build
2375 else
2376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2382 $as_echo "$ac_cv_host" >&6; }
2383 case $ac_cv_host in
2384 *-*-*) ;;
2385 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2386 esac
2387 host=$ac_cv_host
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_host
2390 shift
2391 host_cpu=$1
2392 host_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 host_os=$*
2397 IFS=$ac_save_IFS
2398 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2402 $as_echo_n "checking target system type... " >&6; }
2403 if test "${ac_cv_target+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test "x$target_alias" = x; then
2407 ac_cv_target=$ac_cv_host
2408 else
2409 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2410 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2415 $as_echo "$ac_cv_target" >&6; }
2416 case $ac_cv_target in
2417 *-*-*) ;;
2418 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2419 esac
2420 target=$ac_cv_target
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_target
2423 shift
2424 target_cpu=$1
2425 target_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 target_os=$*
2430 IFS=$ac_save_IFS
2431 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2434 # The aliases save the names the user supplied, while $host etc.
2435 # will get canonicalized.
2436 test -n "$target_alias" &&
2437 test "$program_prefix$program_suffix$program_transform_name" = \
2438 NONENONEs,x,x, &&
2439 program_prefix=${target_alias}-
2441 test "$program_prefix" != NONE &&
2442 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2443 # Use a double $ so make ignores it.
2444 test "$program_suffix" != NONE &&
2445 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2446 # Double any \ or $.
2447 # By default was `s,x,x', remove it if useless.
2448 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2449 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2453 # Get 'install' or 'install-sh' and its variants.
2454 # Find a good install program. We prefer a C program (faster),
2455 # so one script is as good as another. But avoid the broken or
2456 # incompatible versions:
2457 # SysV /etc/install, /usr/sbin/install
2458 # SunOS /usr/etc/install
2459 # IRIX /sbin/install
2460 # AIX /bin/install
2461 # AmigaOS /C/install, which installs bootblocks on floppy discs
2462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2465 # OS/2's system install, which has a completely different semantic
2466 # ./install, which can be erroneously created by make from ./install.sh.
2467 # Reject install programs that cannot install multiple files.
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2469 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2470 if test -z "$INSTALL"; then
2471 if test "${ac_cv_path_install+set}" = set; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 # Account for people who put trailing slashes in PATH elements.
2480 case $as_dir/ in #((
2481 ./ | .// | /[cC]/* | \
2482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2483 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2484 /usr/ucb/* ) ;;
2486 # OSF1 and SCO ODT 3.0 have their own names for install.
2487 # Don't use installbsd from OSF since it installs stuff as root
2488 # by default.
2489 for ac_prog in ginstall scoinst install; do
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2492 if test $ac_prog = install &&
2493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2494 # AIX install. It has an incompatible calling convention.
2496 elif test $ac_prog = install &&
2497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2498 # program-specific install script used by HP pwplus--don't use.
2500 else
2501 rm -rf conftest.one conftest.two conftest.dir
2502 echo one > conftest.one
2503 echo two > conftest.two
2504 mkdir conftest.dir
2505 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2506 test -s conftest.one && test -s conftest.two &&
2507 test -s conftest.dir/conftest.one &&
2508 test -s conftest.dir/conftest.two
2509 then
2510 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2511 break 3
2515 done
2516 done
2518 esac
2520 done
2521 IFS=$as_save_IFS
2523 rm -rf conftest.one conftest.two conftest.dir
2526 if test "${ac_cv_path_install+set}" = set; then
2527 INSTALL=$ac_cv_path_install
2528 else
2529 # As a last resort, use the slow shell script. Don't cache a
2530 # value for INSTALL within a source directory, because that will
2531 # break other packages using the cache if that directory is
2532 # removed, or if the value is a relative name.
2533 INSTALL=$ac_install_sh
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2537 $as_echo "$INSTALL" >&6; }
2539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2540 # It thinks the first close brace ends the variable substitution.
2541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2548 $as_echo_n "checking whether ln works... " >&6; }
2549 if test "${acx_cv_prog_LN+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 rm -f conftestdata_t
2553 echo >conftestdata_f
2554 if ln conftestdata_f conftestdata_t 2>/dev/null
2555 then
2556 acx_cv_prog_LN=ln
2557 else
2558 acx_cv_prog_LN=no
2560 rm -f conftestdata_f conftestdata_t
2563 if test $acx_cv_prog_LN = no; then
2564 LN="cp"
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2566 $as_echo "no, using $LN" >&6; }
2567 else
2568 LN="$acx_cv_prog_LN"
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2574 $as_echo_n "checking whether ln -s works... " >&6; }
2575 LN_S=$as_ln_s
2576 if test "$LN_S" = "ln -s"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578 $as_echo "yes" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2581 $as_echo "no, using $LN_S" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2585 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2586 if test "${ac_cv_path_SED+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2590 for ac_i in 1 2 3 4 5 6 7; do
2591 ac_script="$ac_script$as_nl$ac_script"
2592 done
2593 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2594 { ac_script=; unset ac_script;}
2595 if test -z "$SED"; then
2596 ac_path_SED_found=false
2597 # Loop through the user's path and test for each of PROGNAME-LIST
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_prog in sed gsed; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2606 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2607 # Check for GNU ac_path_SED and select it if it is found.
2608 # Check for GNU $ac_path_SED
2609 case `"$ac_path_SED" --version 2>&1` in
2610 *GNU*)
2611 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2613 ac_count=0
2614 $as_echo_n 0123456789 >"conftest.in"
2615 while :
2617 cat "conftest.in" "conftest.in" >"conftest.tmp"
2618 mv "conftest.tmp" "conftest.in"
2619 cp "conftest.in" "conftest.nl"
2620 $as_echo '' >> "conftest.nl"
2621 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2623 as_fn_arith $ac_count + 1 && ac_count=$as_val
2624 if test $ac_count -gt ${ac_path_SED_max-0}; then
2625 # Best one so far, save it but keep looking for a better one
2626 ac_cv_path_SED="$ac_path_SED"
2627 ac_path_SED_max=$ac_count
2629 # 10*(2^10) chars as input seems more than enough
2630 test $ac_count -gt 10 && break
2631 done
2632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2633 esac
2635 $ac_path_SED_found && break 3
2636 done
2637 done
2638 done
2639 IFS=$as_save_IFS
2640 if test -z "$ac_cv_path_SED"; then
2641 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2643 else
2644 ac_cv_path_SED=$SED
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2649 $as_echo "$ac_cv_path_SED" >&6; }
2650 SED="$ac_cv_path_SED"
2651 rm -f conftest.sed
2653 for ac_prog in gawk mawk nawk awk
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_AWK+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$AWK"; then
2663 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_AWK="$ac_prog"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2676 done
2677 done
2678 IFS=$as_save_IFS
2682 AWK=$ac_cv_prog_AWK
2683 if test -n "$AWK"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2685 $as_echo "$AWK" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2692 test -n "$AWK" && break
2693 done
2696 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2698 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2699 # a relative path.
2700 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2701 INSTALL="${srcpwd}/install-sh -c"
2704 # Set srcdir to "." if that's what it is.
2705 # This is important for multilib support.
2706 pwd=`${PWDCMD-pwd}`
2707 if test "${pwd}" = "${srcpwd}" ; then
2708 srcdir=.
2711 topsrcdir=$srcpwd
2713 extra_host_args=
2715 ### To add a new directory to the tree, first choose whether it is a target
2716 ### or a host dependent tool. Then put it into the appropriate list
2717 ### (library or tools, host or target), doing a dependency sort.
2719 # Subdirs will be configured in the order listed in build_configdirs,
2720 # configdirs, or target_configdirs; see the serialization section below.
2722 # Dependency sorting is only needed when *configuration* must be done in
2723 # a particular order. In all cases a dependency should be specified in
2724 # the Makefile, whether or not it's implicitly specified here.
2726 # Double entries in build_configdirs, configdirs, or target_configdirs may
2727 # cause circular dependencies and break everything horribly.
2729 # these library is used by various programs built for the build
2730 # environment
2732 build_libs="build-libiberty build-libcpp"
2734 # these tools are built for the build environment
2735 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2737 # these libraries are used by various programs built for the host environment
2739 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2741 # these tools are built for the host environment
2742 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2743 # know that we are building the simulator.
2744 # binutils, gas and ld appear in that order because it makes sense to run
2745 # "make check" in that particular order.
2746 # If --enable-gold is used, "gold" may replace "ld".
2747 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2749 # libgcj represents the runtime libraries only used by gcj.
2750 libgcj="target-libffi \
2751 target-zlib \
2752 target-libjava"
2754 # these libraries are built for the target environment, and are built after
2755 # the host libraries and the host tools (which may be a cross compiler)
2756 # Note that libiberty is not a target library.
2757 target_libraries="target-libgcc \
2758 target-libbacktrace \
2759 target-libgloss \
2760 target-newlib \
2761 target-libgomp \
2762 target-libcilkrts \
2763 target-liboffloadmic \
2764 target-libatomic \
2765 target-libitm \
2766 target-libstdc++-v3 \
2767 target-libsanitizer \
2768 target-libvtv \
2769 target-libssp \
2770 target-libquadmath \
2771 target-libgfortran \
2772 target-boehm-gc \
2773 ${libgcj} \
2774 target-libobjc \
2775 target-libgupc \
2776 target-libada \
2777 target-libgo"
2779 # these tools are built using the target libraries, and are intended to
2780 # run only in the target environment
2782 # note: any program that *uses* libraries that are in the "target_libraries"
2783 # list belongs in this list.
2785 target_tools="target-rda"
2787 ################################################################################
2789 ## All tools belong in one of the four categories, and are assigned above
2790 ## We assign ${configdirs} this way to remove all embedded newlines. This
2791 ## is important because configure will choke if they ever get through.
2792 ## ${configdirs} is directories we build using the host tools.
2793 ## ${target_configdirs} is directories we build using the target tools.
2794 configdirs=`echo ${host_libs} ${host_tools}`
2795 target_configdirs=`echo ${target_libraries} ${target_tools}`
2796 build_configdirs=`echo ${build_libs} ${build_tools}`
2800 ################################################################################
2802 srcname="gnu development package"
2804 # This gets set non-empty for some net releases of packages.
2805 appdirs=""
2807 # Define is_cross_compiler to save on calls to 'test'.
2808 is_cross_compiler=
2809 if test x"${host}" = x"${target}" ; then
2810 is_cross_compiler=no
2811 else
2812 is_cross_compiler=yes
2815 # Find the build and target subdir names.
2817 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2818 # have matching libraries, they should use host libraries: Makefile.tpl
2819 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2820 # However, they still use the build modules, because the corresponding
2821 # host modules (e.g. bison) are only built for the host when bootstrap
2822 # finishes. So:
2823 # - build_subdir is where we find build modules, and never changes.
2824 # - build_libsubdir is where we find build libraries, and can be overridden.
2826 # Prefix 'build-' so this never conflicts with target_subdir.
2827 build_subdir="build-${build_noncanonical}"
2829 # Check whether --with-build-libsubdir was given.
2830 if test "${with_build_libsubdir+set}" = set; then :
2831 withval=$with_build_libsubdir; build_libsubdir="$withval"
2832 else
2833 build_libsubdir="$build_subdir"
2836 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2837 if ( test $srcdir = . && test -d gcc ) \
2838 || test -d $srcdir/../host-${host_noncanonical}; then
2839 host_subdir="host-${host_noncanonical}"
2840 else
2841 host_subdir=.
2843 # No prefix.
2844 target_subdir=${target_noncanonical}
2846 # Be sure to cover against remnants of an in-tree build.
2847 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2848 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2849 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2852 # Skipdirs are removed silently.
2853 skipdirs=
2854 # Noconfigdirs are removed loudly.
2855 noconfigdirs=""
2857 use_gnu_ld=
2858 # Make sure we don't let GNU ld be added if we didn't want it.
2859 if test x$with_gnu_ld = xno ; then
2860 use_gnu_ld=no
2861 noconfigdirs="$noconfigdirs ld gold"
2864 use_gnu_as=
2865 # Make sure we don't let GNU as be added if we didn't want it.
2866 if test x$with_gnu_as = xno ; then
2867 use_gnu_as=no
2868 noconfigdirs="$noconfigdirs gas"
2871 use_included_zlib=
2872 # Make sure we don't let ZLIB be added if we didn't want it.
2873 if test x$with_system_zlib = xyes ; then
2874 use_included_zlib=no
2875 noconfigdirs="$noconfigdirs zlib"
2878 # some tools are so dependent upon X11 that if we're not building with X,
2879 # it's not even worth trying to configure, much less build, that tool.
2881 case ${with_x} in
2882 yes | "") ;; # the default value for this tree is that X11 is available
2884 skipdirs="${skipdirs} tk itcl libgui"
2885 # We won't be able to build gdbtk without X.
2886 enable_gdbtk=no
2888 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2889 esac
2891 # Some are only suitable for cross toolchains.
2892 # Remove these if host=target.
2893 cross_only="target-libgloss target-newlib target-opcodes"
2895 case $is_cross_compiler in
2896 no) skipdirs="${skipdirs} ${cross_only}" ;;
2897 esac
2899 # If both --with-headers and --with-libs are specified, default to
2900 # --without-newlib.
2901 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2902 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2903 if test x"${with_newlib}" = x ; then
2904 with_newlib=no
2908 # Recognize --with-newlib/--without-newlib.
2909 case ${with_newlib} in
2910 no) skipdirs="${skipdirs} target-newlib" ;;
2911 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2912 esac
2914 # Check whether --enable-as-accelerator-for was given.
2915 if test "${enable_as_accelerator_for+set}" = set; then :
2916 enableval=$enable_as_accelerator_for;
2920 # Check whether --enable-offload-targets was given.
2921 if test "${enable_offload_targets+set}" = set; then :
2922 enableval=$enable_offload_targets;
2923 if test x"$enable_offload_targets" = x; then
2924 as_fn_error "no offload targets specified" "$LINENO" 5
2927 else
2928 enable_offload_targets=
2932 # Handle --enable-gold, --enable-ld.
2933 # --disable-gold [--enable-ld]
2934 # Build only ld. Default option.
2935 # --enable-gold [--enable-ld]
2936 # Build both gold and ld. Install gold as "ld.gold", install ld
2937 # as "ld.bfd" and "ld".
2938 # --enable-gold=default [--enable-ld]
2939 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2940 # install ld as "ld.bfd".
2941 # --enable-gold[=default] --disable-ld
2942 # Build only gold, which is then installed as both "ld.gold" and "ld".
2943 # --enable-gold --enable-ld=default
2944 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2945 # and ld.bfd).
2946 # In other words, ld is default
2947 # --enable-gold=default --enable-ld=default
2948 # Error.
2950 default_ld=
2951 # Check whether --enable-gold was given.
2952 if test "${enable_gold+set}" = set; then :
2953 enableval=$enable_gold; ENABLE_GOLD=$enableval
2954 else
2955 ENABLE_GOLD=no
2958 case "${ENABLE_GOLD}" in
2959 yes|default)
2960 # Check for ELF target.
2961 is_elf=no
2962 case "${target}" in
2963 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2964 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2965 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2966 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2967 case "${target}" in
2968 *-*-linux*aout* | *-*-linux*oldld*)
2971 is_elf=yes
2973 esac
2974 esac
2976 if test "$is_elf" = "yes"; then
2977 # Check for target supported by gold.
2978 case "${target}" in
2979 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2980 | aarch64*-*-* | tilegx*-*-*)
2981 configdirs="$configdirs gold"
2982 if test x${ENABLE_GOLD} = xdefault; then
2983 default_ld=gold
2985 ENABLE_GOLD=yes
2987 esac
2993 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2995 esac
2997 # Check whether --enable-ld was given.
2998 if test "${enable_ld+set}" = set; then :
2999 enableval=$enable_ld; ENABLE_LD=$enableval
3000 else
3001 ENABLE_LD=yes
3005 case "${ENABLE_LD}" in
3006 default)
3007 if test x${default_ld} != x; then
3008 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3011 yes)
3014 if test x${ENABLE_GOLD} != xyes; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3016 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3018 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3021 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3023 esac
3025 # Configure extra directories which are host specific
3027 case "${host}" in
3028 *-cygwin*)
3029 configdirs="$configdirs libtermcap" ;;
3030 esac
3032 # A target can indicate whether a language isn't supported for some reason.
3033 # Only spaces may be used in this macro; not newlines or tabs.
3034 unsupported_languages=
3036 # Remove more programs from consideration, based on the host or
3037 # target this usually means that a port of the program doesn't
3038 # exist yet.
3040 case "${host}" in
3041 i[3456789]86-*-msdosdjgpp*)
3042 noconfigdirs="$noconfigdirs tcl tk itcl"
3044 esac
3047 # Check whether --enable-libquadmath was given.
3048 if test "${enable_libquadmath+set}" = set; then :
3049 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3050 else
3051 ENABLE_LIBQUADMATH=yes
3054 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3055 noconfigdirs="$noconfigdirs target-libquadmath"
3059 # Check whether --enable-libquadmath-support was given.
3060 if test "${enable_libquadmath_support+set}" = set; then :
3061 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3062 else
3063 ENABLE_LIBQUADMATH_SUPPORT=yes
3066 enable_libquadmath_support=
3067 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3068 enable_libquadmath_support=no
3072 # Check whether --enable-libada was given.
3073 if test "${enable_libada+set}" = set; then :
3074 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3075 else
3076 ENABLE_LIBADA=yes
3079 if test "${ENABLE_LIBADA}" != "yes" ; then
3080 noconfigdirs="$noconfigdirs gnattools"
3083 # Check whether --enable-libssp was given.
3084 if test "${enable_libssp+set}" = set; then :
3085 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3086 else
3087 ENABLE_LIBSSP=yes
3091 # Check whether --enable-libstdcxx was given.
3092 if test "${enable_libstdcxx+set}" = set; then :
3093 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3094 else
3095 ENABLE_LIBSTDCXX=default
3098 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3099 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3102 # If this is accelerator compiler and its target is intelmic we enable
3103 # target liboffloadmic by default. If this is compiler with offloading
3104 # for intelmic we enable host liboffloadmic by default. Otherwise
3105 # liboffloadmic is disabled by default.
3106 # Check whether --enable-liboffloadmic was given.
3107 if test "${enable_liboffloadmic+set}" = set; then :
3108 enableval=$enable_liboffloadmic; case "$enableval" in
3109 no | host | target)
3110 enable_liboffloadmic=$enableval ;;
3112 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3113 esac
3114 else
3115 if test x"$enable_as_accelerator_for" != x; then
3116 case "${target}" in
3117 *-intelmic-* | *-intelmicemul-*)
3118 enable_liboffloadmic=target
3119 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3122 enable_liboffloadmic=no
3124 esac
3125 else
3126 case "${enable_offload_targets}" in
3127 *-intelmic-* | *-intelmicemul-*)
3128 enable_liboffloadmic=host
3129 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3132 enable_liboffloadmic=no
3134 esac
3140 # Save it here so that, even in case of --enable-libgcj, if the Java
3141 # front-end isn't enabled, we still get libgcj disabled.
3142 libgcj_saved=$libgcj
3143 case $enable_libgcj in
3144 yes)
3145 # If we reset it here, it won't get added to noconfigdirs in the
3146 # target-specific build rules, so it will be forcibly enabled
3147 # (unless the Java language itself isn't enabled).
3148 libgcj=
3151 # Make sure we get it printed in the list of not supported target libs.
3152 # Don't disable libffi, though, other languages use it.
3153 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3154 # Clear libgcj_saved so that even if java is enabled libffi won't be
3155 # built.
3156 libgcj_saved=
3158 esac
3160 # Check whether --enable-static-libjava was given.
3161 if test "${enable_static_libjava+set}" = set; then :
3162 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3163 else
3164 ENABLE_STATIC_LIBJAVA=no
3167 enable_static_libjava=
3168 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3169 enable_static_libjava=yes
3172 if test x$enable_static_libjava != xyes ; then
3173 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3177 posix_based_os="yes"
3178 case "${target}" in
3179 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3181 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3183 *-*-solaris2* | *-*-hpux11*)
3185 *-*-darwin* | *-*-aix*)
3188 posix_based_os="no"
3190 esac
3192 # Enable libgomp by default on POSIX hosted systems.
3193 if test x$enable_libgomp = x -a $posix_based_os = "no" ; then
3194 # Disable libgomp on non POSIX hosted systems.
3195 noconfigdirs="$noconfigdirs target-libgomp"
3198 # Enable libgupc by default on POSIX hosted systems.
3199 if test x$enable_libgupc = x -a $posix_based_os = "no" ; then
3200 # Disable libgupc on non POSIX hosted systems.
3201 noconfigdirs="$noconfigdirs target-libgupc"
3204 # Disable libatomic on unsupported systems.
3205 if test -d ${srcdir}/libatomic; then
3206 if test x$enable_libatomic = x; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3208 $as_echo_n "checking for libatomic support... " >&6; }
3209 if (srcdir=${srcdir}/libatomic; \
3210 . ${srcdir}/configure.tgt; \
3211 test -n "$UNSUPPORTED")
3212 then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 noconfigdirs="$noconfigdirs target-libatomic"
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218 $as_echo "yes" >&6; }
3223 # Disable libcilkrts on unsupported systems.
3224 if test -d ${srcdir}/libcilkrts; then
3225 if test x$enable_libcilkrts = x; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3227 $as_echo_n "checking for libcilkrts support... " >&6; }
3228 if (srcdir=${srcdir}/libcilkrts; \
3229 . ${srcdir}/configure.tgt; \
3230 test -n "$UNSUPPORTED")
3231 then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 noconfigdirs="$noconfigdirs target-libcilkrts"
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3237 $as_echo "yes" >&6; }
3242 # Disable liboffloadmic on unsupported systems.
3243 if test -d ${srcdir}/liboffloadmic; then
3244 if test x$enable_liboffloadmic != xno; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3246 $as_echo_n "checking for liboffloadmic support... " >&6; }
3247 if (srcdir=${srcdir}/liboffloadmic; \
3248 . ${srcdir}/configure.tgt; \
3249 test -n "$UNSUPPORTED")
3250 then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 noconfigdirs="$noconfigdirs target-liboffloadmic"
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3261 # Disable libitm on unsupported systems.
3262 if test -d ${srcdir}/libitm; then
3263 if test x$enable_libitm = x; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3265 $as_echo_n "checking for libitm support... " >&6; }
3266 if (srcdir=${srcdir}/libitm; \
3267 . ${srcdir}/configure.tgt; \
3268 test -n "$UNSUPPORTED")
3269 then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 noconfigdirs="$noconfigdirs target-libitm"
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3280 # Disable libsanitizer on unsupported systems.
3281 if test -d ${srcdir}/libsanitizer; then
3282 if test x$enable_libsanitizer = x; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3284 $as_echo_n "checking for libsanitizer support... " >&6; }
3285 if (srcdir=${srcdir}/libsanitizer; \
3286 . ${srcdir}/configure.tgt; \
3287 test -n "$UNSUPPORTED")
3288 then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 noconfigdirs="$noconfigdirs target-libsanitizer"
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3299 # Disable libvtv on unsupported systems.
3300 if test -d ${srcdir}/libvtv; then
3301 if test x$enable_libvtv = x; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3303 $as_echo_n "checking for libvtv support... " >&6; }
3304 if (srcdir=${srcdir}/libvtv; \
3305 . ${srcdir}/configure.tgt; \
3306 test "$VTV_SUPPORTED" != "yes")
3307 then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 noconfigdirs="$noconfigdirs target-libvtv"
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3318 # Disable libquadmath for some systems.
3319 case "${target}" in
3320 avr-*-*)
3321 noconfigdirs="$noconfigdirs target-libquadmath"
3323 # libquadmath is unused on AIX and libquadmath build process use of
3324 # LD_LIBRARY_PATH can break AIX bootstrap.
3325 powerpc-*-aix* | rs6000-*-aix*)
3326 noconfigdirs="$noconfigdirs target-libquadmath"
3328 esac
3330 # Disable libssp for some systems.
3331 case "${target}" in
3332 avr-*-*)
3333 # No hosted I/O support.
3334 noconfigdirs="$noconfigdirs target-libssp"
3336 powerpc-*-aix* | rs6000-*-aix*)
3337 noconfigdirs="$noconfigdirs target-libssp"
3339 rl78-*-*)
3340 # libssp uses a misaligned load to trigger a fault, but the RL78
3341 # doesn't fault for those - instead, it gives a build-time error
3342 # for explicit misaligned loads.
3343 noconfigdirs="$noconfigdirs target-libssp"
3345 visium-*-*)
3346 # No hosted I/O support.
3347 noconfigdirs="$noconfigdirs target-libssp"
3349 esac
3351 # Disable libstdc++-v3 for some systems.
3352 # Allow user to override this if they pass --enable-libstdc++-v3
3353 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354 case "${target}" in
3355 *-*-vxworks*)
3356 # VxWorks uses the Dinkumware C++ library.
3357 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3359 arm*-wince-pe*)
3360 # the C++ libraries don't build on top of CE's C libraries
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 avr-*-*)
3364 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366 esac
3369 # Disable Fortran for some systems.
3370 case "${target}" in
3371 mmix-*-*)
3372 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3373 unsupported_languages="$unsupported_languages fortran"
3375 esac
3377 # Disable Java if libffi is not supported.
3378 case "${target}" in
3379 aarch64-*-*)
3381 alpha*-*-*)
3383 arm*-*-*)
3385 cris-*-*)
3387 frv-*-*)
3389 hppa*-*-linux*)
3391 hppa*-*-hpux*)
3393 i?86-*-*)
3395 ia64*-*-*)
3397 m32r*-*-*)
3399 m68k-*-*)
3401 mips*-*-rtems*)
3403 mips*-*-linux*)
3405 powerpc*-*-linux*)
3407 powerpc-*-darwin*)
3409 powerpc-*-aix* | rs6000-*-aix*)
3411 powerpc-*-freebsd*)
3413 powerpc64-*-freebsd*)
3415 powerpc*-*-rtems*)
3417 s390-*-* | s390x-*-*)
3419 sh-*-* | sh[34]*-*-*)
3421 sh64-*-* | sh5*-*-*)
3423 sparc*-*-*)
3425 x86_64-*-*)
3427 *-*-*)
3428 unsupported_languages="$unsupported_languages java"
3430 esac
3432 # Disable Java, libgcj or related libraries for some systems.
3433 case "${target}" in
3434 powerpc-*-darwin*)
3436 i[3456789]86-*-darwin*)
3438 x86_64-*-darwin[912]*)
3440 *-*-darwin*)
3441 noconfigdirs="$noconfigdirs ${libgcj}"
3443 *-*-netware*)
3444 noconfigdirs="$noconfigdirs ${libgcj}"
3446 *-*-rtems*)
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3449 *-*-tpf*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3452 *-*-uclinux*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3455 *-*-vxworks*)
3456 noconfigdirs="$noconfigdirs ${libgcj}"
3458 alpha*-*-*vms*)
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3461 arm*-*-freebsd*)
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3464 arm-wince-pe)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3467 arm*-*-symbianelf*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3470 bfin-*-*)
3471 noconfigdirs="$noconfigdirs target-boehm-gc"
3473 cris-*-* | crisv32-*-*)
3474 unsupported_languages="$unsupported_languages java"
3475 case "${target}" in
3476 *-*-linux*)
3478 *) # See PR46792 regarding target-libffi.
3479 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3480 esac
3482 hppa*64*-*-linux*)
3483 # In this case, it's because the hppa64-linux target is for
3484 # the kernel only at this point and has no libc, and thus no
3485 # headers, crt*.o, etc., all of which are needed by these.
3486 unsupported_languages="$unsupported_languages java"
3488 hppa*64*-*-hpux*)
3489 noconfigdirs="$noconfigdirs ${libgcj}"
3491 hppa*-hp-hpux11*)
3493 hppa*-*-hpux*)
3494 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3495 # build on HP-UX 10.20.
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3498 ia64*-*-*vms*)
3499 noconfigdirs="$noconfigdirs ${libgcj}"
3501 i[3456789]86-w64-mingw*)
3502 noconfigdirs="$noconfigdirs ${libgcj}"
3504 i[3456789]86-*-mingw*)
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3507 x86_64-*-mingw*)
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3510 mmix-*-*)
3511 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3513 powerpc-*-aix*)
3514 # copied from rs6000-*-* entry
3515 noconfigdirs="$noconfigdirs ${libgcj}"
3517 rs6000-*-aix*)
3518 noconfigdirs="$noconfigdirs ${libgcj}"
3520 *-*-lynxos*)
3521 noconfigdirs="$noconfigdirs ${libgcj}"
3523 esac
3525 # Disable the go frontend on systems where it is known to not work. Please keep
3526 # this in sync with contrib/config-list.mk.
3527 case "${target}" in
3528 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3529 unsupported_languages="$unsupported_languages go"
3531 esac
3533 # Disable libgo for some systems where it is known to not work.
3534 # For testing, you can easily override this with --enable-libgo.
3535 if test x$enable_libgo = x; then
3536 case "${target}" in
3537 *-*-darwin*)
3538 # PR 46986
3539 noconfigdirs="$noconfigdirs target-libgo"
3541 *-*-cygwin* | *-*-mingw*)
3542 noconfigdirs="$noconfigdirs target-libgo"
3544 *-*-aix*)
3545 noconfigdirs="$noconfigdirs target-libgo"
3547 esac
3550 # Default libgloss CPU subdirectory.
3551 libgloss_dir="$target_cpu"
3553 case "${target}" in
3554 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3555 libgloss_dir=wince
3557 aarch64*-*-* )
3558 libgloss_dir=aarch64
3560 arm*-*-*)
3561 libgloss_dir=arm
3563 cris-*-* | crisv32-*-*)
3564 libgloss_dir=cris
3566 hppa*-*-*)
3567 libgloss_dir=pa
3569 i[3456789]86-*-*)
3570 libgloss_dir=i386
3572 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3573 libgloss_dir=m68hc11
3575 m68*-*-* | fido-*-*)
3576 libgloss_dir=m68k
3578 mips*-*-*)
3579 libgloss_dir=mips
3581 powerpc*-*-*)
3582 libgloss_dir=rs6000
3584 sparc*-*-*)
3585 libgloss_dir=sparc
3587 esac
3589 # Disable newlib and libgloss for various target OSes.
3590 case "${target}" in
3591 alpha*-dec-osf*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 i[3456789]86-*-linux*)
3595 # This section makes it possible to build newlib natively on linux.
3596 # If we are using a cross compiler then don't configure newlib.
3597 if test x${is_cross_compiler} != xno ; then
3598 noconfigdirs="$noconfigdirs target-newlib"
3600 noconfigdirs="$noconfigdirs target-libgloss"
3601 # If we are not using a cross compiler, do configure newlib.
3602 # Note however, that newlib will only be configured in this situation
3603 # if the --with-newlib option has been given, because otherwise
3604 # 'target-newlib' will appear in skipdirs.
3606 i[3456789]86-*-rdos*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 sparc-*-sunos4*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 *-*-aix*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 *-*-beos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621 *-*-chorusos)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 *-*-dragonfly*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3627 *-*-freebsd*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 *-*-lynxos*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 *-*-mingw*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 *-*-netbsd*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 *-*-netware*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 *-*-tpf*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 *-*-uclinux*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 *-*-vxworks*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 esac
3656 case "${target}" in
3657 *-*-chorusos)
3659 powerpc-*-darwin*)
3660 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3661 noconfigdirs="$noconfigdirs sim target-rda"
3663 i[3456789]86-*-darwin*)
3664 noconfigdirs="$noconfigdirs ld gprof"
3665 noconfigdirs="$noconfigdirs sim target-rda"
3667 x86_64-*-darwin[912]*)
3668 noconfigdirs="$noconfigdirs ld gas gprof"
3669 noconfigdirs="$noconfigdirs sim target-rda"
3671 *-*-darwin*)
3672 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673 noconfigdirs="$noconfigdirs sim target-rda"
3675 *-*-dragonfly*)
3677 *-*-freebsd*)
3678 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3679 && test -f /usr/local/include/gmp.h; then
3680 with_gmp=/usr/local
3683 *-*-kaos*)
3684 # Remove unsupported stuff on all kaOS configurations.
3685 noconfigdirs="$noconfigdirs target-libgloss"
3687 *-*-netbsd*)
3689 *-*-netware*)
3691 *-*-rtems*)
3692 noconfigdirs="$noconfigdirs target-libgloss"
3693 # this is not caught below because this stanza matches earlier
3694 case $target in
3695 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3696 esac
3698 # The tpf target doesn't support gdb yet.
3699 *-*-tpf*)
3700 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3702 *-*-uclinux*)
3703 noconfigdirs="$noconfigdirs target-rda"
3705 *-*-vxworks*)
3707 alpha*-dec-osf*)
3708 # ld works, but does not support shared libraries.
3709 # gas doesn't generate exception information.
3710 noconfigdirs="$noconfigdirs gas ld"
3712 alpha*-*-*vms*)
3713 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3715 alpha*-*-*)
3716 # newlib is not 64 bit ready
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3720 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3722 arc-*-*|arceb-*-*)
3723 noconfigdirs="$noconfigdirs target-libgloss"
3725 arm-*-pe*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3728 arm-*-riscix*)
3729 noconfigdirs="$noconfigdirs ld target-libgloss"
3731 avr-*-rtems*)
3733 avr-*-*)
3734 if test x${with_avrlibc} != xno; then
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738 c4x-*-* | tic4x-*-*)
3739 noconfigdirs="$noconfigdirs target-libgloss"
3741 tic54x-*-*)
3742 noconfigdirs="$noconfigdirs target-libgloss gdb"
3744 d10v-*-*)
3745 noconfigdirs="$noconfigdirs target-libgloss"
3747 d30v-*-*)
3748 noconfigdirs="$noconfigdirs gdb"
3750 fr30-*-elf*)
3751 noconfigdirs="$noconfigdirs gdb"
3753 moxie-*-*)
3754 noconfigdirs="$noconfigdirs gprof"
3756 h8300*-*-*)
3757 noconfigdirs="$noconfigdirs target-libgloss"
3759 h8500-*-*)
3760 noconfigdirs="$noconfigdirs target-libgloss"
3762 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3764 hppa*64*-*-linux*)
3766 hppa*-*-linux*)
3768 hppa*-*-*elf* | \
3769 hppa*-*-lites* | \
3770 hppa*-*-openbsd* | \
3771 hppa*64*-*-*)
3773 hppa*-hp-hpux11*)
3774 noconfigdirs="$noconfigdirs ld"
3776 hppa*-*-pro*)
3778 hppa*-*-*)
3779 noconfigdirs="$noconfigdirs ld"
3781 i960-*-*)
3782 noconfigdirs="$noconfigdirs gdb"
3784 ia64*-*-elf*)
3785 # No gdb support yet.
3786 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3788 ia64*-**-hpux*)
3789 # No ld support yet.
3790 noconfigdirs="$noconfigdirs libgui itcl ld"
3792 ia64*-*-*vms*)
3793 # No ld support yet.
3794 noconfigdirs="$noconfigdirs libgui itcl ld"
3796 i[3456789]86-w64-mingw*)
3798 i[3456789]86-*-mingw*)
3799 target_configdirs="$target_configdirs target-winsup"
3801 *-*-cygwin*)
3802 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3803 noconfigdirs="$noconfigdirs target-libgloss"
3804 # always build newlib if winsup directory is present.
3805 if test -d "$srcdir/winsup/cygwin"; then
3806 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3807 elif test -d "$srcdir/newlib"; then
3808 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3811 i[3456789]86-*-pe)
3812 noconfigdirs="$noconfigdirs target-libgloss"
3814 i[3456789]86-*-sco3.2v5*)
3815 # The linker does not yet know about weak symbols in COFF,
3816 # and is not configured to handle mixed ELF and COFF.
3817 noconfigdirs="$noconfigdirs ld target-libgloss"
3819 i[3456789]86-*-sco*)
3820 noconfigdirs="$noconfigdirs gprof target-libgloss"
3822 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3823 noconfigdirs="$noconfigdirs target-libgloss"
3825 i[3456789]86-*-sysv4*)
3826 noconfigdirs="$noconfigdirs target-libgloss"
3828 i[3456789]86-*-beos*)
3829 noconfigdirs="$noconfigdirs gdb"
3831 i[3456789]86-*-rdos*)
3832 noconfigdirs="$noconfigdirs gdb"
3834 mmix-*-*)
3835 noconfigdirs="$noconfigdirs gdb"
3837 mt-*-*)
3838 noconfigdirs="$noconfigdirs sim"
3840 powerpc-*-aix*)
3841 # copied from rs6000-*-* entry
3842 noconfigdirs="$noconfigdirs gprof"
3844 powerpc*-*-winnt* | powerpc*-*-pe*)
3845 target_configdirs="$target_configdirs target-winsup"
3846 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3847 # always build newlib.
3848 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3850 # This is temporary until we can link against shared libraries
3851 powerpcle-*-solaris*)
3852 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3854 powerpc-*-beos*)
3855 noconfigdirs="$noconfigdirs gdb"
3857 rs6000-*-lynxos*)
3858 noconfigdirs="$noconfigdirs gprof"
3860 rs6000-*-aix*)
3861 noconfigdirs="$noconfigdirs gprof"
3863 rs6000-*-*)
3864 noconfigdirs="$noconfigdirs gprof"
3866 m68k-apollo-*)
3867 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3869 microblaze*)
3870 noconfigdirs="$noconfigdirs gprof"
3872 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3873 if test x$with_newlib = xyes; then
3874 noconfigdirs="$noconfigdirs gprof"
3877 mips*-*-irix5*)
3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
3880 mips*-*-irix6*)
3881 noconfigdirs="$noconfigdirs gprof target-libgloss"
3883 mips*-*-bsd*)
3884 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3886 mips*-*-linux*)
3888 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890 noconfigdirs="$noconfigdirs ld gas gprof"
3892 mips*-*-*)
3893 noconfigdirs="$noconfigdirs gprof"
3895 nds32*-*-*)
3896 noconfigdirs="$noconfigdirs gdb"
3898 nvptx*-*-*)
3899 # nvptx is just a compiler
3900 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3902 or1k*-*-*)
3903 noconfigdirs="$noconfigdirs gdb"
3905 sh-*-* | sh64-*-*)
3906 case "${target}" in
3907 sh*-*-elf)
3910 noconfigdirs="$noconfigdirs target-libgloss" ;;
3911 esac
3913 sparc-*-sunos4*)
3914 if test x${is_cross_compiler} = xno ; then
3915 use_gnu_ld=no
3918 tic6x-*-*)
3919 noconfigdirs="$noconfigdirs sim"
3921 tilepro*-*-* | tilegx*-*-*)
3922 noconfigdirs="$noconfigdirs sim"
3924 v810-*-*)
3925 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3927 vax-*-*)
3928 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3930 esac
3932 # If we aren't building newlib, then don't build libgloss, since libgloss
3933 # depends upon some newlib header files.
3934 case "${noconfigdirs}" in
3935 *target-libgloss*) ;;
3936 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3937 esac
3939 # Work in distributions that contain no compiler tools, like Autoconf.
3940 host_makefile_frag=/dev/null
3941 if test -d ${srcdir}/config ; then
3942 case "${host}" in
3943 i[3456789]86-*-msdosdjgpp*)
3944 host_makefile_frag="config/mh-djgpp"
3946 *-cygwin*)
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3949 $as_echo_n "checking to see if cat works as expected... " >&6; }
3950 echo a >cygwin-cat-check
3951 if test `cat cygwin-cat-check` = a ; then
3952 rm cygwin-cat-check
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955 else
3956 rm cygwin-cat-check
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 as_fn_error "The cat command does not ignore carriage return characters.
3960 Please either mount the build directory in binary mode or run the following
3961 commands before running any configure script:
3962 set -o igncr
3963 export SHELLOPTS
3964 " "$LINENO" 5
3967 host_makefile_frag="config/mh-cygwin"
3969 *-mingw*)
3970 host_makefile_frag="config/mh-mingw"
3972 alpha*-*-linux*)
3973 host_makefile_frag="config/mh-alpha-linux"
3975 hppa*-hp-hpux10*)
3976 host_makefile_frag="config/mh-pa-hpux10"
3978 hppa*-hp-hpux*)
3979 host_makefile_frag="config/mh-pa"
3981 hppa*-*)
3982 host_makefile_frag="config/mh-pa"
3984 *-*-darwin*)
3985 host_makefile_frag="config/mh-darwin"
3987 powerpc-*-aix*)
3988 host_makefile_frag="config/mh-ppc-aix"
3990 rs6000-*-aix*)
3991 host_makefile_frag="config/mh-ppc-aix"
3993 esac
3996 if test "${build}" != "${host}" ; then
3997 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3998 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3999 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4000 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4001 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4002 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4003 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4004 GUPC_FOR_BUILD=${GUPC_FOR_BUILD-gupc}
4005 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4006 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4007 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4008 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4009 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4010 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4011 else
4012 AR_FOR_BUILD="\$(AR)"
4013 AS_FOR_BUILD="\$(AS)"
4014 CC_FOR_BUILD="\$(CC)"
4015 CXX_FOR_BUILD="\$(CXX)"
4016 GCJ_FOR_BUILD="\$(GCJ)"
4017 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4018 GOC_FOR_BUILD="\$(GOC)"
4019 GUPC_FOR_BUILD="\$(GUPC)"
4020 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4021 LD_FOR_BUILD="\$(LD)"
4022 NM_FOR_BUILD="\$(NM)"
4023 RANLIB_FOR_BUILD="\$(RANLIB)"
4024 WINDRES_FOR_BUILD="\$(WINDRES)"
4025 WINDMC_FOR_BUILD="\$(WINDMC)"
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033 if test -n "$ac_tool_prefix"; then
4034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if test "${ac_cv_prog_CC+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4055 done
4056 done
4057 IFS=$as_save_IFS
4061 CC=$ac_cv_prog_CC
4062 if test -n "$CC"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4064 $as_echo "$CC" >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4072 if test -z "$ac_cv_prog_CC"; then
4073 ac_ct_CC=$CC
4074 # Extract the first word of "gcc", so it can be a program name with args.
4075 set dummy gcc; ac_word=$2
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if test -n "$ac_ct_CC"; then
4082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091 ac_cv_prog_ac_ct_CC="gcc"
4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 break 2
4095 done
4096 done
4097 IFS=$as_save_IFS
4101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4102 if test -n "$ac_ct_CC"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4104 $as_echo "$ac_ct_CC" >&6; }
4105 else
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4110 if test "x$ac_ct_CC" = x; then
4111 CC=""
4112 else
4113 case $cross_compiling:$ac_tool_warned in
4114 yes:)
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117 ac_tool_warned=yes ;;
4118 esac
4119 CC=$ac_ct_CC
4121 else
4122 CC="$ac_cv_prog_CC"
4125 if test -z "$CC"; then
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}cc; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if test "${ac_cv_prog_CC+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_prog_CC="${ac_tool_prefix}cc"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4154 CC=$ac_cv_prog_CC
4155 if test -n "$CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157 $as_echo "$CC" >&6; }
4158 else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4166 if test -z "$CC"; then
4167 # Extract the first word of "cc", so it can be a program name with args.
4168 set dummy cc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if test "${ac_cv_prog_CC+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4176 else
4177 ac_prog_rejected=no
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4186 ac_prog_rejected=yes
4187 continue
4189 ac_cv_prog_CC="cc"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4193 done
4194 done
4195 IFS=$as_save_IFS
4197 if test $ac_prog_rejected = yes; then
4198 # We found a bogon in the path, so make sure we never use it.
4199 set dummy $ac_cv_prog_CC
4200 shift
4201 if test $# != 0; then
4202 # We chose a different compiler from the bogus one.
4203 # However, it has the same basename, so the bogon will be chosen
4204 # first if we set CC to just the basename; use the full file name.
4205 shift
4206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4211 CC=$ac_cv_prog_CC
4212 if test -n "$CC"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214 $as_echo "$CC" >&6; }
4215 else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4222 if test -z "$CC"; then
4223 if test -n "$ac_tool_prefix"; then
4224 for ac_prog in cl.exe
4226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_CC+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -n "$CC"; then
4234 ac_cv_prog_CC="$CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4249 IFS=$as_save_IFS
4253 CC=$ac_cv_prog_CC
4254 if test -n "$CC"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4256 $as_echo "$CC" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4263 test -n "$CC" && break
4264 done
4266 if test -z "$CC"; then
4267 ac_ct_CC=$CC
4268 for ac_prog in cl.exe
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$ac_ct_CC"; then
4278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_ac_ct_CC="$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4298 if test -n "$ac_ct_CC"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4300 $as_echo "$ac_ct_CC" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$ac_ct_CC" && break
4308 done
4310 if test "x$ac_ct_CC" = x; then
4311 CC=""
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319 CC=$ac_ct_CC
4326 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328 as_fn_error "no acceptable C compiler found in \$PATH
4329 See \`config.log' for more details." "$LINENO" 5; }
4331 # Provide some information about the compiler.
4332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4333 set X $ac_compile
4334 ac_compiler=$2
4335 for ac_option in --version -v -V -qversion; do
4336 { { ac_try="$ac_compiler $ac_option >&5"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342 $as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4344 ac_status=$?
4345 if test -s conftest.err; then
4346 sed '10a\
4347 ... rest of stderr output deleted ...
4348 10q' conftest.err >conftest.er1
4349 cat conftest.er1 >&5
4350 rm -f conftest.er1 conftest.err
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }
4354 done
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4360 main ()
4364 return 0;
4366 _ACEOF
4367 ac_clean_files_save=$ac_clean_files
4368 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4369 # Try to create an executable without -o first, disregard a.out.
4370 # It will help us diagnose broken compilers, and finding out an intuition
4371 # of exeext.
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4373 $as_echo_n "checking for C compiler default output file name... " >&6; }
4374 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4376 # The possible output files:
4377 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4379 ac_rmfiles=
4380 for ac_file in $ac_files
4382 case $ac_file in
4383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4384 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4385 esac
4386 done
4387 rm -f $ac_rmfiles
4389 if { { ac_try="$ac_link_default"
4390 case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393 esac
4394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395 $as_echo "$ac_try_echo"; } >&5
4396 (eval "$ac_link_default") 2>&5
4397 ac_status=$?
4398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399 test $ac_status = 0; }; then :
4400 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4401 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4402 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4403 # so that the user can short-circuit this test for compilers unknown to
4404 # Autoconf.
4405 for ac_file in $ac_files ''
4407 test -f "$ac_file" || continue
4408 case $ac_file in
4409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4411 [ab].out )
4412 # We found the default executable, but exeext='' is most
4413 # certainly right.
4414 break;;
4415 *.* )
4416 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4417 then :; else
4418 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4420 # We set ac_cv_exeext here because the later test for it is not
4421 # safe: cross compilers may not add the suffix if given an `-o'
4422 # argument, so we may need to know it at that point already.
4423 # Even if this section looks crufty: it has the advantage of
4424 # actually working.
4425 break;;
4427 break;;
4428 esac
4429 done
4430 test "$ac_cv_exeext" = no && ac_cv_exeext=
4432 else
4433 ac_file=''
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4436 $as_echo "$ac_file" >&6; }
4437 if test -z "$ac_file"; then :
4438 $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443 { as_fn_set_status 77
4444 as_fn_error "C compiler cannot create executables
4445 See \`config.log' for more details." "$LINENO" 5; }; }
4447 ac_exeext=$ac_cv_exeext
4449 # Check that the compiler produces executables we can run. If not, either
4450 # the compiler is broken, or we cross compile.
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4452 $as_echo_n "checking whether the C compiler works... " >&6; }
4453 # If not cross compiling, check that we can run a simple program.
4454 if test "$cross_compiling" != yes; then
4455 if { ac_try='./$ac_file'
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_try") 2>&5
4463 ac_status=$?
4464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465 test $ac_status = 0; }; }; then
4466 cross_compiling=no
4467 else
4468 if test "$cross_compiling" = maybe; then
4469 cross_compiling=yes
4470 else
4471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4473 as_fn_error "cannot run C compiled programs.
4474 If you meant to cross compile, use \`--host'.
4475 See \`config.log' for more details." "$LINENO" 5; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4480 $as_echo "yes" >&6; }
4482 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4483 ac_clean_files=$ac_clean_files_save
4484 # Check that the compiler produces executables we can run. If not, either
4485 # the compiler is broken, or we cross compile.
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4487 $as_echo_n "checking whether we are cross compiling... " >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4489 $as_echo "$cross_compiling" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4492 $as_echo_n "checking for suffix of executables... " >&6; }
4493 if { { ac_try="$ac_link"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_link") 2>&5
4501 ac_status=$?
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then :
4504 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4505 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4506 # work properly (i.e., refer to `conftest.exe'), while it won't with
4507 # `rm'.
4508 for ac_file in conftest.exe conftest conftest.*; do
4509 test -f "$ac_file" || continue
4510 case $ac_file in
4511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4512 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513 break;;
4514 * ) break;;
4515 esac
4516 done
4517 else
4518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520 as_fn_error "cannot compute suffix of executables: cannot compile and link
4521 See \`config.log' for more details." "$LINENO" 5; }
4523 rm -f conftest$ac_cv_exeext
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4525 $as_echo "$ac_cv_exeext" >&6; }
4527 rm -f conftest.$ac_ext
4528 EXEEXT=$ac_cv_exeext
4529 ac_exeext=$EXEEXT
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4531 $as_echo_n "checking for suffix of object files... " >&6; }
4532 if test "${ac_cv_objext+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4543 return 0;
4545 _ACEOF
4546 rm -f conftest.o conftest.obj
4547 if { { ac_try="$ac_compile"
4548 case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553 $as_echo "$ac_try_echo"; } >&5
4554 (eval "$ac_compile") 2>&5
4555 ac_status=$?
4556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557 test $ac_status = 0; }; then :
4558 for ac_file in conftest.o conftest.obj conftest.*; do
4559 test -f "$ac_file" || continue;
4560 case $ac_file in
4561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4563 break;;
4564 esac
4565 done
4566 else
4567 $as_echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572 as_fn_error "cannot compute suffix of object files: cannot compile
4573 See \`config.log' for more details." "$LINENO" 5; }
4575 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4578 $as_echo "$ac_cv_objext" >&6; }
4579 OBJEXT=$ac_cv_objext
4580 ac_objext=$OBJEXT
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4582 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4583 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4590 main ()
4592 #ifndef __GNUC__
4593 choke me
4594 #endif
4597 return 0;
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_compiler_gnu=yes
4602 else
4603 ac_compiler_gnu=no
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4610 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4611 if test $ac_compiler_gnu = yes; then
4612 GCC=yes
4613 else
4614 GCC=
4616 ac_test_CFLAGS=${CFLAGS+set}
4617 ac_save_CFLAGS=$CFLAGS
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4619 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4620 if test "${ac_cv_prog_cc_g+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 ac_save_c_werror_flag=$ac_c_werror_flag
4624 ac_c_werror_flag=yes
4625 ac_cv_prog_cc_g=no
4626 CFLAGS="-g"
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4631 main ()
4635 return 0;
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639 ac_cv_prog_cc_g=yes
4640 else
4641 CFLAGS=""
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4646 main ()
4650 return 0;
4652 _ACEOF
4653 if ac_fn_c_try_compile "$LINENO"; then :
4655 else
4656 ac_c_werror_flag=$ac_save_c_werror_flag
4657 CFLAGS="-g"
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4662 main ()
4666 return 0;
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_prog_cc_g=yes
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 ac_c_werror_flag=$ac_save_c_werror_flag
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4680 $as_echo "$ac_cv_prog_cc_g" >&6; }
4681 if test "$ac_test_CFLAGS" = set; then
4682 CFLAGS=$ac_save_CFLAGS
4683 elif test $ac_cv_prog_cc_g = yes; then
4684 if test "$GCC" = yes; then
4685 CFLAGS="-g -O2"
4686 else
4687 CFLAGS="-g"
4689 else
4690 if test "$GCC" = yes; then
4691 CFLAGS="-O2"
4692 else
4693 CFLAGS=
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4697 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4698 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 ac_cv_prog_cc_c89=no
4702 ac_save_CC=$CC
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705 #include <stdarg.h>
4706 #include <stdio.h>
4707 #include <sys/types.h>
4708 #include <sys/stat.h>
4709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4710 struct buf { int x; };
4711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4712 static char *e (p, i)
4713 char **p;
4714 int i;
4716 return p[i];
4718 static char *f (char * (*g) (char **, int), char **p, ...)
4720 char *s;
4721 va_list v;
4722 va_start (v,p);
4723 s = g (p, va_arg (v,int));
4724 va_end (v);
4725 return s;
4728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4729 function prototypes and stuff, but not '\xHH' hex character constants.
4730 These don't provoke an error unfortunately, instead are silently treated
4731 as 'x'. The following induces an error, until -std is added to get
4732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4733 array size at least. It's necessary to write '\x00'==0 to get something
4734 that's true only with -std. */
4735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4738 inside strings and character constants. */
4739 #define FOO(x) 'x'
4740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4742 int test (int i, double x);
4743 struct s1 {int (*f) (int a);};
4744 struct s2 {int (*f) (double a);};
4745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4746 int argc;
4747 char **argv;
4749 main ()
4751 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4753 return 0;
4755 _ACEOF
4756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4759 CC="$ac_save_CC $ac_arg"
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_prog_cc_c89=$ac_arg
4763 rm -f core conftest.err conftest.$ac_objext
4764 test "x$ac_cv_prog_cc_c89" != "xno" && break
4765 done
4766 rm -f conftest.$ac_ext
4767 CC=$ac_save_CC
4770 # AC_CACHE_VAL
4771 case "x$ac_cv_prog_cc_c89" in
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4774 $as_echo "none needed" >&6; } ;;
4775 xno)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4777 $as_echo "unsupported" >&6; } ;;
4779 CC="$CC $ac_cv_prog_cc_c89"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4781 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4782 esac
4783 if test "x$ac_cv_prog_cc_c89" != xno; then :
4787 ac_ext=c
4788 ac_cpp='$CPP $CPPFLAGS'
4789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793 ac_ext=cpp
4794 ac_cpp='$CXXCPP $CPPFLAGS'
4795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4798 if test -z "$CXX"; then
4799 if test -n "$CCC"; then
4800 CXX=$CCC
4801 else
4802 if test -n "$ac_tool_prefix"; then
4803 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_CXX+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$CXX"; then
4813 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4826 done
4827 done
4828 IFS=$as_save_IFS
4832 CXX=$ac_cv_prog_CXX
4833 if test -n "$CXX"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4835 $as_echo "$CXX" >&6; }
4836 else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4842 test -n "$CXX" && break
4843 done
4845 if test -z "$CXX"; then
4846 ac_ct_CXX=$CXX
4847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850 set dummy $ac_prog; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$ac_ct_CXX"; then
4857 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_ac_ct_CXX="$ac_prog"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4877 if test -n "$ac_ct_CXX"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4879 $as_echo "$ac_ct_CXX" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 test -n "$ac_ct_CXX" && break
4887 done
4889 if test "x$ac_ct_CXX" = x; then
4890 CXX="g++"
4891 else
4892 case $cross_compiling:$ac_tool_warned in
4893 yes:)
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898 CXX=$ac_ct_CXX
4904 # Provide some information about the compiler.
4905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4906 set X $ac_compile
4907 ac_compiler=$2
4908 for ac_option in --version -v -V -qversion; do
4909 { { ac_try="$ac_compiler $ac_option >&5"
4910 case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913 esac
4914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4915 $as_echo "$ac_try_echo"; } >&5
4916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4917 ac_status=$?
4918 if test -s conftest.err; then
4919 sed '10a\
4920 ... rest of stderr output deleted ...
4921 10q' conftest.err >conftest.er1
4922 cat conftest.er1 >&5
4923 rm -f conftest.er1 conftest.err
4925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4926 test $ac_status = 0; }
4927 done
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4930 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4938 main ()
4940 #ifndef __GNUC__
4941 choke me
4942 #endif
4945 return 0;
4947 _ACEOF
4948 if ac_fn_cxx_try_compile "$LINENO"; then :
4949 ac_compiler_gnu=yes
4950 else
4951 ac_compiler_gnu=no
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4958 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4959 if test $ac_compiler_gnu = yes; then
4960 GXX=yes
4961 else
4962 GXX=
4964 ac_test_CXXFLAGS=${CXXFLAGS+set}
4965 ac_save_CXXFLAGS=$CXXFLAGS
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4967 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4968 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4972 ac_cxx_werror_flag=yes
4973 ac_cv_prog_cxx_g=no
4974 CXXFLAGS="-g"
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4979 main ()
4983 return 0;
4985 _ACEOF
4986 if ac_fn_cxx_try_compile "$LINENO"; then :
4987 ac_cv_prog_cxx_g=yes
4988 else
4989 CXXFLAGS=""
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4994 main ()
4998 return 0;
5000 _ACEOF
5001 if ac_fn_cxx_try_compile "$LINENO"; then :
5003 else
5004 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5005 CXXFLAGS="-g"
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5010 main ()
5014 return 0;
5016 _ACEOF
5017 if ac_fn_cxx_try_compile "$LINENO"; then :
5018 ac_cv_prog_cxx_g=yes
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5028 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5029 if test "$ac_test_CXXFLAGS" = set; then
5030 CXXFLAGS=$ac_save_CXXFLAGS
5031 elif test $ac_cv_prog_cxx_g = yes; then
5032 if test "$GXX" = yes; then
5033 CXXFLAGS="-g -O2"
5034 else
5035 CXXFLAGS="-g"
5037 else
5038 if test "$GXX" = yes; then
5039 CXXFLAGS="-O2"
5040 else
5041 CXXFLAGS=
5044 ac_ext=c
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5051 # We must set the default linker to the linker used by gcc for the correct
5052 # operation of libtool. If LD is not defined and we are using gcc, try to
5053 # set the LD default to the ld used by gcc.
5054 if test -z "$LD"; then
5055 if test "$GCC" = yes; then
5056 case $build in
5057 *-*-mingw*)
5058 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5060 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5061 esac
5062 case $gcc_prog_ld in
5063 # Accept absolute paths.
5064 [\\/]* | [A-Za-z]:[\\/]*)
5065 LD="$gcc_prog_ld" ;;
5066 esac
5070 # Check whether -static-libstdc++ -static-libgcc is supported.
5071 have_static_libs=no
5072 if test "$GCC" = yes; then
5073 saved_LDFLAGS="$LDFLAGS"
5075 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5077 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5078 ac_ext=cpp
5079 ac_cpp='$CXXCPP $CPPFLAGS'
5080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5088 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5089 #error -static-libstdc++ not implemented
5090 #endif
5091 int main() {}
5092 _ACEOF
5093 if ac_fn_cxx_try_link "$LINENO"; then :
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095 $as_echo "yes" >&6; }; have_static_libs=yes
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5100 rm -f core conftest.err conftest.$ac_objext \
5101 conftest$ac_exeext conftest.$ac_ext
5102 ac_ext=c
5103 ac_cpp='$CPP $CPPFLAGS'
5104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109 LDFLAGS="$saved_LDFLAGS"
5115 if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$GNATBIND"; then
5124 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5137 done
5138 done
5139 IFS=$as_save_IFS
5143 GNATBIND=$ac_cv_prog_GNATBIND
5144 if test -n "$GNATBIND"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5146 $as_echo "$GNATBIND" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5154 if test -z "$ac_cv_prog_GNATBIND"; then
5155 ac_ct_GNATBIND=$GNATBIND
5156 # Extract the first word of "gnatbind", so it can be a program name with args.
5157 set dummy gnatbind; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$ac_ct_GNATBIND"; then
5164 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5184 if test -n "$ac_ct_GNATBIND"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5186 $as_echo "$ac_ct_GNATBIND" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5192 if test "x$ac_ct_GNATBIND" = x; then
5193 GNATBIND="no"
5194 else
5195 case $cross_compiling:$ac_tool_warned in
5196 yes:)
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5200 esac
5201 GNATBIND=$ac_ct_GNATBIND
5203 else
5204 GNATBIND="$ac_cv_prog_GNATBIND"
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 if test -n "$GNATMAKE"; then
5216 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5229 done
5230 done
5231 IFS=$as_save_IFS
5235 GNATMAKE=$ac_cv_prog_GNATMAKE
5236 if test -n "$GNATMAKE"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5238 $as_echo "$GNATMAKE" >&6; }
5239 else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5246 if test -z "$ac_cv_prog_GNATMAKE"; then
5247 ac_ct_GNATMAKE=$GNATMAKE
5248 # Extract the first word of "gnatmake", so it can be a program name with args.
5249 set dummy gnatmake; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -n "$ac_ct_GNATMAKE"; then
5256 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5275 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5276 if test -n "$ac_ct_GNATMAKE"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5278 $as_echo "$ac_ct_GNATMAKE" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5284 if test "x$ac_ct_GNATMAKE" = x; then
5285 GNATMAKE="no"
5286 else
5287 case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned=yes ;;
5292 esac
5293 GNATMAKE=$ac_ct_GNATMAKE
5295 else
5296 GNATMAKE="$ac_cv_prog_GNATMAKE"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5300 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5301 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 cat >conftest.adb <<EOF
5305 procedure conftest is begin null; end conftest;
5307 acx_cv_cc_gcc_supports_ada=no
5308 # There is a bug in old released versions of GCC which causes the
5309 # driver to exit successfully when the appropriate language module
5310 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5311 # Therefore we must check for the error message as well as an
5312 # unsuccessful exit.
5313 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5314 # given a .adb file, but produce no object file. So we must check
5315 # if an object file was really produced to guard against this.
5316 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5317 if test x"$errors" = x && test -f conftest.$ac_objext; then
5318 acx_cv_cc_gcc_supports_ada=yes
5320 rm -f conftest.*
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5323 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5325 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5326 have_gnat=yes
5327 else
5328 have_gnat=no
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5332 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5333 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 echo abfoo >t1
5337 echo cdfoo >t2
5338 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5339 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5340 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5342 else
5343 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5346 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5347 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5349 else
5350 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5353 rm t1 t2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5357 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5358 do_compare="$gcc_cv_prog_cmp_skip"
5362 # Check whether --enable-bootstrap was given.
5363 if test "${enable_bootstrap+set}" = set; then :
5364 enableval=$enable_bootstrap;
5365 else
5366 enable_bootstrap=default
5370 # Issue errors and warnings for invalid/strange bootstrap combinations.
5371 if test -r $srcdir/gcc/configure; then
5372 have_compiler=yes
5373 else
5374 have_compiler=no
5377 case "$have_compiler:$host:$target:$enable_bootstrap" in
5378 *:*:*:no) ;;
5380 # Default behavior. Enable bootstrap if we have a compiler
5381 # and we are in a native configuration.
5382 yes:$build:$build:default)
5383 enable_bootstrap=yes ;;
5385 *:*:*:default)
5386 enable_bootstrap=no ;;
5388 # We have a compiler and we are in a native configuration, bootstrap is ok
5389 yes:$build:$build:yes)
5392 # Other configurations, but we have a compiler. Assume the user knows
5393 # what he's doing.
5394 yes:*:*:yes)
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5396 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5399 # No compiler: if they passed --enable-bootstrap explicitly, fail
5400 no:*:*:yes)
5401 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5403 # Fail if wrong command line
5405 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5407 esac
5409 # Used for setting $lt_cv_objdir
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5411 $as_echo_n "checking for objdir... " >&6; }
5412 if test "${lt_cv_objdir+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 rm -f .libs 2>/dev/null
5416 mkdir .libs 2>/dev/null
5417 if test -d .libs; then
5418 lt_cv_objdir=.libs
5419 else
5420 # MS-DOS does not allow filenames that begin with a dot.
5421 lt_cv_objdir=_libs
5423 rmdir .libs 2>/dev/null
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5426 $as_echo "$lt_cv_objdir" >&6; }
5427 objdir=$lt_cv_objdir
5433 cat >>confdefs.h <<_ACEOF
5434 #define LT_OBJDIR "$lt_cv_objdir/"
5435 _ACEOF
5439 # Check for GMP, MPFR and MPC
5440 gmplibs="-lmpc -lmpfr -lgmp"
5441 gmpinc=
5442 have_gmp=no
5444 # Specify a location for mpc
5445 # check for this first so it ends up on the link line before mpfr.
5447 # Check whether --with-mpc was given.
5448 if test "${with_mpc+set}" = set; then :
5449 withval=$with_mpc;
5453 # Check whether --with-mpc-include was given.
5454 if test "${with_mpc_include+set}" = set; then :
5455 withval=$with_mpc_include;
5459 # Check whether --with-mpc-lib was given.
5460 if test "${with_mpc_lib+set}" = set; then :
5461 withval=$with_mpc_lib;
5465 if test "x$with_mpc" != x; then
5466 gmplibs="-L$with_mpc/lib $gmplibs"
5467 gmpinc="-I$with_mpc/include $gmpinc"
5469 if test "x$with_mpc_include" != x; then
5470 gmpinc="-I$with_mpc_include $gmpinc"
5472 if test "x$with_mpc_lib" != x; then
5473 gmplibs="-L$with_mpc_lib $gmplibs"
5475 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5476 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5477 gmpinc='-I$$s/mpc/src '"$gmpinc"
5478 # Do not test the mpc version. Assume that it is sufficient, since
5479 # it is in the source tree, and the library has not been built yet
5480 # but it would be included on the link line in the version check below
5481 # hence making the test fail.
5482 have_gmp=yes
5485 # Specify a location for mpfr
5486 # check for this first so it ends up on the link line before gmp.
5488 # Check whether --with-mpfr-dir was given.
5489 if test "${with_mpfr_dir+set}" = set; then :
5490 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5491 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5496 # Check whether --with-mpfr was given.
5497 if test "${with_mpfr+set}" = set; then :
5498 withval=$with_mpfr;
5502 # Check whether --with-mpfr-include was given.
5503 if test "${with_mpfr_include+set}" = set; then :
5504 withval=$with_mpfr_include;
5508 # Check whether --with-mpfr-lib was given.
5509 if test "${with_mpfr_lib+set}" = set; then :
5510 withval=$with_mpfr_lib;
5514 if test "x$with_mpfr" != x; then
5515 gmplibs="-L$with_mpfr/lib $gmplibs"
5516 gmpinc="-I$with_mpfr/include $gmpinc"
5518 if test "x$with_mpfr_include" != x; then
5519 gmpinc="-I$with_mpfr_include $gmpinc"
5521 if test "x$with_mpfr_lib" != x; then
5522 gmplibs="-L$with_mpfr_lib $gmplibs"
5524 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5525 # MPFR v3.1.0 moved the sources into a src sub-directory.
5526 if test -d ${srcdir}/mpfr/src; then
5527 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5528 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5529 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5530 else
5531 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5532 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5533 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5535 # Do not test the mpfr version. Assume that it is sufficient, since
5536 # it is in the source tree, and the library has not been built yet
5537 # but it would be included on the link line in the version check below
5538 # hence making the test fail.
5539 have_gmp=yes
5542 # Specify a location for gmp
5544 # Check whether --with-gmp-dir was given.
5545 if test "${with_gmp_dir+set}" = set; then :
5546 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5547 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5552 # Check whether --with-gmp was given.
5553 if test "${with_gmp+set}" = set; then :
5554 withval=$with_gmp;
5558 # Check whether --with-gmp-include was given.
5559 if test "${with_gmp_include+set}" = set; then :
5560 withval=$with_gmp_include;
5564 # Check whether --with-gmp-lib was given.
5565 if test "${with_gmp_lib+set}" = set; then :
5566 withval=$with_gmp_lib;
5571 if test "x$with_gmp" != x; then
5572 gmplibs="-L$with_gmp/lib $gmplibs"
5573 gmpinc="-I$with_gmp/include $gmpinc"
5575 if test "x$with_gmp_include" != x; then
5576 gmpinc="-I$with_gmp_include $gmpinc"
5578 if test "x$with_gmp_lib" != x; then
5579 gmplibs="-L$with_gmp_lib $gmplibs"
5581 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5582 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5583 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5584 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5585 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5586 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5587 # Do not test the gmp version. Assume that it is sufficient, since
5588 # it is in the source tree, and the library has not been built yet
5589 # but it would be included on the link line in the version check below
5590 # hence making the test fail.
5591 have_gmp=yes
5594 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5595 have_gmp=yes
5596 saved_CFLAGS="$CFLAGS"
5597 CFLAGS="$CFLAGS $gmpinc"
5598 # Check for the recommended and required versions of GMP.
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5600 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include "gmp.h"
5606 main ()
5609 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5610 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5611 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5612 choke me
5613 #endif
5616 return 0;
5618 _ACEOF
5619 if ac_fn_c_try_compile "$LINENO"; then :
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 #include <gmp.h>
5624 main ()
5627 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5628 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5629 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5630 choke me
5631 #endif
5634 return 0;
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639 $as_echo "yes" >&6; }
5640 else
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5642 $as_echo "buggy but acceptable" >&6; }
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }; have_gmp=no
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 # If we have GMP, check the MPFR version.
5652 if test x"$have_gmp" = xyes; then
5653 # Check for the recommended and required versions of MPFR.
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5655 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <gmp.h>
5659 #include <mpfr.h>
5661 main ()
5664 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5665 choke me
5666 #endif
5669 return 0;
5671 _ACEOF
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 #include <gmp.h>
5676 #include <mpfr.h>
5678 main ()
5681 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5682 choke me
5683 #endif
5686 return 0;
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5691 $as_echo "yes" >&6; }
5692 else
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5694 $as_echo "buggy but acceptable" >&6; }
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }; have_gmp=no
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 # Check for the MPC header version.
5705 if test x"$have_gmp" = xyes ; then
5706 # Check for the recommended and required versions of MPC.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5708 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711 #include <mpc.h>
5713 main ()
5716 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5717 choke me
5718 #endif
5721 return 0;
5723 _ACEOF
5724 if ac_fn_c_try_compile "$LINENO"; then :
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 #include <mpc.h>
5729 main ()
5732 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5733 choke me
5734 #endif
5737 return 0;
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742 $as_echo "yes" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5745 $as_echo "buggy but acceptable" >&6; }
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }; have_gmp=no
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 # Now check the MPFR library.
5756 if test x"$have_gmp" = xyes; then
5757 saved_LIBS="$LIBS"
5758 LIBS="$LIBS $gmplibs"
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5760 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #include <mpc.h>
5765 main ()
5768 mpfr_t n;
5769 mpfr_t x;
5770 mpc_t c;
5771 int t;
5772 mpfr_init (n);
5773 mpfr_init (x);
5774 mpfr_atan2 (n, n, x, GMP_RNDN);
5775 mpfr_erfc (n, x, GMP_RNDN);
5776 mpfr_subnormalize (x, t, GMP_RNDN);
5777 mpfr_clear(n);
5778 mpfr_clear(x);
5779 mpc_init2 (c, 53);
5780 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5781 mpc_cosh (c, c, MPC_RNDNN);
5782 mpc_pow (c, c, c, MPC_RNDNN);
5783 mpc_acosh (c, c, MPC_RNDNN);
5784 mpc_clear (c);
5787 return 0;
5789 _ACEOF
5790 if ac_fn_c_try_link "$LINENO"; then :
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5792 $as_echo "yes" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }; have_gmp=no
5797 rm -f core conftest.err conftest.$ac_objext \
5798 conftest$ac_exeext conftest.$ac_ext
5799 LIBS="$saved_LIBS"
5802 CFLAGS="$saved_CFLAGS"
5804 # The library versions listed in the error message below should match
5805 # the HARD-minimums enforced above.
5806 if test x$have_gmp != xyes; then
5807 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5808 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5809 their locations. Source code for these libraries can be found at
5810 their respective hosting sites as well as at
5811 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5812 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5813 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5814 make sure that you have installed both the libraries and the header
5815 files. They may be located in separate packages." "$LINENO" 5
5819 # Flags needed for both GMP, MPFR and/or MPC.
5827 # Allow host libstdc++ to be specified for static linking with PPL.
5829 # Check whether --with-host-libstdcxx was given.
5830 if test "${with_host_libstdcxx+set}" = set; then :
5831 withval=$with_host_libstdcxx;
5835 case $with_host_libstdcxx in
5836 no|yes)
5837 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5839 esac
5841 # Libraries to use for stage1 or when not bootstrapping.
5843 # Check whether --with-stage1-libs was given.
5844 if test "${with_stage1_libs+set}" = set; then :
5845 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5846 stage1_libs=
5847 else
5848 stage1_libs=$withval
5850 else
5851 stage1_libs=$with_host_libstdcxx
5856 # Linker flags to use for stage1 or when not bootstrapping.
5858 # Check whether --with-stage1-ldflags was given.
5859 if test "${with_stage1_ldflags+set}" = set; then :
5860 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5861 stage1_ldflags=
5862 else
5863 stage1_ldflags=$withval
5865 else
5866 stage1_ldflags=
5867 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5868 # if supported. But if the user explicitly specified the libraries to use,
5869 # trust that they are doing what they want.
5870 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5871 stage1_ldflags="-static-libstdc++ -static-libgcc"
5877 # Libraries to use for stage2 and later builds. This defaults to the
5878 # argument passed to --with-host-libstdcxx.
5880 # Check whether --with-boot-libs was given.
5881 if test "${with_boot_libs+set}" = set; then :
5882 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5883 poststage1_libs=
5884 else
5885 poststage1_libs=$withval
5887 else
5888 poststage1_libs=$with_host_libstdcxx
5893 # Linker flags to use for stage2 and later builds.
5895 # Check whether --with-boot-ldflags was given.
5896 if test "${with_boot_ldflags+set}" = set; then :
5897 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5898 poststage1_ldflags=
5899 else
5900 poststage1_ldflags=$withval
5902 else
5903 poststage1_ldflags=
5904 # In stages 2 and 3, default to linking libstdc++ and libgcc
5905 # statically. But if the user explicitly specified the libraries to
5906 # use, trust that they are doing what they want.
5907 if test "$poststage1_libs" = ""; then
5908 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5914 # GCC GRAPHITE dependency ISL.
5915 # Basic setup is inlined here, actual checks are in config/isl.m4
5918 # Check whether --with-isl was given.
5919 if test "${with_isl+set}" = set; then :
5920 withval=$with_isl;
5924 # Treat --without-isl as a request to disable
5925 # GRAPHITE support and skip all following checks.
5926 if test "x$with_isl" != "xno"; then
5927 # Check for ISL
5930 # Check whether --with-isl-include was given.
5931 if test "${with_isl_include+set}" = set; then :
5932 withval=$with_isl_include;
5936 # Check whether --with-isl-lib was given.
5937 if test "${with_isl_lib+set}" = set; then :
5938 withval=$with_isl_lib;
5942 # Check whether --enable-isl-version-check was given.
5943 if test "${enable_isl_version_check+set}" = set; then :
5944 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5945 else
5946 ENABLE_ISL_CHECK=yes
5950 # Initialize isllibs and islinc.
5951 case $with_isl in
5953 isllibs=
5954 islinc=
5956 "" | yes)
5959 isllibs="-L$with_isl/lib"
5960 islinc="-I$with_isl/include"
5962 esac
5963 if test "x${with_isl_include}" != x ; then
5964 islinc="-I$with_isl_include"
5966 if test "x${with_isl_lib}" != x; then
5967 isllibs="-L$with_isl_lib"
5969 if test "x${islinc}" = x && test "x${isllibs}" = x \
5970 && test -d ${srcdir}/isl; then
5971 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5972 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5973 ENABLE_ISL_CHECK=no
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5975 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5978 isllibs="${isllibs} -lisl"
5982 if test "${ENABLE_ISL_CHECK}" = yes ; then
5983 _isl_saved_CFLAGS=$CFLAGS
5984 _isl_saved_LDFLAGS=$LDFLAGS
5985 _isl_saved_LIBS=$LIBS
5987 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5988 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5989 LIBS="${_isl_saved_LIBS} -lisl"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5992 $as_echo_n "checking for compatible ISL... " >&6; }
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <isl/val.h>
5997 main ()
6001 return 0;
6003 _ACEOF
6004 if ac_fn_c_try_link "$LINENO"; then :
6005 gcc_cv_isl=yes
6006 else
6007 gcc_cv_isl=no
6009 rm -f core conftest.err conftest.$ac_objext \
6010 conftest$ac_exeext conftest.$ac_ext
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6012 $as_echo "$gcc_cv_isl" >&6; }
6014 CFLAGS=$_isl_saved_CFLAGS
6015 LDFLAGS=$_isl_saved_LDFLAGS
6016 LIBS=$_isl_saved_LIBS
6024 if test "x${with_isl}" = xno; then
6025 graphite_requested=no
6026 elif test "x${with_isl}" != x \
6027 || test "x${with_isl_include}" != x \
6028 || test "x${with_isl_lib}" != x ; then
6029 graphite_requested=yes
6030 else
6031 graphite_requested=no
6036 if test "${gcc_cv_isl}" = no ; then
6037 isllibs=
6038 islinc=
6041 if test "${graphite_requested}" = yes \
6042 && test "x${isllibs}" = x \
6043 && test "x${islinc}" = x ; then
6045 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6051 # If the ISL check failed, disable builds of in-tree variant of ISL
6052 if test "x$with_isl" = xno ||
6053 test "x$gcc_cv_isl" = xno; then
6054 noconfigdirs="$noconfigdirs isl"
6055 islinc=
6061 # Check for LTO support.
6062 # Check whether --enable-lto was given.
6063 if test "${enable_lto+set}" = set; then :
6064 enableval=$enable_lto; enable_lto=$enableval
6065 else
6066 enable_lto=yes; default_enable_lto=yes
6073 target_elf=no
6074 case $target in
6075 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6076 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6077 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6078 target_elf=no
6081 target_elf=yes
6083 esac
6085 if test $target_elf = yes; then :
6086 # ELF platforms build the lto-plugin always.
6087 build_lto_plugin=yes
6089 else
6090 if test x"$default_enable_lto" = x"yes" ; then
6091 case $target in
6092 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6093 # On other non-ELF platforms, LTO has yet to be validated.
6094 *) enable_lto=no ;;
6095 esac
6096 else
6097 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6098 # It would also be nice to check the binutils support, but we don't
6099 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6100 # warn during gcc/ subconfigure; unless you're bootstrapping with
6101 # -flto it won't be needed until after installation anyway.
6102 case $target in
6103 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6104 *) if test x"$enable_lto" = x"yes"; then
6105 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6108 esac
6110 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6111 # Build it unless LTO was explicitly disabled.
6112 case $target in
6113 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6114 *) ;;
6115 esac
6120 # Check whether --enable-linker-plugin-configure-flags was given.
6121 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6122 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6123 else
6124 extra_linker_plugin_configure_flags=
6128 # Check whether --enable-linker-plugin-flags was given.
6129 if test "${enable_linker_plugin_flags+set}" = set; then :
6130 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6131 else
6132 extra_linker_plugin_flags=
6138 # By default, C and C++ are the only stage 1 languages.
6139 stage1_languages=,c,
6141 # Target libraries that we bootstrap.
6142 bootstrap_target_libs=,target-libgcc,
6144 # Figure out what language subdirectories are present.
6145 # Look if the user specified --enable-languages="..."; if not, use
6146 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6147 # go away some day.
6148 # NB: embedded tabs in this IF block -- do not untabify
6149 if test -d ${srcdir}/gcc; then
6150 if test x"${enable_languages+set}" != xset; then
6151 if test x"${LANGUAGES+set}" = xset; then
6152 enable_languages="${LANGUAGES}"
6153 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6154 else
6155 enable_languages=all
6157 else
6158 if test x"${enable_languages}" = x ||
6159 test x"${enable_languages}" = xyes;
6160 then
6161 echo configure.in: --enable-languages needs at least one language argument 1>&2
6162 exit 1
6165 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6167 # 'f95' is the old name for the 'fortran' language. We issue a warning
6168 # and make the substitution.
6169 case ,${enable_languages}, in
6170 *,f95,*)
6171 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6172 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6174 esac
6176 # If bootstrapping, C++ must be enabled.
6177 case ",$enable_languages,:$enable_bootstrap" in
6178 *,c++,*:*) ;;
6179 *:yes)
6180 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6181 enable_languages="${enable_languages},c++"
6182 else
6183 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6186 esac
6188 # First scan to see if an enabled language requires some other language.
6189 # We assume that a given config-lang.in will list all the language
6190 # front ends it requires, even if some are required indirectly.
6191 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6192 case ${lang_frag} in
6193 ..) ;;
6194 # The odd quoting in the next line works around
6195 # an apparent bug in bash 1.12 on linux.
6196 ${srcdir}/gcc/[*]/config-lang.in) ;;
6198 # From the config-lang.in, get $language, $lang_requires, and
6199 # $lang_requires_boot_languages.
6200 language=
6201 lang_requires=
6202 lang_requires_boot_languages=
6203 . ${lang_frag}
6204 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6205 case ,${enable_languages}, in
6206 *,$other,*) ;;
6207 *,all,*) ;;
6208 *,$language,*)
6209 echo " \`$other' language required by \`$language'; enabling" 1>&2
6210 enable_languages="${enable_languages},${other}"
6212 esac
6213 done
6214 for other in ${lang_requires_boot_languages} ; do
6215 if test "$other" != "c"; then
6216 case ,${enable_stage1_languages}, in
6217 *,$other,*) ;;
6218 *,all,*) ;;
6220 case ,${enable_languages}, in
6221 *,$language,*)
6222 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6223 enable_stage1_languages="$enable_stage1_languages,${other}"
6225 esac
6227 esac
6229 done
6231 esac
6232 done
6234 new_enable_languages=,c,
6236 # If LTO is enabled, add the LTO front end.
6237 if test "$enable_lto" = "yes" ; then
6238 case ,${enable_languages}, in
6239 *,lto,*) ;;
6240 *) enable_languages="${enable_languages},lto" ;;
6241 esac
6242 if test "${build_lto_plugin}" = "yes" ; then
6243 configdirs="$configdirs lto-plugin"
6247 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6248 potential_languages=,c,
6250 enabled_target_libs=
6251 disabled_target_libs=
6253 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6254 case ${lang_frag} in
6255 ..) ;;
6256 # The odd quoting in the next line works around
6257 # an apparent bug in bash 1.12 on linux.
6258 ${srcdir}/gcc/[*]/config-lang.in) ;;
6260 # From the config-lang.in, get $language, $target_libs,
6261 # $lang_dirs, $boot_language, and $build_by_default
6262 language=
6263 target_libs=
6264 lang_dirs=
6265 subdir_requires=
6266 boot_language=no
6267 build_by_default=yes
6268 . ${lang_frag}
6269 if test x${language} = x; then
6270 echo "${lang_frag} doesn't set \$language." 1>&2
6271 exit 1
6274 if test "$language" = "c++"; then
6275 boot_language=yes
6278 add_this_lang=no
6279 case ,${enable_languages}, in
6280 *,${language},*)
6281 # Language was explicitly selected; include it
6282 # unless it is C, which is enabled by default.
6283 if test "$language" != "c"; then
6284 add_this_lang=yes
6287 *,all,*)
6288 # 'all' was selected, select it if it is a default language
6289 if test "$language" != "c"; then
6290 add_this_lang=${build_by_default}
6293 esac
6295 # Disable languages that need other directories if these aren't available.
6296 for i in $subdir_requires; do
6297 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6298 case ,${enable_languages}, in
6299 *,${language},*)
6300 # Specifically requested language; tell them.
6301 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6304 # Silently disable.
6305 add_this_lang=unsupported
6307 esac
6308 done
6310 # Disable Ada if no preexisting GNAT is available.
6311 case ,${enable_languages},:${language}:${have_gnat} in
6312 *,${language},*:ada:no)
6313 # Specifically requested language; tell them.
6314 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6316 *:ada:no)
6317 # Silently disable.
6318 add_this_lang=unsupported
6320 esac
6322 # Disable a language that is unsupported by the target.
6323 case " $unsupported_languages " in
6324 *" $language "*)
6325 add_this_lang=unsupported
6327 esac
6329 case $add_this_lang in
6330 unsupported)
6331 # Remove language-dependent dirs.
6332 disabled_target_libs="$disabled_target_libs $target_libs"
6333 noconfigdirs="$noconfigdirs $lang_dirs"
6336 # Remove language-dependent dirs; still show language as supported.
6337 disabled_target_libs="$disabled_target_libs $target_libs"
6338 noconfigdirs="$noconfigdirs $lang_dirs"
6339 potential_languages="${potential_languages}${language},"
6341 yes)
6342 new_enable_languages="${new_enable_languages}${language},"
6343 potential_languages="${potential_languages}${language},"
6344 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6345 enabled_target_libs="$enabled_target_libs $target_libs"
6346 case "${boot_language}:,$enable_stage1_languages," in
6347 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6348 # Add to (comma-separated) list of stage 1 languages.
6349 case ",$stage1_languages," in
6350 *,$language,* | ,yes, | ,all,) ;;
6351 *) stage1_languages="${stage1_languages}${language}," ;;
6352 esac
6353 # We need to bootstrap any supporting libraries.
6354 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6356 esac
6358 esac
6360 esac
6361 done
6363 # Add target libraries which are only needed for disabled languages
6364 # to noconfigdirs.
6365 if test -n "$disabled_target_libs"; then
6366 for dir in $disabled_target_libs; do
6367 case " $enabled_target_libs " in
6368 *" ${dir} "*) ;;
6369 *) noconfigdirs="$noconfigdirs $dir" ;;
6370 esac
6371 done
6374 # Check whether --enable-stage1-languages was given.
6375 if test "${enable_stage1_languages+set}" = set; then :
6376 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6377 ,no,|,,)
6378 # Set it to something that will have no effect in the loop below
6379 enable_stage1_languages=c ;;
6380 ,yes,)
6381 enable_stage1_languages=`echo $new_enable_languages | \
6382 sed -e "s/^,//" -e "s/,$//" ` ;;
6383 *,all,*)
6384 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6385 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6386 esac
6388 # Add "good" languages from enable_stage1_languages to stage1_languages,
6389 # while "bad" languages go in missing_languages. Leave no duplicates.
6390 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6391 case $potential_languages in
6392 *,$i,*)
6393 case $stage1_languages in
6394 *,$i,*) ;;
6395 *) stage1_languages="$stage1_languages$i," ;;
6396 esac ;;
6398 case $missing_languages in
6399 *,$i,*) ;;
6400 *) missing_languages="$missing_languages$i," ;;
6401 esac ;;
6402 esac
6403 done
6407 # Remove leading/trailing commas that were added for simplicity
6408 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6409 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6410 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6411 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6413 if test "x$missing_languages" != x; then
6414 as_fn_error "
6415 The following requested languages could not be built: ${missing_languages}
6416 Supported languages are: ${potential_languages}" "$LINENO" 5
6418 if test "x$new_enable_languages" != "x$enable_languages"; then
6419 echo The following languages will be built: ${new_enable_languages}
6420 enable_languages="$new_enable_languages"
6424 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6427 # Handle --disable-<component> generically.
6428 for dir in $configdirs $build_configdirs $target_configdirs ; do
6429 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6430 varname=`echo $dirname | sed -e s/+/_/g`
6431 if eval test x\${enable_${varname}} "=" xno ; then
6432 noconfigdirs="$noconfigdirs $dir"
6434 done
6436 # Check for Boehm's garbage collector
6437 # Check whether --enable-objc-gc was given.
6438 if test "${enable_objc_gc+set}" = set; then :
6439 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6440 *,objc,*:*:yes:*target-boehm-gc*)
6441 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6443 esac
6447 # Make sure we only build Boehm's garbage collector if required.
6448 case ,${enable_languages},:${enable_objc_gc} in
6449 *,objc,*:yes)
6450 # Keep target-boehm-gc if requested for Objective-C.
6453 # Otherwise remove target-boehm-gc depending on target-libjava.
6454 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6455 noconfigdirs="$noconfigdirs target-boehm-gc"
6458 esac
6461 # Check whether --with-upc-pts was given.
6462 if test "${with_upc_pts+set}" = set; then :
6463 withval=$with_upc_pts;
6464 if test "$withval"x != "struct"x && test "$withval"x != "packed"x; then \
6465 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6471 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6472 case ,${enable_languages}, in
6473 *,c++,*)
6474 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6475 case "${noconfigdirs}" in
6476 *target-libstdc++-v3*)
6477 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6479 *) ;;
6480 esac
6483 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6485 esac
6487 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6488 # $build_configdirs and $target_configdirs.
6489 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6491 notsupp=""
6492 for dir in . $skipdirs $noconfigdirs ; do
6493 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6494 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6495 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6496 if test -r $srcdir/$dirname/configure ; then
6497 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6498 true
6499 else
6500 notsupp="$notsupp $dir"
6504 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6505 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6506 if test -r $srcdir/$dirname/configure ; then
6507 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6508 true
6509 else
6510 notsupp="$notsupp $dir"
6514 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6515 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6516 if test -r $srcdir/$dirname/configure ; then
6517 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6518 true
6519 else
6520 notsupp="$notsupp $dir"
6524 done
6526 # Quietly strip out all directories which aren't configurable in this tree.
6527 # This relies on all configurable subdirectories being autoconfiscated, which
6528 # is now the case.
6529 build_configdirs_all="$build_configdirs"
6530 build_configdirs=
6531 for i in ${build_configdirs_all} ; do
6532 j=`echo $i | sed -e s/build-//g`
6533 if test -f ${srcdir}/$j/configure ; then
6534 build_configdirs="${build_configdirs} $i"
6536 done
6538 configdirs_all="$configdirs"
6539 configdirs=
6540 for i in ${configdirs_all} ; do
6541 if test -f ${srcdir}/$i/configure ; then
6542 configdirs="${configdirs} $i"
6544 done
6546 target_configdirs_all="$target_configdirs"
6547 target_configdirs=
6548 for i in ${target_configdirs_all} ; do
6549 j=`echo $i | sed -e s/target-//g`
6550 if test -f ${srcdir}/$j/configure ; then
6551 target_configdirs="${target_configdirs} $i"
6553 done
6555 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6556 # so we have to add it after the preceding checks.
6557 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6558 then
6559 case " $configdirs " in
6560 *" libiberty "*)
6561 # If we can build libiberty, we can also build libiberty-linker-plugin.
6562 configdirs="$configdirs libiberty-linker-plugin"
6563 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6564 --with-libiberty=../libiberty-linker-plugin";;
6566 as_fn_error "libiberty missing" "$LINENO" 5;;
6567 esac
6570 # Sometimes we have special requirements for the host libiberty.
6571 extra_host_libiberty_configure_flags=
6572 case " $configdirs " in
6573 *" lto-plugin "* | *" libcc1 "*)
6574 # When these are to be built as shared libraries, the same applies to
6575 # libiberty.
6576 extra_host_libiberty_configure_flags=--enable-shared
6578 esac
6581 # Produce a warning message for the subdirs we can't configure.
6582 # This isn't especially interesting in the Cygnus tree, but in the individual
6583 # FSF releases, it's important to let people know when their machine isn't
6584 # supported by the one or two programs in a package.
6586 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6587 # If $appdirs is non-empty, at least one of those directories must still
6588 # be configured, or we error out. (E.g., if the gas release supports a
6589 # specified target in some subdirs but not the gas subdir, we shouldn't
6590 # pretend that all is well.)
6591 if test -n "$appdirs" ; then
6592 for dir in $appdirs ; do
6593 if test -r $dir/Makefile.in ; then
6594 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6595 appdirs=""
6596 break
6598 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6599 appdirs=""
6600 break
6603 done
6604 if test -n "$appdirs" ; then
6605 echo "*** This configuration is not supported by this package." 1>&2
6606 exit 1
6609 # Okay, some application will build, or we don't care to check. Still
6610 # notify of subdirs not getting built.
6611 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6612 echo " ${notsupp}" 1>&2
6613 echo " (Any other directories should still work fine.)" 1>&2
6616 case "$host" in
6617 *msdosdjgpp*)
6618 enable_gdbtk=no ;;
6619 esac
6621 # To find our prefix, in gcc_cv_tool_prefix.
6623 # The user is always right.
6624 if test "${PATH_SEPARATOR+set}" != set; then
6625 echo "#! /bin/sh" >conf$$.sh
6626 echo "exit 0" >>conf$$.sh
6627 chmod +x conf$$.sh
6628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6629 PATH_SEPARATOR=';'
6630 else
6631 PATH_SEPARATOR=:
6633 rm -f conf$$.sh
6638 if test "x$exec_prefix" = xNONE; then
6639 if test "x$prefix" = xNONE; then
6640 gcc_cv_tool_prefix=$ac_default_prefix
6641 else
6642 gcc_cv_tool_prefix=$prefix
6644 else
6645 gcc_cv_tool_prefix=$exec_prefix
6648 # If there is no compiler in the tree, use the PATH only. In any
6649 # case, if there is no compiler in the tree nobody should use
6650 # AS_FOR_TARGET and LD_FOR_TARGET.
6651 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6652 gcc_version=`cat $srcdir/gcc/BASE-VER`
6653 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6654 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6655 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6656 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6657 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6658 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6659 else
6660 gcc_cv_tool_dirs=
6663 if test x$build = x$target && test -n "$md_exec_prefix"; then
6664 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6669 copy_dirs=
6672 # Check whether --with-build-sysroot was given.
6673 if test "${with_build_sysroot+set}" = set; then :
6674 withval=$with_build_sysroot; if test x"$withval" != x ; then
6675 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6677 else
6678 SYSROOT_CFLAGS_FOR_TARGET=
6684 # Check whether --with-debug-prefix-map was given.
6685 if test "${with_debug_prefix_map+set}" = set; then :
6686 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6687 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6688 for debug_map in $withval; do
6689 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6690 done
6692 else
6693 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6698 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6699 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6700 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6701 # We want to ensure that TARGET libraries (which we know are built with
6702 # gcc) are built with "-O2 -g", so include those options when setting
6703 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6704 if test "x$CFLAGS_FOR_TARGET" = x; then
6705 CFLAGS_FOR_TARGET=$CFLAGS
6706 case " $CFLAGS " in
6707 *" -O2 "*) ;;
6708 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6709 esac
6710 case " $CFLAGS " in
6711 *" -g "* | *" -g3 "*) ;;
6712 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6713 esac
6717 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6718 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6719 case " $CXXFLAGS " in
6720 *" -O2 "*) ;;
6721 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6722 esac
6723 case " $CXXFLAGS " in
6724 *" -g "* | *" -g3 "*) ;;
6725 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6726 esac
6732 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6733 # the named directory are copied to $(tooldir)/sys-include.
6734 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6735 if test x${is_cross_compiler} = xno ; then
6736 echo 1>&2 '***' --with-headers is only supported when cross compiling
6737 exit 1
6739 if test x"${with_headers}" != xyes ; then
6740 x=${gcc_cv_tool_prefix}
6741 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6745 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6746 # the name directories are copied to $(tooldir)/lib. Multiple directories
6747 # are permitted.
6748 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6749 if test x${is_cross_compiler} = xno ; then
6750 echo 1>&2 '***' --with-libs is only supported when cross compiling
6751 exit 1
6753 if test x"${with_libs}" != xyes ; then
6754 # Copy the libraries in reverse order, so that files in the first named
6755 # library override files in subsequent libraries.
6756 x=${gcc_cv_tool_prefix}
6757 for l in ${with_libs}; do
6758 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6759 done
6763 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6765 # This is done by determining whether or not the appropriate directory
6766 # is available, and by checking whether or not specific configurations
6767 # have requested that this magic not happen.
6769 # The command line options always override the explicit settings in
6770 # configure.in, and the settings in configure.in override this magic.
6772 # If the default for a toolchain is to use GNU as and ld, and you don't
6773 # want to do that, then you should use the --without-gnu-as and
6774 # --without-gnu-ld options for the configure script. Similarly, if
6775 # the default is to use the included zlib and you don't want to do that,
6776 # you should use the --with-system-zlib option for the configure script.
6778 if test x${use_gnu_as} = x &&
6779 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6780 with_gnu_as=yes
6781 extra_host_args="$extra_host_args --with-gnu-as"
6784 if test x${use_gnu_ld} = x &&
6785 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6786 with_gnu_ld=yes
6787 extra_host_args="$extra_host_args --with-gnu-ld"
6790 if test x${use_included_zlib} = x &&
6791 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6793 else
6794 with_system_zlib=yes
6795 extra_host_args="$extra_host_args --with-system-zlib"
6798 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6799 # can detect this case.
6801 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6802 with_newlib=yes
6803 extra_host_args="$extra_host_args --with-newlib"
6806 # Handle ${copy_dirs}
6807 set fnord ${copy_dirs}
6808 shift
6809 while test $# != 0 ; do
6810 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6812 else
6813 echo Copying $1 to $2
6815 # Use the install script to create the directory and all required
6816 # parent directories.
6817 if test -d $2 ; then
6819 else
6820 echo >config.temp
6821 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6824 # Copy the directory, assuming we have tar.
6825 # FIXME: Should we use B in the second tar? Not all systems support it.
6826 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6828 # It is the responsibility of the user to correctly adjust all
6829 # symlinks. If somebody can figure out how to handle them correctly
6830 # here, feel free to add the code.
6832 echo $1 > $2/COPIED
6834 shift; shift
6835 done
6837 # Determine a target-dependent exec_prefix that the installed
6838 # gcc will search in. Keep this list sorted by triplet, with
6839 # the *-*-osname triplets last.
6840 md_exec_prefix=
6841 case "${target}" in
6842 i[34567]86-pc-msdosdjgpp*)
6843 md_exec_prefix=/dev/env/DJDIR/bin
6845 *-*-hpux* | \
6846 *-*-nto-qnx* | \
6847 *-*-solaris2*)
6848 md_exec_prefix=/usr/ccs/bin
6850 esac
6852 extra_arflags_for_target=
6853 extra_nmflags_for_target=
6854 extra_ranlibflags_for_target=
6855 target_makefile_frag=/dev/null
6856 case "${target}" in
6857 spu-*-*)
6858 target_makefile_frag="config/mt-spu"
6860 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6861 target_makefile_frag="config/mt-sde"
6863 mipsisa*-*-elfoabi*)
6864 target_makefile_frag="config/mt-mips-elfoabi"
6866 mips*-*-*linux* | mips*-*-gnu*)
6867 target_makefile_frag="config/mt-mips-gnu"
6869 nios2-*-elf*)
6870 target_makefile_frag="config/mt-nios2-elf"
6872 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6873 target_makefile_frag="config/mt-gnu"
6875 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6876 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6877 # commands to handle both 32-bit and 64-bit objects. These flags are
6878 # harmless if we're using GNU nm or ar.
6879 extra_arflags_for_target=" -X32_64"
6880 extra_nmflags_for_target=" -B -X32_64"
6882 esac
6884 alphaieee_frag=/dev/null
6885 case $target in
6886 alpha*-*-*)
6887 # This just makes sure to use the -mieee option to build target libs.
6888 # This should probably be set individually by each library.
6889 alphaieee_frag="config/mt-alphaieee"
6891 esac
6893 # If --enable-target-optspace always use -Os instead of -O2 to build
6894 # the target libraries, similarly if it is not specified, use -Os
6895 # on selected platforms.
6896 ospace_frag=/dev/null
6897 case "${enable_target_optspace}:${target}" in
6898 yes:*)
6899 ospace_frag="config/mt-ospace"
6901 :d30v-*)
6902 ospace_frag="config/mt-d30v"
6904 :m32r-* | :d10v-* | :fr30-*)
6905 ospace_frag="config/mt-ospace"
6907 no:* | :*)
6910 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6912 esac
6914 # Some systems (e.g., one of the i386-aix systems the gas testers are
6915 # using) don't handle "\$" correctly, so don't use it here.
6916 tooldir='${exec_prefix}'/${target_noncanonical}
6917 build_tooldir=${tooldir}
6919 # Create a .gdbinit file which runs the one in srcdir
6920 # and tells GDB to look there for source files.
6922 if test -r ${srcdir}/.gdbinit ; then
6923 case ${srcdir} in
6924 .) ;;
6925 *) cat > ./.gdbinit <<EOF
6926 # ${NO_EDIT}
6927 dir ${srcdir}
6928 dir .
6929 source ${srcdir}/.gdbinit
6932 esac
6935 # Make sure that the compiler is able to generate an executable. If it
6936 # can't, we are probably in trouble. We don't care whether we can run the
6937 # executable--we might be using a cross compiler--we only care whether it
6938 # can be created. At this point the main configure script has set CC.
6939 we_are_ok=no
6940 echo "int main () { return 0; }" > conftest.c
6941 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6942 if test $? = 0 ; then
6943 if test -s conftest || test -s conftest.exe ; then
6944 we_are_ok=yes
6947 case $we_are_ok in
6949 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6950 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6951 rm -f conftest*
6952 exit 1
6954 esac
6955 rm -f conftest*
6957 # Decide which environment variable is used to find dynamic libraries.
6958 case "${host}" in
6959 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6960 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6961 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6962 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6963 esac
6965 # On systems where the dynamic library environment variable is PATH,
6966 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6967 # built executables to PATH.
6968 if test "$RPATH_ENVVAR" = PATH; then
6969 GCC_SHLIB_SUBDIR=/shlib
6970 else
6971 GCC_SHLIB_SUBDIR=
6974 # Adjust the toplevel makefile according to whether bootstrap was selected.
6975 case $enable_bootstrap in
6976 yes)
6977 bootstrap_suffix=bootstrap
6978 BUILD_CONFIG=bootstrap-debug
6981 bootstrap_suffix=no-bootstrap
6982 BUILD_CONFIG=
6984 esac
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6987 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6990 # Check whether --with-build-config was given.
6991 if test "${with_build_config+set}" = set; then :
6992 withval=$with_build_config; case $with_build_config in
6993 yes) with_build_config= ;;
6994 no) with_build_config= BUILD_CONFIG= ;;
6995 esac
6999 if test "x${with_build_config}" != x; then
7000 BUILD_CONFIG=$with_build_config
7001 else
7002 case $BUILD_CONFIG in
7003 bootstrap-debug)
7004 if echo "int f (void) { return 0; }" > conftest.c &&
7005 ${CC} -c conftest.c &&
7006 mv conftest.o conftest.o.g0 &&
7007 ${CC} -c -g conftest.c &&
7008 mv conftest.o conftest.o.g &&
7009 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7011 else
7012 BUILD_CONFIG=
7014 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7016 esac
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7019 $as_echo "$BUILD_CONFIG" >&6; }
7022 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7024 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7025 # Check whether --enable-vtable-verify was given.
7026 if test "${enable_vtable_verify+set}" = set; then :
7027 enableval=$enable_vtable_verify; case "$enableval" in
7028 yes) enable_vtable_verify=yes ;;
7029 no) enable_vtable_verify=no ;;
7030 *) enable_vtable_verify=no;;
7031 esac
7032 else
7033 enable_vtable_verify=no
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7037 $as_echo "$enable_vtable_verify" >&6; }
7039 # Record target_configdirs and the configure arguments for target and
7040 # build configuration in Makefile.
7041 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7042 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7043 bootstrap_fixincludes=no
7045 # If we are building libgomp, bootstrap it.
7046 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7047 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7050 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7051 # or bootstrap-ubsan, bootstrap it.
7052 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7053 case "$BUILD_CONFIG" in
7054 *bootstrap-asan* | *bootstrap-ubsan* )
7055 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7056 bootstrap_fixincludes=yes
7058 esac
7061 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7062 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7063 test "$enable_vtable_verify" != no; then
7064 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7067 # Determine whether gdb needs tk/tcl or not.
7068 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7069 # and in that case we want gdb to be built without tk. Ugh!
7070 # In fact I believe gdb is the *only* package directly dependent on tk,
7071 # so we should be able to put the 'maybe's in unconditionally and
7072 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7073 # 100% sure that that's safe though.
7075 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7076 case "$enable_gdbtk" in
7078 GDB_TK="" ;;
7079 yes)
7080 GDB_TK="${gdb_tk}" ;;
7082 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7083 # distro. Eventually someone will fix this and move Insight, nee
7084 # gdbtk to a separate directory.
7085 if test -d ${srcdir}/gdb/gdbtk ; then
7086 GDB_TK="${gdb_tk}"
7087 else
7088 GDB_TK=""
7091 esac
7092 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7093 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7095 # Strip out unwanted targets.
7097 # While at that, we remove Makefiles if we were started for recursive
7098 # configuration, so that the top-level Makefile reconfigures them,
7099 # like we used to do when configure itself was recursive.
7101 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7102 # but now we're fixing up the Makefile ourselves with the additional
7103 # commands passed to AC_CONFIG_FILES. Use separate variables
7104 # extrasub-{build,host,target} not because there is any reason to split
7105 # the substitutions up that way, but only to remain below the limit of
7106 # 99 commands in a script, for HP-UX sed.
7107 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7109 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7110 yes:yes:*\ gold\ *:*,c++,*) ;;
7111 yes:yes:*\ gold\ *:*)
7112 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7114 esac
7116 extrasub_build=
7117 for module in ${build_configdirs} ; do
7118 if test -z "${no_recursion}" \
7119 && test -f ${build_subdir}/${module}/Makefile; then
7120 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7121 rm -f ${build_subdir}/${module}/Makefile
7123 extrasub_build="$extrasub_build
7124 /^@if build-$module\$/d
7125 /^@endif build-$module\$/d
7126 /^@if build-$module-$bootstrap_suffix\$/d
7127 /^@endif build-$module-$bootstrap_suffix\$/d"
7128 done
7129 extrasub_host=
7130 for module in ${configdirs} ; do
7131 if test -z "${no_recursion}"; then
7132 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7133 if test -f ${file}; then
7134 echo 1>&2 "*** removing ${file} to force reconfigure"
7135 rm -f ${file}
7137 done
7139 case ${module},${bootstrap_fixincludes} in
7140 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7141 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7142 esac
7143 extrasub_host="$extrasub_host
7144 /^@if $module\$/d
7145 /^@endif $module\$/d
7146 /^@if $module-$host_bootstrap_suffix\$/d
7147 /^@endif $module-$host_bootstrap_suffix\$/d"
7148 done
7149 extrasub_target=
7150 for module in ${target_configdirs} ; do
7151 if test -z "${no_recursion}" \
7152 && test -f ${target_subdir}/${module}/Makefile; then
7153 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7154 rm -f ${target_subdir}/${module}/Makefile
7157 # We only bootstrap target libraries listed in bootstrap_target_libs.
7158 case $bootstrap_target_libs in
7159 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7160 *) target_bootstrap_suffix=no-bootstrap ;;
7161 esac
7163 extrasub_target="$extrasub_target
7164 /^@if target-$module\$/d
7165 /^@endif target-$module\$/d
7166 /^@if target-$module-$target_bootstrap_suffix\$/d
7167 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7168 done
7170 # Do the final fixup along with target modules.
7171 extrasub_target="$extrasub_target
7172 /^@if /,/^@endif /d"
7174 # Create the serialization dependencies. This uses a temporary file.
7176 # Check whether --enable-serial-configure was given.
7177 if test "${enable_serial_configure+set}" = set; then :
7178 enableval=$enable_serial_configure;
7182 case ${enable_serial_configure} in
7183 yes)
7184 enable_serial_build_configure=yes
7185 enable_serial_host_configure=yes
7186 enable_serial_target_configure=yes
7188 esac
7190 # These force 'configure's to be done one at a time, to avoid problems
7191 # with contention over a shared config.cache.
7192 rm -f serdep.tmp
7193 echo '# serdep.tmp' > serdep.tmp
7194 olditem=
7195 test "x${enable_serial_build_configure}" = xyes &&
7196 for item in ${build_configdirs} ; do
7197 case ${olditem} in
7198 "") ;;
7199 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7200 esac
7201 olditem=${item}
7202 done
7203 olditem=
7204 test "x${enable_serial_host_configure}" = xyes &&
7205 for item in ${configdirs} ; do
7206 case ${olditem} in
7207 "") ;;
7208 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7209 esac
7210 olditem=${item}
7211 done
7212 olditem=
7213 test "x${enable_serial_target_configure}" = xyes &&
7214 for item in ${target_configdirs} ; do
7215 case ${olditem} in
7216 "") ;;
7217 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7218 esac
7219 olditem=${item}
7220 done
7221 serialization_dependencies=serdep.tmp
7224 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7225 # target, nonopt, and variable assignments. These are the ones we
7226 # might not want to pass down to subconfigures. The exception being
7227 # --cache-file=/dev/null, which is used to turn off the use of cache
7228 # files altogether, and which should be passed on to subconfigures.
7229 # Also strip program-prefix, program-suffix, and program-transform-name,
7230 # so that we can pass down a consistent program-transform-name.
7231 baseargs=
7232 tbaseargs=
7233 keep_next=no
7234 skip_next=no
7235 eval "set -- $ac_configure_args"
7236 for ac_arg
7238 if test X"$skip_next" = X"yes"; then
7239 skip_next=no
7240 continue
7242 if test X"$keep_next" = X"yes"; then
7243 case $ac_arg in
7244 *\'*)
7245 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7246 esac
7247 baseargs="$baseargs '$ac_arg'"
7248 tbaseargs="$tbaseargs '$ac_arg'"
7249 keep_next=no
7250 continue
7253 # Handle separated arguments. Based on the logic generated by
7254 # autoconf 2.59.
7255 case $ac_arg in
7256 *=* | --config-cache | -C | -disable-* | --disable-* \
7257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7259 | -with-* | --with-* | -without-* | --without-* | --x)
7260 separate_arg=no
7263 separate_arg=yes
7266 separate_arg=no
7268 esac
7270 skip_targ=no
7271 case $ac_arg in
7273 --with-* | --without-*)
7274 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7276 case $libopt in
7277 *[-_]include)
7278 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7280 *[-_]lib)
7281 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7284 lib=$libopt
7286 esac
7289 case $lib in
7290 mpc | mpfr | gmp | isl)
7291 # If we're processing --with-$lib, --with-$lib-include or
7292 # --with-$lib-lib, for one of the libs above, and target is
7293 # different from host, don't pass the current argument to any
7294 # target library's configure.
7295 if test x$is_cross_compiler = xyes; then
7296 skip_targ=yes
7299 esac
7301 esac
7303 case "$ac_arg" in
7304 --cache-file=/dev/null | \
7305 -cache-file=/dev/null )
7306 # Handled here to avoid the test to skip args below.
7307 baseargs="$baseargs '$ac_arg'"
7308 tbaseargs="$tbaseargs '$ac_arg'"
7309 # Assert: $separate_arg should always be no.
7310 keep_next=$separate_arg
7312 --no*)
7313 continue
7315 --c* | \
7316 --sr* | \
7317 --ho* | \
7318 --bu* | \
7319 --t* | \
7320 --program-* | \
7321 -cache_file* | \
7322 -srcdir* | \
7323 -host* | \
7324 -build* | \
7325 -target* | \
7326 -program-prefix* | \
7327 -program-suffix* | \
7328 -program-transform-name* )
7329 skip_next=$separate_arg
7330 continue
7333 # An option. Add it.
7334 case $ac_arg in
7335 *\'*)
7336 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7337 esac
7338 baseargs="$baseargs '$ac_arg'"
7339 if test X"$skip_targ" = Xno; then
7340 tbaseargs="$tbaseargs '$ac_arg'"
7342 keep_next=$separate_arg
7345 # Either a variable assignment, or a nonopt (triplet). Don't
7346 # pass it down; let the Makefile handle this.
7347 continue
7349 esac
7350 done
7351 # Remove the initial space we just introduced and, as these will be
7352 # expanded by make, quote '$'.
7353 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7355 # Add in --program-transform-name, after --program-prefix and
7356 # --program-suffix have been applied to it. Autoconf has already
7357 # doubled dollar signs and backslashes in program_transform_name; we want
7358 # the backslashes un-doubled, and then the entire thing wrapped in single
7359 # quotes, because this will be expanded first by make and then by the shell.
7360 # Also, because we want to override the logic in subdir configure scripts to
7361 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7362 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7363 ${program_transform_name}
7364 EOF_SED
7365 gcc_transform_name=`cat conftestsed.out`
7366 rm -f conftestsed.out
7367 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7368 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7369 if test "$silent" = yes; then
7370 baseargs="$baseargs --silent"
7371 tbaseargs="$tbaseargs --silent"
7373 baseargs="$baseargs --disable-option-checking"
7374 tbaseargs="$tbaseargs --disable-option-checking"
7376 # Record and document user additions to sub configure arguments.
7381 # For the build-side libraries, we just need to pretend we're native,
7382 # and not use the same cache file. Multilibs are neither needed nor
7383 # desired. We can't even use the same cache file for all build-side
7384 # libraries, as they're compiled differently; some with C, some with
7385 # C++ or with different feature-enabling options.
7386 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7388 # For host modules, accept cache file option, or specification as blank.
7389 case "${cache_file}" in
7390 "") # empty
7391 cache_file_option="" ;;
7392 /* | [A-Za-z]:[\\/]* ) # absolute path
7393 cache_file_option="--cache-file=${cache_file}" ;;
7394 *) # relative path
7395 cache_file_option="--cache-file=../${cache_file}" ;;
7396 esac
7398 # Host dirs don't like to share a cache file either, horribly enough.
7399 # This seems to be due to autoconf 2.5x stupidity.
7400 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7402 target_configargs="$target_configargs ${tbaseargs}"
7404 # Passing a --with-cross-host argument lets the target libraries know
7405 # whether they are being built with a cross-compiler or being built
7406 # native. However, it would be better to use other mechanisms to make the
7407 # sorts of decisions they want to make on this basis. Please consider
7408 # this option to be deprecated. FIXME.
7409 if test x${is_cross_compiler} = xyes ; then
7410 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7413 # Special user-friendly check for native x86_64-linux build, if
7414 # multilib is not explicitly enabled.
7415 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7416 x86_64-*linux*:yes:$build:$build:)
7417 # Make sure we have a developement environment that handles 32-bit
7418 dev64=no
7419 echo "int main () { return 0; }" > conftest.c
7420 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7421 if test $? = 0 ; then
7422 if test -s conftest || test -s conftest.exe ; then
7423 dev64=yes
7426 rm -f conftest*
7427 if test x${dev64} != xyes ; then
7428 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
7431 esac
7433 # Default to --enable-multilib.
7434 if test x${enable_multilib} = x ; then
7435 target_configargs="--enable-multilib ${target_configargs}"
7438 # Pass --with-newlib if appropriate. Note that target_configdirs has
7439 # changed from the earlier setting of with_newlib.
7440 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7441 target_configargs="--with-newlib ${target_configargs}"
7444 # Different target subdirs use different values of certain variables
7445 # (notably CXX). Worse, multilibs use *lots* of different values.
7446 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7447 # it doesn't automatically accept command-line overrides of them.
7448 # This means it's not safe for target subdirs to share a cache file,
7449 # which is disgusting, but there you have it. Hopefully this can be
7450 # fixed in future. It's still worthwhile to use a cache file for each
7451 # directory. I think.
7453 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7454 # We need to pass --target, as newer autoconf's requires consistency
7455 # for target_alias and gcc doesn't manage it consistently.
7456 target_configargs="--cache-file=./config.cache ${target_configargs}"
7458 FLAGS_FOR_TARGET=
7459 case " $target_configdirs " in
7460 *" newlib "*)
7461 case " $target_configargs " in
7462 *" --with-newlib "*)
7463 case "$target" in
7464 *-cygwin*)
7465 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7467 esac
7469 # If we're not building GCC, don't discard standard headers.
7470 if test -d ${srcdir}/gcc; then
7471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7473 if test "${build}" != "${host}"; then
7474 # On Canadian crosses, CC_FOR_TARGET will have already been set
7475 # by `configure', so we won't have an opportunity to add -Bgcc/
7476 # to it. This is right: we don't want to search that directory
7477 # for binaries, but we want the header files in there, so add
7478 # them explicitly.
7479 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7481 # Someone might think of using the pre-installed headers on
7482 # Canadian crosses, in case the installed compiler is not fully
7483 # compatible with the compiler being built. In this case, it
7484 # would be better to flag an error than risking having
7485 # incompatible object files being constructed. We can't
7486 # guarantee that an error will be flagged, but let's hope the
7487 # compiler will do it, when presented with incompatible header
7488 # files.
7492 case "${target}-${is_cross_compiler}" in
7493 i[3456789]86-*-linux*-no)
7494 # Here host == target, so we don't need to build gcc,
7495 # so we don't want to discard standard headers.
7496 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7499 # If we're building newlib, use its generic headers last, but search
7500 # for any libc-related directories first (so make it the last -B
7501 # switch).
7502 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7504 # If we're building libgloss, find the startup file, simulator library
7505 # and linker script.
7506 case " $target_configdirs " in
7507 *" libgloss "*)
7508 # Look for startup file, simulator library and maybe linker script.
7509 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7510 # Look for libnosys.a in case the target needs it.
7511 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7512 # Most targets have the linker script in the source directory.
7513 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7515 esac
7517 esac
7519 esac
7521 esac
7523 case "$target" in
7524 x86_64-*mingw* | *-w64-mingw*)
7525 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7526 # however, use a symlink named 'mingw' in ${prefix} .
7527 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7529 *-mingw*)
7530 # MinGW can't be handled as Cygwin above since it does not use newlib.
7531 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'
7533 esac
7535 # Allow the user to override the flags for
7536 # our build compiler if desired.
7537 if test x"${build}" = x"${host}" ; then
7538 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7539 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7540 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7543 # On Canadian crosses, we'll be searching the right directories for
7544 # the previously-installed cross compiler, so don't bother to add
7545 # flags for directories within the install tree of the compiler
7546 # being built; programs in there won't even run.
7547 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7548 # Search for pre-installed headers if nothing else fits.
7549 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7552 if test "x${use_gnu_ld}" = x &&
7553 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7554 # Arrange for us to find uninstalled linker scripts.
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7558 # Search for other target-specific linker scripts and such.
7559 case "${target}" in
7560 mep*)
7561 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7563 esac
7565 # UPC linker script check
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7567 $as_echo_n "checking for UPC link script support... " >&6; }
7568 # Check whether --enable-upc-link-script was given.
7569 if test "${enable_upc_link_script+set}" = set; then :
7570 enableval=$enable_upc_link_script;
7571 case $enableval in
7572 yes | no) ;;
7574 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7576 esac
7578 else
7580 if test x${use_gnu_ld} != xno ; then
7581 case "$target" in
7582 # disable linker script for Apple Mac OS X
7583 *-*-darwin*)
7584 enable_upc_link_script=no
7587 enable_upc_link_script=yes
7589 esac
7590 else
7591 enable_upc_link_script=no
7593 if test "$enable_upc_link_script" = yes; then
7594 target_configargs="${target_configargs} --enable-upc-link-script"
7595 host_configargs="${host_configargs} --enable-upc-link-script"
7600 if test "$enable_upc_link_script" = yes; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7602 $as_echo "yes" >&6; };
7603 else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; };
7609 # Makefile fragments.
7610 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7612 eval fragval=\$$frag
7613 if test $fragval != /dev/null; then
7614 eval $frag=${srcdir}/$fragval
7616 done
7622 # Miscellanea: directories, flags, etc.
7631 # Build module lists & subconfigure args.
7635 # Host module lists & subconfigure args.
7640 # Target module lists & subconfigure args.
7644 # Build tools.
7663 # Generate default definitions for YACC, M4, LEX and other programs that run
7664 # on the build machine. These are used if the Makefile can't locate these
7665 # programs in objdir.
7666 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7668 for ac_prog in 'bison -y' byacc yacc
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_YACC+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 if test -n "$YACC"; then
7678 ac_cv_prog_YACC="$YACC" # 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_YACC="$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 YACC=$ac_cv_prog_YACC
7698 if test -n "$YACC"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7700 $as_echo "$YACC" >&6; }
7701 else
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7707 test -n "$YACC" && break
7708 done
7709 test -n "$YACC" || YACC="$MISSING bison -y"
7711 case " $build_configdirs " in
7712 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7713 esac
7715 for ac_prog in bison
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_BISON+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$BISON"; then
7725 ac_cv_prog_BISON="$BISON" # 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_BISON="$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 BISON=$ac_cv_prog_BISON
7745 if test -n "$BISON"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7747 $as_echo "$BISON" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7754 test -n "$BISON" && break
7755 done
7756 test -n "$BISON" || BISON="$MISSING bison"
7758 case " $build_configdirs " in
7759 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7760 esac
7762 for ac_prog in gm4 gnum4 m4
7764 # Extract the first word of "$ac_prog", so it can be a program name with args.
7765 set dummy $ac_prog; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if test "${ac_cv_prog_M4+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 if test -n "$M4"; then
7772 ac_cv_prog_M4="$M4" # Let the user override the test.
7773 else
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 for as_dir in $PATH
7777 IFS=$as_save_IFS
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7781 ac_cv_prog_M4="$ac_prog"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 break 2
7785 done
7786 done
7787 IFS=$as_save_IFS
7791 M4=$ac_cv_prog_M4
7792 if test -n "$M4"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7794 $as_echo "$M4" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7801 test -n "$M4" && break
7802 done
7803 test -n "$M4" || M4="$MISSING m4"
7805 case " $build_configdirs " in
7806 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7807 esac
7809 for ac_prog in flex lex
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_LEX+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$LEX"; then
7819 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_LEX="$ac_prog"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7838 LEX=$ac_cv_prog_LEX
7839 if test -n "$LEX"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7841 $as_echo "$LEX" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7848 test -n "$LEX" && break
7849 done
7850 test -n "$LEX" || LEX="$MISSING flex"
7852 case " $build_configdirs " in
7853 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7854 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7855 esac
7857 for ac_prog in flex
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_FLEX+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$FLEX"; then
7867 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_FLEX="$ac_prog"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7886 FLEX=$ac_cv_prog_FLEX
7887 if test -n "$FLEX"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7889 $as_echo "$FLEX" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7896 test -n "$FLEX" && break
7897 done
7898 test -n "$FLEX" || FLEX="$MISSING flex"
7900 case " $build_configdirs " in
7901 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7902 esac
7904 for ac_prog in makeinfo
7906 # Extract the first word of "$ac_prog", so it can be a program name with args.
7907 set dummy $ac_prog; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 if test -n "$MAKEINFO"; then
7914 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923 ac_cv_prog_MAKEINFO="$ac_prog"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7927 done
7928 done
7929 IFS=$as_save_IFS
7933 MAKEINFO=$ac_cv_prog_MAKEINFO
7934 if test -n "$MAKEINFO"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7936 $as_echo "$MAKEINFO" >&6; }
7937 else
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7943 test -n "$MAKEINFO" && break
7944 done
7945 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7947 case " $build_configdirs " in
7948 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7951 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7952 # higher, else we use the "missing" dummy.
7953 if ${MAKEINFO} --version \
7954 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7956 else
7957 MAKEINFO="$MISSING makeinfo"
7961 esac
7963 # FIXME: expect and dejagnu may become build tools?
7965 for ac_prog in expect
7967 # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$EXPECT"; then
7975 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_prog_EXPECT="$ac_prog"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7988 done
7989 done
7990 IFS=$as_save_IFS
7994 EXPECT=$ac_cv_prog_EXPECT
7995 if test -n "$EXPECT"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7997 $as_echo "$EXPECT" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8004 test -n "$EXPECT" && break
8005 done
8006 test -n "$EXPECT" || EXPECT="expect"
8008 case " $configdirs " in
8009 *" expect "*)
8010 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8012 esac
8014 for ac_prog in runtest
8016 # Extract the first word of "$ac_prog", so it can be a program name with args.
8017 set dummy $ac_prog; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 if test -n "$RUNTEST"; then
8024 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_prog_RUNTEST="$ac_prog"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8037 done
8038 done
8039 IFS=$as_save_IFS
8043 RUNTEST=$ac_cv_prog_RUNTEST
8044 if test -n "$RUNTEST"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8046 $as_echo "$RUNTEST" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8053 test -n "$RUNTEST" && break
8054 done
8055 test -n "$RUNTEST" || RUNTEST="runtest"
8057 case " $configdirs " in
8058 *" dejagnu "*)
8059 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8061 esac
8064 # Host tools.
8065 ncn_tool_prefix=
8066 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8067 ncn_target_tool_prefix=
8068 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8072 if test -n "$AR"; then
8073 ac_cv_prog_AR=$AR
8074 elif test -n "$ac_cv_prog_AR"; then
8075 AR=$ac_cv_prog_AR
8078 if test -n "$ac_cv_prog_AR"; then
8079 for ncn_progname in ar; do
8080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8081 set dummy ${ncn_progname}; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if test "${ac_cv_prog_AR+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 if test -n "$AR"; then
8088 ac_cv_prog_AR="$AR" # Let the user override the test.
8089 else
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8091 for as_dir in $PATH
8093 IFS=$as_save_IFS
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8097 ac_cv_prog_AR="${ncn_progname}"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 break 2
8101 done
8102 done
8103 IFS=$as_save_IFS
8107 AR=$ac_cv_prog_AR
8108 if test -n "$AR"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8110 $as_echo "$AR" >&6; }
8111 else
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8117 done
8120 for ncn_progname in ar; do
8121 if test -n "$ncn_tool_prefix"; then
8122 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8123 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_AR+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 if test -n "$AR"; then
8130 ac_cv_prog_AR="$AR" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8143 done
8144 done
8145 IFS=$as_save_IFS
8149 AR=$ac_cv_prog_AR
8150 if test -n "$AR"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8152 $as_echo "$AR" >&6; }
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8160 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8162 set dummy ${ncn_progname}; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if test "${ac_cv_prog_AR+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 if test -n "$AR"; then
8169 ac_cv_prog_AR="$AR" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8174 IFS=$as_save_IFS
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_prog_AR="${ncn_progname}"
8179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8180 break 2
8182 done
8183 done
8184 IFS=$as_save_IFS
8188 AR=$ac_cv_prog_AR
8189 if test -n "$AR"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8191 $as_echo "$AR" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8199 test -n "$ac_cv_prog_AR" && break
8200 done
8202 if test -z "$ac_cv_prog_AR" ; then
8203 set dummy ar
8204 if test $build = $host ; then
8205 AR="$2"
8206 else
8207 AR="${ncn_tool_prefix}$2"
8213 if test -n "$AS"; then
8214 ac_cv_prog_AS=$AS
8215 elif test -n "$ac_cv_prog_AS"; then
8216 AS=$ac_cv_prog_AS
8219 if test -n "$ac_cv_prog_AS"; then
8220 for ncn_progname in as; do
8221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8222 set dummy ${ncn_progname}; ac_word=$2
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 $as_echo_n "checking for $ac_word... " >&6; }
8225 if test "${ac_cv_prog_AS+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 if test -n "$AS"; then
8229 ac_cv_prog_AS="$AS" # Let the user override the test.
8230 else
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238 ac_cv_prog_AS="${ncn_progname}"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8242 done
8243 done
8244 IFS=$as_save_IFS
8248 AS=$ac_cv_prog_AS
8249 if test -n "$AS"; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8251 $as_echo "$AS" >&6; }
8252 else
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8258 done
8261 for ncn_progname in as; do
8262 if test -n "$ncn_tool_prefix"; then
8263 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8264 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_AS+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$AS"; then
8271 ac_cv_prog_AS="$AS" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8284 done
8285 done
8286 IFS=$as_save_IFS
8290 AS=$ac_cv_prog_AS
8291 if test -n "$AS"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8293 $as_echo "$AS" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8301 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8303 set dummy ${ncn_progname}; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_AS+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$AS"; then
8310 ac_cv_prog_AS="$AS" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_AS="${ncn_progname}"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8325 IFS=$as_save_IFS
8329 AS=$ac_cv_prog_AS
8330 if test -n "$AS"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8332 $as_echo "$AS" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8340 test -n "$ac_cv_prog_AS" && break
8341 done
8343 if test -z "$ac_cv_prog_AS" ; then
8344 set dummy as
8345 if test $build = $host ; then
8346 AS="$2"
8347 else
8348 AS="${ncn_tool_prefix}$2"
8354 if test -n "$DLLTOOL"; then
8355 ac_cv_prog_DLLTOOL=$DLLTOOL
8356 elif test -n "$ac_cv_prog_DLLTOOL"; then
8357 DLLTOOL=$ac_cv_prog_DLLTOOL
8360 if test -n "$ac_cv_prog_DLLTOOL"; then
8361 for ncn_progname in dlltool; do
8362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8363 set dummy ${ncn_progname}; ac_word=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 if test -n "$DLLTOOL"; then
8370 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8371 else
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373 for as_dir in $PATH
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_prog_DLLTOOL="${ncn_progname}"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8383 done
8384 done
8385 IFS=$as_save_IFS
8389 DLLTOOL=$ac_cv_prog_DLLTOOL
8390 if test -n "$DLLTOOL"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8392 $as_echo "$DLLTOOL" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8399 done
8402 for ncn_progname in dlltool; do
8403 if test -n "$ncn_tool_prefix"; then
8404 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8405 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 if test -n "$DLLTOOL"; then
8412 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8425 done
8426 done
8427 IFS=$as_save_IFS
8431 DLLTOOL=$ac_cv_prog_DLLTOOL
8432 if test -n "$DLLTOOL"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8434 $as_echo "$DLLTOOL" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8442 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8444 set dummy ${ncn_progname}; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 if test -n "$DLLTOOL"; then
8451 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8460 ac_cv_prog_DLLTOOL="${ncn_progname}"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8464 done
8465 done
8466 IFS=$as_save_IFS
8470 DLLTOOL=$ac_cv_prog_DLLTOOL
8471 if test -n "$DLLTOOL"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8473 $as_echo "$DLLTOOL" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8481 test -n "$ac_cv_prog_DLLTOOL" && break
8482 done
8484 if test -z "$ac_cv_prog_DLLTOOL" ; then
8485 set dummy dlltool
8486 if test $build = $host ; then
8487 DLLTOOL="$2"
8488 else
8489 DLLTOOL="${ncn_tool_prefix}$2"
8495 if test -n "$LD"; then
8496 ac_cv_prog_LD=$LD
8497 elif test -n "$ac_cv_prog_LD"; then
8498 LD=$ac_cv_prog_LD
8501 if test -n "$ac_cv_prog_LD"; then
8502 for ncn_progname in ld; do
8503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8504 set dummy ${ncn_progname}; ac_word=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if test "${ac_cv_prog_LD+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 if test -n "$LD"; then
8511 ac_cv_prog_LD="$LD" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520 ac_cv_prog_LD="${ncn_progname}"
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8524 done
8525 done
8526 IFS=$as_save_IFS
8530 LD=$ac_cv_prog_LD
8531 if test -n "$LD"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8533 $as_echo "$LD" >&6; }
8534 else
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8540 done
8543 for ncn_progname in ld; do
8544 if test -n "$ncn_tool_prefix"; then
8545 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8546 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if test "${ac_cv_prog_LD+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 if test -n "$LD"; then
8553 ac_cv_prog_LD="$LD" # Let the user override the test.
8554 else
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 for as_dir in $PATH
8558 IFS=$as_save_IFS
8559 test -z "$as_dir" && as_dir=.
8560 for ac_exec_ext in '' $ac_executable_extensions; do
8561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 break 2
8566 done
8567 done
8568 IFS=$as_save_IFS
8572 LD=$ac_cv_prog_LD
8573 if test -n "$LD"; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8575 $as_echo "$LD" >&6; }
8576 else
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8583 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8585 set dummy ${ncn_progname}; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_LD+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 if test -n "$LD"; then
8592 ac_cv_prog_LD="$LD" # Let the user override the test.
8593 else
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595 for as_dir in $PATH
8597 IFS=$as_save_IFS
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_LD="${ncn_progname}"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8603 break 2
8605 done
8606 done
8607 IFS=$as_save_IFS
8611 LD=$ac_cv_prog_LD
8612 if test -n "$LD"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8614 $as_echo "$LD" >&6; }
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8622 test -n "$ac_cv_prog_LD" && break
8623 done
8625 if test -z "$ac_cv_prog_LD" ; then
8626 set dummy ld
8627 if test $build = $host ; then
8628 LD="$2"
8629 else
8630 LD="${ncn_tool_prefix}$2"
8636 if test -n "$LIPO"; then
8637 ac_cv_prog_LIPO=$LIPO
8638 elif test -n "$ac_cv_prog_LIPO"; then
8639 LIPO=$ac_cv_prog_LIPO
8642 if test -n "$ac_cv_prog_LIPO"; then
8643 for ncn_progname in lipo; do
8644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8645 set dummy ${ncn_progname}; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_LIPO+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 if test -n "$LIPO"; then
8652 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8657 IFS=$as_save_IFS
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_prog_LIPO="${ncn_progname}"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663 break 2
8665 done
8666 done
8667 IFS=$as_save_IFS
8671 LIPO=$ac_cv_prog_LIPO
8672 if test -n "$LIPO"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8674 $as_echo "$LIPO" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8681 done
8684 for ncn_progname in lipo; do
8685 if test -n "$ncn_tool_prefix"; then
8686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8687 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_prog_LIPO+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 if test -n "$LIPO"; then
8694 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8703 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8707 done
8708 done
8709 IFS=$as_save_IFS
8713 LIPO=$ac_cv_prog_LIPO
8714 if test -n "$LIPO"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8716 $as_echo "$LIPO" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8724 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8726 set dummy ${ncn_progname}; ac_word=$2
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8728 $as_echo_n "checking for $ac_word... " >&6; }
8729 if test "${ac_cv_prog_LIPO+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test -n "$LIPO"; then
8733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8742 ac_cv_prog_LIPO="${ncn_progname}"
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8746 done
8747 done
8748 IFS=$as_save_IFS
8752 LIPO=$ac_cv_prog_LIPO
8753 if test -n "$LIPO"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8755 $as_echo "$LIPO" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8763 test -n "$ac_cv_prog_LIPO" && break
8764 done
8766 if test -z "$ac_cv_prog_LIPO" ; then
8767 set dummy lipo
8768 if test $build = $host ; then
8769 LIPO="$2"
8770 else
8771 LIPO="${ncn_tool_prefix}$2"
8777 if test -n "$NM"; then
8778 ac_cv_prog_NM=$NM
8779 elif test -n "$ac_cv_prog_NM"; then
8780 NM=$ac_cv_prog_NM
8783 if test -n "$ac_cv_prog_NM"; then
8784 for ncn_progname in nm; do
8785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8786 set dummy ${ncn_progname}; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if test "${ac_cv_prog_NM+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 if test -n "$NM"; then
8793 ac_cv_prog_NM="$NM" # Let the user override the test.
8794 else
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8802 ac_cv_prog_NM="${ncn_progname}"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8806 done
8807 done
8808 IFS=$as_save_IFS
8812 NM=$ac_cv_prog_NM
8813 if test -n "$NM"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8815 $as_echo "$NM" >&6; }
8816 else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8822 done
8825 for ncn_progname in nm; do
8826 if test -n "$ncn_tool_prefix"; then
8827 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8828 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if test "${ac_cv_prog_NM+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 if test -n "$NM"; then
8835 ac_cv_prog_NM="$NM" # Let the user override the test.
8836 else
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8844 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 break 2
8848 done
8849 done
8850 IFS=$as_save_IFS
8854 NM=$ac_cv_prog_NM
8855 if test -n "$NM"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8857 $as_echo "$NM" >&6; }
8858 else
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8865 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8867 set dummy ${ncn_progname}; ac_word=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if test "${ac_cv_prog_NM+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873 if test -n "$NM"; then
8874 ac_cv_prog_NM="$NM" # Let the user override the test.
8875 else
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_prog_NM="${ncn_progname}"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8893 NM=$ac_cv_prog_NM
8894 if test -n "$NM"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8896 $as_echo "$NM" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8904 test -n "$ac_cv_prog_NM" && break
8905 done
8907 if test -z "$ac_cv_prog_NM" ; then
8908 set dummy nm
8909 if test $build = $host ; then
8910 NM="$2"
8911 else
8912 NM="${ncn_tool_prefix}$2"
8918 if test -n "$RANLIB"; then
8919 ac_cv_prog_RANLIB=$RANLIB
8920 elif test -n "$ac_cv_prog_RANLIB"; then
8921 RANLIB=$ac_cv_prog_RANLIB
8924 if test -n "$ac_cv_prog_RANLIB"; then
8925 for ncn_progname in ranlib; do
8926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8927 set dummy ${ncn_progname}; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 if test -n "$RANLIB"; then
8934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8935 else
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8943 ac_cv_prog_RANLIB="${ncn_progname}"
8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8947 done
8948 done
8949 IFS=$as_save_IFS
8953 RANLIB=$ac_cv_prog_RANLIB
8954 if test -n "$RANLIB"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8956 $as_echo "$RANLIB" >&6; }
8957 else
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8963 done
8966 for ncn_progname in ranlib; do
8967 if test -n "$ncn_tool_prefix"; then
8968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8969 set dummy ${ncn_tool_prefix}${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_RANLIB+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 if test -n "$RANLIB"; then
8976 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ncn_tool_prefix}${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 RANLIB=$ac_cv_prog_RANLIB
8996 if test -n "$RANLIB"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8998 $as_echo "$RANLIB" >&6; }
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9006 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9008 set dummy ${ncn_progname}; ac_word=$2
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 $as_echo_n "checking for $ac_word... " >&6; }
9011 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9012 $as_echo_n "(cached) " >&6
9013 else
9014 if test -n "$RANLIB"; then
9015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9016 else
9017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018 for as_dir in $PATH
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_prog_RANLIB="${ncn_progname}"
9025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9028 done
9029 done
9030 IFS=$as_save_IFS
9034 RANLIB=$ac_cv_prog_RANLIB
9035 if test -n "$RANLIB"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9037 $as_echo "$RANLIB" >&6; }
9038 else
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9045 test -n "$ac_cv_prog_RANLIB" && break
9046 done
9048 if test -z "$ac_cv_prog_RANLIB" ; then
9049 RANLIB="true"
9054 if test -n "$STRIP"; then
9055 ac_cv_prog_STRIP=$STRIP
9056 elif test -n "$ac_cv_prog_STRIP"; then
9057 STRIP=$ac_cv_prog_STRIP
9060 if test -n "$ac_cv_prog_STRIP"; then
9061 for ncn_progname in strip; do
9062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9063 set dummy ${ncn_progname}; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if test "${ac_cv_prog_STRIP+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 if test -n "$STRIP"; then
9070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9079 ac_cv_prog_STRIP="${ncn_progname}"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9083 done
9084 done
9085 IFS=$as_save_IFS
9089 STRIP=$ac_cv_prog_STRIP
9090 if test -n "$STRIP"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9092 $as_echo "$STRIP" >&6; }
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9099 done
9102 for ncn_progname in strip; do
9103 if test -n "$ncn_tool_prefix"; then
9104 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9105 set dummy ${ncn_tool_prefix}${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_STRIP+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 if test -n "$STRIP"; then
9112 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ncn_tool_prefix}${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 STRIP=$ac_cv_prog_STRIP
9132 if test -n "$STRIP"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9134 $as_echo "$STRIP" >&6; }
9135 else
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9142 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9144 set dummy ${ncn_progname}; ac_word=$2
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146 $as_echo_n "checking for $ac_word... " >&6; }
9147 if test "${ac_cv_prog_STRIP+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 if test -n "$STRIP"; then
9151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9152 else
9153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 for as_dir in $PATH
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9160 ac_cv_prog_STRIP="${ncn_progname}"
9161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9162 break 2
9164 done
9165 done
9166 IFS=$as_save_IFS
9170 STRIP=$ac_cv_prog_STRIP
9171 if test -n "$STRIP"; then
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9173 $as_echo "$STRIP" >&6; }
9174 else
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9181 test -n "$ac_cv_prog_STRIP" && break
9182 done
9184 if test -z "$ac_cv_prog_STRIP" ; then
9185 STRIP="true"
9190 if test -n "$WINDRES"; then
9191 ac_cv_prog_WINDRES=$WINDRES
9192 elif test -n "$ac_cv_prog_WINDRES"; then
9193 WINDRES=$ac_cv_prog_WINDRES
9196 if test -n "$ac_cv_prog_WINDRES"; then
9197 for ncn_progname in windres; do
9198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9199 set dummy ${ncn_progname}; ac_word=$2
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 if test -n "$WINDRES"; then
9206 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9207 else
9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 for as_dir in $PATH
9211 IFS=$as_save_IFS
9212 test -z "$as_dir" && as_dir=.
9213 for ac_exec_ext in '' $ac_executable_extensions; do
9214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9215 ac_cv_prog_WINDRES="${ncn_progname}"
9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9217 break 2
9219 done
9220 done
9221 IFS=$as_save_IFS
9225 WINDRES=$ac_cv_prog_WINDRES
9226 if test -n "$WINDRES"; then
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9228 $as_echo "$WINDRES" >&6; }
9229 else
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9235 done
9238 for ncn_progname in windres; do
9239 if test -n "$ncn_tool_prefix"; then
9240 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9241 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 if test -n "$WINDRES"; then
9248 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9249 else
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9261 done
9262 done
9263 IFS=$as_save_IFS
9267 WINDRES=$ac_cv_prog_WINDRES
9268 if test -n "$WINDRES"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9270 $as_echo "$WINDRES" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9278 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9280 set dummy ${ncn_progname}; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 if test -n "$WINDRES"; then
9287 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9288 else
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 for as_dir in $PATH
9292 IFS=$as_save_IFS
9293 test -z "$as_dir" && as_dir=.
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296 ac_cv_prog_WINDRES="${ncn_progname}"
9297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9298 break 2
9300 done
9301 done
9302 IFS=$as_save_IFS
9306 WINDRES=$ac_cv_prog_WINDRES
9307 if test -n "$WINDRES"; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9309 $as_echo "$WINDRES" >&6; }
9310 else
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 $as_echo "no" >&6; }
9317 test -n "$ac_cv_prog_WINDRES" && break
9318 done
9320 if test -z "$ac_cv_prog_WINDRES" ; then
9321 set dummy windres
9322 if test $build = $host ; then
9323 WINDRES="$2"
9324 else
9325 WINDRES="${ncn_tool_prefix}$2"
9331 if test -n "$WINDMC"; then
9332 ac_cv_prog_WINDMC=$WINDMC
9333 elif test -n "$ac_cv_prog_WINDMC"; then
9334 WINDMC=$ac_cv_prog_WINDMC
9337 if test -n "$ac_cv_prog_WINDMC"; then
9338 for ncn_progname in windmc; do
9339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9340 set dummy ${ncn_progname}; ac_word=$2
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342 $as_echo_n "checking for $ac_word... " >&6; }
9343 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 if test -n "$WINDMC"; then
9347 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9348 else
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356 ac_cv_prog_WINDMC="${ncn_progname}"
9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9360 done
9361 done
9362 IFS=$as_save_IFS
9366 WINDMC=$ac_cv_prog_WINDMC
9367 if test -n "$WINDMC"; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9369 $as_echo "$WINDMC" >&6; }
9370 else
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9376 done
9379 for ncn_progname in windmc; do
9380 if test -n "$ncn_tool_prefix"; then
9381 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9382 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9386 $as_echo_n "(cached) " >&6
9387 else
9388 if test -n "$WINDMC"; then
9389 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9390 else
9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9392 for as_dir in $PATH
9394 IFS=$as_save_IFS
9395 test -z "$as_dir" && as_dir=.
9396 for ac_exec_ext in '' $ac_executable_extensions; do
9397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9398 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 break 2
9402 done
9403 done
9404 IFS=$as_save_IFS
9408 WINDMC=$ac_cv_prog_WINDMC
9409 if test -n "$WINDMC"; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9411 $as_echo "$WINDMC" >&6; }
9412 else
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9414 $as_echo "no" >&6; }
9419 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9421 set dummy ${ncn_progname}; ac_word=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 if test -n "$WINDMC"; then
9428 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9429 else
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431 for as_dir in $PATH
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_prog_WINDMC="${ncn_progname}"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9441 done
9442 done
9443 IFS=$as_save_IFS
9447 WINDMC=$ac_cv_prog_WINDMC
9448 if test -n "$WINDMC"; then
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9450 $as_echo "$WINDMC" >&6; }
9451 else
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9458 test -n "$ac_cv_prog_WINDMC" && break
9459 done
9461 if test -z "$ac_cv_prog_WINDMC" ; then
9462 set dummy windmc
9463 if test $build = $host ; then
9464 WINDMC="$2"
9465 else
9466 WINDMC="${ncn_tool_prefix}$2"
9472 if test -n "$OBJCOPY"; then
9473 ac_cv_prog_OBJCOPY=$OBJCOPY
9474 elif test -n "$ac_cv_prog_OBJCOPY"; then
9475 OBJCOPY=$ac_cv_prog_OBJCOPY
9478 if test -n "$ac_cv_prog_OBJCOPY"; then
9479 for ncn_progname in objcopy; do
9480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481 set dummy ${ncn_progname}; ac_word=$2
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483 $as_echo_n "checking for $ac_word... " >&6; }
9484 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9486 else
9487 if test -n "$OBJCOPY"; then
9488 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9489 else
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497 ac_cv_prog_OBJCOPY="${ncn_progname}"
9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9501 done
9502 done
9503 IFS=$as_save_IFS
9507 OBJCOPY=$ac_cv_prog_OBJCOPY
9508 if test -n "$OBJCOPY"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9510 $as_echo "$OBJCOPY" >&6; }
9511 else
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9517 done
9520 for ncn_progname in objcopy; do
9521 if test -n "$ncn_tool_prefix"; then
9522 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9523 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 if test -n "$OBJCOPY"; then
9530 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9531 else
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 break 2
9543 done
9544 done
9545 IFS=$as_save_IFS
9549 OBJCOPY=$ac_cv_prog_OBJCOPY
9550 if test -n "$OBJCOPY"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9552 $as_echo "$OBJCOPY" >&6; }
9553 else
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9560 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9562 set dummy ${ncn_progname}; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 if test -n "$OBJCOPY"; then
9569 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9570 else
9571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 for as_dir in $PATH
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9578 ac_cv_prog_OBJCOPY="${ncn_progname}"
9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 break 2
9582 done
9583 done
9584 IFS=$as_save_IFS
9588 OBJCOPY=$ac_cv_prog_OBJCOPY
9589 if test -n "$OBJCOPY"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9591 $as_echo "$OBJCOPY" >&6; }
9592 else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9599 test -n "$ac_cv_prog_OBJCOPY" && break
9600 done
9602 if test -z "$ac_cv_prog_OBJCOPY" ; then
9603 set dummy objcopy
9604 if test $build = $host ; then
9605 OBJCOPY="$2"
9606 else
9607 OBJCOPY="${ncn_tool_prefix}$2"
9613 if test -n "$OBJDUMP"; then
9614 ac_cv_prog_OBJDUMP=$OBJDUMP
9615 elif test -n "$ac_cv_prog_OBJDUMP"; then
9616 OBJDUMP=$ac_cv_prog_OBJDUMP
9619 if test -n "$ac_cv_prog_OBJDUMP"; then
9620 for ncn_progname in objdump; do
9621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9622 set dummy ${ncn_progname}; ac_word=$2
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 $as_echo_n "checking for $ac_word... " >&6; }
9625 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 if test -n "$OBJDUMP"; then
9629 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9630 else
9631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9634 IFS=$as_save_IFS
9635 test -z "$as_dir" && as_dir=.
9636 for ac_exec_ext in '' $ac_executable_extensions; do
9637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9638 ac_cv_prog_OBJDUMP="${ncn_progname}"
9639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 break 2
9642 done
9643 done
9644 IFS=$as_save_IFS
9648 OBJDUMP=$ac_cv_prog_OBJDUMP
9649 if test -n "$OBJDUMP"; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9651 $as_echo "$OBJDUMP" >&6; }
9652 else
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 $as_echo "no" >&6; }
9658 done
9661 for ncn_progname in objdump; do
9662 if test -n "$ncn_tool_prefix"; then
9663 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9664 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9666 $as_echo_n "checking for $ac_word... " >&6; }
9667 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 if test -n "$OBJDUMP"; then
9671 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9672 else
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9680 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9684 done
9685 done
9686 IFS=$as_save_IFS
9690 OBJDUMP=$ac_cv_prog_OBJDUMP
9691 if test -n "$OBJDUMP"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9693 $as_echo "$OBJDUMP" >&6; }
9694 else
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9701 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9703 set dummy ${ncn_progname}; ac_word=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 if test -n "$OBJDUMP"; then
9710 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9711 else
9712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713 for as_dir in $PATH
9715 IFS=$as_save_IFS
9716 test -z "$as_dir" && as_dir=.
9717 for ac_exec_ext in '' $ac_executable_extensions; do
9718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9719 ac_cv_prog_OBJDUMP="${ncn_progname}"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721 break 2
9723 done
9724 done
9725 IFS=$as_save_IFS
9729 OBJDUMP=$ac_cv_prog_OBJDUMP
9730 if test -n "$OBJDUMP"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9732 $as_echo "$OBJDUMP" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9740 test -n "$ac_cv_prog_OBJDUMP" && break
9741 done
9743 if test -z "$ac_cv_prog_OBJDUMP" ; then
9744 set dummy objdump
9745 if test $build = $host ; then
9746 OBJDUMP="$2"
9747 else
9748 OBJDUMP="${ncn_tool_prefix}$2"
9754 if test -n "$READELF"; then
9755 ac_cv_prog_READELF=$READELF
9756 elif test -n "$ac_cv_prog_READELF"; then
9757 READELF=$ac_cv_prog_READELF
9760 if test -n "$ac_cv_prog_READELF"; then
9761 for ncn_progname in readelf; do
9762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9763 set dummy ${ncn_progname}; ac_word=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if test "${ac_cv_prog_READELF+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 if test -n "$READELF"; then
9770 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9771 else
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9773 for as_dir in $PATH
9775 IFS=$as_save_IFS
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_prog_READELF="${ncn_progname}"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 break 2
9783 done
9784 done
9785 IFS=$as_save_IFS
9789 READELF=$ac_cv_prog_READELF
9790 if test -n "$READELF"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9792 $as_echo "$READELF" >&6; }
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9799 done
9802 for ncn_progname in readelf; do
9803 if test -n "$ncn_tool_prefix"; then
9804 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9805 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if test "${ac_cv_prog_READELF+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 if test -n "$READELF"; then
9812 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9813 else
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9821 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9825 done
9826 done
9827 IFS=$as_save_IFS
9831 READELF=$ac_cv_prog_READELF
9832 if test -n "$READELF"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9834 $as_echo "$READELF" >&6; }
9835 else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9842 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9844 set dummy ${ncn_progname}; ac_word=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if test "${ac_cv_prog_READELF+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 if test -n "$READELF"; then
9851 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9852 else
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854 for as_dir in $PATH
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9860 ac_cv_prog_READELF="${ncn_progname}"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9864 done
9865 done
9866 IFS=$as_save_IFS
9870 READELF=$ac_cv_prog_READELF
9871 if test -n "$READELF"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9873 $as_echo "$READELF" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9881 test -n "$ac_cv_prog_READELF" && break
9882 done
9884 if test -z "$ac_cv_prog_READELF" ; then
9885 set dummy readelf
9886 if test $build = $host ; then
9887 READELF="$2"
9888 else
9889 READELF="${ncn_tool_prefix}$2"
9898 # Target tools.
9900 # Check whether --with-build-time-tools was given.
9901 if test "${with_build_time_tools+set}" = set; then :
9902 withval=$with_build_time_tools; case x"$withval" in
9903 x/*) ;;
9905 with_build_time_tools=
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9907 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9909 esac
9910 else
9911 with_build_time_tools=
9917 if test -n "$CC_FOR_TARGET"; then
9918 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9919 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9920 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9923 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9924 for ncn_progname in cc gcc; do
9925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9926 set dummy ${ncn_progname}; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 if test -n "$CC_FOR_TARGET"; then
9933 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9934 else
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936 for as_dir in $PATH
9938 IFS=$as_save_IFS
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9942 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9944 break 2
9946 done
9947 done
9948 IFS=$as_save_IFS
9952 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9953 if test -n "$CC_FOR_TARGET"; then
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9955 $as_echo "$CC_FOR_TARGET" >&6; }
9956 else
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958 $as_echo "no" >&6; }
9962 done
9965 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9966 for ncn_progname in cc gcc; do
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9968 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9969 if test -x $with_build_time_tools/${ncn_progname}; then
9970 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9972 $as_echo "yes" >&6; }
9973 break
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9978 done
9981 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9982 for ncn_progname in cc gcc; do
9983 if test -n "$ncn_target_tool_prefix"; then
9984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9985 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9989 $as_echo_n "(cached) " >&6
9990 else
9991 if test -n "$CC_FOR_TARGET"; then
9992 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9993 else
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10005 done
10006 done
10007 IFS=$as_save_IFS
10011 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10012 if test -n "$CC_FOR_TARGET"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10014 $as_echo "$CC_FOR_TARGET" >&6; }
10015 else
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10022 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10024 set dummy ${ncn_progname}; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 if test -n "$CC_FOR_TARGET"; then
10031 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10032 else
10033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10034 for as_dir in $PATH
10036 IFS=$as_save_IFS
10037 test -z "$as_dir" && as_dir=.
10038 for ac_exec_ext in '' $ac_executable_extensions; do
10039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10040 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10042 break 2
10044 done
10045 done
10046 IFS=$as_save_IFS
10050 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10051 if test -n "$CC_FOR_TARGET"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10053 $as_echo "$CC_FOR_TARGET" >&6; }
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10061 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10062 done
10065 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10066 set dummy cc gcc
10067 if test $build = $target ; then
10068 CC_FOR_TARGET="$2"
10069 else
10070 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10072 else
10073 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10078 if test -n "$CXX_FOR_TARGET"; then
10079 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10080 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10081 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10084 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10085 for ncn_progname in c++ g++ cxx gxx; do
10086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10087 set dummy ${ncn_progname}; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10092 else
10093 if test -n "$CXX_FOR_TARGET"; then
10094 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10095 else
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10107 done
10108 done
10109 IFS=$as_save_IFS
10113 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10114 if test -n "$CXX_FOR_TARGET"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10116 $as_echo "$CXX_FOR_TARGET" >&6; }
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10123 done
10126 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10127 for ncn_progname in c++ g++ cxx gxx; do
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10129 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10130 if test -x $with_build_time_tools/${ncn_progname}; then
10131 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10133 $as_echo "yes" >&6; }
10134 break
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 $as_echo "no" >&6; }
10139 done
10142 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10143 for ncn_progname in c++ g++ cxx gxx; do
10144 if test -n "$ncn_target_tool_prefix"; then
10145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10146 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148 $as_echo_n "checking for $ac_word... " >&6; }
10149 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 if test -n "$CXX_FOR_TARGET"; then
10153 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10154 else
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10166 done
10167 done
10168 IFS=$as_save_IFS
10172 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10173 if test -n "$CXX_FOR_TARGET"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10175 $as_echo "$CXX_FOR_TARGET" >&6; }
10176 else
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10183 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10185 set dummy ${ncn_progname}; ac_word=$2
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10187 $as_echo_n "checking for $ac_word... " >&6; }
10188 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 if test -n "$CXX_FOR_TARGET"; then
10192 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10193 else
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10201 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10205 done
10206 done
10207 IFS=$as_save_IFS
10211 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10212 if test -n "$CXX_FOR_TARGET"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10214 $as_echo "$CXX_FOR_TARGET" >&6; }
10215 else
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10222 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10223 done
10226 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10227 set dummy c++ g++ cxx gxx
10228 if test $build = $target ; then
10229 CXX_FOR_TARGET="$2"
10230 else
10231 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10233 else
10234 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10239 if test -n "$GCC_FOR_TARGET"; then
10240 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10241 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10242 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10245 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10246 for ncn_progname in gcc; do
10247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10248 set dummy ${ncn_progname}; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 if test -n "$GCC_FOR_TARGET"; then
10255 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10256 else
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 break 2
10268 done
10269 done
10270 IFS=$as_save_IFS
10274 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10275 if test -n "$GCC_FOR_TARGET"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10277 $as_echo "$GCC_FOR_TARGET" >&6; }
10278 else
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10284 done
10287 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10288 for ncn_progname in gcc; do
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10290 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10291 if test -x $with_build_time_tools/${ncn_progname}; then
10292 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294 $as_echo "yes" >&6; }
10295 break
10296 else
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10298 $as_echo "no" >&6; }
10300 done
10303 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10304 for ncn_progname in gcc; do
10305 if test -n "$ncn_target_tool_prefix"; then
10306 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10307 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 if test -n "$GCC_FOR_TARGET"; then
10314 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10315 else
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10323 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10327 done
10328 done
10329 IFS=$as_save_IFS
10333 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10334 if test -n "$GCC_FOR_TARGET"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10336 $as_echo "$GCC_FOR_TARGET" >&6; }
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10344 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10346 set dummy ${ncn_progname}; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 if test -n "$GCC_FOR_TARGET"; then
10353 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10354 else
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 break 2
10366 done
10367 done
10368 IFS=$as_save_IFS
10372 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10373 if test -n "$GCC_FOR_TARGET"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10375 $as_echo "$GCC_FOR_TARGET" >&6; }
10376 else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10383 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10384 done
10387 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10388 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10389 else
10390 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10395 if test -n "$GCJ_FOR_TARGET"; then
10396 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10397 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10398 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10401 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10402 for ncn_progname in gcj; do
10403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10404 set dummy ${ncn_progname}; ac_word=$2
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10406 $as_echo_n "checking for $ac_word... " >&6; }
10407 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 if test -n "$GCJ_FOR_TARGET"; then
10411 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10412 else
10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414 for as_dir in $PATH
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
10418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10420 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10422 break 2
10424 done
10425 done
10426 IFS=$as_save_IFS
10430 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10431 if test -n "$GCJ_FOR_TARGET"; then
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10433 $as_echo "$GCJ_FOR_TARGET" >&6; }
10434 else
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436 $as_echo "no" >&6; }
10440 done
10443 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10444 for ncn_progname in gcj; do
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10446 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10447 if test -x $with_build_time_tools/${ncn_progname}; then
10448 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10450 $as_echo "yes" >&6; }
10451 break
10452 else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10456 done
10459 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10460 for ncn_progname in gcj; do
10461 if test -n "$ncn_target_tool_prefix"; then
10462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10463 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10465 $as_echo_n "checking for $ac_word... " >&6; }
10466 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10467 $as_echo_n "(cached) " >&6
10468 else
10469 if test -n "$GCJ_FOR_TARGET"; then
10470 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10471 else
10472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473 for as_dir in $PATH
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10479 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10483 done
10484 done
10485 IFS=$as_save_IFS
10489 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10490 if test -n "$GCJ_FOR_TARGET"; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10492 $as_echo "$GCJ_FOR_TARGET" >&6; }
10493 else
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10495 $as_echo "no" >&6; }
10500 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10502 set dummy ${ncn_progname}; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 if test -n "$GCJ_FOR_TARGET"; then
10509 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10510 else
10511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10514 IFS=$as_save_IFS
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10518 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10520 break 2
10522 done
10523 done
10524 IFS=$as_save_IFS
10528 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10529 if test -n "$GCJ_FOR_TARGET"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10531 $as_echo "$GCJ_FOR_TARGET" >&6; }
10532 else
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10539 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10540 done
10543 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10544 set dummy gcj
10545 if test $build = $target ; then
10546 GCJ_FOR_TARGET="$2"
10547 else
10548 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10550 else
10551 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10556 if test -n "$GFORTRAN_FOR_TARGET"; then
10557 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10558 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10559 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10562 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10563 for ncn_progname in gfortran; do
10564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10565 set dummy ${ncn_progname}; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567 $as_echo_n "checking for $ac_word... " >&6; }
10568 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 if test -n "$GFORTRAN_FOR_TARGET"; then
10572 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10585 done
10586 done
10587 IFS=$as_save_IFS
10591 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10592 if test -n "$GFORTRAN_FOR_TARGET"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10594 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10595 else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597 $as_echo "no" >&6; }
10601 done
10604 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10605 for ncn_progname in gfortran; do
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10607 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10608 if test -x $with_build_time_tools/${ncn_progname}; then
10609 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611 $as_echo "yes" >&6; }
10612 break
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10617 done
10620 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10621 for ncn_progname in gfortran; do
10622 if test -n "$ncn_target_tool_prefix"; then
10623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10624 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626 $as_echo_n "checking for $ac_word... " >&6; }
10627 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10628 $as_echo_n "(cached) " >&6
10629 else
10630 if test -n "$GFORTRAN_FOR_TARGET"; then
10631 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10632 else
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10642 break 2
10644 done
10645 done
10646 IFS=$as_save_IFS
10650 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10651 if test -n "$GFORTRAN_FOR_TARGET"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10653 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10654 else
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10661 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10663 set dummy ${ncn_progname}; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 if test -n "$GFORTRAN_FOR_TARGET"; then
10670 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10671 else
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10679 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 break 2
10683 done
10684 done
10685 IFS=$as_save_IFS
10689 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10690 if test -n "$GFORTRAN_FOR_TARGET"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10692 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10693 else
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10700 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10701 done
10704 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10705 set dummy gfortran
10706 if test $build = $target ; then
10707 GFORTRAN_FOR_TARGET="$2"
10708 else
10709 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10711 else
10712 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10717 if test -n "$GOC_FOR_TARGET"; then
10718 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10719 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10720 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10723 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10724 for ncn_progname in gccgo; do
10725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10726 set dummy ${ncn_progname}; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10730 $as_echo_n "(cached) " >&6
10731 else
10732 if test -n "$GOC_FOR_TARGET"; then
10733 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10734 else
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10742 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 break 2
10746 done
10747 done
10748 IFS=$as_save_IFS
10752 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10753 if test -n "$GOC_FOR_TARGET"; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10755 $as_echo "$GOC_FOR_TARGET" >&6; }
10756 else
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10762 done
10765 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10766 for ncn_progname in gccgo; do
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10768 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10769 if test -x $with_build_time_tools/${ncn_progname}; then
10770 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; }
10773 break
10774 else
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 $as_echo "no" >&6; }
10778 done
10781 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10782 for ncn_progname in gccgo; do
10783 if test -n "$ncn_target_tool_prefix"; then
10784 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10785 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787 $as_echo_n "checking for $ac_word... " >&6; }
10788 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10791 if test -n "$GOC_FOR_TARGET"; then
10792 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10793 else
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10801 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10805 done
10806 done
10807 IFS=$as_save_IFS
10811 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10812 if test -n "$GOC_FOR_TARGET"; then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10814 $as_echo "$GOC_FOR_TARGET" >&6; }
10815 else
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817 $as_echo "no" >&6; }
10822 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10824 set dummy ${ncn_progname}; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10826 $as_echo_n "checking for $ac_word... " >&6; }
10827 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 if test -n "$GOC_FOR_TARGET"; then
10831 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10832 else
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10836 IFS=$as_save_IFS
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10840 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10842 break 2
10844 done
10845 done
10846 IFS=$as_save_IFS
10850 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10851 if test -n "$GOC_FOR_TARGET"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10853 $as_echo "$GOC_FOR_TARGET" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10861 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10862 done
10865 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10866 set dummy gccgo
10867 if test $build = $target ; then
10868 GOC_FOR_TARGET="$2"
10869 else
10870 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10872 else
10873 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10878 if test -n "$GUPC_FOR_TARGET"; then
10879 ac_cv_prog_GUPC_FOR_TARGET=$GUPC_FOR_TARGET
10880 elif test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10881 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10884 if test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10885 for ncn_progname in gupc; do
10886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10887 set dummy ${ncn_progname}; ac_word=$2
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889 $as_echo_n "checking for $ac_word... " >&6; }
10890 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 if test -n "$GUPC_FOR_TARGET"; then
10894 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10895 else
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 for as_dir in $PATH
10899 IFS=$as_save_IFS
10900 test -z "$as_dir" && as_dir=.
10901 for ac_exec_ext in '' $ac_executable_extensions; do
10902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10903 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
10904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10905 break 2
10907 done
10908 done
10909 IFS=$as_save_IFS
10913 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10914 if test -n "$GUPC_FOR_TARGET"; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10916 $as_echo "$GUPC_FOR_TARGET" >&6; }
10917 else
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10919 $as_echo "no" >&6; }
10923 done
10926 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10927 for ncn_progname in gupc; do
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10929 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10930 if test -x $with_build_time_tools/${ncn_progname}; then
10931 ac_cv_prog_GUPC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10933 $as_echo "yes" >&6; }
10934 break
10935 else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10937 $as_echo "no" >&6; }
10939 done
10942 if test -z "$ac_cv_prog_GUPC_FOR_TARGET"; then
10943 for ncn_progname in gupc; do
10944 if test -n "$ncn_target_tool_prefix"; then
10945 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10946 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10948 $as_echo_n "checking for $ac_word... " >&6; }
10949 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10951 else
10952 if test -n "$GUPC_FOR_TARGET"; then
10953 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10954 else
10955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10956 for as_dir in $PATH
10958 IFS=$as_save_IFS
10959 test -z "$as_dir" && as_dir=.
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10962 ac_cv_prog_GUPC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 break 2
10966 done
10967 done
10968 IFS=$as_save_IFS
10972 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10973 if test -n "$GUPC_FOR_TARGET"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10975 $as_echo "$GUPC_FOR_TARGET" >&6; }
10976 else
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 $as_echo "no" >&6; }
10983 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test $build = $target ; then
10984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10985 set dummy ${ncn_progname}; ac_word=$2
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987 $as_echo_n "checking for $ac_word... " >&6; }
10988 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
10990 else
10991 if test -n "$GUPC_FOR_TARGET"; then
10992 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10993 else
10994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11001 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
11002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11005 done
11006 done
11007 IFS=$as_save_IFS
11011 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11012 if test -n "$GUPC_FOR_TARGET"; then
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11014 $as_echo "$GUPC_FOR_TARGET" >&6; }
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; }
11022 test -n "$ac_cv_prog_GUPC_FOR_TARGET" && break
11023 done
11026 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" ; then
11027 set dummy gupc
11028 if test $build = $target ; then
11029 GUPC_FOR_TARGET="$2"
11030 else
11031 GUPC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11033 else
11034 GUPC_FOR_TARGET="$ac_cv_prog_GUPC_FOR_TARGET"
11039 cat > conftest.c << \EOF
11040 #ifdef __GNUC__
11041 gcc_yay;
11042 #endif
11044 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11045 have_gcc_for_target=yes
11046 else
11047 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11048 have_gcc_for_target=no
11050 rm conftest.c
11055 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11056 if test -n "$with_build_time_tools"; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11058 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11059 if test -x $with_build_time_tools/ar; then
11060 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11061 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11063 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11064 else
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11066 $as_echo "no" >&6; }
11068 elif test $build != $host && test $have_gcc_for_target = yes; then
11069 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11070 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11071 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11074 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11075 # Extract the first word of "ar", so it can be a program name with args.
11076 set dummy ar; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 case $AR_FOR_TARGET in
11083 [\\/]* | ?:[\\/]*)
11084 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088 for as_dir in $gcc_cv_tool_dirs
11090 IFS=$as_save_IFS
11091 test -z "$as_dir" && as_dir=.
11092 for ac_exec_ext in '' $ac_executable_extensions; do
11093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11094 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 break 2
11098 done
11099 done
11100 IFS=$as_save_IFS
11103 esac
11105 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11106 if test -n "$AR_FOR_TARGET"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11108 $as_echo "$AR_FOR_TARGET" >&6; }
11109 else
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11116 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11119 if test -n "$AR_FOR_TARGET"; then
11120 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11121 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11122 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11125 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11126 for ncn_progname in ar; do
11127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11128 set dummy ${ncn_progname}; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 if test -n "$AR_FOR_TARGET"; then
11135 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11136 else
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11140 IFS=$as_save_IFS
11141 test -z "$as_dir" && as_dir=.
11142 for ac_exec_ext in '' $ac_executable_extensions; do
11143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11144 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11146 break 2
11148 done
11149 done
11150 IFS=$as_save_IFS
11154 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11155 if test -n "$AR_FOR_TARGET"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11157 $as_echo "$AR_FOR_TARGET" >&6; }
11158 else
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11164 done
11167 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11168 for ncn_progname in ar; do
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11170 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11171 if test -x $with_build_time_tools/${ncn_progname}; then
11172 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11174 $as_echo "yes" >&6; }
11175 break
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11180 done
11183 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11184 for ncn_progname in ar; do
11185 if test -n "$ncn_target_tool_prefix"; then
11186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11187 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11189 $as_echo_n "checking for $ac_word... " >&6; }
11190 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 if test -n "$AR_FOR_TARGET"; then
11194 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11195 else
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11199 IFS=$as_save_IFS
11200 test -z "$as_dir" && as_dir=.
11201 for ac_exec_ext in '' $ac_executable_extensions; do
11202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11203 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11205 break 2
11207 done
11208 done
11209 IFS=$as_save_IFS
11213 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11214 if test -n "$AR_FOR_TARGET"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11216 $as_echo "$AR_FOR_TARGET" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11224 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11226 set dummy ${ncn_progname}; ac_word=$2
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11228 $as_echo_n "checking for $ac_word... " >&6; }
11229 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 if test -n "$AR_FOR_TARGET"; then
11233 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11234 else
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11238 IFS=$as_save_IFS
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11244 break 2
11246 done
11247 done
11248 IFS=$as_save_IFS
11252 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11253 if test -n "$AR_FOR_TARGET"; then
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11255 $as_echo "$AR_FOR_TARGET" >&6; }
11256 else
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11258 $as_echo "no" >&6; }
11263 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11264 done
11267 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11268 set dummy ar
11269 if test $build = $target ; then
11270 AR_FOR_TARGET="$2"
11271 else
11272 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11274 else
11275 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11278 else
11279 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11285 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11286 if test -n "$with_build_time_tools"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11288 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11289 if test -x $with_build_time_tools/as; then
11290 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11291 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11293 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 $as_echo "no" >&6; }
11298 elif test $build != $host && test $have_gcc_for_target = yes; then
11299 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11300 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11301 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11304 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11305 # Extract the first word of "as", so it can be a program name with args.
11306 set dummy as; ac_word=$2
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 $as_echo_n "checking for $ac_word... " >&6; }
11309 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 case $AS_FOR_TARGET in
11313 [\\/]* | ?:[\\/]*)
11314 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318 for as_dir in $gcc_cv_tool_dirs
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11324 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 break 2
11328 done
11329 done
11330 IFS=$as_save_IFS
11333 esac
11335 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11336 if test -n "$AS_FOR_TARGET"; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11338 $as_echo "$AS_FOR_TARGET" >&6; }
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11346 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11349 if test -n "$AS_FOR_TARGET"; then
11350 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11351 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11352 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11355 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11356 for ncn_progname in as; do
11357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11358 set dummy ${ncn_progname}; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 if test -n "$AS_FOR_TARGET"; then
11365 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11366 else
11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
11372 for ac_exec_ext in '' $ac_executable_extensions; do
11373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11374 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376 break 2
11378 done
11379 done
11380 IFS=$as_save_IFS
11384 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11385 if test -n "$AS_FOR_TARGET"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11387 $as_echo "$AS_FOR_TARGET" >&6; }
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11394 done
11397 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11398 for ncn_progname in as; do
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11400 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11401 if test -x $with_build_time_tools/${ncn_progname}; then
11402 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11404 $as_echo "yes" >&6; }
11405 break
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11410 done
11413 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11414 for ncn_progname in as; do
11415 if test -n "$ncn_target_tool_prefix"; then
11416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11417 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 $as_echo_n "checking for $ac_word... " >&6; }
11420 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 if test -n "$AS_FOR_TARGET"; then
11424 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11425 else
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11433 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435 break 2
11437 done
11438 done
11439 IFS=$as_save_IFS
11443 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11444 if test -n "$AS_FOR_TARGET"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11446 $as_echo "$AS_FOR_TARGET" >&6; }
11447 else
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 $as_echo "no" >&6; }
11454 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11456 set dummy ${ncn_progname}; ac_word=$2
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458 $as_echo_n "checking for $ac_word... " >&6; }
11459 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 if test -n "$AS_FOR_TARGET"; then
11463 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11464 else
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11472 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11474 break 2
11476 done
11477 done
11478 IFS=$as_save_IFS
11482 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11483 if test -n "$AS_FOR_TARGET"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11485 $as_echo "$AS_FOR_TARGET" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11493 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11494 done
11497 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11498 set dummy as
11499 if test $build = $target ; then
11500 AS_FOR_TARGET="$2"
11501 else
11502 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11504 else
11505 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11508 else
11509 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11515 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11516 if test -n "$with_build_time_tools"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11518 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11519 if test -x $with_build_time_tools/dlltool; then
11520 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11521 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11523 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11524 else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11528 elif test $build != $host && test $have_gcc_for_target = yes; then
11529 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11530 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11531 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11534 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11535 # Extract the first word of "dlltool", so it can be a program name with args.
11536 set dummy dlltool; ac_word=$2
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 case $DLLTOOL_FOR_TARGET in
11543 [\\/]* | ?:[\\/]*)
11544 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $gcc_cv_tool_dirs
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11554 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11556 break 2
11558 done
11559 done
11560 IFS=$as_save_IFS
11563 esac
11565 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11566 if test -n "$DLLTOOL_FOR_TARGET"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11568 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11569 else
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11576 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11579 if test -n "$DLLTOOL_FOR_TARGET"; then
11580 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11581 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11582 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11585 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11586 for ncn_progname in dlltool; do
11587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11588 set dummy ${ncn_progname}; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 if test -n "$DLLTOOL_FOR_TARGET"; then
11595 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11596 else
11597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598 for as_dir in $PATH
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
11603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11604 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11608 done
11609 done
11610 IFS=$as_save_IFS
11614 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11615 if test -n "$DLLTOOL_FOR_TARGET"; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11617 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11624 done
11627 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11628 for ncn_progname in dlltool; do
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11630 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11631 if test -x $with_build_time_tools/${ncn_progname}; then
11632 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11635 break
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11640 done
11643 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11644 for ncn_progname in dlltool; do
11645 if test -n "$ncn_target_tool_prefix"; then
11646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11647 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649 $as_echo_n "checking for $ac_word... " >&6; }
11650 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11653 if test -n "$DLLTOOL_FOR_TARGET"; then
11654 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11655 else
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11663 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 break 2
11667 done
11668 done
11669 IFS=$as_save_IFS
11673 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11674 if test -n "$DLLTOOL_FOR_TARGET"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11676 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11677 else
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679 $as_echo "no" >&6; }
11684 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11686 set dummy ${ncn_progname}; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 if test -n "$DLLTOOL_FOR_TARGET"; then
11693 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11694 else
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11706 done
11707 done
11708 IFS=$as_save_IFS
11712 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11713 if test -n "$DLLTOOL_FOR_TARGET"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11715 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11716 else
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718 $as_echo "no" >&6; }
11723 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11724 done
11727 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11728 set dummy dlltool
11729 if test $build = $target ; then
11730 DLLTOOL_FOR_TARGET="$2"
11731 else
11732 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11734 else
11735 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11738 else
11739 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11745 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11746 if test -n "$with_build_time_tools"; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11748 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11749 if test -x $with_build_time_tools/ld; then
11750 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11751 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11753 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11754 else
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11758 elif test $build != $host && test $have_gcc_for_target = yes; then
11759 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11760 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11761 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11764 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11765 # Extract the first word of "ld", so it can be a program name with args.
11766 set dummy ld; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 $as_echo_n "checking for $ac_word... " >&6; }
11769 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
11771 else
11772 case $LD_FOR_TARGET in
11773 [\\/]* | ?:[\\/]*)
11774 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $gcc_cv_tool_dirs
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11784 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11788 done
11789 done
11790 IFS=$as_save_IFS
11793 esac
11795 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11796 if test -n "$LD_FOR_TARGET"; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11798 $as_echo "$LD_FOR_TARGET" >&6; }
11799 else
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11806 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11809 if test -n "$LD_FOR_TARGET"; then
11810 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11811 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11812 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11815 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11816 for ncn_progname in ld; do
11817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11818 set dummy ${ncn_progname}; ac_word=$2
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11822 $as_echo_n "(cached) " >&6
11823 else
11824 if test -n "$LD_FOR_TARGET"; then
11825 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11826 else
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11830 IFS=$as_save_IFS
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11834 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11836 break 2
11838 done
11839 done
11840 IFS=$as_save_IFS
11844 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11845 if test -n "$LD_FOR_TARGET"; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11847 $as_echo "$LD_FOR_TARGET" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11854 done
11857 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11858 for ncn_progname in ld; do
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11860 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11861 if test -x $with_build_time_tools/${ncn_progname}; then
11862 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864 $as_echo "yes" >&6; }
11865 break
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11870 done
11873 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11874 for ncn_progname in ld; do
11875 if test -n "$ncn_target_tool_prefix"; then
11876 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11877 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11879 $as_echo_n "checking for $ac_word... " >&6; }
11880 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 if test -n "$LD_FOR_TARGET"; then
11884 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11885 else
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11893 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11897 done
11898 done
11899 IFS=$as_save_IFS
11903 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11904 if test -n "$LD_FOR_TARGET"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11906 $as_echo "$LD_FOR_TARGET" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11914 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11916 set dummy ${ncn_progname}; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918 $as_echo_n "checking for $ac_word... " >&6; }
11919 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 if test -n "$LD_FOR_TARGET"; then
11923 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 break 2
11936 done
11937 done
11938 IFS=$as_save_IFS
11942 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11943 if test -n "$LD_FOR_TARGET"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11945 $as_echo "$LD_FOR_TARGET" >&6; }
11946 else
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11953 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11954 done
11957 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11958 set dummy ld
11959 if test $build = $target ; then
11960 LD_FOR_TARGET="$2"
11961 else
11962 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11964 else
11965 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11968 else
11969 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11975 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11976 if test -n "$with_build_time_tools"; then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11978 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11979 if test -x $with_build_time_tools/lipo; then
11980 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11981 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11983 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11988 elif test $build != $host && test $have_gcc_for_target = yes; then
11989 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11990 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11991 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11994 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11995 # Extract the first word of "lipo", so it can be a program name with args.
11996 set dummy lipo; ac_word=$2
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998 $as_echo_n "checking for $ac_word... " >&6; }
11999 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 case $LIPO_FOR_TARGET in
12003 [\\/]* | ?:[\\/]*)
12004 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $gcc_cv_tool_dirs
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12014 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12018 done
12019 done
12020 IFS=$as_save_IFS
12023 esac
12025 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12026 if test -n "$LIPO_FOR_TARGET"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12028 $as_echo "$LIPO_FOR_TARGET" >&6; }
12029 else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12036 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12039 if test -n "$LIPO_FOR_TARGET"; then
12040 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12041 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12042 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12045 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12046 for ncn_progname in lipo; do
12047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12048 set dummy ${ncn_progname}; ac_word=$2
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12050 $as_echo_n "checking for $ac_word... " >&6; }
12051 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12052 $as_echo_n "(cached) " >&6
12053 else
12054 if test -n "$LIPO_FOR_TARGET"; then
12055 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12060 IFS=$as_save_IFS
12061 test -z "$as_dir" && as_dir=.
12062 for ac_exec_ext in '' $ac_executable_extensions; do
12063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12064 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 break 2
12068 done
12069 done
12070 IFS=$as_save_IFS
12074 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12075 if test -n "$LIPO_FOR_TARGET"; then
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12077 $as_echo "$LIPO_FOR_TARGET" >&6; }
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12084 done
12087 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12088 for ncn_progname in lipo; do
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12090 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12091 if test -x $with_build_time_tools/${ncn_progname}; then
12092 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12094 $as_echo "yes" >&6; }
12095 break
12096 else
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098 $as_echo "no" >&6; }
12100 done
12103 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12104 for ncn_progname in lipo; do
12105 if test -n "$ncn_target_tool_prefix"; then
12106 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12107 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109 $as_echo_n "checking for $ac_word... " >&6; }
12110 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 if test -n "$LIPO_FOR_TARGET"; then
12114 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12115 else
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12119 IFS=$as_save_IFS
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12123 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12125 break 2
12127 done
12128 done
12129 IFS=$as_save_IFS
12133 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12134 if test -n "$LIPO_FOR_TARGET"; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12136 $as_echo "$LIPO_FOR_TARGET" >&6; }
12137 else
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12144 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12146 set dummy ${ncn_progname}; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 if test -n "$LIPO_FOR_TARGET"; then
12153 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12154 else
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12162 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12166 done
12167 done
12168 IFS=$as_save_IFS
12172 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12173 if test -n "$LIPO_FOR_TARGET"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12175 $as_echo "$LIPO_FOR_TARGET" >&6; }
12176 else
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178 $as_echo "no" >&6; }
12183 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12184 done
12187 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12188 set dummy lipo
12189 if test $build = $target ; then
12190 LIPO_FOR_TARGET="$2"
12191 else
12192 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12194 else
12195 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12198 else
12199 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12205 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12206 if test -n "$with_build_time_tools"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12208 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12209 if test -x $with_build_time_tools/nm; then
12210 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12211 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12213 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12218 elif test $build != $host && test $have_gcc_for_target = yes; then
12219 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12220 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12221 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12224 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12225 # Extract the first word of "nm", so it can be a program name with args.
12226 set dummy nm; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 case $NM_FOR_TARGET in
12233 [\\/]* | ?:[\\/]*)
12234 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $gcc_cv_tool_dirs
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12244 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 break 2
12248 done
12249 done
12250 IFS=$as_save_IFS
12253 esac
12255 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12256 if test -n "$NM_FOR_TARGET"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12258 $as_echo "$NM_FOR_TARGET" >&6; }
12259 else
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12266 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12269 if test -n "$NM_FOR_TARGET"; then
12270 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12271 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12272 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12275 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12276 for ncn_progname in nm; do
12277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12278 set dummy ${ncn_progname}; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12283 else
12284 if test -n "$NM_FOR_TARGET"; then
12285 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12286 else
12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12294 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 break 2
12298 done
12299 done
12300 IFS=$as_save_IFS
12304 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12305 if test -n "$NM_FOR_TARGET"; then
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12307 $as_echo "$NM_FOR_TARGET" >&6; }
12308 else
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12314 done
12317 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12318 for ncn_progname in nm; do
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12320 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12321 if test -x $with_build_time_tools/${ncn_progname}; then
12322 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12324 $as_echo "yes" >&6; }
12325 break
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12330 done
12333 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12334 for ncn_progname in nm; do
12335 if test -n "$ncn_target_tool_prefix"; then
12336 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12337 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339 $as_echo_n "checking for $ac_word... " >&6; }
12340 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 if test -n "$NM_FOR_TARGET"; then
12344 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12345 else
12346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347 for as_dir in $PATH
12349 IFS=$as_save_IFS
12350 test -z "$as_dir" && as_dir=.
12351 for ac_exec_ext in '' $ac_executable_extensions; do
12352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12353 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 break 2
12357 done
12358 done
12359 IFS=$as_save_IFS
12363 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12364 if test -n "$NM_FOR_TARGET"; then
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12366 $as_echo "$NM_FOR_TARGET" >&6; }
12367 else
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369 $as_echo "no" >&6; }
12374 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12376 set dummy ${ncn_progname}; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 if test -n "$NM_FOR_TARGET"; then
12383 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12384 else
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12392 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 break 2
12396 done
12397 done
12398 IFS=$as_save_IFS
12402 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12403 if test -n "$NM_FOR_TARGET"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12405 $as_echo "$NM_FOR_TARGET" >&6; }
12406 else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408 $as_echo "no" >&6; }
12413 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12414 done
12417 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12418 set dummy nm
12419 if test $build = $target ; then
12420 NM_FOR_TARGET="$2"
12421 else
12422 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12424 else
12425 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12428 else
12429 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12435 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12436 if test -n "$with_build_time_tools"; then
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12438 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12439 if test -x $with_build_time_tools/objcopy; then
12440 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12441 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12443 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12444 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12448 elif test $build != $host && test $have_gcc_for_target = yes; then
12449 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12450 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12451 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12454 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12455 # Extract the first word of "objcopy", so it can be a program name with args.
12456 set dummy objcopy; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12461 else
12462 case $OBJCOPY_FOR_TARGET in
12463 [\\/]* | ?:[\\/]*)
12464 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $gcc_cv_tool_dirs
12470 IFS=$as_save_IFS
12471 test -z "$as_dir" && as_dir=.
12472 for ac_exec_ext in '' $ac_executable_extensions; do
12473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12474 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 break 2
12478 done
12479 done
12480 IFS=$as_save_IFS
12483 esac
12485 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12486 if test -n "$OBJCOPY_FOR_TARGET"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12488 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12496 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12499 if test -n "$OBJCOPY_FOR_TARGET"; then
12500 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12501 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12502 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12505 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12506 for ncn_progname in objcopy; do
12507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12508 set dummy ${ncn_progname}; ac_word=$2
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12510 $as_echo_n "checking for $ac_word... " >&6; }
12511 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12512 $as_echo_n "(cached) " >&6
12513 else
12514 if test -n "$OBJCOPY_FOR_TARGET"; then
12515 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12516 else
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_exec_ext in '' $ac_executable_extensions; do
12523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12524 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 break 2
12528 done
12529 done
12530 IFS=$as_save_IFS
12534 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12535 if test -n "$OBJCOPY_FOR_TARGET"; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12537 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12544 done
12547 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12548 for ncn_progname in objcopy; do
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12550 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12551 if test -x $with_build_time_tools/${ncn_progname}; then
12552 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12554 $as_echo "yes" >&6; }
12555 break
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12560 done
12563 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12564 for ncn_progname in objcopy; do
12565 if test -n "$ncn_target_tool_prefix"; then
12566 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12567 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12569 $as_echo_n "checking for $ac_word... " >&6; }
12570 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 if test -n "$OBJCOPY_FOR_TARGET"; then
12574 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12575 else
12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577 for as_dir in $PATH
12579 IFS=$as_save_IFS
12580 test -z "$as_dir" && as_dir=.
12581 for ac_exec_ext in '' $ac_executable_extensions; do
12582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12583 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12585 break 2
12587 done
12588 done
12589 IFS=$as_save_IFS
12593 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12594 if test -n "$OBJCOPY_FOR_TARGET"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12596 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12597 else
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12599 $as_echo "no" >&6; }
12604 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12606 set dummy ${ncn_progname}; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 if test -n "$OBJCOPY_FOR_TARGET"; then
12613 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12614 else
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12618 IFS=$as_save_IFS
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12622 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12624 break 2
12626 done
12627 done
12628 IFS=$as_save_IFS
12632 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12633 if test -n "$OBJCOPY_FOR_TARGET"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12635 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12643 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12644 done
12647 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12648 set dummy objcopy
12649 if test $build = $target ; then
12650 OBJCOPY_FOR_TARGET="$2"
12651 else
12652 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12654 else
12655 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12658 else
12659 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12665 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12666 if test -n "$with_build_time_tools"; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12668 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12669 if test -x $with_build_time_tools/objdump; then
12670 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12671 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12673 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12678 elif test $build != $host && test $have_gcc_for_target = yes; then
12679 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12680 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12681 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12684 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12685 # Extract the first word of "objdump", so it can be a program name with args.
12686 set dummy objdump; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
12691 else
12692 case $OBJDUMP_FOR_TARGET in
12693 [\\/]* | ?:[\\/]*)
12694 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $gcc_cv_tool_dirs
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12704 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12708 done
12709 done
12710 IFS=$as_save_IFS
12713 esac
12715 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12716 if test -n "$OBJDUMP_FOR_TARGET"; then
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12718 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12721 $as_echo "no" >&6; }
12726 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12729 if test -n "$OBJDUMP_FOR_TARGET"; then
12730 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12731 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12732 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12735 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12736 for ncn_progname in objdump; do
12737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12738 set dummy ${ncn_progname}; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 if test -n "$OBJDUMP_FOR_TARGET"; then
12745 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12746 else
12747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748 for as_dir in $PATH
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12754 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12758 done
12759 done
12760 IFS=$as_save_IFS
12764 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12765 if test -n "$OBJDUMP_FOR_TARGET"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12767 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12774 done
12777 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12778 for ncn_progname in objdump; do
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12780 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12781 if test -x $with_build_time_tools/${ncn_progname}; then
12782 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12784 $as_echo "yes" >&6; }
12785 break
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12790 done
12793 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12794 for ncn_progname in objdump; do
12795 if test -n "$ncn_target_tool_prefix"; then
12796 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12797 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12799 $as_echo_n "checking for $ac_word... " >&6; }
12800 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 if test -n "$OBJDUMP_FOR_TARGET"; then
12804 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12805 else
12806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12807 for as_dir in $PATH
12809 IFS=$as_save_IFS
12810 test -z "$as_dir" && as_dir=.
12811 for ac_exec_ext in '' $ac_executable_extensions; do
12812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12813 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 break 2
12817 done
12818 done
12819 IFS=$as_save_IFS
12823 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12824 if test -n "$OBJDUMP_FOR_TARGET"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12826 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12827 else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12834 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12836 set dummy ${ncn_progname}; ac_word=$2
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838 $as_echo_n "checking for $ac_word... " >&6; }
12839 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12840 $as_echo_n "(cached) " >&6
12841 else
12842 if test -n "$OBJDUMP_FOR_TARGET"; then
12843 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12844 else
12845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12846 for as_dir in $PATH
12848 IFS=$as_save_IFS
12849 test -z "$as_dir" && as_dir=.
12850 for ac_exec_ext in '' $ac_executable_extensions; do
12851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12852 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12854 break 2
12856 done
12857 done
12858 IFS=$as_save_IFS
12862 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12863 if test -n "$OBJDUMP_FOR_TARGET"; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12865 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12866 else
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12873 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12874 done
12877 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12878 set dummy objdump
12879 if test $build = $target ; then
12880 OBJDUMP_FOR_TARGET="$2"
12881 else
12882 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12884 else
12885 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12888 else
12889 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12895 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12896 if test -n "$with_build_time_tools"; then
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12898 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12899 if test -x $with_build_time_tools/ranlib; then
12900 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12901 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12903 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12904 else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12908 elif test $build != $host && test $have_gcc_for_target = yes; then
12909 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12910 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12911 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12914 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12915 # Extract the first word of "ranlib", so it can be a program name with args.
12916 set dummy ranlib; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 case $RANLIB_FOR_TARGET in
12923 [\\/]* | ?:[\\/]*)
12924 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12928 for as_dir in $gcc_cv_tool_dirs
12930 IFS=$as_save_IFS
12931 test -z "$as_dir" && as_dir=.
12932 for ac_exec_ext in '' $ac_executable_extensions; do
12933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12934 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12936 break 2
12938 done
12939 done
12940 IFS=$as_save_IFS
12943 esac
12945 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12946 if test -n "$RANLIB_FOR_TARGET"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12948 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12956 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12959 if test -n "$RANLIB_FOR_TARGET"; then
12960 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12961 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12962 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12965 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12966 for ncn_progname in ranlib; do
12967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12968 set dummy ${ncn_progname}; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970 $as_echo_n "checking for $ac_word... " >&6; }
12971 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 if test -n "$RANLIB_FOR_TARGET"; then
12975 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12976 else
12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12980 IFS=$as_save_IFS
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
12983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12984 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 break 2
12988 done
12989 done
12990 IFS=$as_save_IFS
12994 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12995 if test -n "$RANLIB_FOR_TARGET"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12997 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13004 done
13007 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13008 for ncn_progname in ranlib; do
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13010 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13011 if test -x $with_build_time_tools/${ncn_progname}; then
13012 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13014 $as_echo "yes" >&6; }
13015 break
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13020 done
13023 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13024 for ncn_progname in ranlib; do
13025 if test -n "$ncn_target_tool_prefix"; then
13026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 if test -n "$RANLIB_FOR_TARGET"; then
13034 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13043 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13047 done
13048 done
13049 IFS=$as_save_IFS
13053 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13054 if test -n "$RANLIB_FOR_TARGET"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13056 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13064 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13066 set dummy ${ncn_progname}; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068 $as_echo_n "checking for $ac_word... " >&6; }
13069 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13070 $as_echo_n "(cached) " >&6
13071 else
13072 if test -n "$RANLIB_FOR_TARGET"; then
13073 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13074 else
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13082 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 break 2
13086 done
13087 done
13088 IFS=$as_save_IFS
13092 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13093 if test -n "$RANLIB_FOR_TARGET"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13095 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13096 else
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13103 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13104 done
13107 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13108 set dummy ranlib
13109 if test $build = $target ; then
13110 RANLIB_FOR_TARGET="$2"
13111 else
13112 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13114 else
13115 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13118 else
13119 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13125 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13126 if test -n "$with_build_time_tools"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13128 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13129 if test -x $with_build_time_tools/readelf; then
13130 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13131 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13133 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13138 elif test $build != $host && test $have_gcc_for_target = yes; then
13139 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13140 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13141 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13144 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13145 # Extract the first word of "readelf", so it can be a program name with args.
13146 set dummy readelf; ac_word=$2
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148 $as_echo_n "checking for $ac_word... " >&6; }
13149 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 case $READELF_FOR_TARGET in
13153 [\\/]* | ?:[\\/]*)
13154 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13158 for as_dir in $gcc_cv_tool_dirs
13160 IFS=$as_save_IFS
13161 test -z "$as_dir" && as_dir=.
13162 for ac_exec_ext in '' $ac_executable_extensions; do
13163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13164 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13166 break 2
13168 done
13169 done
13170 IFS=$as_save_IFS
13173 esac
13175 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13176 if test -n "$READELF_FOR_TARGET"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13178 $as_echo "$READELF_FOR_TARGET" >&6; }
13179 else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13186 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13189 if test -n "$READELF_FOR_TARGET"; then
13190 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13191 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13192 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13195 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13196 for ncn_progname in readelf; do
13197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13198 set dummy ${ncn_progname}; ac_word=$2
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200 $as_echo_n "checking for $ac_word... " >&6; }
13201 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 if test -n "$READELF_FOR_TARGET"; then
13205 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13206 else
13207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208 for as_dir in $PATH
13210 IFS=$as_save_IFS
13211 test -z "$as_dir" && as_dir=.
13212 for ac_exec_ext in '' $ac_executable_extensions; do
13213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13214 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216 break 2
13218 done
13219 done
13220 IFS=$as_save_IFS
13224 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13225 if test -n "$READELF_FOR_TARGET"; then
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13227 $as_echo "$READELF_FOR_TARGET" >&6; }
13228 else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13234 done
13237 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13238 for ncn_progname in readelf; do
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13240 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13241 if test -x $with_build_time_tools/${ncn_progname}; then
13242 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13244 $as_echo "yes" >&6; }
13245 break
13246 else
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13250 done
13253 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13254 for ncn_progname in readelf; do
13255 if test -n "$ncn_target_tool_prefix"; then
13256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13257 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 $as_echo_n "checking for $ac_word... " >&6; }
13260 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13261 $as_echo_n "(cached) " >&6
13262 else
13263 if test -n "$READELF_FOR_TARGET"; then
13264 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13265 else
13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267 for as_dir in $PATH
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13273 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13277 done
13278 done
13279 IFS=$as_save_IFS
13283 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13284 if test -n "$READELF_FOR_TARGET"; then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13286 $as_echo "$READELF_FOR_TARGET" >&6; }
13287 else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13289 $as_echo "no" >&6; }
13294 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13296 set dummy ${ncn_progname}; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298 $as_echo_n "checking for $ac_word... " >&6; }
13299 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 if test -n "$READELF_FOR_TARGET"; then
13303 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13304 else
13305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306 for as_dir in $PATH
13308 IFS=$as_save_IFS
13309 test -z "$as_dir" && as_dir=.
13310 for ac_exec_ext in '' $ac_executable_extensions; do
13311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13312 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13314 break 2
13316 done
13317 done
13318 IFS=$as_save_IFS
13322 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13323 if test -n "$READELF_FOR_TARGET"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13325 $as_echo "$READELF_FOR_TARGET" >&6; }
13326 else
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 $as_echo "no" >&6; }
13333 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13334 done
13337 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13338 set dummy readelf
13339 if test $build = $target ; then
13340 READELF_FOR_TARGET="$2"
13341 else
13342 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13344 else
13345 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13348 else
13349 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13355 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13356 if test -n "$with_build_time_tools"; then
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13358 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13359 if test -x $with_build_time_tools/strip; then
13360 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13361 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13363 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13364 else
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13368 elif test $build != $host && test $have_gcc_for_target = yes; then
13369 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13370 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13371 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13374 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13375 # Extract the first word of "strip", so it can be a program name with args.
13376 set dummy strip; ac_word=$2
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 case $STRIP_FOR_TARGET in
13383 [\\/]* | ?:[\\/]*)
13384 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $gcc_cv_tool_dirs
13390 IFS=$as_save_IFS
13391 test -z "$as_dir" && as_dir=.
13392 for ac_exec_ext in '' $ac_executable_extensions; do
13393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13394 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396 break 2
13398 done
13399 done
13400 IFS=$as_save_IFS
13403 esac
13405 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13406 if test -n "$STRIP_FOR_TARGET"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13408 $as_echo "$STRIP_FOR_TARGET" >&6; }
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13416 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13419 if test -n "$STRIP_FOR_TARGET"; then
13420 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13421 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13422 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13425 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13426 for ncn_progname in strip; do
13427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13428 set dummy ${ncn_progname}; ac_word=$2
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430 $as_echo_n "checking for $ac_word... " >&6; }
13431 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 if test -n "$STRIP_FOR_TARGET"; then
13435 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13436 else
13437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438 for as_dir in $PATH
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
13442 for ac_exec_ext in '' $ac_executable_extensions; do
13443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13444 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13446 break 2
13448 done
13449 done
13450 IFS=$as_save_IFS
13454 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13455 if test -n "$STRIP_FOR_TARGET"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13457 $as_echo "$STRIP_FOR_TARGET" >&6; }
13458 else
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460 $as_echo "no" >&6; }
13464 done
13467 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13468 for ncn_progname in strip; do
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13470 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13471 if test -x $with_build_time_tools/${ncn_progname}; then
13472 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13474 $as_echo "yes" >&6; }
13475 break
13476 else
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13480 done
13483 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13484 for ncn_progname in strip; do
13485 if test -n "$ncn_target_tool_prefix"; then
13486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13487 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489 $as_echo_n "checking for $ac_word... " >&6; }
13490 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 if test -n "$STRIP_FOR_TARGET"; then
13494 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13495 else
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13503 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 break 2
13507 done
13508 done
13509 IFS=$as_save_IFS
13513 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13514 if test -n "$STRIP_FOR_TARGET"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13516 $as_echo "$STRIP_FOR_TARGET" >&6; }
13517 else
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519 $as_echo "no" >&6; }
13524 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13526 set dummy ${ncn_progname}; ac_word=$2
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13528 $as_echo_n "checking for $ac_word... " >&6; }
13529 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13530 $as_echo_n "(cached) " >&6
13531 else
13532 if test -n "$STRIP_FOR_TARGET"; then
13533 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13534 else
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13538 IFS=$as_save_IFS
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13542 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13544 break 2
13546 done
13547 done
13548 IFS=$as_save_IFS
13552 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13553 if test -n "$STRIP_FOR_TARGET"; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13555 $as_echo "$STRIP_FOR_TARGET" >&6; }
13556 else
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13558 $as_echo "no" >&6; }
13563 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13564 done
13567 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13568 set dummy strip
13569 if test $build = $target ; then
13570 STRIP_FOR_TARGET="$2"
13571 else
13572 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13574 else
13575 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13578 else
13579 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13585 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13586 if test -n "$with_build_time_tools"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13588 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13589 if test -x $with_build_time_tools/windres; then
13590 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13591 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13593 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13594 else
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596 $as_echo "no" >&6; }
13598 elif test $build != $host && test $have_gcc_for_target = yes; then
13599 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13600 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13601 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13604 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13605 # Extract the first word of "windres", so it can be a program name with args.
13606 set dummy windres; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 case $WINDRES_FOR_TARGET in
13613 [\\/]* | ?:[\\/]*)
13614 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $gcc_cv_tool_dirs
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13624 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 break 2
13628 done
13629 done
13630 IFS=$as_save_IFS
13633 esac
13635 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13636 if test -n "$WINDRES_FOR_TARGET"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13638 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13646 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13649 if test -n "$WINDRES_FOR_TARGET"; then
13650 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13651 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13652 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13655 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13656 for ncn_progname in windres; do
13657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13658 set dummy ${ncn_progname}; ac_word=$2
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13660 $as_echo_n "checking for $ac_word... " >&6; }
13661 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 if test -n "$WINDRES_FOR_TARGET"; then
13665 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13666 else
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13674 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13676 break 2
13678 done
13679 done
13680 IFS=$as_save_IFS
13684 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13685 if test -n "$WINDRES_FOR_TARGET"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13687 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13688 else
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13694 done
13697 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13698 for ncn_progname in windres; do
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13700 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13701 if test -x $with_build_time_tools/${ncn_progname}; then
13702 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13704 $as_echo "yes" >&6; }
13705 break
13706 else
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13710 done
13713 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13714 for ncn_progname in windres; do
13715 if test -n "$ncn_target_tool_prefix"; then
13716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719 $as_echo_n "checking for $ac_word... " >&6; }
13720 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 if test -n "$WINDRES_FOR_TARGET"; then
13724 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13725 else
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13733 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 break 2
13737 done
13738 done
13739 IFS=$as_save_IFS
13743 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13744 if test -n "$WINDRES_FOR_TARGET"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13746 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13747 else
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13754 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13756 set dummy ${ncn_progname}; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 if test -n "$WINDRES_FOR_TARGET"; then
13763 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13764 else
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13772 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13774 break 2
13776 done
13777 done
13778 IFS=$as_save_IFS
13782 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13783 if test -n "$WINDRES_FOR_TARGET"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13785 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13793 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13794 done
13797 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13798 set dummy windres
13799 if test $build = $target ; then
13800 WINDRES_FOR_TARGET="$2"
13801 else
13802 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13804 else
13805 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13808 else
13809 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13815 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13816 if test -n "$with_build_time_tools"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13818 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13819 if test -x $with_build_time_tools/windmc; then
13820 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13821 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13823 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13824 else
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13828 elif test $build != $host && test $have_gcc_for_target = yes; then
13829 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13830 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13831 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13834 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13835 # Extract the first word of "windmc", so it can be a program name with args.
13836 set dummy windmc; ac_word=$2
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838 $as_echo_n "checking for $ac_word... " >&6; }
13839 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 case $WINDMC_FOR_TARGET in
13843 [\\/]* | ?:[\\/]*)
13844 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $gcc_cv_tool_dirs
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13854 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13856 break 2
13858 done
13859 done
13860 IFS=$as_save_IFS
13863 esac
13865 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13866 if test -n "$WINDMC_FOR_TARGET"; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13868 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13869 else
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13876 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13879 if test -n "$WINDMC_FOR_TARGET"; then
13880 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13881 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13882 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13885 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13886 for ncn_progname in windmc; do
13887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13888 set dummy ${ncn_progname}; ac_word=$2
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13890 $as_echo_n "checking for $ac_word... " >&6; }
13891 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13892 $as_echo_n "(cached) " >&6
13893 else
13894 if test -n "$WINDMC_FOR_TARGET"; then
13895 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13896 else
13897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898 for as_dir in $PATH
13900 IFS=$as_save_IFS
13901 test -z "$as_dir" && as_dir=.
13902 for ac_exec_ext in '' $ac_executable_extensions; do
13903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13904 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13906 break 2
13908 done
13909 done
13910 IFS=$as_save_IFS
13914 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13915 if test -n "$WINDMC_FOR_TARGET"; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13917 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13918 else
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920 $as_echo "no" >&6; }
13924 done
13927 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13928 for ncn_progname in windmc; do
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13930 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13931 if test -x $with_build_time_tools/${ncn_progname}; then
13932 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13934 $as_echo "yes" >&6; }
13935 break
13936 else
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13940 done
13943 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13944 for ncn_progname in windmc; do
13945 if test -n "$ncn_target_tool_prefix"; then
13946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13947 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949 $as_echo_n "checking for $ac_word... " >&6; }
13950 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 if test -n "$WINDMC_FOR_TARGET"; then
13954 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13955 else
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13963 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13965 break 2
13967 done
13968 done
13969 IFS=$as_save_IFS
13973 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13974 if test -n "$WINDMC_FOR_TARGET"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13976 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13984 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13986 set dummy ${ncn_progname}; ac_word=$2
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988 $as_echo_n "checking for $ac_word... " >&6; }
13989 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 if test -n "$WINDMC_FOR_TARGET"; then
13993 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13994 else
13995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996 for as_dir in $PATH
13998 IFS=$as_save_IFS
13999 test -z "$as_dir" && as_dir=.
14000 for ac_exec_ext in '' $ac_executable_extensions; do
14001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14002 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14004 break 2
14006 done
14007 done
14008 IFS=$as_save_IFS
14012 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14013 if test -n "$WINDMC_FOR_TARGET"; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14015 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14016 else
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018 $as_echo "no" >&6; }
14023 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14024 done
14027 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14028 set dummy windmc
14029 if test $build = $target ; then
14030 WINDMC_FOR_TARGET="$2"
14031 else
14032 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14034 else
14035 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14038 else
14039 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14043 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14046 $as_echo_n "checking where to find the target ar... " >&6; }
14047 if test "x${build}" != "x${host}" ; then
14048 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14049 # We already found the complete path
14050 ac_dir=`dirname $AR_FOR_TARGET`
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14052 $as_echo "pre-installed in $ac_dir" >&6; }
14053 else
14054 # Canadian cross, just use what we found
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14056 $as_echo "pre-installed" >&6; }
14058 else
14059 ok=yes
14060 case " ${configdirs} " in
14061 *" binutils "*) ;;
14062 *) ok=no ;;
14063 esac
14065 if test $ok = yes; then
14066 # An in-tree tool is available and we can use it
14067 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14069 $as_echo "just compiled" >&6; }
14070 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14071 # We already found the complete path
14072 ac_dir=`dirname $AR_FOR_TARGET`
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14074 $as_echo "pre-installed in $ac_dir" >&6; }
14075 elif test "x$target" = "x$host"; then
14076 # We can use an host tool
14077 AR_FOR_TARGET='$(AR)'
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14079 $as_echo "host tool" >&6; }
14080 else
14081 # We need a cross tool
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14083 $as_echo "pre-installed" >&6; }
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14088 $as_echo_n "checking where to find the target as... " >&6; }
14089 if test "x${build}" != "x${host}" ; then
14090 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14091 # We already found the complete path
14092 ac_dir=`dirname $AS_FOR_TARGET`
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14094 $as_echo "pre-installed in $ac_dir" >&6; }
14095 else
14096 # Canadian cross, just use what we found
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14098 $as_echo "pre-installed" >&6; }
14100 else
14101 ok=yes
14102 case " ${configdirs} " in
14103 *" gas "*) ;;
14104 *) ok=no ;;
14105 esac
14107 if test $ok = yes; then
14108 # An in-tree tool is available and we can use it
14109 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14111 $as_echo "just compiled" >&6; }
14112 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14113 # We already found the complete path
14114 ac_dir=`dirname $AS_FOR_TARGET`
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14116 $as_echo "pre-installed in $ac_dir" >&6; }
14117 elif test "x$target" = "x$host"; then
14118 # We can use an host tool
14119 AS_FOR_TARGET='$(AS)'
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14121 $as_echo "host tool" >&6; }
14122 else
14123 # We need a cross tool
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14125 $as_echo "pre-installed" >&6; }
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14130 $as_echo_n "checking where to find the target cc... " >&6; }
14131 if test "x${build}" != "x${host}" ; then
14132 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14133 # We already found the complete path
14134 ac_dir=`dirname $CC_FOR_TARGET`
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14136 $as_echo "pre-installed in $ac_dir" >&6; }
14137 else
14138 # Canadian cross, just use what we found
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14140 $as_echo "pre-installed" >&6; }
14142 else
14143 ok=yes
14144 case " ${configdirs} " in
14145 *" gcc "*) ;;
14146 *) ok=no ;;
14147 esac
14149 if test $ok = yes; then
14150 # An in-tree tool is available and we can use it
14151 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14153 $as_echo "just compiled" >&6; }
14154 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14155 # We already found the complete path
14156 ac_dir=`dirname $CC_FOR_TARGET`
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14158 $as_echo "pre-installed in $ac_dir" >&6; }
14159 elif test "x$target" = "x$host"; then
14160 # We can use an host tool
14161 CC_FOR_TARGET='$(CC)'
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14163 $as_echo "host tool" >&6; }
14164 else
14165 # We need a cross tool
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14167 $as_echo "pre-installed" >&6; }
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14172 $as_echo_n "checking where to find the target c++... " >&6; }
14173 if test "x${build}" != "x${host}" ; then
14174 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14175 # We already found the complete path
14176 ac_dir=`dirname $CXX_FOR_TARGET`
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14178 $as_echo "pre-installed in $ac_dir" >&6; }
14179 else
14180 # Canadian cross, just use what we found
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14182 $as_echo "pre-installed" >&6; }
14184 else
14185 ok=yes
14186 case " ${configdirs} " in
14187 *" gcc "*) ;;
14188 *) ok=no ;;
14189 esac
14190 case ,${enable_languages}, in
14191 *,c++,*) ;;
14192 *) ok=no ;;
14193 esac
14194 if test $ok = yes; then
14195 # An in-tree tool is available and we can use it
14196 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'
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14198 $as_echo "just compiled" >&6; }
14199 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14200 # We already found the complete path
14201 ac_dir=`dirname $CXX_FOR_TARGET`
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14203 $as_echo "pre-installed in $ac_dir" >&6; }
14204 elif test "x$target" = "x$host"; then
14205 # We can use an host tool
14206 CXX_FOR_TARGET='$(CXX)'
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14208 $as_echo "host tool" >&6; }
14209 else
14210 # We need a cross tool
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14212 $as_echo "pre-installed" >&6; }
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14217 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14218 if test "x${build}" != "x${host}" ; then
14219 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14220 # We already found the complete path
14221 ac_dir=`dirname $RAW_CXX_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 else
14225 # Canadian cross, just use what we found
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14227 $as_echo "pre-installed" >&6; }
14229 else
14230 ok=yes
14231 case " ${configdirs} " in
14232 *" gcc "*) ;;
14233 *) ok=no ;;
14234 esac
14235 case ,${enable_languages}, in
14236 *,c++,*) ;;
14237 *) ok=no ;;
14238 esac
14239 if test $ok = yes; then
14240 # An in-tree tool is available and we can use it
14241 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'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14243 $as_echo "just compiled" >&6; }
14244 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14245 # We already found the complete path
14246 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14248 $as_echo "pre-installed in $ac_dir" >&6; }
14249 elif test "x$target" = "x$host"; then
14250 # We can use an host tool
14251 RAW_CXX_FOR_TARGET='$(CXX)'
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14253 $as_echo "host tool" >&6; }
14254 else
14255 # We need a cross tool
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14257 $as_echo "pre-installed" >&6; }
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14262 $as_echo_n "checking where to find the target dlltool... " >&6; }
14263 if test "x${build}" != "x${host}" ; then
14264 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14265 # We already found the complete path
14266 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14268 $as_echo "pre-installed in $ac_dir" >&6; }
14269 else
14270 # Canadian cross, just use what we found
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14272 $as_echo "pre-installed" >&6; }
14274 else
14275 ok=yes
14276 case " ${configdirs} " in
14277 *" binutils "*) ;;
14278 *) ok=no ;;
14279 esac
14281 if test $ok = yes; then
14282 # An in-tree tool is available and we can use it
14283 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14285 $as_echo "just compiled" >&6; }
14286 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14287 # We already found the complete path
14288 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14290 $as_echo "pre-installed in $ac_dir" >&6; }
14291 elif test "x$target" = "x$host"; then
14292 # We can use an host tool
14293 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14295 $as_echo "host tool" >&6; }
14296 else
14297 # We need a cross tool
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14299 $as_echo "pre-installed" >&6; }
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14304 $as_echo_n "checking where to find the target gcc... " >&6; }
14305 if test "x${build}" != "x${host}" ; then
14306 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14307 # We already found the complete path
14308 ac_dir=`dirname $GCC_FOR_TARGET`
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14310 $as_echo "pre-installed in $ac_dir" >&6; }
14311 else
14312 # Canadian cross, just use what we found
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14314 $as_echo "pre-installed" >&6; }
14316 else
14317 ok=yes
14318 case " ${configdirs} " in
14319 *" gcc "*) ;;
14320 *) ok=no ;;
14321 esac
14323 if test $ok = yes; then
14324 # An in-tree tool is available and we can use it
14325 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14327 $as_echo "just compiled" >&6; }
14328 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14329 # We already found the complete path
14330 ac_dir=`dirname $GCC_FOR_TARGET`
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14332 $as_echo "pre-installed in $ac_dir" >&6; }
14333 elif test "x$target" = "x$host"; then
14334 # We can use an host tool
14335 GCC_FOR_TARGET='$()'
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14337 $as_echo "host tool" >&6; }
14338 else
14339 # We need a cross tool
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14341 $as_echo "pre-installed" >&6; }
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14346 $as_echo_n "checking where to find the target gcj... " >&6; }
14347 if test "x${build}" != "x${host}" ; then
14348 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14349 # We already found the complete path
14350 ac_dir=`dirname $GCJ_FOR_TARGET`
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14352 $as_echo "pre-installed in $ac_dir" >&6; }
14353 else
14354 # Canadian cross, just use what we found
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14356 $as_echo "pre-installed" >&6; }
14358 else
14359 ok=yes
14360 case " ${configdirs} " in
14361 *" gcc "*) ;;
14362 *) ok=no ;;
14363 esac
14364 case ,${enable_languages}, in
14365 *,java,*) ;;
14366 *) ok=no ;;
14367 esac
14368 if test $ok = yes; then
14369 # An in-tree tool is available and we can use it
14370 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14372 $as_echo "just compiled" >&6; }
14373 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14374 # We already found the complete path
14375 ac_dir=`dirname $GCJ_FOR_TARGET`
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14377 $as_echo "pre-installed in $ac_dir" >&6; }
14378 elif test "x$target" = "x$host"; then
14379 # We can use an host tool
14380 GCJ_FOR_TARGET='$(GCJ)'
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14382 $as_echo "host tool" >&6; }
14383 else
14384 # We need a cross tool
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386 $as_echo "pre-installed" >&6; }
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14391 $as_echo_n "checking where to find the target gfortran... " >&6; }
14392 if test "x${build}" != "x${host}" ; then
14393 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14394 # We already found the complete path
14395 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14397 $as_echo "pre-installed in $ac_dir" >&6; }
14398 else
14399 # Canadian cross, just use what we found
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14401 $as_echo "pre-installed" >&6; }
14403 else
14404 ok=yes
14405 case " ${configdirs} " in
14406 *" gcc "*) ;;
14407 *) ok=no ;;
14408 esac
14409 case ,${enable_languages}, in
14410 *,fortran,*) ;;
14411 *) ok=no ;;
14412 esac
14413 if test $ok = yes; then
14414 # An in-tree tool is available and we can use it
14415 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14417 $as_echo "just compiled" >&6; }
14418 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14419 # We already found the complete path
14420 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14422 $as_echo "pre-installed in $ac_dir" >&6; }
14423 elif test "x$target" = "x$host"; then
14424 # We can use an host tool
14425 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14427 $as_echo "host tool" >&6; }
14428 else
14429 # We need a cross tool
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14431 $as_echo "pre-installed" >&6; }
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14436 $as_echo_n "checking where to find the target gccgo... " >&6; }
14437 if test "x${build}" != "x${host}" ; then
14438 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14439 # We already found the complete path
14440 ac_dir=`dirname $GOC_FOR_TARGET`
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14442 $as_echo "pre-installed in $ac_dir" >&6; }
14443 else
14444 # Canadian cross, just use what we found
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14446 $as_echo "pre-installed" >&6; }
14448 else
14449 ok=yes
14450 case " ${configdirs} " in
14451 *" gcc "*) ;;
14452 *) ok=no ;;
14453 esac
14454 case ,${enable_languages}, in
14455 *,go,*) ;;
14456 *) ok=no ;;
14457 esac
14458 if test $ok = yes; then
14459 # An in-tree tool is available and we can use it
14460 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14462 $as_echo "just compiled" >&6; }
14463 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14464 # We already found the complete path
14465 ac_dir=`dirname $GOC_FOR_TARGET`
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14467 $as_echo "pre-installed in $ac_dir" >&6; }
14468 elif test "x$target" = "x$host"; then
14469 # We can use an host tool
14470 GOC_FOR_TARGET='$(GOC)'
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14472 $as_echo "host tool" >&6; }
14473 else
14474 # We need a cross tool
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14476 $as_echo "pre-installed" >&6; }
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gupc" >&5
14481 $as_echo_n "checking where to find the target gupc... " >&6; }
14482 if test "x${build}" != "x${host}" ; then
14483 if expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14484 # We already found the complete path
14485 ac_dir=`dirname $GUPC_FOR_TARGET`
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14487 $as_echo "pre-installed in $ac_dir" >&6; }
14488 else
14489 # Canadian cross, just use what we found
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14491 $as_echo "pre-installed" >&6; }
14493 else
14494 ok=yes
14495 case " ${configdirs} " in
14496 *" gcc "*) ;;
14497 *) ok=no ;;
14498 esac
14499 case ,${enable_languages}, in
14500 *,upc,*) ;;
14501 *) ok=no ;;
14502 esac
14503 if test $ok = yes; then
14504 # An in-tree tool is available and we can use it
14505 GUPC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gupc -B$$r/$(HOST_SUBDIR)/gcc/'
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14507 $as_echo "just compiled" >&6; }
14508 elif expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14509 # We already found the complete path
14510 ac_dir=`dirname $GUPC_FOR_TARGET`
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14512 $as_echo "pre-installed in $ac_dir" >&6; }
14513 elif test "x$target" = "x$host"; then
14514 # We can use an host tool
14515 GUPC_FOR_TARGET='$(GUPC)'
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14517 $as_echo "host tool" >&6; }
14518 else
14519 # We need a cross tool
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14521 $as_echo "pre-installed" >&6; }
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14526 $as_echo_n "checking where to find the target ld... " >&6; }
14527 if test "x${build}" != "x${host}" ; then
14528 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14529 # We already found the complete path
14530 ac_dir=`dirname $LD_FOR_TARGET`
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14532 $as_echo "pre-installed in $ac_dir" >&6; }
14533 else
14534 # Canadian cross, just use what we found
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14536 $as_echo "pre-installed" >&6; }
14538 else
14539 ok=yes
14540 case " ${configdirs} " in
14541 *" ld "*) ;;
14542 *) ok=no ;;
14543 esac
14545 if test $ok = yes; then
14546 # An in-tree tool is available and we can use it
14547 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14549 $as_echo "just compiled" >&6; }
14550 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14551 # We already found the complete path
14552 ac_dir=`dirname $LD_FOR_TARGET`
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14554 $as_echo "pre-installed in $ac_dir" >&6; }
14555 elif test "x$target" = "x$host"; then
14556 # We can use an host tool
14557 LD_FOR_TARGET='$(LD)'
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14559 $as_echo "host tool" >&6; }
14560 else
14561 # We need a cross tool
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14563 $as_echo "pre-installed" >&6; }
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14568 $as_echo_n "checking where to find the target lipo... " >&6; }
14569 if test "x${build}" != "x${host}" ; then
14570 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14571 # We already found the complete path
14572 ac_dir=`dirname $LIPO_FOR_TARGET`
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14574 $as_echo "pre-installed in $ac_dir" >&6; }
14575 else
14576 # Canadian cross, just use what we found
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14578 $as_echo "pre-installed" >&6; }
14580 else
14581 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14582 # We already found the complete path
14583 ac_dir=`dirname $LIPO_FOR_TARGET`
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14585 $as_echo "pre-installed in $ac_dir" >&6; }
14586 elif test "x$target" = "x$host"; then
14587 # We can use an host tool
14588 LIPO_FOR_TARGET='$(LIPO)'
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14590 $as_echo "host tool" >&6; }
14591 else
14592 # We need a cross tool
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14594 $as_echo "pre-installed" >&6; }
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14599 $as_echo_n "checking where to find the target nm... " >&6; }
14600 if test "x${build}" != "x${host}" ; then
14601 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14602 # We already found the complete path
14603 ac_dir=`dirname $NM_FOR_TARGET`
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14605 $as_echo "pre-installed in $ac_dir" >&6; }
14606 else
14607 # Canadian cross, just use what we found
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14609 $as_echo "pre-installed" >&6; }
14611 else
14612 ok=yes
14613 case " ${configdirs} " in
14614 *" binutils "*) ;;
14615 *) ok=no ;;
14616 esac
14618 if test $ok = yes; then
14619 # An in-tree tool is available and we can use it
14620 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14622 $as_echo "just compiled" >&6; }
14623 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14624 # We already found the complete path
14625 ac_dir=`dirname $NM_FOR_TARGET`
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14627 $as_echo "pre-installed in $ac_dir" >&6; }
14628 elif test "x$target" = "x$host"; then
14629 # We can use an host tool
14630 NM_FOR_TARGET='$(NM)'
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14632 $as_echo "host tool" >&6; }
14633 else
14634 # We need a cross tool
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14636 $as_echo "pre-installed" >&6; }
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14641 $as_echo_n "checking where to find the target objcopy... " >&6; }
14642 if test "x${build}" != "x${host}" ; then
14643 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14644 # We already found the complete path
14645 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14647 $as_echo "pre-installed in $ac_dir" >&6; }
14648 else
14649 # Canadian cross, just use what we found
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14651 $as_echo "pre-installed" >&6; }
14653 else
14654 ok=yes
14655 case " ${configdirs} " in
14656 *" binutils "*) ;;
14657 *) ok=no ;;
14658 esac
14660 if test $ok = yes; then
14661 # An in-tree tool is available and we can use it
14662 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14664 $as_echo "just compiled" >&6; }
14665 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14666 # We already found the complete path
14667 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14669 $as_echo "pre-installed in $ac_dir" >&6; }
14670 elif test "x$target" = "x$host"; then
14671 # We can use an host tool
14672 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14674 $as_echo "host tool" >&6; }
14675 else
14676 # We need a cross tool
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14678 $as_echo "pre-installed" >&6; }
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14683 $as_echo_n "checking where to find the target objdump... " >&6; }
14684 if test "x${build}" != "x${host}" ; then
14685 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14686 # We already found the complete path
14687 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14689 $as_echo "pre-installed in $ac_dir" >&6; }
14690 else
14691 # Canadian cross, just use what we found
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14693 $as_echo "pre-installed" >&6; }
14695 else
14696 ok=yes
14697 case " ${configdirs} " in
14698 *" binutils "*) ;;
14699 *) ok=no ;;
14700 esac
14702 if test $ok = yes; then
14703 # An in-tree tool is available and we can use it
14704 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14706 $as_echo "just compiled" >&6; }
14707 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14708 # We already found the complete path
14709 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14711 $as_echo "pre-installed in $ac_dir" >&6; }
14712 elif test "x$target" = "x$host"; then
14713 # We can use an host tool
14714 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14716 $as_echo "host tool" >&6; }
14717 else
14718 # We need a cross tool
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14720 $as_echo "pre-installed" >&6; }
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14725 $as_echo_n "checking where to find the target ranlib... " >&6; }
14726 if test "x${build}" != "x${host}" ; then
14727 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14728 # We already found the complete path
14729 ac_dir=`dirname $RANLIB_FOR_TARGET`
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14731 $as_echo "pre-installed in $ac_dir" >&6; }
14732 else
14733 # Canadian cross, just use what we found
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14735 $as_echo "pre-installed" >&6; }
14737 else
14738 ok=yes
14739 case " ${configdirs} " in
14740 *" binutils "*) ;;
14741 *) ok=no ;;
14742 esac
14744 if test $ok = yes; then
14745 # An in-tree tool is available and we can use it
14746 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14748 $as_echo "just compiled" >&6; }
14749 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14750 # We already found the complete path
14751 ac_dir=`dirname $RANLIB_FOR_TARGET`
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14753 $as_echo "pre-installed in $ac_dir" >&6; }
14754 elif test "x$target" = "x$host"; then
14755 # We can use an host tool
14756 RANLIB_FOR_TARGET='$(RANLIB)'
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14758 $as_echo "host tool" >&6; }
14759 else
14760 # We need a cross tool
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14762 $as_echo "pre-installed" >&6; }
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14767 $as_echo_n "checking where to find the target readelf... " >&6; }
14768 if test "x${build}" != "x${host}" ; then
14769 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14770 # We already found the complete path
14771 ac_dir=`dirname $READELF_FOR_TARGET`
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14773 $as_echo "pre-installed in $ac_dir" >&6; }
14774 else
14775 # Canadian cross, just use what we found
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14777 $as_echo "pre-installed" >&6; }
14779 else
14780 ok=yes
14781 case " ${configdirs} " in
14782 *" binutils "*) ;;
14783 *) ok=no ;;
14784 esac
14786 if test $ok = yes; then
14787 # An in-tree tool is available and we can use it
14788 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14790 $as_echo "just compiled" >&6; }
14791 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14792 # We already found the complete path
14793 ac_dir=`dirname $READELF_FOR_TARGET`
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14795 $as_echo "pre-installed in $ac_dir" >&6; }
14796 elif test "x$target" = "x$host"; then
14797 # We can use an host tool
14798 READELF_FOR_TARGET='$(READELF)'
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14800 $as_echo "host tool" >&6; }
14801 else
14802 # We need a cross tool
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14804 $as_echo "pre-installed" >&6; }
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14809 $as_echo_n "checking where to find the target strip... " >&6; }
14810 if test "x${build}" != "x${host}" ; then
14811 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14812 # We already found the complete path
14813 ac_dir=`dirname $STRIP_FOR_TARGET`
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14815 $as_echo "pre-installed in $ac_dir" >&6; }
14816 else
14817 # Canadian cross, just use what we found
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14819 $as_echo "pre-installed" >&6; }
14821 else
14822 ok=yes
14823 case " ${configdirs} " in
14824 *" binutils "*) ;;
14825 *) ok=no ;;
14826 esac
14828 if test $ok = yes; then
14829 # An in-tree tool is available and we can use it
14830 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14832 $as_echo "just compiled" >&6; }
14833 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14834 # We already found the complete path
14835 ac_dir=`dirname $STRIP_FOR_TARGET`
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14837 $as_echo "pre-installed in $ac_dir" >&6; }
14838 elif test "x$target" = "x$host"; then
14839 # We can use an host tool
14840 STRIP_FOR_TARGET='$(STRIP)'
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14842 $as_echo "host tool" >&6; }
14843 else
14844 # We need a cross tool
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14846 $as_echo "pre-installed" >&6; }
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14851 $as_echo_n "checking where to find the target windres... " >&6; }
14852 if test "x${build}" != "x${host}" ; then
14853 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14854 # We already found the complete path
14855 ac_dir=`dirname $WINDRES_FOR_TARGET`
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14857 $as_echo "pre-installed in $ac_dir" >&6; }
14858 else
14859 # Canadian cross, just use what we found
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14861 $as_echo "pre-installed" >&6; }
14863 else
14864 ok=yes
14865 case " ${configdirs} " in
14866 *" binutils "*) ;;
14867 *) ok=no ;;
14868 esac
14870 if test $ok = yes; then
14871 # An in-tree tool is available and we can use it
14872 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14874 $as_echo "just compiled" >&6; }
14875 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14876 # We already found the complete path
14877 ac_dir=`dirname $WINDRES_FOR_TARGET`
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14879 $as_echo "pre-installed in $ac_dir" >&6; }
14880 elif test "x$target" = "x$host"; then
14881 # We can use an host tool
14882 WINDRES_FOR_TARGET='$(WINDRES)'
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14884 $as_echo "host tool" >&6; }
14885 else
14886 # We need a cross tool
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14888 $as_echo "pre-installed" >&6; }
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14893 $as_echo_n "checking where to find the target windmc... " >&6; }
14894 if test "x${build}" != "x${host}" ; then
14895 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14896 # We already found the complete path
14897 ac_dir=`dirname $WINDMC_FOR_TARGET`
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14899 $as_echo "pre-installed in $ac_dir" >&6; }
14900 else
14901 # Canadian cross, just use what we found
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14903 $as_echo "pre-installed" >&6; }
14905 else
14906 ok=yes
14907 case " ${configdirs} " in
14908 *" binutils "*) ;;
14909 *) ok=no ;;
14910 esac
14912 if test $ok = yes; then
14913 # An in-tree tool is available and we can use it
14914 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14916 $as_echo "just compiled" >&6; }
14917 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14918 # We already found the complete path
14919 ac_dir=`dirname $WINDMC_FOR_TARGET`
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14921 $as_echo "pre-installed in $ac_dir" >&6; }
14922 elif test "x$target" = "x$host"; then
14923 # We can use an host tool
14924 WINDMC_FOR_TARGET='$(WINDMC)'
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14926 $as_echo "host tool" >&6; }
14927 else
14928 # We need a cross tool
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14930 $as_echo "pre-installed" >&6; }
14938 # Certain tools may need extra flags.
14939 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14940 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14941 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14943 # When building target libraries, except in a Canadian cross, we use
14944 # the same toolchain as the compiler we just built.
14945 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14946 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14947 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14948 if test $host = $build; then
14949 case " $configdirs " in
14950 *" gcc "*)
14951 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14952 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14953 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14955 esac
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14964 # Check whether --enable-maintainer-mode was given.
14965 if test "${enable_maintainer_mode+set}" = set; then :
14966 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14967 else
14968 USE_MAINTAINER_MODE=no
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14972 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14975 if test "$USE_MAINTAINER_MODE" = yes; then
14976 MAINTAINER_MODE_TRUE=
14977 MAINTAINER_MODE_FALSE='#'
14978 else
14979 MAINTAINER_MODE_TRUE='#'
14980 MAINTAINER_MODE_FALSE=
14982 MAINT=$MAINTAINER_MODE_TRUE
14984 # ---------------------
14985 # GCC bootstrap support
14986 # ---------------------
14988 # Stage specific cflags for build.
14989 stage1_cflags="-g"
14990 case $build in
14991 vax-*-*)
14992 case ${GCC} in
14993 yes) stage1_cflags="-g -Wa,-J" ;;
14994 *) stage1_cflags="-g -J" ;;
14995 esac ;;
14996 esac
15000 # Enable --enable-checking in stage1 of the compiler.
15001 # Check whether --enable-stage1-checking was given.
15002 if test "${enable_stage1_checking+set}" = set; then :
15003 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15004 else
15005 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15006 stage1_checking=--enable-checking=yes,types
15007 else
15008 stage1_checking=--enable-checking=$enable_checking,types
15014 # Enable -Werror in bootstrap stage2 and later.
15015 # Check whether --enable-werror was given.
15016 if test "${enable_werror+set}" = set; then :
15017 enableval=$enable_werror;
15018 else
15019 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15020 enable_werror=yes
15021 else
15022 enable_werror=no
15026 case ${enable_werror} in
15027 yes) stage2_werror_flag="--enable-werror-always" ;;
15028 *) stage2_werror_flag="" ;;
15029 esac
15032 # Enable --enable-host-shared.
15033 # Check whether --enable-host-shared was given.
15034 if test "${enable_host_shared+set}" = set; then :
15035 enableval=$enable_host_shared; host_shared=$enableval
15036 else
15037 host_shared=no
15042 # Specify what files to not compare during bootstrap.
15044 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15045 case "$target" in
15046 hppa*64*-*-hpux*) ;;
15047 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
15048 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15049 esac
15052 ac_config_files="$ac_config_files Makefile"
15054 cat >confcache <<\_ACEOF
15055 # This file is a shell script that caches the results of configure
15056 # tests run on this system so they can be shared between configure
15057 # scripts and configure runs, see configure's option --config-cache.
15058 # It is not useful on other systems. If it contains results you don't
15059 # want to keep, you may remove or edit it.
15061 # config.status only pays attention to the cache file if you give it
15062 # the --recheck option to rerun configure.
15064 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15065 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15066 # following values.
15068 _ACEOF
15070 # The following way of writing the cache mishandles newlines in values,
15071 # but we know of no workaround that is simple, portable, and efficient.
15072 # So, we kill variables containing newlines.
15073 # Ultrix sh set writes to stderr and can't be redirected directly,
15074 # and sets the high bit in the cache file unless we assign to the vars.
15076 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15077 eval ac_val=\$$ac_var
15078 case $ac_val in #(
15079 *${as_nl}*)
15080 case $ac_var in #(
15081 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15082 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15083 esac
15084 case $ac_var in #(
15085 _ | IFS | as_nl) ;; #(
15086 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15087 *) { eval $ac_var=; unset $ac_var;} ;;
15088 esac ;;
15089 esac
15090 done
15092 (set) 2>&1 |
15093 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15094 *${as_nl}ac_space=\ *)
15095 # `set' does not quote correctly, so add quotes: double-quote
15096 # substitution turns \\\\ into \\, and sed turns \\ into \.
15097 sed -n \
15098 "s/'/'\\\\''/g;
15099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15100 ;; #(
15102 # `set' quotes correctly as required by POSIX, so do not add quotes.
15103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15105 esac |
15106 sort
15108 sed '
15109 /^ac_cv_env_/b end
15110 t clear
15111 :clear
15112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15113 t end
15114 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15115 :end' >>confcache
15116 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15117 if test -w "$cache_file"; then
15118 test "x$cache_file" != "x/dev/null" &&
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15120 $as_echo "$as_me: updating cache $cache_file" >&6;}
15121 cat confcache >$cache_file
15122 else
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15124 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15127 rm -f confcache
15129 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15130 # Let make expand exec_prefix.
15131 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15133 # Transform confdefs.h into DEFS.
15134 # Protect against shell expansion while executing Makefile rules.
15135 # Protect against Makefile macro expansion.
15137 # If the first sed substitution is executed (which looks for macros that
15138 # take arguments), then branch to the quote section. Otherwise,
15139 # look for a macro that doesn't take arguments.
15140 ac_script='
15141 :mline
15142 /\\$/{
15144 s,\\\n,,
15145 b mline
15147 t clear
15148 :clear
15149 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15150 t quote
15151 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15152 t quote
15153 b any
15154 :quote
15155 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15156 s/\[/\\&/g
15157 s/\]/\\&/g
15158 s/\$/$$/g
15160 :any
15163 s/^\n//
15164 s/\n/ /g
15168 DEFS=`sed -n "$ac_script" confdefs.h`
15171 ac_libobjs=
15172 ac_ltlibobjs=
15173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15174 # 1. Remove the extension, and $U if already installed.
15175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15178 # will be set to the directory where LIBOBJS objects are built.
15179 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15180 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15181 done
15182 LIBOBJS=$ac_libobjs
15184 LTLIBOBJS=$ac_ltlibobjs
15188 : ${CONFIG_STATUS=./config.status}
15189 ac_write_fail=0
15190 ac_clean_files_save=$ac_clean_files
15191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15193 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15194 as_write_fail=0
15195 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15196 #! $SHELL
15197 # Generated by $as_me.
15198 # Run this file to recreate the current configuration.
15199 # Compiler output produced by configure, useful for debugging
15200 # configure, is in config.log if it exists.
15202 debug=false
15203 ac_cs_recheck=false
15204 ac_cs_silent=false
15206 SHELL=\${CONFIG_SHELL-$SHELL}
15207 export SHELL
15208 _ASEOF
15209 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15210 ## -------------------- ##
15211 ## M4sh Initialization. ##
15212 ## -------------------- ##
15214 # Be more Bourne compatible
15215 DUALCASE=1; export DUALCASE # for MKS sh
15216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15217 emulate sh
15218 NULLCMD=:
15219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15220 # is contrary to our usage. Disable this feature.
15221 alias -g '${1+"$@"}'='"$@"'
15222 setopt NO_GLOB_SUBST
15223 else
15224 case `(set -o) 2>/dev/null` in #(
15225 *posix*) :
15226 set -o posix ;; #(
15227 *) :
15229 esac
15233 as_nl='
15235 export as_nl
15236 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15237 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15238 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15239 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15240 # Prefer a ksh shell builtin over an external printf program on Solaris,
15241 # but without wasting forks for bash or zsh.
15242 if test -z "$BASH_VERSION$ZSH_VERSION" \
15243 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15244 as_echo='print -r --'
15245 as_echo_n='print -rn --'
15246 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15247 as_echo='printf %s\n'
15248 as_echo_n='printf %s'
15249 else
15250 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15251 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15252 as_echo_n='/usr/ucb/echo -n'
15253 else
15254 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15255 as_echo_n_body='eval
15256 arg=$1;
15257 case $arg in #(
15258 *"$as_nl"*)
15259 expr "X$arg" : "X\\(.*\\)$as_nl";
15260 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15261 esac;
15262 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15264 export as_echo_n_body
15265 as_echo_n='sh -c $as_echo_n_body as_echo'
15267 export as_echo_body
15268 as_echo='sh -c $as_echo_body as_echo'
15271 # The user is always right.
15272 if test "${PATH_SEPARATOR+set}" != set; then
15273 PATH_SEPARATOR=:
15274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15275 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15276 PATH_SEPARATOR=';'
15281 # IFS
15282 # We need space, tab and new line, in precisely that order. Quoting is
15283 # there to prevent editors from complaining about space-tab.
15284 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15285 # splitting by setting IFS to empty value.)
15286 IFS=" "" $as_nl"
15288 # Find who we are. Look in the path if we contain no directory separator.
15289 case $0 in #((
15290 *[\\/]* ) as_myself=$0 ;;
15291 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15292 for as_dir in $PATH
15294 IFS=$as_save_IFS
15295 test -z "$as_dir" && as_dir=.
15296 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15297 done
15298 IFS=$as_save_IFS
15301 esac
15302 # We did not find ourselves, most probably we were run as `sh COMMAND'
15303 # in which case we are not to be found in the path.
15304 if test "x$as_myself" = x; then
15305 as_myself=$0
15307 if test ! -f "$as_myself"; then
15308 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15309 exit 1
15312 # Unset variables that we do not need and which cause bugs (e.g. in
15313 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15314 # suppresses any "Segmentation fault" message there. '((' could
15315 # trigger a bug in pdksh 5.2.14.
15316 for as_var in BASH_ENV ENV MAIL MAILPATH
15317 do eval test x\${$as_var+set} = xset \
15318 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15319 done
15320 PS1='$ '
15321 PS2='> '
15322 PS4='+ '
15324 # NLS nuisances.
15325 LC_ALL=C
15326 export LC_ALL
15327 LANGUAGE=C
15328 export LANGUAGE
15330 # CDPATH.
15331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15334 # as_fn_error ERROR [LINENO LOG_FD]
15335 # ---------------------------------
15336 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15337 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15338 # script with status $?, using 1 if that was 0.
15339 as_fn_error ()
15341 as_status=$?; test $as_status -eq 0 && as_status=1
15342 if test "$3"; then
15343 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15344 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15346 $as_echo "$as_me: error: $1" >&2
15347 as_fn_exit $as_status
15348 } # as_fn_error
15351 # as_fn_set_status STATUS
15352 # -----------------------
15353 # Set $? to STATUS, without forking.
15354 as_fn_set_status ()
15356 return $1
15357 } # as_fn_set_status
15359 # as_fn_exit STATUS
15360 # -----------------
15361 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15362 as_fn_exit ()
15364 set +e
15365 as_fn_set_status $1
15366 exit $1
15367 } # as_fn_exit
15369 # as_fn_unset VAR
15370 # ---------------
15371 # Portably unset VAR.
15372 as_fn_unset ()
15374 { eval $1=; unset $1;}
15376 as_unset=as_fn_unset
15377 # as_fn_append VAR VALUE
15378 # ----------------------
15379 # Append the text in VALUE to the end of the definition contained in VAR. Take
15380 # advantage of any shell optimizations that allow amortized linear growth over
15381 # repeated appends, instead of the typical quadratic growth present in naive
15382 # implementations.
15383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15384 eval 'as_fn_append ()
15386 eval $1+=\$2
15388 else
15389 as_fn_append ()
15391 eval $1=\$$1\$2
15393 fi # as_fn_append
15395 # as_fn_arith ARG...
15396 # ------------------
15397 # Perform arithmetic evaluation on the ARGs, and store the result in the
15398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15399 # must be portable across $(()) and expr.
15400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15401 eval 'as_fn_arith ()
15403 as_val=$(( $* ))
15405 else
15406 as_fn_arith ()
15408 as_val=`expr "$@" || test $? -eq 1`
15410 fi # as_fn_arith
15413 if expr a : '\(a\)' >/dev/null 2>&1 &&
15414 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15415 as_expr=expr
15416 else
15417 as_expr=false
15420 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15421 as_basename=basename
15422 else
15423 as_basename=false
15426 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15427 as_dirname=dirname
15428 else
15429 as_dirname=false
15432 as_me=`$as_basename -- "$0" ||
15433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15434 X"$0" : 'X\(//\)$' \| \
15435 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15436 $as_echo X/"$0" |
15437 sed '/^.*\/\([^/][^/]*\)\/*$/{
15438 s//\1/
15441 /^X\/\(\/\/\)$/{
15442 s//\1/
15445 /^X\/\(\/\).*/{
15446 s//\1/
15449 s/.*/./; q'`
15451 # Avoid depending upon Character Ranges.
15452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15455 as_cr_digits='0123456789'
15456 as_cr_alnum=$as_cr_Letters$as_cr_digits
15458 ECHO_C= ECHO_N= ECHO_T=
15459 case `echo -n x` in #(((((
15460 -n*)
15461 case `echo 'xy\c'` in
15462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15463 xy) ECHO_C='\c';;
15464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15465 ECHO_T=' ';;
15466 esac;;
15468 ECHO_N='-n';;
15469 esac
15471 rm -f conf$$ conf$$.exe conf$$.file
15472 if test -d conf$$.dir; then
15473 rm -f conf$$.dir/conf$$.file
15474 else
15475 rm -f conf$$.dir
15476 mkdir conf$$.dir 2>/dev/null
15478 if (echo >conf$$.file) 2>/dev/null; then
15479 if ln -s conf$$.file conf$$ 2>/dev/null; then
15480 as_ln_s='ln -s'
15481 # ... but there are two gotchas:
15482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15484 # In both cases, we have to default to `cp -p'.
15485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15486 as_ln_s='cp -p'
15487 elif ln conf$$.file conf$$ 2>/dev/null; then
15488 as_ln_s=ln
15489 else
15490 as_ln_s='cp -p'
15492 else
15493 as_ln_s='cp -p'
15495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15496 rmdir conf$$.dir 2>/dev/null
15499 # as_fn_mkdir_p
15500 # -------------
15501 # Create "$as_dir" as a directory, including parents if necessary.
15502 as_fn_mkdir_p ()
15505 case $as_dir in #(
15506 -*) as_dir=./$as_dir;;
15507 esac
15508 test -d "$as_dir" || eval $as_mkdir_p || {
15509 as_dirs=
15510 while :; do
15511 case $as_dir in #(
15512 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15513 *) as_qdir=$as_dir;;
15514 esac
15515 as_dirs="'$as_qdir' $as_dirs"
15516 as_dir=`$as_dirname -- "$as_dir" ||
15517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15518 X"$as_dir" : 'X\(//\)[^/]' \| \
15519 X"$as_dir" : 'X\(//\)$' \| \
15520 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15521 $as_echo X"$as_dir" |
15522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15523 s//\1/
15526 /^X\(\/\/\)[^/].*/{
15527 s//\1/
15530 /^X\(\/\/\)$/{
15531 s//\1/
15534 /^X\(\/\).*/{
15535 s//\1/
15538 s/.*/./; q'`
15539 test -d "$as_dir" && break
15540 done
15541 test -z "$as_dirs" || eval "mkdir $as_dirs"
15542 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15545 } # as_fn_mkdir_p
15546 if mkdir -p . 2>/dev/null; then
15547 as_mkdir_p='mkdir -p "$as_dir"'
15548 else
15549 test -d ./-p && rmdir ./-p
15550 as_mkdir_p=false
15553 if test -x / >/dev/null 2>&1; then
15554 as_test_x='test -x'
15555 else
15556 if ls -dL / >/dev/null 2>&1; then
15557 as_ls_L_option=L
15558 else
15559 as_ls_L_option=
15561 as_test_x='
15562 eval sh -c '\''
15563 if test -d "$1"; then
15564 test -d "$1/.";
15565 else
15566 case $1 in #(
15567 -*)set "./$1";;
15568 esac;
15569 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15570 ???[sx]*):;;*)false;;esac;fi
15571 '\'' sh
15574 as_executable_p=$as_test_x
15576 # Sed expression to map a string onto a valid CPP name.
15577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15579 # Sed expression to map a string onto a valid variable name.
15580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15583 exec 6>&1
15584 ## ----------------------------------- ##
15585 ## Main body of $CONFIG_STATUS script. ##
15586 ## ----------------------------------- ##
15587 _ASEOF
15588 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591 # Save the log message, to keep $0 and so on meaningful, and to
15592 # report actual input values of CONFIG_FILES etc. instead of their
15593 # values after options handling.
15594 ac_log="
15595 This file was extended by $as_me, which was
15596 generated by GNU Autoconf 2.64. Invocation command line was
15598 CONFIG_FILES = $CONFIG_FILES
15599 CONFIG_HEADERS = $CONFIG_HEADERS
15600 CONFIG_LINKS = $CONFIG_LINKS
15601 CONFIG_COMMANDS = $CONFIG_COMMANDS
15602 $ $0 $@
15604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15607 _ACEOF
15609 case $ac_config_files in *"
15610 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15611 esac
15615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15616 # Files that config.status was made for.
15617 config_files="$ac_config_files"
15619 _ACEOF
15621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15622 ac_cs_usage="\
15623 \`$as_me' instantiates files and other configuration actions
15624 from templates according to the current configuration. Unless the files
15625 and actions are specified as TAGs, all are instantiated by default.
15627 Usage: $0 [OPTION]... [TAG]...
15629 -h, --help print this help, then exit
15630 -V, --version print version number and configuration settings, then exit
15631 -q, --quiet, --silent
15632 do not print progress messages
15633 -d, --debug don't remove temporary files
15634 --recheck update $as_me by reconfiguring in the same conditions
15635 --file=FILE[:TEMPLATE]
15636 instantiate the configuration file FILE
15638 Configuration files:
15639 $config_files
15641 Report bugs to the package provider."
15643 _ACEOF
15644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645 ac_cs_version="\\
15646 config.status
15647 configured by $0, generated by GNU Autoconf 2.64,
15648 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15650 Copyright (C) 2009 Free Software Foundation, Inc.
15651 This config.status script is free software; the Free Software Foundation
15652 gives unlimited permission to copy, distribute and modify it."
15654 ac_pwd='$ac_pwd'
15655 srcdir='$srcdir'
15656 INSTALL='$INSTALL'
15657 AWK='$AWK'
15658 test -n "\$AWK" || AWK=awk
15659 _ACEOF
15661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15662 # The default lists apply if the user does not specify any file.
15663 ac_need_defaults=:
15664 while test $# != 0
15666 case $1 in
15667 --*=*)
15668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15670 ac_shift=:
15673 ac_option=$1
15674 ac_optarg=$2
15675 ac_shift=shift
15677 esac
15679 case $ac_option in
15680 # Handling of the options.
15681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15682 ac_cs_recheck=: ;;
15683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15684 $as_echo "$ac_cs_version"; exit ;;
15685 --debug | --debu | --deb | --de | --d | -d )
15686 debug=: ;;
15687 --file | --fil | --fi | --f )
15688 $ac_shift
15689 case $ac_optarg in
15690 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15691 esac
15692 as_fn_append CONFIG_FILES " '$ac_optarg'"
15693 ac_need_defaults=false;;
15694 --he | --h | --help | --hel | -h )
15695 $as_echo "$ac_cs_usage"; exit ;;
15696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15698 ac_cs_silent=: ;;
15700 # This is an error.
15701 -*) as_fn_error "unrecognized option: \`$1'
15702 Try \`$0 --help' for more information." ;;
15704 *) as_fn_append ac_config_targets " $1"
15705 ac_need_defaults=false ;;
15707 esac
15708 shift
15709 done
15711 ac_configure_extra_args=
15713 if $ac_cs_silent; then
15714 exec 6>/dev/null
15715 ac_configure_extra_args="$ac_configure_extra_args --silent"
15718 _ACEOF
15719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15720 if \$ac_cs_recheck; then
15721 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15722 shift
15723 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15724 CONFIG_SHELL='$SHELL'
15725 export CONFIG_SHELL
15726 exec "\$@"
15729 _ACEOF
15730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731 exec 5>>config.log
15733 echo
15734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15735 ## Running $as_me. ##
15736 _ASBOX
15737 $as_echo "$ac_log"
15738 } >&5
15740 _ACEOF
15741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15743 # INIT-COMMANDS
15745 extrasub_build="$extrasub_build"
15746 extrasub_host="$extrasub_host"
15747 extrasub_target="$extrasub_target"
15749 _ACEOF
15751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15753 # Handling of arguments.
15754 for ac_config_target in $ac_config_targets
15756 case $ac_config_target in
15757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15759 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15760 esac
15761 done
15764 # If the user did not use the arguments to specify the items to instantiate,
15765 # then the envvar interface is used. Set only those that are not.
15766 # We use the long form for the default assignment because of an extremely
15767 # bizarre bug on SunOS 4.1.3.
15768 if $ac_need_defaults; then
15769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15772 # Have a temporary directory for convenience. Make it in the build tree
15773 # simply because there is no reason against having it here, and in addition,
15774 # creating and moving files from /tmp can sometimes cause problems.
15775 # Hook for its removal unless debugging.
15776 # Note that there is a small window in which the directory will not be cleaned:
15777 # after its creation but before its name has been assigned to `$tmp'.
15778 $debug ||
15780 tmp=
15781 trap 'exit_status=$?
15782 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15784 trap 'as_fn_exit 1' 1 2 13 15
15786 # Create a (secure) tmp directory for tmp files.
15789 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15790 test -n "$tmp" && test -d "$tmp"
15791 } ||
15793 tmp=./conf$$-$RANDOM
15794 (umask 077 && mkdir "$tmp")
15795 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15797 # Set up the scripts for CONFIG_FILES section.
15798 # No need to generate them if there are no CONFIG_FILES.
15799 # This happens for instance with `./config.status config.h'.
15800 if test -n "$CONFIG_FILES"; then
15802 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15803 ac_cs_awk_getline=:
15804 ac_cs_awk_pipe_init=
15805 ac_cs_awk_read_file='
15806 while ((getline aline < (F[key])) > 0)
15807 print(aline)
15808 close(F[key])'
15809 ac_cs_awk_pipe_fini=
15810 else
15811 ac_cs_awk_getline=false
15812 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15813 ac_cs_awk_read_file='
15814 print "|#_!!_#|"
15815 print "cat " F[key] " &&"
15816 '$ac_cs_awk_pipe_init
15817 # The final `:' finishes the AND list.
15818 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15820 ac_cr=`echo X | tr X '\015'`
15821 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15822 # But we know of no other shell where ac_cr would be empty at this
15823 # point, so we can use a bashism as a fallback.
15824 if test "x$ac_cr" = x; then
15825 eval ac_cr=\$\'\\r\'
15827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15829 ac_cs_awk_cr='\r'
15830 else
15831 ac_cs_awk_cr=$ac_cr
15834 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15835 _ACEOF
15837 # Create commands to substitute file output variables.
15839 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15840 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15841 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15842 echo "_ACAWK" &&
15843 echo "_ACEOF"
15844 } >conf$$files.sh &&
15845 . ./conf$$files.sh ||
15846 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15847 rm -f conf$$files.sh
15850 echo "cat >conf$$subs.awk <<_ACEOF" &&
15851 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15852 echo "_ACEOF"
15853 } >conf$$subs.sh ||
15854 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15855 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15856 ac_delim='%!_!# '
15857 for ac_last_try in false false false false false :; do
15858 . ./conf$$subs.sh ||
15859 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15861 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15862 if test $ac_delim_n = $ac_delim_num; then
15863 break
15864 elif $ac_last_try; then
15865 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15866 else
15867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15869 done
15870 rm -f conf$$subs.sh
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15874 _ACEOF
15875 sed -n '
15877 s/^/S["/; s/!.*/"]=/
15880 s/^[^!]*!//
15881 :repl
15882 t repl
15883 s/'"$ac_delim"'$//
15884 t delim
15887 s/\(.\{148\}\).*/\1/
15888 t more1
15889 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15892 b repl
15893 :more1
15894 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15897 s/.\{148\}//
15898 t nl
15899 :delim
15901 s/\(.\{148\}\).*/\1/
15902 t more2
15903 s/["\\]/\\&/g; s/^/"/; s/$/"/
15906 :more2
15907 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15910 s/.\{148\}//
15911 t delim
15912 ' <conf$$subs.awk | sed '
15913 /^[^""]/{
15915 s/\n//
15917 ' >>$CONFIG_STATUS || ac_write_fail=1
15918 rm -f conf$$subs.awk
15919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15920 _ACAWK
15921 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15922 for (key in S) S_is_set[key] = 1
15923 FS = "\a"
15924 \$ac_cs_awk_pipe_init
15927 line = $ 0
15928 nfields = split(line, field, "@")
15929 substed = 0
15930 len = length(field[1])
15931 for (i = 2; i < nfields; i++) {
15932 key = field[i]
15933 keylen = length(key)
15934 if (S_is_set[key]) {
15935 value = S[key]
15936 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15937 len += length(value) + length(field[++i])
15938 substed = 1
15939 } else
15940 len += 1 + keylen
15942 if (nfields == 3 && !substed) {
15943 key = field[2]
15944 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15945 \$ac_cs_awk_read_file
15946 next
15949 print line
15951 \$ac_cs_awk_pipe_fini
15952 _ACAWK
15953 _ACEOF
15954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15955 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15956 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15957 else
15959 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15960 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15961 _ACEOF
15963 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15964 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15965 # trailing colons and then remove the whole line if VPATH becomes empty
15966 # (actually we leave an empty line to preserve line numbers).
15967 if test "x$srcdir" = x.; then
15968 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15969 s/:*\$(srcdir):*/:/
15970 s/:*\${srcdir}:*/:/
15971 s/:*@srcdir@:*/:/
15972 s/^\([^=]*=[ ]*\):*/\1/
15973 s/:*$//
15974 s/^[^=]*=[ ]*$//
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 fi # test -n "$CONFIG_FILES"
15982 eval set X " :F $CONFIG_FILES "
15983 shift
15984 for ac_tag
15986 case $ac_tag in
15987 :[FHLC]) ac_mode=$ac_tag; continue;;
15988 esac
15989 case $ac_mode$ac_tag in
15990 :[FHL]*:*);;
15991 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15992 :[FH]-) ac_tag=-:-;;
15993 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15994 esac
15995 ac_save_IFS=$IFS
15996 IFS=:
15997 set x $ac_tag
15998 IFS=$ac_save_IFS
15999 shift
16000 ac_file=$1
16001 shift
16003 case $ac_mode in
16004 :L) ac_source=$1;;
16005 :[FH])
16006 ac_file_inputs=
16007 for ac_f
16009 case $ac_f in
16010 -) ac_f="$tmp/stdin";;
16011 *) # Look for the file first in the build tree, then in the source tree
16012 # (if the path is not absolute). The absolute path cannot be DOS-style,
16013 # because $ac_f cannot contain `:'.
16014 test -f "$ac_f" ||
16015 case $ac_f in
16016 [\\/$]*) false;;
16017 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16018 esac ||
16019 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16020 esac
16021 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16022 as_fn_append ac_file_inputs " '$ac_f'"
16023 done
16025 # Let's still pretend it is `configure' which instantiates (i.e., don't
16026 # use $as_me), people would be surprised to read:
16027 # /* config.h. Generated by config.status. */
16028 configure_input='Generated from '`
16029 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16030 `' by configure.'
16031 if test x"$ac_file" != x-; then
16032 configure_input="$ac_file. $configure_input"
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16034 $as_echo "$as_me: creating $ac_file" >&6;}
16036 # Neutralize special characters interpreted by sed in replacement strings.
16037 case $configure_input in #(
16038 *\&* | *\|* | *\\* )
16039 ac_sed_conf_input=`$as_echo "$configure_input" |
16040 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16041 *) ac_sed_conf_input=$configure_input;;
16042 esac
16044 case $ac_tag in
16045 *:-:* | *:-) cat >"$tmp/stdin" \
16046 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16047 esac
16049 esac
16051 ac_dir=`$as_dirname -- "$ac_file" ||
16052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16053 X"$ac_file" : 'X\(//\)[^/]' \| \
16054 X"$ac_file" : 'X\(//\)$' \| \
16055 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16056 $as_echo X"$ac_file" |
16057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16058 s//\1/
16061 /^X\(\/\/\)[^/].*/{
16062 s//\1/
16065 /^X\(\/\/\)$/{
16066 s//\1/
16069 /^X\(\/\).*/{
16070 s//\1/
16073 s/.*/./; q'`
16074 as_dir="$ac_dir"; as_fn_mkdir_p
16075 ac_builddir=.
16077 case "$ac_dir" in
16078 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16080 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16081 # A ".." for each directory in $ac_dir_suffix.
16082 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16083 case $ac_top_builddir_sub in
16084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16086 esac ;;
16087 esac
16088 ac_abs_top_builddir=$ac_pwd
16089 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16090 # for backward compatibility:
16091 ac_top_builddir=$ac_top_build_prefix
16093 case $srcdir in
16094 .) # We are building in place.
16095 ac_srcdir=.
16096 ac_top_srcdir=$ac_top_builddir_sub
16097 ac_abs_top_srcdir=$ac_pwd ;;
16098 [\\/]* | ?:[\\/]* ) # Absolute name.
16099 ac_srcdir=$srcdir$ac_dir_suffix;
16100 ac_top_srcdir=$srcdir
16101 ac_abs_top_srcdir=$srcdir ;;
16102 *) # Relative name.
16103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16104 ac_top_srcdir=$ac_top_build_prefix$srcdir
16105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16106 esac
16107 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16110 case $ac_mode in
16113 # CONFIG_FILE
16116 case $INSTALL in
16117 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16118 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16119 esac
16120 _ACEOF
16122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16123 # If the template does not know about datarootdir, expand it.
16124 # FIXME: This hack should be removed a few years after 2.60.
16125 ac_datarootdir_hack=; ac_datarootdir_seen=
16126 ac_sed_dataroot='
16127 /datarootdir/ {
16131 /@datadir@/p
16132 /@docdir@/p
16133 /@infodir@/p
16134 /@localedir@/p
16135 /@mandir@/p'
16136 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16137 *datarootdir*) ac_datarootdir_seen=yes;;
16138 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16140 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16141 _ACEOF
16142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16143 ac_datarootdir_hack='
16144 s&@datadir@&$datadir&g
16145 s&@docdir@&$docdir&g
16146 s&@infodir@&$infodir&g
16147 s&@localedir@&$localedir&g
16148 s&@mandir@&$mandir&g
16149 s&\\\${datarootdir}&$datarootdir&g' ;;
16150 esac
16151 _ACEOF
16153 # Neutralize VPATH when `$srcdir' = `.'.
16154 # Shell code in configure.ac might set extrasub.
16155 # FIXME: do we really want to maintain this feature?
16156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16157 ac_sed_extra="$ac_vpsub
16158 $extrasub
16159 _ACEOF
16160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16163 s|@configure_input@|$ac_sed_conf_input|;t t
16164 s&@top_builddir@&$ac_top_builddir_sub&;t t
16165 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16166 s&@srcdir@&$ac_srcdir&;t t
16167 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16168 s&@top_srcdir@&$ac_top_srcdir&;t t
16169 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16170 s&@builddir@&$ac_builddir&;t t
16171 s&@abs_builddir@&$ac_abs_builddir&;t t
16172 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16173 s&@INSTALL@&$ac_INSTALL&;t t
16174 $ac_datarootdir_hack
16176 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16177 if $ac_cs_awk_getline; then
16178 $AWK -f "$tmp/subs.awk"
16179 else
16180 $AWK -f "$tmp/subs.awk" | $SHELL
16181 fi >$tmp/out \
16182 || as_fn_error "could not create $ac_file" "$LINENO" 5
16184 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16185 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16186 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16188 which seems to be undefined. Please make sure it is defined." >&5
16189 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16190 which seems to be undefined. Please make sure it is defined." >&2;}
16192 rm -f "$tmp/stdin"
16193 case $ac_file in
16194 -) cat "$tmp/out" && rm -f "$tmp/out";;
16195 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16196 esac \
16197 || as_fn_error "could not create $ac_file" "$LINENO" 5
16202 esac
16205 case $ac_file$ac_mode in
16206 "Makefile":F) sed "$extrasub_build" Makefile |
16207 sed "$extrasub_host" |
16208 sed "$extrasub_target" > mf$$
16209 mv -f mf$$ Makefile ;;
16211 esac
16212 done # for ac_tag
16215 as_fn_exit 0
16216 _ACEOF
16217 ac_clean_files=$ac_clean_files_save
16219 test $ac_write_fail = 0 ||
16220 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16223 # configure is writing to config.log, and then calls config.status.
16224 # config.status does its own redirection, appending to config.log.
16225 # Unfortunately, on DOS this fails, as config.log is still kept open
16226 # by configure, so config.status won't be able to write to it; its
16227 # output is simply discarded. So we exec the FD to /dev/null,
16228 # effectively closing config.log, so it can be properly (re)opened and
16229 # appended to by config.status. When coming back to configure, we
16230 # need to make the FD available again.
16231 if test "$no_create" != yes; then
16232 ac_cs_success=:
16233 ac_config_status_args=
16234 test "$silent" = yes &&
16235 ac_config_status_args="$ac_config_status_args --quiet"
16236 exec 5>/dev/null
16237 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16238 exec 5>>config.log
16239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16240 # would make configure fail if this is the last instruction.
16241 $ac_cs_success || as_fn_exit $?
16243 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16245 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}