2016-10-07 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / configure
blobf9650c92765b4af57e5c02f99b8c1f163b9c89ab
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 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
598 LIPO
600 DLLTOOL
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 islver
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_liboffloadmic_configure_flags
678 target_subdir
679 host_subdir
680 build_subdir
681 build_libsubdir
684 LN_S
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 target_os
690 target_vendor
691 target_cpu
692 target
693 host_os
694 host_vendor
695 host_cpu
696 host
697 target_noncanonical
698 host_noncanonical
699 build_noncanonical
700 build_os
701 build_vendor
702 build_cpu
703 build
704 TOPLEVEL_CONFIGURE_ARGUMENTS
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files='serialization_dependencies
744 host_makefile_frag
745 target_makefile_frag
746 alphaieee_frag
747 ospace_frag'
748 ac_user_opts='
749 enable_option_checking
750 with_build_libsubdir
751 with_system_zlib
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_compressed_debug_sections
757 enable_libquadmath
758 enable_libquadmath_support
759 enable_libada
760 enable_libssp
761 enable_libstdcxx
762 enable_liboffloadmic
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_stage1_libs
776 with_stage1_ldflags
777 with_boot_libs
778 with_boot_ldflags
779 with_isl
780 with_isl_include
781 with_isl_lib
782 enable_isl_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 enable_objc_gc
788 with_build_sysroot
789 with_debug_prefix_map
790 with_build_config
791 enable_vtable_verify
792 enable_serial_configure
793 with_build_time_tools
794 enable_maintainer_mode
795 enable_stage1_checking
796 enable_werror
797 enable_host_shared
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
808 CXXFLAGS
810 build_configargs
811 host_configargs
812 target_configargs
815 DLLTOOL
817 LIPO
819 RANLIB
820 STRIP
821 WINDRES
822 WINDMC
823 OBJCOPY
824 OBJDUMP
825 READELF
826 CC_FOR_TARGET
827 CXX_FOR_TARGET
828 GCC_FOR_TARGET
829 GCJ_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJCOPY_FOR_TARGET
839 OBJDUMP_FOR_TARGET
840 RANLIB_FOR_TARGET
841 READELF_FOR_TARGET
842 STRIP_FOR_TARGET
843 WINDRES_FOR_TARGET
844 WINDMC_FOR_TARGET'
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 esac
1252 done
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1338 /^X\(\/\/\)$/{
1339 s//\1/
1342 /^X\(\/\).*/{
1343 s//\1/
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1351 else
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1376 esac
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1448 cat <<\_ACEOF
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1464 cat <<\_ACEOF
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
1487 --disable-libstdcxx do not build libstdc++-v3 directory
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
1491 --disable-isl-version-check
1492 disable check for isl version
1493 --enable-lto enable link time optimization support
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
1505 --enable-vtable-verify Enable vtable verification feature
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-system-zlib use installed libz
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1533 --with-mpfr-include=PATH
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
1543 --with-stage1-libs=LIBS libraries for stage1
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
1549 --with-isl=PATH Specify prefix directory for the installed isl
1550 package. Equivalent to
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
1555 --with-build-sysroot=SYSROOT
1556 use sysroot as the system root during the build
1557 --with-debug-prefix-map='A=B C=D ...'
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
1561 --with-build-time-tools=PATH
1562 use given path to find target tools during the build
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
1589 WINDMC WINDMC for the host
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
1592 READELF READELF for the host
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
1603 GOC_FOR_TARGET
1604 GOC for the target
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
1617 OBJCOPY_FOR_TARGET
1618 OBJCOPY for the target
1619 OBJDUMP_FOR_TARGET
1620 OBJDUMP for the target
1621 RANLIB_FOR_TARGET
1622 RANLIB for the target
1623 READELF_FOR_TARGET
1624 READELF for the target
1625 STRIP_FOR_TARGET
1626 STRIP for the target
1627 WINDRES_FOR_TARGET
1628 WINDRES for the target
1629 WINDMC_FOR_TARGET
1630 WINDMC for the target
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1646 ac_builddir=.
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1664 case $srcdir in
1665 .) # We are building in place.
1666 ac_srcdir=.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1688 else
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1692 done
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697 cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.64
1701 Copyright (C) 2009 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705 exit
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_cxx_try_compile LINENO
1751 # ----------------------------
1752 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_cxx_try_compile ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=1
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1786 } # ac_fn_cxx_try_compile
1788 # ac_fn_cxx_try_link LINENO
1789 # -------------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_cxx_try_link ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1822 ac_retval=1
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1832 } # ac_fn_cxx_try_link
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1878 } # ac_fn_c_try_link
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1883 It was created by $as_me, which was
1884 generated by GNU Autoconf 2.64. Invocation command line was
1886 $ $0 $@
1888 _ACEOF
1889 exec 5>>config.log
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1913 _ASUNAME
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1924 } >&5
1926 cat >&5 <<_ACEOF
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1933 _ACEOF
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1947 for ac_arg
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1976 as_fn_append ac_configure_args " '$ac_arg'"
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1992 echo
1994 cat <<\_ASBOX
1995 ## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##
1998 _ASBOX
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027 esac |
2028 sort
2030 echo
2032 cat <<\_ASBOX
2033 ## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_vars
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2048 if test -n "$ac_subst_files"; then
2049 cat <<\_ASBOX
2050 ## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##
2053 _ASBOX
2054 echo
2055 for ac_var in $ac_subst_files
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
2062 done | sort
2063 echo
2066 if test -s confdefs.h; then
2067 cat <<\_ASBOX
2068 ## ----------- ##
2069 ## confdefs.h. ##
2070 ## ----------- ##
2071 _ASBOX
2072 echo
2073 cat confdefs.h
2074 echo
2076 test "$ac_signal" != 0 &&
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
2079 } >&5
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2082 exit $exit_status
2084 for ac_signal in 1 2 13 15; do
2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 done
2087 ac_signal=0
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2092 $as_echo "/* confdefs.h */" > confdefs.h
2094 # Predefined preprocessor variables.
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102 _ACEOF
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2106 _ACEOF
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2110 _ACEOF
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114 _ACEOF
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2118 _ACEOF
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2123 ac_site_file1=NONE
2124 ac_site_file2=NONE
2125 if test -n "$CONFIG_SITE"; then
2126 ac_site_file1=$CONFIG_SITE
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130 else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 test "x$ac_site_file" = xNONE && continue
2137 if test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2141 . "$ac_site_file"
2143 done
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special
2147 # files actually), so we avoid doing that.
2148 if test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151 case $cache_file in
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2154 esac
2156 else
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159 >$cache_file
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,set)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,);;
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 esac
2211 done
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237 progname=$0
2238 # if PWD already has a value, it is probably wrong.
2239 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2241 # Export original configure arguments for use by sub-configures.
2242 # Quote arguments with shell meta charatcers.
2243 TOPLEVEL_CONFIGURE_ARGUMENTS=
2244 set -- "$progname" "$@"
2245 for ac_arg
2247 case "$ac_arg" in
2248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2250 # if the argument is of the form -foo=baz, quote the baz part only
2251 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2252 *) ;;
2253 esac
2254 # Add the quoted argument to the list.
2255 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2256 done
2257 if test "$silent" = yes; then
2258 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2260 # Remove the initial space we just introduced and, as these will be
2261 # expanded by make, quote '$'.
2262 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2265 # Find the build, host, and target systems.
2266 ac_aux_dir=
2267 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2268 for ac_t in install-sh install.sh shtool; do
2269 if test -f "$ac_dir/$ac_t"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/$ac_t -c"
2272 break 2
2274 done
2275 done
2276 if test -z "$ac_aux_dir"; then
2277 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2280 # These three variables are undocumented and unsupported,
2281 # and are intended to be withdrawn in a future Autoconf release.
2282 # They can cause serious problems if a builder's source tree is in a directory
2283 # whose full name contains unusual characters.
2284 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2285 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2286 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2289 # Make sure we can run config.sub.
2290 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2291 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2294 $as_echo_n "checking build system type... " >&6; }
2295 if test "${ac_cv_build+set}" = set; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 ac_build_alias=$build_alias
2299 test "x$ac_build_alias" = x &&
2300 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2301 test "x$ac_build_alias" = x &&
2302 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2303 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2304 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2308 $as_echo "$ac_cv_build" >&6; }
2309 case $ac_cv_build in
2310 *-*-*) ;;
2311 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2312 esac
2313 build=$ac_cv_build
2314 ac_save_IFS=$IFS; IFS='-'
2315 set x $ac_cv_build
2316 shift
2317 build_cpu=$1
2318 build_vendor=$2
2319 shift; shift
2320 # Remember, the first character of IFS is used to create $*,
2321 # except with old shells:
2322 build_os=$*
2323 IFS=$ac_save_IFS
2324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2327 case ${build_alias} in
2328 "") build_noncanonical=${build} ;;
2329 *) build_noncanonical=${build_alias} ;;
2330 esac
2334 case ${host_alias} in
2335 "") host_noncanonical=${build_noncanonical} ;;
2336 *) host_noncanonical=${host_alias} ;;
2337 esac
2341 case ${target_alias} in
2342 "") target_noncanonical=${host_noncanonical} ;;
2343 *) target_noncanonical=${target_alias} ;;
2344 esac
2349 test "$host_noncanonical" = "$target_noncanonical" &&
2350 test "$program_prefix$program_suffix$program_transform_name" = \
2351 NONENONEs,x,x, &&
2352 program_transform_name=s,y,y,
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2355 $as_echo_n "checking host system type... " >&6; }
2356 if test "${ac_cv_host+set}" = set; then :
2357 $as_echo_n "(cached) " >&6
2358 else
2359 if test "x$host_alias" = x; then
2360 ac_cv_host=$ac_cv_build
2361 else
2362 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2363 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2368 $as_echo "$ac_cv_host" >&6; }
2369 case $ac_cv_host in
2370 *-*-*) ;;
2371 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2372 esac
2373 host=$ac_cv_host
2374 ac_save_IFS=$IFS; IFS='-'
2375 set x $ac_cv_host
2376 shift
2377 host_cpu=$1
2378 host_vendor=$2
2379 shift; shift
2380 # Remember, the first character of IFS is used to create $*,
2381 # except with old shells:
2382 host_os=$*
2383 IFS=$ac_save_IFS
2384 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2388 $as_echo_n "checking target system type... " >&6; }
2389 if test "${ac_cv_target+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 if test "x$target_alias" = x; then
2393 ac_cv_target=$ac_cv_host
2394 else
2395 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2396 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2401 $as_echo "$ac_cv_target" >&6; }
2402 case $ac_cv_target in
2403 *-*-*) ;;
2404 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2405 esac
2406 target=$ac_cv_target
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_target
2409 shift
2410 target_cpu=$1
2411 target_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 target_os=$*
2416 IFS=$ac_save_IFS
2417 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2420 # The aliases save the names the user supplied, while $host etc.
2421 # will get canonicalized.
2422 test -n "$target_alias" &&
2423 test "$program_prefix$program_suffix$program_transform_name" = \
2424 NONENONEs,x,x, &&
2425 program_prefix=${target_alias}-
2427 test "$program_prefix" != NONE &&
2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2429 # Use a double $ so make ignores it.
2430 test "$program_suffix" != NONE &&
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432 # Double any \ or $.
2433 # By default was `s,x,x', remove it if useless.
2434 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2439 # Get 'install' or 'install-sh' and its variants.
2440 # Find a good install program. We prefer a C program (faster),
2441 # so one script is as good as another. But avoid the broken or
2442 # incompatible versions:
2443 # SysV /etc/install, /usr/sbin/install
2444 # SunOS /usr/etc/install
2445 # IRIX /sbin/install
2446 # AIX /bin/install
2447 # AmigaOS /C/install, which installs bootblocks on floppy discs
2448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2451 # OS/2's system install, which has a completely different semantic
2452 # ./install, which can be erroneously created by make from ./install.sh.
2453 # Reject install programs that cannot install multiple files.
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2455 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2456 if test -z "$INSTALL"; then
2457 if test "${ac_cv_path_install+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 # Account for people who put trailing slashes in PATH elements.
2466 case $as_dir/ in #((
2467 ./ | .// | /[cC]/* | \
2468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2469 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2470 /usr/ucb/* ) ;;
2472 # OSF1 and SCO ODT 3.0 have their own names for install.
2473 # Don't use installbsd from OSF since it installs stuff as root
2474 # by default.
2475 for ac_prog in ginstall scoinst install; do
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2478 if test $ac_prog = install &&
2479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2480 # AIX install. It has an incompatible calling convention.
2482 elif test $ac_prog = install &&
2483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # program-specific install script used by HP pwplus--don't use.
2486 else
2487 rm -rf conftest.one conftest.two conftest.dir
2488 echo one > conftest.one
2489 echo two > conftest.two
2490 mkdir conftest.dir
2491 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2492 test -s conftest.one && test -s conftest.two &&
2493 test -s conftest.dir/conftest.one &&
2494 test -s conftest.dir/conftest.two
2495 then
2496 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2497 break 3
2501 done
2502 done
2504 esac
2506 done
2507 IFS=$as_save_IFS
2509 rm -rf conftest.one conftest.two conftest.dir
2512 if test "${ac_cv_path_install+set}" = set; then
2513 INSTALL=$ac_cv_path_install
2514 else
2515 # As a last resort, use the slow shell script. Don't cache a
2516 # value for INSTALL within a source directory, because that will
2517 # break other packages using the cache if that directory is
2518 # removed, or if the value is a relative name.
2519 INSTALL=$ac_install_sh
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2523 $as_echo "$INSTALL" >&6; }
2525 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526 # It thinks the first close brace ends the variable substitution.
2527 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2529 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2531 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2534 $as_echo_n "checking whether ln works... " >&6; }
2535 if test "${acx_cv_prog_LN+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 rm -f conftestdata_t
2539 echo >conftestdata_f
2540 if ln conftestdata_f conftestdata_t 2>/dev/null
2541 then
2542 acx_cv_prog_LN=ln
2543 else
2544 acx_cv_prog_LN=no
2546 rm -f conftestdata_f conftestdata_t
2549 if test $acx_cv_prog_LN = no; then
2550 LN="cp"
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2552 $as_echo "no, using $LN" >&6; }
2553 else
2554 LN="$acx_cv_prog_LN"
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556 $as_echo "yes" >&6; }
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2560 $as_echo_n "checking whether ln -s works... " >&6; }
2561 LN_S=$as_ln_s
2562 if test "$LN_S" = "ln -s"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2565 else
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2567 $as_echo "no, using $LN_S" >&6; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2571 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2572 if test "${ac_cv_path_SED+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2576 for ac_i in 1 2 3 4 5 6 7; do
2577 ac_script="$ac_script$as_nl$ac_script"
2578 done
2579 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2580 { ac_script=; unset ac_script;}
2581 if test -z "$SED"; then
2582 ac_path_SED_found=false
2583 # Loop through the user's path and test for each of PROGNAME-LIST
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_prog in sed gsed; do
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2592 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2593 # Check for GNU ac_path_SED and select it if it is found.
2594 # Check for GNU $ac_path_SED
2595 case `"$ac_path_SED" --version 2>&1` in
2596 *GNU*)
2597 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2599 ac_count=0
2600 $as_echo_n 0123456789 >"conftest.in"
2601 while :
2603 cat "conftest.in" "conftest.in" >"conftest.tmp"
2604 mv "conftest.tmp" "conftest.in"
2605 cp "conftest.in" "conftest.nl"
2606 $as_echo '' >> "conftest.nl"
2607 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2609 as_fn_arith $ac_count + 1 && ac_count=$as_val
2610 if test $ac_count -gt ${ac_path_SED_max-0}; then
2611 # Best one so far, save it but keep looking for a better one
2612 ac_cv_path_SED="$ac_path_SED"
2613 ac_path_SED_max=$ac_count
2615 # 10*(2^10) chars as input seems more than enough
2616 test $ac_count -gt 10 && break
2617 done
2618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2619 esac
2621 $ac_path_SED_found && break 3
2622 done
2623 done
2624 done
2625 IFS=$as_save_IFS
2626 if test -z "$ac_cv_path_SED"; then
2627 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2629 else
2630 ac_cv_path_SED=$SED
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2635 $as_echo "$ac_cv_path_SED" >&6; }
2636 SED="$ac_cv_path_SED"
2637 rm -f conftest.sed
2639 for ac_prog in gawk mawk nawk awk
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_AWK+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if test -n "$AWK"; then
2649 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_AWK="$ac_prog"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2664 IFS=$as_save_IFS
2668 AWK=$ac_cv_prog_AWK
2669 if test -n "$AWK"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2671 $as_echo "$AWK" >&6; }
2672 else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2678 test -n "$AWK" && break
2679 done
2682 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2684 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2685 # a relative path.
2686 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2687 INSTALL="${srcpwd}/install-sh -c"
2690 # Set srcdir to "." if that's what it is.
2691 # This is important for multilib support.
2692 pwd=`${PWDCMD-pwd}`
2693 if test "${pwd}" = "${srcpwd}" ; then
2694 srcdir=.
2697 topsrcdir=$srcpwd
2699 extra_host_args=
2701 ### To add a new directory to the tree, first choose whether it is a target
2702 ### or a host dependent tool. Then put it into the appropriate list
2703 ### (library or tools, host or target), doing a dependency sort.
2705 # Subdirs will be configured in the order listed in build_configdirs,
2706 # configdirs, or target_configdirs; see the serialization section below.
2708 # Dependency sorting is only needed when *configuration* must be done in
2709 # a particular order. In all cases a dependency should be specified in
2710 # the Makefile, whether or not it's implicitly specified here.
2712 # Double entries in build_configdirs, configdirs, or target_configdirs may
2713 # cause circular dependencies and break everything horribly.
2715 # these library is used by various programs built for the build
2716 # environment
2718 build_libs="build-libiberty build-libcpp"
2720 # these tools are built for the build environment
2721 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2723 # these libraries are used by various programs built for the host environment
2725 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2727 # these tools are built for the host environment
2728 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2729 # know that we are building the simulator.
2730 # binutils, gas and ld appear in that order because it makes sense to run
2731 # "make check" in that particular order.
2732 # If --enable-gold is used, "gold" may replace "ld".
2733 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"
2735 # these libraries are built for the target environment, and are built after
2736 # the host libraries and the host tools (which may be a cross compiler)
2737 # Note that libiberty is not a target library.
2738 target_libraries="target-libgcc \
2739 target-libbacktrace \
2740 target-libgloss \
2741 target-newlib \
2742 target-libgomp \
2743 target-libcilkrts \
2744 target-liboffloadmic \
2745 target-libatomic \
2746 target-libitm \
2747 target-libstdc++-v3 \
2748 target-libsanitizer \
2749 target-libvtv \
2750 target-libmpx \
2751 target-libssp \
2752 target-libquadmath \
2753 target-libgfortran \
2754 target-boehm-gc \
2755 target-libffi \
2756 target-libobjc \
2757 target-libada \
2758 target-libgo"
2760 # these tools are built using the target libraries, and are intended to
2761 # run only in the target environment
2763 # note: any program that *uses* libraries that are in the "target_libraries"
2764 # list belongs in this list.
2766 target_tools="target-rda"
2768 ################################################################################
2770 ## All tools belong in one of the four categories, and are assigned above
2771 ## We assign ${configdirs} this way to remove all embedded newlines. This
2772 ## is important because configure will choke if they ever get through.
2773 ## ${configdirs} is directories we build using the host tools.
2774 ## ${target_configdirs} is directories we build using the target tools.
2775 configdirs=`echo ${host_libs} ${host_tools}`
2776 target_configdirs=`echo ${target_libraries} ${target_tools}`
2777 build_configdirs=`echo ${build_libs} ${build_tools}`
2781 ################################################################################
2783 srcname="gnu development package"
2785 # This gets set non-empty for some net releases of packages.
2786 appdirs=""
2788 # Define is_cross_compiler to save on calls to 'test'.
2789 is_cross_compiler=
2790 if test x"${host}" = x"${target}" ; then
2791 is_cross_compiler=no
2792 else
2793 is_cross_compiler=yes
2796 # Find the build and target subdir names.
2798 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2799 # have matching libraries, they should use host libraries: Makefile.tpl
2800 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2801 # However, they still use the build modules, because the corresponding
2802 # host modules (e.g. bison) are only built for the host when bootstrap
2803 # finishes. So:
2804 # - build_subdir is where we find build modules, and never changes.
2805 # - build_libsubdir is where we find build libraries, and can be overridden.
2807 # Prefix 'build-' so this never conflicts with target_subdir.
2808 build_subdir="build-${build_noncanonical}"
2810 # Check whether --with-build-libsubdir was given.
2811 if test "${with_build_libsubdir+set}" = set; then :
2812 withval=$with_build_libsubdir; build_libsubdir="$withval"
2813 else
2814 build_libsubdir="$build_subdir"
2817 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2818 if ( test $srcdir = . && test -d gcc ) \
2819 || test -d $srcdir/../host-${host_noncanonical}; then
2820 host_subdir="host-${host_noncanonical}"
2821 else
2822 host_subdir=.
2824 # No prefix.
2825 target_subdir=${target_noncanonical}
2827 # Be sure to cover against remnants of an in-tree build.
2828 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2829 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2830 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2833 # Skipdirs are removed silently.
2834 skipdirs=
2835 # Noconfigdirs are removed loudly.
2836 noconfigdirs=""
2838 use_gnu_ld=
2839 # Make sure we don't let GNU ld be added if we didn't want it.
2840 if test x$with_gnu_ld = xno ; then
2841 use_gnu_ld=no
2842 noconfigdirs="$noconfigdirs ld gold"
2845 use_gnu_as=
2846 # Make sure we don't let GNU as be added if we didn't want it.
2847 if test x$with_gnu_as = xno ; then
2848 use_gnu_as=no
2849 noconfigdirs="$noconfigdirs gas"
2852 use_included_zlib=
2854 # Check whether --with-system-zlib was given.
2855 if test "${with_system_zlib+set}" = set; then :
2856 withval=$with_system_zlib;
2859 # Make sure we don't let ZLIB be added if we didn't want it.
2860 if test x$with_system_zlib = xyes ; then
2861 use_included_zlib=no
2862 noconfigdirs="$noconfigdirs zlib"
2865 # some tools are so dependent upon X11 that if we're not building with X,
2866 # it's not even worth trying to configure, much less build, that tool.
2868 case ${with_x} in
2869 yes | "") ;; # the default value for this tree is that X11 is available
2871 skipdirs="${skipdirs} tk itcl libgui"
2872 # We won't be able to build gdbtk without X.
2873 enable_gdbtk=no
2875 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2876 esac
2878 # Some are only suitable for cross toolchains.
2879 # Remove these if host=target.
2880 cross_only="target-libgloss target-newlib target-opcodes"
2882 case $is_cross_compiler in
2883 no) skipdirs="${skipdirs} ${cross_only}" ;;
2884 esac
2886 # If both --with-headers and --with-libs are specified, default to
2887 # --without-newlib.
2888 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2889 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2890 if test x"${with_newlib}" = x ; then
2891 with_newlib=no
2895 # Recognize --with-newlib/--without-newlib.
2896 case ${with_newlib} in
2897 no) skipdirs="${skipdirs} target-newlib" ;;
2898 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2899 esac
2901 # Check whether --enable-as-accelerator-for was given.
2902 if test "${enable_as_accelerator_for+set}" = set; then :
2903 enableval=$enable_as_accelerator_for;
2907 # Check whether --enable-offload-targets was given.
2908 if test "${enable_offload_targets+set}" = set; then :
2909 enableval=$enable_offload_targets;
2910 if test x"$enable_offload_targets" = x; then
2911 as_fn_error "no offload targets specified" "$LINENO" 5
2914 else
2915 enable_offload_targets=
2919 # Handle --enable-gold, --enable-ld.
2920 # --disable-gold [--enable-ld]
2921 # Build only ld. Default option.
2922 # --enable-gold [--enable-ld]
2923 # Build both gold and ld. Install gold as "ld.gold", install ld
2924 # as "ld.bfd" and "ld".
2925 # --enable-gold=default [--enable-ld]
2926 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2927 # install ld as "ld.bfd".
2928 # --enable-gold[=default] --disable-ld
2929 # Build only gold, which is then installed as both "ld.gold" and "ld".
2930 # --enable-gold --enable-ld=default
2931 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2932 # and ld.bfd).
2933 # In other words, ld is default
2934 # --enable-gold=default --enable-ld=default
2935 # Error.
2937 default_ld=
2938 # Check whether --enable-gold was given.
2939 if test "${enable_gold+set}" = set; then :
2940 enableval=$enable_gold; ENABLE_GOLD=$enableval
2941 else
2942 ENABLE_GOLD=no
2945 case "${ENABLE_GOLD}" in
2946 yes|default)
2947 # Check for ELF target.
2948 is_elf=no
2949 case "${target}" in
2950 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2951 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2952 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2953 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2954 case "${target}" in
2955 *-*-linux*aout* | *-*-linux*oldld*)
2958 is_elf=yes
2960 esac
2961 esac
2963 if test "$is_elf" = "yes"; then
2964 # Check for target supported by gold.
2965 case "${target}" in
2966 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2967 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2968 configdirs="$configdirs gold"
2969 if test x${ENABLE_GOLD} = xdefault; then
2970 default_ld=gold
2972 ENABLE_GOLD=yes
2974 esac
2980 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2982 esac
2984 # Check whether --enable-ld was given.
2985 if test "${enable_ld+set}" = set; then :
2986 enableval=$enable_ld; ENABLE_LD=$enableval
2987 else
2988 ENABLE_LD=yes
2992 case "${ENABLE_LD}" in
2993 default)
2994 if test x${default_ld} != x; then
2995 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2998 yes)
3001 if test x${ENABLE_GOLD} != xyes; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3003 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3005 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3008 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3010 esac
3012 # PR gas/19109
3013 # Decide the default method for compressing debug sections.
3014 # Provide a configure time option to override our default.
3015 # Check whether --enable-compressed_debug_sections was given.
3016 if test "${enable_compressed_debug_sections+set}" = set; then :
3017 enableval=$enable_compressed_debug_sections;
3018 if test x"$enable_compressed_debug_sections" = xyes; then
3019 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3022 else
3023 enable_compressed_debug_sections=
3027 # Configure extra directories which are host specific
3029 case "${host}" in
3030 *-cygwin*)
3031 configdirs="$configdirs libtermcap" ;;
3032 esac
3034 # A target can indicate whether a language isn't supported for some reason.
3035 # Only spaces may be used in this macro; not newlines or tabs.
3036 unsupported_languages=
3038 # Remove more programs from consideration, based on the host or
3039 # target this usually means that a port of the program doesn't
3040 # exist yet.
3042 case "${host}" in
3043 i[3456789]86-*-msdosdjgpp*)
3044 noconfigdirs="$noconfigdirs tcl tk itcl"
3046 esac
3049 # Check whether --enable-libquadmath was given.
3050 if test "${enable_libquadmath+set}" = set; then :
3051 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3052 else
3053 ENABLE_LIBQUADMATH=yes
3056 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3057 noconfigdirs="$noconfigdirs target-libquadmath"
3061 # Check whether --enable-libquadmath-support was given.
3062 if test "${enable_libquadmath_support+set}" = set; then :
3063 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3064 else
3065 ENABLE_LIBQUADMATH_SUPPORT=yes
3068 enable_libquadmath_support=
3069 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3070 enable_libquadmath_support=no
3074 # Check whether --enable-libada was given.
3075 if test "${enable_libada+set}" = set; then :
3076 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3077 else
3078 ENABLE_LIBADA=yes
3081 if test "${ENABLE_LIBADA}" != "yes" ; then
3082 noconfigdirs="$noconfigdirs gnattools"
3085 # Check whether --enable-libssp was given.
3086 if test "${enable_libssp+set}" = set; then :
3087 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3088 else
3089 ENABLE_LIBSSP=yes
3093 # Check whether --enable-libstdcxx was given.
3094 if test "${enable_libstdcxx+set}" = set; then :
3095 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3096 else
3097 ENABLE_LIBSTDCXX=default
3100 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3101 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3104 # If this is accelerator compiler and its target is intelmic we enable
3105 # target liboffloadmic by default. If this is compiler with offloading
3106 # for intelmic we enable host liboffloadmic by default. Otherwise
3107 # liboffloadmic is disabled by default.
3108 # Check whether --enable-liboffloadmic was given.
3109 if test "${enable_liboffloadmic+set}" = set; then :
3110 enableval=$enable_liboffloadmic; case "$enableval" in
3111 no | host | target)
3112 enable_liboffloadmic=$enableval ;;
3114 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3115 esac
3116 else
3117 if test x"$enable_as_accelerator_for" != x; then
3118 case "${target}" in
3119 *-intelmic-* | *-intelmicemul-*)
3120 enable_liboffloadmic=target
3121 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3124 enable_liboffloadmic=no
3126 esac
3127 else
3128 case "${enable_offload_targets}" in
3129 *-intelmic-* | *-intelmicemul-*)
3130 enable_liboffloadmic=host
3131 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3134 enable_liboffloadmic=no
3136 esac
3142 # Enable libgomp by default on hosted POSIX systems, and a few others.
3143 if test x$enable_libgomp = x ; then
3144 case "${target}" in
3145 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3147 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3149 *-*-solaris2* | *-*-hpux11*)
3151 *-*-darwin* | *-*-aix*)
3153 nvptx*-*-*)
3156 noconfigdirs="$noconfigdirs target-libgomp"
3158 esac
3161 # Disable libatomic on unsupported systems.
3162 if test -d ${srcdir}/libatomic; then
3163 if test x$enable_libatomic = x; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3165 $as_echo_n "checking for libatomic support... " >&6; }
3166 if (srcdir=${srcdir}/libatomic; \
3167 . ${srcdir}/configure.tgt; \
3168 test -n "$UNSUPPORTED")
3169 then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 noconfigdirs="$noconfigdirs target-libatomic"
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3180 # Disable libcilkrts on unsupported systems.
3181 if test -d ${srcdir}/libcilkrts; then
3182 if test x$enable_libcilkrts = x; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3184 $as_echo_n "checking for libcilkrts support... " >&6; }
3185 if (srcdir=${srcdir}/libcilkrts; \
3186 . ${srcdir}/configure.tgt; \
3187 test -n "$UNSUPPORTED")
3188 then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 noconfigdirs="$noconfigdirs target-libcilkrts"
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3199 # Disable liboffloadmic on unsupported systems.
3200 if test -d ${srcdir}/liboffloadmic; then
3201 if test x$enable_liboffloadmic != xno; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3203 $as_echo_n "checking for liboffloadmic support... " >&6; }
3204 if (srcdir=${srcdir}/liboffloadmic; \
3205 . ${srcdir}/configure.tgt; \
3206 test -n "$UNSUPPORTED")
3207 then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 noconfigdirs="$noconfigdirs target-liboffloadmic"
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3218 # Disable libitm on unsupported systems.
3219 if test -d ${srcdir}/libitm; then
3220 if test x$enable_libitm = x; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3222 $as_echo_n "checking for libitm support... " >&6; }
3223 if (srcdir=${srcdir}/libitm; \
3224 . ${srcdir}/configure.tgt; \
3225 test -n "$UNSUPPORTED")
3226 then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 noconfigdirs="$noconfigdirs target-libitm"
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232 $as_echo "yes" >&6; }
3237 # Disable libsanitizer on unsupported systems.
3238 if test -d ${srcdir}/libsanitizer; then
3239 if test x$enable_libsanitizer = x; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3241 $as_echo_n "checking for libsanitizer support... " >&6; }
3242 if (srcdir=${srcdir}/libsanitizer; \
3243 . ${srcdir}/configure.tgt; \
3244 test -n "$UNSUPPORTED")
3245 then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 noconfigdirs="$noconfigdirs target-libsanitizer"
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3256 # Disable libvtv on unsupported systems.
3257 if test -d ${srcdir}/libvtv; then
3258 if test x$enable_libvtv = x; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3260 $as_echo_n "checking for libvtv support... " >&6; }
3261 if (srcdir=${srcdir}/libvtv; \
3262 . ${srcdir}/configure.tgt; \
3263 test "$VTV_SUPPORTED" != "yes")
3264 then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 noconfigdirs="$noconfigdirs target-libvtv"
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3276 # Enable libmpx on supported systems by request.
3277 if test -d ${srcdir}/libmpx; then
3278 if test x$enable_libmpx = x; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3280 $as_echo_n "checking for libmpx support... " >&6; }
3281 if (srcdir=${srcdir}/libmpx; \
3282 . ${srcdir}/configure.tgt; \
3283 test "$LIBMPX_SUPPORTED" != "yes")
3284 then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-libmpx"
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3297 # Disable libquadmath for some systems.
3298 case "${target}" in
3299 avr-*-*)
3300 noconfigdirs="$noconfigdirs target-libquadmath"
3302 # libquadmath is unused on AIX and libquadmath build process use of
3303 # LD_LIBRARY_PATH can break AIX bootstrap.
3304 powerpc-*-aix* | rs6000-*-aix*)
3305 noconfigdirs="$noconfigdirs target-libquadmath"
3307 esac
3309 # Disable libssp for some systems.
3310 case "${target}" in
3311 avr-*-*)
3312 # No hosted I/O support.
3313 noconfigdirs="$noconfigdirs target-libssp"
3315 powerpc-*-aix* | rs6000-*-aix*)
3316 noconfigdirs="$noconfigdirs target-libssp"
3318 rl78-*-*)
3319 # libssp uses a misaligned load to trigger a fault, but the RL78
3320 # doesn't fault for those - instead, it gives a build-time error
3321 # for explicit misaligned loads.
3322 noconfigdirs="$noconfigdirs target-libssp"
3324 visium-*-*)
3325 # No hosted I/O support.
3326 noconfigdirs="$noconfigdirs target-libssp"
3328 esac
3330 # Disable libstdc++-v3 for some systems.
3331 # Allow user to override this if they pass --enable-libstdc++-v3
3332 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3333 case "${target}" in
3334 *-*-vxworks*)
3335 # VxWorks uses the Dinkumware C++ library.
3336 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3338 arm*-wince-pe*)
3339 # the C++ libraries don't build on top of CE's C libraries
3340 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3342 avr-*-*)
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3345 ft32-*-*)
3346 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 esac
3351 # Disable Fortran for some systems.
3352 case "${target}" in
3353 mmix-*-*)
3354 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3355 unsupported_languages="$unsupported_languages fortran"
3357 esac
3359 # Disable libffi for some systems.
3360 case "${target}" in
3361 powerpc-*-darwin*)
3363 i[3456789]86-*-darwin*)
3365 x86_64-*-darwin[912]*)
3367 *-*-darwin*)
3368 noconfigdirs="$noconfigdirs target-libffi"
3370 *-*-netware*)
3371 noconfigdirs="$noconfigdirs target-libffi"
3373 *-*-phoenix*)
3374 noconfigdirs="$noconfigdirs target-libffi"
3376 *-*-rtems*)
3377 noconfigdirs="$noconfigdirs target-libffi"
3379 *-*-tpf*)
3380 noconfigdirs="$noconfigdirs target-libffi"
3382 *-*-uclinux*)
3383 noconfigdirs="$noconfigdirs target-libffi"
3385 *-*-vxworks*)
3386 noconfigdirs="$noconfigdirs target-libffi"
3388 alpha*-*-*vms*)
3389 noconfigdirs="$noconfigdirs target-libffi"
3391 arm*-*-freebsd*)
3392 noconfigdirs="$noconfigdirs target-libffi"
3394 arm-wince-pe)
3395 noconfigdirs="$noconfigdirs target-libffi"
3397 arm*-*-symbianelf*)
3398 noconfigdirs="$noconfigdirs target-libffi"
3400 cris-*-* | crisv32-*-*)
3401 case "${target}" in
3402 *-*-linux*)
3404 *) # See PR46792 regarding target-libffi.
3405 noconfigdirs="$noconfigdirs target-libffi";;
3406 esac
3408 hppa*64*-*-hpux*)
3409 noconfigdirs="$noconfigdirs target-libffi"
3411 hppa*-hp-hpux11*)
3413 hppa*-*-hpux*)
3414 noconfigdirs="$noconfigdirs target-libffi"
3416 ia64*-*-*vms*)
3417 noconfigdirs="$noconfigdirs target-libffi"
3419 i[3456789]86-w64-mingw*)
3420 noconfigdirs="$noconfigdirs target-libffi"
3422 i[3456789]86-*-mingw*)
3423 noconfigdirs="$noconfigdirs target-libffi"
3425 x86_64-*-mingw*)
3426 noconfigdirs="$noconfigdirs target-libffi"
3428 mmix-*-*)
3429 noconfigdirs="$noconfigdirs target-libffi"
3431 powerpc-*-aix*)
3432 # copied from rs6000-*-* entry
3433 noconfigdirs="$noconfigdirs target-libffi"
3435 rs6000-*-aix*)
3436 noconfigdirs="$noconfigdirs target-libffi"
3438 ft32-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3441 *-*-lynxos*)
3442 noconfigdirs="$noconfigdirs target-libffi"
3444 esac
3446 # Disable the go frontend on systems where it is known to not work. Please keep
3447 # this in sync with contrib/config-list.mk.
3448 case "${target}" in
3449 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3450 unsupported_languages="$unsupported_languages go"
3452 esac
3454 # Disable libgo for some systems where it is known to not work.
3455 # For testing, you can easily override this with --enable-libgo.
3456 if test x$enable_libgo = x; then
3457 case "${target}" in
3458 *-*-darwin*)
3459 # PR 46986
3460 noconfigdirs="$noconfigdirs target-libgo"
3462 *-*-cygwin* | *-*-mingw*)
3463 noconfigdirs="$noconfigdirs target-libgo"
3465 *-*-aix*)
3466 noconfigdirs="$noconfigdirs target-libgo"
3468 esac
3471 # Default libgloss CPU subdirectory.
3472 libgloss_dir="$target_cpu"
3474 case "${target}" in
3475 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3476 libgloss_dir=wince
3478 aarch64*-*-* )
3479 libgloss_dir=aarch64
3481 arm*-*-*)
3482 libgloss_dir=arm
3484 cris-*-* | crisv32-*-*)
3485 libgloss_dir=cris
3487 hppa*-*-*)
3488 libgloss_dir=pa
3490 i[3456789]86-*-*)
3491 libgloss_dir=i386
3493 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3494 libgloss_dir=m68hc11
3496 m68*-*-* | fido-*-*)
3497 libgloss_dir=m68k
3499 mips*-*-*)
3500 libgloss_dir=mips
3502 powerpc*-*-*)
3503 libgloss_dir=rs6000
3505 sparc*-*-*)
3506 libgloss_dir=sparc
3508 esac
3510 # Disable newlib and libgloss for various target OSes.
3511 case "${target}" in
3512 alpha*-dec-osf*)
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 i[3456789]86-*-linux*)
3516 # This section makes it possible to build newlib natively on linux.
3517 # If we are using a cross compiler then don't configure newlib.
3518 if test x${is_cross_compiler} != xno ; then
3519 noconfigdirs="$noconfigdirs target-newlib"
3521 noconfigdirs="$noconfigdirs target-libgloss"
3522 # If we are not using a cross compiler, do configure newlib.
3523 # Note however, that newlib will only be configured in this situation
3524 # if the --with-newlib option has been given, because otherwise
3525 # 'target-newlib' will appear in skipdirs.
3527 i[3456789]86-*-rdos*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 sparc-*-sunos4*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 *-*-aix*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 *-*-beos*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 *-*-chorusos)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 *-*-dragonfly*)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 *-*-freebsd*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 *-*-lynxos*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 *-*-mingw*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 *-*-netbsd*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 *-*-netware*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 *-*-tpf*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 *-*-uclinux*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 *-*-vxworks*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 esac
3577 case "${target}" in
3578 *-*-chorusos)
3580 aarch64-*-darwin*)
3581 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
3584 arm-*-darwin*)
3585 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3588 powerpc-*-darwin*)
3589 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3590 noconfigdirs="$noconfigdirs sim target-rda"
3592 i[3456789]86-*-darwin*)
3593 noconfigdirs="$noconfigdirs ld gprof"
3594 noconfigdirs="$noconfigdirs sim target-rda"
3596 x86_64-*-darwin[912]*)
3597 noconfigdirs="$noconfigdirs ld gas gprof"
3598 noconfigdirs="$noconfigdirs sim target-rda"
3600 *-*-darwin*)
3601 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3602 noconfigdirs="$noconfigdirs sim target-rda"
3604 *-*-dragonfly*)
3606 *-*-freebsd*)
3607 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3608 && test -f /usr/local/include/gmp.h; then
3609 with_gmp=/usr/local
3612 *-*-kaos*)
3613 # Remove unsupported stuff on all kaOS configurations.
3614 noconfigdirs="$noconfigdirs target-libgloss"
3616 *-*-netbsd*)
3618 *-*-netware*)
3620 *-*-phoenix*)
3621 noconfigdirs="$noconfigdirs target-libgloss"
3623 *-*-rtems*)
3624 noconfigdirs="$noconfigdirs target-libgloss"
3625 # this is not caught below because this stanza matches earlier
3626 case $target in
3627 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3628 esac
3630 # The tpf target doesn't support gdb yet.
3631 *-*-tpf*)
3632 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3634 *-*-uclinux*)
3635 noconfigdirs="$noconfigdirs target-rda"
3637 *-*-vxworks*)
3639 alpha*-dec-osf*)
3640 # ld works, but does not support shared libraries.
3641 # gas doesn't generate exception information.
3642 noconfigdirs="$noconfigdirs gas ld"
3644 alpha*-*-*vms*)
3645 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3647 alpha*-*-*)
3648 # newlib is not 64 bit ready
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3652 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3654 arc*-*-*)
3655 noconfigdirs="$noconfigdirs sim"
3657 arm-*-pe*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3660 arm-*-riscix*)
3661 noconfigdirs="$noconfigdirs ld target-libgloss"
3663 avr-*-*)
3664 if test x${with_avrlibc} != xno; then
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 c4x-*-* | tic4x-*-*)
3669 noconfigdirs="$noconfigdirs target-libgloss"
3671 tic54x-*-*)
3672 noconfigdirs="$noconfigdirs target-libgloss gdb"
3674 d10v-*-*)
3675 noconfigdirs="$noconfigdirs target-libgloss"
3677 d30v-*-*)
3678 noconfigdirs="$noconfigdirs gdb"
3680 fr30-*-elf*)
3681 noconfigdirs="$noconfigdirs gdb"
3683 ft32-*-*)
3684 noconfigdirs="$noconfigdirs target-rda gprof"
3686 moxie-*-*)
3687 noconfigdirs="$noconfigdirs"
3689 h8300*-*-*)
3690 noconfigdirs="$noconfigdirs target-libgloss"
3692 h8500-*-*)
3693 noconfigdirs="$noconfigdirs target-libgloss"
3695 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3697 hppa*64*-*-hpux*)
3698 noconfigdirs="$noconfigdirs gdb"
3700 hppa*-*-hpux11*)
3701 noconfigdirs="$noconfigdirs gdb ld"
3703 hppa*64*-*-linux*)
3705 hppa*-*-linux*)
3707 hppa*-*-*elf* | \
3708 hppa*-*-lites* | \
3709 hppa*-*-openbsd* | \
3710 hppa*64*-*-*)
3712 hppa*-*-pro*)
3714 hppa*-*-*)
3715 noconfigdirs="$noconfigdirs ld"
3717 i960-*-*)
3718 noconfigdirs="$noconfigdirs gdb"
3720 ia64*-*-elf*)
3721 # No gdb support yet.
3722 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3724 ia64*-**-hpux*)
3725 # No ld support yet.
3726 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3728 ia64*-*-*vms*)
3729 # No ld support yet.
3730 noconfigdirs="$noconfigdirs libgui itcl ld"
3732 i[3456789]86-w64-mingw*)
3734 i[3456789]86-*-mingw*)
3735 target_configdirs="$target_configdirs target-winsup"
3737 *-*-cygwin*)
3738 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3739 noconfigdirs="$noconfigdirs target-libgloss"
3740 # always build newlib if winsup directory is present.
3741 if test -d "$srcdir/winsup/cygwin"; then
3742 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3743 elif test -d "$srcdir/newlib"; then
3744 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3747 i[3456789]86-*-pe)
3748 noconfigdirs="$noconfigdirs target-libgloss"
3750 i[3456789]86-*-sco3.2v5*)
3751 # The linker does not yet know about weak symbols in COFF,
3752 # and is not configured to handle mixed ELF and COFF.
3753 noconfigdirs="$noconfigdirs ld target-libgloss"
3755 i[3456789]86-*-sco*)
3756 noconfigdirs="$noconfigdirs gprof target-libgloss"
3758 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3759 noconfigdirs="$noconfigdirs target-libgloss"
3761 i[3456789]86-*-sysv4*)
3762 noconfigdirs="$noconfigdirs target-libgloss"
3764 i[3456789]86-*-beos*)
3765 noconfigdirs="$noconfigdirs gdb"
3767 i[3456789]86-*-rdos*)
3768 noconfigdirs="$noconfigdirs gdb"
3770 mmix-*-*)
3771 noconfigdirs="$noconfigdirs gdb"
3773 mt-*-*)
3774 noconfigdirs="$noconfigdirs sim"
3776 powerpc-*-aix*)
3777 # copied from rs6000-*-* entry
3778 noconfigdirs="$noconfigdirs gprof"
3780 powerpc*-*-winnt* | powerpc*-*-pe*)
3781 target_configdirs="$target_configdirs target-winsup"
3782 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3783 # always build newlib.
3784 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3786 # This is temporary until we can link against shared libraries
3787 powerpcle-*-solaris*)
3788 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3790 powerpc-*-beos*)
3791 noconfigdirs="$noconfigdirs gdb"
3793 rs6000-*-lynxos*)
3794 noconfigdirs="$noconfigdirs gprof"
3796 rs6000-*-aix*)
3797 noconfigdirs="$noconfigdirs gprof"
3799 rs6000-*-*)
3800 noconfigdirs="$noconfigdirs gprof"
3802 m68k-apollo-*)
3803 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3805 microblaze*)
3806 noconfigdirs="$noconfigdirs gprof"
3808 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3809 if test x$with_newlib = xyes; then
3810 noconfigdirs="$noconfigdirs gprof"
3813 mips*-*-irix5*)
3814 noconfigdirs="$noconfigdirs gprof target-libgloss"
3816 mips*-*-irix6*)
3817 noconfigdirs="$noconfigdirs gprof target-libgloss"
3819 mips*-*-bsd*)
3820 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3822 mips*-*-linux*)
3824 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3825 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3826 noconfigdirs="$noconfigdirs ld gas gprof"
3828 mips*-*-*)
3829 noconfigdirs="$noconfigdirs gprof"
3831 nvptx*-*-*)
3832 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3834 or1k*-*-*)
3835 noconfigdirs="$noconfigdirs gdb"
3837 sh-*-*)
3838 case "${target}" in
3839 sh*-*-elf)
3842 noconfigdirs="$noconfigdirs target-libgloss" ;;
3843 esac
3845 sparc-*-sunos4*)
3846 if test x${is_cross_compiler} = xno ; then
3847 use_gnu_ld=no
3850 tic6x-*-*)
3851 noconfigdirs="$noconfigdirs sim"
3853 tilepro*-*-* | tilegx*-*-*)
3854 noconfigdirs="$noconfigdirs sim"
3856 v810-*-*)
3857 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3859 vax-*-*)
3860 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3862 esac
3864 # If we aren't building newlib, then don't build libgloss, since libgloss
3865 # depends upon some newlib header files.
3866 case "${noconfigdirs}" in
3867 *target-libgloss*) ;;
3868 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3869 esac
3871 # Work in distributions that contain no compiler tools, like Autoconf.
3872 host_makefile_frag=/dev/null
3873 if test -d ${srcdir}/config ; then
3874 case "${host}" in
3875 i[3456789]86-*-msdosdjgpp*)
3876 host_makefile_frag="config/mh-djgpp"
3878 *-cygwin*)
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3881 $as_echo_n "checking to see if cat works as expected... " >&6; }
3882 echo a >cygwin-cat-check
3883 if test `cat cygwin-cat-check` = a ; then
3884 rm cygwin-cat-check
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3887 else
3888 rm cygwin-cat-check
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3891 as_fn_error "The cat command does not ignore carriage return characters.
3892 Please either mount the build directory in binary mode or run the following
3893 commands before running any configure script:
3894 set -o igncr
3895 export SHELLOPTS
3896 " "$LINENO" 5
3899 host_makefile_frag="config/mh-cygwin"
3901 *-mingw*)
3902 host_makefile_frag="config/mh-mingw"
3904 alpha*-linux*)
3905 host_makefile_frag="config/mh-alpha-linux"
3907 hppa*-hp-hpux10*)
3908 host_makefile_frag="config/mh-pa-hpux10"
3910 hppa*-hp-hpux*)
3911 host_makefile_frag="config/mh-pa"
3913 hppa*-*)
3914 host_makefile_frag="config/mh-pa"
3916 *-*-darwin*)
3917 host_makefile_frag="config/mh-darwin"
3919 powerpc-*-aix*)
3920 host_makefile_frag="config/mh-ppc-aix"
3922 rs6000-*-aix*)
3923 host_makefile_frag="config/mh-ppc-aix"
3925 esac
3928 if test "${build}" != "${host}" ; then
3929 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3930 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3931 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3932 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3933 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3934 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3935 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3936 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3937 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3938 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3939 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3940 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3941 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3942 else
3943 AR_FOR_BUILD="\$(AR)"
3944 AS_FOR_BUILD="\$(AS)"
3945 CC_FOR_BUILD="\$(CC)"
3946 CXX_FOR_BUILD="\$(CXX)"
3947 GCJ_FOR_BUILD="\$(GCJ)"
3948 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3949 GOC_FOR_BUILD="\$(GOC)"
3950 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3951 LD_FOR_BUILD="\$(LD)"
3952 NM_FOR_BUILD="\$(NM)"
3953 RANLIB_FOR_BUILD="\$(RANLIB)"
3954 WINDRES_FOR_BUILD="\$(WINDRES)"
3955 WINDMC_FOR_BUILD="\$(WINDMC)"
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if test "${ac_cv_prog_CC+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$CC"; then
3972 ac_cv_prog_CC="$CC" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3985 done
3986 done
3987 IFS=$as_save_IFS
3991 CC=$ac_cv_prog_CC
3992 if test -n "$CC"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 $as_echo "$CC" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4002 if test -z "$ac_cv_prog_CC"; then
4003 ac_ct_CC=$CC
4004 # Extract the first word of "gcc", so it can be a program name with args.
4005 set dummy gcc; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$ac_ct_CC"; then
4012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_prog_ac_ct_CC="gcc"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4025 done
4026 done
4027 IFS=$as_save_IFS
4031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4032 if test -n "$ac_ct_CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4034 $as_echo "$ac_ct_CC" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4040 if test "x$ac_ct_CC" = x; then
4041 CC=""
4042 else
4043 case $cross_compiling:$ac_tool_warned in
4044 yes:)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047 ac_tool_warned=yes ;;
4048 esac
4049 CC=$ac_ct_CC
4051 else
4052 CC="$ac_cv_prog_CC"
4055 if test -z "$CC"; then
4056 if test -n "$ac_tool_prefix"; then
4057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4058 set dummy ${ac_tool_prefix}cc; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if test "${ac_cv_prog_CC+set}" = set; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 if test -n "$CC"; then
4065 ac_cv_prog_CC="$CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4074 ac_cv_prog_CC="${ac_tool_prefix}cc"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 break 2
4078 done
4079 done
4080 IFS=$as_save_IFS
4084 CC=$ac_cv_prog_CC
4085 if test -n "$CC"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4087 $as_echo "$CC" >&6; }
4088 else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4096 if test -z "$CC"; then
4097 # Extract the first word of "cc", so it can be a program name with args.
4098 set dummy cc; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if test "${ac_cv_prog_CC+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106 else
4107 ac_prog_rejected=no
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4116 ac_prog_rejected=yes
4117 continue
4119 ac_cv_prog_CC="cc"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4123 done
4124 done
4125 IFS=$as_save_IFS
4127 if test $ac_prog_rejected = yes; then
4128 # We found a bogon in the path, so make sure we never use it.
4129 set dummy $ac_cv_prog_CC
4130 shift
4131 if test $# != 0; then
4132 # We chose a different compiler from the bogus one.
4133 # However, it has the same basename, so the bogon will be chosen
4134 # first if we set CC to just the basename; use the full file name.
4135 shift
4136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4141 CC=$ac_cv_prog_CC
4142 if test -n "$CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144 $as_echo "$CC" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4152 if test -z "$CC"; then
4153 if test -n "$ac_tool_prefix"; then
4154 for ac_prog in cl.exe
4156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if test "${ac_cv_prog_CC+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 $as_echo "$CC" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 test -n "$CC" && break
4194 done
4196 if test -z "$CC"; then
4197 ac_ct_CC=$CC
4198 for ac_prog in cl.exe
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$ac_ct_CC"; then
4208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_ac_ct_CC="$ac_prog"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4223 IFS=$as_save_IFS
4227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4228 if test -n "$ac_ct_CC"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4230 $as_echo "$ac_ct_CC" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4237 test -n "$ac_ct_CC" && break
4238 done
4240 if test "x$ac_ct_CC" = x; then
4241 CC=""
4242 else
4243 case $cross_compiling:$ac_tool_warned in
4244 yes:)
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4247 ac_tool_warned=yes ;;
4248 esac
4249 CC=$ac_ct_CC
4256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258 as_fn_error "no acceptable C compiler found in \$PATH
4259 See \`config.log' for more details." "$LINENO" 5; }
4261 # Provide some information about the compiler.
4262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4263 set X $ac_compile
4264 ac_compiler=$2
4265 for ac_option in --version -v -V -qversion; do
4266 { { ac_try="$ac_compiler $ac_option >&5"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4272 $as_echo "$ac_try_echo"; } >&5
4273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4274 ac_status=$?
4275 if test -s conftest.err; then
4276 sed '10a\
4277 ... rest of stderr output deleted ...
4278 10q' conftest.err >conftest.er1
4279 cat conftest.er1 >&5
4280 rm -f conftest.er1 conftest.err
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }
4284 done
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4290 main ()
4294 return 0;
4296 _ACEOF
4297 ac_clean_files_save=$ac_clean_files
4298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4299 # Try to create an executable without -o first, disregard a.out.
4300 # It will help us diagnose broken compilers, and finding out an intuition
4301 # of exeext.
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4303 $as_echo_n "checking for C compiler default output file name... " >&6; }
4304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4306 # The possible output files:
4307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4309 ac_rmfiles=
4310 for ac_file in $ac_files
4312 case $ac_file in
4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4315 esac
4316 done
4317 rm -f $ac_rmfiles
4319 if { { ac_try="$ac_link_default"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_link_default") 2>&5
4327 ac_status=$?
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }; then :
4330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4333 # so that the user can short-circuit this test for compilers unknown to
4334 # Autoconf.
4335 for ac_file in $ac_files ''
4337 test -f "$ac_file" || continue
4338 case $ac_file in
4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4341 [ab].out )
4342 # We found the default executable, but exeext='' is most
4343 # certainly right.
4344 break;;
4345 *.* )
4346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4347 then :; else
4348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4350 # We set ac_cv_exeext here because the later test for it is not
4351 # safe: cross compilers may not add the suffix if given an `-o'
4352 # argument, so we may need to know it at that point already.
4353 # Even if this section looks crufty: it has the advantage of
4354 # actually working.
4355 break;;
4357 break;;
4358 esac
4359 done
4360 test "$ac_cv_exeext" = no && ac_cv_exeext=
4362 else
4363 ac_file=''
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4366 $as_echo "$ac_file" >&6; }
4367 if test -z "$ac_file"; then :
4368 $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 { as_fn_set_status 77
4374 as_fn_error "C compiler cannot create executables
4375 See \`config.log' for more details." "$LINENO" 5; }; }
4377 ac_exeext=$ac_cv_exeext
4379 # Check that the compiler produces executables we can run. If not, either
4380 # the compiler is broken, or we cross compile.
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4382 $as_echo_n "checking whether the C compiler works... " >&6; }
4383 # If not cross compiling, check that we can run a simple program.
4384 if test "$cross_compiling" != yes; then
4385 if { ac_try='./$ac_file'
4386 { { case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 $as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_try") 2>&5
4393 ac_status=$?
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }; }; then
4396 cross_compiling=no
4397 else
4398 if test "$cross_compiling" = maybe; then
4399 cross_compiling=yes
4400 else
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error "cannot run C compiled programs.
4404 If you meant to cross compile, use \`--host'.
4405 See \`config.log' for more details." "$LINENO" 5; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4410 $as_echo "yes" >&6; }
4412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4413 ac_clean_files=$ac_clean_files_save
4414 # Check that the compiler produces executables we can run. If not, either
4415 # the compiler is broken, or we cross compile.
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4417 $as_echo_n "checking whether we are cross compiling... " >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4419 $as_echo "$cross_compiling" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4422 $as_echo_n "checking for suffix of executables... " >&6; }
4423 if { { ac_try="$ac_link"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_link") 2>&5
4431 ac_status=$?
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }; then :
4434 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4435 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4436 # work properly (i.e., refer to `conftest.exe'), while it won't with
4437 # `rm'.
4438 for ac_file in conftest.exe conftest conftest.*; do
4439 test -f "$ac_file" || continue
4440 case $ac_file in
4441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4442 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4443 break;;
4444 * ) break;;
4445 esac
4446 done
4447 else
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error "cannot compute suffix of executables: cannot compile and link
4451 See \`config.log' for more details." "$LINENO" 5; }
4453 rm -f conftest$ac_cv_exeext
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4455 $as_echo "$ac_cv_exeext" >&6; }
4457 rm -f conftest.$ac_ext
4458 EXEEXT=$ac_cv_exeext
4459 ac_exeext=$EXEEXT
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4461 $as_echo_n "checking for suffix of object files... " >&6; }
4462 if test "${ac_cv_objext+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4469 main ()
4473 return 0;
4475 _ACEOF
4476 rm -f conftest.o conftest.obj
4477 if { { ac_try="$ac_compile"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_compile") 2>&5
4485 ac_status=$?
4486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; }; then :
4488 for ac_file in conftest.o conftest.obj conftest.*; do
4489 test -f "$ac_file" || continue;
4490 case $ac_file in
4491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4493 break;;
4494 esac
4495 done
4496 else
4497 $as_echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502 as_fn_error "cannot compute suffix of object files: cannot compile
4503 See \`config.log' for more details." "$LINENO" 5; }
4505 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4508 $as_echo "$ac_cv_objext" >&6; }
4509 OBJEXT=$ac_cv_objext
4510 ac_objext=$OBJEXT
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4513 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4520 main ()
4522 #ifndef __GNUC__
4523 choke me
4524 #endif
4527 return 0;
4529 _ACEOF
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_compiler_gnu=yes
4532 else
4533 ac_compiler_gnu=no
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4541 if test $ac_compiler_gnu = yes; then
4542 GCC=yes
4543 else
4544 GCC=
4546 ac_test_CFLAGS=${CFLAGS+set}
4547 ac_save_CFLAGS=$CFLAGS
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4550 if test "${ac_cv_prog_cc_g+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 ac_save_c_werror_flag=$ac_c_werror_flag
4554 ac_c_werror_flag=yes
4555 ac_cv_prog_cc_g=no
4556 CFLAGS="-g"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4561 main ()
4565 return 0;
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_prog_cc_g=yes
4570 else
4571 CFLAGS=""
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4576 main ()
4580 return 0;
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"; then :
4585 else
4586 ac_c_werror_flag=$ac_save_c_werror_flag
4587 CFLAGS="-g"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4592 main ()
4596 return 0;
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_prog_cc_g=yes
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4610 $as_echo "$ac_cv_prog_cc_g" >&6; }
4611 if test "$ac_test_CFLAGS" = set; then
4612 CFLAGS=$ac_save_CFLAGS
4613 elif test $ac_cv_prog_cc_g = yes; then
4614 if test "$GCC" = yes; then
4615 CFLAGS="-g -O2"
4616 else
4617 CFLAGS="-g"
4619 else
4620 if test "$GCC" = yes; then
4621 CFLAGS="-O2"
4622 else
4623 CFLAGS=
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4628 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_cv_prog_cc_c89=no
4632 ac_save_CC=$CC
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <stdarg.h>
4636 #include <stdio.h>
4637 #include <sys/types.h>
4638 #include <sys/stat.h>
4639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4640 struct buf { int x; };
4641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4642 static char *e (p, i)
4643 char **p;
4644 int i;
4646 return p[i];
4648 static char *f (char * (*g) (char **, int), char **p, ...)
4650 char *s;
4651 va_list v;
4652 va_start (v,p);
4653 s = g (p, va_arg (v,int));
4654 va_end (v);
4655 return s;
4658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4659 function prototypes and stuff, but not '\xHH' hex character constants.
4660 These don't provoke an error unfortunately, instead are silently treated
4661 as 'x'. The following induces an error, until -std is added to get
4662 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4663 array size at least. It's necessary to write '\x00'==0 to get something
4664 that's true only with -std. */
4665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4668 inside strings and character constants. */
4669 #define FOO(x) 'x'
4670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4672 int test (int i, double x);
4673 struct s1 {int (*f) (int a);};
4674 struct s2 {int (*f) (double a);};
4675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4676 int argc;
4677 char **argv;
4679 main ()
4681 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4683 return 0;
4685 _ACEOF
4686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4687 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4689 CC="$ac_save_CC $ac_arg"
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 ac_cv_prog_cc_c89=$ac_arg
4693 rm -f core conftest.err conftest.$ac_objext
4694 test "x$ac_cv_prog_cc_c89" != "xno" && break
4695 done
4696 rm -f conftest.$ac_ext
4697 CC=$ac_save_CC
4700 # AC_CACHE_VAL
4701 case "x$ac_cv_prog_cc_c89" in
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4704 $as_echo "none needed" >&6; } ;;
4705 xno)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4707 $as_echo "unsupported" >&6; } ;;
4709 CC="$CC $ac_cv_prog_cc_c89"
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4712 esac
4713 if test "x$ac_cv_prog_cc_c89" != xno; then :
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723 ac_ext=cpp
4724 ac_cpp='$CXXCPP $CPPFLAGS'
4725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4728 if test -z "$CXX"; then
4729 if test -n "$CCC"; then
4730 CXX=$CCC
4731 else
4732 if test -n "$ac_tool_prefix"; then
4733 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_CXX+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$CXX"; then
4743 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 CXX=$ac_cv_prog_CXX
4763 if test -n "$CXX"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4765 $as_echo "$CXX" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4772 test -n "$CXX" && break
4773 done
4775 if test -z "$CXX"; then
4776 ac_ct_CXX=$CXX
4777 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -n "$ac_ct_CXX"; then
4787 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_ac_ct_CXX="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4802 IFS=$as_save_IFS
4806 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4807 if test -n "$ac_ct_CXX"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4809 $as_echo "$ac_ct_CXX" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4816 test -n "$ac_ct_CXX" && break
4817 done
4819 if test "x$ac_ct_CXX" = x; then
4820 CXX="g++"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828 CXX=$ac_ct_CXX
4834 # Provide some information about the compiler.
4835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4836 set X $ac_compile
4837 ac_compiler=$2
4838 for ac_option in --version -v -V -qversion; do
4839 { { ac_try="$ac_compiler $ac_option >&5"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4845 $as_echo "$ac_try_echo"; } >&5
4846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4847 ac_status=$?
4848 if test -s conftest.err; then
4849 sed '10a\
4850 ... rest of stderr output deleted ...
4851 10q' conftest.err >conftest.er1
4852 cat conftest.er1 >&5
4853 rm -f conftest.er1 conftest.err
4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }
4857 done
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4860 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4861 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4868 main ()
4870 #ifndef __GNUC__
4871 choke me
4872 #endif
4875 return 0;
4877 _ACEOF
4878 if ac_fn_cxx_try_compile "$LINENO"; then :
4879 ac_compiler_gnu=yes
4880 else
4881 ac_compiler_gnu=no
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4888 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4889 if test $ac_compiler_gnu = yes; then
4890 GXX=yes
4891 else
4892 GXX=
4894 ac_test_CXXFLAGS=${CXXFLAGS+set}
4895 ac_save_CXXFLAGS=$CXXFLAGS
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4897 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4898 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4902 ac_cxx_werror_flag=yes
4903 ac_cv_prog_cxx_g=no
4904 CXXFLAGS="-g"
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4909 main ()
4913 return 0;
4915 _ACEOF
4916 if ac_fn_cxx_try_compile "$LINENO"; then :
4917 ac_cv_prog_cxx_g=yes
4918 else
4919 CXXFLAGS=""
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4924 main ()
4928 return 0;
4930 _ACEOF
4931 if ac_fn_cxx_try_compile "$LINENO"; then :
4933 else
4934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4935 CXXFLAGS="-g"
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4940 main ()
4944 return 0;
4946 _ACEOF
4947 if ac_fn_cxx_try_compile "$LINENO"; then :
4948 ac_cv_prog_cxx_g=yes
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4958 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4959 if test "$ac_test_CXXFLAGS" = set; then
4960 CXXFLAGS=$ac_save_CXXFLAGS
4961 elif test $ac_cv_prog_cxx_g = yes; then
4962 if test "$GXX" = yes; then
4963 CXXFLAGS="-g -O2"
4964 else
4965 CXXFLAGS="-g"
4967 else
4968 if test "$GXX" = yes; then
4969 CXXFLAGS="-O2"
4970 else
4971 CXXFLAGS=
4974 ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 # We must set the default linker to the linker used by gcc for the correct
4982 # operation of libtool. If LD is not defined and we are using gcc, try to
4983 # set the LD default to the ld used by gcc.
4984 if test -z "$LD"; then
4985 if test "$GCC" = yes; then
4986 case $build in
4987 *-*-mingw*)
4988 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4990 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4991 esac
4992 case $gcc_prog_ld in
4993 # Accept absolute paths.
4994 [\\/]* | [A-Za-z]:[\\/]*)
4995 LD="$gcc_prog_ld" ;;
4996 esac
5000 # Check whether -static-libstdc++ -static-libgcc is supported.
5001 have_static_libs=no
5002 if test "$GCC" = yes; then
5003 saved_LDFLAGS="$LDFLAGS"
5005 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5007 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5008 ac_ext=cpp
5009 ac_cpp='$CXXCPP $CPPFLAGS'
5010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5018 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5019 #error -static-libstdc++ not implemented
5020 #endif
5021 int main() {}
5022 _ACEOF
5023 if ac_fn_cxx_try_link "$LINENO"; then :
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025 $as_echo "yes" >&6; }; have_static_libs=yes
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5030 rm -f core conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5039 LDFLAGS="$saved_LDFLAGS"
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5047 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 GNATBIND=$ac_cv_prog_GNATBIND
5074 if test -n "$GNATBIND"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076 $as_echo "$GNATBIND" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_GNATBIND"; then
5085 ac_ct_GNATBIND=$GNATBIND
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087 set dummy gnatbind; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5109 IFS=$as_save_IFS
5113 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5114 if test -n "$ac_ct_GNATBIND"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116 $as_echo "$ac_ct_GNATBIND" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_GNATBIND" = x; then
5123 GNATBIND="no"
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126 yes:)
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131 GNATBIND=$ac_ct_GNATBIND
5133 else
5134 GNATBIND="$ac_cv_prog_GNATBIND"
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5165 GNATMAKE=$ac_cv_prog_GNATMAKE
5166 if test -n "$GNATMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168 $as_echo "$GNATMAKE" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_prog_GNATMAKE"; then
5177 ac_ct_GNATMAKE=$GNATMAKE
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179 set dummy gnatmake; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5187 else
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 break 2
5199 done
5200 done
5201 IFS=$as_save_IFS
5205 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5206 if test -n "$ac_ct_GNATMAKE"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208 $as_echo "$ac_ct_GNATMAKE" >&6; }
5209 else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_ct_GNATMAKE" = x; then
5215 GNATMAKE="no"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218 yes:)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5222 esac
5223 GNATMAKE=$ac_ct_GNATMAKE
5225 else
5226 GNATMAKE="$ac_cv_prog_GNATMAKE"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5230 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5231 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 cat >conftest.adb <<EOF
5235 procedure conftest is begin null; end conftest;
5237 acx_cv_cc_gcc_supports_ada=no
5238 # There is a bug in old released versions of GCC which causes the
5239 # driver to exit successfully when the appropriate language module
5240 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5241 # Therefore we must check for the error message as well as an
5242 # unsuccessful exit.
5243 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5244 # given a .adb file, but produce no object file. So we must check
5245 # if an object file was really produced to guard against this.
5246 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5247 if test x"$errors" = x && test -f conftest.$ac_objext; then
5248 acx_cv_cc_gcc_supports_ada=yes
5250 rm -f conftest.*
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5253 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5255 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5256 have_gnat=yes
5257 else
5258 have_gnat=no
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5262 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5263 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 echo abfoo >t1
5267 echo cdfoo >t2
5268 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5269 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5270 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5272 else
5273 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5276 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5277 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5279 else
5280 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5283 rm t1 t2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5287 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5288 do_compare="$gcc_cv_prog_cmp_skip"
5292 # Check whether --enable-bootstrap was given.
5293 if test "${enable_bootstrap+set}" = set; then :
5294 enableval=$enable_bootstrap;
5295 else
5296 enable_bootstrap=default
5300 # Issue errors and warnings for invalid/strange bootstrap combinations.
5301 if test -r $srcdir/gcc/configure; then
5302 have_compiler=yes
5303 else
5304 have_compiler=no
5307 case "$have_compiler:$host:$target:$enable_bootstrap" in
5308 *:*:*:no) ;;
5310 # Default behavior. Enable bootstrap if we have a compiler
5311 # and we are in a native configuration.
5312 yes:$build:$build:default)
5313 enable_bootstrap=yes ;;
5315 *:*:*:default)
5316 enable_bootstrap=no ;;
5318 # We have a compiler and we are in a native configuration, bootstrap is ok
5319 yes:$build:$build:yes)
5322 # Other configurations, but we have a compiler. Assume the user knows
5323 # what he's doing.
5324 yes:*:*:yes)
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5326 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5329 # No compiler: if they passed --enable-bootstrap explicitly, fail
5330 no:*:*:yes)
5331 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5333 # Fail if wrong command line
5335 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5337 esac
5339 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5340 # C++98 compiler can still start the bootstrap.
5341 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5342 CXX="$CXX -std=gnu++98"
5345 # Used for setting $lt_cv_objdir
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5347 $as_echo_n "checking for objdir... " >&6; }
5348 if test "${lt_cv_objdir+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 rm -f .libs 2>/dev/null
5352 mkdir .libs 2>/dev/null
5353 if test -d .libs; then
5354 lt_cv_objdir=.libs
5355 else
5356 # MS-DOS does not allow filenames that begin with a dot.
5357 lt_cv_objdir=_libs
5359 rmdir .libs 2>/dev/null
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5362 $as_echo "$lt_cv_objdir" >&6; }
5363 objdir=$lt_cv_objdir
5369 cat >>confdefs.h <<_ACEOF
5370 #define LT_OBJDIR "$lt_cv_objdir/"
5371 _ACEOF
5375 # Check for GMP, MPFR and MPC
5376 gmplibs="-lmpc -lmpfr -lgmp"
5377 gmpinc=
5378 have_gmp=no
5380 # Specify a location for mpc
5381 # check for this first so it ends up on the link line before mpfr.
5383 # Check whether --with-mpc was given.
5384 if test "${with_mpc+set}" = set; then :
5385 withval=$with_mpc;
5389 # Check whether --with-mpc-include was given.
5390 if test "${with_mpc_include+set}" = set; then :
5391 withval=$with_mpc_include;
5395 # Check whether --with-mpc-lib was given.
5396 if test "${with_mpc_lib+set}" = set; then :
5397 withval=$with_mpc_lib;
5401 if test "x$with_mpc" != x; then
5402 gmplibs="-L$with_mpc/lib $gmplibs"
5403 gmpinc="-I$with_mpc/include $gmpinc"
5405 if test "x$with_mpc_include" != x; then
5406 gmpinc="-I$with_mpc_include $gmpinc"
5408 if test "x$with_mpc_lib" != x; then
5409 gmplibs="-L$with_mpc_lib $gmplibs"
5411 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5412 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5413 gmpinc='-I$$s/mpc/src '"$gmpinc"
5414 # Do not test the mpc version. Assume that it is sufficient, since
5415 # it is in the source tree, and the library has not been built yet
5416 # but it would be included on the link line in the version check below
5417 # hence making the test fail.
5418 have_gmp=yes
5421 # Specify a location for mpfr
5422 # check for this first so it ends up on the link line before gmp.
5424 # Check whether --with-mpfr-dir was given.
5425 if test "${with_mpfr_dir+set}" = set; then :
5426 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5427 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5432 # Check whether --with-mpfr was given.
5433 if test "${with_mpfr+set}" = set; then :
5434 withval=$with_mpfr;
5438 # Check whether --with-mpfr-include was given.
5439 if test "${with_mpfr_include+set}" = set; then :
5440 withval=$with_mpfr_include;
5444 # Check whether --with-mpfr-lib was given.
5445 if test "${with_mpfr_lib+set}" = set; then :
5446 withval=$with_mpfr_lib;
5450 if test "x$with_mpfr" != x; then
5451 gmplibs="-L$with_mpfr/lib $gmplibs"
5452 gmpinc="-I$with_mpfr/include $gmpinc"
5454 if test "x$with_mpfr_include" != x; then
5455 gmpinc="-I$with_mpfr_include $gmpinc"
5457 if test "x$with_mpfr_lib" != x; then
5458 gmplibs="-L$with_mpfr_lib $gmplibs"
5460 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5461 # MPFR v3.1.0 moved the sources into a src sub-directory.
5462 if ! test -d ${srcdir}/mpfr/src; then
5463 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5465 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5466 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5467 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5468 # Do not test the mpfr version. Assume that it is sufficient, since
5469 # it is in the source tree, and the library has not been built yet
5470 # but it would be included on the link line in the version check below
5471 # hence making the test fail.
5472 have_gmp=yes
5475 # Specify a location for gmp
5477 # Check whether --with-gmp-dir was given.
5478 if test "${with_gmp_dir+set}" = set; then :
5479 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5480 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5485 # Check whether --with-gmp was given.
5486 if test "${with_gmp+set}" = set; then :
5487 withval=$with_gmp;
5491 # Check whether --with-gmp-include was given.
5492 if test "${with_gmp_include+set}" = set; then :
5493 withval=$with_gmp_include;
5497 # Check whether --with-gmp-lib was given.
5498 if test "${with_gmp_lib+set}" = set; then :
5499 withval=$with_gmp_lib;
5504 if test "x$with_gmp" != x; then
5505 gmplibs="-L$with_gmp/lib $gmplibs"
5506 gmpinc="-I$with_gmp/include $gmpinc"
5508 if test "x$with_gmp_include" != x; then
5509 gmpinc="-I$with_gmp_include $gmpinc"
5511 if test "x$with_gmp_lib" != x; then
5512 gmplibs="-L$with_gmp_lib $gmplibs"
5514 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5515 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5516 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5517 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5518 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5519 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5520 # Do not test the gmp version. Assume that it is sufficient, since
5521 # it is in the source tree, and the library has not been built yet
5522 # but it would be included on the link line in the version check below
5523 # hence making the test fail.
5524 have_gmp=yes
5527 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5528 have_gmp=yes
5529 saved_CFLAGS="$CFLAGS"
5530 CFLAGS="$CFLAGS $gmpinc"
5531 # Check for the recommended and required versions of GMP.
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5533 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #include "gmp.h"
5539 main ()
5542 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5543 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5544 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5545 choke me
5546 #endif
5549 return 0;
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 #include <gmp.h>
5557 main ()
5560 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5561 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5562 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5563 choke me
5564 #endif
5567 return 0;
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5572 $as_echo "yes" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5575 $as_echo "buggy but acceptable" >&6; }
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }; have_gmp=no
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 # If we have GMP, check the MPFR version.
5585 if test x"$have_gmp" = xyes; then
5586 # Check for the recommended and required versions of MPFR.
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5588 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #include <gmp.h>
5592 #include <mpfr.h>
5594 main ()
5597 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5598 choke me
5599 #endif
5602 return 0;
5604 _ACEOF
5605 if ac_fn_c_try_compile "$LINENO"; then :
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <gmp.h>
5609 #include <mpfr.h>
5611 main ()
5614 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5615 choke me
5616 #endif
5619 return 0;
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5624 $as_echo "yes" >&6; }
5625 else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5627 $as_echo "buggy but acceptable" >&6; }
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }; have_gmp=no
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 # Check for the MPC header version.
5638 if test x"$have_gmp" = xyes ; then
5639 # Check for the recommended and required versions of MPC.
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5641 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <mpc.h>
5646 main ()
5649 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5650 choke me
5651 #endif
5654 return 0;
5656 _ACEOF
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #include <mpc.h>
5662 main ()
5665 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5666 choke me
5667 #endif
5670 return 0;
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5678 $as_echo "buggy but acceptable" >&6; }
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }; have_gmp=no
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 # Now check the MPFR library.
5689 if test x"$have_gmp" = xyes; then
5690 saved_LIBS="$LIBS"
5691 LIBS="$LIBS $gmplibs"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5693 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <mpc.h>
5698 main ()
5701 mpfr_t n;
5702 mpfr_t x;
5703 mpc_t c;
5704 int t;
5705 mpfr_init (n);
5706 mpfr_init (x);
5707 mpfr_atan2 (n, n, x, GMP_RNDN);
5708 mpfr_erfc (n, x, GMP_RNDN);
5709 mpfr_subnormalize (x, t, GMP_RNDN);
5710 mpfr_clear(n);
5711 mpfr_clear(x);
5712 mpc_init2 (c, 53);
5713 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5714 mpc_cosh (c, c, MPC_RNDNN);
5715 mpc_pow (c, c, c, MPC_RNDNN);
5716 mpc_acosh (c, c, MPC_RNDNN);
5717 mpc_clear (c);
5720 return 0;
5722 _ACEOF
5723 if ac_fn_c_try_link "$LINENO"; then :
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }; have_gmp=no
5730 rm -f core conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
5732 LIBS="$saved_LIBS"
5735 CFLAGS="$saved_CFLAGS"
5737 # The library versions listed in the error message below should match
5738 # the HARD-minimums enforced above.
5739 if test x$have_gmp != xyes; then
5740 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5741 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5742 their locations. Source code for these libraries can be found at
5743 their respective hosting sites as well as at
5744 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5745 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5746 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5747 make sure that you have installed both the libraries and the header
5748 files. They may be located in separate packages." "$LINENO" 5
5752 # Flags needed for both GMP, MPFR and/or MPC.
5760 # Libraries to use for stage1 or when not bootstrapping.
5762 # Check whether --with-stage1-libs was given.
5763 if test "${with_stage1_libs+set}" = set; then :
5764 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5765 stage1_libs=
5766 else
5767 stage1_libs=$withval
5769 else
5770 stage1_libs=
5775 # Linker flags to use for stage1 or when not bootstrapping.
5777 # Check whether --with-stage1-ldflags was given.
5778 if test "${with_stage1_ldflags+set}" = set; then :
5779 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5780 stage1_ldflags=
5781 else
5782 stage1_ldflags=$withval
5784 else
5785 stage1_ldflags=
5786 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5787 # if supported. But if the user explicitly specified the libraries to use,
5788 # trust that they are doing what they want.
5789 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5790 stage1_ldflags="-static-libstdc++ -static-libgcc"
5796 # Libraries to use for stage2 and later builds.
5798 # Check whether --with-boot-libs was given.
5799 if test "${with_boot_libs+set}" = set; then :
5800 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5801 poststage1_libs=
5802 else
5803 poststage1_libs=$withval
5805 else
5806 poststage1_libs=
5811 # Linker flags to use for stage2 and later builds.
5813 # Check whether --with-boot-ldflags was given.
5814 if test "${with_boot_ldflags+set}" = set; then :
5815 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5816 poststage1_ldflags=
5817 else
5818 poststage1_ldflags=$withval
5820 else
5821 poststage1_ldflags=
5822 # In stages 2 and 3, default to linking libstdc++ and libgcc
5823 # statically. But if the user explicitly specified the libraries to
5824 # use, trust that they are doing what they want.
5825 if test "$poststage1_libs" = ""; then
5826 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5832 # GCC GRAPHITE dependency isl.
5833 # Basic setup is inlined here, actual checks are in config/isl.m4
5836 # Check whether --with-isl was given.
5837 if test "${with_isl+set}" = set; then :
5838 withval=$with_isl;
5842 # Treat --without-isl as a request to disable
5843 # GRAPHITE support and skip all following checks.
5844 if test "x$with_isl" != "xno"; then
5845 # Check for isl
5848 # Check whether --with-isl-include was given.
5849 if test "${with_isl_include+set}" = set; then :
5850 withval=$with_isl_include;
5854 # Check whether --with-isl-lib was given.
5855 if test "${with_isl_lib+set}" = set; then :
5856 withval=$with_isl_lib;
5860 # Check whether --enable-isl-version-check was given.
5861 if test "${enable_isl_version_check+set}" = set; then :
5862 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5863 else
5864 ENABLE_ISL_CHECK=yes
5868 # Initialize isllibs and islinc.
5869 case $with_isl in
5871 isllibs=
5872 islinc=
5874 "" | yes)
5877 isllibs="-L$with_isl/lib"
5878 islinc="-I$with_isl/include"
5880 esac
5881 if test "x${with_isl_include}" != x ; then
5882 islinc="-I$with_isl_include"
5884 if test "x${with_isl_lib}" != x; then
5885 isllibs="-L$with_isl_lib"
5887 if test "x${islinc}" = x && test "x${isllibs}" = x \
5888 && test -d ${srcdir}/isl; then
5889 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5890 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5891 ENABLE_ISL_CHECK=no
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5893 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5896 isllibs="${isllibs} -lisl"
5900 if test "${ENABLE_ISL_CHECK}" = yes ; then
5901 _isl_saved_CFLAGS=$CFLAGS
5902 _isl_saved_LDFLAGS=$LDFLAGS
5903 _isl_saved_LIBS=$LIBS
5905 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5906 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5907 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5910 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 #include <isl/ctx.h>
5915 main ()
5917 isl_ctx_get_max_operations (isl_ctx_alloc ());
5919 return 0;
5921 _ACEOF
5922 if ac_fn_c_try_link "$LINENO"; then :
5923 gcc_cv_isl=yes
5924 else
5925 gcc_cv_isl=no
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5930 $as_echo "$gcc_cv_isl" >&6; }
5932 if test "${gcc_cv_isl}" = no ; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5934 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5938 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941 #include <isl/schedule.h>
5943 main ()
5945 isl_options_set_schedule_serialize_sccs (NULL, 0);
5947 return 0;
5949 _ACEOF
5950 if ac_fn_c_try_link "$LINENO"; then :
5951 ac_has_isl_options_set_schedule_serialize_sccs=yes
5952 else
5953 ac_has_isl_options_set_schedule_serialize_sccs=no
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5958 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5960 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5961 islver="0.15"
5965 CFLAGS=$_isl_saved_CFLAGS
5966 LDFLAGS=$_isl_saved_LDFLAGS
5967 LIBS=$_isl_saved_LIBS
5975 if test "x${with_isl}" = xno; then
5976 graphite_requested=no
5977 elif test "x${with_isl}" != x \
5978 || test "x${with_isl_include}" != x \
5979 || test "x${with_isl_lib}" != x ; then
5980 graphite_requested=yes
5981 else
5982 graphite_requested=no
5987 if test "${gcc_cv_isl}" = no ; then
5988 isllibs=
5989 islinc=
5992 if test "${graphite_requested}" = yes \
5993 && test "x${isllibs}" = x \
5994 && test "x${islinc}" = x ; then
5996 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6002 # If the isl check failed, disable builds of in-tree variant of isl
6003 if test "x$with_isl" = xno ||
6004 test "x$gcc_cv_isl" = xno; then
6005 noconfigdirs="$noconfigdirs isl"
6006 islinc=
6012 # Check for LTO support.
6013 # Check whether --enable-lto was given.
6014 if test "${enable_lto+set}" = set; then :
6015 enableval=$enable_lto; enable_lto=$enableval
6016 else
6017 enable_lto=yes; default_enable_lto=yes
6024 target_elf=no
6025 case $target in
6026 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6027 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6028 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
6029 nvptx-*-none)
6030 target_elf=no
6033 target_elf=yes
6035 esac
6037 if test $target_elf = yes; then :
6038 # ELF platforms build the lto-plugin always.
6039 build_lto_plugin=yes
6041 else
6042 if test x"$default_enable_lto" = x"yes" ; then
6043 case $target in
6044 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6045 # On other non-ELF platforms, LTO has yet to be validated.
6046 *) enable_lto=no ;;
6047 esac
6048 else
6049 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6050 # It would also be nice to check the binutils support, but we don't
6051 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6052 # warn during gcc/ subconfigure; unless you're bootstrapping with
6053 # -flto it won't be needed until after installation anyway.
6054 case $target in
6055 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6056 *) if test x"$enable_lto" = x"yes"; then
6057 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6060 esac
6062 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6063 # Build it unless LTO was explicitly disabled.
6064 case $target in
6065 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6066 *) ;;
6067 esac
6072 # Check whether --enable-linker-plugin-configure-flags was given.
6073 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6074 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6075 else
6076 extra_linker_plugin_configure_flags=
6080 # Check whether --enable-linker-plugin-flags was given.
6081 if test "${enable_linker_plugin_flags+set}" = set; then :
6082 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6083 else
6084 extra_linker_plugin_flags=
6090 # By default, C and C++ are the only stage 1 languages.
6091 stage1_languages=,c,
6093 # Target libraries that we bootstrap.
6094 bootstrap_target_libs=,target-libgcc,
6096 # Figure out what language subdirectories are present.
6097 # Look if the user specified --enable-languages="..."; if not, use
6098 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6099 # go away some day.
6100 # NB: embedded tabs in this IF block -- do not untabify
6101 if test -d ${srcdir}/gcc; then
6102 if test x"${enable_languages+set}" != xset; then
6103 if test x"${LANGUAGES+set}" = xset; then
6104 enable_languages="${LANGUAGES}"
6105 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6106 else
6107 enable_languages=all
6109 else
6110 if test x"${enable_languages}" = x ||
6111 test x"${enable_languages}" = xyes;
6112 then
6113 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6114 exit 1
6117 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6119 # 'f95' is the old name for the 'fortran' language. We issue a warning
6120 # and make the substitution.
6121 case ,${enable_languages}, in
6122 *,f95,*)
6123 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6124 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6126 esac
6128 # If bootstrapping, C++ must be enabled.
6129 case ",$enable_languages,:$enable_bootstrap" in
6130 *,c++,*:*) ;;
6131 *:yes)
6132 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6133 enable_languages="${enable_languages},c++"
6134 else
6135 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6138 esac
6140 # First scan to see if an enabled language requires some other language.
6141 # We assume that a given config-lang.in will list all the language
6142 # front ends it requires, even if some are required indirectly.
6143 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6144 case ${lang_frag} in
6145 ..) ;;
6146 # The odd quoting in the next line works around
6147 # an apparent bug in bash 1.12 on linux.
6148 ${srcdir}/gcc/[*]/config-lang.in) ;;
6150 # From the config-lang.in, get $language, $lang_requires, and
6151 # $lang_requires_boot_languages.
6152 language=
6153 lang_requires=
6154 lang_requires_boot_languages=
6155 . ${lang_frag}
6156 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6157 case ,${enable_languages}, in
6158 *,$other,*) ;;
6159 *,all,*) ;;
6160 *,$language,*)
6161 echo " \`$other' language required by \`$language'; enabling" 1>&2
6162 enable_languages="${enable_languages},${other}"
6164 esac
6165 done
6166 for other in ${lang_requires_boot_languages} ; do
6167 if test "$other" != "c"; then
6168 case ,${enable_stage1_languages}, in
6169 *,$other,*) ;;
6170 *,all,*) ;;
6172 case ,${enable_languages}, in
6173 *,$language,*)
6174 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6175 enable_stage1_languages="$enable_stage1_languages,${other}"
6177 esac
6179 esac
6181 done
6183 esac
6184 done
6186 new_enable_languages=,c,
6188 # If LTO is enabled, add the LTO front end.
6189 if test "$enable_lto" = "yes" ; then
6190 case ,${enable_languages}, in
6191 *,lto,*) ;;
6192 *) enable_languages="${enable_languages},lto" ;;
6193 esac
6194 if test "${build_lto_plugin}" = "yes" ; then
6195 configdirs="$configdirs lto-plugin"
6199 # If we're building an offloading compiler, add the LTO front end.
6200 if test x"$enable_as_accelerator_for" != x ; then
6201 case ,${enable_languages}, in
6202 *,lto,*) ;;
6203 *) enable_languages="${enable_languages},lto" ;;
6204 esac
6207 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6208 potential_languages=,c,
6210 enabled_target_libs=
6211 disabled_target_libs=
6213 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6214 case ${lang_frag} in
6215 ..) ;;
6216 # The odd quoting in the next line works around
6217 # an apparent bug in bash 1.12 on linux.
6218 ${srcdir}/gcc/[*]/config-lang.in) ;;
6220 # From the config-lang.in, get $language, $target_libs,
6221 # $lang_dirs, $boot_language, and $build_by_default
6222 language=
6223 target_libs=
6224 lang_dirs=
6225 subdir_requires=
6226 boot_language=no
6227 build_by_default=yes
6228 . ${lang_frag}
6229 if test x${language} = x; then
6230 echo "${lang_frag} doesn't set \$language." 1>&2
6231 exit 1
6234 if test "$language" = "c++"; then
6235 boot_language=yes
6238 add_this_lang=no
6239 case ,${enable_languages}, in
6240 *,${language},*)
6241 # Language was explicitly selected; include it
6242 # unless it is C, which is enabled by default.
6243 if test "$language" != "c"; then
6244 add_this_lang=yes
6247 *,all,*)
6248 # 'all' was selected, select it if it is a default language
6249 if test "$language" != "c"; then
6250 add_this_lang=${build_by_default}
6253 esac
6255 # Disable languages that need other directories if these aren't available.
6256 for i in $subdir_requires; do
6257 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6258 case ,${enable_languages}, in
6259 *,${language},*)
6260 # Specifically requested language; tell them.
6261 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6264 # Silently disable.
6265 add_this_lang=unsupported
6267 esac
6268 done
6270 # Disable Ada if no preexisting GNAT is available.
6271 case ,${enable_languages},:${language}:${have_gnat} in
6272 *,${language},*:ada:no)
6273 # Specifically requested language; tell them.
6274 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6276 *:ada:no)
6277 # Silently disable.
6278 add_this_lang=unsupported
6280 esac
6282 # Disable a language that is unsupported by the target.
6283 case " $unsupported_languages " in
6284 *" $language "*)
6285 add_this_lang=unsupported
6287 esac
6289 case $add_this_lang in
6290 unsupported)
6291 # Remove language-dependent dirs.
6292 disabled_target_libs="$disabled_target_libs $target_libs"
6293 noconfigdirs="$noconfigdirs $lang_dirs"
6296 # Remove language-dependent dirs; still show language as supported.
6297 disabled_target_libs="$disabled_target_libs $target_libs"
6298 noconfigdirs="$noconfigdirs $lang_dirs"
6299 potential_languages="${potential_languages}${language},"
6301 yes)
6302 new_enable_languages="${new_enable_languages}${language},"
6303 potential_languages="${potential_languages}${language},"
6304 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6305 enabled_target_libs="$enabled_target_libs $target_libs"
6306 case "${boot_language}:,$enable_stage1_languages," in
6307 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6308 # Add to (comma-separated) list of stage 1 languages.
6309 case ",$stage1_languages," in
6310 *,$language,* | ,yes, | ,all,) ;;
6311 *) stage1_languages="${stage1_languages}${language}," ;;
6312 esac
6313 # We need to bootstrap any supporting libraries.
6314 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6316 esac
6318 esac
6320 esac
6321 done
6323 # Add target libraries which are only needed for disabled languages
6324 # to noconfigdirs.
6325 if test -n "$disabled_target_libs"; then
6326 for dir in $disabled_target_libs; do
6327 case " $enabled_target_libs " in
6328 *" ${dir} "*) ;;
6329 *) noconfigdirs="$noconfigdirs $dir" ;;
6330 esac
6331 done
6334 # Check whether --enable-stage1-languages was given.
6335 if test "${enable_stage1_languages+set}" = set; then :
6336 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6337 ,no,|,,)
6338 # Set it to something that will have no effect in the loop below
6339 enable_stage1_languages=c ;;
6340 ,yes,)
6341 enable_stage1_languages=`echo $new_enable_languages | \
6342 sed -e "s/^,//" -e "s/,$//" ` ;;
6343 *,all,*)
6344 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6345 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6346 esac
6348 # Add "good" languages from enable_stage1_languages to stage1_languages,
6349 # while "bad" languages go in missing_languages. Leave no duplicates.
6350 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6351 case $potential_languages in
6352 *,$i,*)
6353 case $stage1_languages in
6354 *,$i,*) ;;
6355 *) stage1_languages="$stage1_languages$i," ;;
6356 esac ;;
6358 case $missing_languages in
6359 *,$i,*) ;;
6360 *) missing_languages="$missing_languages$i," ;;
6361 esac ;;
6362 esac
6363 done
6367 # Remove leading/trailing commas that were added for simplicity
6368 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6369 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6370 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6371 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6373 if test "x$missing_languages" != x; then
6374 as_fn_error "
6375 The following requested languages could not be built: ${missing_languages}
6376 Supported languages are: ${potential_languages}" "$LINENO" 5
6378 if test "x$new_enable_languages" != "x$enable_languages"; then
6379 echo The following languages will be built: ${new_enable_languages}
6380 enable_languages="$new_enable_languages"
6384 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6387 # Handle --disable-<component> generically.
6388 for dir in $configdirs $build_configdirs $target_configdirs ; do
6389 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6390 varname=`echo $dirname | sed -e s/+/_/g`
6391 if eval test x\${enable_${varname}} "=" xno ; then
6392 noconfigdirs="$noconfigdirs $dir"
6394 done
6396 # Check for Boehm's garbage collector
6397 # Check whether --enable-objc-gc was given.
6398 if test "${enable_objc_gc+set}" = set; then :
6399 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6400 *,objc,*:*:yes:*target-boehm-gc*)
6401 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6403 esac
6407 # Make sure we only build Boehm's garbage collector if required.
6408 case ,${enable_languages},:${enable_objc_gc} in
6409 *,objc,*:yes)
6410 # Keep target-boehm-gc if requested for Objective-C.
6413 # Otherwise remove target-boehm-gc.
6414 noconfigdirs="$noconfigdirs target-boehm-gc"
6416 esac
6418 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6419 case ,${enable_languages}, in
6420 *,c++,*)
6421 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6422 case "${noconfigdirs}" in
6423 *target-libstdc++-v3*)
6424 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6426 *) ;;
6427 esac
6430 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6432 esac
6434 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6435 # $build_configdirs and $target_configdirs.
6436 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6438 notsupp=""
6439 for dir in . $skipdirs $noconfigdirs ; do
6440 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6441 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6442 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6443 if test -r $srcdir/$dirname/configure ; then
6444 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6445 true
6446 else
6447 notsupp="$notsupp $dir"
6451 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6452 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6453 if test -r $srcdir/$dirname/configure ; then
6454 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6455 true
6456 else
6457 notsupp="$notsupp $dir"
6461 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6462 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6463 if test -r $srcdir/$dirname/configure ; then
6464 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6465 true
6466 else
6467 notsupp="$notsupp $dir"
6471 done
6473 # Quietly strip out all directories which aren't configurable in this tree.
6474 # This relies on all configurable subdirectories being autoconfiscated, which
6475 # is now the case.
6476 build_configdirs_all="$build_configdirs"
6477 build_configdirs=
6478 for i in ${build_configdirs_all} ; do
6479 j=`echo $i | sed -e s/build-//g`
6480 if test -f ${srcdir}/$j/configure ; then
6481 build_configdirs="${build_configdirs} $i"
6483 done
6485 configdirs_all="$configdirs"
6486 configdirs=
6487 for i in ${configdirs_all} ; do
6488 if test -f ${srcdir}/$i/configure ; then
6489 configdirs="${configdirs} $i"
6491 done
6493 target_configdirs_all="$target_configdirs"
6494 target_configdirs=
6495 for i in ${target_configdirs_all} ; do
6496 j=`echo $i | sed -e s/target-//g`
6497 if test -f ${srcdir}/$j/configure ; then
6498 target_configdirs="${target_configdirs} $i"
6500 done
6502 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6503 # so we have to add it after the preceding checks.
6504 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6505 then
6506 case " $configdirs " in
6507 *" libiberty "*)
6508 # If we can build libiberty, we can also build libiberty-linker-plugin.
6509 configdirs="$configdirs libiberty-linker-plugin"
6510 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6511 --with-libiberty=../libiberty-linker-plugin";;
6513 as_fn_error "libiberty missing" "$LINENO" 5;;
6514 esac
6517 # Sometimes we have special requirements for the host libiberty.
6518 extra_host_libiberty_configure_flags=
6519 extra_host_zlib_configure_flags=
6520 case " $configdirs " in
6521 *" lto-plugin "* | *" libcc1 "*)
6522 # When these are to be built as shared libraries, the same applies to
6523 # libiberty.
6524 extra_host_libiberty_configure_flags=--enable-shared
6526 *" bfd "*)
6527 # When bfd is to be built as a shared library, the same applies to
6528 # zlib.
6529 if test "$enable_shared" = "yes"; then
6530 extra_host_zlib_configure_flags=--enable-host-shared
6533 esac
6537 # Produce a warning message for the subdirs we can't configure.
6538 # This isn't especially interesting in the Cygnus tree, but in the individual
6539 # FSF releases, it's important to let people know when their machine isn't
6540 # supported by the one or two programs in a package.
6542 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6543 # If $appdirs is non-empty, at least one of those directories must still
6544 # be configured, or we error out. (E.g., if the gas release supports a
6545 # specified target in some subdirs but not the gas subdir, we shouldn't
6546 # pretend that all is well.)
6547 if test -n "$appdirs" ; then
6548 for dir in $appdirs ; do
6549 if test -r $dir/Makefile.in ; then
6550 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6551 appdirs=""
6552 break
6554 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6555 appdirs=""
6556 break
6559 done
6560 if test -n "$appdirs" ; then
6561 echo "*** This configuration is not supported by this package." 1>&2
6562 exit 1
6565 # Okay, some application will build, or we don't care to check. Still
6566 # notify of subdirs not getting built.
6567 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6568 echo " ${notsupp}" 1>&2
6569 echo " (Any other directories should still work fine.)" 1>&2
6572 case "$host" in
6573 *msdosdjgpp*)
6574 enable_gdbtk=no ;;
6575 esac
6577 # To find our prefix, in gcc_cv_tool_prefix.
6579 # The user is always right.
6580 if test "${PATH_SEPARATOR+set}" != set; then
6581 echo "#! /bin/sh" >conf$$.sh
6582 echo "exit 0" >>conf$$.sh
6583 chmod +x conf$$.sh
6584 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6585 PATH_SEPARATOR=';'
6586 else
6587 PATH_SEPARATOR=:
6589 rm -f conf$$.sh
6594 if test "x$exec_prefix" = xNONE; then
6595 if test "x$prefix" = xNONE; then
6596 gcc_cv_tool_prefix=$ac_default_prefix
6597 else
6598 gcc_cv_tool_prefix=$prefix
6600 else
6601 gcc_cv_tool_prefix=$exec_prefix
6604 # If there is no compiler in the tree, use the PATH only. In any
6605 # case, if there is no compiler in the tree nobody should use
6606 # AS_FOR_TARGET and LD_FOR_TARGET.
6607 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6608 gcc_version=`cat $srcdir/gcc/BASE-VER`
6609 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6610 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6611 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6612 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6613 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6614 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6615 else
6616 gcc_cv_tool_dirs=
6619 if test x$build = x$target && test -n "$md_exec_prefix"; then
6620 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6625 copy_dirs=
6628 # Check whether --with-build-sysroot was given.
6629 if test "${with_build_sysroot+set}" = set; then :
6630 withval=$with_build_sysroot; if test x"$withval" != x ; then
6631 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6633 else
6634 SYSROOT_CFLAGS_FOR_TARGET=
6640 # Check whether --with-debug-prefix-map was given.
6641 if test "${with_debug_prefix_map+set}" = set; then :
6642 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6643 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6644 for debug_map in $withval; do
6645 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6646 done
6648 else
6649 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6654 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6655 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6656 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6657 # We want to ensure that TARGET libraries (which we know are built with
6658 # gcc) are built with "-O2 -g", so include those options when setting
6659 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6660 if test "x$CFLAGS_FOR_TARGET" = x; then
6661 if test "x${is_cross_compiler}" = xyes; then
6662 CFLAGS_FOR_TARGET="-g -O2"
6663 else
6664 CFLAGS_FOR_TARGET=$CFLAGS
6665 case " $CFLAGS " in
6666 *" -O2 "*) ;;
6667 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6668 esac
6669 case " $CFLAGS " in
6670 *" -g "* | *" -g3 "*) ;;
6671 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6672 esac
6677 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6678 if test "x${is_cross_compiler}" = xyes; then
6679 CXXFLAGS_FOR_TARGET="-g -O2"
6680 else
6681 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6682 case " $CXXFLAGS " in
6683 *" -O2 "*) ;;
6684 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6685 esac
6686 case " $CXXFLAGS " in
6687 *" -g "* | *" -g3 "*) ;;
6688 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6689 esac
6696 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6697 # the named directory are copied to $(tooldir)/sys-include.
6698 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6699 if test x${is_cross_compiler} = xno ; then
6700 echo 1>&2 '***' --with-headers is only supported when cross compiling
6701 exit 1
6703 if test x"${with_headers}" != xyes ; then
6704 x=${gcc_cv_tool_prefix}
6705 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6709 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6710 # the name directories are copied to $(tooldir)/lib. Multiple directories
6711 # are permitted.
6712 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6713 if test x${is_cross_compiler} = xno ; then
6714 echo 1>&2 '***' --with-libs is only supported when cross compiling
6715 exit 1
6717 if test x"${with_libs}" != xyes ; then
6718 # Copy the libraries in reverse order, so that files in the first named
6719 # library override files in subsequent libraries.
6720 x=${gcc_cv_tool_prefix}
6721 for l in ${with_libs}; do
6722 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6723 done
6727 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6729 # This is done by determining whether or not the appropriate directory
6730 # is available, and by checking whether or not specific configurations
6731 # have requested that this magic not happen.
6733 # The command line options always override the explicit settings in
6734 # configure.ac, and the settings in configure.ac override this magic.
6736 # If the default for a toolchain is to use GNU as and ld, and you don't
6737 # want to do that, then you should use the --without-gnu-as and
6738 # --without-gnu-ld options for the configure script. Similarly, if
6739 # the default is to use the included zlib and you don't want to do that,
6740 # you should use the --with-system-zlib option for the configure script.
6742 if test x${use_gnu_as} = x &&
6743 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6744 with_gnu_as=yes
6745 extra_host_args="$extra_host_args --with-gnu-as"
6748 if test x${use_gnu_ld} = x &&
6749 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6750 with_gnu_ld=yes
6751 extra_host_args="$extra_host_args --with-gnu-ld"
6754 if test x${use_included_zlib} = x &&
6755 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6757 else
6758 with_system_zlib=yes
6759 extra_host_args="$extra_host_args --with-system-zlib"
6762 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6763 # can detect this case.
6765 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6766 with_newlib=yes
6767 extra_host_args="$extra_host_args --with-newlib"
6770 # Handle ${copy_dirs}
6771 set fnord ${copy_dirs}
6772 shift
6773 while test $# != 0 ; do
6774 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6776 else
6777 echo Copying $1 to $2
6779 # Use the install script to create the directory and all required
6780 # parent directories.
6781 if test -d $2 ; then
6783 else
6784 echo >config.temp
6785 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6788 # Copy the directory, assuming we have tar.
6789 # FIXME: Should we use B in the second tar? Not all systems support it.
6790 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6792 # It is the responsibility of the user to correctly adjust all
6793 # symlinks. If somebody can figure out how to handle them correctly
6794 # here, feel free to add the code.
6796 echo $1 > $2/COPIED
6798 shift; shift
6799 done
6801 # Determine a target-dependent exec_prefix that the installed
6802 # gcc will search in. Keep this list sorted by triplet, with
6803 # the *-*-osname triplets last.
6804 md_exec_prefix=
6805 case "${target}" in
6806 i[34567]86-pc-msdosdjgpp*)
6807 md_exec_prefix=/dev/env/DJDIR/bin
6809 *-*-hpux* | \
6810 *-*-nto-qnx* | \
6811 *-*-solaris2*)
6812 md_exec_prefix=/usr/ccs/bin
6814 esac
6816 extra_arflags_for_target=
6817 extra_nmflags_for_target=
6818 extra_ranlibflags_for_target=
6819 target_makefile_frag=/dev/null
6820 case "${target}" in
6821 spu-*-*)
6822 target_makefile_frag="config/mt-spu"
6824 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6825 target_makefile_frag="config/mt-sde"
6827 mipsisa*-*-elfoabi*)
6828 target_makefile_frag="config/mt-mips-elfoabi"
6830 mips*-*-*linux* | mips*-*-gnu*)
6831 target_makefile_frag="config/mt-mips-gnu"
6833 nios2-*-elf*)
6834 target_makefile_frag="config/mt-nios2-elf"
6836 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6837 target_makefile_frag="config/mt-gnu"
6839 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6840 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6841 # commands to handle both 32-bit and 64-bit objects. These flags are
6842 # harmless if we're using GNU nm or ar.
6843 extra_arflags_for_target=" -X32_64"
6844 extra_nmflags_for_target=" -B -X32_64"
6846 esac
6848 alphaieee_frag=/dev/null
6849 case $target in
6850 alpha*-*-*)
6851 # This just makes sure to use the -mieee option to build target libs.
6852 # This should probably be set individually by each library.
6853 alphaieee_frag="config/mt-alphaieee"
6855 esac
6857 # If --enable-target-optspace always use -Os instead of -O2 to build
6858 # the target libraries, similarly if it is not specified, use -Os
6859 # on selected platforms.
6860 ospace_frag=/dev/null
6861 case "${enable_target_optspace}:${target}" in
6862 yes:*)
6863 ospace_frag="config/mt-ospace"
6865 :d30v-*)
6866 ospace_frag="config/mt-d30v"
6868 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6869 ospace_frag="config/mt-ospace"
6871 no:* | :*)
6874 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6876 esac
6878 # Some systems (e.g., one of the i386-aix systems the gas testers are
6879 # using) don't handle "\$" correctly, so don't use it here.
6880 tooldir='${exec_prefix}'/${target_noncanonical}
6881 build_tooldir=${tooldir}
6883 # Create a .gdbinit file which runs the one in srcdir
6884 # and tells GDB to look there for source files.
6886 if test -r ${srcdir}/.gdbinit ; then
6887 case ${srcdir} in
6888 .) ;;
6889 *) cat > ./.gdbinit <<EOF
6890 # ${NO_EDIT}
6891 dir ${srcdir}
6892 dir .
6893 source ${srcdir}/.gdbinit
6896 esac
6899 # Make sure that the compiler is able to generate an executable. If it
6900 # can't, we are probably in trouble. We don't care whether we can run the
6901 # executable--we might be using a cross compiler--we only care whether it
6902 # can be created. At this point the main configure script has set CC.
6903 we_are_ok=no
6904 echo "int main () { return 0; }" > conftest.c
6905 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6906 if test $? = 0 ; then
6907 if test -s conftest || test -s conftest.exe ; then
6908 we_are_ok=yes
6911 case $we_are_ok in
6913 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6914 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6915 rm -f conftest*
6916 exit 1
6918 esac
6919 rm -f conftest*
6921 # Decide which environment variable is used to find dynamic libraries.
6922 case "${host}" in
6923 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6924 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6925 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6926 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6927 esac
6929 # On systems where the dynamic library environment variable is PATH,
6930 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6931 # built executables to PATH.
6932 if test "$RPATH_ENVVAR" = PATH; then
6933 GCC_SHLIB_SUBDIR=/shlib
6934 else
6935 GCC_SHLIB_SUBDIR=
6938 # Adjust the toplevel makefile according to whether bootstrap was selected.
6939 case $enable_bootstrap in
6940 yes)
6941 bootstrap_suffix=bootstrap
6942 BUILD_CONFIG=bootstrap-debug
6945 bootstrap_suffix=no-bootstrap
6946 BUILD_CONFIG=
6948 esac
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6951 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6954 # Check whether --with-build-config was given.
6955 if test "${with_build_config+set}" = set; then :
6956 withval=$with_build_config; case $with_build_config in
6957 yes) with_build_config= ;;
6958 no) with_build_config= BUILD_CONFIG= ;;
6959 esac
6963 if test "x${with_build_config}" != x; then
6964 BUILD_CONFIG=$with_build_config
6965 else
6966 case $BUILD_CONFIG in
6967 bootstrap-debug)
6968 if echo "int f (void) { return 0; }" > conftest.c &&
6969 ${CC} -c conftest.c &&
6970 mv conftest.o conftest.o.g0 &&
6971 ${CC} -c -g conftest.c &&
6972 mv conftest.o conftest.o.g &&
6973 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6975 else
6976 BUILD_CONFIG=
6978 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6980 esac
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6983 $as_echo "$BUILD_CONFIG" >&6; }
6986 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6988 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
6989 # Check whether --enable-vtable-verify was given.
6990 if test "${enable_vtable_verify+set}" = set; then :
6991 enableval=$enable_vtable_verify; case "$enableval" in
6992 yes) enable_vtable_verify=yes ;;
6993 no) enable_vtable_verify=no ;;
6994 *) enable_vtable_verify=no;;
6995 esac
6996 else
6997 enable_vtable_verify=no
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7001 $as_echo "$enable_vtable_verify" >&6; }
7003 # Record target_configdirs and the configure arguments for target and
7004 # build configuration in Makefile.
7005 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7006 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7007 bootstrap_fixincludes=no
7009 # If we are building libgomp, bootstrap it.
7010 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7011 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7014 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7015 # or bootstrap-ubsan, bootstrap it.
7016 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7017 case "$BUILD_CONFIG" in
7018 *bootstrap-asan* | *bootstrap-ubsan* )
7019 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7020 bootstrap_fixincludes=yes
7022 esac
7025 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7026 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7027 test "$enable_vtable_verify" != no; then
7028 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7031 # If we are building libmpx, bootstrap it.
7032 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7033 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7036 # Determine whether gdb needs tk/tcl or not.
7037 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7038 # and in that case we want gdb to be built without tk. Ugh!
7039 # In fact I believe gdb is the *only* package directly dependent on tk,
7040 # so we should be able to put the 'maybe's in unconditionally and
7041 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7042 # 100% sure that that's safe though.
7044 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7045 case "$enable_gdbtk" in
7047 GDB_TK="" ;;
7048 yes)
7049 GDB_TK="${gdb_tk}" ;;
7051 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7052 # distro. Eventually someone will fix this and move Insight, nee
7053 # gdbtk to a separate directory.
7054 if test -d ${srcdir}/gdb/gdbtk ; then
7055 GDB_TK="${gdb_tk}"
7056 else
7057 GDB_TK=""
7060 esac
7061 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7062 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7064 # Strip out unwanted targets.
7066 # While at that, we remove Makefiles if we were started for recursive
7067 # configuration, so that the top-level Makefile reconfigures them,
7068 # like we used to do when configure itself was recursive.
7070 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7071 # but now we're fixing up the Makefile ourselves with the additional
7072 # commands passed to AC_CONFIG_FILES. Use separate variables
7073 # extrasub-{build,host,target} not because there is any reason to split
7074 # the substitutions up that way, but only to remain below the limit of
7075 # 99 commands in a script, for HP-UX sed.
7076 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7078 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7079 yes:yes:*\ gold\ *:*,c++,*) ;;
7080 yes:yes:*\ gold\ *:*)
7081 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7083 esac
7085 extrasub_build=
7086 for module in ${build_configdirs} ; do
7087 if test -z "${no_recursion}" \
7088 && test -f ${build_subdir}/${module}/Makefile; then
7089 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7090 rm -f ${build_subdir}/${module}/Makefile
7092 extrasub_build="$extrasub_build
7093 /^@if build-$module\$/d
7094 /^@endif build-$module\$/d
7095 /^@if build-$module-$bootstrap_suffix\$/d
7096 /^@endif build-$module-$bootstrap_suffix\$/d"
7097 done
7098 extrasub_host=
7099 for module in ${configdirs} ; do
7100 if test -z "${no_recursion}"; then
7101 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7102 if test -f ${file}; then
7103 echo 1>&2 "*** removing ${file} to force reconfigure"
7104 rm -f ${file}
7106 done
7108 case ${module},${bootstrap_fixincludes} in
7109 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7110 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7111 esac
7112 extrasub_host="$extrasub_host
7113 /^@if $module\$/d
7114 /^@endif $module\$/d
7115 /^@if $module-$host_bootstrap_suffix\$/d
7116 /^@endif $module-$host_bootstrap_suffix\$/d"
7117 done
7118 extrasub_target=
7119 for module in ${target_configdirs} ; do
7120 if test -z "${no_recursion}" \
7121 && test -f ${target_subdir}/${module}/Makefile; then
7122 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7123 rm -f ${target_subdir}/${module}/Makefile
7126 # We only bootstrap target libraries listed in bootstrap_target_libs.
7127 case $bootstrap_target_libs in
7128 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7129 *) target_bootstrap_suffix=no-bootstrap ;;
7130 esac
7132 extrasub_target="$extrasub_target
7133 /^@if target-$module\$/d
7134 /^@endif target-$module\$/d
7135 /^@if target-$module-$target_bootstrap_suffix\$/d
7136 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7137 done
7139 # Do the final fixup along with target modules.
7140 extrasub_target="$extrasub_target
7141 /^@if /,/^@endif /d"
7143 # Create the serialization dependencies. This uses a temporary file.
7145 # Check whether --enable-serial-configure was given.
7146 if test "${enable_serial_configure+set}" = set; then :
7147 enableval=$enable_serial_configure;
7151 case ${enable_serial_configure} in
7152 yes)
7153 enable_serial_build_configure=yes
7154 enable_serial_host_configure=yes
7155 enable_serial_target_configure=yes
7157 esac
7159 # These force 'configure's to be done one at a time, to avoid problems
7160 # with contention over a shared config.cache.
7161 rm -f serdep.tmp
7162 echo '# serdep.tmp' > serdep.tmp
7163 olditem=
7164 test "x${enable_serial_build_configure}" = xyes &&
7165 for item in ${build_configdirs} ; do
7166 case ${olditem} in
7167 "") ;;
7168 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7169 esac
7170 olditem=${item}
7171 done
7172 olditem=
7173 test "x${enable_serial_host_configure}" = xyes &&
7174 for item in ${configdirs} ; do
7175 case ${olditem} in
7176 "") ;;
7177 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7178 esac
7179 olditem=${item}
7180 done
7181 olditem=
7182 test "x${enable_serial_target_configure}" = xyes &&
7183 for item in ${target_configdirs} ; do
7184 case ${olditem} in
7185 "") ;;
7186 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7187 esac
7188 olditem=${item}
7189 done
7190 serialization_dependencies=serdep.tmp
7193 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7194 # target, nonopt, and variable assignments. These are the ones we
7195 # might not want to pass down to subconfigures. The exception being
7196 # --cache-file=/dev/null, which is used to turn off the use of cache
7197 # files altogether, and which should be passed on to subconfigures.
7198 # Also strip program-prefix, program-suffix, and program-transform-name,
7199 # so that we can pass down a consistent program-transform-name.
7200 baseargs=
7201 tbaseargs=
7202 keep_next=no
7203 skip_next=no
7204 eval "set -- $ac_configure_args"
7205 for ac_arg
7207 if test X"$skip_next" = X"yes"; then
7208 skip_next=no
7209 continue
7211 if test X"$keep_next" = X"yes"; then
7212 case $ac_arg in
7213 *\'*)
7214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7215 esac
7216 baseargs="$baseargs '$ac_arg'"
7217 tbaseargs="$tbaseargs '$ac_arg'"
7218 keep_next=no
7219 continue
7222 # Handle separated arguments. Based on the logic generated by
7223 # autoconf 2.59.
7224 case $ac_arg in
7225 *=* | --config-cache | -C | -disable-* | --disable-* \
7226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7228 | -with-* | --with-* | -without-* | --without-* | --x)
7229 separate_arg=no
7232 separate_arg=yes
7235 separate_arg=no
7237 esac
7239 skip_targ=no
7240 case $ac_arg in
7242 --with-* | --without-*)
7243 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7245 case $libopt in
7246 *[-_]include)
7247 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7249 *[-_]lib)
7250 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7253 lib=$libopt
7255 esac
7258 case $lib in
7259 mpc | mpfr | gmp | isl)
7260 # If we're processing --with-$lib, --with-$lib-include or
7261 # --with-$lib-lib, for one of the libs above, and target is
7262 # different from host, don't pass the current argument to any
7263 # target library's configure.
7264 if test x$is_cross_compiler = xyes; then
7265 skip_targ=yes
7268 esac
7270 esac
7272 case "$ac_arg" in
7273 --cache-file=/dev/null | \
7274 -cache-file=/dev/null )
7275 # Handled here to avoid the test to skip args below.
7276 baseargs="$baseargs '$ac_arg'"
7277 tbaseargs="$tbaseargs '$ac_arg'"
7278 # Assert: $separate_arg should always be no.
7279 keep_next=$separate_arg
7281 --no*)
7282 continue
7284 --c* | \
7285 --sr* | \
7286 --ho* | \
7287 --bu* | \
7288 --t* | \
7289 --program-* | \
7290 -cache_file* | \
7291 -srcdir* | \
7292 -host* | \
7293 -build* | \
7294 -target* | \
7295 -program-prefix* | \
7296 -program-suffix* | \
7297 -program-transform-name* )
7298 skip_next=$separate_arg
7299 continue
7302 # An option. Add it.
7303 case $ac_arg in
7304 *\'*)
7305 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7306 esac
7307 baseargs="$baseargs '$ac_arg'"
7308 if test X"$skip_targ" = Xno; then
7309 tbaseargs="$tbaseargs '$ac_arg'"
7311 keep_next=$separate_arg
7314 # Either a variable assignment, or a nonopt (triplet). Don't
7315 # pass it down; let the Makefile handle this.
7316 continue
7318 esac
7319 done
7320 # Remove the initial space we just introduced and, as these will be
7321 # expanded by make, quote '$'.
7322 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7324 # Add in --program-transform-name, after --program-prefix and
7325 # --program-suffix have been applied to it. Autoconf has already
7326 # doubled dollar signs and backslashes in program_transform_name; we want
7327 # the backslashes un-doubled, and then the entire thing wrapped in single
7328 # quotes, because this will be expanded first by make and then by the shell.
7329 # Also, because we want to override the logic in subdir configure scripts to
7330 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7331 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7332 ${program_transform_name}
7333 EOF_SED
7334 gcc_transform_name=`cat conftestsed.out`
7335 rm -f conftestsed.out
7336 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7337 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7338 if test "$silent" = yes; then
7339 baseargs="$baseargs --silent"
7340 tbaseargs="$tbaseargs --silent"
7342 baseargs="$baseargs --disable-option-checking"
7343 tbaseargs="$tbaseargs --disable-option-checking"
7345 # Record and document user additions to sub configure arguments.
7350 # For the build-side libraries, we just need to pretend we're native,
7351 # and not use the same cache file. Multilibs are neither needed nor
7352 # desired. We can't even use the same cache file for all build-side
7353 # libraries, as they're compiled differently; some with C, some with
7354 # C++ or with different feature-enabling options.
7355 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7357 # For host modules, accept cache file option, or specification as blank.
7358 case "${cache_file}" in
7359 "") # empty
7360 cache_file_option="" ;;
7361 /* | [A-Za-z]:[\\/]* ) # absolute path
7362 cache_file_option="--cache-file=${cache_file}" ;;
7363 *) # relative path
7364 cache_file_option="--cache-file=../${cache_file}" ;;
7365 esac
7367 # Host dirs don't like to share a cache file either, horribly enough.
7368 # This seems to be due to autoconf 2.5x stupidity.
7369 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7371 target_configargs="$target_configargs ${tbaseargs}"
7373 # Passing a --with-cross-host argument lets the target libraries know
7374 # whether they are being built with a cross-compiler or being built
7375 # native. However, it would be better to use other mechanisms to make the
7376 # sorts of decisions they want to make on this basis. Please consider
7377 # this option to be deprecated. FIXME.
7378 if test x${is_cross_compiler} = xyes ; then
7379 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7382 # Special user-friendly check for native x86_64-linux build, if
7383 # multilib is not explicitly enabled.
7384 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7385 x86_64-*linux*:yes:$build:$build:)
7386 # Make sure we have a development environment that handles 32-bit
7387 dev64=no
7388 echo "int main () { return 0; }" > conftest.c
7389 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7390 if test $? = 0 ; then
7391 if test -s conftest || test -s conftest.exe ; then
7392 dev64=yes
7395 rm -f conftest*
7396 if test x${dev64} != xyes ; then
7397 as_fn_error "I suspect your system does not have 32-bit development 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
7400 esac
7402 # Default to --enable-multilib.
7403 if test x${enable_multilib} = x ; then
7404 target_configargs="--enable-multilib ${target_configargs}"
7407 # Pass --with-newlib if appropriate. Note that target_configdirs has
7408 # changed from the earlier setting of with_newlib.
7409 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7410 target_configargs="--with-newlib ${target_configargs}"
7413 # Different target subdirs use different values of certain variables
7414 # (notably CXX). Worse, multilibs use *lots* of different values.
7415 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7416 # it doesn't automatically accept command-line overrides of them.
7417 # This means it's not safe for target subdirs to share a cache file,
7418 # which is disgusting, but there you have it. Hopefully this can be
7419 # fixed in future. It's still worthwhile to use a cache file for each
7420 # directory. I think.
7422 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7423 # We need to pass --target, as newer autoconf's requires consistency
7424 # for target_alias and gcc doesn't manage it consistently.
7425 target_configargs="--cache-file=./config.cache ${target_configargs}"
7427 FLAGS_FOR_TARGET=
7428 case " $target_configdirs " in
7429 *" newlib "*)
7430 case " $target_configargs " in
7431 *" --with-newlib "*)
7432 case "$target" in
7433 *-cygwin*)
7434 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7436 esac
7438 # If we're not building GCC, don't discard standard headers.
7439 if test -d ${srcdir}/gcc; then
7440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7442 if test "${build}" != "${host}"; then
7443 # On Canadian crosses, CC_FOR_TARGET will have already been set
7444 # by `configure', so we won't have an opportunity to add -Bgcc/
7445 # to it. This is right: we don't want to search that directory
7446 # for binaries, but we want the header files in there, so add
7447 # them explicitly.
7448 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7450 # Someone might think of using the pre-installed headers on
7451 # Canadian crosses, in case the installed compiler is not fully
7452 # compatible with the compiler being built. In this case, it
7453 # would be better to flag an error than risking having
7454 # incompatible object files being constructed. We can't
7455 # guarantee that an error will be flagged, but let's hope the
7456 # compiler will do it, when presented with incompatible header
7457 # files.
7461 case "${target}-${is_cross_compiler}" in
7462 i[3456789]86-*-linux*-no)
7463 # Here host == target, so we don't need to build gcc,
7464 # so we don't want to discard standard headers.
7465 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7468 # If we're building newlib, use its generic headers last, but search
7469 # for any libc-related directories first (so make it the last -B
7470 # switch).
7471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7473 # If we're building libgloss, find the startup file, simulator library
7474 # and linker script.
7475 case " $target_configdirs " in
7476 *" libgloss "*)
7477 # Look for startup file, simulator library and maybe linker script.
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7479 # Look for libnosys.a in case the target needs it.
7480 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7481 # Most targets have the linker script in the source directory.
7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7484 esac
7486 esac
7488 esac
7490 esac
7492 case "$target" in
7493 x86_64-*mingw* | *-w64-mingw*)
7494 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7495 # however, use a symlink named 'mingw' in ${prefix} .
7496 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7498 *-mingw*)
7499 # MinGW can't be handled as Cygwin above since it does not use newlib.
7500 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'
7502 esac
7504 # Allow the user to override the flags for
7505 # our build compiler if desired.
7506 if test x"${build}" = x"${host}" ; then
7507 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7508 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7509 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7512 # On Canadian crosses, we'll be searching the right directories for
7513 # the previously-installed cross compiler, so don't bother to add
7514 # flags for directories within the install tree of the compiler
7515 # being built; programs in there won't even run.
7516 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7517 # Search for pre-installed headers if nothing else fits.
7518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7521 if test "x${use_gnu_ld}" = x &&
7522 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7523 # Arrange for us to find uninstalled linker scripts.
7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7527 # Search for other target-specific linker scripts and such.
7528 case "${target}" in
7529 mep*)
7530 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7532 esac
7534 # Makefile fragments.
7535 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7537 eval fragval=\$$frag
7538 if test $fragval != /dev/null; then
7539 eval $frag=${srcdir}/$fragval
7541 done
7547 # Miscellanea: directories, flags, etc.
7556 # Build module lists & subconfigure args.
7560 # Host module lists & subconfigure args.
7565 # Target module lists & subconfigure args.
7569 # Build tools.
7587 # Generate default definitions for YACC, M4, LEX and other programs that run
7588 # on the build machine. These are used if the Makefile can't locate these
7589 # programs in objdir.
7590 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7592 for ac_prog in 'bison -y' byacc yacc
7594 # Extract the first word of "$ac_prog", so it can be a program name with args.
7595 set dummy $ac_prog; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if test "${ac_cv_prog_YACC+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 if test -n "$YACC"; then
7602 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_YACC="$ac_prog"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7615 done
7616 done
7617 IFS=$as_save_IFS
7621 YACC=$ac_cv_prog_YACC
7622 if test -n "$YACC"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7624 $as_echo "$YACC" >&6; }
7625 else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7631 test -n "$YACC" && break
7632 done
7633 test -n "$YACC" || YACC="$MISSING bison -y"
7635 case " $build_configdirs " in
7636 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7637 esac
7639 for ac_prog in bison
7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
7642 set dummy $ac_prog; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_prog_BISON+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 if test -n "$BISON"; then
7649 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_BISON="$ac_prog"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 break 2
7662 done
7663 done
7664 IFS=$as_save_IFS
7668 BISON=$ac_cv_prog_BISON
7669 if test -n "$BISON"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7671 $as_echo "$BISON" >&6; }
7672 else
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7678 test -n "$BISON" && break
7679 done
7680 test -n "$BISON" || BISON="$MISSING bison"
7682 case " $build_configdirs " in
7683 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7684 esac
7686 for ac_prog in gm4 gnum4 m4
7688 # Extract the first word of "$ac_prog", so it can be a program name with args.
7689 set dummy $ac_prog; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if test "${ac_cv_prog_M4+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 if test -n "$M4"; then
7696 ac_cv_prog_M4="$M4" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705 ac_cv_prog_M4="$ac_prog"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7709 done
7710 done
7711 IFS=$as_save_IFS
7715 M4=$ac_cv_prog_M4
7716 if test -n "$M4"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7718 $as_echo "$M4" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7725 test -n "$M4" && break
7726 done
7727 test -n "$M4" || M4="$MISSING m4"
7729 case " $build_configdirs " in
7730 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7731 esac
7733 for ac_prog in flex lex
7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
7736 set dummy $ac_prog; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_LEX+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$LEX"; then
7743 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_LEX="$ac_prog"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7758 IFS=$as_save_IFS
7762 LEX=$ac_cv_prog_LEX
7763 if test -n "$LEX"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7765 $as_echo "$LEX" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7772 test -n "$LEX" && break
7773 done
7774 test -n "$LEX" || LEX="$MISSING flex"
7776 case " $build_configdirs " in
7777 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7778 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7779 esac
7781 for ac_prog in flex
7783 # Extract the first word of "$ac_prog", so it can be a program name with args.
7784 set dummy $ac_prog; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if test "${ac_cv_prog_FLEX+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -n "$FLEX"; then
7791 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_prog_FLEX="$ac_prog"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7810 FLEX=$ac_cv_prog_FLEX
7811 if test -n "$FLEX"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7813 $as_echo "$FLEX" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7820 test -n "$FLEX" && break
7821 done
7822 test -n "$FLEX" || FLEX="$MISSING flex"
7824 case " $build_configdirs " in
7825 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7826 esac
7828 for ac_prog in makeinfo
7830 # Extract the first word of "$ac_prog", so it can be a program name with args.
7831 set dummy $ac_prog; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$MAKEINFO"; then
7838 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_MAKEINFO="$ac_prog"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7851 done
7852 done
7853 IFS=$as_save_IFS
7857 MAKEINFO=$ac_cv_prog_MAKEINFO
7858 if test -n "$MAKEINFO"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7860 $as_echo "$MAKEINFO" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7867 test -n "$MAKEINFO" && break
7868 done
7869 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7871 case " $build_configdirs " in
7872 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7875 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7876 # higher, else we use the "missing" dummy.
7877 if ${MAKEINFO} --version \
7878 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7880 else
7881 MAKEINFO="$MISSING makeinfo"
7885 esac
7887 # FIXME: expect and dejagnu may become build tools?
7889 for ac_prog in expect
7891 # Extract the first word of "$ac_prog", so it can be a program name with args.
7892 set dummy $ac_prog; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 if test -n "$EXPECT"; then
7899 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7908 ac_cv_prog_EXPECT="$ac_prog"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7912 done
7913 done
7914 IFS=$as_save_IFS
7918 EXPECT=$ac_cv_prog_EXPECT
7919 if test -n "$EXPECT"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7921 $as_echo "$EXPECT" >&6; }
7922 else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7928 test -n "$EXPECT" && break
7929 done
7930 test -n "$EXPECT" || EXPECT="expect"
7932 case " $configdirs " in
7933 *" expect "*)
7934 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7936 esac
7938 for ac_prog in runtest
7940 # Extract the first word of "$ac_prog", so it can be a program name with args.
7941 set dummy $ac_prog; ac_word=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 if test -n "$RUNTEST"; then
7948 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_prog_RUNTEST="$ac_prog"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7961 done
7962 done
7963 IFS=$as_save_IFS
7967 RUNTEST=$ac_cv_prog_RUNTEST
7968 if test -n "$RUNTEST"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7970 $as_echo "$RUNTEST" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7977 test -n "$RUNTEST" && break
7978 done
7979 test -n "$RUNTEST" || RUNTEST="runtest"
7981 case " $configdirs " in
7982 *" dejagnu "*)
7983 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7985 esac
7988 # Host tools.
7989 ncn_tool_prefix=
7990 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7991 ncn_target_tool_prefix=
7992 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7996 if test -n "$AR"; then
7997 ac_cv_prog_AR=$AR
7998 elif test -n "$ac_cv_prog_AR"; then
7999 AR=$ac_cv_prog_AR
8002 if test -n "$ac_cv_prog_AR"; then
8003 for ncn_progname in ar; do
8004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8005 set dummy ${ncn_progname}; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if test "${ac_cv_prog_AR+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$AR"; then
8012 ac_cv_prog_AR="$AR" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021 ac_cv_prog_AR="${ncn_progname}"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8025 done
8026 done
8027 IFS=$as_save_IFS
8031 AR=$ac_cv_prog_AR
8032 if test -n "$AR"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8034 $as_echo "$AR" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8041 done
8044 for ncn_progname in ar; do
8045 if test -n "$ncn_tool_prefix"; then
8046 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8047 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if test "${ac_cv_prog_AR+set}" = set; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 if test -n "$AR"; then
8054 ac_cv_prog_AR="$AR" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8067 done
8068 done
8069 IFS=$as_save_IFS
8073 AR=$ac_cv_prog_AR
8074 if test -n "$AR"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8076 $as_echo "$AR" >&6; }
8077 else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8084 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086 set dummy ${ncn_progname}; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if test "${ac_cv_prog_AR+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_AR="${ncn_progname}"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8106 done
8107 done
8108 IFS=$as_save_IFS
8112 AR=$ac_cv_prog_AR
8113 if test -n "$AR"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8115 $as_echo "$AR" >&6; }
8116 else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8123 test -n "$ac_cv_prog_AR" && break
8124 done
8126 if test -z "$ac_cv_prog_AR" ; then
8127 set dummy ar
8128 if test $build = $host ; then
8129 AR="$2"
8130 else
8131 AR="${ncn_tool_prefix}$2"
8137 if test -n "$AS"; then
8138 ac_cv_prog_AS=$AS
8139 elif test -n "$ac_cv_prog_AS"; then
8140 AS=$ac_cv_prog_AS
8143 if test -n "$ac_cv_prog_AS"; then
8144 for ncn_progname in as; do
8145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8146 set dummy ${ncn_progname}; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_AS+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$AS"; then
8153 ac_cv_prog_AS="$AS" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_AS="${ncn_progname}"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8166 done
8167 done
8168 IFS=$as_save_IFS
8172 AS=$ac_cv_prog_AS
8173 if test -n "$AS"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8175 $as_echo "$AS" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8182 done
8185 for ncn_progname in as; do
8186 if test -n "$ncn_tool_prefix"; then
8187 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8188 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_prog_AS+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 if test -n "$AS"; then
8195 ac_cv_prog_AS="$AS" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8210 IFS=$as_save_IFS
8214 AS=$ac_cv_prog_AS
8215 if test -n "$AS"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8217 $as_echo "$AS" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8225 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227 set dummy ${ncn_progname}; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if test "${ac_cv_prog_AS+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 if test -n "$AS"; then
8234 ac_cv_prog_AS="$AS" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_prog_AS="${ncn_progname}"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8247 done
8248 done
8249 IFS=$as_save_IFS
8253 AS=$ac_cv_prog_AS
8254 if test -n "$AS"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8256 $as_echo "$AS" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8264 test -n "$ac_cv_prog_AS" && break
8265 done
8267 if test -z "$ac_cv_prog_AS" ; then
8268 set dummy as
8269 if test $build = $host ; then
8270 AS="$2"
8271 else
8272 AS="${ncn_tool_prefix}$2"
8278 if test -n "$DLLTOOL"; then
8279 ac_cv_prog_DLLTOOL=$DLLTOOL
8280 elif test -n "$ac_cv_prog_DLLTOOL"; then
8281 DLLTOOL=$ac_cv_prog_DLLTOOL
8284 if test -n "$ac_cv_prog_DLLTOOL"; then
8285 for ncn_progname in dlltool; do
8286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8287 set dummy ${ncn_progname}; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 if test -n "$DLLTOOL"; then
8294 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_DLLTOOL="${ncn_progname}"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8307 done
8308 done
8309 IFS=$as_save_IFS
8313 DLLTOOL=$ac_cv_prog_DLLTOOL
8314 if test -n "$DLLTOOL"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8316 $as_echo "$DLLTOOL" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8323 done
8326 for ncn_progname in dlltool; do
8327 if test -n "$ncn_tool_prefix"; then
8328 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8329 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test -n "$DLLTOOL"; then
8336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8355 DLLTOOL=$ac_cv_prog_DLLTOOL
8356 if test -n "$DLLTOOL"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8358 $as_echo "$DLLTOOL" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8366 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368 set dummy ${ncn_progname}; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 if test -n "$DLLTOOL"; then
8375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_DLLTOOL="${ncn_progname}"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 break 2
8388 done
8389 done
8390 IFS=$as_save_IFS
8394 DLLTOOL=$ac_cv_prog_DLLTOOL
8395 if test -n "$DLLTOOL"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8397 $as_echo "$DLLTOOL" >&6; }
8398 else
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8405 test -n "$ac_cv_prog_DLLTOOL" && break
8406 done
8408 if test -z "$ac_cv_prog_DLLTOOL" ; then
8409 set dummy dlltool
8410 if test $build = $host ; then
8411 DLLTOOL="$2"
8412 else
8413 DLLTOOL="${ncn_tool_prefix}$2"
8419 if test -n "$LD"; then
8420 ac_cv_prog_LD=$LD
8421 elif test -n "$ac_cv_prog_LD"; then
8422 LD=$ac_cv_prog_LD
8425 if test -n "$ac_cv_prog_LD"; then
8426 for ncn_progname in ld; do
8427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8428 set dummy ${ncn_progname}; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_prog_LD+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 if test -n "$LD"; then
8435 ac_cv_prog_LD="$LD" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_LD="${ncn_progname}"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8448 done
8449 done
8450 IFS=$as_save_IFS
8454 LD=$ac_cv_prog_LD
8455 if test -n "$LD"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8457 $as_echo "$LD" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8464 done
8467 for ncn_progname in ld; do
8468 if test -n "$ncn_tool_prefix"; then
8469 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8470 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_LD+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$LD"; then
8477 ac_cv_prog_LD="$LD" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8496 LD=$ac_cv_prog_LD
8497 if test -n "$LD"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8499 $as_echo "$LD" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509 set dummy ${ncn_progname}; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if test "${ac_cv_prog_LD+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 if test -n "$LD"; then
8516 ac_cv_prog_LD="$LD" # Let the user override the test.
8517 else
8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519 for as_dir in $PATH
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8525 ac_cv_prog_LD="${ncn_progname}"
8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 break 2
8529 done
8530 done
8531 IFS=$as_save_IFS
8535 LD=$ac_cv_prog_LD
8536 if test -n "$LD"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8538 $as_echo "$LD" >&6; }
8539 else
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8546 test -n "$ac_cv_prog_LD" && break
8547 done
8549 if test -z "$ac_cv_prog_LD" ; then
8550 set dummy ld
8551 if test $build = $host ; then
8552 LD="$2"
8553 else
8554 LD="${ncn_tool_prefix}$2"
8560 if test -n "$LIPO"; then
8561 ac_cv_prog_LIPO=$LIPO
8562 elif test -n "$ac_cv_prog_LIPO"; then
8563 LIPO=$ac_cv_prog_LIPO
8566 if test -n "$ac_cv_prog_LIPO"; then
8567 for ncn_progname in lipo; do
8568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8569 set dummy ${ncn_progname}; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if test "${ac_cv_prog_LIPO+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 if test -n "$LIPO"; then
8576 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8585 ac_cv_prog_LIPO="${ncn_progname}"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8589 done
8590 done
8591 IFS=$as_save_IFS
8595 LIPO=$ac_cv_prog_LIPO
8596 if test -n "$LIPO"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8598 $as_echo "$LIPO" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8605 done
8608 for ncn_progname in lipo; do
8609 if test -n "$ncn_tool_prefix"; then
8610 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8611 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_LIPO+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$LIPO"; then
8618 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8637 LIPO=$ac_cv_prog_LIPO
8638 if test -n "$LIPO"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8640 $as_echo "$LIPO" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8648 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650 set dummy ${ncn_progname}; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if test "${ac_cv_prog_LIPO+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 if test -n "$LIPO"; then
8657 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8666 ac_cv_prog_LIPO="${ncn_progname}"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8676 LIPO=$ac_cv_prog_LIPO
8677 if test -n "$LIPO"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8679 $as_echo "$LIPO" >&6; }
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8687 test -n "$ac_cv_prog_LIPO" && break
8688 done
8690 if test -z "$ac_cv_prog_LIPO" ; then
8691 set dummy lipo
8692 if test $build = $host ; then
8693 LIPO="$2"
8694 else
8695 LIPO="${ncn_tool_prefix}$2"
8701 if test -n "$NM"; then
8702 ac_cv_prog_NM=$NM
8703 elif test -n "$ac_cv_prog_NM"; then
8704 NM=$ac_cv_prog_NM
8707 if test -n "$ac_cv_prog_NM"; then
8708 for ncn_progname in nm; do
8709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8710 set dummy ${ncn_progname}; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if test "${ac_cv_prog_NM+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 if test -n "$NM"; then
8717 ac_cv_prog_NM="$NM" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726 ac_cv_prog_NM="${ncn_progname}"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8730 done
8731 done
8732 IFS=$as_save_IFS
8736 NM=$ac_cv_prog_NM
8737 if test -n "$NM"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8739 $as_echo "$NM" >&6; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8746 done
8749 for ncn_progname in nm; do
8750 if test -n "$ncn_tool_prefix"; then
8751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8752 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_prog_NM+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 if test -n "$NM"; then
8759 ac_cv_prog_NM="$NM" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8774 IFS=$as_save_IFS
8778 NM=$ac_cv_prog_NM
8779 if test -n "$NM"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8781 $as_echo "$NM" >&6; }
8782 else
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8789 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791 set dummy ${ncn_progname}; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if test "${ac_cv_prog_NM+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 if test -n "$NM"; then
8798 ac_cv_prog_NM="$NM" # Let the user override the test.
8799 else
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in $PATH
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807 ac_cv_prog_NM="${ncn_progname}"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8811 done
8812 done
8813 IFS=$as_save_IFS
8817 NM=$ac_cv_prog_NM
8818 if test -n "$NM"; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8820 $as_echo "$NM" >&6; }
8821 else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8828 test -n "$ac_cv_prog_NM" && break
8829 done
8831 if test -z "$ac_cv_prog_NM" ; then
8832 set dummy nm
8833 if test $build = $host ; then
8834 NM="$2"
8835 else
8836 NM="${ncn_tool_prefix}$2"
8842 if test -n "$RANLIB"; then
8843 ac_cv_prog_RANLIB=$RANLIB
8844 elif test -n "$ac_cv_prog_RANLIB"; then
8845 RANLIB=$ac_cv_prog_RANLIB
8848 if test -n "$ac_cv_prog_RANLIB"; then
8849 for ncn_progname in ranlib; do
8850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8851 set dummy ${ncn_progname}; ac_word=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 if test -n "$RANLIB"; then
8858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8859 else
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867 ac_cv_prog_RANLIB="${ncn_progname}"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 break 2
8871 done
8872 done
8873 IFS=$as_save_IFS
8877 RANLIB=$ac_cv_prog_RANLIB
8878 if test -n "$RANLIB"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8880 $as_echo "$RANLIB" >&6; }
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8887 done
8890 for ncn_progname in ranlib; do
8891 if test -n "$ncn_tool_prefix"; then
8892 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8893 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 if test -n "$RANLIB"; then
8900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 break 2
8913 done
8914 done
8915 IFS=$as_save_IFS
8919 RANLIB=$ac_cv_prog_RANLIB
8920 if test -n "$RANLIB"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8922 $as_echo "$RANLIB" >&6; }
8923 else
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8930 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932 set dummy ${ncn_progname}; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 if test -n "$RANLIB"; then
8939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8940 else
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 for as_dir in $PATH
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8948 ac_cv_prog_RANLIB="${ncn_progname}"
8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 break 2
8952 done
8953 done
8954 IFS=$as_save_IFS
8958 RANLIB=$ac_cv_prog_RANLIB
8959 if test -n "$RANLIB"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8961 $as_echo "$RANLIB" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8969 test -n "$ac_cv_prog_RANLIB" && break
8970 done
8972 if test -z "$ac_cv_prog_RANLIB" ; then
8973 RANLIB="true"
8978 if test -n "$STRIP"; then
8979 ac_cv_prog_STRIP=$STRIP
8980 elif test -n "$ac_cv_prog_STRIP"; then
8981 STRIP=$ac_cv_prog_STRIP
8984 if test -n "$ac_cv_prog_STRIP"; then
8985 for ncn_progname in strip; do
8986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8987 set dummy ${ncn_progname}; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if test "${ac_cv_prog_STRIP+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 if test -n "$STRIP"; then
8994 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003 ac_cv_prog_STRIP="${ncn_progname}"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9007 done
9008 done
9009 IFS=$as_save_IFS
9013 STRIP=$ac_cv_prog_STRIP
9014 if test -n "$STRIP"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9016 $as_echo "$STRIP" >&6; }
9017 else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9023 done
9026 for ncn_progname in strip; do
9027 if test -n "$ncn_tool_prefix"; then
9028 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9029 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if test "${ac_cv_prog_STRIP+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 if test -n "$STRIP"; then
9036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9049 done
9050 done
9051 IFS=$as_save_IFS
9055 STRIP=$ac_cv_prog_STRIP
9056 if test -n "$STRIP"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9058 $as_echo "$STRIP" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9066 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9068 set dummy ${ncn_progname}; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if test "${ac_cv_prog_STRIP+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$STRIP"; then
9075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_prog_STRIP="${ncn_progname}"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9088 done
9089 done
9090 IFS=$as_save_IFS
9094 STRIP=$ac_cv_prog_STRIP
9095 if test -n "$STRIP"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9097 $as_echo "$STRIP" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9105 test -n "$ac_cv_prog_STRIP" && break
9106 done
9108 if test -z "$ac_cv_prog_STRIP" ; then
9109 STRIP="true"
9114 if test -n "$WINDRES"; then
9115 ac_cv_prog_WINDRES=$WINDRES
9116 elif test -n "$ac_cv_prog_WINDRES"; then
9117 WINDRES=$ac_cv_prog_WINDRES
9120 if test -n "$ac_cv_prog_WINDRES"; then
9121 for ncn_progname in windres; do
9122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9123 set dummy ${ncn_progname}; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 if test -n "$WINDRES"; then
9130 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9131 else
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9139 ac_cv_prog_WINDRES="${ncn_progname}"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9143 done
9144 done
9145 IFS=$as_save_IFS
9149 WINDRES=$ac_cv_prog_WINDRES
9150 if test -n "$WINDRES"; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9152 $as_echo "$WINDRES" >&6; }
9153 else
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9159 done
9162 for ncn_progname in windres; do
9163 if test -n "$ncn_tool_prefix"; then
9164 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9165 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 if test -n "$WINDRES"; then
9172 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9173 else
9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 for as_dir in $PATH
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9181 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2
9185 done
9186 done
9187 IFS=$as_save_IFS
9191 WINDRES=$ac_cv_prog_WINDRES
9192 if test -n "$WINDRES"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9194 $as_echo "$WINDRES" >&6; }
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 $as_echo "no" >&6; }
9202 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9204 set dummy ${ncn_progname}; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 if test -n "$WINDRES"; then
9211 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9212 else
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 for as_dir in $PATH
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9220 ac_cv_prog_WINDRES="${ncn_progname}"
9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 break 2
9224 done
9225 done
9226 IFS=$as_save_IFS
9230 WINDRES=$ac_cv_prog_WINDRES
9231 if test -n "$WINDRES"; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9233 $as_echo "$WINDRES" >&6; }
9234 else
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9241 test -n "$ac_cv_prog_WINDRES" && break
9242 done
9244 if test -z "$ac_cv_prog_WINDRES" ; then
9245 set dummy windres
9246 if test $build = $host ; then
9247 WINDRES="$2"
9248 else
9249 WINDRES="${ncn_tool_prefix}$2"
9255 if test -n "$WINDMC"; then
9256 ac_cv_prog_WINDMC=$WINDMC
9257 elif test -n "$ac_cv_prog_WINDMC"; then
9258 WINDMC=$ac_cv_prog_WINDMC
9261 if test -n "$ac_cv_prog_WINDMC"; then
9262 for ncn_progname in windmc; do
9263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9264 set dummy ${ncn_progname}; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 if test -n "$WINDMC"; then
9271 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_prog_WINDMC="${ncn_progname}"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9290 WINDMC=$ac_cv_prog_WINDMC
9291 if test -n "$WINDMC"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9293 $as_echo "$WINDMC" >&6; }
9294 else
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9300 done
9303 for ncn_progname in windmc; do
9304 if test -n "$ncn_tool_prefix"; then
9305 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9306 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308 $as_echo_n "checking for $ac_word... " >&6; }
9309 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 if test -n "$WINDMC"; then
9313 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9314 else
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9322 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9326 done
9327 done
9328 IFS=$as_save_IFS
9332 WINDMC=$ac_cv_prog_WINDMC
9333 if test -n "$WINDMC"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9335 $as_echo "$WINDMC" >&6; }
9336 else
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9343 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345 set dummy ${ncn_progname}; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 if test -n "$WINDMC"; then
9352 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9353 else
9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355 for as_dir in $PATH
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9361 ac_cv_prog_WINDMC="${ncn_progname}"
9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9363 break 2
9365 done
9366 done
9367 IFS=$as_save_IFS
9371 WINDMC=$ac_cv_prog_WINDMC
9372 if test -n "$WINDMC"; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9374 $as_echo "$WINDMC" >&6; }
9375 else
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9382 test -n "$ac_cv_prog_WINDMC" && break
9383 done
9385 if test -z "$ac_cv_prog_WINDMC" ; then
9386 set dummy windmc
9387 if test $build = $host ; then
9388 WINDMC="$2"
9389 else
9390 WINDMC="${ncn_tool_prefix}$2"
9396 if test -n "$OBJCOPY"; then
9397 ac_cv_prog_OBJCOPY=$OBJCOPY
9398 elif test -n "$ac_cv_prog_OBJCOPY"; then
9399 OBJCOPY=$ac_cv_prog_OBJCOPY
9402 if test -n "$ac_cv_prog_OBJCOPY"; then
9403 for ncn_progname in objcopy; do
9404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405 set dummy ${ncn_progname}; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 if test -n "$OBJCOPY"; then
9412 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9413 else
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_prog_OBJCOPY="${ncn_progname}"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9425 done
9426 done
9427 IFS=$as_save_IFS
9431 OBJCOPY=$ac_cv_prog_OBJCOPY
9432 if test -n "$OBJCOPY"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9434 $as_echo "$OBJCOPY" >&6; }
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9441 done
9444 for ncn_progname in objcopy; do
9445 if test -n "$ncn_tool_prefix"; then
9446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9447 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 if test -n "$OBJCOPY"; then
9454 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9455 else
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9467 done
9468 done
9469 IFS=$as_save_IFS
9473 OBJCOPY=$ac_cv_prog_OBJCOPY
9474 if test -n "$OBJCOPY"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9476 $as_echo "$OBJCOPY" >&6; }
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9484 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486 set dummy ${ncn_progname}; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 if test -n "$OBJCOPY"; then
9493 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9494 else
9495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 for as_dir in $PATH
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9502 ac_cv_prog_OBJCOPY="${ncn_progname}"
9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9504 break 2
9506 done
9507 done
9508 IFS=$as_save_IFS
9512 OBJCOPY=$ac_cv_prog_OBJCOPY
9513 if test -n "$OBJCOPY"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9515 $as_echo "$OBJCOPY" >&6; }
9516 else
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9523 test -n "$ac_cv_prog_OBJCOPY" && break
9524 done
9526 if test -z "$ac_cv_prog_OBJCOPY" ; then
9527 set dummy objcopy
9528 if test $build = $host ; then
9529 OBJCOPY="$2"
9530 else
9531 OBJCOPY="${ncn_tool_prefix}$2"
9537 if test -n "$OBJDUMP"; then
9538 ac_cv_prog_OBJDUMP=$OBJDUMP
9539 elif test -n "$ac_cv_prog_OBJDUMP"; then
9540 OBJDUMP=$ac_cv_prog_OBJDUMP
9543 if test -n "$ac_cv_prog_OBJDUMP"; then
9544 for ncn_progname in objdump; do
9545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9546 set dummy ${ncn_progname}; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 if test -n "$OBJDUMP"; then
9553 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_prog_OBJDUMP="${ncn_progname}"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 break 2
9566 done
9567 done
9568 IFS=$as_save_IFS
9572 OBJDUMP=$ac_cv_prog_OBJDUMP
9573 if test -n "$OBJDUMP"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9575 $as_echo "$OBJDUMP" >&6; }
9576 else
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9582 done
9585 for ncn_progname in objdump; do
9586 if test -n "$ncn_tool_prefix"; then
9587 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9588 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 if test -n "$OBJDUMP"; then
9595 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9596 else
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 for as_dir in $PATH
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 break 2
9608 done
9609 done
9610 IFS=$as_save_IFS
9614 OBJDUMP=$ac_cv_prog_OBJDUMP
9615 if test -n "$OBJDUMP"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9617 $as_echo "$OBJDUMP" >&6; }
9618 else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9625 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627 set dummy ${ncn_progname}; ac_word=$2
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629 $as_echo_n "checking for $ac_word... " >&6; }
9630 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 if test -n "$OBJDUMP"; then
9634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9635 else
9636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637 for as_dir in $PATH
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9643 ac_cv_prog_OBJDUMP="${ncn_progname}"
9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 break 2
9647 done
9648 done
9649 IFS=$as_save_IFS
9653 OBJDUMP=$ac_cv_prog_OBJDUMP
9654 if test -n "$OBJDUMP"; then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9656 $as_echo "$OBJDUMP" >&6; }
9657 else
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 $as_echo "no" >&6; }
9664 test -n "$ac_cv_prog_OBJDUMP" && break
9665 done
9667 if test -z "$ac_cv_prog_OBJDUMP" ; then
9668 set dummy objdump
9669 if test $build = $host ; then
9670 OBJDUMP="$2"
9671 else
9672 OBJDUMP="${ncn_tool_prefix}$2"
9678 if test -n "$READELF"; then
9679 ac_cv_prog_READELF=$READELF
9680 elif test -n "$ac_cv_prog_READELF"; then
9681 READELF=$ac_cv_prog_READELF
9684 if test -n "$ac_cv_prog_READELF"; then
9685 for ncn_progname in readelf; do
9686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9687 set dummy ${ncn_progname}; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if test "${ac_cv_prog_READELF+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 if test -n "$READELF"; then
9694 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9695 else
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in $PATH
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_prog_READELF="${ncn_progname}"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9707 done
9708 done
9709 IFS=$as_save_IFS
9713 READELF=$ac_cv_prog_READELF
9714 if test -n "$READELF"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9716 $as_echo "$READELF" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9723 done
9726 for ncn_progname in readelf; do
9727 if test -n "$ncn_tool_prefix"; then
9728 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9729 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if test "${ac_cv_prog_READELF+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 if test -n "$READELF"; then
9736 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9737 else
9738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 for as_dir in $PATH
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9749 done
9750 done
9751 IFS=$as_save_IFS
9755 READELF=$ac_cv_prog_READELF
9756 if test -n "$READELF"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9758 $as_echo "$READELF" >&6; }
9759 else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9766 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9768 set dummy ${ncn_progname}; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if test "${ac_cv_prog_READELF+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 if test -n "$READELF"; then
9775 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9776 else
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_prog_READELF="${ncn_progname}"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2
9788 done
9789 done
9790 IFS=$as_save_IFS
9794 READELF=$ac_cv_prog_READELF
9795 if test -n "$READELF"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9797 $as_echo "$READELF" >&6; }
9798 else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800 $as_echo "no" >&6; }
9805 test -n "$ac_cv_prog_READELF" && break
9806 done
9808 if test -z "$ac_cv_prog_READELF" ; then
9809 set dummy readelf
9810 if test $build = $host ; then
9811 READELF="$2"
9812 else
9813 READELF="${ncn_tool_prefix}$2"
9822 # Target tools.
9824 # Check whether --with-build-time-tools was given.
9825 if test "${with_build_time_tools+set}" = set; then :
9826 withval=$with_build_time_tools; case x"$withval" in
9827 x/*) ;;
9829 with_build_time_tools=
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9831 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9833 esac
9834 else
9835 with_build_time_tools=
9841 if test -n "$CC_FOR_TARGET"; then
9842 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9843 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9844 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9847 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9848 for ncn_progname in cc gcc; do
9849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9850 set dummy ${ncn_progname}; ac_word=$2
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852 $as_echo_n "checking for $ac_word... " >&6; }
9853 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 if test -n "$CC_FOR_TARGET"; then
9857 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9858 else
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in $PATH
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9866 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9870 done
9871 done
9872 IFS=$as_save_IFS
9876 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9877 if test -n "$CC_FOR_TARGET"; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9879 $as_echo "$CC_FOR_TARGET" >&6; }
9880 else
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9886 done
9889 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9890 for ncn_progname in cc gcc; do
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9892 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9893 if test -x $with_build_time_tools/${ncn_progname}; then
9894 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9896 $as_echo "yes" >&6; }
9897 break
9898 else
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9902 done
9905 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9906 for ncn_progname in cc gcc; do
9907 if test -n "$ncn_target_tool_prefix"; then
9908 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9909 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911 $as_echo_n "checking for $ac_word... " >&6; }
9912 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 if test -n "$CC_FOR_TARGET"; then
9916 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9917 else
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919 for as_dir in $PATH
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 break 2
9929 done
9930 done
9931 IFS=$as_save_IFS
9935 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9936 if test -n "$CC_FOR_TARGET"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9938 $as_echo "$CC_FOR_TARGET" >&6; }
9939 else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 $as_echo "no" >&6; }
9946 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9948 set dummy ${ncn_progname}; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 if test -n "$CC_FOR_TARGET"; then
9955 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9956 else
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 for as_dir in $PATH
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9964 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9968 done
9969 done
9970 IFS=$as_save_IFS
9974 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9975 if test -n "$CC_FOR_TARGET"; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9977 $as_echo "$CC_FOR_TARGET" >&6; }
9978 else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980 $as_echo "no" >&6; }
9985 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9986 done
9989 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9990 set dummy cc gcc
9991 if test $build = $target ; then
9992 CC_FOR_TARGET="$2"
9993 else
9994 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9996 else
9997 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10002 if test -n "$CXX_FOR_TARGET"; then
10003 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10004 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10005 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10008 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10009 for ncn_progname in c++ g++ cxx gxx; do
10010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10011 set dummy ${ncn_progname}; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
10016 else
10017 if test -n "$CXX_FOR_TARGET"; then
10018 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10019 else
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029 break 2
10031 done
10032 done
10033 IFS=$as_save_IFS
10037 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10038 if test -n "$CXX_FOR_TARGET"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10040 $as_echo "$CXX_FOR_TARGET" >&6; }
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10047 done
10050 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10051 for ncn_progname in c++ g++ cxx gxx; do
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10053 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10054 if test -x $with_build_time_tools/${ncn_progname}; then
10055 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10057 $as_echo "yes" >&6; }
10058 break
10059 else
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061 $as_echo "no" >&6; }
10063 done
10066 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10067 for ncn_progname in c++ g++ cxx gxx; do
10068 if test -n "$ncn_target_tool_prefix"; then
10069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10070 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10072 $as_echo_n "checking for $ac_word... " >&6; }
10073 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10075 else
10076 if test -n "$CXX_FOR_TARGET"; then
10077 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10078 else
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10086 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 break 2
10090 done
10091 done
10092 IFS=$as_save_IFS
10096 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10097 if test -n "$CXX_FOR_TARGET"; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10099 $as_echo "$CXX_FOR_TARGET" >&6; }
10100 else
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102 $as_echo "no" >&6; }
10107 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10109 set dummy ${ncn_progname}; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 if test -n "$CXX_FOR_TARGET"; then
10116 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10117 else
10118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $PATH
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10125 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10129 done
10130 done
10131 IFS=$as_save_IFS
10135 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10136 if test -n "$CXX_FOR_TARGET"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10138 $as_echo "$CXX_FOR_TARGET" >&6; }
10139 else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141 $as_echo "no" >&6; }
10146 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10147 done
10150 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10151 set dummy c++ g++ cxx gxx
10152 if test $build = $target ; then
10153 CXX_FOR_TARGET="$2"
10154 else
10155 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10157 else
10158 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10163 if test -n "$GCC_FOR_TARGET"; then
10164 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10165 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10166 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10169 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10170 for ncn_progname in gcc; do
10171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10172 set dummy ${ncn_progname}; ac_word=$2
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 $as_echo_n "checking for $ac_word... " >&6; }
10175 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10177 else
10178 if test -n "$GCC_FOR_TARGET"; then
10179 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10180 else
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10192 done
10193 done
10194 IFS=$as_save_IFS
10198 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10199 if test -n "$GCC_FOR_TARGET"; then
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10201 $as_echo "$GCC_FOR_TARGET" >&6; }
10202 else
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10208 done
10211 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10212 for ncn_progname in gcc; do
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10214 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10215 if test -x $with_build_time_tools/${ncn_progname}; then
10216 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10218 $as_echo "yes" >&6; }
10219 break
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10224 done
10227 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10228 for ncn_progname in gcc; do
10229 if test -n "$ncn_target_tool_prefix"; then
10230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 $as_echo_n "checking for $ac_word... " >&6; }
10234 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 if test -n "$GCC_FOR_TARGET"; then
10238 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10239 else
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10247 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10249 break 2
10251 done
10252 done
10253 IFS=$as_save_IFS
10257 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10258 if test -n "$GCC_FOR_TARGET"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10260 $as_echo "$GCC_FOR_TARGET" >&6; }
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10268 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10270 set dummy ${ncn_progname}; ac_word=$2
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272 $as_echo_n "checking for $ac_word... " >&6; }
10273 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10274 $as_echo_n "(cached) " >&6
10275 else
10276 if test -n "$GCC_FOR_TARGET"; then
10277 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10278 else
10279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280 for as_dir in $PATH
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10286 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10290 done
10291 done
10292 IFS=$as_save_IFS
10296 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10297 if test -n "$GCC_FOR_TARGET"; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10299 $as_echo "$GCC_FOR_TARGET" >&6; }
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10307 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10308 done
10311 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10312 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10313 else
10314 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10319 if test -n "$GCJ_FOR_TARGET"; then
10320 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10321 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10322 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10325 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10326 for ncn_progname in gcj; do
10327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10328 set dummy ${ncn_progname}; ac_word=$2
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 $as_echo_n "checking for $ac_word... " >&6; }
10331 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 if test -n "$GCJ_FOR_TARGET"; then
10335 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10336 else
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10348 done
10349 done
10350 IFS=$as_save_IFS
10354 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10355 if test -n "$GCJ_FOR_TARGET"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10357 $as_echo "$GCJ_FOR_TARGET" >&6; }
10358 else
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10364 done
10367 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10368 for ncn_progname in gcj; do
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10370 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10371 if test -x $with_build_time_tools/${ncn_progname}; then
10372 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10374 $as_echo "yes" >&6; }
10375 break
10376 else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10380 done
10383 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10384 for ncn_progname in gcj; do
10385 if test -n "$ncn_target_tool_prefix"; then
10386 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10387 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 if test -n "$GCJ_FOR_TARGET"; then
10394 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10395 else
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10407 done
10408 done
10409 IFS=$as_save_IFS
10413 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10414 if test -n "$GCJ_FOR_TARGET"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10416 $as_echo "$GCJ_FOR_TARGET" >&6; }
10417 else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10424 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10426 set dummy ${ncn_progname}; ac_word=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 if test -n "$GCJ_FOR_TARGET"; then
10433 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10434 else
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10442 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444 break 2
10446 done
10447 done
10448 IFS=$as_save_IFS
10452 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10453 if test -n "$GCJ_FOR_TARGET"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10455 $as_echo "$GCJ_FOR_TARGET" >&6; }
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10463 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10464 done
10467 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10468 set dummy gcj
10469 if test $build = $target ; then
10470 GCJ_FOR_TARGET="$2"
10471 else
10472 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10474 else
10475 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10480 if test -n "$GFORTRAN_FOR_TARGET"; then
10481 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10482 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10483 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10486 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10487 for ncn_progname in gfortran; do
10488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10489 set dummy ${ncn_progname}; ac_word=$2
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10491 $as_echo_n "checking for $ac_word... " >&6; }
10492 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10494 else
10495 if test -n "$GFORTRAN_FOR_TARGET"; then
10496 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10497 else
10498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499 for as_dir in $PATH
10501 IFS=$as_save_IFS
10502 test -z "$as_dir" && as_dir=.
10503 for ac_exec_ext in '' $ac_executable_extensions; do
10504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10505 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 break 2
10509 done
10510 done
10511 IFS=$as_save_IFS
10515 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10516 if test -n "$GFORTRAN_FOR_TARGET"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10518 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10519 else
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521 $as_echo "no" >&6; }
10525 done
10528 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10529 for ncn_progname in gfortran; do
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10531 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10532 if test -x $with_build_time_tools/${ncn_progname}; then
10533 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535 $as_echo "yes" >&6; }
10536 break
10537 else
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10541 done
10544 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10545 for ncn_progname in gfortran; do
10546 if test -n "$ncn_target_tool_prefix"; then
10547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10548 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550 $as_echo_n "checking for $ac_word... " >&6; }
10551 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 if test -n "$GFORTRAN_FOR_TARGET"; then
10555 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10556 else
10557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558 for as_dir in $PATH
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10564 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 break 2
10568 done
10569 done
10570 IFS=$as_save_IFS
10574 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10575 if test -n "$GFORTRAN_FOR_TARGET"; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10577 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10578 else
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580 $as_echo "no" >&6; }
10585 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10587 set dummy ${ncn_progname}; ac_word=$2
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589 $as_echo_n "checking for $ac_word... " >&6; }
10590 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10591 $as_echo_n "(cached) " >&6
10592 else
10593 if test -n "$GFORTRAN_FOR_TARGET"; then
10594 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10595 else
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597 for as_dir in $PATH
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10603 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 break 2
10607 done
10608 done
10609 IFS=$as_save_IFS
10613 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10614 if test -n "$GFORTRAN_FOR_TARGET"; then
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10616 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10617 else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619 $as_echo "no" >&6; }
10624 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10625 done
10628 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10629 set dummy gfortran
10630 if test $build = $target ; then
10631 GFORTRAN_FOR_TARGET="$2"
10632 else
10633 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10635 else
10636 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10641 if test -n "$GOC_FOR_TARGET"; then
10642 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10643 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10644 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10647 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10648 for ncn_progname in gccgo; do
10649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10650 set dummy ${ncn_progname}; ac_word=$2
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652 $as_echo_n "checking for $ac_word... " >&6; }
10653 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 if test -n "$GOC_FOR_TARGET"; then
10657 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10658 else
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10662 IFS=$as_save_IFS
10663 test -z "$as_dir" && as_dir=.
10664 for ac_exec_ext in '' $ac_executable_extensions; do
10665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10666 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10668 break 2
10670 done
10671 done
10672 IFS=$as_save_IFS
10676 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10677 if test -n "$GOC_FOR_TARGET"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10679 $as_echo "$GOC_FOR_TARGET" >&6; }
10680 else
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682 $as_echo "no" >&6; }
10686 done
10689 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10690 for ncn_progname in gccgo; do
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10692 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10693 if test -x $with_build_time_tools/${ncn_progname}; then
10694 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10696 $as_echo "yes" >&6; }
10697 break
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10702 done
10705 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10706 for ncn_progname in gccgo; do
10707 if test -n "$ncn_target_tool_prefix"; then
10708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10709 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 $as_echo_n "checking for $ac_word... " >&6; }
10712 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 if test -n "$GOC_FOR_TARGET"; then
10716 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10717 else
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in $PATH
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10729 done
10730 done
10731 IFS=$as_save_IFS
10735 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10736 if test -n "$GOC_FOR_TARGET"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10738 $as_echo "$GOC_FOR_TARGET" >&6; }
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10746 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10748 set dummy ${ncn_progname}; ac_word=$2
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750 $as_echo_n "checking for $ac_word... " >&6; }
10751 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 if test -n "$GOC_FOR_TARGET"; then
10755 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10756 else
10757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758 for as_dir in $PATH
10760 IFS=$as_save_IFS
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10764 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 break 2
10768 done
10769 done
10770 IFS=$as_save_IFS
10774 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10775 if test -n "$GOC_FOR_TARGET"; then
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10777 $as_echo "$GOC_FOR_TARGET" >&6; }
10778 else
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780 $as_echo "no" >&6; }
10785 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10786 done
10789 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10790 set dummy gccgo
10791 if test $build = $target ; then
10792 GOC_FOR_TARGET="$2"
10793 else
10794 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10796 else
10797 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10802 cat > conftest.c << \EOF
10803 #ifdef __GNUC__
10804 gcc_yay;
10805 #endif
10807 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10808 have_gcc_for_target=yes
10809 else
10810 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10811 have_gcc_for_target=no
10813 rm conftest.c
10818 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10819 if test -n "$with_build_time_tools"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10821 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10822 if test -x $with_build_time_tools/ar; then
10823 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10824 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10826 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10827 else
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829 $as_echo "no" >&6; }
10831 elif test $build != $host && test $have_gcc_for_target = yes; then
10832 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10833 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10834 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10837 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10838 # Extract the first word of "ar", so it can be a program name with args.
10839 set dummy ar; ac_word=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 case $AR_FOR_TARGET in
10846 [\\/]* | ?:[\\/]*)
10847 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $gcc_cv_tool_dirs
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10861 done
10862 done
10863 IFS=$as_save_IFS
10866 esac
10868 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10869 if test -n "$AR_FOR_TARGET"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10871 $as_echo "$AR_FOR_TARGET" >&6; }
10872 else
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10879 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10882 if test -n "$AR_FOR_TARGET"; then
10883 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10884 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10885 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10888 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10889 for ncn_progname in ar; do
10890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10891 set dummy ${ncn_progname}; ac_word=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 if test -n "$AR_FOR_TARGET"; then
10898 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10899 else
10900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901 for as_dir in $PATH
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10907 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10909 break 2
10911 done
10912 done
10913 IFS=$as_save_IFS
10917 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10918 if test -n "$AR_FOR_TARGET"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10920 $as_echo "$AR_FOR_TARGET" >&6; }
10921 else
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923 $as_echo "no" >&6; }
10927 done
10930 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10931 for ncn_progname in ar; do
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10933 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10934 if test -x $with_build_time_tools/${ncn_progname}; then
10935 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10937 $as_echo "yes" >&6; }
10938 break
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941 $as_echo "no" >&6; }
10943 done
10946 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10947 for ncn_progname in ar; do
10948 if test -n "$ncn_target_tool_prefix"; then
10949 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10950 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952 $as_echo_n "checking for $ac_word... " >&6; }
10953 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
10955 else
10956 if test -n "$AR_FOR_TARGET"; then
10957 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10958 else
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10966 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10968 break 2
10970 done
10971 done
10972 IFS=$as_save_IFS
10976 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10977 if test -n "$AR_FOR_TARGET"; then
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10979 $as_echo "$AR_FOR_TARGET" >&6; }
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10987 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10989 set dummy ${ncn_progname}; ac_word=$2
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991 $as_echo_n "checking for $ac_word... " >&6; }
10992 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 if test -n "$AR_FOR_TARGET"; then
10996 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10997 else
10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999 for as_dir in $PATH
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11005 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11009 done
11010 done
11011 IFS=$as_save_IFS
11015 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11016 if test -n "$AR_FOR_TARGET"; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11018 $as_echo "$AR_FOR_TARGET" >&6; }
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11026 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11027 done
11030 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11031 set dummy ar
11032 if test $build = $target ; then
11033 AR_FOR_TARGET="$2"
11034 else
11035 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11037 else
11038 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11041 else
11042 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11048 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11049 if test -n "$with_build_time_tools"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11051 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11052 if test -x $with_build_time_tools/as; then
11053 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11054 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11056 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11057 else
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059 $as_echo "no" >&6; }
11061 elif test $build != $host && test $have_gcc_for_target = yes; then
11062 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11063 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11064 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11067 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11068 # Extract the first word of "as", so it can be a program name with args.
11069 set dummy as; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 case $AS_FOR_TARGET in
11076 [\\/]* | ?:[\\/]*)
11077 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081 for as_dir in $gcc_cv_tool_dirs
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11087 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 break 2
11091 done
11092 done
11093 IFS=$as_save_IFS
11096 esac
11098 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11099 if test -n "$AS_FOR_TARGET"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11101 $as_echo "$AS_FOR_TARGET" >&6; }
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11109 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11112 if test -n "$AS_FOR_TARGET"; then
11113 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11114 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11115 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11118 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11119 for ncn_progname in as; do
11120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11121 set dummy ${ncn_progname}; ac_word=$2
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11123 $as_echo_n "checking for $ac_word... " >&6; }
11124 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 if test -n "$AS_FOR_TARGET"; then
11128 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11129 else
11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in $PATH
11133 IFS=$as_save_IFS
11134 test -z "$as_dir" && as_dir=.
11135 for ac_exec_ext in '' $ac_executable_extensions; do
11136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11137 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11139 break 2
11141 done
11142 done
11143 IFS=$as_save_IFS
11147 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11148 if test -n "$AS_FOR_TARGET"; then
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11150 $as_echo "$AS_FOR_TARGET" >&6; }
11151 else
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153 $as_echo "no" >&6; }
11157 done
11160 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11161 for ncn_progname in as; do
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11163 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11164 if test -x $with_build_time_tools/${ncn_progname}; then
11165 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167 $as_echo "yes" >&6; }
11168 break
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171 $as_echo "no" >&6; }
11173 done
11176 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11177 for ncn_progname in as; do
11178 if test -n "$ncn_target_tool_prefix"; then
11179 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11180 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182 $as_echo_n "checking for $ac_word... " >&6; }
11183 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 if test -n "$AS_FOR_TARGET"; then
11187 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11188 else
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11196 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11198 break 2
11200 done
11201 done
11202 IFS=$as_save_IFS
11206 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11207 if test -n "$AS_FOR_TARGET"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11209 $as_echo "$AS_FOR_TARGET" >&6; }
11210 else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212 $as_echo "no" >&6; }
11217 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11219 set dummy ${ncn_progname}; ac_word=$2
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221 $as_echo_n "checking for $ac_word... " >&6; }
11222 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 if test -n "$AS_FOR_TARGET"; then
11226 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11227 else
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11235 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 break 2
11239 done
11240 done
11241 IFS=$as_save_IFS
11245 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11246 if test -n "$AS_FOR_TARGET"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11248 $as_echo "$AS_FOR_TARGET" >&6; }
11249 else
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; }
11256 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11257 done
11260 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11261 set dummy as
11262 if test $build = $target ; then
11263 AS_FOR_TARGET="$2"
11264 else
11265 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11267 else
11268 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11271 else
11272 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11278 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11279 if test -n "$with_build_time_tools"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11281 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11282 if test -x $with_build_time_tools/dlltool; then
11283 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11284 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11286 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11291 elif test $build != $host && test $have_gcc_for_target = yes; then
11292 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11293 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11294 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11297 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11298 # Extract the first word of "dlltool", so it can be a program name with args.
11299 set dummy dlltool; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 $as_echo_n "checking for $ac_word... " >&6; }
11302 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 case $DLLTOOL_FOR_TARGET in
11306 [\\/]* | ?:[\\/]*)
11307 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $gcc_cv_tool_dirs
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11321 done
11322 done
11323 IFS=$as_save_IFS
11326 esac
11328 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11329 if test -n "$DLLTOOL_FOR_TARGET"; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11331 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11339 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11342 if test -n "$DLLTOOL_FOR_TARGET"; then
11343 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11344 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11345 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11348 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11349 for ncn_progname in dlltool; do
11350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11351 set dummy ${ncn_progname}; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 if test -n "$DLLTOOL_FOR_TARGET"; then
11358 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11359 else
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
11365 for ac_exec_ext in '' $ac_executable_extensions; do
11366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11367 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11369 break 2
11371 done
11372 done
11373 IFS=$as_save_IFS
11377 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11378 if test -n "$DLLTOOL_FOR_TARGET"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11380 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11381 else
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11387 done
11390 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11391 for ncn_progname in dlltool; do
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11393 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11394 if test -x $with_build_time_tools/${ncn_progname}; then
11395 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11397 $as_echo "yes" >&6; }
11398 break
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11403 done
11406 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11407 for ncn_progname in dlltool; do
11408 if test -n "$ncn_target_tool_prefix"; then
11409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11410 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412 $as_echo_n "checking for $ac_word... " >&6; }
11413 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 if test -n "$DLLTOOL_FOR_TARGET"; then
11417 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11418 else
11419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420 for as_dir in $PATH
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428 break 2
11430 done
11431 done
11432 IFS=$as_save_IFS
11436 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11437 if test -n "$DLLTOOL_FOR_TARGET"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11439 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11440 else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442 $as_echo "no" >&6; }
11447 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11449 set dummy ${ncn_progname}; ac_word=$2
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11451 $as_echo_n "checking for $ac_word... " >&6; }
11452 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 if test -n "$DLLTOOL_FOR_TARGET"; then
11456 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11457 else
11458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH
11461 IFS=$as_save_IFS
11462 test -z "$as_dir" && as_dir=.
11463 for ac_exec_ext in '' $ac_executable_extensions; do
11464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11465 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11467 break 2
11469 done
11470 done
11471 IFS=$as_save_IFS
11475 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11476 if test -n "$DLLTOOL_FOR_TARGET"; then
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11478 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11479 else
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11486 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11487 done
11490 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11491 set dummy dlltool
11492 if test $build = $target ; then
11493 DLLTOOL_FOR_TARGET="$2"
11494 else
11495 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11497 else
11498 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11501 else
11502 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11508 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11509 if test -n "$with_build_time_tools"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11511 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11512 if test -x $with_build_time_tools/ld; then
11513 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11514 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11516 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11521 elif test $build != $host && test $have_gcc_for_target = yes; then
11522 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11523 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11524 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11527 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11528 # Extract the first word of "ld", so it can be a program name with args.
11529 set dummy ld; ac_word=$2
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531 $as_echo_n "checking for $ac_word... " >&6; }
11532 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 case $LD_FOR_TARGET in
11536 [\\/]* | ?:[\\/]*)
11537 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541 for as_dir in $gcc_cv_tool_dirs
11543 IFS=$as_save_IFS
11544 test -z "$as_dir" && as_dir=.
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11547 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11549 break 2
11551 done
11552 done
11553 IFS=$as_save_IFS
11556 esac
11558 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11559 if test -n "$LD_FOR_TARGET"; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11561 $as_echo "$LD_FOR_TARGET" >&6; }
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11569 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11572 if test -n "$LD_FOR_TARGET"; then
11573 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11574 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11575 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11578 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11579 for ncn_progname in ld; do
11580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11581 set dummy ${ncn_progname}; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11585 $as_echo_n "(cached) " >&6
11586 else
11587 if test -n "$LD_FOR_TARGET"; then
11588 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11589 else
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11597 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 break 2
11601 done
11602 done
11603 IFS=$as_save_IFS
11607 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11608 if test -n "$LD_FOR_TARGET"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11610 $as_echo "$LD_FOR_TARGET" >&6; }
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11617 done
11620 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11621 for ncn_progname in ld; do
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11623 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11624 if test -x $with_build_time_tools/${ncn_progname}; then
11625 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11627 $as_echo "yes" >&6; }
11628 break
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11633 done
11636 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11637 for ncn_progname in ld; do
11638 if test -n "$ncn_target_tool_prefix"; then
11639 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11640 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 if test -n "$LD_FOR_TARGET"; then
11647 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11648 else
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11656 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 break 2
11660 done
11661 done
11662 IFS=$as_save_IFS
11666 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11667 if test -n "$LD_FOR_TARGET"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11669 $as_echo "$LD_FOR_TARGET" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11677 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11679 set dummy ${ncn_progname}; ac_word=$2
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681 $as_echo_n "checking for $ac_word... " >&6; }
11682 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
11684 else
11685 if test -n "$LD_FOR_TARGET"; then
11686 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11687 else
11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689 for as_dir in $PATH
11691 IFS=$as_save_IFS
11692 test -z "$as_dir" && as_dir=.
11693 for ac_exec_ext in '' $ac_executable_extensions; do
11694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11695 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11697 break 2
11699 done
11700 done
11701 IFS=$as_save_IFS
11705 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11706 if test -n "$LD_FOR_TARGET"; then
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11708 $as_echo "$LD_FOR_TARGET" >&6; }
11709 else
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11716 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11717 done
11720 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11721 set dummy ld
11722 if test $build = $target ; then
11723 LD_FOR_TARGET="$2"
11724 else
11725 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11727 else
11728 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11731 else
11732 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11738 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11739 if test -n "$with_build_time_tools"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11741 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11742 if test -x $with_build_time_tools/lipo; then
11743 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11744 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11746 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11751 elif test $build != $host && test $have_gcc_for_target = yes; then
11752 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11753 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11754 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11757 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11758 # Extract the first word of "lipo", so it can be a program name with args.
11759 set dummy lipo; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 $as_echo_n "checking for $ac_word... " >&6; }
11762 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 case $LIPO_FOR_TARGET in
11766 [\\/]* | ?:[\\/]*)
11767 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $gcc_cv_tool_dirs
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11777 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11779 break 2
11781 done
11782 done
11783 IFS=$as_save_IFS
11786 esac
11788 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11789 if test -n "$LIPO_FOR_TARGET"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11791 $as_echo "$LIPO_FOR_TARGET" >&6; }
11792 else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11799 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11802 if test -n "$LIPO_FOR_TARGET"; then
11803 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11804 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11805 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11808 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11809 for ncn_progname in lipo; do
11810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11811 set dummy ${ncn_progname}; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 if test -n "$LIPO_FOR_TARGET"; then
11818 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11819 else
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11827 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11831 done
11832 done
11833 IFS=$as_save_IFS
11837 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11838 if test -n "$LIPO_FOR_TARGET"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11840 $as_echo "$LIPO_FOR_TARGET" >&6; }
11841 else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11847 done
11850 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11851 for ncn_progname in lipo; do
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11853 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11854 if test -x $with_build_time_tools/${ncn_progname}; then
11855 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11857 $as_echo "yes" >&6; }
11858 break
11859 else
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11863 done
11866 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11867 for ncn_progname in lipo; do
11868 if test -n "$ncn_target_tool_prefix"; then
11869 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11870 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 if test -n "$LIPO_FOR_TARGET"; then
11877 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11886 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11890 done
11891 done
11892 IFS=$as_save_IFS
11896 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11897 if test -n "$LIPO_FOR_TARGET"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11899 $as_echo "$LIPO_FOR_TARGET" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11907 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11909 set dummy ${ncn_progname}; ac_word=$2
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911 $as_echo_n "checking for $ac_word... " >&6; }
11912 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 if test -n "$LIPO_FOR_TARGET"; then
11916 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11917 else
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11921 IFS=$as_save_IFS
11922 test -z "$as_dir" && as_dir=.
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11925 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11927 break 2
11929 done
11930 done
11931 IFS=$as_save_IFS
11935 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11936 if test -n "$LIPO_FOR_TARGET"; then
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11938 $as_echo "$LIPO_FOR_TARGET" >&6; }
11939 else
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 $as_echo "no" >&6; }
11946 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11947 done
11950 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11951 set dummy lipo
11952 if test $build = $target ; then
11953 LIPO_FOR_TARGET="$2"
11954 else
11955 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11957 else
11958 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11961 else
11962 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11968 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11969 if test -n "$with_build_time_tools"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11971 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11972 if test -x $with_build_time_tools/nm; then
11973 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11974 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11976 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11981 elif test $build != $host && test $have_gcc_for_target = yes; then
11982 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11983 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11984 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11987 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11988 # Extract the first word of "nm", so it can be a program name with args.
11989 set dummy nm; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 case $NM_FOR_TARGET in
11996 [\\/]* | ?:[\\/]*)
11997 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $gcc_cv_tool_dirs
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12007 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12009 break 2
12011 done
12012 done
12013 IFS=$as_save_IFS
12016 esac
12018 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12019 if test -n "$NM_FOR_TARGET"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12021 $as_echo "$NM_FOR_TARGET" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12029 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12032 if test -n "$NM_FOR_TARGET"; then
12033 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12034 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12035 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12038 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12039 for ncn_progname in nm; do
12040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12041 set dummy ${ncn_progname}; ac_word=$2
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043 $as_echo_n "checking for $ac_word... " >&6; }
12044 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12045 $as_echo_n "(cached) " >&6
12046 else
12047 if test -n "$NM_FOR_TARGET"; then
12048 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12049 else
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12057 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 break 2
12061 done
12062 done
12063 IFS=$as_save_IFS
12067 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12068 if test -n "$NM_FOR_TARGET"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12070 $as_echo "$NM_FOR_TARGET" >&6; }
12071 else
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12077 done
12080 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12081 for ncn_progname in nm; do
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12083 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12084 if test -x $with_build_time_tools/${ncn_progname}; then
12085 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12087 $as_echo "yes" >&6; }
12088 break
12089 else
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12093 done
12096 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12097 for ncn_progname in nm; do
12098 if test -n "$ncn_target_tool_prefix"; then
12099 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12100 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 if test -n "$NM_FOR_TARGET"; then
12107 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12108 else
12109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110 for as_dir in $PATH
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12116 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 break 2
12120 done
12121 done
12122 IFS=$as_save_IFS
12126 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12127 if test -n "$NM_FOR_TARGET"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12129 $as_echo "$NM_FOR_TARGET" >&6; }
12130 else
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12137 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12139 set dummy ${ncn_progname}; ac_word=$2
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141 $as_echo_n "checking for $ac_word... " >&6; }
12142 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 if test -n "$NM_FOR_TARGET"; then
12146 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12147 else
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12155 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12159 done
12160 done
12161 IFS=$as_save_IFS
12165 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12166 if test -n "$NM_FOR_TARGET"; then
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12168 $as_echo "$NM_FOR_TARGET" >&6; }
12169 else
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171 $as_echo "no" >&6; }
12176 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12177 done
12180 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12181 set dummy nm
12182 if test $build = $target ; then
12183 NM_FOR_TARGET="$2"
12184 else
12185 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12187 else
12188 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12191 else
12192 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12198 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12199 if test -n "$with_build_time_tools"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12201 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12202 if test -x $with_build_time_tools/objcopy; then
12203 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12204 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12206 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12211 elif test $build != $host && test $have_gcc_for_target = yes; then
12212 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12213 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12214 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12217 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12218 # Extract the first word of "objcopy", so it can be a program name with args.
12219 set dummy objcopy; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 case $OBJCOPY_FOR_TARGET in
12226 [\\/]* | ?:[\\/]*)
12227 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $gcc_cv_tool_dirs
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12241 done
12242 done
12243 IFS=$as_save_IFS
12246 esac
12248 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12249 if test -n "$OBJCOPY_FOR_TARGET"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12251 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12252 else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254 $as_echo "no" >&6; }
12259 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12262 if test -n "$OBJCOPY_FOR_TARGET"; then
12263 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12264 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12265 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12268 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12269 for ncn_progname in objcopy; do
12270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12271 set dummy ${ncn_progname}; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 if test -n "$OBJCOPY_FOR_TARGET"; then
12278 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12279 else
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12291 done
12292 done
12293 IFS=$as_save_IFS
12297 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12298 if test -n "$OBJCOPY_FOR_TARGET"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12300 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12307 done
12310 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12311 for ncn_progname in objcopy; do
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12313 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12314 if test -x $with_build_time_tools/${ncn_progname}; then
12315 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12317 $as_echo "yes" >&6; }
12318 break
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12323 done
12326 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12327 for ncn_progname in objcopy; do
12328 if test -n "$ncn_target_tool_prefix"; then
12329 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12330 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 $as_echo_n "checking for $ac_word... " >&6; }
12333 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 if test -n "$OBJCOPY_FOR_TARGET"; then
12337 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12338 else
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12346 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 break 2
12350 done
12351 done
12352 IFS=$as_save_IFS
12356 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12357 if test -n "$OBJCOPY_FOR_TARGET"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12359 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12367 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12369 set dummy ${ncn_progname}; ac_word=$2
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371 $as_echo_n "checking for $ac_word... " >&6; }
12372 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12373 $as_echo_n "(cached) " >&6
12374 else
12375 if test -n "$OBJCOPY_FOR_TARGET"; then
12376 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12377 else
12378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379 for as_dir in $PATH
12381 IFS=$as_save_IFS
12382 test -z "$as_dir" && as_dir=.
12383 for ac_exec_ext in '' $ac_executable_extensions; do
12384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12385 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12387 break 2
12389 done
12390 done
12391 IFS=$as_save_IFS
12395 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12396 if test -n "$OBJCOPY_FOR_TARGET"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12398 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12399 else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401 $as_echo "no" >&6; }
12406 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12407 done
12410 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12411 set dummy objcopy
12412 if test $build = $target ; then
12413 OBJCOPY_FOR_TARGET="$2"
12414 else
12415 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12417 else
12418 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12421 else
12422 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12428 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12429 if test -n "$with_build_time_tools"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12431 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12432 if test -x $with_build_time_tools/objdump; then
12433 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12434 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12436 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12441 elif test $build != $host && test $have_gcc_for_target = yes; then
12442 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12443 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12444 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12447 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12448 # Extract the first word of "objdump", so it can be a program name with args.
12449 set dummy objdump; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 case $OBJDUMP_FOR_TARGET in
12456 [\\/]* | ?:[\\/]*)
12457 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $gcc_cv_tool_dirs
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12471 done
12472 done
12473 IFS=$as_save_IFS
12476 esac
12478 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12479 if test -n "$OBJDUMP_FOR_TARGET"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12481 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12482 else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484 $as_echo "no" >&6; }
12489 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12492 if test -n "$OBJDUMP_FOR_TARGET"; then
12493 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12494 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12495 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12498 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12499 for ncn_progname in objdump; do
12500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12501 set dummy ${ncn_progname}; ac_word=$2
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503 $as_echo_n "checking for $ac_word... " >&6; }
12504 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 if test -n "$OBJDUMP_FOR_TARGET"; then
12508 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12509 else
12510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511 for as_dir in $PATH
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12517 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 break 2
12521 done
12522 done
12523 IFS=$as_save_IFS
12527 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12528 if test -n "$OBJDUMP_FOR_TARGET"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12530 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12531 else
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12537 done
12540 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12541 for ncn_progname in objdump; do
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12543 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12544 if test -x $with_build_time_tools/${ncn_progname}; then
12545 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547 $as_echo "yes" >&6; }
12548 break
12549 else
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12553 done
12556 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12557 for ncn_progname in objdump; do
12558 if test -n "$ncn_target_tool_prefix"; then
12559 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12560 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562 $as_echo_n "checking for $ac_word... " >&6; }
12563 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 if test -n "$OBJDUMP_FOR_TARGET"; then
12567 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12568 else
12569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12576 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578 break 2
12580 done
12581 done
12582 IFS=$as_save_IFS
12586 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12587 if test -n "$OBJDUMP_FOR_TARGET"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12589 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12590 else
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12597 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12599 set dummy ${ncn_progname}; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 if test -n "$OBJDUMP_FOR_TARGET"; then
12606 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12607 else
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
12613 for ac_exec_ext in '' $ac_executable_extensions; do
12614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12615 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617 break 2
12619 done
12620 done
12621 IFS=$as_save_IFS
12625 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12626 if test -n "$OBJDUMP_FOR_TARGET"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12628 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12629 else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12636 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12637 done
12640 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12641 set dummy objdump
12642 if test $build = $target ; then
12643 OBJDUMP_FOR_TARGET="$2"
12644 else
12645 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12647 else
12648 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12651 else
12652 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12658 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12659 if test -n "$with_build_time_tools"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12661 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12662 if test -x $with_build_time_tools/ranlib; then
12663 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12664 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12666 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12667 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12671 elif test $build != $host && test $have_gcc_for_target = yes; then
12672 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12673 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12674 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12677 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12678 # Extract the first word of "ranlib", so it can be a program name with args.
12679 set dummy ranlib; ac_word=$2
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12681 $as_echo_n "checking for $ac_word... " >&6; }
12682 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685 case $RANLIB_FOR_TARGET in
12686 [\\/]* | ?:[\\/]*)
12687 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691 for as_dir in $gcc_cv_tool_dirs
12693 IFS=$as_save_IFS
12694 test -z "$as_dir" && as_dir=.
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12697 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12699 break 2
12701 done
12702 done
12703 IFS=$as_save_IFS
12706 esac
12708 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12709 if test -n "$RANLIB_FOR_TARGET"; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12711 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12712 else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12719 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12722 if test -n "$RANLIB_FOR_TARGET"; then
12723 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12724 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12725 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12728 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12729 for ncn_progname in ranlib; do
12730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12731 set dummy ${ncn_progname}; ac_word=$2
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733 $as_echo_n "checking for $ac_word... " >&6; }
12734 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12737 if test -n "$RANLIB_FOR_TARGET"; then
12738 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12739 else
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12747 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749 break 2
12751 done
12752 done
12753 IFS=$as_save_IFS
12757 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12758 if test -n "$RANLIB_FOR_TARGET"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12760 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12767 done
12770 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12771 for ncn_progname in ranlib; do
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12773 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12774 if test -x $with_build_time_tools/${ncn_progname}; then
12775 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12777 $as_echo "yes" >&6; }
12778 break
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12783 done
12786 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12787 for ncn_progname in ranlib; do
12788 if test -n "$ncn_target_tool_prefix"; then
12789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12790 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
12795 else
12796 if test -n "$RANLIB_FOR_TARGET"; then
12797 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12798 else
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12806 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808 break 2
12810 done
12811 done
12812 IFS=$as_save_IFS
12816 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12817 if test -n "$RANLIB_FOR_TARGET"; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12819 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12820 else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12827 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12829 set dummy ${ncn_progname}; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 if test -n "$RANLIB_FOR_TARGET"; then
12836 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12837 else
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in $PATH
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
12844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12845 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 break 2
12849 done
12850 done
12851 IFS=$as_save_IFS
12855 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12856 if test -n "$RANLIB_FOR_TARGET"; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12858 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12859 else
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861 $as_echo "no" >&6; }
12866 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12867 done
12870 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12871 set dummy ranlib
12872 if test $build = $target ; then
12873 RANLIB_FOR_TARGET="$2"
12874 else
12875 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12877 else
12878 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12881 else
12882 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12888 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12889 if test -n "$with_build_time_tools"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12891 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12892 if test -x $with_build_time_tools/readelf; then
12893 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12894 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12896 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899 $as_echo "no" >&6; }
12901 elif test $build != $host && test $have_gcc_for_target = yes; then
12902 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12903 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12904 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12907 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12908 # Extract the first word of "readelf", so it can be a program name with args.
12909 set dummy readelf; ac_word=$2
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12911 $as_echo_n "checking for $ac_word... " >&6; }
12912 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12914 else
12915 case $READELF_FOR_TARGET in
12916 [\\/]* | ?:[\\/]*)
12917 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921 for as_dir in $gcc_cv_tool_dirs
12923 IFS=$as_save_IFS
12924 test -z "$as_dir" && as_dir=.
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12927 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12929 break 2
12931 done
12932 done
12933 IFS=$as_save_IFS
12936 esac
12938 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12939 if test -n "$READELF_FOR_TARGET"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12941 $as_echo "$READELF_FOR_TARGET" >&6; }
12942 else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 $as_echo "no" >&6; }
12949 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12952 if test -n "$READELF_FOR_TARGET"; then
12953 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12954 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12955 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12958 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12959 for ncn_progname in readelf; do
12960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12961 set dummy ${ncn_progname}; ac_word=$2
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963 $as_echo_n "checking for $ac_word... " >&6; }
12964 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 if test -n "$READELF_FOR_TARGET"; then
12968 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12969 else
12970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971 for as_dir in $PATH
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
12975 for ac_exec_ext in '' $ac_executable_extensions; do
12976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12977 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979 break 2
12981 done
12982 done
12983 IFS=$as_save_IFS
12987 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12988 if test -n "$READELF_FOR_TARGET"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12990 $as_echo "$READELF_FOR_TARGET" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12997 done
13000 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13001 for ncn_progname in readelf; do
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13003 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13004 if test -x $with_build_time_tools/${ncn_progname}; then
13005 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13007 $as_echo "yes" >&6; }
13008 break
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011 $as_echo "no" >&6; }
13013 done
13016 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13017 for ncn_progname in readelf; do
13018 if test -n "$ncn_target_tool_prefix"; then
13019 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13020 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022 $as_echo_n "checking for $ac_word... " >&6; }
13023 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 if test -n "$READELF_FOR_TARGET"; then
13027 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13028 else
13029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030 for as_dir in $PATH
13032 IFS=$as_save_IFS
13033 test -z "$as_dir" && as_dir=.
13034 for ac_exec_ext in '' $ac_executable_extensions; do
13035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13036 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038 break 2
13040 done
13041 done
13042 IFS=$as_save_IFS
13046 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13047 if test -n "$READELF_FOR_TARGET"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13049 $as_echo "$READELF_FOR_TARGET" >&6; }
13050 else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13057 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13059 set dummy ${ncn_progname}; ac_word=$2
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061 $as_echo_n "checking for $ac_word... " >&6; }
13062 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13063 $as_echo_n "(cached) " >&6
13064 else
13065 if test -n "$READELF_FOR_TARGET"; then
13066 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13067 else
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in $PATH
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13079 done
13080 done
13081 IFS=$as_save_IFS
13085 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13086 if test -n "$READELF_FOR_TARGET"; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13088 $as_echo "$READELF_FOR_TARGET" >&6; }
13089 else
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13096 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13097 done
13100 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13101 set dummy readelf
13102 if test $build = $target ; then
13103 READELF_FOR_TARGET="$2"
13104 else
13105 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13107 else
13108 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13111 else
13112 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13118 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13119 if test -n "$with_build_time_tools"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13121 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13122 if test -x $with_build_time_tools/strip; then
13123 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13124 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13126 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13131 elif test $build != $host && test $have_gcc_for_target = yes; then
13132 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13133 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13134 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13137 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13138 # Extract the first word of "strip", so it can be a program name with args.
13139 set dummy strip; ac_word=$2
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13141 $as_echo_n "checking for $ac_word... " >&6; }
13142 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 case $STRIP_FOR_TARGET in
13146 [\\/]* | ?:[\\/]*)
13147 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151 for as_dir in $gcc_cv_tool_dirs
13153 IFS=$as_save_IFS
13154 test -z "$as_dir" && as_dir=.
13155 for ac_exec_ext in '' $ac_executable_extensions; do
13156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13157 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13159 break 2
13161 done
13162 done
13163 IFS=$as_save_IFS
13166 esac
13168 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13169 if test -n "$STRIP_FOR_TARGET"; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13171 $as_echo "$STRIP_FOR_TARGET" >&6; }
13172 else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 $as_echo "no" >&6; }
13179 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13182 if test -n "$STRIP_FOR_TARGET"; then
13183 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13184 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13185 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13188 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13189 for ncn_progname in strip; do
13190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13191 set dummy ${ncn_progname}; ac_word=$2
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193 $as_echo_n "checking for $ac_word... " >&6; }
13194 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197 if test -n "$STRIP_FOR_TARGET"; then
13198 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13199 else
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13207 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 break 2
13211 done
13212 done
13213 IFS=$as_save_IFS
13217 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13218 if test -n "$STRIP_FOR_TARGET"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13220 $as_echo "$STRIP_FOR_TARGET" >&6; }
13221 else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223 $as_echo "no" >&6; }
13227 done
13230 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13231 for ncn_progname in strip; do
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13233 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13234 if test -x $with_build_time_tools/${ncn_progname}; then
13235 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13237 $as_echo "yes" >&6; }
13238 break
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13243 done
13246 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13247 for ncn_progname in strip; do
13248 if test -n "$ncn_target_tool_prefix"; then
13249 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13250 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252 $as_echo_n "checking for $ac_word... " >&6; }
13253 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 if test -n "$STRIP_FOR_TARGET"; then
13257 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13258 else
13259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13266 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13270 done
13271 done
13272 IFS=$as_save_IFS
13276 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13277 if test -n "$STRIP_FOR_TARGET"; then
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13279 $as_echo "$STRIP_FOR_TARGET" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13287 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13289 set dummy ${ncn_progname}; ac_word=$2
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291 $as_echo_n "checking for $ac_word... " >&6; }
13292 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 if test -n "$STRIP_FOR_TARGET"; then
13296 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13297 else
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299 for as_dir in $PATH
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13305 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13309 done
13310 done
13311 IFS=$as_save_IFS
13315 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13316 if test -n "$STRIP_FOR_TARGET"; then
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13318 $as_echo "$STRIP_FOR_TARGET" >&6; }
13319 else
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13326 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13327 done
13330 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13331 set dummy strip
13332 if test $build = $target ; then
13333 STRIP_FOR_TARGET="$2"
13334 else
13335 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13337 else
13338 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13341 else
13342 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13348 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13349 if test -n "$with_build_time_tools"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13351 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13352 if test -x $with_build_time_tools/windres; then
13353 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13354 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13356 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13357 else
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13361 elif test $build != $host && test $have_gcc_for_target = yes; then
13362 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13363 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13364 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13367 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13368 # Extract the first word of "windres", so it can be a program name with args.
13369 set dummy windres; ac_word=$2
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371 $as_echo_n "checking for $ac_word... " >&6; }
13372 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 case $WINDRES_FOR_TARGET in
13376 [\\/]* | ?:[\\/]*)
13377 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $gcc_cv_tool_dirs
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13391 done
13392 done
13393 IFS=$as_save_IFS
13396 esac
13398 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13399 if test -n "$WINDRES_FOR_TARGET"; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13401 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13402 else
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404 $as_echo "no" >&6; }
13409 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13412 if test -n "$WINDRES_FOR_TARGET"; then
13413 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13414 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13415 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13418 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13419 for ncn_progname in windres; do
13420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13421 set dummy ${ncn_progname}; ac_word=$2
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423 $as_echo_n "checking for $ac_word... " >&6; }
13424 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 if test -n "$WINDRES_FOR_TARGET"; then
13428 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13429 else
13430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431 for as_dir in $PATH
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13437 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 break 2
13441 done
13442 done
13443 IFS=$as_save_IFS
13447 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13448 if test -n "$WINDRES_FOR_TARGET"; then
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13450 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13451 else
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13457 done
13460 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13461 for ncn_progname in windres; do
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13463 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13464 if test -x $with_build_time_tools/${ncn_progname}; then
13465 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13467 $as_echo "yes" >&6; }
13468 break
13469 else
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13473 done
13476 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13477 for ncn_progname in windres; do
13478 if test -n "$ncn_target_tool_prefix"; then
13479 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13480 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13482 $as_echo_n "checking for $ac_word... " >&6; }
13483 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 if test -n "$WINDRES_FOR_TARGET"; then
13487 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13488 else
13489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490 for as_dir in $PATH
13492 IFS=$as_save_IFS
13493 test -z "$as_dir" && as_dir=.
13494 for ac_exec_ext in '' $ac_executable_extensions; do
13495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13496 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13498 break 2
13500 done
13501 done
13502 IFS=$as_save_IFS
13506 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13507 if test -n "$WINDRES_FOR_TARGET"; then
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13509 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13510 else
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 $as_echo "no" >&6; }
13517 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13519 set dummy ${ncn_progname}; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13525 if test -n "$WINDRES_FOR_TARGET"; then
13526 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13527 else
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13535 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13539 done
13540 done
13541 IFS=$as_save_IFS
13545 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13546 if test -n "$WINDRES_FOR_TARGET"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13548 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13549 else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13556 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13557 done
13560 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13561 set dummy windres
13562 if test $build = $target ; then
13563 WINDRES_FOR_TARGET="$2"
13564 else
13565 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13567 else
13568 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13571 else
13572 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13578 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13579 if test -n "$with_build_time_tools"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13581 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13582 if test -x $with_build_time_tools/windmc; then
13583 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13584 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13586 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13587 else
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589 $as_echo "no" >&6; }
13591 elif test $build != $host && test $have_gcc_for_target = yes; then
13592 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13593 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13594 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13597 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13598 # Extract the first word of "windmc", so it can be a program name with args.
13599 set dummy windmc; ac_word=$2
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13601 $as_echo_n "checking for $ac_word... " >&6; }
13602 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 case $WINDMC_FOR_TARGET in
13606 [\\/]* | ?:[\\/]*)
13607 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611 for as_dir in $gcc_cv_tool_dirs
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13617 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13619 break 2
13621 done
13622 done
13623 IFS=$as_save_IFS
13626 esac
13628 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13629 if test -n "$WINDMC_FOR_TARGET"; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13631 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13632 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634 $as_echo "no" >&6; }
13639 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13642 if test -n "$WINDMC_FOR_TARGET"; then
13643 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13644 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13645 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13648 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13649 for ncn_progname in windmc; do
13650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13651 set dummy ${ncn_progname}; ac_word=$2
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13653 $as_echo_n "checking for $ac_word... " >&6; }
13654 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 if test -n "$WINDMC_FOR_TARGET"; then
13658 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13659 else
13660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13663 IFS=$as_save_IFS
13664 test -z "$as_dir" && as_dir=.
13665 for ac_exec_ext in '' $ac_executable_extensions; do
13666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13667 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13669 break 2
13671 done
13672 done
13673 IFS=$as_save_IFS
13677 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13678 if test -n "$WINDMC_FOR_TARGET"; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13680 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13681 else
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13683 $as_echo "no" >&6; }
13687 done
13690 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13691 for ncn_progname in windmc; do
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13693 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13694 if test -x $with_build_time_tools/${ncn_progname}; then
13695 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13697 $as_echo "yes" >&6; }
13698 break
13699 else
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701 $as_echo "no" >&6; }
13703 done
13706 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13707 for ncn_progname in windmc; do
13708 if test -n "$ncn_target_tool_prefix"; then
13709 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13710 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712 $as_echo_n "checking for $ac_word... " >&6; }
13713 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 if test -n "$WINDMC_FOR_TARGET"; then
13717 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13718 else
13719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720 for as_dir in $PATH
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13726 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13730 done
13731 done
13732 IFS=$as_save_IFS
13736 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13737 if test -n "$WINDMC_FOR_TARGET"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13739 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13740 else
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742 $as_echo "no" >&6; }
13747 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13749 set dummy ${ncn_progname}; ac_word=$2
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751 $as_echo_n "checking for $ac_word... " >&6; }
13752 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
13754 else
13755 if test -n "$WINDMC_FOR_TARGET"; then
13756 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13757 else
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13765 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13769 done
13770 done
13771 IFS=$as_save_IFS
13775 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13776 if test -n "$WINDMC_FOR_TARGET"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13778 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13779 else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13786 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13787 done
13790 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13791 set dummy windmc
13792 if test $build = $target ; then
13793 WINDMC_FOR_TARGET="$2"
13794 else
13795 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13797 else
13798 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13801 else
13802 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13806 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13809 $as_echo_n "checking where to find the target ar... " >&6; }
13810 if test "x${build}" != "x${host}" ; then
13811 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13812 # We already found the complete path
13813 ac_dir=`dirname $AR_FOR_TARGET`
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13815 $as_echo "pre-installed in $ac_dir" >&6; }
13816 else
13817 # Canadian cross, just use what we found
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13819 $as_echo "pre-installed" >&6; }
13821 else
13822 ok=yes
13823 case " ${configdirs} " in
13824 *" binutils "*) ;;
13825 *) ok=no ;;
13826 esac
13828 if test $ok = yes; then
13829 # An in-tree tool is available and we can use it
13830 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13832 $as_echo "just compiled" >&6; }
13833 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
13835 ac_dir=`dirname $AR_FOR_TARGET`
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837 $as_echo "pre-installed in $ac_dir" >&6; }
13838 elif test "x$target" = "x$host"; then
13839 # We can use an host tool
13840 AR_FOR_TARGET='$(AR)'
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13842 $as_echo "host tool" >&6; }
13843 else
13844 # We need a cross tool
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846 $as_echo "pre-installed" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13851 $as_echo_n "checking where to find the target as... " >&6; }
13852 if test "x${build}" != "x${host}" ; then
13853 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13854 # We already found the complete path
13855 ac_dir=`dirname $AS_FOR_TARGET`
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13857 $as_echo "pre-installed in $ac_dir" >&6; }
13858 else
13859 # Canadian cross, just use what we found
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13861 $as_echo "pre-installed" >&6; }
13863 else
13864 ok=yes
13865 case " ${configdirs} " in
13866 *" gas "*) ;;
13867 *) ok=no ;;
13868 esac
13870 if test $ok = yes; then
13871 # An in-tree tool is available and we can use it
13872 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13874 $as_echo "just compiled" >&6; }
13875 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13876 # We already found the complete path
13877 ac_dir=`dirname $AS_FOR_TARGET`
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13879 $as_echo "pre-installed in $ac_dir" >&6; }
13880 elif test "x$target" = "x$host"; then
13881 # We can use an host tool
13882 AS_FOR_TARGET='$(AS)'
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13884 $as_echo "host tool" >&6; }
13885 else
13886 # We need a cross tool
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13888 $as_echo "pre-installed" >&6; }
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13893 $as_echo_n "checking where to find the target cc... " >&6; }
13894 if test "x${build}" != "x${host}" ; then
13895 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13896 # We already found the complete path
13897 ac_dir=`dirname $CC_FOR_TARGET`
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13899 $as_echo "pre-installed in $ac_dir" >&6; }
13900 else
13901 # Canadian cross, just use what we found
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13903 $as_echo "pre-installed" >&6; }
13905 else
13906 ok=yes
13907 case " ${configdirs} " in
13908 *" gcc "*) ;;
13909 *) ok=no ;;
13910 esac
13912 if test $ok = yes; then
13913 # An in-tree tool is available and we can use it
13914 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13916 $as_echo "just compiled" >&6; }
13917 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13918 # We already found the complete path
13919 ac_dir=`dirname $CC_FOR_TARGET`
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921 $as_echo "pre-installed in $ac_dir" >&6; }
13922 elif test "x$target" = "x$host"; then
13923 # We can use an host tool
13924 CC_FOR_TARGET='$(CC)'
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13926 $as_echo "host tool" >&6; }
13927 else
13928 # We need a cross tool
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13930 $as_echo "pre-installed" >&6; }
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13935 $as_echo_n "checking where to find the target c++... " >&6; }
13936 if test "x${build}" != "x${host}" ; then
13937 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
13939 ac_dir=`dirname $CXX_FOR_TARGET`
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941 $as_echo "pre-installed in $ac_dir" >&6; }
13942 else
13943 # Canadian cross, just use what we found
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945 $as_echo "pre-installed" >&6; }
13947 else
13948 ok=yes
13949 case " ${configdirs} " in
13950 *" gcc "*) ;;
13951 *) ok=no ;;
13952 esac
13953 case ,${enable_languages}, in
13954 *,c++,*) ;;
13955 *) ok=no ;;
13956 esac
13957 if test $ok = yes; then
13958 # An in-tree tool is available and we can use it
13959 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'
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961 $as_echo "just compiled" >&6; }
13962 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
13964 ac_dir=`dirname $CXX_FOR_TARGET`
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966 $as_echo "pre-installed in $ac_dir" >&6; }
13967 elif test "x$target" = "x$host"; then
13968 # We can use an host tool
13969 CXX_FOR_TARGET='$(CXX)'
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971 $as_echo "host tool" >&6; }
13972 else
13973 # We need a cross tool
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975 $as_echo "pre-installed" >&6; }
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13980 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13981 if test "x${build}" != "x${host}" ; then
13982 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
13984 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986 $as_echo "pre-installed in $ac_dir" >&6; }
13987 else
13988 # Canadian cross, just use what we found
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990 $as_echo "pre-installed" >&6; }
13992 else
13993 ok=yes
13994 case " ${configdirs} " in
13995 *" gcc "*) ;;
13996 *) ok=no ;;
13997 esac
13998 case ,${enable_languages}, in
13999 *,c++,*) ;;
14000 *) ok=no ;;
14001 esac
14002 if test $ok = yes; then
14003 # An in-tree tool is available and we can use it
14004 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'
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14006 $as_echo "just compiled" >&6; }
14007 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
14009 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011 $as_echo "pre-installed in $ac_dir" >&6; }
14012 elif test "x$target" = "x$host"; then
14013 # We can use an host tool
14014 RAW_CXX_FOR_TARGET='$(CXX)'
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14016 $as_echo "host tool" >&6; }
14017 else
14018 # We need a cross tool
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020 $as_echo "pre-installed" >&6; }
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14025 $as_echo_n "checking where to find the target dlltool... " >&6; }
14026 if test "x${build}" != "x${host}" ; then
14027 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14028 # We already found the complete path
14029 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14031 $as_echo "pre-installed in $ac_dir" >&6; }
14032 else
14033 # Canadian cross, just use what we found
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14035 $as_echo "pre-installed" >&6; }
14037 else
14038 ok=yes
14039 case " ${configdirs} " in
14040 *" binutils "*) ;;
14041 *) ok=no ;;
14042 esac
14044 if test $ok = yes; then
14045 # An in-tree tool is available and we can use it
14046 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14048 $as_echo "just compiled" >&6; }
14049 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14050 # We already found the complete path
14051 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14053 $as_echo "pre-installed in $ac_dir" >&6; }
14054 elif test "x$target" = "x$host"; then
14055 # We can use an host tool
14056 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14058 $as_echo "host tool" >&6; }
14059 else
14060 # We need a cross tool
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14062 $as_echo "pre-installed" >&6; }
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14067 $as_echo_n "checking where to find the target gcc... " >&6; }
14068 if test "x${build}" != "x${host}" ; then
14069 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14070 # We already found the complete path
14071 ac_dir=`dirname $GCC_FOR_TARGET`
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14073 $as_echo "pre-installed in $ac_dir" >&6; }
14074 else
14075 # Canadian cross, just use what we found
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14077 $as_echo "pre-installed" >&6; }
14079 else
14080 ok=yes
14081 case " ${configdirs} " in
14082 *" gcc "*) ;;
14083 *) ok=no ;;
14084 esac
14086 if test $ok = yes; then
14087 # An in-tree tool is available and we can use it
14088 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14090 $as_echo "just compiled" >&6; }
14091 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14092 # We already found the complete path
14093 ac_dir=`dirname $GCC_FOR_TARGET`
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14095 $as_echo "pre-installed in $ac_dir" >&6; }
14096 elif test "x$target" = "x$host"; then
14097 # We can use an host tool
14098 GCC_FOR_TARGET='$()'
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14100 $as_echo "host tool" >&6; }
14101 else
14102 # We need a cross tool
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104 $as_echo "pre-installed" >&6; }
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14109 $as_echo_n "checking where to find the target gfortran... " >&6; }
14110 if test "x${build}" != "x${host}" ; then
14111 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14112 # We already found the complete path
14113 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14115 $as_echo "pre-installed in $ac_dir" >&6; }
14116 else
14117 # Canadian cross, just use what we found
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14119 $as_echo "pre-installed" >&6; }
14121 else
14122 ok=yes
14123 case " ${configdirs} " in
14124 *" gcc "*) ;;
14125 *) ok=no ;;
14126 esac
14127 case ,${enable_languages}, in
14128 *,fortran,*) ;;
14129 *) ok=no ;;
14130 esac
14131 if test $ok = yes; then
14132 # An in-tree tool is available and we can use it
14133 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14135 $as_echo "just compiled" >&6; }
14136 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
14138 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140 $as_echo "pre-installed in $ac_dir" >&6; }
14141 elif test "x$target" = "x$host"; then
14142 # We can use an host tool
14143 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14145 $as_echo "host tool" >&6; }
14146 else
14147 # We need a cross tool
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149 $as_echo "pre-installed" >&6; }
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14154 $as_echo_n "checking where to find the target gccgo... " >&6; }
14155 if test "x${build}" != "x${host}" ; then
14156 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14157 # We already found the complete path
14158 ac_dir=`dirname $GOC_FOR_TARGET`
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14160 $as_echo "pre-installed in $ac_dir" >&6; }
14161 else
14162 # Canadian cross, just use what we found
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14164 $as_echo "pre-installed" >&6; }
14166 else
14167 ok=yes
14168 case " ${configdirs} " in
14169 *" gcc "*) ;;
14170 *) ok=no ;;
14171 esac
14172 case ,${enable_languages}, in
14173 *,go,*) ;;
14174 *) ok=no ;;
14175 esac
14176 if test $ok = yes; then
14177 # An in-tree tool is available and we can use it
14178 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14180 $as_echo "just compiled" >&6; }
14181 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $GOC_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185 $as_echo "pre-installed in $ac_dir" >&6; }
14186 elif test "x$target" = "x$host"; then
14187 # We can use an host tool
14188 GOC_FOR_TARGET='$(GOC)'
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14190 $as_echo "host tool" >&6; }
14191 else
14192 # We need a cross tool
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14194 $as_echo "pre-installed" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14199 $as_echo_n "checking where to find the target ld... " >&6; }
14200 if test "x${build}" != "x${host}" ; then
14201 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14202 # We already found the complete path
14203 ac_dir=`dirname $LD_FOR_TARGET`
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14205 $as_echo "pre-installed in $ac_dir" >&6; }
14206 else
14207 # Canadian cross, just use what we found
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14209 $as_echo "pre-installed" >&6; }
14211 else
14212 ok=yes
14213 case " ${configdirs} " in
14214 *" ld "*) ;;
14215 *) ok=no ;;
14216 esac
14218 if test $ok = yes; then
14219 # An in-tree tool is available and we can use it
14220 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14222 $as_echo "just compiled" >&6; }
14223 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
14225 ac_dir=`dirname $LD_FOR_TARGET`
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227 $as_echo "pre-installed in $ac_dir" >&6; }
14228 elif test "x$target" = "x$host"; then
14229 # We can use an host tool
14230 LD_FOR_TARGET='$(LD)'
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14232 $as_echo "host tool" >&6; }
14233 else
14234 # We need a cross tool
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14236 $as_echo "pre-installed" >&6; }
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14241 $as_echo_n "checking where to find the target lipo... " >&6; }
14242 if test "x${build}" != "x${host}" ; then
14243 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14244 # We already found the complete path
14245 ac_dir=`dirname $LIPO_FOR_TARGET`
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14247 $as_echo "pre-installed in $ac_dir" >&6; }
14248 else
14249 # Canadian cross, just use what we found
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14251 $as_echo "pre-installed" >&6; }
14253 else
14254 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
14256 ac_dir=`dirname $LIPO_FOR_TARGET`
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258 $as_echo "pre-installed in $ac_dir" >&6; }
14259 elif test "x$target" = "x$host"; then
14260 # We can use an host tool
14261 LIPO_FOR_TARGET='$(LIPO)'
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14263 $as_echo "host tool" >&6; }
14264 else
14265 # We need a cross tool
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14267 $as_echo "pre-installed" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14272 $as_echo_n "checking where to find the target nm... " >&6; }
14273 if test "x${build}" != "x${host}" ; then
14274 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
14276 ac_dir=`dirname $NM_FOR_TARGET`
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278 $as_echo "pre-installed in $ac_dir" >&6; }
14279 else
14280 # Canadian cross, just use what we found
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14282 $as_echo "pre-installed" >&6; }
14284 else
14285 ok=yes
14286 case " ${configdirs} " in
14287 *" binutils "*) ;;
14288 *) ok=no ;;
14289 esac
14291 if test $ok = yes; then
14292 # An in-tree tool is available and we can use it
14293 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14295 $as_echo "just compiled" >&6; }
14296 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $NM_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300 $as_echo "pre-installed in $ac_dir" >&6; }
14301 elif test "x$target" = "x$host"; then
14302 # We can use an host tool
14303 NM_FOR_TARGET='$(NM)'
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14305 $as_echo "host tool" >&6; }
14306 else
14307 # We need a cross tool
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309 $as_echo "pre-installed" >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14314 $as_echo_n "checking where to find the target objcopy... " >&6; }
14315 if test "x${build}" != "x${host}" ; then
14316 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320 $as_echo "pre-installed in $ac_dir" >&6; }
14321 else
14322 # Canadian cross, just use what we found
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324 $as_echo "pre-installed" >&6; }
14326 else
14327 ok=yes
14328 case " ${configdirs} " in
14329 *" binutils "*) ;;
14330 *) ok=no ;;
14331 esac
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337 $as_echo "just compiled" >&6; }
14338 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342 $as_echo "pre-installed in $ac_dir" >&6; }
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
14345 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347 $as_echo "host tool" >&6; }
14348 else
14349 # We need a cross tool
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351 $as_echo "pre-installed" >&6; }
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14356 $as_echo_n "checking where to find the target objdump... " >&6; }
14357 if test "x${build}" != "x${host}" ; then
14358 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
14360 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362 $as_echo "pre-installed in $ac_dir" >&6; }
14363 else
14364 # Canadian cross, just use what we found
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366 $as_echo "pre-installed" >&6; }
14368 else
14369 ok=yes
14370 case " ${configdirs} " in
14371 *" binutils "*) ;;
14372 *) ok=no ;;
14373 esac
14375 if test $ok = yes; then
14376 # An in-tree tool is available and we can use it
14377 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14379 $as_echo "just compiled" >&6; }
14380 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
14382 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384 $as_echo "pre-installed in $ac_dir" >&6; }
14385 elif test "x$target" = "x$host"; then
14386 # We can use an host tool
14387 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14389 $as_echo "host tool" >&6; }
14390 else
14391 # We need a cross tool
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393 $as_echo "pre-installed" >&6; }
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14398 $as_echo_n "checking where to find the target ranlib... " >&6; }
14399 if test "x${build}" != "x${host}" ; then
14400 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
14402 ac_dir=`dirname $RANLIB_FOR_TARGET`
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404 $as_echo "pre-installed in $ac_dir" >&6; }
14405 else
14406 # Canadian cross, just use what we found
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408 $as_echo "pre-installed" >&6; }
14410 else
14411 ok=yes
14412 case " ${configdirs} " in
14413 *" binutils "*) ;;
14414 *) ok=no ;;
14415 esac
14417 if test $ok = yes; then
14418 # An in-tree tool is available and we can use it
14419 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14421 $as_echo "just compiled" >&6; }
14422 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $RANLIB_FOR_TARGET`
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426 $as_echo "pre-installed in $ac_dir" >&6; }
14427 elif test "x$target" = "x$host"; then
14428 # We can use an host tool
14429 RANLIB_FOR_TARGET='$(RANLIB)'
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14431 $as_echo "host tool" >&6; }
14432 else
14433 # We need a cross tool
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435 $as_echo "pre-installed" >&6; }
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14440 $as_echo_n "checking where to find the target readelf... " >&6; }
14441 if test "x${build}" != "x${host}" ; then
14442 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
14444 ac_dir=`dirname $READELF_FOR_TARGET`
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446 $as_echo "pre-installed in $ac_dir" >&6; }
14447 else
14448 # Canadian cross, just use what we found
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450 $as_echo "pre-installed" >&6; }
14452 else
14453 ok=yes
14454 case " ${configdirs} " in
14455 *" binutils "*) ;;
14456 *) ok=no ;;
14457 esac
14459 if test $ok = yes; then
14460 # An in-tree tool is available and we can use it
14461 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14463 $as_echo "just compiled" >&6; }
14464 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
14466 ac_dir=`dirname $READELF_FOR_TARGET`
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468 $as_echo "pre-installed in $ac_dir" >&6; }
14469 elif test "x$target" = "x$host"; then
14470 # We can use an host tool
14471 READELF_FOR_TARGET='$(READELF)'
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14473 $as_echo "host tool" >&6; }
14474 else
14475 # We need a cross tool
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477 $as_echo "pre-installed" >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14482 $as_echo_n "checking where to find the target strip... " >&6; }
14483 if test "x${build}" != "x${host}" ; then
14484 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14485 # We already found the complete path
14486 ac_dir=`dirname $STRIP_FOR_TARGET`
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14488 $as_echo "pre-installed in $ac_dir" >&6; }
14489 else
14490 # Canadian cross, just use what we found
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14492 $as_echo "pre-installed" >&6; }
14494 else
14495 ok=yes
14496 case " ${configdirs} " in
14497 *" binutils "*) ;;
14498 *) ok=no ;;
14499 esac
14501 if test $ok = yes; then
14502 # An in-tree tool is available and we can use it
14503 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14505 $as_echo "just compiled" >&6; }
14506 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14507 # We already found the complete path
14508 ac_dir=`dirname $STRIP_FOR_TARGET`
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14510 $as_echo "pre-installed in $ac_dir" >&6; }
14511 elif test "x$target" = "x$host"; then
14512 # We can use an host tool
14513 STRIP_FOR_TARGET='$(STRIP)'
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14515 $as_echo "host tool" >&6; }
14516 else
14517 # We need a cross tool
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14519 $as_echo "pre-installed" >&6; }
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14524 $as_echo_n "checking where to find the target windres... " >&6; }
14525 if test "x${build}" != "x${host}" ; then
14526 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14527 # We already found the complete path
14528 ac_dir=`dirname $WINDRES_FOR_TARGET`
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14530 $as_echo "pre-installed in $ac_dir" >&6; }
14531 else
14532 # Canadian cross, just use what we found
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14534 $as_echo "pre-installed" >&6; }
14536 else
14537 ok=yes
14538 case " ${configdirs} " in
14539 *" binutils "*) ;;
14540 *) ok=no ;;
14541 esac
14543 if test $ok = yes; then
14544 # An in-tree tool is available and we can use it
14545 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14547 $as_echo "just compiled" >&6; }
14548 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14549 # We already found the complete path
14550 ac_dir=`dirname $WINDRES_FOR_TARGET`
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14552 $as_echo "pre-installed in $ac_dir" >&6; }
14553 elif test "x$target" = "x$host"; then
14554 # We can use an host tool
14555 WINDRES_FOR_TARGET='$(WINDRES)'
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14557 $as_echo "host tool" >&6; }
14558 else
14559 # We need a cross tool
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14561 $as_echo "pre-installed" >&6; }
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14566 $as_echo_n "checking where to find the target windmc... " >&6; }
14567 if test "x${build}" != "x${host}" ; then
14568 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14569 # We already found the complete path
14570 ac_dir=`dirname $WINDMC_FOR_TARGET`
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14572 $as_echo "pre-installed in $ac_dir" >&6; }
14573 else
14574 # Canadian cross, just use what we found
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14576 $as_echo "pre-installed" >&6; }
14578 else
14579 ok=yes
14580 case " ${configdirs} " in
14581 *" binutils "*) ;;
14582 *) ok=no ;;
14583 esac
14585 if test $ok = yes; then
14586 # An in-tree tool is available and we can use it
14587 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14589 $as_echo "just compiled" >&6; }
14590 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14591 # We already found the complete path
14592 ac_dir=`dirname $WINDMC_FOR_TARGET`
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14594 $as_echo "pre-installed in $ac_dir" >&6; }
14595 elif test "x$target" = "x$host"; then
14596 # We can use an host tool
14597 WINDMC_FOR_TARGET='$(WINDMC)'
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14599 $as_echo "host tool" >&6; }
14600 else
14601 # We need a cross tool
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14603 $as_echo "pre-installed" >&6; }
14611 # Certain tools may need extra flags.
14612 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14613 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14614 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14616 # When building target libraries, except in a Canadian cross, we use
14617 # the same toolchain as the compiler we just built.
14618 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14619 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14620 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14621 if test $host = $build; then
14622 case " $configdirs " in
14623 *" gcc "*)
14624 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14625 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14626 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14628 esac
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14636 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14637 # Check whether --enable-maintainer-mode was given.
14638 if test "${enable_maintainer_mode+set}" = set; then :
14639 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14640 else
14641 USE_MAINTAINER_MODE=no
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14645 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14648 if test "$USE_MAINTAINER_MODE" = yes; then
14649 MAINTAINER_MODE_TRUE=
14650 MAINTAINER_MODE_FALSE='#'
14651 else
14652 MAINTAINER_MODE_TRUE='#'
14653 MAINTAINER_MODE_FALSE=
14655 MAINT=$MAINTAINER_MODE_TRUE
14657 # ---------------------
14658 # GCC bootstrap support
14659 # ---------------------
14661 # Stage specific cflags for build.
14662 stage1_cflags="-g"
14663 case $build in
14664 vax-*-*)
14665 case ${GCC} in
14666 yes) stage1_cflags="-g -Wa,-J" ;;
14667 *) stage1_cflags="-g -J" ;;
14668 esac ;;
14669 esac
14673 # Enable --enable-checking in stage1 of the compiler.
14674 # Check whether --enable-stage1-checking was given.
14675 if test "${enable_stage1_checking+set}" = set; then :
14676 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14677 else
14678 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14679 # For --disable-checking or implicit --enable-checking=release, avoid
14680 # setting --enable-checking=gc in the default stage1 checking for LTO
14681 # bootstraps. See PR62077.
14682 case $BUILD_CONFIG in
14683 *lto*)
14684 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14686 stage1_checking=--enable-checking=yes,types;;
14687 esac
14688 if test "x$enable_checking" = x && \
14689 test -d ${srcdir}/gcc && \
14690 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14691 stage1_checking=--enable-checking=yes,types,extra
14693 else
14694 stage1_checking=--enable-checking=$enable_checking,types
14700 # Enable -Werror in bootstrap stage2 and later.
14701 # Check whether --enable-werror was given.
14702 if test "${enable_werror+set}" = set; then :
14703 enableval=$enable_werror;
14704 else
14705 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14706 enable_werror=yes
14707 else
14708 enable_werror=no
14712 case ${enable_werror} in
14713 yes) stage2_werror_flag="--enable-werror-always" ;;
14714 *) stage2_werror_flag="" ;;
14715 esac
14718 # Enable --enable-host-shared.
14719 # Check whether --enable-host-shared was given.
14720 if test "${enable_host_shared+set}" = set; then :
14721 enableval=$enable_host_shared; host_shared=$enableval
14722 else
14723 host_shared=no
14728 # PR jit/64780: Require the user to explicitly specify
14729 # --enable-host-shared if the jit is enabled, hinting
14730 # that they might want to do a separate configure/build of
14731 # the jit, to avoid users from slowing down the rest of the
14732 # compiler by enabling the jit.
14733 if test ${host_shared} = "no" ; then
14734 case "${enable_languages}" in
14735 *jit*)
14736 as_fn_error "
14737 Enabling language \"jit\" requires --enable-host-shared.
14739 --enable-host-shared typically slows the rest of the compiler down by
14740 a few %, so you must explicitly enable it.
14742 If you want to build both the jit and the regular compiler, it is often
14743 best to do this via two separate configure/builds, in separate
14744 directories, to avoid imposing the performance cost of
14745 --enable-host-shared on the regular compiler." "$LINENO" 5
14749 esac
14752 # Specify what files to not compare during bootstrap.
14754 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14755 case "$target" in
14756 hppa*64*-*-hpux*) ;;
14757 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14758 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14759 esac
14762 ac_config_files="$ac_config_files Makefile"
14764 cat >confcache <<\_ACEOF
14765 # This file is a shell script that caches the results of configure
14766 # tests run on this system so they can be shared between configure
14767 # scripts and configure runs, see configure's option --config-cache.
14768 # It is not useful on other systems. If it contains results you don't
14769 # want to keep, you may remove or edit it.
14771 # config.status only pays attention to the cache file if you give it
14772 # the --recheck option to rerun configure.
14774 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14775 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14776 # following values.
14778 _ACEOF
14780 # The following way of writing the cache mishandles newlines in values,
14781 # but we know of no workaround that is simple, portable, and efficient.
14782 # So, we kill variables containing newlines.
14783 # Ultrix sh set writes to stderr and can't be redirected directly,
14784 # and sets the high bit in the cache file unless we assign to the vars.
14786 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14787 eval ac_val=\$$ac_var
14788 case $ac_val in #(
14789 *${as_nl}*)
14790 case $ac_var in #(
14791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14793 esac
14794 case $ac_var in #(
14795 _ | IFS | as_nl) ;; #(
14796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14797 *) { eval $ac_var=; unset $ac_var;} ;;
14798 esac ;;
14799 esac
14800 done
14802 (set) 2>&1 |
14803 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14804 *${as_nl}ac_space=\ *)
14805 # `set' does not quote correctly, so add quotes: double-quote
14806 # substitution turns \\\\ into \\, and sed turns \\ into \.
14807 sed -n \
14808 "s/'/'\\\\''/g;
14809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14810 ;; #(
14812 # `set' quotes correctly as required by POSIX, so do not add quotes.
14813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14815 esac |
14816 sort
14818 sed '
14819 /^ac_cv_env_/b end
14820 t clear
14821 :clear
14822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14823 t end
14824 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14825 :end' >>confcache
14826 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14827 if test -w "$cache_file"; then
14828 test "x$cache_file" != "x/dev/null" &&
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14830 $as_echo "$as_me: updating cache $cache_file" >&6;}
14831 cat confcache >$cache_file
14832 else
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14834 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14837 rm -f confcache
14839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14840 # Let make expand exec_prefix.
14841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14843 # Transform confdefs.h into DEFS.
14844 # Protect against shell expansion while executing Makefile rules.
14845 # Protect against Makefile macro expansion.
14847 # If the first sed substitution is executed (which looks for macros that
14848 # take arguments), then branch to the quote section. Otherwise,
14849 # look for a macro that doesn't take arguments.
14850 ac_script='
14851 :mline
14852 /\\$/{
14854 s,\\\n,,
14855 b mline
14857 t clear
14858 :clear
14859 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14860 t quote
14861 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14862 t quote
14863 b any
14864 :quote
14865 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14866 s/\[/\\&/g
14867 s/\]/\\&/g
14868 s/\$/$$/g
14870 :any
14873 s/^\n//
14874 s/\n/ /g
14878 DEFS=`sed -n "$ac_script" confdefs.h`
14881 ac_libobjs=
14882 ac_ltlibobjs=
14883 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14884 # 1. Remove the extension, and $U if already installed.
14885 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14886 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14887 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14888 # will be set to the directory where LIBOBJS objects are built.
14889 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14890 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14891 done
14892 LIBOBJS=$ac_libobjs
14894 LTLIBOBJS=$ac_ltlibobjs
14898 : ${CONFIG_STATUS=./config.status}
14899 ac_write_fail=0
14900 ac_clean_files_save=$ac_clean_files
14901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14903 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14904 as_write_fail=0
14905 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14906 #! $SHELL
14907 # Generated by $as_me.
14908 # Run this file to recreate the current configuration.
14909 # Compiler output produced by configure, useful for debugging
14910 # configure, is in config.log if it exists.
14912 debug=false
14913 ac_cs_recheck=false
14914 ac_cs_silent=false
14916 SHELL=\${CONFIG_SHELL-$SHELL}
14917 export SHELL
14918 _ASEOF
14919 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14920 ## -------------------- ##
14921 ## M4sh Initialization. ##
14922 ## -------------------- ##
14924 # Be more Bourne compatible
14925 DUALCASE=1; export DUALCASE # for MKS sh
14926 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14927 emulate sh
14928 NULLCMD=:
14929 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14930 # is contrary to our usage. Disable this feature.
14931 alias -g '${1+"$@"}'='"$@"'
14932 setopt NO_GLOB_SUBST
14933 else
14934 case `(set -o) 2>/dev/null` in #(
14935 *posix*) :
14936 set -o posix ;; #(
14937 *) :
14939 esac
14943 as_nl='
14945 export as_nl
14946 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14947 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14950 # Prefer a ksh shell builtin over an external printf program on Solaris,
14951 # but without wasting forks for bash or zsh.
14952 if test -z "$BASH_VERSION$ZSH_VERSION" \
14953 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14954 as_echo='print -r --'
14955 as_echo_n='print -rn --'
14956 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14957 as_echo='printf %s\n'
14958 as_echo_n='printf %s'
14959 else
14960 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14961 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14962 as_echo_n='/usr/ucb/echo -n'
14963 else
14964 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14965 as_echo_n_body='eval
14966 arg=$1;
14967 case $arg in #(
14968 *"$as_nl"*)
14969 expr "X$arg" : "X\\(.*\\)$as_nl";
14970 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14971 esac;
14972 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14974 export as_echo_n_body
14975 as_echo_n='sh -c $as_echo_n_body as_echo'
14977 export as_echo_body
14978 as_echo='sh -c $as_echo_body as_echo'
14981 # The user is always right.
14982 if test "${PATH_SEPARATOR+set}" != set; then
14983 PATH_SEPARATOR=:
14984 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14985 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14986 PATH_SEPARATOR=';'
14991 # IFS
14992 # We need space, tab and new line, in precisely that order. Quoting is
14993 # there to prevent editors from complaining about space-tab.
14994 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14995 # splitting by setting IFS to empty value.)
14996 IFS=" "" $as_nl"
14998 # Find who we are. Look in the path if we contain no directory separator.
14999 case $0 in #((
15000 *[\\/]* ) as_myself=$0 ;;
15001 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002 for as_dir in $PATH
15004 IFS=$as_save_IFS
15005 test -z "$as_dir" && as_dir=.
15006 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15007 done
15008 IFS=$as_save_IFS
15011 esac
15012 # We did not find ourselves, most probably we were run as `sh COMMAND'
15013 # in which case we are not to be found in the path.
15014 if test "x$as_myself" = x; then
15015 as_myself=$0
15017 if test ! -f "$as_myself"; then
15018 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15019 exit 1
15022 # Unset variables that we do not need and which cause bugs (e.g. in
15023 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15024 # suppresses any "Segmentation fault" message there. '((' could
15025 # trigger a bug in pdksh 5.2.14.
15026 for as_var in BASH_ENV ENV MAIL MAILPATH
15027 do eval test x\${$as_var+set} = xset \
15028 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15029 done
15030 PS1='$ '
15031 PS2='> '
15032 PS4='+ '
15034 # NLS nuisances.
15035 LC_ALL=C
15036 export LC_ALL
15037 LANGUAGE=C
15038 export LANGUAGE
15040 # CDPATH.
15041 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15044 # as_fn_error ERROR [LINENO LOG_FD]
15045 # ---------------------------------
15046 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15047 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15048 # script with status $?, using 1 if that was 0.
15049 as_fn_error ()
15051 as_status=$?; test $as_status -eq 0 && as_status=1
15052 if test "$3"; then
15053 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15054 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15056 $as_echo "$as_me: error: $1" >&2
15057 as_fn_exit $as_status
15058 } # as_fn_error
15061 # as_fn_set_status STATUS
15062 # -----------------------
15063 # Set $? to STATUS, without forking.
15064 as_fn_set_status ()
15066 return $1
15067 } # as_fn_set_status
15069 # as_fn_exit STATUS
15070 # -----------------
15071 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15072 as_fn_exit ()
15074 set +e
15075 as_fn_set_status $1
15076 exit $1
15077 } # as_fn_exit
15079 # as_fn_unset VAR
15080 # ---------------
15081 # Portably unset VAR.
15082 as_fn_unset ()
15084 { eval $1=; unset $1;}
15086 as_unset=as_fn_unset
15087 # as_fn_append VAR VALUE
15088 # ----------------------
15089 # Append the text in VALUE to the end of the definition contained in VAR. Take
15090 # advantage of any shell optimizations that allow amortized linear growth over
15091 # repeated appends, instead of the typical quadratic growth present in naive
15092 # implementations.
15093 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15094 eval 'as_fn_append ()
15096 eval $1+=\$2
15098 else
15099 as_fn_append ()
15101 eval $1=\$$1\$2
15103 fi # as_fn_append
15105 # as_fn_arith ARG...
15106 # ------------------
15107 # Perform arithmetic evaluation on the ARGs, and store the result in the
15108 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15109 # must be portable across $(()) and expr.
15110 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15111 eval 'as_fn_arith ()
15113 as_val=$(( $* ))
15115 else
15116 as_fn_arith ()
15118 as_val=`expr "$@" || test $? -eq 1`
15120 fi # as_fn_arith
15123 if expr a : '\(a\)' >/dev/null 2>&1 &&
15124 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15125 as_expr=expr
15126 else
15127 as_expr=false
15130 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15131 as_basename=basename
15132 else
15133 as_basename=false
15136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15137 as_dirname=dirname
15138 else
15139 as_dirname=false
15142 as_me=`$as_basename -- "$0" ||
15143 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15144 X"$0" : 'X\(//\)$' \| \
15145 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15146 $as_echo X/"$0" |
15147 sed '/^.*\/\([^/][^/]*\)\/*$/{
15148 s//\1/
15151 /^X\/\(\/\/\)$/{
15152 s//\1/
15155 /^X\/\(\/\).*/{
15156 s//\1/
15159 s/.*/./; q'`
15161 # Avoid depending upon Character Ranges.
15162 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15163 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15164 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15165 as_cr_digits='0123456789'
15166 as_cr_alnum=$as_cr_Letters$as_cr_digits
15168 ECHO_C= ECHO_N= ECHO_T=
15169 case `echo -n x` in #(((((
15170 -n*)
15171 case `echo 'xy\c'` in
15172 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15173 xy) ECHO_C='\c';;
15174 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15175 ECHO_T=' ';;
15176 esac;;
15178 ECHO_N='-n';;
15179 esac
15181 rm -f conf$$ conf$$.exe conf$$.file
15182 if test -d conf$$.dir; then
15183 rm -f conf$$.dir/conf$$.file
15184 else
15185 rm -f conf$$.dir
15186 mkdir conf$$.dir 2>/dev/null
15188 if (echo >conf$$.file) 2>/dev/null; then
15189 if ln -s conf$$.file conf$$ 2>/dev/null; then
15190 as_ln_s='ln -s'
15191 # ... but there are two gotchas:
15192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15194 # In both cases, we have to default to `cp -p'.
15195 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15196 as_ln_s='cp -p'
15197 elif ln conf$$.file conf$$ 2>/dev/null; then
15198 as_ln_s=ln
15199 else
15200 as_ln_s='cp -p'
15202 else
15203 as_ln_s='cp -p'
15205 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15206 rmdir conf$$.dir 2>/dev/null
15209 # as_fn_mkdir_p
15210 # -------------
15211 # Create "$as_dir" as a directory, including parents if necessary.
15212 as_fn_mkdir_p ()
15215 case $as_dir in #(
15216 -*) as_dir=./$as_dir;;
15217 esac
15218 test -d "$as_dir" || eval $as_mkdir_p || {
15219 as_dirs=
15220 while :; do
15221 case $as_dir in #(
15222 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15223 *) as_qdir=$as_dir;;
15224 esac
15225 as_dirs="'$as_qdir' $as_dirs"
15226 as_dir=`$as_dirname -- "$as_dir" ||
15227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15228 X"$as_dir" : 'X\(//\)[^/]' \| \
15229 X"$as_dir" : 'X\(//\)$' \| \
15230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15231 $as_echo X"$as_dir" |
15232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15233 s//\1/
15236 /^X\(\/\/\)[^/].*/{
15237 s//\1/
15240 /^X\(\/\/\)$/{
15241 s//\1/
15244 /^X\(\/\).*/{
15245 s//\1/
15248 s/.*/./; q'`
15249 test -d "$as_dir" && break
15250 done
15251 test -z "$as_dirs" || eval "mkdir $as_dirs"
15252 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15255 } # as_fn_mkdir_p
15256 if mkdir -p . 2>/dev/null; then
15257 as_mkdir_p='mkdir -p "$as_dir"'
15258 else
15259 test -d ./-p && rmdir ./-p
15260 as_mkdir_p=false
15263 if test -x / >/dev/null 2>&1; then
15264 as_test_x='test -x'
15265 else
15266 if ls -dL / >/dev/null 2>&1; then
15267 as_ls_L_option=L
15268 else
15269 as_ls_L_option=
15271 as_test_x='
15272 eval sh -c '\''
15273 if test -d "$1"; then
15274 test -d "$1/.";
15275 else
15276 case $1 in #(
15277 -*)set "./$1";;
15278 esac;
15279 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15280 ???[sx]*):;;*)false;;esac;fi
15281 '\'' sh
15284 as_executable_p=$as_test_x
15286 # Sed expression to map a string onto a valid CPP name.
15287 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15289 # Sed expression to map a string onto a valid variable name.
15290 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15293 exec 6>&1
15294 ## ----------------------------------- ##
15295 ## Main body of $CONFIG_STATUS script. ##
15296 ## ----------------------------------- ##
15297 _ASEOF
15298 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301 # Save the log message, to keep $0 and so on meaningful, and to
15302 # report actual input values of CONFIG_FILES etc. instead of their
15303 # values after options handling.
15304 ac_log="
15305 This file was extended by $as_me, which was
15306 generated by GNU Autoconf 2.64. Invocation command line was
15308 CONFIG_FILES = $CONFIG_FILES
15309 CONFIG_HEADERS = $CONFIG_HEADERS
15310 CONFIG_LINKS = $CONFIG_LINKS
15311 CONFIG_COMMANDS = $CONFIG_COMMANDS
15312 $ $0 $@
15314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15317 _ACEOF
15319 case $ac_config_files in *"
15320 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15321 esac
15325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15326 # Files that config.status was made for.
15327 config_files="$ac_config_files"
15329 _ACEOF
15331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15332 ac_cs_usage="\
15333 \`$as_me' instantiates files and other configuration actions
15334 from templates according to the current configuration. Unless the files
15335 and actions are specified as TAGs, all are instantiated by default.
15337 Usage: $0 [OPTION]... [TAG]...
15339 -h, --help print this help, then exit
15340 -V, --version print version number and configuration settings, then exit
15341 -q, --quiet, --silent
15342 do not print progress messages
15343 -d, --debug don't remove temporary files
15344 --recheck update $as_me by reconfiguring in the same conditions
15345 --file=FILE[:TEMPLATE]
15346 instantiate the configuration file FILE
15348 Configuration files:
15349 $config_files
15351 Report bugs to the package provider."
15353 _ACEOF
15354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15355 ac_cs_version="\\
15356 config.status
15357 configured by $0, generated by GNU Autoconf 2.64,
15358 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15360 Copyright (C) 2009 Free Software Foundation, Inc.
15361 This config.status script is free software; the Free Software Foundation
15362 gives unlimited permission to copy, distribute and modify it."
15364 ac_pwd='$ac_pwd'
15365 srcdir='$srcdir'
15366 INSTALL='$INSTALL'
15367 AWK='$AWK'
15368 test -n "\$AWK" || AWK=awk
15369 _ACEOF
15371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15372 # The default lists apply if the user does not specify any file.
15373 ac_need_defaults=:
15374 while test $# != 0
15376 case $1 in
15377 --*=*)
15378 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15379 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15380 ac_shift=:
15383 ac_option=$1
15384 ac_optarg=$2
15385 ac_shift=shift
15387 esac
15389 case $ac_option in
15390 # Handling of the options.
15391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15392 ac_cs_recheck=: ;;
15393 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15394 $as_echo "$ac_cs_version"; exit ;;
15395 --debug | --debu | --deb | --de | --d | -d )
15396 debug=: ;;
15397 --file | --fil | --fi | --f )
15398 $ac_shift
15399 case $ac_optarg in
15400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15401 esac
15402 as_fn_append CONFIG_FILES " '$ac_optarg'"
15403 ac_need_defaults=false;;
15404 --he | --h | --help | --hel | -h )
15405 $as_echo "$ac_cs_usage"; exit ;;
15406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15407 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15408 ac_cs_silent=: ;;
15410 # This is an error.
15411 -*) as_fn_error "unrecognized option: \`$1'
15412 Try \`$0 --help' for more information." ;;
15414 *) as_fn_append ac_config_targets " $1"
15415 ac_need_defaults=false ;;
15417 esac
15418 shift
15419 done
15421 ac_configure_extra_args=
15423 if $ac_cs_silent; then
15424 exec 6>/dev/null
15425 ac_configure_extra_args="$ac_configure_extra_args --silent"
15428 _ACEOF
15429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15430 if \$ac_cs_recheck; then
15431 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15432 shift
15433 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15434 CONFIG_SHELL='$SHELL'
15435 export CONFIG_SHELL
15436 exec "\$@"
15439 _ACEOF
15440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441 exec 5>>config.log
15443 echo
15444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15445 ## Running $as_me. ##
15446 _ASBOX
15447 $as_echo "$ac_log"
15448 } >&5
15450 _ACEOF
15451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15453 # INIT-COMMANDS
15455 extrasub_build="$extrasub_build"
15456 extrasub_host="$extrasub_host"
15457 extrasub_target="$extrasub_target"
15459 _ACEOF
15461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15463 # Handling of arguments.
15464 for ac_config_target in $ac_config_targets
15466 case $ac_config_target in
15467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15469 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15470 esac
15471 done
15474 # If the user did not use the arguments to specify the items to instantiate,
15475 # then the envvar interface is used. Set only those that are not.
15476 # We use the long form for the default assignment because of an extremely
15477 # bizarre bug on SunOS 4.1.3.
15478 if $ac_need_defaults; then
15479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15482 # Have a temporary directory for convenience. Make it in the build tree
15483 # simply because there is no reason against having it here, and in addition,
15484 # creating and moving files from /tmp can sometimes cause problems.
15485 # Hook for its removal unless debugging.
15486 # Note that there is a small window in which the directory will not be cleaned:
15487 # after its creation but before its name has been assigned to `$tmp'.
15488 $debug ||
15490 tmp=
15491 trap 'exit_status=$?
15492 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15494 trap 'as_fn_exit 1' 1 2 13 15
15496 # Create a (secure) tmp directory for tmp files.
15499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15500 test -n "$tmp" && test -d "$tmp"
15501 } ||
15503 tmp=./conf$$-$RANDOM
15504 (umask 077 && mkdir "$tmp")
15505 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15507 # Set up the scripts for CONFIG_FILES section.
15508 # No need to generate them if there are no CONFIG_FILES.
15509 # This happens for instance with `./config.status config.h'.
15510 if test -n "$CONFIG_FILES"; then
15512 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15513 ac_cs_awk_getline=:
15514 ac_cs_awk_pipe_init=
15515 ac_cs_awk_read_file='
15516 while ((getline aline < (F[key])) > 0)
15517 print(aline)
15518 close(F[key])'
15519 ac_cs_awk_pipe_fini=
15520 else
15521 ac_cs_awk_getline=false
15522 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15523 ac_cs_awk_read_file='
15524 print "|#_!!_#|"
15525 print "cat " F[key] " &&"
15526 '$ac_cs_awk_pipe_init
15527 # The final `:' finishes the AND list.
15528 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15530 ac_cr=`echo X | tr X '\015'`
15531 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15532 # But we know of no other shell where ac_cr would be empty at this
15533 # point, so we can use a bashism as a fallback.
15534 if test "x$ac_cr" = x; then
15535 eval ac_cr=\$\'\\r\'
15537 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15538 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15539 ac_cs_awk_cr='\r'
15540 else
15541 ac_cs_awk_cr=$ac_cr
15544 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15545 _ACEOF
15547 # Create commands to substitute file output variables.
15549 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15550 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15551 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15552 echo "_ACAWK" &&
15553 echo "_ACEOF"
15554 } >conf$$files.sh &&
15555 . ./conf$$files.sh ||
15556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15557 rm -f conf$$files.sh
15560 echo "cat >conf$$subs.awk <<_ACEOF" &&
15561 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15562 echo "_ACEOF"
15563 } >conf$$subs.sh ||
15564 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15565 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15566 ac_delim='%!_!# '
15567 for ac_last_try in false false false false false :; do
15568 . ./conf$$subs.sh ||
15569 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15571 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15572 if test $ac_delim_n = $ac_delim_num; then
15573 break
15574 elif $ac_last_try; then
15575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15576 else
15577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15579 done
15580 rm -f conf$$subs.sh
15582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15584 _ACEOF
15585 sed -n '
15587 s/^/S["/; s/!.*/"]=/
15590 s/^[^!]*!//
15591 :repl
15592 t repl
15593 s/'"$ac_delim"'$//
15594 t delim
15597 s/\(.\{148\}\).*/\1/
15598 t more1
15599 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15602 b repl
15603 :more1
15604 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15607 s/.\{148\}//
15608 t nl
15609 :delim
15611 s/\(.\{148\}\).*/\1/
15612 t more2
15613 s/["\\]/\\&/g; s/^/"/; s/$/"/
15616 :more2
15617 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15620 s/.\{148\}//
15621 t delim
15622 ' <conf$$subs.awk | sed '
15623 /^[^""]/{
15625 s/\n//
15627 ' >>$CONFIG_STATUS || ac_write_fail=1
15628 rm -f conf$$subs.awk
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630 _ACAWK
15631 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15632 for (key in S) S_is_set[key] = 1
15633 FS = "\a"
15634 \$ac_cs_awk_pipe_init
15637 line = $ 0
15638 nfields = split(line, field, "@")
15639 substed = 0
15640 len = length(field[1])
15641 for (i = 2; i < nfields; i++) {
15642 key = field[i]
15643 keylen = length(key)
15644 if (S_is_set[key]) {
15645 value = S[key]
15646 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15647 len += length(value) + length(field[++i])
15648 substed = 1
15649 } else
15650 len += 1 + keylen
15652 if (nfields == 3 && !substed) {
15653 key = field[2]
15654 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15655 \$ac_cs_awk_read_file
15656 next
15659 print line
15661 \$ac_cs_awk_pipe_fini
15662 _ACAWK
15663 _ACEOF
15664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15665 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15666 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15667 else
15669 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15670 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15671 _ACEOF
15673 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15674 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15675 # trailing colons and then remove the whole line if VPATH becomes empty
15676 # (actually we leave an empty line to preserve line numbers).
15677 if test "x$srcdir" = x.; then
15678 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15679 s/:*\$(srcdir):*/:/
15680 s/:*\${srcdir}:*/:/
15681 s/:*@srcdir@:*/:/
15682 s/^\([^=]*=[ ]*\):*/\1/
15683 s/:*$//
15684 s/^[^=]*=[ ]*$//
15688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689 fi # test -n "$CONFIG_FILES"
15692 eval set X " :F $CONFIG_FILES "
15693 shift
15694 for ac_tag
15696 case $ac_tag in
15697 :[FHLC]) ac_mode=$ac_tag; continue;;
15698 esac
15699 case $ac_mode$ac_tag in
15700 :[FHL]*:*);;
15701 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15702 :[FH]-) ac_tag=-:-;;
15703 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15704 esac
15705 ac_save_IFS=$IFS
15706 IFS=:
15707 set x $ac_tag
15708 IFS=$ac_save_IFS
15709 shift
15710 ac_file=$1
15711 shift
15713 case $ac_mode in
15714 :L) ac_source=$1;;
15715 :[FH])
15716 ac_file_inputs=
15717 for ac_f
15719 case $ac_f in
15720 -) ac_f="$tmp/stdin";;
15721 *) # Look for the file first in the build tree, then in the source tree
15722 # (if the path is not absolute). The absolute path cannot be DOS-style,
15723 # because $ac_f cannot contain `:'.
15724 test -f "$ac_f" ||
15725 case $ac_f in
15726 [\\/$]*) false;;
15727 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15728 esac ||
15729 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15730 esac
15731 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15732 as_fn_append ac_file_inputs " '$ac_f'"
15733 done
15735 # Let's still pretend it is `configure' which instantiates (i.e., don't
15736 # use $as_me), people would be surprised to read:
15737 # /* config.h. Generated by config.status. */
15738 configure_input='Generated from '`
15739 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15740 `' by configure.'
15741 if test x"$ac_file" != x-; then
15742 configure_input="$ac_file. $configure_input"
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15744 $as_echo "$as_me: creating $ac_file" >&6;}
15746 # Neutralize special characters interpreted by sed in replacement strings.
15747 case $configure_input in #(
15748 *\&* | *\|* | *\\* )
15749 ac_sed_conf_input=`$as_echo "$configure_input" |
15750 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15751 *) ac_sed_conf_input=$configure_input;;
15752 esac
15754 case $ac_tag in
15755 *:-:* | *:-) cat >"$tmp/stdin" \
15756 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15757 esac
15759 esac
15761 ac_dir=`$as_dirname -- "$ac_file" ||
15762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15763 X"$ac_file" : 'X\(//\)[^/]' \| \
15764 X"$ac_file" : 'X\(//\)$' \| \
15765 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15766 $as_echo X"$ac_file" |
15767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15768 s//\1/
15771 /^X\(\/\/\)[^/].*/{
15772 s//\1/
15775 /^X\(\/\/\)$/{
15776 s//\1/
15779 /^X\(\/\).*/{
15780 s//\1/
15783 s/.*/./; q'`
15784 as_dir="$ac_dir"; as_fn_mkdir_p
15785 ac_builddir=.
15787 case "$ac_dir" in
15788 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15790 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15791 # A ".." for each directory in $ac_dir_suffix.
15792 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15793 case $ac_top_builddir_sub in
15794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15796 esac ;;
15797 esac
15798 ac_abs_top_builddir=$ac_pwd
15799 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15800 # for backward compatibility:
15801 ac_top_builddir=$ac_top_build_prefix
15803 case $srcdir in
15804 .) # We are building in place.
15805 ac_srcdir=.
15806 ac_top_srcdir=$ac_top_builddir_sub
15807 ac_abs_top_srcdir=$ac_pwd ;;
15808 [\\/]* | ?:[\\/]* ) # Absolute name.
15809 ac_srcdir=$srcdir$ac_dir_suffix;
15810 ac_top_srcdir=$srcdir
15811 ac_abs_top_srcdir=$srcdir ;;
15812 *) # Relative name.
15813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15814 ac_top_srcdir=$ac_top_build_prefix$srcdir
15815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15816 esac
15817 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15820 case $ac_mode in
15823 # CONFIG_FILE
15826 case $INSTALL in
15827 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15828 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15829 esac
15830 _ACEOF
15832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15833 # If the template does not know about datarootdir, expand it.
15834 # FIXME: This hack should be removed a few years after 2.60.
15835 ac_datarootdir_hack=; ac_datarootdir_seen=
15836 ac_sed_dataroot='
15837 /datarootdir/ {
15841 /@datadir@/p
15842 /@docdir@/p
15843 /@infodir@/p
15844 /@localedir@/p
15845 /@mandir@/p'
15846 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15847 *datarootdir*) ac_datarootdir_seen=yes;;
15848 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15850 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15851 _ACEOF
15852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 ac_datarootdir_hack='
15854 s&@datadir@&$datadir&g
15855 s&@docdir@&$docdir&g
15856 s&@infodir@&$infodir&g
15857 s&@localedir@&$localedir&g
15858 s&@mandir@&$mandir&g
15859 s&\\\${datarootdir}&$datarootdir&g' ;;
15860 esac
15861 _ACEOF
15863 # Neutralize VPATH when `$srcdir' = `.'.
15864 # Shell code in configure.ac might set extrasub.
15865 # FIXME: do we really want to maintain this feature?
15866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15867 ac_sed_extra="$ac_vpsub
15868 $extrasub
15869 _ACEOF
15870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15873 s|@configure_input@|$ac_sed_conf_input|;t t
15874 s&@top_builddir@&$ac_top_builddir_sub&;t t
15875 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15876 s&@srcdir@&$ac_srcdir&;t t
15877 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15878 s&@top_srcdir@&$ac_top_srcdir&;t t
15879 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15880 s&@builddir@&$ac_builddir&;t t
15881 s&@abs_builddir@&$ac_abs_builddir&;t t
15882 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15883 s&@INSTALL@&$ac_INSTALL&;t t
15884 $ac_datarootdir_hack
15886 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15887 if $ac_cs_awk_getline; then
15888 $AWK -f "$tmp/subs.awk"
15889 else
15890 $AWK -f "$tmp/subs.awk" | $SHELL
15891 fi >$tmp/out \
15892 || as_fn_error "could not create $ac_file" "$LINENO" 5
15894 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15895 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15898 which seems to be undefined. Please make sure it is defined." >&5
15899 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15900 which seems to be undefined. Please make sure it is defined." >&2;}
15902 rm -f "$tmp/stdin"
15903 case $ac_file in
15904 -) cat "$tmp/out" && rm -f "$tmp/out";;
15905 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15906 esac \
15907 || as_fn_error "could not create $ac_file" "$LINENO" 5
15912 esac
15915 case $ac_file$ac_mode in
15916 "Makefile":F) sed "$extrasub_build" Makefile |
15917 sed "$extrasub_host" |
15918 sed "$extrasub_target" > mf$$
15919 mv -f mf$$ Makefile ;;
15921 esac
15922 done # for ac_tag
15925 as_fn_exit 0
15926 _ACEOF
15927 ac_clean_files=$ac_clean_files_save
15929 test $ac_write_fail = 0 ||
15930 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15933 # configure is writing to config.log, and then calls config.status.
15934 # config.status does its own redirection, appending to config.log.
15935 # Unfortunately, on DOS this fails, as config.log is still kept open
15936 # by configure, so config.status won't be able to write to it; its
15937 # output is simply discarded. So we exec the FD to /dev/null,
15938 # effectively closing config.log, so it can be properly (re)opened and
15939 # appended to by config.status. When coming back to configure, we
15940 # need to make the FD available again.
15941 if test "$no_create" != yes; then
15942 ac_cs_success=:
15943 ac_config_status_args=
15944 test "$silent" = yes &&
15945 ac_config_status_args="$ac_config_status_args --quiet"
15946 exec 5>/dev/null
15947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15948 exec 5>>config.log
15949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15950 # would make configure fail if this is the last instruction.
15951 $ac_cs_success || as_fn_exit $?
15953 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15955 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}