Merge trunk version 221103 into gupc branch.
[official-gcc.git] / configure
blob2f3647cfb15de6b8daf91fafd7d89d9627c0fcb0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GUPC_FOR_TARGET
585 GOC_FOR_TARGET
586 GFORTRAN_FOR_TARGET
587 GCJ_FOR_TARGET
588 GCC_FOR_TARGET
589 CXX_FOR_TARGET
590 CC_FOR_TARGET
591 READELF
592 OBJDUMP
593 OBJCOPY
594 WINDMC
595 WINDRES
596 STRIP
597 RANLIB
599 LIPO
601 DLLTOOL
604 RUNTEST
605 EXPECT
606 MAKEINFO
607 FLEX
610 BISON
611 YACC
612 WINDRES_FOR_BUILD
613 WINDMC_FOR_BUILD
614 RANLIB_FOR_BUILD
615 NM_FOR_BUILD
616 LD_FOR_BUILD
617 LDFLAGS_FOR_BUILD
618 GUPC_FOR_BUILD
619 GOC_FOR_BUILD
620 GFORTRAN_FOR_BUILD
621 GCJ_FOR_BUILD
622 DLLTOOL_FOR_BUILD
623 CXX_FOR_BUILD
624 CXXFLAGS_FOR_BUILD
625 CFLAGS_FOR_BUILD
626 CC_FOR_BUILD
627 AS_FOR_BUILD
628 AR_FOR_BUILD
629 target_configdirs
630 configdirs
631 build_configdirs
632 INSTALL_GDB_TK
633 GDB_TK
634 CONFIGURE_GDB_TK
635 build_tooldir
636 tooldir
637 GCC_SHLIB_SUBDIR
638 RPATH_ENVVAR
639 target_configargs
640 host_configargs
641 build_configargs
642 BUILD_CONFIG
643 LDFLAGS_FOR_TARGET
644 CXXFLAGS_FOR_TARGET
645 CFLAGS_FOR_TARGET
646 DEBUG_PREFIX_CFLAGS_FOR_TARGET
647 SYSROOT_CFLAGS_FOR_TARGET
648 extra_host_libiberty_configure_flags
649 stage1_languages
650 extra_linker_plugin_flags
651 extra_linker_plugin_configure_flags
652 islinc
653 isllibs
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
685 LN_S
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 with_build_libsubdir
752 enable_as_accelerator_for
753 enable_offload_targets
754 enable_gold
755 enable_ld
756 enable_libquadmath
757 enable_libquadmath_support
758 enable_libada
759 enable_libssp
760 enable_libstdcxx
761 enable_liboffloadmic
762 enable_static_libjava
763 enable_bootstrap
764 with_mpc
765 with_mpc_include
766 with_mpc_lib
767 with_mpfr_dir
768 with_mpfr
769 with_mpfr_include
770 with_mpfr_lib
771 with_gmp_dir
772 with_gmp
773 with_gmp_include
774 with_gmp_lib
775 with_host_libstdcxx
776 with_stage1_libs
777 with_stage1_ldflags
778 with_boot_libs
779 with_boot_ldflags
780 with_isl
781 with_isl_include
782 with_isl_lib
783 enable_isl_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_upc_pts
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 enable_upc_link_script
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
800 enable_host_shared
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
811 CXXFLAGS
813 build_configargs
814 host_configargs
815 target_configargs
818 DLLTOOL
820 LIPO
822 RANLIB
823 STRIP
824 WINDRES
825 WINDMC
826 OBJCOPY
827 OBJDUMP
828 READELF
829 CC_FOR_TARGET
830 CXX_FOR_TARGET
831 GCC_FOR_TARGET
832 GCJ_FOR_TARGET
833 GFORTRAN_FOR_TARGET
834 GOC_FOR_TARGET
835 GUPC_FOR_TARGET
836 AR_FOR_TARGET
837 AS_FOR_TARGET
838 DLLTOOL_FOR_TARGET
839 LD_FOR_TARGET
840 LIPO_FOR_TARGET
841 NM_FOR_TARGET
842 OBJCOPY_FOR_TARGET
843 OBJDUMP_FOR_TARGET
844 RANLIB_FOR_TARGET
845 READELF_FOR_TARGET
846 STRIP_FOR_TARGET
847 WINDRES_FOR_TARGET
848 WINDMC_FOR_TARGET'
851 # Initialize some variables set by options.
852 ac_init_help=
853 ac_init_version=false
854 ac_unrecognized_opts=
855 ac_unrecognized_sep=
856 # The variables have the same names as the options, with
857 # dashes changed to underlines.
858 cache_file=/dev/null
859 exec_prefix=NONE
860 no_create=
861 no_recursion=
862 prefix=NONE
863 program_prefix=NONE
864 program_suffix=NONE
865 program_transform_name=s,x,x,
866 silent=
867 site=
868 srcdir=
869 verbose=
870 x_includes=NONE
871 x_libraries=NONE
873 # Installation directory options.
874 # These are left unexpanded so users can "make install exec_prefix=/foo"
875 # and all the variables that are supposed to be based on exec_prefix
876 # by default will actually change.
877 # Use braces instead of parens because sh, perl, etc. also accept them.
878 # (The list follows the same order as the GNU Coding Standards.)
879 bindir='${exec_prefix}/bin'
880 sbindir='${exec_prefix}/sbin'
881 libexecdir='${exec_prefix}/libexec'
882 datarootdir='${prefix}/share'
883 datadir='${datarootdir}'
884 sysconfdir='${prefix}/etc'
885 sharedstatedir='${prefix}/com'
886 localstatedir='${prefix}/var'
887 includedir='${prefix}/include'
888 oldincludedir='/usr/include'
889 docdir='${datarootdir}/doc/${PACKAGE}'
890 infodir='${datarootdir}/info'
891 htmldir='${docdir}'
892 dvidir='${docdir}'
893 pdfdir='${docdir}'
894 psdir='${docdir}'
895 libdir='${exec_prefix}/lib'
896 localedir='${datarootdir}/locale'
897 mandir='${datarootdir}/man'
899 ac_prev=
900 ac_dashdash=
901 for ac_option
903 # If the previous option needs an argument, assign it.
904 if test -n "$ac_prev"; then
905 eval $ac_prev=\$ac_option
906 ac_prev=
907 continue
910 case $ac_option in
911 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 *) ac_optarg=yes ;;
913 esac
915 # Accept the important Cygnus configure options, so we can diagnose typos.
917 case $ac_dashdash$ac_option in
919 ac_dashdash=yes ;;
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
938 --config-cache | -C)
939 cache_file=config.cache ;;
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1233 -*) as_fn_error "unrecognized option: \`$ac_option'
1234 Try \`$0 --help' for more information."
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1248 # FIXME: should be removed in autoconf 3.0.
1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 esac
1256 done
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error "missing argument to $ac_option"
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used." >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313 test "$silent" = yes && exec 6>/dev/null
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error "pwd does not report name of working directory"
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1342 /^X\(\/\/\)$/{
1343 s//\1/
1346 /^X\(\/\).*/{
1347 s//\1/
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1355 else
1356 ac_srcdir_defaulted=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 case $srcdir in
1377 *" "*)
1378 as_fn_error "path to source, $srcdir, contains spaces"
1380 esac
1381 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1452 cat <<\_ACEOF
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463 _ACEOF
1466 if test -n "$ac_init_help"; then
1468 cat <<\_ACEOF
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-as-accelerator-for=ARG
1475 build as offload target compiler. Specify offload
1476 host triple by ARG
1477 --enable-offload-targets=LIST
1478 enable offloading to devices from comma-separated
1479 LIST of TARGET[=DIR]. Use optional path to find
1480 offload target compiler during the build
1481 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1482 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1483 --disable-libquadmath do not build libquadmath directory
1484 --disable-libquadmath-support
1485 disable libquadmath support for Fortran
1486 --enable-libada build libada directory
1487 --enable-libssp build libssp directory
1488 --disable-libstdcxx do not build libstdc++-v3 directory
1489 --enable-liboffloadmic=ARG
1490 build liboffloadmic [ARG={no,host,target}]
1491 --enable-static-libjava[=ARG]
1492 build static libjava [default=no]
1493 --enable-bootstrap enable bootstrapping [yes if native build]
1494 --disable-isl-version-check
1495 disable check for ISL version
1496 --enable-lto enable link time optimization support
1497 --enable-linker-plugin-configure-flags=FLAGS
1498 additional flags for configuring linker plugins
1499 [none]
1500 --enable-linker-plugin-flags=FLAGS
1501 additional flags for configuring and building linker
1502 plugins [none]
1503 --enable-stage1-languages[=all]
1504 choose additional languages to build during stage1.
1505 Mostly useful for compiler development
1506 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1507 Objective-C runtime
1508 --enable-vtable-verify Enable vtable verification feature
1509 --enable-serial-[{host,target,build}-]configure
1510 force sequential configuration of sub-packages for
1511 the host, target or build machine, or all
1512 sub-packages
1513 --enable-upc-link-script
1514 enable UPC's use of a custom linker script; this
1515 will define the UPC shared section as a no load
1516 section on targets where this feature is supported
1517 (requires GNU LD)
1518 --enable-maintainer-mode
1519 enable make rules and dependencies not useful (and
1520 sometimes confusing) to the casual installer
1521 --enable-stage1-checking[=all]
1522 choose additional checking for stage1 of the
1523 compiler
1524 --enable-werror enable -Werror in bootstrap stage2 and later
1525 --enable-host-shared build host code as shared libraries
1527 Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-build-libsubdir=DIR Directory where to find libraries for build system
1531 --with-mpc=PATH specify prefix directory for installed MPC package.
1532 Equivalent to --with-mpc-include=PATH/include plus
1533 --with-mpc-lib=PATH/lib
1534 --with-mpc-include=PATH specify directory for installed MPC include files
1535 --with-mpc-lib=PATH specify directory for the installed MPC library
1536 --with-mpfr-dir=PATH this option has been REMOVED
1537 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1538 Equivalent to --with-mpfr-include=PATH/include plus
1539 --with-mpfr-lib=PATH/lib
1540 --with-mpfr-include=PATH
1541 specify directory for installed MPFR include files
1542 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1543 --with-gmp-dir=PATH this option has been REMOVED
1544 --with-gmp=PATH specify prefix directory for the installed GMP
1545 package. Equivalent to
1546 --with-gmp-include=PATH/include plus
1547 --with-gmp-lib=PATH/lib
1548 --with-gmp-include=PATH specify directory for installed GMP include files
1549 --with-gmp-lib=PATH specify directory for the installed GMP library
1550 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1551 linking with PPL
1552 --with-stage1-libs=LIBS libraries for stage1
1553 --with-stage1-ldflags=FLAGS
1554 linker flags for stage1
1555 --with-boot-libs=LIBS libraries for stage2 and later
1556 --with-boot-ldflags=FLAGS
1557 linker flags for stage2 and later
1558 --with-isl=PATH Specify prefix directory for the installed ISL
1559 package. Equivalent to
1560 --with-isl-include=PATH/include plus
1561 --with-isl-lib=PATH/lib
1562 --with-isl-include=PATH Specify directory for installed ISL include files
1563 --with-isl-lib=PATH Specify the directory for the installed ISL library
1564 --with-upc-pts={struct,packed}
1565 choose the default representation of a UPC
1566 pointer-to-shared
1567 --with-build-sysroot=SYSROOT
1568 use sysroot as the system root during the build
1569 --with-debug-prefix-map='A=B C=D ...'
1570 map A to B, C to D ... in debug information
1571 --with-build-config='NAME NAME2...'
1572 use config/NAME.mk build configuration
1573 --with-build-time-tools=PATH
1574 use given path to find target tools during the build
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 CXX C++ compiler command
1585 CXXFLAGS C++ compiler flags
1586 build_configargs
1587 additional configure arguments for build directories
1588 host_configargs
1589 additional configure arguments for host directories
1590 target_configargs
1591 additional configure arguments for target directories
1592 AR AR for the host
1593 AS AS for the host
1594 DLLTOOL DLLTOOL for the host
1595 LD LD for the host
1596 LIPO LIPO for the host
1597 NM NM for the host
1598 RANLIB RANLIB for the host
1599 STRIP STRIP for the host
1600 WINDRES WINDRES for the host
1601 WINDMC WINDMC for the host
1602 OBJCOPY OBJCOPY for the host
1603 OBJDUMP OBJDUMP for the host
1604 READELF READELF for the host
1605 CC_FOR_TARGET
1606 CC for the target
1607 CXX_FOR_TARGET
1608 CXX for the target
1609 GCC_FOR_TARGET
1610 GCC for the target
1611 GCJ_FOR_TARGET
1612 GCJ for the target
1613 GFORTRAN_FOR_TARGET
1614 GFORTRAN for the target
1615 GOC_FOR_TARGET
1616 GOC for the target
1617 GUPC_FOR_TARGET
1618 GUPC for the target
1619 AR_FOR_TARGET
1620 AR for the target
1621 AS_FOR_TARGET
1622 AS for the target
1623 DLLTOOL_FOR_TARGET
1624 DLLTOOL for the target
1625 LD_FOR_TARGET
1626 LD for the target
1627 LIPO_FOR_TARGET
1628 LIPO for the target
1629 NM_FOR_TARGET
1630 NM for the target
1631 OBJCOPY_FOR_TARGET
1632 OBJCOPY for the target
1633 OBJDUMP_FOR_TARGET
1634 OBJDUMP for the target
1635 RANLIB_FOR_TARGET
1636 RANLIB for the target
1637 READELF_FOR_TARGET
1638 READELF for the target
1639 STRIP_FOR_TARGET
1640 STRIP for the target
1641 WINDRES_FOR_TARGET
1642 WINDRES for the target
1643 WINDMC_FOR_TARGET
1644 WINDMC for the target
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1649 Report bugs to the package provider.
1650 _ACEOF
1651 ac_status=$?
1654 if test "$ac_init_help" = "recursive"; then
1655 # If there are subdirs, report their specific --help.
1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 test -d "$ac_dir" ||
1658 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659 continue
1660 ac_builddir=.
1662 case "$ac_dir" in
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1666 # A ".." for each directory in $ac_dir_suffix.
1667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1668 case $ac_top_builddir_sub in
1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671 esac ;;
1672 esac
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1678 case $srcdir in
1679 .) # We are building in place.
1680 ac_srcdir=.
1681 ac_top_srcdir=$ac_top_builddir_sub
1682 ac_abs_top_srcdir=$ac_pwd ;;
1683 [\\/]* | ?:[\\/]* ) # Absolute name.
1684 ac_srcdir=$srcdir$ac_dir_suffix;
1685 ac_top_srcdir=$srcdir
1686 ac_abs_top_srcdir=$srcdir ;;
1687 *) # Relative name.
1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689 ac_top_srcdir=$ac_top_build_prefix$srcdir
1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 esac
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694 cd "$ac_dir" || { ac_status=$?; continue; }
1695 # Check for guested configure.
1696 if test -f "$ac_srcdir/configure.gnu"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699 elif test -f "$ac_srcdir/configure"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure" --help=recursive
1702 else
1703 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 fi || ac_status=$?
1705 cd "$ac_pwd" || { ac_status=$?; break; }
1706 done
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1711 cat <<\_ACEOF
1712 configure
1713 generated by GNU Autoconf 2.64
1715 Copyright (C) 2009 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718 _ACEOF
1719 exit
1722 ## ------------------------ ##
1723 ## Autoconf initialization. ##
1724 ## ------------------------ ##
1726 # ac_fn_c_try_compile LINENO
1727 # --------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext
1733 if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1762 } # ac_fn_c_try_compile
1764 # ac_fn_cxx_try_compile LINENO
1765 # ----------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_cxx_try_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_cxx_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1795 ac_retval=1
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 return $ac_retval
1800 } # ac_fn_cxx_try_compile
1802 # ac_fn_cxx_try_link LINENO
1803 # -------------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_cxx_try_link ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_cxx_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 $as_test_x conftest$ac_exeext
1830 }; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1836 ac_retval=1
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 return $ac_retval
1846 } # ac_fn_cxx_try_link
1848 # ac_fn_c_try_link LINENO
1849 # -----------------------
1850 # Try to link conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_link ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 rm -f conftest.$ac_objext conftest$ac_exeext
1855 if { { ac_try="$ac_link"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_link") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } && {
1871 test -z "$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 } && test -s conftest$ac_exeext && {
1874 test "$cross_compiling" = yes ||
1875 $as_test_x conftest$ac_exeext
1876 }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 ac_retval=1
1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1886 # interfere with the next link command; also delete a directory that is
1887 # left behind by Apple's compiler. We do this before executing the actions.
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 return $ac_retval
1892 } # ac_fn_c_try_link
1893 cat >config.log <<_ACEOF
1894 This file contains any messages produced by compilers while
1895 running configure, to aid debugging if configure makes a mistake.
1897 It was created by $as_me, which was
1898 generated by GNU Autoconf 2.64. Invocation command line was
1900 $ $0 $@
1902 _ACEOF
1903 exec 5>>config.log
1905 cat <<_ASUNAME
1906 ## --------- ##
1907 ## Platform. ##
1908 ## --------- ##
1910 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1911 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1912 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1913 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1914 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1916 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1917 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1919 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1920 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1921 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1922 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1923 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1924 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1925 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1927 _ASUNAME
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 $as_echo "PATH: $as_dir"
1935 done
1936 IFS=$as_save_IFS
1938 } >&5
1940 cat >&5 <<_ACEOF
1943 ## ----------- ##
1944 ## Core tests. ##
1945 ## ----------- ##
1947 _ACEOF
1950 # Keep a trace of the command line.
1951 # Strip out --no-create and --no-recursion so they do not pile up.
1952 # Strip out --silent because we don't want to record it for future runs.
1953 # Also quote any args containing shell meta-characters.
1954 # Make two passes to allow for proper duplicate-argument suppression.
1955 ac_configure_args=
1956 ac_configure_args0=
1957 ac_configure_args1=
1958 ac_must_keep_next=false
1959 for ac_pass in 1 2
1961 for ac_arg
1963 case $ac_arg in
1964 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1966 | -silent | --silent | --silen | --sile | --sil)
1967 continue ;;
1968 *\'*)
1969 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1970 esac
1971 case $ac_pass in
1972 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1974 as_fn_append ac_configure_args1 " '$ac_arg'"
1975 if test $ac_must_keep_next = true; then
1976 ac_must_keep_next=false # Got value, back to normal.
1977 else
1978 case $ac_arg in
1979 *=* | --config-cache | -C | -disable-* | --disable-* \
1980 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1981 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1982 | -with-* | --with-* | -without-* | --without-* | --x)
1983 case "$ac_configure_args0 " in
1984 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1985 esac
1987 -* ) ac_must_keep_next=true ;;
1988 esac
1990 as_fn_append ac_configure_args " '$ac_arg'"
1992 esac
1993 done
1994 done
1995 { ac_configure_args0=; unset ac_configure_args0;}
1996 { ac_configure_args1=; unset ac_configure_args1;}
1998 # When interrupted or exit'd, cleanup temporary files, and complete
1999 # config.log. We remove comments because anyway the quotes in there
2000 # would cause problems or look ugly.
2001 # WARNING: Use '\'' to represent an apostrophe within the trap.
2002 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2003 trap 'exit_status=$?
2004 # Save into config.log some information that might help in debugging.
2006 echo
2008 cat <<\_ASBOX
2009 ## ---------------- ##
2010 ## Cache variables. ##
2011 ## ---------------- ##
2012 _ASBOX
2013 echo
2014 # The following way of writing the cache mishandles newlines in values,
2016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in #(
2019 *${as_nl}*)
2020 case $ac_var in #(
2021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2023 esac
2024 case $ac_var in #(
2025 _ | IFS | as_nl) ;; #(
2026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2027 *) { eval $ac_var=; unset $ac_var;} ;;
2028 esac ;;
2029 esac
2030 done
2031 (set) 2>&1 |
2032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2033 *${as_nl}ac_space=\ *)
2034 sed -n \
2035 "s/'\''/'\''\\\\'\'''\''/g;
2036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2037 ;; #(
2039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2041 esac |
2042 sort
2044 echo
2046 cat <<\_ASBOX
2047 ## ----------------- ##
2048 ## Output variables. ##
2049 ## ----------------- ##
2050 _ASBOX
2051 echo
2052 for ac_var in $ac_subst_vars
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2062 if test -n "$ac_subst_files"; then
2063 cat <<\_ASBOX
2064 ## ------------------- ##
2065 ## File substitutions. ##
2066 ## ------------------- ##
2067 _ASBOX
2068 echo
2069 for ac_var in $ac_subst_files
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2080 if test -s confdefs.h; then
2081 cat <<\_ASBOX
2082 ## ----------- ##
2083 ## confdefs.h. ##
2084 ## ----------- ##
2085 _ASBOX
2086 echo
2087 cat confdefs.h
2088 echo
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2106 $as_echo "/* confdefs.h */" > confdefs.h
2108 # Predefined preprocessor variables.
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140 ac_site_file1=$CONFIG_SITE
2141 elif test "x$prefix" != xNONE; then
2142 ac_site_file1=$prefix/share/config.site
2143 ac_site_file2=$prefix/etc/config.site
2144 else
2145 ac_site_file1=$ac_default_prefix/share/config.site
2146 ac_site_file2=$ac_default_prefix/etc/config.site
2148 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150 test "x$ac_site_file" = xNONE && continue
2151 if test -r "$ac_site_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2153 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2154 sed 's/^/| /' "$ac_site_file" >&5
2155 . "$ac_site_file"
2157 done
2159 if test -r "$cache_file"; then
2160 # Some versions of bash will fail to source /dev/null (special
2161 # files actually), so we avoid doing that.
2162 if test -f "$cache_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 $as_echo "$as_me: loading cache $cache_file" >&6;}
2165 case $cache_file in
2166 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167 *) . "./$cache_file";;
2168 esac
2170 else
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 $as_echo "$as_me: creating cache $cache_file" >&6;}
2173 >$cache_file
2176 # Check that the precious variables saved in the cache have kept the same
2177 # value.
2178 ac_cache_corrupted=false
2179 for ac_var in $ac_precious_vars; do
2180 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2181 eval ac_new_set=\$ac_env_${ac_var}_set
2182 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2183 eval ac_new_val=\$ac_env_${ac_var}_value
2184 case $ac_old_set,$ac_new_set in
2185 set,)
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2189 ,set)
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2191 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2192 ac_cache_corrupted=: ;;
2193 ,);;
2195 if test "x$ac_old_val" != "x$ac_new_val"; then
2196 # differences in whitespace do not lead to failure.
2197 ac_old_val_w=`echo x $ac_old_val`
2198 ac_new_val_w=`echo x $ac_new_val`
2199 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2201 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2202 ac_cache_corrupted=:
2203 else
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2205 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2206 eval $ac_var=\$ac_old_val
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2209 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2211 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2212 fi;;
2213 esac
2214 # Pass precious variables to config.status.
2215 if test "$ac_new_set" = set; then
2216 case $ac_new_val in
2217 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 *) ac_arg=$ac_var=$ac_new_val ;;
2219 esac
2220 case " $ac_configure_args " in
2221 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2222 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2223 esac
2225 done
2226 if $ac_cache_corrupted; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2230 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2231 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2233 ## -------------------- ##
2234 ## Main body of script. ##
2235 ## -------------------- ##
2237 ac_ext=c
2238 ac_cpp='$CPP $CPPFLAGS'
2239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251 progname=$0
2252 # if PWD already has a value, it is probably wrong.
2253 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2255 # Export original configure arguments for use by sub-configures.
2256 # Quote arguments with shell meta charatcers.
2257 TOPLEVEL_CONFIGURE_ARGUMENTS=
2258 set -- "$progname" "$@"
2259 for ac_arg
2261 case "$ac_arg" in
2262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2263 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2264 # if the argument is of the form -foo=baz, quote the baz part only
2265 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2266 *) ;;
2267 esac
2268 # Add the quoted argument to the list.
2269 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2270 done
2271 if test "$silent" = yes; then
2272 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2274 # Remove the initial space we just introduced and, as these will be
2275 # expanded by make, quote '$'.
2276 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2279 # Find the build, host, and target systems.
2280 ac_aux_dir=
2281 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2282 for ac_t in install-sh install.sh shtool; do
2283 if test -f "$ac_dir/$ac_t"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/$ac_t -c"
2286 break 2
2288 done
2289 done
2290 if test -z "$ac_aux_dir"; then
2291 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2294 # These three variables are undocumented and unsupported,
2295 # and are intended to be withdrawn in a future Autoconf release.
2296 # They can cause serious problems if a builder's source tree is in a directory
2297 # whose full name contains unusual characters.
2298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2303 # Make sure we can run config.sub.
2304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2305 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2308 $as_echo_n "checking build system type... " >&6; }
2309 if test "${ac_cv_build+set}" = set; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 ac_build_alias=$build_alias
2313 test "x$ac_build_alias" = x &&
2314 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2315 test "x$ac_build_alias" = x &&
2316 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2318 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2322 $as_echo "$ac_cv_build" >&6; }
2323 case $ac_cv_build in
2324 *-*-*) ;;
2325 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2326 esac
2327 build=$ac_cv_build
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_build
2330 shift
2331 build_cpu=$1
2332 build_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 build_os=$*
2337 IFS=$ac_save_IFS
2338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2341 case ${build_alias} in
2342 "") build_noncanonical=${build} ;;
2343 *) build_noncanonical=${build_alias} ;;
2344 esac
2348 case ${host_alias} in
2349 "") host_noncanonical=${build_noncanonical} ;;
2350 *) host_noncanonical=${host_alias} ;;
2351 esac
2355 case ${target_alias} in
2356 "") target_noncanonical=${host_noncanonical} ;;
2357 *) target_noncanonical=${target_alias} ;;
2358 esac
2363 test "$host_noncanonical" = "$target_noncanonical" &&
2364 test "$program_prefix$program_suffix$program_transform_name" = \
2365 NONENONEs,x,x, &&
2366 program_transform_name=s,y,y,
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2369 $as_echo_n "checking host system type... " >&6; }
2370 if test "${ac_cv_host+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 if test "x$host_alias" = x; then
2374 ac_cv_host=$ac_cv_build
2375 else
2376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2382 $as_echo "$ac_cv_host" >&6; }
2383 case $ac_cv_host in
2384 *-*-*) ;;
2385 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2386 esac
2387 host=$ac_cv_host
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_host
2390 shift
2391 host_cpu=$1
2392 host_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 host_os=$*
2397 IFS=$ac_save_IFS
2398 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2402 $as_echo_n "checking target system type... " >&6; }
2403 if test "${ac_cv_target+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test "x$target_alias" = x; then
2407 ac_cv_target=$ac_cv_host
2408 else
2409 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2410 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2415 $as_echo "$ac_cv_target" >&6; }
2416 case $ac_cv_target in
2417 *-*-*) ;;
2418 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2419 esac
2420 target=$ac_cv_target
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_target
2423 shift
2424 target_cpu=$1
2425 target_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 target_os=$*
2430 IFS=$ac_save_IFS
2431 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2434 # The aliases save the names the user supplied, while $host etc.
2435 # will get canonicalized.
2436 test -n "$target_alias" &&
2437 test "$program_prefix$program_suffix$program_transform_name" = \
2438 NONENONEs,x,x, &&
2439 program_prefix=${target_alias}-
2441 test "$program_prefix" != NONE &&
2442 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2443 # Use a double $ so make ignores it.
2444 test "$program_suffix" != NONE &&
2445 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2446 # Double any \ or $.
2447 # By default was `s,x,x', remove it if useless.
2448 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2449 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2453 # Get 'install' or 'install-sh' and its variants.
2454 # Find a good install program. We prefer a C program (faster),
2455 # so one script is as good as another. But avoid the broken or
2456 # incompatible versions:
2457 # SysV /etc/install, /usr/sbin/install
2458 # SunOS /usr/etc/install
2459 # IRIX /sbin/install
2460 # AIX /bin/install
2461 # AmigaOS /C/install, which installs bootblocks on floppy discs
2462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2465 # OS/2's system install, which has a completely different semantic
2466 # ./install, which can be erroneously created by make from ./install.sh.
2467 # Reject install programs that cannot install multiple files.
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2469 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2470 if test -z "$INSTALL"; then
2471 if test "${ac_cv_path_install+set}" = set; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 # Account for people who put trailing slashes in PATH elements.
2480 case $as_dir/ in #((
2481 ./ | .// | /[cC]/* | \
2482 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2483 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2484 /usr/ucb/* ) ;;
2486 # OSF1 and SCO ODT 3.0 have their own names for install.
2487 # Don't use installbsd from OSF since it installs stuff as root
2488 # by default.
2489 for ac_prog in ginstall scoinst install; do
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2492 if test $ac_prog = install &&
2493 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2494 # AIX install. It has an incompatible calling convention.
2496 elif test $ac_prog = install &&
2497 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2498 # program-specific install script used by HP pwplus--don't use.
2500 else
2501 rm -rf conftest.one conftest.two conftest.dir
2502 echo one > conftest.one
2503 echo two > conftest.two
2504 mkdir conftest.dir
2505 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2506 test -s conftest.one && test -s conftest.two &&
2507 test -s conftest.dir/conftest.one &&
2508 test -s conftest.dir/conftest.two
2509 then
2510 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2511 break 3
2515 done
2516 done
2518 esac
2520 done
2521 IFS=$as_save_IFS
2523 rm -rf conftest.one conftest.two conftest.dir
2526 if test "${ac_cv_path_install+set}" = set; then
2527 INSTALL=$ac_cv_path_install
2528 else
2529 # As a last resort, use the slow shell script. Don't cache a
2530 # value for INSTALL within a source directory, because that will
2531 # break other packages using the cache if that directory is
2532 # removed, or if the value is a relative name.
2533 INSTALL=$ac_install_sh
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2537 $as_echo "$INSTALL" >&6; }
2539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2540 # It thinks the first close brace ends the variable substitution.
2541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2548 $as_echo_n "checking whether ln works... " >&6; }
2549 if test "${acx_cv_prog_LN+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 rm -f conftestdata_t
2553 echo >conftestdata_f
2554 if ln conftestdata_f conftestdata_t 2>/dev/null
2555 then
2556 acx_cv_prog_LN=ln
2557 else
2558 acx_cv_prog_LN=no
2560 rm -f conftestdata_f conftestdata_t
2563 if test $acx_cv_prog_LN = no; then
2564 LN="cp"
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2566 $as_echo "no, using $LN" >&6; }
2567 else
2568 LN="$acx_cv_prog_LN"
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2574 $as_echo_n "checking whether ln -s works... " >&6; }
2575 LN_S=$as_ln_s
2576 if test "$LN_S" = "ln -s"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578 $as_echo "yes" >&6; }
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2581 $as_echo "no, using $LN_S" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2585 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2586 if test "${ac_cv_path_SED+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2590 for ac_i in 1 2 3 4 5 6 7; do
2591 ac_script="$ac_script$as_nl$ac_script"
2592 done
2593 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2594 { ac_script=; unset ac_script;}
2595 if test -z "$SED"; then
2596 ac_path_SED_found=false
2597 # Loop through the user's path and test for each of PROGNAME-LIST
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_prog in sed gsed; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2606 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2607 # Check for GNU ac_path_SED and select it if it is found.
2608 # Check for GNU $ac_path_SED
2609 case `"$ac_path_SED" --version 2>&1` in
2610 *GNU*)
2611 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2613 ac_count=0
2614 $as_echo_n 0123456789 >"conftest.in"
2615 while :
2617 cat "conftest.in" "conftest.in" >"conftest.tmp"
2618 mv "conftest.tmp" "conftest.in"
2619 cp "conftest.in" "conftest.nl"
2620 $as_echo '' >> "conftest.nl"
2621 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2623 as_fn_arith $ac_count + 1 && ac_count=$as_val
2624 if test $ac_count -gt ${ac_path_SED_max-0}; then
2625 # Best one so far, save it but keep looking for a better one
2626 ac_cv_path_SED="$ac_path_SED"
2627 ac_path_SED_max=$ac_count
2629 # 10*(2^10) chars as input seems more than enough
2630 test $ac_count -gt 10 && break
2631 done
2632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2633 esac
2635 $ac_path_SED_found && break 3
2636 done
2637 done
2638 done
2639 IFS=$as_save_IFS
2640 if test -z "$ac_cv_path_SED"; then
2641 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2643 else
2644 ac_cv_path_SED=$SED
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2649 $as_echo "$ac_cv_path_SED" >&6; }
2650 SED="$ac_cv_path_SED"
2651 rm -f conftest.sed
2653 for ac_prog in gawk mawk nawk awk
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_AWK+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$AWK"; then
2663 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_AWK="$ac_prog"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2676 done
2677 done
2678 IFS=$as_save_IFS
2682 AWK=$ac_cv_prog_AWK
2683 if test -n "$AWK"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2685 $as_echo "$AWK" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2692 test -n "$AWK" && break
2693 done
2696 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2698 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2699 # a relative path.
2700 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2701 INSTALL="${srcpwd}/install-sh -c"
2704 # Set srcdir to "." if that's what it is.
2705 # This is important for multilib support.
2706 pwd=`${PWDCMD-pwd}`
2707 if test "${pwd}" = "${srcpwd}" ; then
2708 srcdir=.
2711 topsrcdir=$srcpwd
2713 extra_host_args=
2715 ### To add a new directory to the tree, first choose whether it is a target
2716 ### or a host dependent tool. Then put it into the appropriate list
2717 ### (library or tools, host or target), doing a dependency sort.
2719 # Subdirs will be configured in the order listed in build_configdirs,
2720 # configdirs, or target_configdirs; see the serialization section below.
2722 # Dependency sorting is only needed when *configuration* must be done in
2723 # a particular order. In all cases a dependency should be specified in
2724 # the Makefile, whether or not it's implicitly specified here.
2726 # Double entries in build_configdirs, configdirs, or target_configdirs may
2727 # cause circular dependencies and break everything horribly.
2729 # these library is used by various programs built for the build
2730 # environment
2732 build_libs="build-libiberty build-libcpp"
2734 # these tools are built for the build environment
2735 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2737 # these libraries are used by various programs built for the host environment
2739 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2741 # these tools are built for the host environment
2742 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2743 # know that we are building the simulator.
2744 # binutils, gas and ld appear in that order because it makes sense to run
2745 # "make check" in that particular order.
2746 # If --enable-gold is used, "gold" may replace "ld".
2747 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2749 # libgcj represents the runtime libraries only used by gcj.
2750 libgcj="target-libffi \
2751 target-zlib \
2752 target-libjava"
2754 # these libraries are built for the target environment, and are built after
2755 # the host libraries and the host tools (which may be a cross compiler)
2756 # Note that libiberty is not a target library.
2757 target_libraries="target-libgcc \
2758 target-libbacktrace \
2759 target-libgloss \
2760 target-newlib \
2761 target-libgomp \
2762 target-libcilkrts \
2763 target-liboffloadmic \
2764 target-libatomic \
2765 target-libitm \
2766 target-libstdc++-v3 \
2767 target-libsanitizer \
2768 target-libvtv \
2769 target-libssp \
2770 target-libquadmath \
2771 target-libgfortran \
2772 target-boehm-gc \
2773 ${libgcj} \
2774 target-libobjc \
2775 target-libgupc \
2776 target-libada \
2777 target-libgo"
2779 # these tools are built using the target libraries, and are intended to
2780 # run only in the target environment
2782 # note: any program that *uses* libraries that are in the "target_libraries"
2783 # list belongs in this list.
2785 target_tools="target-rda"
2787 ################################################################################
2789 ## All tools belong in one of the four categories, and are assigned above
2790 ## We assign ${configdirs} this way to remove all embedded newlines. This
2791 ## is important because configure will choke if they ever get through.
2792 ## ${configdirs} is directories we build using the host tools.
2793 ## ${target_configdirs} is directories we build using the target tools.
2794 configdirs=`echo ${host_libs} ${host_tools}`
2795 target_configdirs=`echo ${target_libraries} ${target_tools}`
2796 build_configdirs=`echo ${build_libs} ${build_tools}`
2800 ################################################################################
2802 srcname="gnu development package"
2804 # This gets set non-empty for some net releases of packages.
2805 appdirs=""
2807 # Define is_cross_compiler to save on calls to 'test'.
2808 is_cross_compiler=
2809 if test x"${host}" = x"${target}" ; then
2810 is_cross_compiler=no
2811 else
2812 is_cross_compiler=yes
2815 # Find the build and target subdir names.
2817 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2818 # have matching libraries, they should use host libraries: Makefile.tpl
2819 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2820 # However, they still use the build modules, because the corresponding
2821 # host modules (e.g. bison) are only built for the host when bootstrap
2822 # finishes. So:
2823 # - build_subdir is where we find build modules, and never changes.
2824 # - build_libsubdir is where we find build libraries, and can be overridden.
2826 # Prefix 'build-' so this never conflicts with target_subdir.
2827 build_subdir="build-${build_noncanonical}"
2829 # Check whether --with-build-libsubdir was given.
2830 if test "${with_build_libsubdir+set}" = set; then :
2831 withval=$with_build_libsubdir; build_libsubdir="$withval"
2832 else
2833 build_libsubdir="$build_subdir"
2836 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2837 if ( test $srcdir = . && test -d gcc ) \
2838 || test -d $srcdir/../host-${host_noncanonical}; then
2839 host_subdir="host-${host_noncanonical}"
2840 else
2841 host_subdir=.
2843 # No prefix.
2844 target_subdir=${target_noncanonical}
2846 # Be sure to cover against remnants of an in-tree build.
2847 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2848 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2849 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2852 # Skipdirs are removed silently.
2853 skipdirs=
2854 # Noconfigdirs are removed loudly.
2855 noconfigdirs=""
2857 use_gnu_ld=
2858 # Make sure we don't let GNU ld be added if we didn't want it.
2859 if test x$with_gnu_ld = xno ; then
2860 use_gnu_ld=no
2861 noconfigdirs="$noconfigdirs ld gold"
2864 use_gnu_as=
2865 # Make sure we don't let GNU as be added if we didn't want it.
2866 if test x$with_gnu_as = xno ; then
2867 use_gnu_as=no
2868 noconfigdirs="$noconfigdirs gas"
2871 use_included_zlib=
2872 # Make sure we don't let ZLIB be added if we didn't want it.
2873 if test x$with_system_zlib = xyes ; then
2874 use_included_zlib=no
2875 noconfigdirs="$noconfigdirs zlib"
2878 # some tools are so dependent upon X11 that if we're not building with X,
2879 # it's not even worth trying to configure, much less build, that tool.
2881 case ${with_x} in
2882 yes | "") ;; # the default value for this tree is that X11 is available
2884 skipdirs="${skipdirs} tk itcl libgui"
2885 # We won't be able to build gdbtk without X.
2886 enable_gdbtk=no
2888 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2889 esac
2891 # Some are only suitable for cross toolchains.
2892 # Remove these if host=target.
2893 cross_only="target-libgloss target-newlib target-opcodes"
2895 case $is_cross_compiler in
2896 no) skipdirs="${skipdirs} ${cross_only}" ;;
2897 esac
2899 # If both --with-headers and --with-libs are specified, default to
2900 # --without-newlib.
2901 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2902 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2903 if test x"${with_newlib}" = x ; then
2904 with_newlib=no
2908 # Recognize --with-newlib/--without-newlib.
2909 case ${with_newlib} in
2910 no) skipdirs="${skipdirs} target-newlib" ;;
2911 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2912 esac
2914 # Check whether --enable-as-accelerator-for was given.
2915 if test "${enable_as_accelerator_for+set}" = set; then :
2916 enableval=$enable_as_accelerator_for;
2920 # Check whether --enable-offload-targets was given.
2921 if test "${enable_offload_targets+set}" = set; then :
2922 enableval=$enable_offload_targets;
2923 if test x"$enable_offload_targets" = x; then
2924 as_fn_error "no offload targets specified" "$LINENO" 5
2927 else
2928 enable_offload_targets=
2932 # Handle --enable-gold, --enable-ld.
2933 # --disable-gold [--enable-ld]
2934 # Build only ld. Default option.
2935 # --enable-gold [--enable-ld]
2936 # Build both gold and ld. Install gold as "ld.gold", install ld
2937 # as "ld.bfd" and "ld".
2938 # --enable-gold=default [--enable-ld]
2939 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2940 # install ld as "ld.bfd".
2941 # --enable-gold[=default] --disable-ld
2942 # Build only gold, which is then installed as both "ld.gold" and "ld".
2943 # --enable-gold --enable-ld=default
2944 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2945 # and ld.bfd).
2946 # In other words, ld is default
2947 # --enable-gold=default --enable-ld=default
2948 # Error.
2950 default_ld=
2951 # Check whether --enable-gold was given.
2952 if test "${enable_gold+set}" = set; then :
2953 enableval=$enable_gold; ENABLE_GOLD=$enableval
2954 else
2955 ENABLE_GOLD=no
2958 case "${ENABLE_GOLD}" in
2959 yes|default)
2960 # Check for ELF target.
2961 is_elf=no
2962 case "${target}" in
2963 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2964 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2965 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2966 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2967 case "${target}" in
2968 *-*-linux*aout* | *-*-linux*oldld*)
2971 is_elf=yes
2973 esac
2974 esac
2976 if test "$is_elf" = "yes"; then
2977 # Check for target supported by gold.
2978 case "${target}" in
2979 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2980 | aarch64*-*-* | tilegx*-*-*)
2981 configdirs="$configdirs gold"
2982 if test x${ENABLE_GOLD} = xdefault; then
2983 default_ld=gold
2985 ENABLE_GOLD=yes
2987 esac
2993 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2995 esac
2997 # Check whether --enable-ld was given.
2998 if test "${enable_ld+set}" = set; then :
2999 enableval=$enable_ld; ENABLE_LD=$enableval
3000 else
3001 ENABLE_LD=yes
3005 case "${ENABLE_LD}" in
3006 default)
3007 if test x${default_ld} != x; then
3008 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3011 yes)
3014 if test x${ENABLE_GOLD} != xyes; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3016 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3018 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3021 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3023 esac
3025 # Configure extra directories which are host specific
3027 case "${host}" in
3028 *-cygwin*)
3029 configdirs="$configdirs libtermcap" ;;
3030 esac
3032 # A target can indicate whether a language isn't supported for some reason.
3033 # Only spaces may be used in this macro; not newlines or tabs.
3034 unsupported_languages=
3036 # Remove more programs from consideration, based on the host or
3037 # target this usually means that a port of the program doesn't
3038 # exist yet.
3040 case "${host}" in
3041 i[3456789]86-*-msdosdjgpp*)
3042 noconfigdirs="$noconfigdirs tcl tk itcl"
3044 esac
3047 # Check whether --enable-libquadmath was given.
3048 if test "${enable_libquadmath+set}" = set; then :
3049 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3050 else
3051 ENABLE_LIBQUADMATH=yes
3054 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3055 noconfigdirs="$noconfigdirs target-libquadmath"
3059 # Check whether --enable-libquadmath-support was given.
3060 if test "${enable_libquadmath_support+set}" = set; then :
3061 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3062 else
3063 ENABLE_LIBQUADMATH_SUPPORT=yes
3066 enable_libquadmath_support=
3067 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3068 enable_libquadmath_support=no
3072 # Check whether --enable-libada was given.
3073 if test "${enable_libada+set}" = set; then :
3074 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3075 else
3076 ENABLE_LIBADA=yes
3079 if test "${ENABLE_LIBADA}" != "yes" ; then
3080 noconfigdirs="$noconfigdirs gnattools"
3083 # Check whether --enable-libssp was given.
3084 if test "${enable_libssp+set}" = set; then :
3085 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3086 else
3087 ENABLE_LIBSSP=yes
3091 # Check whether --enable-libstdcxx was given.
3092 if test "${enable_libstdcxx+set}" = set; then :
3093 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3094 else
3095 ENABLE_LIBSTDCXX=default
3098 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3099 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3102 # If this is accelerator compiler and its target is intelmic we enable
3103 # target liboffloadmic by default. If this is compiler with offloading
3104 # for intelmic we enable host liboffloadmic by default. Otherwise
3105 # liboffloadmic is disabled by default.
3106 # Check whether --enable-liboffloadmic was given.
3107 if test "${enable_liboffloadmic+set}" = set; then :
3108 enableval=$enable_liboffloadmic; case "$enableval" in
3109 no | host | target)
3110 enable_liboffloadmic=$enableval ;;
3112 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3113 esac
3114 else
3115 if test x"$enable_as_accelerator_for" != x; then
3116 case "${target}" in
3117 *-intelmic-* | *-intelmicemul-*)
3118 enable_liboffloadmic=target
3119 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3122 enable_liboffloadmic=no
3124 esac
3125 else
3126 case "${enable_offload_targets}" in
3127 *-intelmic-* | *-intelmicemul-*)
3128 enable_liboffloadmic=host
3129 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3132 enable_liboffloadmic=no
3134 esac
3140 # Save it here so that, even in case of --enable-libgcj, if the Java
3141 # front-end isn't enabled, we still get libgcj disabled.
3142 libgcj_saved=$libgcj
3143 case $enable_libgcj in
3144 yes)
3145 # If we reset it here, it won't get added to noconfigdirs in the
3146 # target-specific build rules, so it will be forcibly enabled
3147 # (unless the Java language itself isn't enabled).
3148 libgcj=
3151 # Make sure we get it printed in the list of not supported target libs.
3152 # Don't disable libffi, though, other languages use it.
3153 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3154 # Clear libgcj_saved so that even if java is enabled libffi won't be
3155 # built.
3156 libgcj_saved=
3158 esac
3160 # Check whether --enable-static-libjava was given.
3161 if test "${enable_static_libjava+set}" = set; then :
3162 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3163 else
3164 ENABLE_STATIC_LIBJAVA=no
3167 enable_static_libjava=
3168 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3169 enable_static_libjava=yes
3172 if test x$enable_static_libjava != xyes ; then
3173 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3177 posix_based_os="yes"
3178 case "${target}" in
3179 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3181 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3183 *-*-solaris2* | *-*-hpux11*)
3185 *-*-darwin* | *-*-aix*)
3188 posix_based_os="no"
3190 esac
3192 # Enable libgomp by default on POSIX hosted systems.
3193 if test x$enable_libgomp = x -a $posix_based_os = "no" ; then
3194 # Disable libgomp on non POSIX hosted systems.
3195 noconfigdirs="$noconfigdirs target-libgomp"
3198 # Enable libgupc by default on POSIX hosted systems.
3199 if test x$enable_libgupc = x -a $posix_based_os = "no" ; then
3200 # Disable libgupc on non POSIX hosted systems.
3201 noconfigdirs="$noconfigdirs target-libgupc"
3204 # Disable libatomic on unsupported systems.
3205 if test -d ${srcdir}/libatomic; then
3206 if test x$enable_libatomic = x; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3208 $as_echo_n "checking for libatomic support... " >&6; }
3209 if (srcdir=${srcdir}/libatomic; \
3210 . ${srcdir}/configure.tgt; \
3211 test -n "$UNSUPPORTED")
3212 then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 noconfigdirs="$noconfigdirs target-libatomic"
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218 $as_echo "yes" >&6; }
3223 # Disable libcilkrts on unsupported systems.
3224 if test -d ${srcdir}/libcilkrts; then
3225 if test x$enable_libcilkrts = x; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3227 $as_echo_n "checking for libcilkrts support... " >&6; }
3228 if (srcdir=${srcdir}/libcilkrts; \
3229 . ${srcdir}/configure.tgt; \
3230 test -n "$UNSUPPORTED")
3231 then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 noconfigdirs="$noconfigdirs target-libcilkrts"
3235 else
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3237 $as_echo "yes" >&6; }
3242 # Disable liboffloadmic on unsupported systems.
3243 if test -d ${srcdir}/liboffloadmic; then
3244 if test x$enable_liboffloadmic != xno; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3246 $as_echo_n "checking for liboffloadmic support... " >&6; }
3247 if (srcdir=${srcdir}/liboffloadmic; \
3248 . ${srcdir}/configure.tgt; \
3249 test -n "$UNSUPPORTED")
3250 then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 noconfigdirs="$noconfigdirs target-liboffloadmic"
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3261 # Disable libitm on unsupported systems.
3262 if test -d ${srcdir}/libitm; then
3263 if test x$enable_libitm = x; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3265 $as_echo_n "checking for libitm support... " >&6; }
3266 if (srcdir=${srcdir}/libitm; \
3267 . ${srcdir}/configure.tgt; \
3268 test -n "$UNSUPPORTED")
3269 then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 noconfigdirs="$noconfigdirs target-libitm"
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3280 # Disable libsanitizer on unsupported systems.
3281 if test -d ${srcdir}/libsanitizer; then
3282 if test x$enable_libsanitizer = x; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3284 $as_echo_n "checking for libsanitizer support... " >&6; }
3285 if (srcdir=${srcdir}/libsanitizer; \
3286 . ${srcdir}/configure.tgt; \
3287 test -n "$UNSUPPORTED")
3288 then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 noconfigdirs="$noconfigdirs target-libsanitizer"
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3299 # Disable libvtv on unsupported systems.
3300 if test -d ${srcdir}/libvtv; then
3301 if test x$enable_libvtv = x; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3303 $as_echo_n "checking for libvtv support... " >&6; }
3304 if (srcdir=${srcdir}/libvtv; \
3305 . ${srcdir}/configure.tgt; \
3306 test "$VTV_SUPPORTED" != "yes")
3307 then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 noconfigdirs="$noconfigdirs target-libvtv"
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3318 # Disable libquadmath for some systems.
3319 case "${target}" in
3320 avr-*-*)
3321 noconfigdirs="$noconfigdirs target-libquadmath"
3323 # libquadmath is unused on AIX and libquadmath build process use of
3324 # LD_LIBRARY_PATH can break AIX bootstrap.
3325 powerpc-*-aix* | rs6000-*-aix*)
3326 noconfigdirs="$noconfigdirs target-libquadmath"
3328 esac
3330 # Disable libssp for some systems.
3331 case "${target}" in
3332 avr-*-*)
3333 # No hosted I/O support.
3334 noconfigdirs="$noconfigdirs target-libssp"
3336 powerpc-*-aix* | rs6000-*-aix*)
3337 noconfigdirs="$noconfigdirs target-libssp"
3339 rl78-*-*)
3340 # libssp uses a misaligned load to trigger a fault, but the RL78
3341 # doesn't fault for those - instead, it gives a build-time error
3342 # for explicit misaligned loads.
3343 noconfigdirs="$noconfigdirs target-libssp"
3345 visium-*-*)
3346 # No hosted I/O support.
3347 noconfigdirs="$noconfigdirs target-libssp"
3349 esac
3351 # Disable libstdc++-v3 for some systems.
3352 # Allow user to override this if they pass --enable-libstdc++-v3
3353 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354 case "${target}" in
3355 *-*-vxworks*)
3356 # VxWorks uses the Dinkumware C++ library.
3357 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3359 arm*-wince-pe*)
3360 # the C++ libraries don't build on top of CE's C libraries
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3363 avr-*-*)
3364 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366 esac
3369 # Disable Fortran for some systems.
3370 case "${target}" in
3371 mmix-*-*)
3372 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3373 unsupported_languages="$unsupported_languages fortran"
3375 esac
3377 # Disable Java if libffi is not supported.
3378 case "${target}" in
3379 aarch64-*-*)
3381 alpha*-*-*)
3383 arm*-*-*)
3385 cris-*-*)
3387 frv-*-*)
3389 hppa*-*-linux*)
3391 hppa*-*-hpux*)
3393 i?86-*-*)
3395 ia64*-*-*)
3397 m32r*-*-*)
3399 m68k-*-*)
3401 mips*-*-rtems*)
3403 mips*-*-linux*)
3405 powerpc*-*-linux*)
3407 powerpc-*-darwin*)
3409 powerpc-*-aix* | rs6000-*-aix*)
3411 powerpc-*-freebsd*)
3413 powerpc64-*-freebsd*)
3415 powerpc*-*-rtems*)
3417 s390-*-* | s390x-*-*)
3419 sh-*-* | sh[34]*-*-*)
3421 sh64-*-* | sh5*-*-*)
3423 sparc*-*-*)
3425 x86_64-*-*)
3427 *-*-*)
3428 unsupported_languages="$unsupported_languages java"
3430 esac
3432 # Disable Java, libgcj or related libraries for some systems.
3433 case "${target}" in
3434 powerpc-*-darwin*)
3436 i[3456789]86-*-darwin*)
3438 x86_64-*-darwin[912]*)
3440 *-*-darwin*)
3441 noconfigdirs="$noconfigdirs ${libgcj}"
3443 *-*-netware*)
3444 noconfigdirs="$noconfigdirs ${libgcj}"
3446 *-*-rtems*)
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3449 *-*-tpf*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3452 *-*-uclinux*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3455 *-*-vxworks*)
3456 noconfigdirs="$noconfigdirs ${libgcj}"
3458 alpha*-*-*vms*)
3459 noconfigdirs="$noconfigdirs ${libgcj}"
3461 arm*-*-freebsd*)
3462 noconfigdirs="$noconfigdirs ${libgcj}"
3464 arm-wince-pe)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3467 arm*-*-symbianelf*)
3468 noconfigdirs="$noconfigdirs ${libgcj}"
3470 bfin-*-*)
3471 noconfigdirs="$noconfigdirs target-boehm-gc"
3473 cris-*-* | crisv32-*-*)
3474 unsupported_languages="$unsupported_languages java"
3475 case "${target}" in
3476 *-*-linux*)
3478 *) # See PR46792 regarding target-libffi.
3479 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3480 esac
3482 hppa*64*-*-linux*)
3483 # In this case, it's because the hppa64-linux target is for
3484 # the kernel only at this point and has no libc, and thus no
3485 # headers, crt*.o, etc., all of which are needed by these.
3486 unsupported_languages="$unsupported_languages java"
3488 hppa*64*-*-hpux*)
3489 noconfigdirs="$noconfigdirs ${libgcj}"
3491 hppa*-hp-hpux11*)
3493 hppa*-*-hpux*)
3494 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3495 # build on HP-UX 10.20.
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3498 ia64*-*-*vms*)
3499 noconfigdirs="$noconfigdirs ${libgcj}"
3501 i[3456789]86-w64-mingw*)
3502 noconfigdirs="$noconfigdirs ${libgcj}"
3504 i[3456789]86-*-mingw*)
3505 noconfigdirs="$noconfigdirs ${libgcj}"
3507 x86_64-*-mingw*)
3508 noconfigdirs="$noconfigdirs ${libgcj}"
3510 mmix-*-*)
3511 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3513 powerpc-*-aix*)
3514 # copied from rs6000-*-* entry
3515 noconfigdirs="$noconfigdirs ${libgcj}"
3517 rs6000-*-aix*)
3518 noconfigdirs="$noconfigdirs ${libgcj}"
3520 *-*-lynxos*)
3521 noconfigdirs="$noconfigdirs ${libgcj}"
3523 esac
3525 # Disable the go frontend on systems where it is known to not work. Please keep
3526 # this in sync with contrib/config-list.mk.
3527 case "${target}" in
3528 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3529 unsupported_languages="$unsupported_languages go"
3531 esac
3533 # Disable libgo for some systems where it is known to not work.
3534 # For testing, you can easily override this with --enable-libgo.
3535 if test x$enable_libgo = x; then
3536 case "${target}" in
3537 *-*-darwin*)
3538 # PR 46986
3539 noconfigdirs="$noconfigdirs target-libgo"
3541 *-*-cygwin* | *-*-mingw*)
3542 noconfigdirs="$noconfigdirs target-libgo"
3544 *-*-aix*)
3545 noconfigdirs="$noconfigdirs target-libgo"
3547 esac
3550 # Default libgloss CPU subdirectory.
3551 libgloss_dir="$target_cpu"
3553 case "${target}" in
3554 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3555 libgloss_dir=wince
3557 aarch64*-*-* )
3558 libgloss_dir=aarch64
3560 arm*-*-*)
3561 libgloss_dir=arm
3563 cris-*-* | crisv32-*-*)
3564 libgloss_dir=cris
3566 hppa*-*-*)
3567 libgloss_dir=pa
3569 i[3456789]86-*-*)
3570 libgloss_dir=i386
3572 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3573 libgloss_dir=m68hc11
3575 m68*-*-* | fido-*-*)
3576 libgloss_dir=m68k
3578 mips*-*-*)
3579 libgloss_dir=mips
3581 powerpc*-*-*)
3582 libgloss_dir=rs6000
3584 sparc*-*-*)
3585 libgloss_dir=sparc
3587 esac
3589 # Disable newlib and libgloss for various target OSes.
3590 case "${target}" in
3591 alpha*-dec-osf*)
3592 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3594 i[3456789]86-*-linux*)
3595 # This section makes it possible to build newlib natively on linux.
3596 # If we are using a cross compiler then don't configure newlib.
3597 if test x${is_cross_compiler} != xno ; then
3598 noconfigdirs="$noconfigdirs target-newlib"
3600 noconfigdirs="$noconfigdirs target-libgloss"
3601 # If we are not using a cross compiler, do configure newlib.
3602 # Note however, that newlib will only be configured in this situation
3603 # if the --with-newlib option has been given, because otherwise
3604 # 'target-newlib' will appear in skipdirs.
3606 i[3456789]86-*-rdos*)
3607 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3609 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3610 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3612 sparc-*-sunos4*)
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3615 *-*-aix*)
3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3618 *-*-beos*)
3619 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3621 *-*-chorusos)
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 *-*-dragonfly*)
3625 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3627 *-*-freebsd*)
3628 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3631 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3633 *-*-lynxos*)
3634 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3636 *-*-mingw*)
3637 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 *-*-netbsd*)
3640 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 *-*-netware*)
3643 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 *-*-tpf*)
3646 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 *-*-uclinux*)
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 *-*-vxworks*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 esac
3656 case "${target}" in
3657 *-*-chorusos)
3659 powerpc-*-darwin*)
3660 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3661 noconfigdirs="$noconfigdirs sim target-rda"
3663 i[3456789]86-*-darwin*)
3664 noconfigdirs="$noconfigdirs ld gprof"
3665 noconfigdirs="$noconfigdirs sim target-rda"
3667 x86_64-*-darwin[912]*)
3668 noconfigdirs="$noconfigdirs ld gas gprof"
3669 noconfigdirs="$noconfigdirs sim target-rda"
3671 *-*-darwin*)
3672 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3673 noconfigdirs="$noconfigdirs sim target-rda"
3675 *-*-dragonfly*)
3677 *-*-freebsd*)
3678 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3679 && test -f /usr/local/include/gmp.h; then
3680 with_gmp=/usr/local
3683 *-*-kaos*)
3684 # Remove unsupported stuff on all kaOS configurations.
3685 noconfigdirs="$noconfigdirs target-libgloss"
3687 *-*-netbsd*)
3689 *-*-netware*)
3691 *-*-rtems*)
3692 noconfigdirs="$noconfigdirs target-libgloss"
3693 # this is not caught below because this stanza matches earlier
3694 case $target in
3695 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3696 esac
3698 # The tpf target doesn't support gdb yet.
3699 *-*-tpf*)
3700 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3702 *-*-uclinux*)
3703 noconfigdirs="$noconfigdirs target-rda"
3705 *-*-vxworks*)
3707 alpha*-dec-osf*)
3708 # ld works, but does not support shared libraries.
3709 # gas doesn't generate exception information.
3710 noconfigdirs="$noconfigdirs gas ld"
3712 alpha*-*-*vms*)
3713 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3715 alpha*-*-*)
3716 # newlib is not 64 bit ready
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3720 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3722 arc-*-*|arceb-*-*)
3723 noconfigdirs="$noconfigdirs target-libgloss"
3725 arm-*-pe*)
3726 noconfigdirs="$noconfigdirs target-libgloss"
3728 arm-*-riscix*)
3729 noconfigdirs="$noconfigdirs ld target-libgloss"
3731 avr-*-rtems*)
3733 avr-*-*)
3734 if test x${with_avrlibc} != xno; then
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3738 c4x-*-* | tic4x-*-*)
3739 noconfigdirs="$noconfigdirs target-libgloss"
3741 tic54x-*-*)
3742 noconfigdirs="$noconfigdirs target-libgloss gdb"
3744 d10v-*-*)
3745 noconfigdirs="$noconfigdirs target-libgloss"
3747 d30v-*-*)
3748 noconfigdirs="$noconfigdirs gdb"
3750 fr30-*-elf*)
3751 noconfigdirs="$noconfigdirs gdb"
3753 moxie-*-*)
3754 noconfigdirs="$noconfigdirs gprof"
3756 h8300*-*-*)
3757 noconfigdirs="$noconfigdirs target-libgloss"
3759 h8500-*-*)
3760 noconfigdirs="$noconfigdirs target-libgloss"
3762 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3764 hppa*64*-*-linux*)
3766 hppa*-*-linux*)
3768 hppa*-*-*elf* | \
3769 hppa*-*-lites* | \
3770 hppa*-*-openbsd* | \
3771 hppa*64*-*-*)
3773 hppa*-hp-hpux11*)
3774 noconfigdirs="$noconfigdirs ld"
3776 hppa*-*-pro*)
3778 hppa*-*-*)
3779 noconfigdirs="$noconfigdirs ld"
3781 i960-*-*)
3782 noconfigdirs="$noconfigdirs gdb"
3784 ia64*-*-elf*)
3785 # No gdb support yet.
3786 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3788 ia64*-**-hpux*)
3789 # No ld support yet.
3790 noconfigdirs="$noconfigdirs libgui itcl ld"
3792 ia64*-*-*vms*)
3793 # No ld support yet.
3794 noconfigdirs="$noconfigdirs libgui itcl ld"
3796 i[3456789]86-w64-mingw*)
3798 i[3456789]86-*-mingw*)
3799 target_configdirs="$target_configdirs target-winsup"
3801 *-*-cygwin*)
3802 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3803 noconfigdirs="$noconfigdirs target-libgloss"
3804 # always build newlib if winsup directory is present.
3805 if test -d "$srcdir/winsup/cygwin"; then
3806 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3807 elif test -d "$srcdir/newlib"; then
3808 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3811 i[3456789]86-*-pe)
3812 noconfigdirs="$noconfigdirs target-libgloss"
3814 i[3456789]86-*-sco3.2v5*)
3815 # The linker does not yet know about weak symbols in COFF,
3816 # and is not configured to handle mixed ELF and COFF.
3817 noconfigdirs="$noconfigdirs ld target-libgloss"
3819 i[3456789]86-*-sco*)
3820 noconfigdirs="$noconfigdirs gprof target-libgloss"
3822 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3823 noconfigdirs="$noconfigdirs target-libgloss"
3825 i[3456789]86-*-sysv4*)
3826 noconfigdirs="$noconfigdirs target-libgloss"
3828 i[3456789]86-*-beos*)
3829 noconfigdirs="$noconfigdirs gdb"
3831 i[3456789]86-*-rdos*)
3832 noconfigdirs="$noconfigdirs gdb"
3834 mmix-*-*)
3835 noconfigdirs="$noconfigdirs gdb"
3837 mt-*-*)
3838 noconfigdirs="$noconfigdirs sim"
3840 powerpc-*-aix*)
3841 # copied from rs6000-*-* entry
3842 noconfigdirs="$noconfigdirs gprof"
3844 powerpc*-*-winnt* | powerpc*-*-pe*)
3845 target_configdirs="$target_configdirs target-winsup"
3846 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3847 # always build newlib.
3848 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3850 # This is temporary until we can link against shared libraries
3851 powerpcle-*-solaris*)
3852 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3854 powerpc-*-beos*)
3855 noconfigdirs="$noconfigdirs gdb"
3857 rs6000-*-lynxos*)
3858 noconfigdirs="$noconfigdirs gprof"
3860 rs6000-*-aix*)
3861 noconfigdirs="$noconfigdirs gprof"
3863 rs6000-*-*)
3864 noconfigdirs="$noconfigdirs gprof"
3866 m68k-apollo-*)
3867 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3869 microblaze*)
3870 noconfigdirs="$noconfigdirs gprof"
3872 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3873 if test x$with_newlib = xyes; then
3874 noconfigdirs="$noconfigdirs gprof"
3877 mips*-*-irix5*)
3878 noconfigdirs="$noconfigdirs gprof target-libgloss"
3880 mips*-*-irix6*)
3881 noconfigdirs="$noconfigdirs gprof target-libgloss"
3883 mips*-*-bsd*)
3884 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3886 mips*-*-linux*)
3888 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3889 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3890 noconfigdirs="$noconfigdirs ld gas gprof"
3892 mips*-*-*)
3893 noconfigdirs="$noconfigdirs gprof"
3895 nds32*-*-*)
3896 noconfigdirs="$noconfigdirs gdb"
3898 nvptx*-*-*)
3899 # nvptx is just a compiler
3900 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3902 or1k*-*-*)
3903 noconfigdirs="$noconfigdirs gdb"
3905 sh-*-* | sh64-*-*)
3906 case "${target}" in
3907 sh*-*-elf)
3910 noconfigdirs="$noconfigdirs target-libgloss" ;;
3911 esac
3913 sparc-*-sunos4*)
3914 if test x${is_cross_compiler} = xno ; then
3915 use_gnu_ld=no
3918 tic6x-*-*)
3919 noconfigdirs="$noconfigdirs sim"
3921 tilepro*-*-* | tilegx*-*-*)
3922 noconfigdirs="$noconfigdirs sim"
3924 v810-*-*)
3925 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3927 vax-*-*)
3928 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3930 esac
3932 # If we aren't building newlib, then don't build libgloss, since libgloss
3933 # depends upon some newlib header files.
3934 case "${noconfigdirs}" in
3935 *target-libgloss*) ;;
3936 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3937 esac
3939 # Work in distributions that contain no compiler tools, like Autoconf.
3940 host_makefile_frag=/dev/null
3941 if test -d ${srcdir}/config ; then
3942 case "${host}" in
3943 i[3456789]86-*-msdosdjgpp*)
3944 host_makefile_frag="config/mh-djgpp"
3946 *-cygwin*)
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3949 $as_echo_n "checking to see if cat works as expected... " >&6; }
3950 echo a >cygwin-cat-check
3951 if test `cat cygwin-cat-check` = a ; then
3952 rm cygwin-cat-check
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955 else
3956 rm cygwin-cat-check
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 as_fn_error "The cat command does not ignore carriage return characters.
3960 Please either mount the build directory in binary mode or run the following
3961 commands before running any configure script:
3962 set -o igncr
3963 export SHELLOPTS
3964 " "$LINENO" 5
3967 host_makefile_frag="config/mh-cygwin"
3969 *-mingw*)
3970 host_makefile_frag="config/mh-mingw"
3972 hppa*-hp-hpux10*)
3973 host_makefile_frag="config/mh-pa-hpux10"
3975 hppa*-hp-hpux*)
3976 host_makefile_frag="config/mh-pa"
3978 hppa*-*)
3979 host_makefile_frag="config/mh-pa"
3981 *-*-darwin*)
3982 host_makefile_frag="config/mh-darwin"
3984 powerpc-*-aix*)
3985 host_makefile_frag="config/mh-ppc-aix"
3987 rs6000-*-aix*)
3988 host_makefile_frag="config/mh-ppc-aix"
3990 esac
3993 if test "${build}" != "${host}" ; then
3994 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3995 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3996 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3997 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3998 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3999 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4000 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4001 GUPC_FOR_BUILD=${GUPC_FOR_BUILD-gupc}
4002 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4003 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4004 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4005 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4006 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4007 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4008 else
4009 AR_FOR_BUILD="\$(AR)"
4010 AS_FOR_BUILD="\$(AS)"
4011 CC_FOR_BUILD="\$(CC)"
4012 CXX_FOR_BUILD="\$(CXX)"
4013 GCJ_FOR_BUILD="\$(GCJ)"
4014 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4015 GOC_FOR_BUILD="\$(GOC)"
4016 GUPC_FOR_BUILD="\$(GUPC)"
4017 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4018 LD_FOR_BUILD="\$(LD)"
4019 NM_FOR_BUILD="\$(NM)"
4020 RANLIB_FOR_BUILD="\$(RANLIB)"
4021 WINDRES_FOR_BUILD="\$(WINDRES)"
4022 WINDMC_FOR_BUILD="\$(WINDMC)"
4025 ac_ext=c
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 if test -n "$ac_tool_prefix"; then
4031 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4032 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 $as_echo_n "checking for $ac_word... " >&6; }
4035 if test "${ac_cv_prog_CC+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4052 done
4053 done
4054 IFS=$as_save_IFS
4058 CC=$ac_cv_prog_CC
4059 if test -n "$CC"; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4061 $as_echo "$CC" >&6; }
4062 else
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4064 $as_echo "no" >&6; }
4069 if test -z "$ac_cv_prog_CC"; then
4070 ac_ct_CC=$CC
4071 # Extract the first word of "gcc", so it can be a program name with args.
4072 set dummy gcc; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -n "$ac_ct_CC"; then
4079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4084 IFS=$as_save_IFS
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088 ac_cv_prog_ac_ct_CC="gcc"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 break 2
4092 done
4093 done
4094 IFS=$as_save_IFS
4098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4099 if test -n "$ac_ct_CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4101 $as_echo "$ac_ct_CC" >&6; }
4102 else
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4107 if test "x$ac_ct_CC" = x; then
4108 CC=""
4109 else
4110 case $cross_compiling:$ac_tool_warned in
4111 yes:)
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114 ac_tool_warned=yes ;;
4115 esac
4116 CC=$ac_ct_CC
4118 else
4119 CC="$ac_cv_prog_CC"
4122 if test -z "$CC"; then
4123 if test -n "$ac_tool_prefix"; then
4124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}cc; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if test "${ac_cv_prog_CC+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_CC="${ac_tool_prefix}cc"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4145 done
4146 done
4147 IFS=$as_save_IFS
4151 CC=$ac_cv_prog_CC
4152 if test -n "$CC"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4154 $as_echo "$CC" >&6; }
4155 else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4163 if test -z "$CC"; then
4164 # Extract the first word of "cc", so it can be a program name with args.
4165 set dummy cc; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174 ac_prog_rejected=no
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4183 ac_prog_rejected=yes
4184 continue
4186 ac_cv_prog_CC="cc"
4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 break 2
4190 done
4191 done
4192 IFS=$as_save_IFS
4194 if test $ac_prog_rejected = yes; then
4195 # We found a bogon in the path, so make sure we never use it.
4196 set dummy $ac_cv_prog_CC
4197 shift
4198 if test $# != 0; then
4199 # We chose a different compiler from the bogus one.
4200 # However, it has the same basename, so the bogon will be chosen
4201 # first if we set CC to just the basename; use the full file name.
4202 shift
4203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4208 CC=$ac_cv_prog_CC
4209 if test -n "$CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4211 $as_echo "$CC" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4219 if test -z "$CC"; then
4220 if test -n "$ac_tool_prefix"; then
4221 for ac_prog in cl.exe
4223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if test "${ac_cv_prog_CC+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$CC"; then
4231 ac_cv_prog_CC="$CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 CC=$ac_cv_prog_CC
4251 if test -n "$CC"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253 $as_echo "$CC" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4260 test -n "$CC" && break
4261 done
4263 if test -z "$CC"; then
4264 ac_ct_CC=$CC
4265 for ac_prog in cl.exe
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -n "$ac_ct_CC"; then
4275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_ac_ct_CC="$ac_prog"
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4295 if test -n "$ac_ct_CC"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4297 $as_echo "$ac_ct_CC" >&6; }
4298 else
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 $as_echo "no" >&6; }
4304 test -n "$ac_ct_CC" && break
4305 done
4307 if test "x$ac_ct_CC" = x; then
4308 CC=""
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311 yes:)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314 ac_tool_warned=yes ;;
4315 esac
4316 CC=$ac_ct_CC
4323 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error "no acceptable C compiler found in \$PATH
4326 See \`config.log' for more details." "$LINENO" 5; }
4328 # Provide some information about the compiler.
4329 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4330 set X $ac_compile
4331 ac_compiler=$2
4332 for ac_option in --version -v -V -qversion; do
4333 { { ac_try="$ac_compiler $ac_option >&5"
4334 case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337 esac
4338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4339 $as_echo "$ac_try_echo"; } >&5
4340 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4341 ac_status=$?
4342 if test -s conftest.err; then
4343 sed '10a\
4344 ... rest of stderr output deleted ...
4345 10q' conftest.err >conftest.er1
4346 cat conftest.er1 >&5
4347 rm -f conftest.er1 conftest.err
4349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350 test $ac_status = 0; }
4351 done
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4357 main ()
4361 return 0;
4363 _ACEOF
4364 ac_clean_files_save=$ac_clean_files
4365 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4366 # Try to create an executable without -o first, disregard a.out.
4367 # It will help us diagnose broken compilers, and finding out an intuition
4368 # of exeext.
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4370 $as_echo_n "checking for C compiler default output file name... " >&6; }
4371 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4373 # The possible output files:
4374 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4376 ac_rmfiles=
4377 for ac_file in $ac_files
4379 case $ac_file in
4380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4381 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4382 esac
4383 done
4384 rm -f $ac_rmfiles
4386 if { { ac_try="$ac_link_default"
4387 case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393 (eval "$ac_link_default") 2>&5
4394 ac_status=$?
4395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396 test $ac_status = 0; }; then :
4397 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4398 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4399 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4400 # so that the user can short-circuit this test for compilers unknown to
4401 # Autoconf.
4402 for ac_file in $ac_files ''
4404 test -f "$ac_file" || continue
4405 case $ac_file in
4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4408 [ab].out )
4409 # We found the default executable, but exeext='' is most
4410 # certainly right.
4411 break;;
4412 *.* )
4413 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4414 then :; else
4415 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4417 # We set ac_cv_exeext here because the later test for it is not
4418 # safe: cross compilers may not add the suffix if given an `-o'
4419 # argument, so we may need to know it at that point already.
4420 # Even if this section looks crufty: it has the advantage of
4421 # actually working.
4422 break;;
4424 break;;
4425 esac
4426 done
4427 test "$ac_cv_exeext" = no && ac_cv_exeext=
4429 else
4430 ac_file=''
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4433 $as_echo "$ac_file" >&6; }
4434 if test -z "$ac_file"; then :
4435 $as_echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4440 { as_fn_set_status 77
4441 as_fn_error "C compiler cannot create executables
4442 See \`config.log' for more details." "$LINENO" 5; }; }
4444 ac_exeext=$ac_cv_exeext
4446 # Check that the compiler produces executables we can run. If not, either
4447 # the compiler is broken, or we cross compile.
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4449 $as_echo_n "checking whether the C compiler works... " >&6; }
4450 # If not cross compiling, check that we can run a simple program.
4451 if test "$cross_compiling" != yes; then
4452 if { ac_try='./$ac_file'
4453 { { case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 $as_echo "$ac_try_echo"; } >&5
4459 (eval "$ac_try") 2>&5
4460 ac_status=$?
4461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; }; then
4463 cross_compiling=no
4464 else
4465 if test "$cross_compiling" = maybe; then
4466 cross_compiling=yes
4467 else
4468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4470 as_fn_error "cannot run C compiled programs.
4471 If you meant to cross compile, use \`--host'.
4472 See \`config.log' for more details." "$LINENO" 5; }
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4477 $as_echo "yes" >&6; }
4479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4480 ac_clean_files=$ac_clean_files_save
4481 # Check that the compiler produces executables we can run. If not, either
4482 # the compiler is broken, or we cross compile.
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4484 $as_echo_n "checking whether we are cross compiling... " >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4486 $as_echo "$cross_compiling" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4489 $as_echo_n "checking for suffix of executables... " >&6; }
4490 if { { ac_try="$ac_link"
4491 case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494 esac
4495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496 $as_echo "$ac_try_echo"; } >&5
4497 (eval "$ac_link") 2>&5
4498 ac_status=$?
4499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4500 test $ac_status = 0; }; then :
4501 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4502 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4503 # work properly (i.e., refer to `conftest.exe'), while it won't with
4504 # `rm'.
4505 for ac_file in conftest.exe conftest conftest.*; do
4506 test -f "$ac_file" || continue
4507 case $ac_file in
4508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4509 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4510 break;;
4511 * ) break;;
4512 esac
4513 done
4514 else
4515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 as_fn_error "cannot compute suffix of executables: cannot compile and link
4518 See \`config.log' for more details." "$LINENO" 5; }
4520 rm -f conftest$ac_cv_exeext
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4522 $as_echo "$ac_cv_exeext" >&6; }
4524 rm -f conftest.$ac_ext
4525 EXEEXT=$ac_cv_exeext
4526 ac_exeext=$EXEEXT
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4528 $as_echo_n "checking for suffix of object files... " >&6; }
4529 if test "${ac_cv_objext+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4536 main ()
4540 return 0;
4542 _ACEOF
4543 rm -f conftest.o conftest.obj
4544 if { { ac_try="$ac_compile"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551 (eval "$ac_compile") 2>&5
4552 ac_status=$?
4553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4554 test $ac_status = 0; }; then :
4555 for ac_file in conftest.o conftest.obj conftest.*; do
4556 test -f "$ac_file" || continue;
4557 case $ac_file in
4558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4559 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4560 break;;
4561 esac
4562 done
4563 else
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569 as_fn_error "cannot compute suffix of object files: cannot compile
4570 See \`config.log' for more details." "$LINENO" 5; }
4572 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4575 $as_echo "$ac_cv_objext" >&6; }
4576 OBJEXT=$ac_cv_objext
4577 ac_objext=$OBJEXT
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4579 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4580 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4587 main ()
4589 #ifndef __GNUC__
4590 choke me
4591 #endif
4594 return 0;
4596 _ACEOF
4597 if ac_fn_c_try_compile "$LINENO"; then :
4598 ac_compiler_gnu=yes
4599 else
4600 ac_compiler_gnu=no
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4607 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4608 if test $ac_compiler_gnu = yes; then
4609 GCC=yes
4610 else
4611 GCC=
4613 ac_test_CFLAGS=${CFLAGS+set}
4614 ac_save_CFLAGS=$CFLAGS
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4616 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4617 if test "${ac_cv_prog_cc_g+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 ac_save_c_werror_flag=$ac_c_werror_flag
4621 ac_c_werror_flag=yes
4622 ac_cv_prog_cc_g=no
4623 CFLAGS="-g"
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4628 main ()
4632 return 0;
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_cv_prog_cc_g=yes
4637 else
4638 CFLAGS=""
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4643 main ()
4647 return 0;
4649 _ACEOF
4650 if ac_fn_c_try_compile "$LINENO"; then :
4652 else
4653 ac_c_werror_flag=$ac_save_c_werror_flag
4654 CFLAGS="-g"
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4659 main ()
4663 return 0;
4665 _ACEOF
4666 if ac_fn_c_try_compile "$LINENO"; then :
4667 ac_cv_prog_cc_g=yes
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_c_werror_flag=$ac_save_c_werror_flag
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4677 $as_echo "$ac_cv_prog_cc_g" >&6; }
4678 if test "$ac_test_CFLAGS" = set; then
4679 CFLAGS=$ac_save_CFLAGS
4680 elif test $ac_cv_prog_cc_g = yes; then
4681 if test "$GCC" = yes; then
4682 CFLAGS="-g -O2"
4683 else
4684 CFLAGS="-g"
4686 else
4687 if test "$GCC" = yes; then
4688 CFLAGS="-O2"
4689 else
4690 CFLAGS=
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4694 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4695 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 ac_cv_prog_cc_c89=no
4699 ac_save_CC=$CC
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <stdarg.h>
4703 #include <stdio.h>
4704 #include <sys/types.h>
4705 #include <sys/stat.h>
4706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4707 struct buf { int x; };
4708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4709 static char *e (p, i)
4710 char **p;
4711 int i;
4713 return p[i];
4715 static char *f (char * (*g) (char **, int), char **p, ...)
4717 char *s;
4718 va_list v;
4719 va_start (v,p);
4720 s = g (p, va_arg (v,int));
4721 va_end (v);
4722 return s;
4725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4726 function prototypes and stuff, but not '\xHH' hex character constants.
4727 These don't provoke an error unfortunately, instead are silently treated
4728 as 'x'. The following induces an error, until -std is added to get
4729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4730 array size at least. It's necessary to write '\x00'==0 to get something
4731 that's true only with -std. */
4732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4735 inside strings and character constants. */
4736 #define FOO(x) 'x'
4737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4739 int test (int i, double x);
4740 struct s1 {int (*f) (int a);};
4741 struct s2 {int (*f) (double a);};
4742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4743 int argc;
4744 char **argv;
4746 main ()
4748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4750 return 0;
4752 _ACEOF
4753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4756 CC="$ac_save_CC $ac_arg"
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 ac_cv_prog_cc_c89=$ac_arg
4760 rm -f core conftest.err conftest.$ac_objext
4761 test "x$ac_cv_prog_cc_c89" != "xno" && break
4762 done
4763 rm -f conftest.$ac_ext
4764 CC=$ac_save_CC
4767 # AC_CACHE_VAL
4768 case "x$ac_cv_prog_cc_c89" in
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4771 $as_echo "none needed" >&6; } ;;
4772 xno)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4774 $as_echo "unsupported" >&6; } ;;
4776 CC="$CC $ac_cv_prog_cc_c89"
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4778 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4779 esac
4780 if test "x$ac_cv_prog_cc_c89" != xno; then :
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 ac_ext=cpp
4791 ac_cpp='$CXXCPP $CPPFLAGS'
4792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4795 if test -z "$CXX"; then
4796 if test -n "$CCC"; then
4797 CXX=$CCC
4798 else
4799 if test -n "$ac_tool_prefix"; then
4800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if test "${ac_cv_prog_CXX+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$CXX"; then
4810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4829 CXX=$ac_cv_prog_CXX
4830 if test -n "$CXX"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4832 $as_echo "$CXX" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4839 test -n "$CXX" && break
4840 done
4842 if test -z "$CXX"; then
4843 ac_ct_CXX=$CXX
4844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -n "$ac_ct_CXX"; then
4854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_ac_ct_CXX="$ac_prog"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4869 IFS=$as_save_IFS
4873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4874 if test -n "$ac_ct_CXX"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4876 $as_echo "$ac_ct_CXX" >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4883 test -n "$ac_ct_CXX" && break
4884 done
4886 if test "x$ac_ct_CXX" = x; then
4887 CXX="g++"
4888 else
4889 case $cross_compiling:$ac_tool_warned in
4890 yes:)
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4893 ac_tool_warned=yes ;;
4894 esac
4895 CXX=$ac_ct_CXX
4901 # Provide some information about the compiler.
4902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4903 set X $ac_compile
4904 ac_compiler=$2
4905 for ac_option in --version -v -V -qversion; do
4906 { { ac_try="$ac_compiler $ac_option >&5"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4912 $as_echo "$ac_try_echo"; } >&5
4913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4914 ac_status=$?
4915 if test -s conftest.err; then
4916 sed '10a\
4917 ... rest of stderr output deleted ...
4918 10q' conftest.err >conftest.er1
4919 cat conftest.er1 >&5
4920 rm -f conftest.er1 conftest.err
4922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4923 test $ac_status = 0; }
4924 done
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4927 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4935 main ()
4937 #ifndef __GNUC__
4938 choke me
4939 #endif
4942 return 0;
4944 _ACEOF
4945 if ac_fn_cxx_try_compile "$LINENO"; then :
4946 ac_compiler_gnu=yes
4947 else
4948 ac_compiler_gnu=no
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4955 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4956 if test $ac_compiler_gnu = yes; then
4957 GXX=yes
4958 else
4959 GXX=
4961 ac_test_CXXFLAGS=${CXXFLAGS+set}
4962 ac_save_CXXFLAGS=$CXXFLAGS
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4964 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4965 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4969 ac_cxx_werror_flag=yes
4970 ac_cv_prog_cxx_g=no
4971 CXXFLAGS="-g"
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4976 main ()
4980 return 0;
4982 _ACEOF
4983 if ac_fn_cxx_try_compile "$LINENO"; then :
4984 ac_cv_prog_cxx_g=yes
4985 else
4986 CXXFLAGS=""
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4991 main ()
4995 return 0;
4997 _ACEOF
4998 if ac_fn_cxx_try_compile "$LINENO"; then :
5000 else
5001 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5002 CXXFLAGS="-g"
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5007 main ()
5011 return 0;
5013 _ACEOF
5014 if ac_fn_cxx_try_compile "$LINENO"; then :
5015 ac_cv_prog_cxx_g=yes
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5025 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5026 if test "$ac_test_CXXFLAGS" = set; then
5027 CXXFLAGS=$ac_save_CXXFLAGS
5028 elif test $ac_cv_prog_cxx_g = yes; then
5029 if test "$GXX" = yes; then
5030 CXXFLAGS="-g -O2"
5031 else
5032 CXXFLAGS="-g"
5034 else
5035 if test "$GXX" = yes; then
5036 CXXFLAGS="-O2"
5037 else
5038 CXXFLAGS=
5041 ac_ext=c
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5048 # We must set the default linker to the linker used by gcc for the correct
5049 # operation of libtool. If LD is not defined and we are using gcc, try to
5050 # set the LD default to the ld used by gcc.
5051 if test -z "$LD"; then
5052 if test "$GCC" = yes; then
5053 case $build in
5054 *-*-mingw*)
5055 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5057 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5058 esac
5059 case $gcc_prog_ld in
5060 # Accept absolute paths.
5061 [\\/]* | [A-Za-z]:[\\/]*)
5062 LD="$gcc_prog_ld" ;;
5063 esac
5067 # Check whether -static-libstdc++ -static-libgcc is supported.
5068 have_static_libs=no
5069 if test "$GCC" = yes; then
5070 saved_LDFLAGS="$LDFLAGS"
5072 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5074 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5075 ac_ext=cpp
5076 ac_cpp='$CXXCPP $CPPFLAGS'
5077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5085 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5086 #error -static-libstdc++ not implemented
5087 #endif
5088 int main() {}
5089 _ACEOF
5090 if ac_fn_cxx_try_link "$LINENO"; then :
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5092 $as_echo "yes" >&6; }; have_static_libs=yes
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5097 rm -f core conftest.err conftest.$ac_objext \
5098 conftest$ac_exeext conftest.$ac_ext
5099 ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 LDFLAGS="$saved_LDFLAGS"
5112 if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5114 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 if test -n "$GNATBIND"; then
5121 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5134 done
5135 done
5136 IFS=$as_save_IFS
5140 GNATBIND=$ac_cv_prog_GNATBIND
5141 if test -n "$GNATBIND"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5143 $as_echo "$GNATBIND" >&6; }
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5151 if test -z "$ac_cv_prog_GNATBIND"; then
5152 ac_ct_GNATBIND=$GNATBIND
5153 # Extract the first word of "gnatbind", so it can be a program name with args.
5154 set dummy gnatbind; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$ac_ct_GNATBIND"; then
5161 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5174 done
5175 done
5176 IFS=$as_save_IFS
5180 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5181 if test -n "$ac_ct_GNATBIND"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5183 $as_echo "$ac_ct_GNATBIND" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5189 if test "x$ac_ct_GNATBIND" = x; then
5190 GNATBIND="no"
5191 else
5192 case $cross_compiling:$ac_tool_warned in
5193 yes:)
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196 ac_tool_warned=yes ;;
5197 esac
5198 GNATBIND=$ac_ct_GNATBIND
5200 else
5201 GNATBIND="$ac_cv_prog_GNATBIND"
5204 if test -n "$ac_tool_prefix"; then
5205 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5206 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$GNATMAKE"; then
5213 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5232 GNATMAKE=$ac_cv_prog_GNATMAKE
5233 if test -n "$GNATMAKE"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5235 $as_echo "$GNATMAKE" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5243 if test -z "$ac_cv_prog_GNATMAKE"; then
5244 ac_ct_GNATMAKE=$GNATMAKE
5245 # Extract the first word of "gnatmake", so it can be a program name with args.
5246 set dummy gnatmake; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$ac_ct_GNATMAKE"; then
5253 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5273 if test -n "$ac_ct_GNATMAKE"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5275 $as_echo "$ac_ct_GNATMAKE" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5281 if test "x$ac_ct_GNATMAKE" = x; then
5282 GNATMAKE="no"
5283 else
5284 case $cross_compiling:$ac_tool_warned in
5285 yes:)
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5288 ac_tool_warned=yes ;;
5289 esac
5290 GNATMAKE=$ac_ct_GNATMAKE
5292 else
5293 GNATMAKE="$ac_cv_prog_GNATMAKE"
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5297 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5298 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 cat >conftest.adb <<EOF
5302 procedure conftest is begin null; end conftest;
5304 acx_cv_cc_gcc_supports_ada=no
5305 # There is a bug in old released versions of GCC which causes the
5306 # driver to exit successfully when the appropriate language module
5307 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5308 # Therefore we must check for the error message as well as an
5309 # unsuccessful exit.
5310 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5311 # given a .adb file, but produce no object file. So we must check
5312 # if an object file was really produced to guard against this.
5313 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5314 if test x"$errors" = x && test -f conftest.$ac_objext; then
5315 acx_cv_cc_gcc_supports_ada=yes
5317 rm -f conftest.*
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5320 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5322 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5323 have_gnat=yes
5324 else
5325 have_gnat=no
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5329 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5330 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 echo abfoo >t1
5334 echo cdfoo >t2
5335 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5336 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5337 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5339 else
5340 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5343 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5344 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5346 else
5347 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5350 rm t1 t2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5354 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5355 do_compare="$gcc_cv_prog_cmp_skip"
5359 # Check whether --enable-bootstrap was given.
5360 if test "${enable_bootstrap+set}" = set; then :
5361 enableval=$enable_bootstrap;
5362 else
5363 enable_bootstrap=default
5367 # Issue errors and warnings for invalid/strange bootstrap combinations.
5368 if test -r $srcdir/gcc/configure; then
5369 have_compiler=yes
5370 else
5371 have_compiler=no
5374 case "$have_compiler:$host:$target:$enable_bootstrap" in
5375 *:*:*:no) ;;
5377 # Default behavior. Enable bootstrap if we have a compiler
5378 # and we are in a native configuration.
5379 yes:$build:$build:default)
5380 enable_bootstrap=yes ;;
5382 *:*:*:default)
5383 enable_bootstrap=no ;;
5385 # We have a compiler and we are in a native configuration, bootstrap is ok
5386 yes:$build:$build:yes)
5389 # Other configurations, but we have a compiler. Assume the user knows
5390 # what he's doing.
5391 yes:*:*:yes)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5393 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5396 # No compiler: if they passed --enable-bootstrap explicitly, fail
5397 no:*:*:yes)
5398 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5400 # Fail if wrong command line
5402 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5404 esac
5406 # Used for setting $lt_cv_objdir
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5408 $as_echo_n "checking for objdir... " >&6; }
5409 if test "${lt_cv_objdir+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 rm -f .libs 2>/dev/null
5413 mkdir .libs 2>/dev/null
5414 if test -d .libs; then
5415 lt_cv_objdir=.libs
5416 else
5417 # MS-DOS does not allow filenames that begin with a dot.
5418 lt_cv_objdir=_libs
5420 rmdir .libs 2>/dev/null
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5423 $as_echo "$lt_cv_objdir" >&6; }
5424 objdir=$lt_cv_objdir
5430 cat >>confdefs.h <<_ACEOF
5431 #define LT_OBJDIR "$lt_cv_objdir/"
5432 _ACEOF
5436 # Check for GMP, MPFR and MPC
5437 gmplibs="-lmpc -lmpfr -lgmp"
5438 gmpinc=
5439 have_gmp=no
5441 # Specify a location for mpc
5442 # check for this first so it ends up on the link line before mpfr.
5444 # Check whether --with-mpc was given.
5445 if test "${with_mpc+set}" = set; then :
5446 withval=$with_mpc;
5450 # Check whether --with-mpc-include was given.
5451 if test "${with_mpc_include+set}" = set; then :
5452 withval=$with_mpc_include;
5456 # Check whether --with-mpc-lib was given.
5457 if test "${with_mpc_lib+set}" = set; then :
5458 withval=$with_mpc_lib;
5462 if test "x$with_mpc" != x; then
5463 gmplibs="-L$with_mpc/lib $gmplibs"
5464 gmpinc="-I$with_mpc/include $gmpinc"
5466 if test "x$with_mpc_include" != x; then
5467 gmpinc="-I$with_mpc_include $gmpinc"
5469 if test "x$with_mpc_lib" != x; then
5470 gmplibs="-L$with_mpc_lib $gmplibs"
5472 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5473 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5474 gmpinc='-I$$s/mpc/src '"$gmpinc"
5475 # Do not test the mpc version. Assume that it is sufficient, since
5476 # it is in the source tree, and the library has not been built yet
5477 # but it would be included on the link line in the version check below
5478 # hence making the test fail.
5479 have_gmp=yes
5482 # Specify a location for mpfr
5483 # check for this first so it ends up on the link line before gmp.
5485 # Check whether --with-mpfr-dir was given.
5486 if test "${with_mpfr_dir+set}" = set; then :
5487 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5488 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5493 # Check whether --with-mpfr was given.
5494 if test "${with_mpfr+set}" = set; then :
5495 withval=$with_mpfr;
5499 # Check whether --with-mpfr-include was given.
5500 if test "${with_mpfr_include+set}" = set; then :
5501 withval=$with_mpfr_include;
5505 # Check whether --with-mpfr-lib was given.
5506 if test "${with_mpfr_lib+set}" = set; then :
5507 withval=$with_mpfr_lib;
5511 if test "x$with_mpfr" != x; then
5512 gmplibs="-L$with_mpfr/lib $gmplibs"
5513 gmpinc="-I$with_mpfr/include $gmpinc"
5515 if test "x$with_mpfr_include" != x; then
5516 gmpinc="-I$with_mpfr_include $gmpinc"
5518 if test "x$with_mpfr_lib" != x; then
5519 gmplibs="-L$with_mpfr_lib $gmplibs"
5521 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5522 # MPFR v3.1.0 moved the sources into a src sub-directory.
5523 if test -d ${srcdir}/mpfr/src; then
5524 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5525 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5526 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5527 else
5528 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5529 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5530 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5532 # Do not test the mpfr version. Assume that it is sufficient, since
5533 # it is in the source tree, and the library has not been built yet
5534 # but it would be included on the link line in the version check below
5535 # hence making the test fail.
5536 have_gmp=yes
5539 # Specify a location for gmp
5541 # Check whether --with-gmp-dir was given.
5542 if test "${with_gmp_dir+set}" = set; then :
5543 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5544 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5549 # Check whether --with-gmp was given.
5550 if test "${with_gmp+set}" = set; then :
5551 withval=$with_gmp;
5555 # Check whether --with-gmp-include was given.
5556 if test "${with_gmp_include+set}" = set; then :
5557 withval=$with_gmp_include;
5561 # Check whether --with-gmp-lib was given.
5562 if test "${with_gmp_lib+set}" = set; then :
5563 withval=$with_gmp_lib;
5568 if test "x$with_gmp" != x; then
5569 gmplibs="-L$with_gmp/lib $gmplibs"
5570 gmpinc="-I$with_gmp/include $gmpinc"
5572 if test "x$with_gmp_include" != x; then
5573 gmpinc="-I$with_gmp_include $gmpinc"
5575 if test "x$with_gmp_lib" != x; then
5576 gmplibs="-L$with_gmp_lib $gmplibs"
5578 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5579 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5580 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5581 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5582 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5583 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5584 # Do not test the gmp version. Assume that it is sufficient, since
5585 # it is in the source tree, and the library has not been built yet
5586 # but it would be included on the link line in the version check below
5587 # hence making the test fail.
5588 have_gmp=yes
5591 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5592 have_gmp=yes
5593 saved_CFLAGS="$CFLAGS"
5594 CFLAGS="$CFLAGS $gmpinc"
5595 # Check for the recommended and required versions of GMP.
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5597 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 #include "gmp.h"
5603 main ()
5606 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5607 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5608 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5609 choke me
5610 #endif
5613 return 0;
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <gmp.h>
5621 main ()
5624 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5625 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5626 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5627 choke me
5628 #endif
5631 return 0;
5633 _ACEOF
5634 if ac_fn_c_try_compile "$LINENO"; then :
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5636 $as_echo "yes" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5639 $as_echo "buggy but acceptable" >&6; }
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }; have_gmp=no
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 # If we have GMP, check the MPFR version.
5649 if test x"$have_gmp" = xyes; then
5650 # Check for the recommended and required versions of MPFR.
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5652 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <gmp.h>
5656 #include <mpfr.h>
5658 main ()
5661 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5662 choke me
5663 #endif
5666 return 0;
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 #include <gmp.h>
5673 #include <mpfr.h>
5675 main ()
5678 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5679 choke me
5680 #endif
5683 return 0;
5685 _ACEOF
5686 if ac_fn_c_try_compile "$LINENO"; then :
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5688 $as_echo "yes" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5691 $as_echo "buggy but acceptable" >&6; }
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }; have_gmp=no
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 # Check for the MPC header version.
5702 if test x"$have_gmp" = xyes ; then
5703 # Check for the recommended and required versions of MPC.
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5705 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <mpc.h>
5710 main ()
5713 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5714 choke me
5715 #endif
5718 return 0;
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <mpc.h>
5726 main ()
5729 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5730 choke me
5731 #endif
5734 return 0;
5736 _ACEOF
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739 $as_echo "yes" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5742 $as_echo "buggy but acceptable" >&6; }
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }; have_gmp=no
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 # Now check the MPFR library.
5753 if test x"$have_gmp" = xyes; then
5754 saved_LIBS="$LIBS"
5755 LIBS="$LIBS $gmplibs"
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5757 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 #include <mpc.h>
5762 main ()
5765 mpfr_t n;
5766 mpfr_t x;
5767 mpc_t c;
5768 int t;
5769 mpfr_init (n);
5770 mpfr_init (x);
5771 mpfr_atan2 (n, n, x, GMP_RNDN);
5772 mpfr_erfc (n, x, GMP_RNDN);
5773 mpfr_subnormalize (x, t, GMP_RNDN);
5774 mpfr_clear(n);
5775 mpfr_clear(x);
5776 mpc_init2 (c, 53);
5777 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5778 mpc_cosh (c, c, MPC_RNDNN);
5779 mpc_pow (c, c, c, MPC_RNDNN);
5780 mpc_acosh (c, c, MPC_RNDNN);
5781 mpc_clear (c);
5784 return 0;
5786 _ACEOF
5787 if ac_fn_c_try_link "$LINENO"; then :
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5789 $as_echo "yes" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }; have_gmp=no
5794 rm -f core conftest.err conftest.$ac_objext \
5795 conftest$ac_exeext conftest.$ac_ext
5796 LIBS="$saved_LIBS"
5799 CFLAGS="$saved_CFLAGS"
5801 # The library versions listed in the error message below should match
5802 # the HARD-minimums enforced above.
5803 if test x$have_gmp != xyes; then
5804 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5805 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5806 their locations. Source code for these libraries can be found at
5807 their respective hosting sites as well as at
5808 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5809 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5810 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5811 make sure that you have installed both the libraries and the header
5812 files. They may be located in separate packages." "$LINENO" 5
5816 # Flags needed for both GMP, MPFR and/or MPC.
5824 # Allow host libstdc++ to be specified for static linking with PPL.
5826 # Check whether --with-host-libstdcxx was given.
5827 if test "${with_host_libstdcxx+set}" = set; then :
5828 withval=$with_host_libstdcxx;
5832 case $with_host_libstdcxx in
5833 no|yes)
5834 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5836 esac
5838 # Libraries to use for stage1 or when not bootstrapping.
5840 # Check whether --with-stage1-libs was given.
5841 if test "${with_stage1_libs+set}" = set; then :
5842 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5843 stage1_libs=
5844 else
5845 stage1_libs=$withval
5847 else
5848 stage1_libs=$with_host_libstdcxx
5853 # Linker flags to use for stage1 or when not bootstrapping.
5855 # Check whether --with-stage1-ldflags was given.
5856 if test "${with_stage1_ldflags+set}" = set; then :
5857 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5858 stage1_ldflags=
5859 else
5860 stage1_ldflags=$withval
5862 else
5863 stage1_ldflags=
5864 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5865 # if supported. But if the user explicitly specified the libraries to use,
5866 # trust that they are doing what they want.
5867 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5868 stage1_ldflags="-static-libstdc++ -static-libgcc"
5874 # Libraries to use for stage2 and later builds. This defaults to the
5875 # argument passed to --with-host-libstdcxx.
5877 # Check whether --with-boot-libs was given.
5878 if test "${with_boot_libs+set}" = set; then :
5879 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5880 poststage1_libs=
5881 else
5882 poststage1_libs=$withval
5884 else
5885 poststage1_libs=$with_host_libstdcxx
5890 # Linker flags to use for stage2 and later builds.
5892 # Check whether --with-boot-ldflags was given.
5893 if test "${with_boot_ldflags+set}" = set; then :
5894 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5895 poststage1_ldflags=
5896 else
5897 poststage1_ldflags=$withval
5899 else
5900 poststage1_ldflags=
5901 # In stages 2 and 3, default to linking libstdc++ and libgcc
5902 # statically. But if the user explicitly specified the libraries to
5903 # use, trust that they are doing what they want.
5904 if test "$poststage1_libs" = ""; then
5905 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5911 # GCC GRAPHITE dependency ISL.
5912 # Basic setup is inlined here, actual checks are in config/isl.m4
5915 # Check whether --with-isl was given.
5916 if test "${with_isl+set}" = set; then :
5917 withval=$with_isl;
5921 # Treat --without-isl as a request to disable
5922 # GRAPHITE support and skip all following checks.
5923 if test "x$with_isl" != "xno"; then
5924 # Check for ISL
5927 # Check whether --with-isl-include was given.
5928 if test "${with_isl_include+set}" = set; then :
5929 withval=$with_isl_include;
5933 # Check whether --with-isl-lib was given.
5934 if test "${with_isl_lib+set}" = set; then :
5935 withval=$with_isl_lib;
5939 # Check whether --enable-isl-version-check was given.
5940 if test "${enable_isl_version_check+set}" = set; then :
5941 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5942 else
5943 ENABLE_ISL_CHECK=yes
5947 # Initialize isllibs and islinc.
5948 case $with_isl in
5950 isllibs=
5951 islinc=
5953 "" | yes)
5956 isllibs="-L$with_isl/lib"
5957 islinc="-I$with_isl/include"
5959 esac
5960 if test "x${with_isl_include}" != x ; then
5961 islinc="-I$with_isl_include"
5963 if test "x${with_isl_lib}" != x; then
5964 isllibs="-L$with_isl_lib"
5966 if test "x${islinc}" = x && test "x${isllibs}" = x \
5967 && test -d ${srcdir}/isl; then
5968 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5969 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5970 ENABLE_ISL_CHECK=no
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5972 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5975 isllibs="${isllibs} -lisl"
5979 if test "${ENABLE_ISL_CHECK}" = yes ; then
5980 _isl_saved_CFLAGS=$CFLAGS
5981 _isl_saved_LDFLAGS=$LDFLAGS
5982 _isl_saved_LIBS=$LIBS
5984 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5985 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5986 LIBS="${_isl_saved_LIBS} -lisl"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5989 $as_echo_n "checking for compatible ISL... " >&6; }
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <isl/val.h>
5994 main ()
5998 return 0;
6000 _ACEOF
6001 if ac_fn_c_try_link "$LINENO"; then :
6002 gcc_cv_isl=yes
6003 else
6004 gcc_cv_isl=no
6006 rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6009 $as_echo "$gcc_cv_isl" >&6; }
6011 CFLAGS=$_isl_saved_CFLAGS
6012 LDFLAGS=$_isl_saved_LDFLAGS
6013 LIBS=$_isl_saved_LIBS
6021 if test "x${with_isl}" = xno; then
6022 graphite_requested=no
6023 elif test "x${with_isl}" != x \
6024 || test "x${with_isl_include}" != x \
6025 || test "x${with_isl_lib}" != x ; then
6026 graphite_requested=yes
6027 else
6028 graphite_requested=no
6033 if test "${gcc_cv_isl}" = no ; then
6034 isllibs=
6035 islinc=
6038 if test "${graphite_requested}" = yes \
6039 && test "x${isllibs}" = x \
6040 && test "x${islinc}" = x ; then
6042 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6048 # If the ISL check failed, disable builds of in-tree variant of ISL
6049 if test "x$with_isl" = xno ||
6050 test "x$gcc_cv_isl" = xno; then
6051 noconfigdirs="$noconfigdirs isl"
6052 islinc=
6058 # Check for LTO support.
6059 # Check whether --enable-lto was given.
6060 if test "${enable_lto+set}" = set; then :
6061 enableval=$enable_lto; enable_lto=$enableval
6062 else
6063 enable_lto=yes; default_enable_lto=yes
6070 target_elf=no
6071 case $target in
6072 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6073 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6074 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6075 nvptx-*-none)
6076 target_elf=no
6079 target_elf=yes
6081 esac
6083 if test $target_elf = yes; then :
6084 # ELF platforms build the lto-plugin always.
6085 build_lto_plugin=yes
6087 else
6088 if test x"$default_enable_lto" = x"yes" ; then
6089 case $target in
6090 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6091 # On other non-ELF platforms, LTO has yet to be validated.
6092 *) enable_lto=no ;;
6093 esac
6094 else
6095 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6096 # It would also be nice to check the binutils support, but we don't
6097 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6098 # warn during gcc/ subconfigure; unless you're bootstrapping with
6099 # -flto it won't be needed until after installation anyway.
6100 case $target in
6101 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6102 *) if test x"$enable_lto" = x"yes"; then
6103 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6106 esac
6108 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6109 # Build it unless LTO was explicitly disabled.
6110 case $target in
6111 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6112 *) ;;
6113 esac
6118 # Check whether --enable-linker-plugin-configure-flags was given.
6119 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6120 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6121 else
6122 extra_linker_plugin_configure_flags=
6126 # Check whether --enable-linker-plugin-flags was given.
6127 if test "${enable_linker_plugin_flags+set}" = set; then :
6128 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6129 else
6130 extra_linker_plugin_flags=
6136 # By default, C and C++ are the only stage 1 languages.
6137 stage1_languages=,c,
6139 # Target libraries that we bootstrap.
6140 bootstrap_target_libs=,target-libgcc,
6142 # Figure out what language subdirectories are present.
6143 # Look if the user specified --enable-languages="..."; if not, use
6144 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6145 # go away some day.
6146 # NB: embedded tabs in this IF block -- do not untabify
6147 if test -d ${srcdir}/gcc; then
6148 if test x"${enable_languages+set}" != xset; then
6149 if test x"${LANGUAGES+set}" = xset; then
6150 enable_languages="${LANGUAGES}"
6151 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6152 else
6153 enable_languages=all
6155 else
6156 if test x"${enable_languages}" = x ||
6157 test x"${enable_languages}" = xyes;
6158 then
6159 echo configure.in: --enable-languages needs at least one language argument 1>&2
6160 exit 1
6163 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6165 # 'f95' is the old name for the 'fortran' language. We issue a warning
6166 # and make the substitution.
6167 case ,${enable_languages}, in
6168 *,f95,*)
6169 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6170 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6172 esac
6174 # If bootstrapping, C++ must be enabled.
6175 case ",$enable_languages,:$enable_bootstrap" in
6176 *,c++,*:*) ;;
6177 *:yes)
6178 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6179 enable_languages="${enable_languages},c++"
6180 else
6181 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6184 esac
6186 # First scan to see if an enabled language requires some other language.
6187 # We assume that a given config-lang.in will list all the language
6188 # front ends it requires, even if some are required indirectly.
6189 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6190 case ${lang_frag} in
6191 ..) ;;
6192 # The odd quoting in the next line works around
6193 # an apparent bug in bash 1.12 on linux.
6194 ${srcdir}/gcc/[*]/config-lang.in) ;;
6196 # From the config-lang.in, get $language, $lang_requires, and
6197 # $lang_requires_boot_languages.
6198 language=
6199 lang_requires=
6200 lang_requires_boot_languages=
6201 . ${lang_frag}
6202 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6203 case ,${enable_languages}, in
6204 *,$other,*) ;;
6205 *,all,*) ;;
6206 *,$language,*)
6207 echo " \`$other' language required by \`$language'; enabling" 1>&2
6208 enable_languages="${enable_languages},${other}"
6210 esac
6211 done
6212 for other in ${lang_requires_boot_languages} ; do
6213 if test "$other" != "c"; then
6214 case ,${enable_stage1_languages}, in
6215 *,$other,*) ;;
6216 *,all,*) ;;
6218 case ,${enable_languages}, in
6219 *,$language,*)
6220 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6221 enable_stage1_languages="$enable_stage1_languages,${other}"
6223 esac
6225 esac
6227 done
6229 esac
6230 done
6232 new_enable_languages=,c,
6234 # If LTO is enabled, add the LTO front end.
6235 if test "$enable_lto" = "yes" ; then
6236 case ,${enable_languages}, in
6237 *,lto,*) ;;
6238 *) enable_languages="${enable_languages},lto" ;;
6239 esac
6240 if test "${build_lto_plugin}" = "yes" ; then
6241 configdirs="$configdirs lto-plugin"
6245 # If we're building an offloading compiler, add the LTO front end.
6246 if test x"$enable_as_accelerator_for" != x ; then
6247 case ,${enable_languages}, in
6248 *,lto,*) ;;
6249 *) enable_languages="${enable_languages},lto" ;;
6250 esac
6253 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6254 potential_languages=,c,
6256 enabled_target_libs=
6257 disabled_target_libs=
6259 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6260 case ${lang_frag} in
6261 ..) ;;
6262 # The odd quoting in the next line works around
6263 # an apparent bug in bash 1.12 on linux.
6264 ${srcdir}/gcc/[*]/config-lang.in) ;;
6266 # From the config-lang.in, get $language, $target_libs,
6267 # $lang_dirs, $boot_language, and $build_by_default
6268 language=
6269 target_libs=
6270 lang_dirs=
6271 subdir_requires=
6272 boot_language=no
6273 build_by_default=yes
6274 . ${lang_frag}
6275 if test x${language} = x; then
6276 echo "${lang_frag} doesn't set \$language." 1>&2
6277 exit 1
6280 if test "$language" = "c++"; then
6281 boot_language=yes
6284 add_this_lang=no
6285 case ,${enable_languages}, in
6286 *,${language},*)
6287 # Language was explicitly selected; include it
6288 # unless it is C, which is enabled by default.
6289 if test "$language" != "c"; then
6290 add_this_lang=yes
6293 *,all,*)
6294 # 'all' was selected, select it if it is a default language
6295 if test "$language" != "c"; then
6296 add_this_lang=${build_by_default}
6299 esac
6301 # Disable languages that need other directories if these aren't available.
6302 for i in $subdir_requires; do
6303 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6304 case ,${enable_languages}, in
6305 *,${language},*)
6306 # Specifically requested language; tell them.
6307 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6310 # Silently disable.
6311 add_this_lang=unsupported
6313 esac
6314 done
6316 # Disable Ada if no preexisting GNAT is available.
6317 case ,${enable_languages},:${language}:${have_gnat} in
6318 *,${language},*:ada:no)
6319 # Specifically requested language; tell them.
6320 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6322 *:ada:no)
6323 # Silently disable.
6324 add_this_lang=unsupported
6326 esac
6328 # Disable a language that is unsupported by the target.
6329 case " $unsupported_languages " in
6330 *" $language "*)
6331 add_this_lang=unsupported
6333 esac
6335 case $add_this_lang in
6336 unsupported)
6337 # Remove language-dependent dirs.
6338 disabled_target_libs="$disabled_target_libs $target_libs"
6339 noconfigdirs="$noconfigdirs $lang_dirs"
6342 # Remove language-dependent dirs; still show language as supported.
6343 disabled_target_libs="$disabled_target_libs $target_libs"
6344 noconfigdirs="$noconfigdirs $lang_dirs"
6345 potential_languages="${potential_languages}${language},"
6347 yes)
6348 new_enable_languages="${new_enable_languages}${language},"
6349 potential_languages="${potential_languages}${language},"
6350 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6351 enabled_target_libs="$enabled_target_libs $target_libs"
6352 case "${boot_language}:,$enable_stage1_languages," in
6353 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6354 # Add to (comma-separated) list of stage 1 languages.
6355 case ",$stage1_languages," in
6356 *,$language,* | ,yes, | ,all,) ;;
6357 *) stage1_languages="${stage1_languages}${language}," ;;
6358 esac
6359 # We need to bootstrap any supporting libraries.
6360 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6362 esac
6364 esac
6366 esac
6367 done
6369 # Add target libraries which are only needed for disabled languages
6370 # to noconfigdirs.
6371 if test -n "$disabled_target_libs"; then
6372 for dir in $disabled_target_libs; do
6373 case " $enabled_target_libs " in
6374 *" ${dir} "*) ;;
6375 *) noconfigdirs="$noconfigdirs $dir" ;;
6376 esac
6377 done
6380 # Check whether --enable-stage1-languages was given.
6381 if test "${enable_stage1_languages+set}" = set; then :
6382 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6383 ,no,|,,)
6384 # Set it to something that will have no effect in the loop below
6385 enable_stage1_languages=c ;;
6386 ,yes,)
6387 enable_stage1_languages=`echo $new_enable_languages | \
6388 sed -e "s/^,//" -e "s/,$//" ` ;;
6389 *,all,*)
6390 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6391 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6392 esac
6394 # Add "good" languages from enable_stage1_languages to stage1_languages,
6395 # while "bad" languages go in missing_languages. Leave no duplicates.
6396 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6397 case $potential_languages in
6398 *,$i,*)
6399 case $stage1_languages in
6400 *,$i,*) ;;
6401 *) stage1_languages="$stage1_languages$i," ;;
6402 esac ;;
6404 case $missing_languages in
6405 *,$i,*) ;;
6406 *) missing_languages="$missing_languages$i," ;;
6407 esac ;;
6408 esac
6409 done
6413 # Remove leading/trailing commas that were added for simplicity
6414 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6415 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6416 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6417 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6419 if test "x$missing_languages" != x; then
6420 as_fn_error "
6421 The following requested languages could not be built: ${missing_languages}
6422 Supported languages are: ${potential_languages}" "$LINENO" 5
6424 if test "x$new_enable_languages" != "x$enable_languages"; then
6425 echo The following languages will be built: ${new_enable_languages}
6426 enable_languages="$new_enable_languages"
6430 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6433 # Handle --disable-<component> generically.
6434 for dir in $configdirs $build_configdirs $target_configdirs ; do
6435 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6436 varname=`echo $dirname | sed -e s/+/_/g`
6437 if eval test x\${enable_${varname}} "=" xno ; then
6438 noconfigdirs="$noconfigdirs $dir"
6440 done
6442 # Check for Boehm's garbage collector
6443 # Check whether --enable-objc-gc was given.
6444 if test "${enable_objc_gc+set}" = set; then :
6445 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6446 *,objc,*:*:yes:*target-boehm-gc*)
6447 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6449 esac
6453 # Make sure we only build Boehm's garbage collector if required.
6454 case ,${enable_languages},:${enable_objc_gc} in
6455 *,objc,*:yes)
6456 # Keep target-boehm-gc if requested for Objective-C.
6459 # Otherwise remove target-boehm-gc depending on target-libjava.
6460 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6461 noconfigdirs="$noconfigdirs target-boehm-gc"
6464 esac
6467 # Check whether --with-upc-pts was given.
6468 if test "${with_upc_pts+set}" = set; then :
6469 withval=$with_upc_pts;
6470 if test "$withval"x != "struct"x && test "$withval"x != "packed"x; then \
6471 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6477 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6478 case ,${enable_languages}, in
6479 *,c++,*)
6480 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6481 case "${noconfigdirs}" in
6482 *target-libstdc++-v3*)
6483 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6485 *) ;;
6486 esac
6489 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6491 esac
6493 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6494 # $build_configdirs and $target_configdirs.
6495 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6497 notsupp=""
6498 for dir in . $skipdirs $noconfigdirs ; do
6499 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6500 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6501 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6502 if test -r $srcdir/$dirname/configure ; then
6503 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6504 true
6505 else
6506 notsupp="$notsupp $dir"
6510 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6511 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6512 if test -r $srcdir/$dirname/configure ; then
6513 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6514 true
6515 else
6516 notsupp="$notsupp $dir"
6520 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6521 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6522 if test -r $srcdir/$dirname/configure ; then
6523 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6524 true
6525 else
6526 notsupp="$notsupp $dir"
6530 done
6532 # Quietly strip out all directories which aren't configurable in this tree.
6533 # This relies on all configurable subdirectories being autoconfiscated, which
6534 # is now the case.
6535 build_configdirs_all="$build_configdirs"
6536 build_configdirs=
6537 for i in ${build_configdirs_all} ; do
6538 j=`echo $i | sed -e s/build-//g`
6539 if test -f ${srcdir}/$j/configure ; then
6540 build_configdirs="${build_configdirs} $i"
6542 done
6544 configdirs_all="$configdirs"
6545 configdirs=
6546 for i in ${configdirs_all} ; do
6547 if test -f ${srcdir}/$i/configure ; then
6548 configdirs="${configdirs} $i"
6550 done
6552 target_configdirs_all="$target_configdirs"
6553 target_configdirs=
6554 for i in ${target_configdirs_all} ; do
6555 j=`echo $i | sed -e s/target-//g`
6556 if test -f ${srcdir}/$j/configure ; then
6557 target_configdirs="${target_configdirs} $i"
6559 done
6561 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6562 # so we have to add it after the preceding checks.
6563 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6564 then
6565 case " $configdirs " in
6566 *" libiberty "*)
6567 # If we can build libiberty, we can also build libiberty-linker-plugin.
6568 configdirs="$configdirs libiberty-linker-plugin"
6569 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6570 --with-libiberty=../libiberty-linker-plugin";;
6572 as_fn_error "libiberty missing" "$LINENO" 5;;
6573 esac
6576 # Sometimes we have special requirements for the host libiberty.
6577 extra_host_libiberty_configure_flags=
6578 case " $configdirs " in
6579 *" lto-plugin "* | *" libcc1 "*)
6580 # When these are to be built as shared libraries, the same applies to
6581 # libiberty.
6582 extra_host_libiberty_configure_flags=--enable-shared
6584 esac
6587 # Produce a warning message for the subdirs we can't configure.
6588 # This isn't especially interesting in the Cygnus tree, but in the individual
6589 # FSF releases, it's important to let people know when their machine isn't
6590 # supported by the one or two programs in a package.
6592 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6593 # If $appdirs is non-empty, at least one of those directories must still
6594 # be configured, or we error out. (E.g., if the gas release supports a
6595 # specified target in some subdirs but not the gas subdir, we shouldn't
6596 # pretend that all is well.)
6597 if test -n "$appdirs" ; then
6598 for dir in $appdirs ; do
6599 if test -r $dir/Makefile.in ; then
6600 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6601 appdirs=""
6602 break
6604 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6605 appdirs=""
6606 break
6609 done
6610 if test -n "$appdirs" ; then
6611 echo "*** This configuration is not supported by this package." 1>&2
6612 exit 1
6615 # Okay, some application will build, or we don't care to check. Still
6616 # notify of subdirs not getting built.
6617 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6618 echo " ${notsupp}" 1>&2
6619 echo " (Any other directories should still work fine.)" 1>&2
6622 case "$host" in
6623 *msdosdjgpp*)
6624 enable_gdbtk=no ;;
6625 esac
6627 # To find our prefix, in gcc_cv_tool_prefix.
6629 # The user is always right.
6630 if test "${PATH_SEPARATOR+set}" != set; then
6631 echo "#! /bin/sh" >conf$$.sh
6632 echo "exit 0" >>conf$$.sh
6633 chmod +x conf$$.sh
6634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6635 PATH_SEPARATOR=';'
6636 else
6637 PATH_SEPARATOR=:
6639 rm -f conf$$.sh
6644 if test "x$exec_prefix" = xNONE; then
6645 if test "x$prefix" = xNONE; then
6646 gcc_cv_tool_prefix=$ac_default_prefix
6647 else
6648 gcc_cv_tool_prefix=$prefix
6650 else
6651 gcc_cv_tool_prefix=$exec_prefix
6654 # If there is no compiler in the tree, use the PATH only. In any
6655 # case, if there is no compiler in the tree nobody should use
6656 # AS_FOR_TARGET and LD_FOR_TARGET.
6657 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6658 gcc_version=`cat $srcdir/gcc/BASE-VER`
6659 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6660 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6661 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6662 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6663 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6664 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6665 else
6666 gcc_cv_tool_dirs=
6669 if test x$build = x$target && test -n "$md_exec_prefix"; then
6670 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6675 copy_dirs=
6678 # Check whether --with-build-sysroot was given.
6679 if test "${with_build_sysroot+set}" = set; then :
6680 withval=$with_build_sysroot; if test x"$withval" != x ; then
6681 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6683 else
6684 SYSROOT_CFLAGS_FOR_TARGET=
6690 # Check whether --with-debug-prefix-map was given.
6691 if test "${with_debug_prefix_map+set}" = set; then :
6692 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6693 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6694 for debug_map in $withval; do
6695 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6696 done
6698 else
6699 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6704 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6705 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6706 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6707 # We want to ensure that TARGET libraries (which we know are built with
6708 # gcc) are built with "-O2 -g", so include those options when setting
6709 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6710 if test "x$CFLAGS_FOR_TARGET" = x; then
6711 CFLAGS_FOR_TARGET=$CFLAGS
6712 case " $CFLAGS " in
6713 *" -O2 "*) ;;
6714 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6715 esac
6716 case " $CFLAGS " in
6717 *" -g "* | *" -g3 "*) ;;
6718 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6719 esac
6723 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6724 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6725 case " $CXXFLAGS " in
6726 *" -O2 "*) ;;
6727 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6728 esac
6729 case " $CXXFLAGS " in
6730 *" -g "* | *" -g3 "*) ;;
6731 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6732 esac
6738 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6739 # the named directory are copied to $(tooldir)/sys-include.
6740 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6741 if test x${is_cross_compiler} = xno ; then
6742 echo 1>&2 '***' --with-headers is only supported when cross compiling
6743 exit 1
6745 if test x"${with_headers}" != xyes ; then
6746 x=${gcc_cv_tool_prefix}
6747 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6751 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6752 # the name directories are copied to $(tooldir)/lib. Multiple directories
6753 # are permitted.
6754 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6755 if test x${is_cross_compiler} = xno ; then
6756 echo 1>&2 '***' --with-libs is only supported when cross compiling
6757 exit 1
6759 if test x"${with_libs}" != xyes ; then
6760 # Copy the libraries in reverse order, so that files in the first named
6761 # library override files in subsequent libraries.
6762 x=${gcc_cv_tool_prefix}
6763 for l in ${with_libs}; do
6764 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6765 done
6769 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6771 # This is done by determining whether or not the appropriate directory
6772 # is available, and by checking whether or not specific configurations
6773 # have requested that this magic not happen.
6775 # The command line options always override the explicit settings in
6776 # configure.in, and the settings in configure.in override this magic.
6778 # If the default for a toolchain is to use GNU as and ld, and you don't
6779 # want to do that, then you should use the --without-gnu-as and
6780 # --without-gnu-ld options for the configure script. Similarly, if
6781 # the default is to use the included zlib and you don't want to do that,
6782 # you should use the --with-system-zlib option for the configure script.
6784 if test x${use_gnu_as} = x &&
6785 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6786 with_gnu_as=yes
6787 extra_host_args="$extra_host_args --with-gnu-as"
6790 if test x${use_gnu_ld} = x &&
6791 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6792 with_gnu_ld=yes
6793 extra_host_args="$extra_host_args --with-gnu-ld"
6796 if test x${use_included_zlib} = x &&
6797 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6799 else
6800 with_system_zlib=yes
6801 extra_host_args="$extra_host_args --with-system-zlib"
6804 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6805 # can detect this case.
6807 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6808 with_newlib=yes
6809 extra_host_args="$extra_host_args --with-newlib"
6812 # Handle ${copy_dirs}
6813 set fnord ${copy_dirs}
6814 shift
6815 while test $# != 0 ; do
6816 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6818 else
6819 echo Copying $1 to $2
6821 # Use the install script to create the directory and all required
6822 # parent directories.
6823 if test -d $2 ; then
6825 else
6826 echo >config.temp
6827 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6830 # Copy the directory, assuming we have tar.
6831 # FIXME: Should we use B in the second tar? Not all systems support it.
6832 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6834 # It is the responsibility of the user to correctly adjust all
6835 # symlinks. If somebody can figure out how to handle them correctly
6836 # here, feel free to add the code.
6838 echo $1 > $2/COPIED
6840 shift; shift
6841 done
6843 # Determine a target-dependent exec_prefix that the installed
6844 # gcc will search in. Keep this list sorted by triplet, with
6845 # the *-*-osname triplets last.
6846 md_exec_prefix=
6847 case "${target}" in
6848 i[34567]86-pc-msdosdjgpp*)
6849 md_exec_prefix=/dev/env/DJDIR/bin
6851 *-*-hpux* | \
6852 *-*-nto-qnx* | \
6853 *-*-solaris2*)
6854 md_exec_prefix=/usr/ccs/bin
6856 esac
6858 extra_arflags_for_target=
6859 extra_nmflags_for_target=
6860 extra_ranlibflags_for_target=
6861 target_makefile_frag=/dev/null
6862 case "${target}" in
6863 spu-*-*)
6864 target_makefile_frag="config/mt-spu"
6866 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6867 target_makefile_frag="config/mt-sde"
6869 mipsisa*-*-elfoabi*)
6870 target_makefile_frag="config/mt-mips-elfoabi"
6872 mips*-*-*linux* | mips*-*-gnu*)
6873 target_makefile_frag="config/mt-mips-gnu"
6875 nios2-*-elf*)
6876 target_makefile_frag="config/mt-nios2-elf"
6878 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6879 target_makefile_frag="config/mt-gnu"
6881 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6882 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6883 # commands to handle both 32-bit and 64-bit objects. These flags are
6884 # harmless if we're using GNU nm or ar.
6885 extra_arflags_for_target=" -X32_64"
6886 extra_nmflags_for_target=" -B -X32_64"
6888 esac
6890 alphaieee_frag=/dev/null
6891 case $target in
6892 alpha*-*-*)
6893 # This just makes sure to use the -mieee option to build target libs.
6894 # This should probably be set individually by each library.
6895 alphaieee_frag="config/mt-alphaieee"
6897 esac
6899 # If --enable-target-optspace always use -Os instead of -O2 to build
6900 # the target libraries, similarly if it is not specified, use -Os
6901 # on selected platforms.
6902 ospace_frag=/dev/null
6903 case "${enable_target_optspace}:${target}" in
6904 yes:*)
6905 ospace_frag="config/mt-ospace"
6907 :d30v-*)
6908 ospace_frag="config/mt-d30v"
6910 :m32r-* | :d10v-* | :fr30-*)
6911 ospace_frag="config/mt-ospace"
6913 no:* | :*)
6916 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6918 esac
6920 # Some systems (e.g., one of the i386-aix systems the gas testers are
6921 # using) don't handle "\$" correctly, so don't use it here.
6922 tooldir='${exec_prefix}'/${target_noncanonical}
6923 build_tooldir=${tooldir}
6925 # Create a .gdbinit file which runs the one in srcdir
6926 # and tells GDB to look there for source files.
6928 if test -r ${srcdir}/.gdbinit ; then
6929 case ${srcdir} in
6930 .) ;;
6931 *) cat > ./.gdbinit <<EOF
6932 # ${NO_EDIT}
6933 dir ${srcdir}
6934 dir .
6935 source ${srcdir}/.gdbinit
6938 esac
6941 # Make sure that the compiler is able to generate an executable. If it
6942 # can't, we are probably in trouble. We don't care whether we can run the
6943 # executable--we might be using a cross compiler--we only care whether it
6944 # can be created. At this point the main configure script has set CC.
6945 we_are_ok=no
6946 echo "int main () { return 0; }" > conftest.c
6947 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6948 if test $? = 0 ; then
6949 if test -s conftest || test -s conftest.exe ; then
6950 we_are_ok=yes
6953 case $we_are_ok in
6955 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6956 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6957 rm -f conftest*
6958 exit 1
6960 esac
6961 rm -f conftest*
6963 # Decide which environment variable is used to find dynamic libraries.
6964 case "${host}" in
6965 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6966 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6967 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6968 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6969 esac
6971 # On systems where the dynamic library environment variable is PATH,
6972 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6973 # built executables to PATH.
6974 if test "$RPATH_ENVVAR" = PATH; then
6975 GCC_SHLIB_SUBDIR=/shlib
6976 else
6977 GCC_SHLIB_SUBDIR=
6980 # Adjust the toplevel makefile according to whether bootstrap was selected.
6981 case $enable_bootstrap in
6982 yes)
6983 bootstrap_suffix=bootstrap
6984 BUILD_CONFIG=bootstrap-debug
6987 bootstrap_suffix=no-bootstrap
6988 BUILD_CONFIG=
6990 esac
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6993 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6996 # Check whether --with-build-config was given.
6997 if test "${with_build_config+set}" = set; then :
6998 withval=$with_build_config; case $with_build_config in
6999 yes) with_build_config= ;;
7000 no) with_build_config= BUILD_CONFIG= ;;
7001 esac
7005 if test "x${with_build_config}" != x; then
7006 BUILD_CONFIG=$with_build_config
7007 else
7008 case $BUILD_CONFIG in
7009 bootstrap-debug)
7010 if echo "int f (void) { return 0; }" > conftest.c &&
7011 ${CC} -c conftest.c &&
7012 mv conftest.o conftest.o.g0 &&
7013 ${CC} -c -g conftest.c &&
7014 mv conftest.o conftest.o.g &&
7015 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7017 else
7018 BUILD_CONFIG=
7020 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7022 esac
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7025 $as_echo "$BUILD_CONFIG" >&6; }
7028 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7030 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7031 # Check whether --enable-vtable-verify was given.
7032 if test "${enable_vtable_verify+set}" = set; then :
7033 enableval=$enable_vtable_verify; case "$enableval" in
7034 yes) enable_vtable_verify=yes ;;
7035 no) enable_vtable_verify=no ;;
7036 *) enable_vtable_verify=no;;
7037 esac
7038 else
7039 enable_vtable_verify=no
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7043 $as_echo "$enable_vtable_verify" >&6; }
7045 # Record target_configdirs and the configure arguments for target and
7046 # build configuration in Makefile.
7047 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7048 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7049 bootstrap_fixincludes=no
7051 # If we are building libgomp, bootstrap it.
7052 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7053 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7056 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7057 # or bootstrap-ubsan, bootstrap it.
7058 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7059 case "$BUILD_CONFIG" in
7060 *bootstrap-asan* | *bootstrap-ubsan* )
7061 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7062 bootstrap_fixincludes=yes
7064 esac
7067 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7068 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7069 test "$enable_vtable_verify" != no; then
7070 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7073 # Determine whether gdb needs tk/tcl or not.
7074 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7075 # and in that case we want gdb to be built without tk. Ugh!
7076 # In fact I believe gdb is the *only* package directly dependent on tk,
7077 # so we should be able to put the 'maybe's in unconditionally and
7078 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7079 # 100% sure that that's safe though.
7081 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7082 case "$enable_gdbtk" in
7084 GDB_TK="" ;;
7085 yes)
7086 GDB_TK="${gdb_tk}" ;;
7088 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7089 # distro. Eventually someone will fix this and move Insight, nee
7090 # gdbtk to a separate directory.
7091 if test -d ${srcdir}/gdb/gdbtk ; then
7092 GDB_TK="${gdb_tk}"
7093 else
7094 GDB_TK=""
7097 esac
7098 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7099 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7101 # Strip out unwanted targets.
7103 # While at that, we remove Makefiles if we were started for recursive
7104 # configuration, so that the top-level Makefile reconfigures them,
7105 # like we used to do when configure itself was recursive.
7107 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7108 # but now we're fixing up the Makefile ourselves with the additional
7109 # commands passed to AC_CONFIG_FILES. Use separate variables
7110 # extrasub-{build,host,target} not because there is any reason to split
7111 # the substitutions up that way, but only to remain below the limit of
7112 # 99 commands in a script, for HP-UX sed.
7113 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7115 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7116 yes:yes:*\ gold\ *:*,c++,*) ;;
7117 yes:yes:*\ gold\ *:*)
7118 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7120 esac
7122 extrasub_build=
7123 for module in ${build_configdirs} ; do
7124 if test -z "${no_recursion}" \
7125 && test -f ${build_subdir}/${module}/Makefile; then
7126 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7127 rm -f ${build_subdir}/${module}/Makefile
7129 extrasub_build="$extrasub_build
7130 /^@if build-$module\$/d
7131 /^@endif build-$module\$/d
7132 /^@if build-$module-$bootstrap_suffix\$/d
7133 /^@endif build-$module-$bootstrap_suffix\$/d"
7134 done
7135 extrasub_host=
7136 for module in ${configdirs} ; do
7137 if test -z "${no_recursion}"; then
7138 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7139 if test -f ${file}; then
7140 echo 1>&2 "*** removing ${file} to force reconfigure"
7141 rm -f ${file}
7143 done
7145 case ${module},${bootstrap_fixincludes} in
7146 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7147 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7148 esac
7149 extrasub_host="$extrasub_host
7150 /^@if $module\$/d
7151 /^@endif $module\$/d
7152 /^@if $module-$host_bootstrap_suffix\$/d
7153 /^@endif $module-$host_bootstrap_suffix\$/d"
7154 done
7155 extrasub_target=
7156 for module in ${target_configdirs} ; do
7157 if test -z "${no_recursion}" \
7158 && test -f ${target_subdir}/${module}/Makefile; then
7159 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7160 rm -f ${target_subdir}/${module}/Makefile
7163 # We only bootstrap target libraries listed in bootstrap_target_libs.
7164 case $bootstrap_target_libs in
7165 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7166 *) target_bootstrap_suffix=no-bootstrap ;;
7167 esac
7169 extrasub_target="$extrasub_target
7170 /^@if target-$module\$/d
7171 /^@endif target-$module\$/d
7172 /^@if target-$module-$target_bootstrap_suffix\$/d
7173 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7174 done
7176 # Do the final fixup along with target modules.
7177 extrasub_target="$extrasub_target
7178 /^@if /,/^@endif /d"
7180 # Create the serialization dependencies. This uses a temporary file.
7182 # Check whether --enable-serial-configure was given.
7183 if test "${enable_serial_configure+set}" = set; then :
7184 enableval=$enable_serial_configure;
7188 case ${enable_serial_configure} in
7189 yes)
7190 enable_serial_build_configure=yes
7191 enable_serial_host_configure=yes
7192 enable_serial_target_configure=yes
7194 esac
7196 # These force 'configure's to be done one at a time, to avoid problems
7197 # with contention over a shared config.cache.
7198 rm -f serdep.tmp
7199 echo '# serdep.tmp' > serdep.tmp
7200 olditem=
7201 test "x${enable_serial_build_configure}" = xyes &&
7202 for item in ${build_configdirs} ; do
7203 case ${olditem} in
7204 "") ;;
7205 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7206 esac
7207 olditem=${item}
7208 done
7209 olditem=
7210 test "x${enable_serial_host_configure}" = xyes &&
7211 for item in ${configdirs} ; do
7212 case ${olditem} in
7213 "") ;;
7214 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7215 esac
7216 olditem=${item}
7217 done
7218 olditem=
7219 test "x${enable_serial_target_configure}" = xyes &&
7220 for item in ${target_configdirs} ; do
7221 case ${olditem} in
7222 "") ;;
7223 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7224 esac
7225 olditem=${item}
7226 done
7227 serialization_dependencies=serdep.tmp
7230 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7231 # target, nonopt, and variable assignments. These are the ones we
7232 # might not want to pass down to subconfigures. The exception being
7233 # --cache-file=/dev/null, which is used to turn off the use of cache
7234 # files altogether, and which should be passed on to subconfigures.
7235 # Also strip program-prefix, program-suffix, and program-transform-name,
7236 # so that we can pass down a consistent program-transform-name.
7237 baseargs=
7238 tbaseargs=
7239 keep_next=no
7240 skip_next=no
7241 eval "set -- $ac_configure_args"
7242 for ac_arg
7244 if test X"$skip_next" = X"yes"; then
7245 skip_next=no
7246 continue
7248 if test X"$keep_next" = X"yes"; then
7249 case $ac_arg in
7250 *\'*)
7251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7252 esac
7253 baseargs="$baseargs '$ac_arg'"
7254 tbaseargs="$tbaseargs '$ac_arg'"
7255 keep_next=no
7256 continue
7259 # Handle separated arguments. Based on the logic generated by
7260 # autoconf 2.59.
7261 case $ac_arg in
7262 *=* | --config-cache | -C | -disable-* | --disable-* \
7263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7265 | -with-* | --with-* | -without-* | --without-* | --x)
7266 separate_arg=no
7269 separate_arg=yes
7272 separate_arg=no
7274 esac
7276 skip_targ=no
7277 case $ac_arg in
7279 --with-* | --without-*)
7280 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7282 case $libopt in
7283 *[-_]include)
7284 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7286 *[-_]lib)
7287 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7290 lib=$libopt
7292 esac
7295 case $lib in
7296 mpc | mpfr | gmp | isl)
7297 # If we're processing --with-$lib, --with-$lib-include or
7298 # --with-$lib-lib, for one of the libs above, and target is
7299 # different from host, don't pass the current argument to any
7300 # target library's configure.
7301 if test x$is_cross_compiler = xyes; then
7302 skip_targ=yes
7305 esac
7307 esac
7309 case "$ac_arg" in
7310 --cache-file=/dev/null | \
7311 -cache-file=/dev/null )
7312 # Handled here to avoid the test to skip args below.
7313 baseargs="$baseargs '$ac_arg'"
7314 tbaseargs="$tbaseargs '$ac_arg'"
7315 # Assert: $separate_arg should always be no.
7316 keep_next=$separate_arg
7318 --no*)
7319 continue
7321 --c* | \
7322 --sr* | \
7323 --ho* | \
7324 --bu* | \
7325 --t* | \
7326 --program-* | \
7327 -cache_file* | \
7328 -srcdir* | \
7329 -host* | \
7330 -build* | \
7331 -target* | \
7332 -program-prefix* | \
7333 -program-suffix* | \
7334 -program-transform-name* )
7335 skip_next=$separate_arg
7336 continue
7339 # An option. Add it.
7340 case $ac_arg in
7341 *\'*)
7342 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7343 esac
7344 baseargs="$baseargs '$ac_arg'"
7345 if test X"$skip_targ" = Xno; then
7346 tbaseargs="$tbaseargs '$ac_arg'"
7348 keep_next=$separate_arg
7351 # Either a variable assignment, or a nonopt (triplet). Don't
7352 # pass it down; let the Makefile handle this.
7353 continue
7355 esac
7356 done
7357 # Remove the initial space we just introduced and, as these will be
7358 # expanded by make, quote '$'.
7359 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7361 # Add in --program-transform-name, after --program-prefix and
7362 # --program-suffix have been applied to it. Autoconf has already
7363 # doubled dollar signs and backslashes in program_transform_name; we want
7364 # the backslashes un-doubled, and then the entire thing wrapped in single
7365 # quotes, because this will be expanded first by make and then by the shell.
7366 # Also, because we want to override the logic in subdir configure scripts to
7367 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7368 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7369 ${program_transform_name}
7370 EOF_SED
7371 gcc_transform_name=`cat conftestsed.out`
7372 rm -f conftestsed.out
7373 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7374 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7375 if test "$silent" = yes; then
7376 baseargs="$baseargs --silent"
7377 tbaseargs="$tbaseargs --silent"
7379 baseargs="$baseargs --disable-option-checking"
7380 tbaseargs="$tbaseargs --disable-option-checking"
7382 # Record and document user additions to sub configure arguments.
7387 # For the build-side libraries, we just need to pretend we're native,
7388 # and not use the same cache file. Multilibs are neither needed nor
7389 # desired. We can't even use the same cache file for all build-side
7390 # libraries, as they're compiled differently; some with C, some with
7391 # C++ or with different feature-enabling options.
7392 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7394 # For host modules, accept cache file option, or specification as blank.
7395 case "${cache_file}" in
7396 "") # empty
7397 cache_file_option="" ;;
7398 /* | [A-Za-z]:[\\/]* ) # absolute path
7399 cache_file_option="--cache-file=${cache_file}" ;;
7400 *) # relative path
7401 cache_file_option="--cache-file=../${cache_file}" ;;
7402 esac
7404 # Host dirs don't like to share a cache file either, horribly enough.
7405 # This seems to be due to autoconf 2.5x stupidity.
7406 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7408 target_configargs="$target_configargs ${tbaseargs}"
7410 # Passing a --with-cross-host argument lets the target libraries know
7411 # whether they are being built with a cross-compiler or being built
7412 # native. However, it would be better to use other mechanisms to make the
7413 # sorts of decisions they want to make on this basis. Please consider
7414 # this option to be deprecated. FIXME.
7415 if test x${is_cross_compiler} = xyes ; then
7416 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7419 # Special user-friendly check for native x86_64-linux build, if
7420 # multilib is not explicitly enabled.
7421 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7422 x86_64-*linux*:yes:$build:$build:)
7423 # Make sure we have a developement environment that handles 32-bit
7424 dev64=no
7425 echo "int main () { return 0; }" > conftest.c
7426 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7427 if test $? = 0 ; then
7428 if test -s conftest || test -s conftest.exe ; then
7429 dev64=yes
7432 rm -f conftest*
7433 if test x${dev64} != xyes ; then
7434 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7437 esac
7439 # Default to --enable-multilib.
7440 if test x${enable_multilib} = x ; then
7441 target_configargs="--enable-multilib ${target_configargs}"
7444 # Pass --with-newlib if appropriate. Note that target_configdirs has
7445 # changed from the earlier setting of with_newlib.
7446 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7447 target_configargs="--with-newlib ${target_configargs}"
7450 # Different target subdirs use different values of certain variables
7451 # (notably CXX). Worse, multilibs use *lots* of different values.
7452 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7453 # it doesn't automatically accept command-line overrides of them.
7454 # This means it's not safe for target subdirs to share a cache file,
7455 # which is disgusting, but there you have it. Hopefully this can be
7456 # fixed in future. It's still worthwhile to use a cache file for each
7457 # directory. I think.
7459 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7460 # We need to pass --target, as newer autoconf's requires consistency
7461 # for target_alias and gcc doesn't manage it consistently.
7462 target_configargs="--cache-file=./config.cache ${target_configargs}"
7464 FLAGS_FOR_TARGET=
7465 case " $target_configdirs " in
7466 *" newlib "*)
7467 case " $target_configargs " in
7468 *" --with-newlib "*)
7469 case "$target" in
7470 *-cygwin*)
7471 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7473 esac
7475 # If we're not building GCC, don't discard standard headers.
7476 if test -d ${srcdir}/gcc; then
7477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7479 if test "${build}" != "${host}"; then
7480 # On Canadian crosses, CC_FOR_TARGET will have already been set
7481 # by `configure', so we won't have an opportunity to add -Bgcc/
7482 # to it. This is right: we don't want to search that directory
7483 # for binaries, but we want the header files in there, so add
7484 # them explicitly.
7485 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7487 # Someone might think of using the pre-installed headers on
7488 # Canadian crosses, in case the installed compiler is not fully
7489 # compatible with the compiler being built. In this case, it
7490 # would be better to flag an error than risking having
7491 # incompatible object files being constructed. We can't
7492 # guarantee that an error will be flagged, but let's hope the
7493 # compiler will do it, when presented with incompatible header
7494 # files.
7498 case "${target}-${is_cross_compiler}" in
7499 i[3456789]86-*-linux*-no)
7500 # Here host == target, so we don't need to build gcc,
7501 # so we don't want to discard standard headers.
7502 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7505 # If we're building newlib, use its generic headers last, but search
7506 # for any libc-related directories first (so make it the last -B
7507 # switch).
7508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7510 # If we're building libgloss, find the startup file, simulator library
7511 # and linker script.
7512 case " $target_configdirs " in
7513 *" libgloss "*)
7514 # Look for startup file, simulator library and maybe linker script.
7515 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7516 # Look for libnosys.a in case the target needs it.
7517 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7518 # Most targets have the linker script in the source directory.
7519 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7521 esac
7523 esac
7525 esac
7527 esac
7529 case "$target" in
7530 x86_64-*mingw* | *-w64-mingw*)
7531 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7532 # however, use a symlink named 'mingw' in ${prefix} .
7533 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7535 *-mingw*)
7536 # MinGW can't be handled as Cygwin above since it does not use newlib.
7537 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'
7539 esac
7541 # Allow the user to override the flags for
7542 # our build compiler if desired.
7543 if test x"${build}" = x"${host}" ; then
7544 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7545 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7546 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7549 # On Canadian crosses, we'll be searching the right directories for
7550 # the previously-installed cross compiler, so don't bother to add
7551 # flags for directories within the install tree of the compiler
7552 # being built; programs in there won't even run.
7553 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7554 # Search for pre-installed headers if nothing else fits.
7555 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7558 if test "x${use_gnu_ld}" = x &&
7559 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7560 # Arrange for us to find uninstalled linker scripts.
7561 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7564 # Search for other target-specific linker scripts and such.
7565 case "${target}" in
7566 mep*)
7567 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7569 esac
7571 # UPC linker script check
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7573 $as_echo_n "checking for UPC link script support... " >&6; }
7574 # Check whether --enable-upc-link-script was given.
7575 if test "${enable_upc_link_script+set}" = set; then :
7576 enableval=$enable_upc_link_script;
7577 case $enableval in
7578 yes | no) ;;
7580 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7582 esac
7584 else
7586 if test x${use_gnu_ld} != xno ; then
7587 case "$target" in
7588 # disable linker script for Apple Mac OS X
7589 *-*-darwin*)
7590 enable_upc_link_script=no
7593 enable_upc_link_script=yes
7595 esac
7596 else
7597 enable_upc_link_script=no
7599 if test "$enable_upc_link_script" = yes; then
7600 target_configargs="${target_configargs} --enable-upc-link-script"
7601 host_configargs="${host_configargs} --enable-upc-link-script"
7606 if test "$enable_upc_link_script" = yes; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7608 $as_echo "yes" >&6; };
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; };
7615 # Makefile fragments.
7616 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7618 eval fragval=\$$frag
7619 if test $fragval != /dev/null; then
7620 eval $frag=${srcdir}/$fragval
7622 done
7628 # Miscellanea: directories, flags, etc.
7637 # Build module lists & subconfigure args.
7641 # Host module lists & subconfigure args.
7646 # Target module lists & subconfigure args.
7650 # Build tools.
7669 # Generate default definitions for YACC, M4, LEX and other programs that run
7670 # on the build machine. These are used if the Makefile can't locate these
7671 # programs in objdir.
7672 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7674 for ac_prog in 'bison -y' byacc yacc
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if test "${ac_cv_prog_YACC+set}" = set; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 if test -n "$YACC"; then
7684 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7685 else
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_prog_YACC="$ac_prog"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 break 2
7697 done
7698 done
7699 IFS=$as_save_IFS
7703 YACC=$ac_cv_prog_YACC
7704 if test -n "$YACC"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7706 $as_echo "$YACC" >&6; }
7707 else
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7713 test -n "$YACC" && break
7714 done
7715 test -n "$YACC" || YACC="$MISSING bison -y"
7717 case " $build_configdirs " in
7718 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7719 esac
7721 for ac_prog in bison
7723 # Extract the first word of "$ac_prog", so it can be a program name with args.
7724 set dummy $ac_prog; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if test "${ac_cv_prog_BISON+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 if test -n "$BISON"; then
7731 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7732 else
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_prog_BISON="$ac_prog"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7744 done
7745 done
7746 IFS=$as_save_IFS
7750 BISON=$ac_cv_prog_BISON
7751 if test -n "$BISON"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7753 $as_echo "$BISON" >&6; }
7754 else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7760 test -n "$BISON" && break
7761 done
7762 test -n "$BISON" || BISON="$MISSING bison"
7764 case " $build_configdirs " in
7765 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7766 esac
7768 for ac_prog in gm4 gnum4 m4
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if test "${ac_cv_prog_M4+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$M4"; then
7778 ac_cv_prog_M4="$M4" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_M4="$ac_prog"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7791 done
7792 done
7793 IFS=$as_save_IFS
7797 M4=$ac_cv_prog_M4
7798 if test -n "$M4"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7800 $as_echo "$M4" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7807 test -n "$M4" && break
7808 done
7809 test -n "$M4" || M4="$MISSING m4"
7811 case " $build_configdirs " in
7812 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7813 esac
7815 for ac_prog in flex lex
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_LEX+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$LEX"; then
7825 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_LEX="$ac_prog"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7844 LEX=$ac_cv_prog_LEX
7845 if test -n "$LEX"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7847 $as_echo "$LEX" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7854 test -n "$LEX" && break
7855 done
7856 test -n "$LEX" || LEX="$MISSING flex"
7858 case " $build_configdirs " in
7859 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7860 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7861 esac
7863 for ac_prog in flex
7865 # Extract the first word of "$ac_prog", so it can be a program name with args.
7866 set dummy $ac_prog; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if test "${ac_cv_prog_FLEX+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 if test -n "$FLEX"; then
7873 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7878 IFS=$as_save_IFS
7879 test -z "$as_dir" && as_dir=.
7880 for ac_exec_ext in '' $ac_executable_extensions; do
7881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7882 ac_cv_prog_FLEX="$ac_prog"
7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884 break 2
7886 done
7887 done
7888 IFS=$as_save_IFS
7892 FLEX=$ac_cv_prog_FLEX
7893 if test -n "$FLEX"; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7895 $as_echo "$FLEX" >&6; }
7896 else
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7902 test -n "$FLEX" && break
7903 done
7904 test -n "$FLEX" || FLEX="$MISSING flex"
7906 case " $build_configdirs " in
7907 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7908 esac
7910 for ac_prog in makeinfo
7912 # Extract the first word of "$ac_prog", so it can be a program name with args.
7913 set dummy $ac_prog; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$MAKEINFO"; then
7920 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_MAKEINFO="$ac_prog"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7933 done
7934 done
7935 IFS=$as_save_IFS
7939 MAKEINFO=$ac_cv_prog_MAKEINFO
7940 if test -n "$MAKEINFO"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7942 $as_echo "$MAKEINFO" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7949 test -n "$MAKEINFO" && break
7950 done
7951 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7953 case " $build_configdirs " in
7954 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7957 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7958 # higher, else we use the "missing" dummy.
7959 if ${MAKEINFO} --version \
7960 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7962 else
7963 MAKEINFO="$MISSING makeinfo"
7967 esac
7969 # FIXME: expect and dejagnu may become build tools?
7971 for ac_prog in expect
7973 # Extract the first word of "$ac_prog", so it can be a program name with args.
7974 set dummy $ac_prog; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$EXPECT"; then
7981 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7990 ac_cv_prog_EXPECT="$ac_prog"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7994 done
7995 done
7996 IFS=$as_save_IFS
8000 EXPECT=$ac_cv_prog_EXPECT
8001 if test -n "$EXPECT"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8003 $as_echo "$EXPECT" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8010 test -n "$EXPECT" && break
8011 done
8012 test -n "$EXPECT" || EXPECT="expect"
8014 case " $configdirs " in
8015 *" expect "*)
8016 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8018 esac
8020 for ac_prog in runtest
8022 # Extract the first word of "$ac_prog", so it can be a program name with args.
8023 set dummy $ac_prog; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 if test -n "$RUNTEST"; then
8030 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_RUNTEST="$ac_prog"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8043 done
8044 done
8045 IFS=$as_save_IFS
8049 RUNTEST=$ac_cv_prog_RUNTEST
8050 if test -n "$RUNTEST"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8052 $as_echo "$RUNTEST" >&6; }
8053 else
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8059 test -n "$RUNTEST" && break
8060 done
8061 test -n "$RUNTEST" || RUNTEST="runtest"
8063 case " $configdirs " in
8064 *" dejagnu "*)
8065 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8067 esac
8070 # Host tools.
8071 ncn_tool_prefix=
8072 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8073 ncn_target_tool_prefix=
8074 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8078 if test -n "$AR"; then
8079 ac_cv_prog_AR=$AR
8080 elif test -n "$ac_cv_prog_AR"; then
8081 AR=$ac_cv_prog_AR
8084 if test -n "$ac_cv_prog_AR"; then
8085 for ncn_progname in ar; do
8086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8087 set dummy ${ncn_progname}; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if test "${ac_cv_prog_AR+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if test -n "$AR"; then
8094 ac_cv_prog_AR="$AR" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_prog_AR="${ncn_progname}"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8107 done
8108 done
8109 IFS=$as_save_IFS
8113 AR=$ac_cv_prog_AR
8114 if test -n "$AR"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8116 $as_echo "$AR" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8123 done
8126 for ncn_progname in ar; do
8127 if test -n "$ncn_tool_prefix"; then
8128 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8129 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_AR+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 if test -n "$AR"; then
8136 ac_cv_prog_AR="$AR" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8149 done
8150 done
8151 IFS=$as_save_IFS
8155 AR=$ac_cv_prog_AR
8156 if test -n "$AR"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8158 $as_echo "$AR" >&6; }
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8166 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8168 set dummy ${ncn_progname}; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if test "${ac_cv_prog_AR+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 if test -n "$AR"; then
8175 ac_cv_prog_AR="$AR" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_prog_AR="${ncn_progname}"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8188 done
8189 done
8190 IFS=$as_save_IFS
8194 AR=$ac_cv_prog_AR
8195 if test -n "$AR"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8197 $as_echo "$AR" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8205 test -n "$ac_cv_prog_AR" && break
8206 done
8208 if test -z "$ac_cv_prog_AR" ; then
8209 set dummy ar
8210 if test $build = $host ; then
8211 AR="$2"
8212 else
8213 AR="${ncn_tool_prefix}$2"
8219 if test -n "$AS"; then
8220 ac_cv_prog_AS=$AS
8221 elif test -n "$ac_cv_prog_AS"; then
8222 AS=$ac_cv_prog_AS
8225 if test -n "$ac_cv_prog_AS"; then
8226 for ncn_progname in as; do
8227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8228 set dummy ${ncn_progname}; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if test "${ac_cv_prog_AS+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 if test -n "$AS"; then
8235 ac_cv_prog_AS="$AS" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_prog_AS="${ncn_progname}"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8248 done
8249 done
8250 IFS=$as_save_IFS
8254 AS=$ac_cv_prog_AS
8255 if test -n "$AS"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8257 $as_echo "$AS" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8264 done
8267 for ncn_progname in as; do
8268 if test -n "$ncn_tool_prefix"; then
8269 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8270 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if test "${ac_cv_prog_AS+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$AS"; then
8277 ac_cv_prog_AS="$AS" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8290 done
8291 done
8292 IFS=$as_save_IFS
8296 AS=$ac_cv_prog_AS
8297 if test -n "$AS"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8299 $as_echo "$AS" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8307 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8309 set dummy ${ncn_progname}; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if test "${ac_cv_prog_AS+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$AS"; then
8316 ac_cv_prog_AS="$AS" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325 ac_cv_prog_AS="${ncn_progname}"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8329 done
8330 done
8331 IFS=$as_save_IFS
8335 AS=$ac_cv_prog_AS
8336 if test -n "$AS"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8338 $as_echo "$AS" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8346 test -n "$ac_cv_prog_AS" && break
8347 done
8349 if test -z "$ac_cv_prog_AS" ; then
8350 set dummy as
8351 if test $build = $host ; then
8352 AS="$2"
8353 else
8354 AS="${ncn_tool_prefix}$2"
8360 if test -n "$DLLTOOL"; then
8361 ac_cv_prog_DLLTOOL=$DLLTOOL
8362 elif test -n "$ac_cv_prog_DLLTOOL"; then
8363 DLLTOOL=$ac_cv_prog_DLLTOOL
8366 if test -n "$ac_cv_prog_DLLTOOL"; then
8367 for ncn_progname in dlltool; do
8368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8369 set dummy ${ncn_progname}; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 if test -n "$DLLTOOL"; then
8376 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8377 else
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8385 ac_cv_prog_DLLTOOL="${ncn_progname}"
8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8389 done
8390 done
8391 IFS=$as_save_IFS
8395 DLLTOOL=$ac_cv_prog_DLLTOOL
8396 if test -n "$DLLTOOL"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8398 $as_echo "$DLLTOOL" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8405 done
8408 for ncn_progname in dlltool; do
8409 if test -n "$ncn_tool_prefix"; then
8410 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8411 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 if test -n "$DLLTOOL"; then
8418 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8419 else
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8431 done
8432 done
8433 IFS=$as_save_IFS
8437 DLLTOOL=$ac_cv_prog_DLLTOOL
8438 if test -n "$DLLTOOL"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8440 $as_echo "$DLLTOOL" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8448 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8450 set dummy ${ncn_progname}; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 if test -n "$DLLTOOL"; then
8457 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_prog_DLLTOOL="${ncn_progname}"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8472 IFS=$as_save_IFS
8476 DLLTOOL=$ac_cv_prog_DLLTOOL
8477 if test -n "$DLLTOOL"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8479 $as_echo "$DLLTOOL" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8487 test -n "$ac_cv_prog_DLLTOOL" && break
8488 done
8490 if test -z "$ac_cv_prog_DLLTOOL" ; then
8491 set dummy dlltool
8492 if test $build = $host ; then
8493 DLLTOOL="$2"
8494 else
8495 DLLTOOL="${ncn_tool_prefix}$2"
8501 if test -n "$LD"; then
8502 ac_cv_prog_LD=$LD
8503 elif test -n "$ac_cv_prog_LD"; then
8504 LD=$ac_cv_prog_LD
8507 if test -n "$ac_cv_prog_LD"; then
8508 for ncn_progname in ld; do
8509 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8510 set dummy ${ncn_progname}; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if test "${ac_cv_prog_LD+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 if test -n "$LD"; then
8517 ac_cv_prog_LD="$LD" # Let the user override the test.
8518 else
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_prog_LD="${ncn_progname}"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8530 done
8531 done
8532 IFS=$as_save_IFS
8536 LD=$ac_cv_prog_LD
8537 if test -n "$LD"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8539 $as_echo "$LD" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8546 done
8549 for ncn_progname in ld; do
8550 if test -n "$ncn_tool_prefix"; then
8551 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8552 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if test "${ac_cv_prog_LD+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 if test -n "$LD"; then
8559 ac_cv_prog_LD="$LD" # Let the user override the test.
8560 else
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8568 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8572 done
8573 done
8574 IFS=$as_save_IFS
8578 LD=$ac_cv_prog_LD
8579 if test -n "$LD"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8581 $as_echo "$LD" >&6; }
8582 else
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8589 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8591 set dummy ${ncn_progname}; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if test "${ac_cv_prog_LD+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 if test -n "$LD"; then
8598 ac_cv_prog_LD="$LD" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607 ac_cv_prog_LD="${ncn_progname}"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8611 done
8612 done
8613 IFS=$as_save_IFS
8617 LD=$ac_cv_prog_LD
8618 if test -n "$LD"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8620 $as_echo "$LD" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8628 test -n "$ac_cv_prog_LD" && break
8629 done
8631 if test -z "$ac_cv_prog_LD" ; then
8632 set dummy ld
8633 if test $build = $host ; then
8634 LD="$2"
8635 else
8636 LD="${ncn_tool_prefix}$2"
8642 if test -n "$LIPO"; then
8643 ac_cv_prog_LIPO=$LIPO
8644 elif test -n "$ac_cv_prog_LIPO"; then
8645 LIPO=$ac_cv_prog_LIPO
8648 if test -n "$ac_cv_prog_LIPO"; then
8649 for ncn_progname in lipo; do
8650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8651 set dummy ${ncn_progname}; ac_word=$2
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 $as_echo_n "checking for $ac_word... " >&6; }
8654 if test "${ac_cv_prog_LIPO+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 if test -n "$LIPO"; then
8658 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8659 else
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_prog_LIPO="${ncn_progname}"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8671 done
8672 done
8673 IFS=$as_save_IFS
8677 LIPO=$ac_cv_prog_LIPO
8678 if test -n "$LIPO"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8680 $as_echo "$LIPO" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8687 done
8690 for ncn_progname in lipo; do
8691 if test -n "$ncn_tool_prefix"; then
8692 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8693 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if test "${ac_cv_prog_LIPO+set}" = set; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 if test -n "$LIPO"; then
8700 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8709 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8713 done
8714 done
8715 IFS=$as_save_IFS
8719 LIPO=$ac_cv_prog_LIPO
8720 if test -n "$LIPO"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8722 $as_echo "$LIPO" >&6; }
8723 else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8730 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8732 set dummy ${ncn_progname}; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if test "${ac_cv_prog_LIPO+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 if test -n "$LIPO"; then
8739 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8740 else
8741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8742 for as_dir in $PATH
8744 IFS=$as_save_IFS
8745 test -z "$as_dir" && as_dir=.
8746 for ac_exec_ext in '' $ac_executable_extensions; do
8747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8748 ac_cv_prog_LIPO="${ncn_progname}"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8750 break 2
8752 done
8753 done
8754 IFS=$as_save_IFS
8758 LIPO=$ac_cv_prog_LIPO
8759 if test -n "$LIPO"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8761 $as_echo "$LIPO" >&6; }
8762 else
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8769 test -n "$ac_cv_prog_LIPO" && break
8770 done
8772 if test -z "$ac_cv_prog_LIPO" ; then
8773 set dummy lipo
8774 if test $build = $host ; then
8775 LIPO="$2"
8776 else
8777 LIPO="${ncn_tool_prefix}$2"
8783 if test -n "$NM"; then
8784 ac_cv_prog_NM=$NM
8785 elif test -n "$ac_cv_prog_NM"; then
8786 NM=$ac_cv_prog_NM
8789 if test -n "$ac_cv_prog_NM"; then
8790 for ncn_progname in nm; do
8791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8792 set dummy ${ncn_progname}; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if test "${ac_cv_prog_NM+set}" = set; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 if test -n "$NM"; then
8799 ac_cv_prog_NM="$NM" # Let the user override the test.
8800 else
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8804 IFS=$as_save_IFS
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8808 ac_cv_prog_NM="${ncn_progname}"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 break 2
8812 done
8813 done
8814 IFS=$as_save_IFS
8818 NM=$ac_cv_prog_NM
8819 if test -n "$NM"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8821 $as_echo "$NM" >&6; }
8822 else
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8828 done
8831 for ncn_progname in nm; do
8832 if test -n "$ncn_tool_prefix"; then
8833 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8834 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if test "${ac_cv_prog_NM+set}" = set; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 if test -n "$NM"; then
8841 ac_cv_prog_NM="$NM" # Let the user override the test.
8842 else
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 for as_dir in $PATH
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8850 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 break 2
8854 done
8855 done
8856 IFS=$as_save_IFS
8860 NM=$ac_cv_prog_NM
8861 if test -n "$NM"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8863 $as_echo "$NM" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8871 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8873 set dummy ${ncn_progname}; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if test "${ac_cv_prog_NM+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 if test -n "$NM"; then
8880 ac_cv_prog_NM="$NM" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_NM="${ncn_progname}"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8893 done
8894 done
8895 IFS=$as_save_IFS
8899 NM=$ac_cv_prog_NM
8900 if test -n "$NM"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8902 $as_echo "$NM" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8910 test -n "$ac_cv_prog_NM" && break
8911 done
8913 if test -z "$ac_cv_prog_NM" ; then
8914 set dummy nm
8915 if test $build = $host ; then
8916 NM="$2"
8917 else
8918 NM="${ncn_tool_prefix}$2"
8924 if test -n "$RANLIB"; then
8925 ac_cv_prog_RANLIB=$RANLIB
8926 elif test -n "$ac_cv_prog_RANLIB"; then
8927 RANLIB=$ac_cv_prog_RANLIB
8930 if test -n "$ac_cv_prog_RANLIB"; then
8931 for ncn_progname in ranlib; do
8932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8933 set dummy ${ncn_progname}; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 if test -n "$RANLIB"; then
8940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8941 else
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949 ac_cv_prog_RANLIB="${ncn_progname}"
8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 break 2
8953 done
8954 done
8955 IFS=$as_save_IFS
8959 RANLIB=$ac_cv_prog_RANLIB
8960 if test -n "$RANLIB"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8962 $as_echo "$RANLIB" >&6; }
8963 else
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8969 done
8972 for ncn_progname in ranlib; do
8973 if test -n "$ncn_tool_prefix"; then
8974 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8975 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 if test -n "$RANLIB"; then
8982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8987 IFS=$as_save_IFS
8988 test -z "$as_dir" && as_dir=.
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8991 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 break 2
8995 done
8996 done
8997 IFS=$as_save_IFS
9001 RANLIB=$ac_cv_prog_RANLIB
9002 if test -n "$RANLIB"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9004 $as_echo "$RANLIB" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9012 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9014 set dummy ${ncn_progname}; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 if test -n "$RANLIB"; then
9021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9022 else
9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 for as_dir in $PATH
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9030 ac_cv_prog_RANLIB="${ncn_progname}"
9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9034 done
9035 done
9036 IFS=$as_save_IFS
9040 RANLIB=$ac_cv_prog_RANLIB
9041 if test -n "$RANLIB"; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9043 $as_echo "$RANLIB" >&6; }
9044 else
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9051 test -n "$ac_cv_prog_RANLIB" && break
9052 done
9054 if test -z "$ac_cv_prog_RANLIB" ; then
9055 RANLIB="true"
9060 if test -n "$STRIP"; then
9061 ac_cv_prog_STRIP=$STRIP
9062 elif test -n "$ac_cv_prog_STRIP"; then
9063 STRIP=$ac_cv_prog_STRIP
9066 if test -n "$ac_cv_prog_STRIP"; then
9067 for ncn_progname in strip; do
9068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9069 set dummy ${ncn_progname}; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if test "${ac_cv_prog_STRIP+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 if test -n "$STRIP"; then
9076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9077 else
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_STRIP="${ncn_progname}"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9089 done
9090 done
9091 IFS=$as_save_IFS
9095 STRIP=$ac_cv_prog_STRIP
9096 if test -n "$STRIP"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9098 $as_echo "$STRIP" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9105 done
9108 for ncn_progname in strip; do
9109 if test -n "$ncn_tool_prefix"; then
9110 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9111 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if test "${ac_cv_prog_STRIP+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 if test -n "$STRIP"; then
9118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9131 done
9132 done
9133 IFS=$as_save_IFS
9137 STRIP=$ac_cv_prog_STRIP
9138 if test -n "$STRIP"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9140 $as_echo "$STRIP" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9148 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150 set dummy ${ncn_progname}; ac_word=$2
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 $as_echo_n "checking for $ac_word... " >&6; }
9153 if test "${ac_cv_prog_STRIP+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 if test -n "$STRIP"; then
9157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9158 else
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9166 ac_cv_prog_STRIP="${ncn_progname}"
9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168 break 2
9170 done
9171 done
9172 IFS=$as_save_IFS
9176 STRIP=$ac_cv_prog_STRIP
9177 if test -n "$STRIP"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9179 $as_echo "$STRIP" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9187 test -n "$ac_cv_prog_STRIP" && break
9188 done
9190 if test -z "$ac_cv_prog_STRIP" ; then
9191 STRIP="true"
9196 if test -n "$WINDRES"; then
9197 ac_cv_prog_WINDRES=$WINDRES
9198 elif test -n "$ac_cv_prog_WINDRES"; then
9199 WINDRES=$ac_cv_prog_WINDRES
9202 if test -n "$ac_cv_prog_WINDRES"; then
9203 for ncn_progname in windres; do
9204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9205 set dummy ${ncn_progname}; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 if test -n "$WINDRES"; then
9212 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9213 else
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 for as_dir in $PATH
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221 ac_cv_prog_WINDRES="${ncn_progname}"
9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 break 2
9225 done
9226 done
9227 IFS=$as_save_IFS
9231 WINDRES=$ac_cv_prog_WINDRES
9232 if test -n "$WINDRES"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9234 $as_echo "$WINDRES" >&6; }
9235 else
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 $as_echo "no" >&6; }
9241 done
9244 for ncn_progname in windres; do
9245 if test -n "$ncn_tool_prefix"; then
9246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 if test -n "$WINDRES"; then
9254 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9263 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9267 done
9268 done
9269 IFS=$as_save_IFS
9273 WINDRES=$ac_cv_prog_WINDRES
9274 if test -n "$WINDRES"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9276 $as_echo "$WINDRES" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9284 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9286 set dummy ${ncn_progname}; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9290 $as_echo_n "(cached) " >&6
9291 else
9292 if test -n "$WINDRES"; then
9293 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9294 else
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 for as_dir in $PATH
9298 IFS=$as_save_IFS
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9302 ac_cv_prog_WINDRES="${ncn_progname}"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 break 2
9306 done
9307 done
9308 IFS=$as_save_IFS
9312 WINDRES=$ac_cv_prog_WINDRES
9313 if test -n "$WINDRES"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9315 $as_echo "$WINDRES" >&6; }
9316 else
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9323 test -n "$ac_cv_prog_WINDRES" && break
9324 done
9326 if test -z "$ac_cv_prog_WINDRES" ; then
9327 set dummy windres
9328 if test $build = $host ; then
9329 WINDRES="$2"
9330 else
9331 WINDRES="${ncn_tool_prefix}$2"
9337 if test -n "$WINDMC"; then
9338 ac_cv_prog_WINDMC=$WINDMC
9339 elif test -n "$ac_cv_prog_WINDMC"; then
9340 WINDMC=$ac_cv_prog_WINDMC
9343 if test -n "$ac_cv_prog_WINDMC"; then
9344 for ncn_progname in windmc; do
9345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9346 set dummy ${ncn_progname}; ac_word=$2
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 $as_echo_n "checking for $ac_word... " >&6; }
9349 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 if test -n "$WINDMC"; then
9353 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9354 else
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $PATH
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9362 ac_cv_prog_WINDMC="${ncn_progname}"
9363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9364 break 2
9366 done
9367 done
9368 IFS=$as_save_IFS
9372 WINDMC=$ac_cv_prog_WINDMC
9373 if test -n "$WINDMC"; then
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9375 $as_echo "$WINDMC" >&6; }
9376 else
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378 $as_echo "no" >&6; }
9382 done
9385 for ncn_progname in windmc; do
9386 if test -n "$ncn_tool_prefix"; then
9387 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9388 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 if test -n "$WINDMC"; then
9395 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9396 else
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9400 IFS=$as_save_IFS
9401 test -z "$as_dir" && as_dir=.
9402 for ac_exec_ext in '' $ac_executable_extensions; do
9403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9404 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406 break 2
9408 done
9409 done
9410 IFS=$as_save_IFS
9414 WINDMC=$ac_cv_prog_WINDMC
9415 if test -n "$WINDMC"; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9417 $as_echo "$WINDMC" >&6; }
9418 else
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9425 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9427 set dummy ${ncn_progname}; ac_word=$2
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 $as_echo_n "checking for $ac_word... " >&6; }
9430 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 if test -n "$WINDMC"; then
9434 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9435 else
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9439 IFS=$as_save_IFS
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443 ac_cv_prog_WINDMC="${ncn_progname}"
9444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 break 2
9447 done
9448 done
9449 IFS=$as_save_IFS
9453 WINDMC=$ac_cv_prog_WINDMC
9454 if test -n "$WINDMC"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9456 $as_echo "$WINDMC" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9464 test -n "$ac_cv_prog_WINDMC" && break
9465 done
9467 if test -z "$ac_cv_prog_WINDMC" ; then
9468 set dummy windmc
9469 if test $build = $host ; then
9470 WINDMC="$2"
9471 else
9472 WINDMC="${ncn_tool_prefix}$2"
9478 if test -n "$OBJCOPY"; then
9479 ac_cv_prog_OBJCOPY=$OBJCOPY
9480 elif test -n "$ac_cv_prog_OBJCOPY"; then
9481 OBJCOPY=$ac_cv_prog_OBJCOPY
9484 if test -n "$ac_cv_prog_OBJCOPY"; then
9485 for ncn_progname in objcopy; do
9486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9487 set dummy ${ncn_progname}; ac_word=$2
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9489 $as_echo_n "checking for $ac_word... " >&6; }
9490 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 if test -n "$OBJCOPY"; then
9494 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9495 else
9496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9497 for as_dir in $PATH
9499 IFS=$as_save_IFS
9500 test -z "$as_dir" && as_dir=.
9501 for ac_exec_ext in '' $ac_executable_extensions; do
9502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9503 ac_cv_prog_OBJCOPY="${ncn_progname}"
9504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9505 break 2
9507 done
9508 done
9509 IFS=$as_save_IFS
9513 OBJCOPY=$ac_cv_prog_OBJCOPY
9514 if test -n "$OBJCOPY"; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9516 $as_echo "$OBJCOPY" >&6; }
9517 else
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9523 done
9526 for ncn_progname in objcopy; do
9527 if test -n "$ncn_tool_prefix"; then
9528 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9529 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 if test -n "$OBJCOPY"; then
9536 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9537 else
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9545 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9549 done
9550 done
9551 IFS=$as_save_IFS
9555 OBJCOPY=$ac_cv_prog_OBJCOPY
9556 if test -n "$OBJCOPY"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9558 $as_echo "$OBJCOPY" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9566 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9568 set dummy ${ncn_progname}; ac_word=$2
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9570 $as_echo_n "checking for $ac_word... " >&6; }
9571 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 if test -n "$OBJCOPY"; then
9575 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9576 else
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9578 for as_dir in $PATH
9580 IFS=$as_save_IFS
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_prog_OBJCOPY="${ncn_progname}"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9586 break 2
9588 done
9589 done
9590 IFS=$as_save_IFS
9594 OBJCOPY=$ac_cv_prog_OBJCOPY
9595 if test -n "$OBJCOPY"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9597 $as_echo "$OBJCOPY" >&6; }
9598 else
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9605 test -n "$ac_cv_prog_OBJCOPY" && break
9606 done
9608 if test -z "$ac_cv_prog_OBJCOPY" ; then
9609 set dummy objcopy
9610 if test $build = $host ; then
9611 OBJCOPY="$2"
9612 else
9613 OBJCOPY="${ncn_tool_prefix}$2"
9619 if test -n "$OBJDUMP"; then
9620 ac_cv_prog_OBJDUMP=$OBJDUMP
9621 elif test -n "$ac_cv_prog_OBJDUMP"; then
9622 OBJDUMP=$ac_cv_prog_OBJDUMP
9625 if test -n "$ac_cv_prog_OBJDUMP"; then
9626 for ncn_progname in objdump; do
9627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9628 set dummy ${ncn_progname}; ac_word=$2
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630 $as_echo_n "checking for $ac_word... " >&6; }
9631 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 if test -n "$OBJDUMP"; then
9635 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9636 else
9637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9638 for as_dir in $PATH
9640 IFS=$as_save_IFS
9641 test -z "$as_dir" && as_dir=.
9642 for ac_exec_ext in '' $ac_executable_extensions; do
9643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9644 ac_cv_prog_OBJDUMP="${ncn_progname}"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9646 break 2
9648 done
9649 done
9650 IFS=$as_save_IFS
9654 OBJDUMP=$ac_cv_prog_OBJDUMP
9655 if test -n "$OBJDUMP"; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9657 $as_echo "$OBJDUMP" >&6; }
9658 else
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9664 done
9667 for ncn_progname in objdump; do
9668 if test -n "$ncn_tool_prefix"; then
9669 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9670 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 if test -n "$OBJDUMP"; then
9677 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9678 else
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9686 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 break 2
9690 done
9691 done
9692 IFS=$as_save_IFS
9696 OBJDUMP=$ac_cv_prog_OBJDUMP
9697 if test -n "$OBJDUMP"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9699 $as_echo "$OBJDUMP" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9707 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9709 set dummy ${ncn_progname}; ac_word=$2
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9711 $as_echo_n "checking for $ac_word... " >&6; }
9712 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 if test -n "$OBJDUMP"; then
9716 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9717 else
9718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9719 for as_dir in $PATH
9721 IFS=$as_save_IFS
9722 test -z "$as_dir" && as_dir=.
9723 for ac_exec_ext in '' $ac_executable_extensions; do
9724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9725 ac_cv_prog_OBJDUMP="${ncn_progname}"
9726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 break 2
9729 done
9730 done
9731 IFS=$as_save_IFS
9735 OBJDUMP=$ac_cv_prog_OBJDUMP
9736 if test -n "$OBJDUMP"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9738 $as_echo "$OBJDUMP" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9746 test -n "$ac_cv_prog_OBJDUMP" && break
9747 done
9749 if test -z "$ac_cv_prog_OBJDUMP" ; then
9750 set dummy objdump
9751 if test $build = $host ; then
9752 OBJDUMP="$2"
9753 else
9754 OBJDUMP="${ncn_tool_prefix}$2"
9760 if test -n "$READELF"; then
9761 ac_cv_prog_READELF=$READELF
9762 elif test -n "$ac_cv_prog_READELF"; then
9763 READELF=$ac_cv_prog_READELF
9766 if test -n "$ac_cv_prog_READELF"; then
9767 for ncn_progname in readelf; do
9768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9769 set dummy ${ncn_progname}; ac_word=$2
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771 $as_echo_n "checking for $ac_word... " >&6; }
9772 if test "${ac_cv_prog_READELF+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 if test -n "$READELF"; then
9776 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9777 else
9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779 for as_dir in $PATH
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9785 ac_cv_prog_READELF="${ncn_progname}"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9789 done
9790 done
9791 IFS=$as_save_IFS
9795 READELF=$ac_cv_prog_READELF
9796 if test -n "$READELF"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9798 $as_echo "$READELF" >&6; }
9799 else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; }
9805 done
9808 for ncn_progname in readelf; do
9809 if test -n "$ncn_tool_prefix"; then
9810 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9811 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if test "${ac_cv_prog_READELF+set}" = set; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 if test -n "$READELF"; then
9818 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9819 else
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9831 done
9832 done
9833 IFS=$as_save_IFS
9837 READELF=$ac_cv_prog_READELF
9838 if test -n "$READELF"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9840 $as_echo "$READELF" >&6; }
9841 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9848 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
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_READELF+set}" = set; then :
9854 $as_echo_n "(cached) " >&6
9855 else
9856 if test -n "$READELF"; then
9857 ac_cv_prog_READELF="$READELF" # 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_READELF="${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 READELF=$ac_cv_prog_READELF
9877 if test -n "$READELF"; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9879 $as_echo "$READELF" >&6; }
9880 else
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9887 test -n "$ac_cv_prog_READELF" && break
9888 done
9890 if test -z "$ac_cv_prog_READELF" ; then
9891 set dummy readelf
9892 if test $build = $host ; then
9893 READELF="$2"
9894 else
9895 READELF="${ncn_tool_prefix}$2"
9904 # Target tools.
9906 # Check whether --with-build-time-tools was given.
9907 if test "${with_build_time_tools+set}" = set; then :
9908 withval=$with_build_time_tools; case x"$withval" in
9909 x/*) ;;
9911 with_build_time_tools=
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9913 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9915 esac
9916 else
9917 with_build_time_tools=
9923 if test -n "$CC_FOR_TARGET"; then
9924 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9925 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9926 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9929 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9930 for ncn_progname in cc gcc; do
9931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9932 set dummy ${ncn_progname}; ac_word=$2
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934 $as_echo_n "checking for $ac_word... " >&6; }
9935 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 if test -n "$CC_FOR_TARGET"; then
9939 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9940 else
9941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942 for as_dir in $PATH
9944 IFS=$as_save_IFS
9945 test -z "$as_dir" && as_dir=.
9946 for ac_exec_ext in '' $ac_executable_extensions; do
9947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9948 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 break 2
9952 done
9953 done
9954 IFS=$as_save_IFS
9958 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9959 if test -n "$CC_FOR_TARGET"; then
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9961 $as_echo "$CC_FOR_TARGET" >&6; }
9962 else
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9968 done
9971 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9972 for ncn_progname in cc gcc; do
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9974 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9975 if test -x $with_build_time_tools/${ncn_progname}; then
9976 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9978 $as_echo "yes" >&6; }
9979 break
9980 else
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9982 $as_echo "no" >&6; }
9984 done
9987 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9988 for ncn_progname in cc gcc; do
9989 if test -n "$ncn_target_tool_prefix"; then
9990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9991 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 if test -n "$CC_FOR_TARGET"; then
9998 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9999 else
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10007 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 break 2
10011 done
10012 done
10013 IFS=$as_save_IFS
10017 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10018 if test -n "$CC_FOR_TARGET"; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10020 $as_echo "$CC_FOR_TARGET" >&6; }
10021 else
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023 $as_echo "no" >&6; }
10028 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10030 set dummy ${ncn_progname}; ac_word=$2
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10032 $as_echo_n "checking for $ac_word... " >&6; }
10033 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10034 $as_echo_n "(cached) " >&6
10035 else
10036 if test -n "$CC_FOR_TARGET"; then
10037 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10038 else
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10042 IFS=$as_save_IFS
10043 test -z "$as_dir" && as_dir=.
10044 for ac_exec_ext in '' $ac_executable_extensions; do
10045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10046 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10048 break 2
10050 done
10051 done
10052 IFS=$as_save_IFS
10056 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10057 if test -n "$CC_FOR_TARGET"; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10059 $as_echo "$CC_FOR_TARGET" >&6; }
10060 else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10067 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10068 done
10071 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10072 set dummy cc gcc
10073 if test $build = $target ; then
10074 CC_FOR_TARGET="$2"
10075 else
10076 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10078 else
10079 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10084 if test -n "$CXX_FOR_TARGET"; then
10085 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10086 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10087 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10090 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10091 for ncn_progname in c++ g++ cxx gxx; do
10092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10093 set dummy ${ncn_progname}; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 if test -n "$CXX_FOR_TARGET"; then
10100 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10101 else
10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 break 2
10113 done
10114 done
10115 IFS=$as_save_IFS
10119 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10120 if test -n "$CXX_FOR_TARGET"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10122 $as_echo "$CXX_FOR_TARGET" >&6; }
10123 else
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10129 done
10132 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10133 for ncn_progname in c++ g++ cxx gxx; do
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10135 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10136 if test -x $with_build_time_tools/${ncn_progname}; then
10137 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10139 $as_echo "yes" >&6; }
10140 break
10141 else
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10145 done
10148 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10149 for ncn_progname in c++ g++ cxx gxx; do
10150 if test -n "$ncn_target_tool_prefix"; then
10151 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10152 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10154 $as_echo_n "checking for $ac_word... " >&6; }
10155 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 if test -n "$CXX_FOR_TARGET"; then
10159 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10160 else
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10164 IFS=$as_save_IFS
10165 test -z "$as_dir" && as_dir=.
10166 for ac_exec_ext in '' $ac_executable_extensions; do
10167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10168 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170 break 2
10172 done
10173 done
10174 IFS=$as_save_IFS
10178 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10179 if test -n "$CXX_FOR_TARGET"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10181 $as_echo "$CXX_FOR_TARGET" >&6; }
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10189 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10191 set dummy ${ncn_progname}; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 if test -n "$CXX_FOR_TARGET"; then
10198 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10199 else
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10203 IFS=$as_save_IFS
10204 test -z "$as_dir" && as_dir=.
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10207 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10209 break 2
10211 done
10212 done
10213 IFS=$as_save_IFS
10217 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10218 if test -n "$CXX_FOR_TARGET"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10220 $as_echo "$CXX_FOR_TARGET" >&6; }
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10228 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10229 done
10232 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10233 set dummy c++ g++ cxx gxx
10234 if test $build = $target ; then
10235 CXX_FOR_TARGET="$2"
10236 else
10237 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10239 else
10240 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10245 if test -n "$GCC_FOR_TARGET"; then
10246 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10247 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10248 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10251 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10252 for ncn_progname in gcc; do
10253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10254 set dummy ${ncn_progname}; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 if test -n "$GCC_FOR_TARGET"; then
10261 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10262 else
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10276 IFS=$as_save_IFS
10280 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10281 if test -n "$GCC_FOR_TARGET"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10283 $as_echo "$GCC_FOR_TARGET" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10290 done
10293 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10294 for ncn_progname in gcc; do
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10296 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10297 if test -x $with_build_time_tools/${ncn_progname}; then
10298 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10300 $as_echo "yes" >&6; }
10301 break
10302 else
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10306 done
10309 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10310 for ncn_progname in gcc; do
10311 if test -n "$ncn_target_tool_prefix"; then
10312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10313 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 if test -n "$GCC_FOR_TARGET"; then
10320 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10321 else
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10329 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10333 done
10334 done
10335 IFS=$as_save_IFS
10339 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10340 if test -n "$GCC_FOR_TARGET"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10342 $as_echo "$GCC_FOR_TARGET" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10350 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10352 set dummy ${ncn_progname}; ac_word=$2
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354 $as_echo_n "checking for $ac_word... " >&6; }
10355 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 if test -n "$GCC_FOR_TARGET"; then
10359 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10360 else
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in $PATH
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10368 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10372 done
10373 done
10374 IFS=$as_save_IFS
10378 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10379 if test -n "$GCC_FOR_TARGET"; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10381 $as_echo "$GCC_FOR_TARGET" >&6; }
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10389 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10390 done
10393 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10394 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10395 else
10396 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10401 if test -n "$GCJ_FOR_TARGET"; then
10402 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10403 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10404 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10407 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10408 for ncn_progname in gcj; do
10409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10410 set dummy ${ncn_progname}; ac_word=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10416 if test -n "$GCJ_FOR_TARGET"; then
10417 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10418 else
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10430 done
10431 done
10432 IFS=$as_save_IFS
10436 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10437 if test -n "$GCJ_FOR_TARGET"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10439 $as_echo "$GCJ_FOR_TARGET" >&6; }
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10446 done
10449 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10450 for ncn_progname in gcj; do
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10452 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10453 if test -x $with_build_time_tools/${ncn_progname}; then
10454 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10456 $as_echo "yes" >&6; }
10457 break
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10462 done
10465 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10466 for ncn_progname in gcj; do
10467 if test -n "$ncn_target_tool_prefix"; then
10468 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10469 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 if test -n "$GCJ_FOR_TARGET"; then
10476 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10477 else
10478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10479 for as_dir in $PATH
10481 IFS=$as_save_IFS
10482 test -z "$as_dir" && as_dir=.
10483 for ac_exec_ext in '' $ac_executable_extensions; do
10484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10485 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10487 break 2
10489 done
10490 done
10491 IFS=$as_save_IFS
10495 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10496 if test -n "$GCJ_FOR_TARGET"; then
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10498 $as_echo "$GCJ_FOR_TARGET" >&6; }
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501 $as_echo "no" >&6; }
10506 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10508 set dummy ${ncn_progname}; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10512 $as_echo_n "(cached) " >&6
10513 else
10514 if test -n "$GCJ_FOR_TARGET"; then
10515 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10516 else
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10520 IFS=$as_save_IFS
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10524 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 break 2
10528 done
10529 done
10530 IFS=$as_save_IFS
10534 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10535 if test -n "$GCJ_FOR_TARGET"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10537 $as_echo "$GCJ_FOR_TARGET" >&6; }
10538 else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10545 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10546 done
10549 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10550 set dummy gcj
10551 if test $build = $target ; then
10552 GCJ_FOR_TARGET="$2"
10553 else
10554 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10556 else
10557 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10562 if test -n "$GFORTRAN_FOR_TARGET"; then
10563 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10564 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10565 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10568 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10569 for ncn_progname in gfortran; do
10570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10571 set dummy ${ncn_progname}; ac_word=$2
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573 $as_echo_n "checking for $ac_word... " >&6; }
10574 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 if test -n "$GFORTRAN_FOR_TARGET"; then
10578 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10579 else
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10587 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10591 done
10592 done
10593 IFS=$as_save_IFS
10597 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10598 if test -n "$GFORTRAN_FOR_TARGET"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10600 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603 $as_echo "no" >&6; }
10607 done
10610 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10611 for ncn_progname in gfortran; do
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10613 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10614 if test -x $with_build_time_tools/${ncn_progname}; then
10615 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10617 $as_echo "yes" >&6; }
10618 break
10619 else
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10623 done
10626 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10627 for ncn_progname in gfortran; do
10628 if test -n "$ncn_target_tool_prefix"; then
10629 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10630 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 $as_echo_n "checking for $ac_word... " >&6; }
10633 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 if test -n "$GFORTRAN_FOR_TARGET"; then
10637 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10638 else
10639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640 for as_dir in $PATH
10642 IFS=$as_save_IFS
10643 test -z "$as_dir" && as_dir=.
10644 for ac_exec_ext in '' $ac_executable_extensions; do
10645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10646 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 break 2
10650 done
10651 done
10652 IFS=$as_save_IFS
10656 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10657 if test -n "$GFORTRAN_FOR_TARGET"; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10659 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10667 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10669 set dummy ${ncn_progname}; ac_word=$2
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671 $as_echo_n "checking for $ac_word... " >&6; }
10672 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 if test -n "$GFORTRAN_FOR_TARGET"; then
10676 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10677 else
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10689 done
10690 done
10691 IFS=$as_save_IFS
10695 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10696 if test -n "$GFORTRAN_FOR_TARGET"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10698 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10706 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10707 done
10710 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10711 set dummy gfortran
10712 if test $build = $target ; then
10713 GFORTRAN_FOR_TARGET="$2"
10714 else
10715 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10717 else
10718 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10723 if test -n "$GOC_FOR_TARGET"; then
10724 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10725 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10726 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10729 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10730 for ncn_progname in gccgo; do
10731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10732 set dummy ${ncn_progname}; ac_word=$2
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10734 $as_echo_n "checking for $ac_word... " >&6; }
10735 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 if test -n "$GOC_FOR_TARGET"; then
10739 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10740 else
10741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10744 IFS=$as_save_IFS
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10750 break 2
10752 done
10753 done
10754 IFS=$as_save_IFS
10758 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10759 if test -n "$GOC_FOR_TARGET"; then
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10761 $as_echo "$GOC_FOR_TARGET" >&6; }
10762 else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10768 done
10771 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10772 for ncn_progname in gccgo; do
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10774 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10775 if test -x $with_build_time_tools/${ncn_progname}; then
10776 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10778 $as_echo "yes" >&6; }
10779 break
10780 else
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10782 $as_echo "no" >&6; }
10784 done
10787 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10788 for ncn_progname in gccgo; do
10789 if test -n "$ncn_target_tool_prefix"; then
10790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10791 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793 $as_echo_n "checking for $ac_word... " >&6; }
10794 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 if test -n "$GOC_FOR_TARGET"; then
10798 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10799 else
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10807 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10809 break 2
10811 done
10812 done
10813 IFS=$as_save_IFS
10817 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10818 if test -n "$GOC_FOR_TARGET"; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10820 $as_echo "$GOC_FOR_TARGET" >&6; }
10821 else
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10828 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10830 set dummy ${ncn_progname}; ac_word=$2
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832 $as_echo_n "checking for $ac_word... " >&6; }
10833 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 if test -n "$GOC_FOR_TARGET"; then
10837 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10838 else
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10850 done
10851 done
10852 IFS=$as_save_IFS
10856 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10857 if test -n "$GOC_FOR_TARGET"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10859 $as_echo "$GOC_FOR_TARGET" >&6; }
10860 else
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10867 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10868 done
10871 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10872 set dummy gccgo
10873 if test $build = $target ; then
10874 GOC_FOR_TARGET="$2"
10875 else
10876 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10878 else
10879 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10884 if test -n "$GUPC_FOR_TARGET"; then
10885 ac_cv_prog_GUPC_FOR_TARGET=$GUPC_FOR_TARGET
10886 elif test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10887 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10890 if test -n "$ac_cv_prog_GUPC_FOR_TARGET"; then
10891 for ncn_progname in gupc; do
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10893 set dummy ${ncn_progname}; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895 $as_echo_n "checking for $ac_word... " >&6; }
10896 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 if test -n "$GUPC_FOR_TARGET"; then
10900 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10901 else
10902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10909 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10913 done
10914 done
10915 IFS=$as_save_IFS
10919 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10920 if test -n "$GUPC_FOR_TARGET"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10922 $as_echo "$GUPC_FOR_TARGET" >&6; }
10923 else
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925 $as_echo "no" >&6; }
10929 done
10932 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10933 for ncn_progname in gupc; do
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10935 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10936 if test -x $with_build_time_tools/${ncn_progname}; then
10937 ac_cv_prog_GUPC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10939 $as_echo "yes" >&6; }
10940 break
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10945 done
10948 if test -z "$ac_cv_prog_GUPC_FOR_TARGET"; then
10949 for ncn_progname in gupc; do
10950 if test -n "$ncn_target_tool_prefix"; then
10951 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10952 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10954 $as_echo_n "checking for $ac_word... " >&6; }
10955 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 if test -n "$GUPC_FOR_TARGET"; then
10959 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10960 else
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10964 IFS=$as_save_IFS
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10968 ac_cv_prog_GUPC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10970 break 2
10972 done
10973 done
10974 IFS=$as_save_IFS
10978 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
10979 if test -n "$GUPC_FOR_TARGET"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
10981 $as_echo "$GUPC_FOR_TARGET" >&6; }
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10989 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" && test $build = $target ; then
10990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10991 set dummy ${ncn_progname}; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993 $as_echo_n "checking for $ac_word... " >&6; }
10994 if test "${ac_cv_prog_GUPC_FOR_TARGET+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 if test -n "$GUPC_FOR_TARGET"; then
10998 ac_cv_prog_GUPC_FOR_TARGET="$GUPC_FOR_TARGET" # Let the user override the test.
10999 else
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_prog_GUPC_FOR_TARGET="${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11009 break 2
11011 done
11012 done
11013 IFS=$as_save_IFS
11017 GUPC_FOR_TARGET=$ac_cv_prog_GUPC_FOR_TARGET
11018 if test -n "$GUPC_FOR_TARGET"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUPC_FOR_TARGET" >&5
11020 $as_echo "$GUPC_FOR_TARGET" >&6; }
11021 else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; }
11028 test -n "$ac_cv_prog_GUPC_FOR_TARGET" && break
11029 done
11032 if test -z "$ac_cv_prog_GUPC_FOR_TARGET" ; then
11033 set dummy gupc
11034 if test $build = $target ; then
11035 GUPC_FOR_TARGET="$2"
11036 else
11037 GUPC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11039 else
11040 GUPC_FOR_TARGET="$ac_cv_prog_GUPC_FOR_TARGET"
11045 cat > conftest.c << \EOF
11046 #ifdef __GNUC__
11047 gcc_yay;
11048 #endif
11050 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11051 have_gcc_for_target=yes
11052 else
11053 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11054 have_gcc_for_target=no
11056 rm conftest.c
11061 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11062 if test -n "$with_build_time_tools"; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11064 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
11065 if test -x $with_build_time_tools/ar; then
11066 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11067 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11069 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11074 elif test $build != $host && test $have_gcc_for_target = yes; then
11075 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11076 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11077 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11080 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11081 # Extract the first word of "ar", so it can be a program name with args.
11082 set dummy ar; ac_word=$2
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 $as_echo_n "checking for $ac_word... " >&6; }
11085 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 case $AR_FOR_TARGET in
11089 [\\/]* | ?:[\\/]*)
11090 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $gcc_cv_tool_dirs
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 break 2
11104 done
11105 done
11106 IFS=$as_save_IFS
11109 esac
11111 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11112 if test -n "$AR_FOR_TARGET"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11114 $as_echo "$AR_FOR_TARGET" >&6; }
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11122 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11125 if test -n "$AR_FOR_TARGET"; then
11126 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11127 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11128 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11131 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11132 for ncn_progname in ar; do
11133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11134 set dummy ${ncn_progname}; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 if test -n "$AR_FOR_TARGET"; then
11141 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11142 else
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11146 IFS=$as_save_IFS
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11150 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11152 break 2
11154 done
11155 done
11156 IFS=$as_save_IFS
11160 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11161 if test -n "$AR_FOR_TARGET"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11163 $as_echo "$AR_FOR_TARGET" >&6; }
11164 else
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11166 $as_echo "no" >&6; }
11170 done
11173 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11174 for ncn_progname in ar; do
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11176 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11177 if test -x $with_build_time_tools/${ncn_progname}; then
11178 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11180 $as_echo "yes" >&6; }
11181 break
11182 else
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184 $as_echo "no" >&6; }
11186 done
11189 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11190 for ncn_progname in ar; do
11191 if test -n "$ncn_target_tool_prefix"; then
11192 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11193 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 if test -n "$AR_FOR_TARGET"; then
11200 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11201 else
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203 for as_dir in $PATH
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11209 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11211 break 2
11213 done
11214 done
11215 IFS=$as_save_IFS
11219 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11220 if test -n "$AR_FOR_TARGET"; then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11222 $as_echo "$AR_FOR_TARGET" >&6; }
11223 else
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225 $as_echo "no" >&6; }
11230 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11232 set dummy ${ncn_progname}; ac_word=$2
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11234 $as_echo_n "checking for $ac_word... " >&6; }
11235 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11236 $as_echo_n "(cached) " >&6
11237 else
11238 if test -n "$AR_FOR_TARGET"; then
11239 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11240 else
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH
11244 IFS=$as_save_IFS
11245 test -z "$as_dir" && as_dir=.
11246 for ac_exec_ext in '' $ac_executable_extensions; do
11247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11248 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11250 break 2
11252 done
11253 done
11254 IFS=$as_save_IFS
11258 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11259 if test -n "$AR_FOR_TARGET"; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11261 $as_echo "$AR_FOR_TARGET" >&6; }
11262 else
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264 $as_echo "no" >&6; }
11269 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11270 done
11273 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11274 set dummy ar
11275 if test $build = $target ; then
11276 AR_FOR_TARGET="$2"
11277 else
11278 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11280 else
11281 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11284 else
11285 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11291 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11292 if test -n "$with_build_time_tools"; then
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11294 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11295 if test -x $with_build_time_tools/as; then
11296 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11297 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11299 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11304 elif test $build != $host && test $have_gcc_for_target = yes; then
11305 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11306 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11307 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11310 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11311 # Extract the first word of "as", so it can be a program name with args.
11312 set dummy as; ac_word=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11317 else
11318 case $AS_FOR_TARGET in
11319 [\\/]* | ?:[\\/]*)
11320 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $gcc_cv_tool_dirs
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11330 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332 break 2
11334 done
11335 done
11336 IFS=$as_save_IFS
11339 esac
11341 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11342 if test -n "$AS_FOR_TARGET"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11344 $as_echo "$AS_FOR_TARGET" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11352 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11355 if test -n "$AS_FOR_TARGET"; then
11356 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11357 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11358 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11361 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11362 for ncn_progname in as; do
11363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11364 set dummy ${ncn_progname}; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366 $as_echo_n "checking for $ac_word... " >&6; }
11367 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 if test -n "$AS_FOR_TARGET"; then
11371 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11372 else
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11380 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11384 done
11385 done
11386 IFS=$as_save_IFS
11390 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11391 if test -n "$AS_FOR_TARGET"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11393 $as_echo "$AS_FOR_TARGET" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11400 done
11403 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11404 for ncn_progname in as; do
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11406 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11407 if test -x $with_build_time_tools/${ncn_progname}; then
11408 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410 $as_echo "yes" >&6; }
11411 break
11412 else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11416 done
11419 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11420 for ncn_progname in as; do
11421 if test -n "$ncn_target_tool_prefix"; then
11422 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11423 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; }
11426 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 if test -n "$AS_FOR_TARGET"; then
11430 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11431 else
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11439 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 break 2
11443 done
11444 done
11445 IFS=$as_save_IFS
11449 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11450 if test -n "$AS_FOR_TARGET"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11452 $as_echo "$AS_FOR_TARGET" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; }
11460 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11462 set dummy ${ncn_progname}; ac_word=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 if test -n "$AS_FOR_TARGET"; then
11469 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11470 else
11471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11474 IFS=$as_save_IFS
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
11477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11478 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 break 2
11482 done
11483 done
11484 IFS=$as_save_IFS
11488 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11489 if test -n "$AS_FOR_TARGET"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11491 $as_echo "$AS_FOR_TARGET" >&6; }
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494 $as_echo "no" >&6; }
11499 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11500 done
11503 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11504 set dummy as
11505 if test $build = $target ; then
11506 AS_FOR_TARGET="$2"
11507 else
11508 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11510 else
11511 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11514 else
11515 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11521 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11522 if test -n "$with_build_time_tools"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11524 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11525 if test -x $with_build_time_tools/dlltool; then
11526 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11527 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11529 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11534 elif test $build != $host && test $have_gcc_for_target = yes; then
11535 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11536 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11537 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11540 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11541 # Extract the first word of "dlltool", so it can be a program name with args.
11542 set dummy dlltool; ac_word=$2
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544 $as_echo_n "checking for $ac_word... " >&6; }
11545 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
11547 else
11548 case $DLLTOOL_FOR_TARGET in
11549 [\\/]* | ?:[\\/]*)
11550 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554 for as_dir in $gcc_cv_tool_dirs
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11560 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11564 done
11565 done
11566 IFS=$as_save_IFS
11569 esac
11571 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11572 if test -n "$DLLTOOL_FOR_TARGET"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11574 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11582 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11585 if test -n "$DLLTOOL_FOR_TARGET"; then
11586 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11587 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11588 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11591 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11592 for ncn_progname in dlltool; do
11593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11594 set dummy ${ncn_progname}; ac_word=$2
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11596 $as_echo_n "checking for $ac_word... " >&6; }
11597 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 if test -n "$DLLTOOL_FOR_TARGET"; then
11601 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11602 else
11603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11606 IFS=$as_save_IFS
11607 test -z "$as_dir" && as_dir=.
11608 for ac_exec_ext in '' $ac_executable_extensions; do
11609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11610 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11612 break 2
11614 done
11615 done
11616 IFS=$as_save_IFS
11620 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11621 if test -n "$DLLTOOL_FOR_TARGET"; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11623 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11630 done
11633 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11634 for ncn_progname in dlltool; do
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11636 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11637 if test -x $with_build_time_tools/${ncn_progname}; then
11638 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11640 $as_echo "yes" >&6; }
11641 break
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11646 done
11649 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11650 for ncn_progname in dlltool; do
11651 if test -n "$ncn_target_tool_prefix"; then
11652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11653 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 if test -n "$DLLTOOL_FOR_TARGET"; then
11660 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11661 else
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11669 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 break 2
11673 done
11674 done
11675 IFS=$as_save_IFS
11679 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11680 if test -n "$DLLTOOL_FOR_TARGET"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11682 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11690 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11692 set dummy ${ncn_progname}; ac_word=$2
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694 $as_echo_n "checking for $ac_word... " >&6; }
11695 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 if test -n "$DLLTOOL_FOR_TARGET"; then
11699 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11700 else
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11708 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710 break 2
11712 done
11713 done
11714 IFS=$as_save_IFS
11718 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11719 if test -n "$DLLTOOL_FOR_TARGET"; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11721 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11722 else
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11729 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11730 done
11733 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11734 set dummy dlltool
11735 if test $build = $target ; then
11736 DLLTOOL_FOR_TARGET="$2"
11737 else
11738 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11740 else
11741 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11744 else
11745 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11751 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11752 if test -n "$with_build_time_tools"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11754 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11755 if test -x $with_build_time_tools/ld; then
11756 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11757 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11759 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11760 else
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11764 elif test $build != $host && test $have_gcc_for_target = yes; then
11765 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11766 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11767 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11770 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11771 # Extract the first word of "ld", so it can be a program name with args.
11772 set dummy ld; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
11777 else
11778 case $LD_FOR_TARGET in
11779 [\\/]* | ?:[\\/]*)
11780 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $gcc_cv_tool_dirs
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11790 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792 break 2
11794 done
11795 done
11796 IFS=$as_save_IFS
11799 esac
11801 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11802 if test -n "$LD_FOR_TARGET"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11804 $as_echo "$LD_FOR_TARGET" >&6; }
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11812 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11815 if test -n "$LD_FOR_TARGET"; then
11816 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11817 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11818 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11821 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11822 for ncn_progname in ld; do
11823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11824 set dummy ${ncn_progname}; ac_word=$2
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11826 $as_echo_n "checking for $ac_word... " >&6; }
11827 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 if test -n "$LD_FOR_TARGET"; then
11831 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11832 else
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11844 done
11845 done
11846 IFS=$as_save_IFS
11850 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11851 if test -n "$LD_FOR_TARGET"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11853 $as_echo "$LD_FOR_TARGET" >&6; }
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11860 done
11863 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11864 for ncn_progname in ld; do
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11866 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11867 if test -x $with_build_time_tools/${ncn_progname}; then
11868 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870 $as_echo "yes" >&6; }
11871 break
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11876 done
11879 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11880 for ncn_progname in ld; do
11881 if test -n "$ncn_target_tool_prefix"; then
11882 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11883 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 if test -n "$LD_FOR_TARGET"; then
11890 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901 break 2
11903 done
11904 done
11905 IFS=$as_save_IFS
11909 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11910 if test -n "$LD_FOR_TARGET"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11912 $as_echo "$LD_FOR_TARGET" >&6; }
11913 else
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11920 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11922 set dummy ${ncn_progname}; ac_word=$2
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924 $as_echo_n "checking for $ac_word... " >&6; }
11925 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 if test -n "$LD_FOR_TARGET"; then
11929 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11930 else
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932 for as_dir in $PATH
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
11937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11938 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 break 2
11942 done
11943 done
11944 IFS=$as_save_IFS
11948 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11949 if test -n "$LD_FOR_TARGET"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11951 $as_echo "$LD_FOR_TARGET" >&6; }
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11959 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11960 done
11963 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11964 set dummy ld
11965 if test $build = $target ; then
11966 LD_FOR_TARGET="$2"
11967 else
11968 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11970 else
11971 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11974 else
11975 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11981 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11982 if test -n "$with_build_time_tools"; then
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11984 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11985 if test -x $with_build_time_tools/lipo; then
11986 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11987 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11989 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11994 elif test $build != $host && test $have_gcc_for_target = yes; then
11995 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11996 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11997 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12000 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12001 # Extract the first word of "lipo", so it can be a program name with args.
12002 set dummy lipo; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 case $LIPO_FOR_TARGET in
12009 [\\/]* | ?:[\\/]*)
12010 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $gcc_cv_tool_dirs
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12020 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 break 2
12024 done
12025 done
12026 IFS=$as_save_IFS
12029 esac
12031 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12032 if test -n "$LIPO_FOR_TARGET"; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12034 $as_echo "$LIPO_FOR_TARGET" >&6; }
12035 else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037 $as_echo "no" >&6; }
12042 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12045 if test -n "$LIPO_FOR_TARGET"; then
12046 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12047 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12048 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12051 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12052 for ncn_progname in lipo; do
12053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12054 set dummy ${ncn_progname}; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 if test -n "$LIPO_FOR_TARGET"; then
12061 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12062 else
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12070 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12074 done
12075 done
12076 IFS=$as_save_IFS
12080 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12081 if test -n "$LIPO_FOR_TARGET"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12083 $as_echo "$LIPO_FOR_TARGET" >&6; }
12084 else
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12090 done
12093 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12094 for ncn_progname in lipo; do
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12096 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12097 if test -x $with_build_time_tools/${ncn_progname}; then
12098 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100 $as_echo "yes" >&6; }
12101 break
12102 else
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12106 done
12109 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12110 for ncn_progname in lipo; do
12111 if test -n "$ncn_target_tool_prefix"; then
12112 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12113 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 if test -n "$LIPO_FOR_TARGET"; then
12120 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12121 else
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12129 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 break 2
12133 done
12134 done
12135 IFS=$as_save_IFS
12139 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12140 if test -n "$LIPO_FOR_TARGET"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12142 $as_echo "$LIPO_FOR_TARGET" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12150 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12152 set dummy ${ncn_progname}; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12154 $as_echo_n "checking for $ac_word... " >&6; }
12155 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 if test -n "$LIPO_FOR_TARGET"; then
12159 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12160 else
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12164 IFS=$as_save_IFS
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12168 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 break 2
12172 done
12173 done
12174 IFS=$as_save_IFS
12178 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12179 if test -n "$LIPO_FOR_TARGET"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12181 $as_echo "$LIPO_FOR_TARGET" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12189 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12190 done
12193 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12194 set dummy lipo
12195 if test $build = $target ; then
12196 LIPO_FOR_TARGET="$2"
12197 else
12198 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12200 else
12201 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12204 else
12205 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12211 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12212 if test -n "$with_build_time_tools"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12214 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12215 if test -x $with_build_time_tools/nm; then
12216 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12217 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12219 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12224 elif test $build != $host && test $have_gcc_for_target = yes; then
12225 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12226 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12227 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12230 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12231 # Extract the first word of "nm", so it can be a program name with args.
12232 set dummy nm; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 case $NM_FOR_TARGET in
12239 [\\/]* | ?:[\\/]*)
12240 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $gcc_cv_tool_dirs
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12250 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 break 2
12254 done
12255 done
12256 IFS=$as_save_IFS
12259 esac
12261 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12262 if test -n "$NM_FOR_TARGET"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12264 $as_echo "$NM_FOR_TARGET" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12272 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12275 if test -n "$NM_FOR_TARGET"; then
12276 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12277 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12278 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12281 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12282 for ncn_progname in nm; do
12283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12284 set dummy ${ncn_progname}; ac_word=$2
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12286 $as_echo_n "checking for $ac_word... " >&6; }
12287 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 if test -n "$NM_FOR_TARGET"; then
12291 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12292 else
12293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12294 for as_dir in $PATH
12296 IFS=$as_save_IFS
12297 test -z "$as_dir" && as_dir=.
12298 for ac_exec_ext in '' $ac_executable_extensions; do
12299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12300 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 break 2
12304 done
12305 done
12306 IFS=$as_save_IFS
12310 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12311 if test -n "$NM_FOR_TARGET"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12313 $as_echo "$NM_FOR_TARGET" >&6; }
12314 else
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12320 done
12323 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12324 for ncn_progname in nm; do
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12326 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12327 if test -x $with_build_time_tools/${ncn_progname}; then
12328 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12330 $as_echo "yes" >&6; }
12331 break
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12336 done
12339 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12340 for ncn_progname in nm; do
12341 if test -n "$ncn_target_tool_prefix"; then
12342 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12343 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 if test -n "$NM_FOR_TARGET"; then
12350 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12351 else
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353 for as_dir in $PATH
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12359 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 break 2
12363 done
12364 done
12365 IFS=$as_save_IFS
12369 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12370 if test -n "$NM_FOR_TARGET"; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12372 $as_echo "$NM_FOR_TARGET" >&6; }
12373 else
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375 $as_echo "no" >&6; }
12380 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12382 set dummy ${ncn_progname}; ac_word=$2
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384 $as_echo_n "checking for $ac_word... " >&6; }
12385 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 if test -n "$NM_FOR_TARGET"; then
12389 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12390 else
12391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12392 for as_dir in $PATH
12394 IFS=$as_save_IFS
12395 test -z "$as_dir" && as_dir=.
12396 for ac_exec_ext in '' $ac_executable_extensions; do
12397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12398 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12400 break 2
12402 done
12403 done
12404 IFS=$as_save_IFS
12408 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12409 if test -n "$NM_FOR_TARGET"; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12411 $as_echo "$NM_FOR_TARGET" >&6; }
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12419 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12420 done
12423 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12424 set dummy nm
12425 if test $build = $target ; then
12426 NM_FOR_TARGET="$2"
12427 else
12428 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12430 else
12431 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12434 else
12435 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12441 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12442 if test -n "$with_build_time_tools"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12444 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12445 if test -x $with_build_time_tools/objcopy; then
12446 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12447 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12449 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12454 elif test $build != $host && test $have_gcc_for_target = yes; then
12455 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12456 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12457 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12460 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12461 # Extract the first word of "objcopy", so it can be a program name with args.
12462 set dummy objcopy; ac_word=$2
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464 $as_echo_n "checking for $ac_word... " >&6; }
12465 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12466 $as_echo_n "(cached) " >&6
12467 else
12468 case $OBJCOPY_FOR_TARGET in
12469 [\\/]* | ?:[\\/]*)
12470 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $gcc_cv_tool_dirs
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12480 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 break 2
12484 done
12485 done
12486 IFS=$as_save_IFS
12489 esac
12491 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12492 if test -n "$OBJCOPY_FOR_TARGET"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12494 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12502 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12505 if test -n "$OBJCOPY_FOR_TARGET"; then
12506 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12507 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12508 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12511 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12512 for ncn_progname in objcopy; do
12513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12514 set dummy ${ncn_progname}; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 if test -n "$OBJCOPY_FOR_TARGET"; then
12521 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12522 else
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12530 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12534 done
12535 done
12536 IFS=$as_save_IFS
12540 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12541 if test -n "$OBJCOPY_FOR_TARGET"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12543 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12550 done
12553 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12554 for ncn_progname in objcopy; do
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12556 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12557 if test -x $with_build_time_tools/${ncn_progname}; then
12558 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12560 $as_echo "yes" >&6; }
12561 break
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12566 done
12569 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12570 for ncn_progname in objcopy; do
12571 if test -n "$ncn_target_tool_prefix"; then
12572 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 if test -n "$OBJCOPY_FOR_TARGET"; then
12580 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12581 else
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12593 done
12594 done
12595 IFS=$as_save_IFS
12599 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12600 if test -n "$OBJCOPY_FOR_TARGET"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12602 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12610 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12612 set dummy ${ncn_progname}; ac_word=$2
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12614 $as_echo_n "checking for $ac_word... " >&6; }
12615 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 if test -n "$OBJCOPY_FOR_TARGET"; then
12619 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12620 else
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12624 IFS=$as_save_IFS
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12628 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12630 break 2
12632 done
12633 done
12634 IFS=$as_save_IFS
12638 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12639 if test -n "$OBJCOPY_FOR_TARGET"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12641 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12649 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12650 done
12653 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12654 set dummy objcopy
12655 if test $build = $target ; then
12656 OBJCOPY_FOR_TARGET="$2"
12657 else
12658 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12660 else
12661 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12664 else
12665 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12671 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12672 if test -n "$with_build_time_tools"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12674 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12675 if test -x $with_build_time_tools/objdump; then
12676 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12677 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12679 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12680 else
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 $as_echo "no" >&6; }
12684 elif test $build != $host && test $have_gcc_for_target = yes; then
12685 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12686 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12687 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12690 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12691 # Extract the first word of "objdump", so it can be a program name with args.
12692 set dummy objdump; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694 $as_echo_n "checking for $ac_word... " >&6; }
12695 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 case $OBJDUMP_FOR_TARGET in
12699 [\\/]* | ?:[\\/]*)
12700 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $gcc_cv_tool_dirs
12706 IFS=$as_save_IFS
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12710 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12712 break 2
12714 done
12715 done
12716 IFS=$as_save_IFS
12719 esac
12721 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12722 if test -n "$OBJDUMP_FOR_TARGET"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12724 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12732 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12735 if test -n "$OBJDUMP_FOR_TARGET"; then
12736 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12737 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12738 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12741 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12742 for ncn_progname in objdump; do
12743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12744 set dummy ${ncn_progname}; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 if test -n "$OBJDUMP_FOR_TARGET"; then
12751 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12752 else
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in $PATH
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12760 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 break 2
12764 done
12765 done
12766 IFS=$as_save_IFS
12770 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12771 if test -n "$OBJDUMP_FOR_TARGET"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12773 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12780 done
12783 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12784 for ncn_progname in objdump; do
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12786 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12787 if test -x $with_build_time_tools/${ncn_progname}; then
12788 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12790 $as_echo "yes" >&6; }
12791 break
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12796 done
12799 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12800 for ncn_progname in objdump; do
12801 if test -n "$ncn_target_tool_prefix"; then
12802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12803 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 if test -n "$OBJDUMP_FOR_TARGET"; then
12810 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12811 else
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12815 IFS=$as_save_IFS
12816 test -z "$as_dir" && as_dir=.
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12819 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821 break 2
12823 done
12824 done
12825 IFS=$as_save_IFS
12829 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12830 if test -n "$OBJDUMP_FOR_TARGET"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12832 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12833 else
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12840 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12842 set dummy ${ncn_progname}; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 if test -n "$OBJDUMP_FOR_TARGET"; then
12849 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12850 else
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12854 IFS=$as_save_IFS
12855 test -z "$as_dir" && as_dir=.
12856 for ac_exec_ext in '' $ac_executable_extensions; do
12857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12858 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 break 2
12862 done
12863 done
12864 IFS=$as_save_IFS
12868 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12869 if test -n "$OBJDUMP_FOR_TARGET"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12871 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12879 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12880 done
12883 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12884 set dummy objdump
12885 if test $build = $target ; then
12886 OBJDUMP_FOR_TARGET="$2"
12887 else
12888 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12890 else
12891 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12894 else
12895 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12901 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12902 if test -n "$with_build_time_tools"; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12904 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12905 if test -x $with_build_time_tools/ranlib; then
12906 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12907 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12909 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12910 else
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 $as_echo "no" >&6; }
12914 elif test $build != $host && test $have_gcc_for_target = yes; then
12915 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12916 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12917 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12920 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12921 # Extract the first word of "ranlib", so it can be a program name with args.
12922 set dummy ranlib; ac_word=$2
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924 $as_echo_n "checking for $ac_word... " >&6; }
12925 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
12927 else
12928 case $RANLIB_FOR_TARGET in
12929 [\\/]* | ?:[\\/]*)
12930 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12934 for as_dir in $gcc_cv_tool_dirs
12936 IFS=$as_save_IFS
12937 test -z "$as_dir" && as_dir=.
12938 for ac_exec_ext in '' $ac_executable_extensions; do
12939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12940 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 break 2
12944 done
12945 done
12946 IFS=$as_save_IFS
12949 esac
12951 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12952 if test -n "$RANLIB_FOR_TARGET"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12954 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12955 else
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12962 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12965 if test -n "$RANLIB_FOR_TARGET"; then
12966 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12967 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12968 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12971 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12972 for ncn_progname in ranlib; do
12973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12974 set dummy ${ncn_progname}; ac_word=$2
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12976 $as_echo_n "checking for $ac_word... " >&6; }
12977 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 if test -n "$RANLIB_FOR_TARGET"; then
12981 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12982 else
12983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984 for as_dir in $PATH
12986 IFS=$as_save_IFS
12987 test -z "$as_dir" && as_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12990 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12992 break 2
12994 done
12995 done
12996 IFS=$as_save_IFS
13000 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13001 if test -n "$RANLIB_FOR_TARGET"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13003 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13004 else
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13010 done
13013 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
13014 for ncn_progname in ranlib; do
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13016 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13017 if test -x $with_build_time_tools/${ncn_progname}; then
13018 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13020 $as_echo "yes" >&6; }
13021 break
13022 else
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 $as_echo "no" >&6; }
13026 done
13029 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13030 for ncn_progname in ranlib; do
13031 if test -n "$ncn_target_tool_prefix"; then
13032 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13033 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 if test -n "$RANLIB_FOR_TARGET"; then
13040 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13041 else
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13049 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13053 done
13054 done
13055 IFS=$as_save_IFS
13059 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13060 if test -n "$RANLIB_FOR_TARGET"; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13062 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13063 else
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13070 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13072 set dummy ${ncn_progname}; ac_word=$2
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13074 $as_echo_n "checking for $ac_word... " >&6; }
13075 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13076 $as_echo_n "(cached) " >&6
13077 else
13078 if test -n "$RANLIB_FOR_TARGET"; then
13079 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13080 else
13081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082 for as_dir in $PATH
13084 IFS=$as_save_IFS
13085 test -z "$as_dir" && as_dir=.
13086 for ac_exec_ext in '' $ac_executable_extensions; do
13087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13088 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13090 break 2
13092 done
13093 done
13094 IFS=$as_save_IFS
13098 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13099 if test -n "$RANLIB_FOR_TARGET"; then
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13101 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13102 else
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 $as_echo "no" >&6; }
13109 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13110 done
13113 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13114 set dummy ranlib
13115 if test $build = $target ; then
13116 RANLIB_FOR_TARGET="$2"
13117 else
13118 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13120 else
13121 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13124 else
13125 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13131 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13132 if test -n "$with_build_time_tools"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13134 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13135 if test -x $with_build_time_tools/readelf; then
13136 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13137 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13139 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13140 else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13144 elif test $build != $host && test $have_gcc_for_target = yes; then
13145 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13146 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13147 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13150 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13151 # Extract the first word of "readelf", so it can be a program name with args.
13152 set dummy readelf; ac_word=$2
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154 $as_echo_n "checking for $ac_word... " >&6; }
13155 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13158 case $READELF_FOR_TARGET in
13159 [\\/]* | ?:[\\/]*)
13160 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164 for as_dir in $gcc_cv_tool_dirs
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
13168 for ac_exec_ext in '' $ac_executable_extensions; do
13169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13170 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13172 break 2
13174 done
13175 done
13176 IFS=$as_save_IFS
13179 esac
13181 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13182 if test -n "$READELF_FOR_TARGET"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13184 $as_echo "$READELF_FOR_TARGET" >&6; }
13185 else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13192 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13195 if test -n "$READELF_FOR_TARGET"; then
13196 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13197 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13198 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13201 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13202 for ncn_progname in readelf; do
13203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13204 set dummy ${ncn_progname}; ac_word=$2
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13206 $as_echo_n "checking for $ac_word... " >&6; }
13207 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13208 $as_echo_n "(cached) " >&6
13209 else
13210 if test -n "$READELF_FOR_TARGET"; then
13211 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13212 else
13213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13214 for as_dir in $PATH
13216 IFS=$as_save_IFS
13217 test -z "$as_dir" && as_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13220 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 break 2
13224 done
13225 done
13226 IFS=$as_save_IFS
13230 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13231 if test -n "$READELF_FOR_TARGET"; then
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13233 $as_echo "$READELF_FOR_TARGET" >&6; }
13234 else
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13236 $as_echo "no" >&6; }
13240 done
13243 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13244 for ncn_progname in readelf; do
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13246 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13247 if test -x $with_build_time_tools/${ncn_progname}; then
13248 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13250 $as_echo "yes" >&6; }
13251 break
13252 else
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13254 $as_echo "no" >&6; }
13256 done
13259 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13260 for ncn_progname in readelf; do
13261 if test -n "$ncn_target_tool_prefix"; then
13262 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13263 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test -n "$READELF_FOR_TARGET"; then
13270 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13283 done
13284 done
13285 IFS=$as_save_IFS
13289 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13290 if test -n "$READELF_FOR_TARGET"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13292 $as_echo "$READELF_FOR_TARGET" >&6; }
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13300 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13302 set dummy ${ncn_progname}; ac_word=$2
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13304 $as_echo_n "checking for $ac_word... " >&6; }
13305 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 if test -n "$READELF_FOR_TARGET"; then
13309 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13310 else
13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13318 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13320 break 2
13322 done
13323 done
13324 IFS=$as_save_IFS
13328 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13329 if test -n "$READELF_FOR_TARGET"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13331 $as_echo "$READELF_FOR_TARGET" >&6; }
13332 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13339 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13340 done
13343 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13344 set dummy readelf
13345 if test $build = $target ; then
13346 READELF_FOR_TARGET="$2"
13347 else
13348 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13350 else
13351 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13354 else
13355 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13361 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13362 if test -n "$with_build_time_tools"; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13364 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13365 if test -x $with_build_time_tools/strip; then
13366 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13367 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13369 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13370 else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13374 elif test $build != $host && test $have_gcc_for_target = yes; then
13375 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13376 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13377 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13380 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13381 # Extract the first word of "strip", so it can be a program name with args.
13382 set dummy strip; ac_word=$2
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384 $as_echo_n "checking for $ac_word... " >&6; }
13385 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 case $STRIP_FOR_TARGET in
13389 [\\/]* | ?:[\\/]*)
13390 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $gcc_cv_tool_dirs
13396 IFS=$as_save_IFS
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13400 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13402 break 2
13404 done
13405 done
13406 IFS=$as_save_IFS
13409 esac
13411 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13412 if test -n "$STRIP_FOR_TARGET"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13414 $as_echo "$STRIP_FOR_TARGET" >&6; }
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13422 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13425 if test -n "$STRIP_FOR_TARGET"; then
13426 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13427 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13428 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13431 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13432 for ncn_progname in strip; do
13433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13434 set dummy ${ncn_progname}; ac_word=$2
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13436 $as_echo_n "checking for $ac_word... " >&6; }
13437 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 if test -n "$STRIP_FOR_TARGET"; then
13441 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13442 else
13443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13444 for as_dir in $PATH
13446 IFS=$as_save_IFS
13447 test -z "$as_dir" && as_dir=.
13448 for ac_exec_ext in '' $ac_executable_extensions; do
13449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13450 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13452 break 2
13454 done
13455 done
13456 IFS=$as_save_IFS
13460 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13461 if test -n "$STRIP_FOR_TARGET"; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13463 $as_echo "$STRIP_FOR_TARGET" >&6; }
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13466 $as_echo "no" >&6; }
13470 done
13473 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13474 for ncn_progname in strip; do
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13476 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13477 if test -x $with_build_time_tools/${ncn_progname}; then
13478 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13480 $as_echo "yes" >&6; }
13481 break
13482 else
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484 $as_echo "no" >&6; }
13486 done
13489 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13490 for ncn_progname in strip; do
13491 if test -n "$ncn_target_tool_prefix"; then
13492 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13493 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 if test -n "$STRIP_FOR_TARGET"; then
13500 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13501 else
13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503 for as_dir in $PATH
13505 IFS=$as_save_IFS
13506 test -z "$as_dir" && as_dir=.
13507 for ac_exec_ext in '' $ac_executable_extensions; do
13508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13509 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511 break 2
13513 done
13514 done
13515 IFS=$as_save_IFS
13519 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13520 if test -n "$STRIP_FOR_TARGET"; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13522 $as_echo "$STRIP_FOR_TARGET" >&6; }
13523 else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525 $as_echo "no" >&6; }
13530 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13532 set dummy ${ncn_progname}; ac_word=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13534 $as_echo_n "checking for $ac_word... " >&6; }
13535 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 if test -n "$STRIP_FOR_TARGET"; then
13539 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13540 else
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542 for as_dir in $PATH
13544 IFS=$as_save_IFS
13545 test -z "$as_dir" && as_dir=.
13546 for ac_exec_ext in '' $ac_executable_extensions; do
13547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13548 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13550 break 2
13552 done
13553 done
13554 IFS=$as_save_IFS
13558 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13559 if test -n "$STRIP_FOR_TARGET"; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13561 $as_echo "$STRIP_FOR_TARGET" >&6; }
13562 else
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564 $as_echo "no" >&6; }
13569 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13570 done
13573 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13574 set dummy strip
13575 if test $build = $target ; then
13576 STRIP_FOR_TARGET="$2"
13577 else
13578 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13580 else
13581 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13584 else
13585 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13591 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13592 if test -n "$with_build_time_tools"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13594 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13595 if test -x $with_build_time_tools/windres; then
13596 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13597 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13599 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13600 else
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13604 elif test $build != $host && test $have_gcc_for_target = yes; then
13605 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13606 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13607 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13610 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13611 # Extract the first word of "windres", so it can be a program name with args.
13612 set dummy windres; ac_word=$2
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13614 $as_echo_n "checking for $ac_word... " >&6; }
13615 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 case $WINDRES_FOR_TARGET in
13619 [\\/]* | ?:[\\/]*)
13620 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13624 for as_dir in $gcc_cv_tool_dirs
13626 IFS=$as_save_IFS
13627 test -z "$as_dir" && as_dir=.
13628 for ac_exec_ext in '' $ac_executable_extensions; do
13629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13630 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13632 break 2
13634 done
13635 done
13636 IFS=$as_save_IFS
13639 esac
13641 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13642 if test -n "$WINDRES_FOR_TARGET"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13644 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13652 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13655 if test -n "$WINDRES_FOR_TARGET"; then
13656 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13657 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13658 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13661 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13662 for ncn_progname in windres; do
13663 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13664 set dummy ${ncn_progname}; ac_word=$2
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666 $as_echo_n "checking for $ac_word... " >&6; }
13667 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13669 else
13670 if test -n "$WINDRES_FOR_TARGET"; then
13671 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13680 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13682 break 2
13684 done
13685 done
13686 IFS=$as_save_IFS
13690 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13691 if test -n "$WINDRES_FOR_TARGET"; then
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13693 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13694 else
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13700 done
13703 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13704 for ncn_progname in windres; do
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13706 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13707 if test -x $with_build_time_tools/${ncn_progname}; then
13708 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13710 $as_echo "yes" >&6; }
13711 break
13712 else
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 $as_echo "no" >&6; }
13716 done
13719 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13720 for ncn_progname in windres; do
13721 if test -n "$ncn_target_tool_prefix"; then
13722 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13723 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 if test -n "$WINDRES_FOR_TARGET"; then
13730 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13731 else
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13741 break 2
13743 done
13744 done
13745 IFS=$as_save_IFS
13749 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13750 if test -n "$WINDRES_FOR_TARGET"; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13752 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13755 $as_echo "no" >&6; }
13760 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13762 set dummy ${ncn_progname}; ac_word=$2
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13764 $as_echo_n "checking for $ac_word... " >&6; }
13765 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13766 $as_echo_n "(cached) " >&6
13767 else
13768 if test -n "$WINDRES_FOR_TARGET"; then
13769 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13770 else
13771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772 for as_dir in $PATH
13774 IFS=$as_save_IFS
13775 test -z "$as_dir" && as_dir=.
13776 for ac_exec_ext in '' $ac_executable_extensions; do
13777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13778 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13780 break 2
13782 done
13783 done
13784 IFS=$as_save_IFS
13788 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13789 if test -n "$WINDRES_FOR_TARGET"; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13791 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13792 else
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13799 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13800 done
13803 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13804 set dummy windres
13805 if test $build = $target ; then
13806 WINDRES_FOR_TARGET="$2"
13807 else
13808 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13810 else
13811 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13814 else
13815 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13821 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13822 if test -n "$with_build_time_tools"; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13824 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13825 if test -x $with_build_time_tools/windmc; then
13826 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13827 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13829 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13834 elif test $build != $host && test $have_gcc_for_target = yes; then
13835 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13836 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13837 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13840 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13841 # Extract the first word of "windmc", so it can be a program name with args.
13842 set dummy windmc; ac_word=$2
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13844 $as_echo_n "checking for $ac_word... " >&6; }
13845 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13846 $as_echo_n "(cached) " >&6
13847 else
13848 case $WINDMC_FOR_TARGET in
13849 [\\/]* | ?:[\\/]*)
13850 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $gcc_cv_tool_dirs
13856 IFS=$as_save_IFS
13857 test -z "$as_dir" && as_dir=.
13858 for ac_exec_ext in '' $ac_executable_extensions; do
13859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13860 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 break 2
13864 done
13865 done
13866 IFS=$as_save_IFS
13869 esac
13871 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13872 if test -n "$WINDMC_FOR_TARGET"; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13874 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13875 else
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13882 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13885 if test -n "$WINDMC_FOR_TARGET"; then
13886 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13887 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13888 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13891 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13892 for ncn_progname in windmc; do
13893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13894 set dummy ${ncn_progname}; ac_word=$2
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13896 $as_echo_n "checking for $ac_word... " >&6; }
13897 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13898 $as_echo_n "(cached) " >&6
13899 else
13900 if test -n "$WINDMC_FOR_TARGET"; then
13901 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13902 else
13903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13904 for as_dir in $PATH
13906 IFS=$as_save_IFS
13907 test -z "$as_dir" && as_dir=.
13908 for ac_exec_ext in '' $ac_executable_extensions; do
13909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13910 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13912 break 2
13914 done
13915 done
13916 IFS=$as_save_IFS
13920 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13921 if test -n "$WINDMC_FOR_TARGET"; then
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13923 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13924 else
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13930 done
13933 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13934 for ncn_progname in windmc; do
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13936 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13937 if test -x $with_build_time_tools/${ncn_progname}; then
13938 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13940 $as_echo "yes" >&6; }
13941 break
13942 else
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13946 done
13949 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13950 for ncn_progname in windmc; do
13951 if test -n "$ncn_target_tool_prefix"; then
13952 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13953 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13955 $as_echo_n "checking for $ac_word... " >&6; }
13956 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 if test -n "$WINDMC_FOR_TARGET"; then
13960 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13961 else
13962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13965 IFS=$as_save_IFS
13966 test -z "$as_dir" && as_dir=.
13967 for ac_exec_ext in '' $ac_executable_extensions; do
13968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13969 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13971 break 2
13973 done
13974 done
13975 IFS=$as_save_IFS
13979 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13980 if test -n "$WINDMC_FOR_TARGET"; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13982 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13990 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13992 set dummy ${ncn_progname}; ac_word=$2
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13994 $as_echo_n "checking for $ac_word... " >&6; }
13995 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 if test -n "$WINDMC_FOR_TARGET"; then
13999 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14000 else
14001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002 for as_dir in $PATH
14004 IFS=$as_save_IFS
14005 test -z "$as_dir" && as_dir=.
14006 for ac_exec_ext in '' $ac_executable_extensions; do
14007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14008 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
14009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14010 break 2
14012 done
14013 done
14014 IFS=$as_save_IFS
14018 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14019 if test -n "$WINDMC_FOR_TARGET"; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14021 $as_echo "$WINDMC_FOR_TARGET" >&6; }
14022 else
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14029 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14030 done
14033 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14034 set dummy windmc
14035 if test $build = $target ; then
14036 WINDMC_FOR_TARGET="$2"
14037 else
14038 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14040 else
14041 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
14044 else
14045 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14049 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14052 $as_echo_n "checking where to find the target ar... " >&6; }
14053 if test "x${build}" != "x${host}" ; then
14054 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14055 # We already found the complete path
14056 ac_dir=`dirname $AR_FOR_TARGET`
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14058 $as_echo "pre-installed in $ac_dir" >&6; }
14059 else
14060 # Canadian cross, just use what we found
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14062 $as_echo "pre-installed" >&6; }
14064 else
14065 ok=yes
14066 case " ${configdirs} " in
14067 *" binutils "*) ;;
14068 *) ok=no ;;
14069 esac
14071 if test $ok = yes; then
14072 # An in-tree tool is available and we can use it
14073 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14075 $as_echo "just compiled" >&6; }
14076 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
14078 ac_dir=`dirname $AR_FOR_TARGET`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080 $as_echo "pre-installed in $ac_dir" >&6; }
14081 elif test "x$target" = "x$host"; then
14082 # We can use an host tool
14083 AR_FOR_TARGET='$(AR)'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14085 $as_echo "host tool" >&6; }
14086 else
14087 # We need a cross tool
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14089 $as_echo "pre-installed" >&6; }
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14094 $as_echo_n "checking where to find the target as... " >&6; }
14095 if test "x${build}" != "x${host}" ; then
14096 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $AS_FOR_TARGET`
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14100 $as_echo "pre-installed in $ac_dir" >&6; }
14101 else
14102 # Canadian cross, just use what we found
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104 $as_echo "pre-installed" >&6; }
14106 else
14107 ok=yes
14108 case " ${configdirs} " in
14109 *" gas "*) ;;
14110 *) ok=no ;;
14111 esac
14113 if test $ok = yes; then
14114 # An in-tree tool is available and we can use it
14115 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14117 $as_echo "just compiled" >&6; }
14118 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $AS_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122 $as_echo "pre-installed in $ac_dir" >&6; }
14123 elif test "x$target" = "x$host"; then
14124 # We can use an host tool
14125 AS_FOR_TARGET='$(AS)'
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14127 $as_echo "host tool" >&6; }
14128 else
14129 # We need a cross tool
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14131 $as_echo "pre-installed" >&6; }
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14136 $as_echo_n "checking where to find the target cc... " >&6; }
14137 if test "x${build}" != "x${host}" ; then
14138 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
14140 ac_dir=`dirname $CC_FOR_TARGET`
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142 $as_echo "pre-installed in $ac_dir" >&6; }
14143 else
14144 # Canadian cross, just use what we found
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14146 $as_echo "pre-installed" >&6; }
14148 else
14149 ok=yes
14150 case " ${configdirs} " in
14151 *" gcc "*) ;;
14152 *) ok=no ;;
14153 esac
14155 if test $ok = yes; then
14156 # An in-tree tool is available and we can use it
14157 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14159 $as_echo "just compiled" >&6; }
14160 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14161 # We already found the complete path
14162 ac_dir=`dirname $CC_FOR_TARGET`
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14164 $as_echo "pre-installed in $ac_dir" >&6; }
14165 elif test "x$target" = "x$host"; then
14166 # We can use an host tool
14167 CC_FOR_TARGET='$(CC)'
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14169 $as_echo "host tool" >&6; }
14170 else
14171 # We need a cross tool
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14173 $as_echo "pre-installed" >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14178 $as_echo_n "checking where to find the target c++... " >&6; }
14179 if test "x${build}" != "x${host}" ; then
14180 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14181 # We already found the complete path
14182 ac_dir=`dirname $CXX_FOR_TARGET`
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14184 $as_echo "pre-installed in $ac_dir" >&6; }
14185 else
14186 # Canadian cross, just use what we found
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14188 $as_echo "pre-installed" >&6; }
14190 else
14191 ok=yes
14192 case " ${configdirs} " in
14193 *" gcc "*) ;;
14194 *) ok=no ;;
14195 esac
14196 case ,${enable_languages}, in
14197 *,c++,*) ;;
14198 *) ok=no ;;
14199 esac
14200 if test $ok = yes; then
14201 # An in-tree tool is available and we can use it
14202 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'
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14204 $as_echo "just compiled" >&6; }
14205 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14206 # We already found the complete path
14207 ac_dir=`dirname $CXX_FOR_TARGET`
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14209 $as_echo "pre-installed in $ac_dir" >&6; }
14210 elif test "x$target" = "x$host"; then
14211 # We can use an host tool
14212 CXX_FOR_TARGET='$(CXX)'
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14214 $as_echo "host tool" >&6; }
14215 else
14216 # We need a cross tool
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218 $as_echo "pre-installed" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14223 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14224 if test "x${build}" != "x${host}" ; then
14225 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14226 # We already found the complete path
14227 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14229 $as_echo "pre-installed in $ac_dir" >&6; }
14230 else
14231 # Canadian cross, just use what we found
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14233 $as_echo "pre-installed" >&6; }
14235 else
14236 ok=yes
14237 case " ${configdirs} " in
14238 *" gcc "*) ;;
14239 *) ok=no ;;
14240 esac
14241 case ,${enable_languages}, in
14242 *,c++,*) ;;
14243 *) ok=no ;;
14244 esac
14245 if test $ok = yes; then
14246 # An in-tree tool is available and we can use it
14247 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'
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14249 $as_echo "just compiled" >&6; }
14250 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14251 # We already found the complete path
14252 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14254 $as_echo "pre-installed in $ac_dir" >&6; }
14255 elif test "x$target" = "x$host"; then
14256 # We can use an host tool
14257 RAW_CXX_FOR_TARGET='$(CXX)'
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14259 $as_echo "host tool" >&6; }
14260 else
14261 # We need a cross tool
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14263 $as_echo "pre-installed" >&6; }
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14268 $as_echo_n "checking where to find the target dlltool... " >&6; }
14269 if test "x${build}" != "x${host}" ; then
14270 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14271 # We already found the complete path
14272 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14274 $as_echo "pre-installed in $ac_dir" >&6; }
14275 else
14276 # Canadian cross, just use what we found
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14278 $as_echo "pre-installed" >&6; }
14280 else
14281 ok=yes
14282 case " ${configdirs} " in
14283 *" binutils "*) ;;
14284 *) ok=no ;;
14285 esac
14287 if test $ok = yes; then
14288 # An in-tree tool is available and we can use it
14289 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14291 $as_echo "just compiled" >&6; }
14292 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14293 # We already found the complete path
14294 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14296 $as_echo "pre-installed in $ac_dir" >&6; }
14297 elif test "x$target" = "x$host"; then
14298 # We can use an host tool
14299 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14301 $as_echo "host tool" >&6; }
14302 else
14303 # We need a cross tool
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14305 $as_echo "pre-installed" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14310 $as_echo_n "checking where to find the target gcc... " >&6; }
14311 if test "x${build}" != "x${host}" ; then
14312 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14313 # We already found the complete path
14314 ac_dir=`dirname $GCC_FOR_TARGET`
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14316 $as_echo "pre-installed in $ac_dir" >&6; }
14317 else
14318 # Canadian cross, just use what we found
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14320 $as_echo "pre-installed" >&6; }
14322 else
14323 ok=yes
14324 case " ${configdirs} " in
14325 *" gcc "*) ;;
14326 *) ok=no ;;
14327 esac
14329 if test $ok = yes; then
14330 # An in-tree tool is available and we can use it
14331 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14333 $as_echo "just compiled" >&6; }
14334 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14335 # We already found the complete path
14336 ac_dir=`dirname $GCC_FOR_TARGET`
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14338 $as_echo "pre-installed in $ac_dir" >&6; }
14339 elif test "x$target" = "x$host"; then
14340 # We can use an host tool
14341 GCC_FOR_TARGET='$()'
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14343 $as_echo "host tool" >&6; }
14344 else
14345 # We need a cross tool
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14347 $as_echo "pre-installed" >&6; }
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14352 $as_echo_n "checking where to find the target gcj... " >&6; }
14353 if test "x${build}" != "x${host}" ; then
14354 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14355 # We already found the complete path
14356 ac_dir=`dirname $GCJ_FOR_TARGET`
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14358 $as_echo "pre-installed in $ac_dir" >&6; }
14359 else
14360 # Canadian cross, just use what we found
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14362 $as_echo "pre-installed" >&6; }
14364 else
14365 ok=yes
14366 case " ${configdirs} " in
14367 *" gcc "*) ;;
14368 *) ok=no ;;
14369 esac
14370 case ,${enable_languages}, in
14371 *,java,*) ;;
14372 *) ok=no ;;
14373 esac
14374 if test $ok = yes; then
14375 # An in-tree tool is available and we can use it
14376 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14378 $as_echo "just compiled" >&6; }
14379 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14380 # We already found the complete path
14381 ac_dir=`dirname $GCJ_FOR_TARGET`
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14383 $as_echo "pre-installed in $ac_dir" >&6; }
14384 elif test "x$target" = "x$host"; then
14385 # We can use an host tool
14386 GCJ_FOR_TARGET='$(GCJ)'
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14388 $as_echo "host tool" >&6; }
14389 else
14390 # We need a cross tool
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14392 $as_echo "pre-installed" >&6; }
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14397 $as_echo_n "checking where to find the target gfortran... " >&6; }
14398 if test "x${build}" != "x${host}" ; then
14399 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14400 # We already found the complete path
14401 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14403 $as_echo "pre-installed in $ac_dir" >&6; }
14404 else
14405 # Canadian cross, just use what we found
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14407 $as_echo "pre-installed" >&6; }
14409 else
14410 ok=yes
14411 case " ${configdirs} " in
14412 *" gcc "*) ;;
14413 *) ok=no ;;
14414 esac
14415 case ,${enable_languages}, in
14416 *,fortran,*) ;;
14417 *) ok=no ;;
14418 esac
14419 if test $ok = yes; then
14420 # An in-tree tool is available and we can use it
14421 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14423 $as_echo "just compiled" >&6; }
14424 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14425 # We already found the complete path
14426 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14428 $as_echo "pre-installed in $ac_dir" >&6; }
14429 elif test "x$target" = "x$host"; then
14430 # We can use an host tool
14431 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14433 $as_echo "host tool" >&6; }
14434 else
14435 # We need a cross tool
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14437 $as_echo "pre-installed" >&6; }
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14442 $as_echo_n "checking where to find the target gccgo... " >&6; }
14443 if test "x${build}" != "x${host}" ; then
14444 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
14446 ac_dir=`dirname $GOC_FOR_TARGET`
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448 $as_echo "pre-installed in $ac_dir" >&6; }
14449 else
14450 # Canadian cross, just use what we found
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14452 $as_echo "pre-installed" >&6; }
14454 else
14455 ok=yes
14456 case " ${configdirs} " in
14457 *" gcc "*) ;;
14458 *) ok=no ;;
14459 esac
14460 case ,${enable_languages}, in
14461 *,go,*) ;;
14462 *) ok=no ;;
14463 esac
14464 if test $ok = yes; then
14465 # An in-tree tool is available and we can use it
14466 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14468 $as_echo "just compiled" >&6; }
14469 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14470 # We already found the complete path
14471 ac_dir=`dirname $GOC_FOR_TARGET`
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14473 $as_echo "pre-installed in $ac_dir" >&6; }
14474 elif test "x$target" = "x$host"; then
14475 # We can use an host tool
14476 GOC_FOR_TARGET='$(GOC)'
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14478 $as_echo "host tool" >&6; }
14479 else
14480 # We need a cross tool
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14482 $as_echo "pre-installed" >&6; }
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gupc" >&5
14487 $as_echo_n "checking where to find the target gupc... " >&6; }
14488 if test "x${build}" != "x${host}" ; then
14489 if expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14490 # We already found the complete path
14491 ac_dir=`dirname $GUPC_FOR_TARGET`
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14493 $as_echo "pre-installed in $ac_dir" >&6; }
14494 else
14495 # Canadian cross, just use what we found
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14497 $as_echo "pre-installed" >&6; }
14499 else
14500 ok=yes
14501 case " ${configdirs} " in
14502 *" gcc "*) ;;
14503 *) ok=no ;;
14504 esac
14505 case ,${enable_languages}, in
14506 *,upc,*) ;;
14507 *) ok=no ;;
14508 esac
14509 if test $ok = yes; then
14510 # An in-tree tool is available and we can use it
14511 GUPC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gupc -B$$r/$(HOST_SUBDIR)/gcc/'
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14513 $as_echo "just compiled" >&6; }
14514 elif expr "x$GUPC_FOR_TARGET" : "x/" > /dev/null; then
14515 # We already found the complete path
14516 ac_dir=`dirname $GUPC_FOR_TARGET`
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14518 $as_echo "pre-installed in $ac_dir" >&6; }
14519 elif test "x$target" = "x$host"; then
14520 # We can use an host tool
14521 GUPC_FOR_TARGET='$(GUPC)'
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14523 $as_echo "host tool" >&6; }
14524 else
14525 # We need a cross tool
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14527 $as_echo "pre-installed" >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14532 $as_echo_n "checking where to find the target ld... " >&6; }
14533 if test "x${build}" != "x${host}" ; then
14534 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14535 # We already found the complete path
14536 ac_dir=`dirname $LD_FOR_TARGET`
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14538 $as_echo "pre-installed in $ac_dir" >&6; }
14539 else
14540 # Canadian cross, just use what we found
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14542 $as_echo "pre-installed" >&6; }
14544 else
14545 ok=yes
14546 case " ${configdirs} " in
14547 *" ld "*) ;;
14548 *) ok=no ;;
14549 esac
14551 if test $ok = yes; then
14552 # An in-tree tool is available and we can use it
14553 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14555 $as_echo "just compiled" >&6; }
14556 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14557 # We already found the complete path
14558 ac_dir=`dirname $LD_FOR_TARGET`
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14560 $as_echo "pre-installed in $ac_dir" >&6; }
14561 elif test "x$target" = "x$host"; then
14562 # We can use an host tool
14563 LD_FOR_TARGET='$(LD)'
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14565 $as_echo "host tool" >&6; }
14566 else
14567 # We need a cross tool
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14569 $as_echo "pre-installed" >&6; }
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14574 $as_echo_n "checking where to find the target lipo... " >&6; }
14575 if test "x${build}" != "x${host}" ; then
14576 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14577 # We already found the complete path
14578 ac_dir=`dirname $LIPO_FOR_TARGET`
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14580 $as_echo "pre-installed in $ac_dir" >&6; }
14581 else
14582 # Canadian cross, just use what we found
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14584 $as_echo "pre-installed" >&6; }
14586 else
14587 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14588 # We already found the complete path
14589 ac_dir=`dirname $LIPO_FOR_TARGET`
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14591 $as_echo "pre-installed in $ac_dir" >&6; }
14592 elif test "x$target" = "x$host"; then
14593 # We can use an host tool
14594 LIPO_FOR_TARGET='$(LIPO)'
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14596 $as_echo "host tool" >&6; }
14597 else
14598 # We need a cross tool
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14600 $as_echo "pre-installed" >&6; }
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14605 $as_echo_n "checking where to find the target nm... " >&6; }
14606 if test "x${build}" != "x${host}" ; then
14607 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14608 # We already found the complete path
14609 ac_dir=`dirname $NM_FOR_TARGET`
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14611 $as_echo "pre-installed in $ac_dir" >&6; }
14612 else
14613 # Canadian cross, just use what we found
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14615 $as_echo "pre-installed" >&6; }
14617 else
14618 ok=yes
14619 case " ${configdirs} " in
14620 *" binutils "*) ;;
14621 *) ok=no ;;
14622 esac
14624 if test $ok = yes; then
14625 # An in-tree tool is available and we can use it
14626 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14628 $as_echo "just compiled" >&6; }
14629 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14630 # We already found the complete path
14631 ac_dir=`dirname $NM_FOR_TARGET`
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14633 $as_echo "pre-installed in $ac_dir" >&6; }
14634 elif test "x$target" = "x$host"; then
14635 # We can use an host tool
14636 NM_FOR_TARGET='$(NM)'
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14638 $as_echo "host tool" >&6; }
14639 else
14640 # We need a cross tool
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14642 $as_echo "pre-installed" >&6; }
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14647 $as_echo_n "checking where to find the target objcopy... " >&6; }
14648 if test "x${build}" != "x${host}" ; then
14649 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14650 # We already found the complete path
14651 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14653 $as_echo "pre-installed in $ac_dir" >&6; }
14654 else
14655 # Canadian cross, just use what we found
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14657 $as_echo "pre-installed" >&6; }
14659 else
14660 ok=yes
14661 case " ${configdirs} " in
14662 *" binutils "*) ;;
14663 *) ok=no ;;
14664 esac
14666 if test $ok = yes; then
14667 # An in-tree tool is available and we can use it
14668 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14670 $as_echo "just compiled" >&6; }
14671 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14672 # We already found the complete path
14673 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14675 $as_echo "pre-installed in $ac_dir" >&6; }
14676 elif test "x$target" = "x$host"; then
14677 # We can use an host tool
14678 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14680 $as_echo "host tool" >&6; }
14681 else
14682 # We need a cross tool
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14684 $as_echo "pre-installed" >&6; }
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14689 $as_echo_n "checking where to find the target objdump... " >&6; }
14690 if test "x${build}" != "x${host}" ; then
14691 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14692 # We already found the complete path
14693 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14695 $as_echo "pre-installed in $ac_dir" >&6; }
14696 else
14697 # Canadian cross, just use what we found
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14699 $as_echo "pre-installed" >&6; }
14701 else
14702 ok=yes
14703 case " ${configdirs} " in
14704 *" binutils "*) ;;
14705 *) ok=no ;;
14706 esac
14708 if test $ok = yes; then
14709 # An in-tree tool is available and we can use it
14710 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14712 $as_echo "just compiled" >&6; }
14713 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14714 # We already found the complete path
14715 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14717 $as_echo "pre-installed in $ac_dir" >&6; }
14718 elif test "x$target" = "x$host"; then
14719 # We can use an host tool
14720 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14722 $as_echo "host tool" >&6; }
14723 else
14724 # We need a cross tool
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14726 $as_echo "pre-installed" >&6; }
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14731 $as_echo_n "checking where to find the target ranlib... " >&6; }
14732 if test "x${build}" != "x${host}" ; then
14733 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14734 # We already found the complete path
14735 ac_dir=`dirname $RANLIB_FOR_TARGET`
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14737 $as_echo "pre-installed in $ac_dir" >&6; }
14738 else
14739 # Canadian cross, just use what we found
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14741 $as_echo "pre-installed" >&6; }
14743 else
14744 ok=yes
14745 case " ${configdirs} " in
14746 *" binutils "*) ;;
14747 *) ok=no ;;
14748 esac
14750 if test $ok = yes; then
14751 # An in-tree tool is available and we can use it
14752 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14754 $as_echo "just compiled" >&6; }
14755 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14756 # We already found the complete path
14757 ac_dir=`dirname $RANLIB_FOR_TARGET`
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14759 $as_echo "pre-installed in $ac_dir" >&6; }
14760 elif test "x$target" = "x$host"; then
14761 # We can use an host tool
14762 RANLIB_FOR_TARGET='$(RANLIB)'
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14764 $as_echo "host tool" >&6; }
14765 else
14766 # We need a cross tool
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14768 $as_echo "pre-installed" >&6; }
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14773 $as_echo_n "checking where to find the target readelf... " >&6; }
14774 if test "x${build}" != "x${host}" ; then
14775 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14776 # We already found the complete path
14777 ac_dir=`dirname $READELF_FOR_TARGET`
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14779 $as_echo "pre-installed in $ac_dir" >&6; }
14780 else
14781 # Canadian cross, just use what we found
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14783 $as_echo "pre-installed" >&6; }
14785 else
14786 ok=yes
14787 case " ${configdirs} " in
14788 *" binutils "*) ;;
14789 *) ok=no ;;
14790 esac
14792 if test $ok = yes; then
14793 # An in-tree tool is available and we can use it
14794 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14796 $as_echo "just compiled" >&6; }
14797 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14798 # We already found the complete path
14799 ac_dir=`dirname $READELF_FOR_TARGET`
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14801 $as_echo "pre-installed in $ac_dir" >&6; }
14802 elif test "x$target" = "x$host"; then
14803 # We can use an host tool
14804 READELF_FOR_TARGET='$(READELF)'
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14806 $as_echo "host tool" >&6; }
14807 else
14808 # We need a cross tool
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14810 $as_echo "pre-installed" >&6; }
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14815 $as_echo_n "checking where to find the target strip... " >&6; }
14816 if test "x${build}" != "x${host}" ; then
14817 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14818 # We already found the complete path
14819 ac_dir=`dirname $STRIP_FOR_TARGET`
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14821 $as_echo "pre-installed in $ac_dir" >&6; }
14822 else
14823 # Canadian cross, just use what we found
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14825 $as_echo "pre-installed" >&6; }
14827 else
14828 ok=yes
14829 case " ${configdirs} " in
14830 *" binutils "*) ;;
14831 *) ok=no ;;
14832 esac
14834 if test $ok = yes; then
14835 # An in-tree tool is available and we can use it
14836 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14838 $as_echo "just compiled" >&6; }
14839 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14840 # We already found the complete path
14841 ac_dir=`dirname $STRIP_FOR_TARGET`
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14843 $as_echo "pre-installed in $ac_dir" >&6; }
14844 elif test "x$target" = "x$host"; then
14845 # We can use an host tool
14846 STRIP_FOR_TARGET='$(STRIP)'
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14848 $as_echo "host tool" >&6; }
14849 else
14850 # We need a cross tool
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14852 $as_echo "pre-installed" >&6; }
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14857 $as_echo_n "checking where to find the target windres... " >&6; }
14858 if test "x${build}" != "x${host}" ; then
14859 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14860 # We already found the complete path
14861 ac_dir=`dirname $WINDRES_FOR_TARGET`
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14863 $as_echo "pre-installed in $ac_dir" >&6; }
14864 else
14865 # Canadian cross, just use what we found
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14867 $as_echo "pre-installed" >&6; }
14869 else
14870 ok=yes
14871 case " ${configdirs} " in
14872 *" binutils "*) ;;
14873 *) ok=no ;;
14874 esac
14876 if test $ok = yes; then
14877 # An in-tree tool is available and we can use it
14878 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14880 $as_echo "just compiled" >&6; }
14881 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14882 # We already found the complete path
14883 ac_dir=`dirname $WINDRES_FOR_TARGET`
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14885 $as_echo "pre-installed in $ac_dir" >&6; }
14886 elif test "x$target" = "x$host"; then
14887 # We can use an host tool
14888 WINDRES_FOR_TARGET='$(WINDRES)'
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14890 $as_echo "host tool" >&6; }
14891 else
14892 # We need a cross tool
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14894 $as_echo "pre-installed" >&6; }
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14899 $as_echo_n "checking where to find the target windmc... " >&6; }
14900 if test "x${build}" != "x${host}" ; then
14901 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14902 # We already found the complete path
14903 ac_dir=`dirname $WINDMC_FOR_TARGET`
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14905 $as_echo "pre-installed in $ac_dir" >&6; }
14906 else
14907 # Canadian cross, just use what we found
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14909 $as_echo "pre-installed" >&6; }
14911 else
14912 ok=yes
14913 case " ${configdirs} " in
14914 *" binutils "*) ;;
14915 *) ok=no ;;
14916 esac
14918 if test $ok = yes; then
14919 # An in-tree tool is available and we can use it
14920 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14922 $as_echo "just compiled" >&6; }
14923 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14924 # We already found the complete path
14925 ac_dir=`dirname $WINDMC_FOR_TARGET`
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14927 $as_echo "pre-installed in $ac_dir" >&6; }
14928 elif test "x$target" = "x$host"; then
14929 # We can use an host tool
14930 WINDMC_FOR_TARGET='$(WINDMC)'
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14932 $as_echo "host tool" >&6; }
14933 else
14934 # We need a cross tool
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14936 $as_echo "pre-installed" >&6; }
14944 # Certain tools may need extra flags.
14945 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14946 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14947 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14949 # When building target libraries, except in a Canadian cross, we use
14950 # the same toolchain as the compiler we just built.
14951 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14952 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14953 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14954 if test $host = $build; then
14955 case " $configdirs " in
14956 *" gcc "*)
14957 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14958 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14959 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14961 esac
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14969 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14970 # Check whether --enable-maintainer-mode was given.
14971 if test "${enable_maintainer_mode+set}" = set; then :
14972 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14973 else
14974 USE_MAINTAINER_MODE=no
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14978 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14981 if test "$USE_MAINTAINER_MODE" = yes; then
14982 MAINTAINER_MODE_TRUE=
14983 MAINTAINER_MODE_FALSE='#'
14984 else
14985 MAINTAINER_MODE_TRUE='#'
14986 MAINTAINER_MODE_FALSE=
14988 MAINT=$MAINTAINER_MODE_TRUE
14990 # ---------------------
14991 # GCC bootstrap support
14992 # ---------------------
14994 # Stage specific cflags for build.
14995 stage1_cflags="-g"
14996 case $build in
14997 vax-*-*)
14998 case ${GCC} in
14999 yes) stage1_cflags="-g -Wa,-J" ;;
15000 *) stage1_cflags="-g -J" ;;
15001 esac ;;
15002 esac
15006 # Enable --enable-checking in stage1 of the compiler.
15007 # Check whether --enable-stage1-checking was given.
15008 if test "${enable_stage1_checking+set}" = set; then :
15009 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
15010 else
15011 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
15012 stage1_checking=--enable-checking=yes,types
15013 else
15014 stage1_checking=--enable-checking=$enable_checking,types
15020 # Enable -Werror in bootstrap stage2 and later.
15021 # Check whether --enable-werror was given.
15022 if test "${enable_werror+set}" = set; then :
15023 enableval=$enable_werror;
15024 else
15025 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15026 enable_werror=yes
15027 else
15028 enable_werror=no
15032 case ${enable_werror} in
15033 yes) stage2_werror_flag="--enable-werror-always" ;;
15034 *) stage2_werror_flag="" ;;
15035 esac
15038 # Enable --enable-host-shared.
15039 # Check whether --enable-host-shared was given.
15040 if test "${enable_host_shared+set}" = set; then :
15041 enableval=$enable_host_shared; host_shared=$enableval
15042 else
15043 host_shared=no
15048 # PR jit/64780: Require the user to explicitly specify
15049 # --enable-host-shared if the jit is enabled, hinting
15050 # that they might want to do a separate configure/build of
15051 # the jit, to avoid users from slowing down the rest of the
15052 # compiler by enabling the jit.
15053 if test ${host_shared} = "no" ; then
15054 case "${enable_languages}" in
15055 *jit*)
15056 as_fn_error "
15057 Enabling language \"jit\" requires --enable-host-shared.
15059 --enable-host-shared typically slows the rest of the compiler down by
15060 a few %, so you must explicitly enable it.
15062 If you want to build both the jit and the regular compiler, it is often
15063 best to do this via two separate configure/builds, in separate
15064 directories, to avoid imposing the performance cost of
15065 --enable-host-shared on the regular compiler." "$LINENO" 5
15069 esac
15072 # Specify what files to not compare during bootstrap.
15074 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15075 case "$target" in
15076 hppa*64*-*-hpux*) ;;
15077 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
15078 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
15079 esac
15082 ac_config_files="$ac_config_files Makefile"
15084 cat >confcache <<\_ACEOF
15085 # This file is a shell script that caches the results of configure
15086 # tests run on this system so they can be shared between configure
15087 # scripts and configure runs, see configure's option --config-cache.
15088 # It is not useful on other systems. If it contains results you don't
15089 # want to keep, you may remove or edit it.
15091 # config.status only pays attention to the cache file if you give it
15092 # the --recheck option to rerun configure.
15094 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15095 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15096 # following values.
15098 _ACEOF
15100 # The following way of writing the cache mishandles newlines in values,
15101 # but we know of no workaround that is simple, portable, and efficient.
15102 # So, we kill variables containing newlines.
15103 # Ultrix sh set writes to stderr and can't be redirected directly,
15104 # and sets the high bit in the cache file unless we assign to the vars.
15106 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15107 eval ac_val=\$$ac_var
15108 case $ac_val in #(
15109 *${as_nl}*)
15110 case $ac_var in #(
15111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15113 esac
15114 case $ac_var in #(
15115 _ | IFS | as_nl) ;; #(
15116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15117 *) { eval $ac_var=; unset $ac_var;} ;;
15118 esac ;;
15119 esac
15120 done
15122 (set) 2>&1 |
15123 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15124 *${as_nl}ac_space=\ *)
15125 # `set' does not quote correctly, so add quotes: double-quote
15126 # substitution turns \\\\ into \\, and sed turns \\ into \.
15127 sed -n \
15128 "s/'/'\\\\''/g;
15129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15130 ;; #(
15132 # `set' quotes correctly as required by POSIX, so do not add quotes.
15133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15135 esac |
15136 sort
15138 sed '
15139 /^ac_cv_env_/b end
15140 t clear
15141 :clear
15142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15143 t end
15144 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15145 :end' >>confcache
15146 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15147 if test -w "$cache_file"; then
15148 test "x$cache_file" != "x/dev/null" &&
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15150 $as_echo "$as_me: updating cache $cache_file" >&6;}
15151 cat confcache >$cache_file
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15154 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15157 rm -f confcache
15159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15160 # Let make expand exec_prefix.
15161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15163 # Transform confdefs.h into DEFS.
15164 # Protect against shell expansion while executing Makefile rules.
15165 # Protect against Makefile macro expansion.
15167 # If the first sed substitution is executed (which looks for macros that
15168 # take arguments), then branch to the quote section. Otherwise,
15169 # look for a macro that doesn't take arguments.
15170 ac_script='
15171 :mline
15172 /\\$/{
15174 s,\\\n,,
15175 b mline
15177 t clear
15178 :clear
15179 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15180 t quote
15181 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15182 t quote
15183 b any
15184 :quote
15185 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15186 s/\[/\\&/g
15187 s/\]/\\&/g
15188 s/\$/$$/g
15190 :any
15193 s/^\n//
15194 s/\n/ /g
15198 DEFS=`sed -n "$ac_script" confdefs.h`
15201 ac_libobjs=
15202 ac_ltlibobjs=
15203 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15204 # 1. Remove the extension, and $U if already installed.
15205 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15206 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15207 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15208 # will be set to the directory where LIBOBJS objects are built.
15209 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15210 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15211 done
15212 LIBOBJS=$ac_libobjs
15214 LTLIBOBJS=$ac_ltlibobjs
15218 : ${CONFIG_STATUS=./config.status}
15219 ac_write_fail=0
15220 ac_clean_files_save=$ac_clean_files
15221 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15223 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15224 as_write_fail=0
15225 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15226 #! $SHELL
15227 # Generated by $as_me.
15228 # Run this file to recreate the current configuration.
15229 # Compiler output produced by configure, useful for debugging
15230 # configure, is in config.log if it exists.
15232 debug=false
15233 ac_cs_recheck=false
15234 ac_cs_silent=false
15236 SHELL=\${CONFIG_SHELL-$SHELL}
15237 export SHELL
15238 _ASEOF
15239 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15240 ## -------------------- ##
15241 ## M4sh Initialization. ##
15242 ## -------------------- ##
15244 # Be more Bourne compatible
15245 DUALCASE=1; export DUALCASE # for MKS sh
15246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15247 emulate sh
15248 NULLCMD=:
15249 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15250 # is contrary to our usage. Disable this feature.
15251 alias -g '${1+"$@"}'='"$@"'
15252 setopt NO_GLOB_SUBST
15253 else
15254 case `(set -o) 2>/dev/null` in #(
15255 *posix*) :
15256 set -o posix ;; #(
15257 *) :
15259 esac
15263 as_nl='
15265 export as_nl
15266 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15267 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15269 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15270 # Prefer a ksh shell builtin over an external printf program on Solaris,
15271 # but without wasting forks for bash or zsh.
15272 if test -z "$BASH_VERSION$ZSH_VERSION" \
15273 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15274 as_echo='print -r --'
15275 as_echo_n='print -rn --'
15276 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15277 as_echo='printf %s\n'
15278 as_echo_n='printf %s'
15279 else
15280 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15281 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15282 as_echo_n='/usr/ucb/echo -n'
15283 else
15284 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15285 as_echo_n_body='eval
15286 arg=$1;
15287 case $arg in #(
15288 *"$as_nl"*)
15289 expr "X$arg" : "X\\(.*\\)$as_nl";
15290 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15291 esac;
15292 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15294 export as_echo_n_body
15295 as_echo_n='sh -c $as_echo_n_body as_echo'
15297 export as_echo_body
15298 as_echo='sh -c $as_echo_body as_echo'
15301 # The user is always right.
15302 if test "${PATH_SEPARATOR+set}" != set; then
15303 PATH_SEPARATOR=:
15304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15305 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15306 PATH_SEPARATOR=';'
15311 # IFS
15312 # We need space, tab and new line, in precisely that order. Quoting is
15313 # there to prevent editors from complaining about space-tab.
15314 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15315 # splitting by setting IFS to empty value.)
15316 IFS=" "" $as_nl"
15318 # Find who we are. Look in the path if we contain no directory separator.
15319 case $0 in #((
15320 *[\\/]* ) as_myself=$0 ;;
15321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322 for as_dir in $PATH
15324 IFS=$as_save_IFS
15325 test -z "$as_dir" && as_dir=.
15326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15327 done
15328 IFS=$as_save_IFS
15331 esac
15332 # We did not find ourselves, most probably we were run as `sh COMMAND'
15333 # in which case we are not to be found in the path.
15334 if test "x$as_myself" = x; then
15335 as_myself=$0
15337 if test ! -f "$as_myself"; then
15338 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15339 exit 1
15342 # Unset variables that we do not need and which cause bugs (e.g. in
15343 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15344 # suppresses any "Segmentation fault" message there. '((' could
15345 # trigger a bug in pdksh 5.2.14.
15346 for as_var in BASH_ENV ENV MAIL MAILPATH
15347 do eval test x\${$as_var+set} = xset \
15348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15349 done
15350 PS1='$ '
15351 PS2='> '
15352 PS4='+ '
15354 # NLS nuisances.
15355 LC_ALL=C
15356 export LC_ALL
15357 LANGUAGE=C
15358 export LANGUAGE
15360 # CDPATH.
15361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15364 # as_fn_error ERROR [LINENO LOG_FD]
15365 # ---------------------------------
15366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15368 # script with status $?, using 1 if that was 0.
15369 as_fn_error ()
15371 as_status=$?; test $as_status -eq 0 && as_status=1
15372 if test "$3"; then
15373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15376 $as_echo "$as_me: error: $1" >&2
15377 as_fn_exit $as_status
15378 } # as_fn_error
15381 # as_fn_set_status STATUS
15382 # -----------------------
15383 # Set $? to STATUS, without forking.
15384 as_fn_set_status ()
15386 return $1
15387 } # as_fn_set_status
15389 # as_fn_exit STATUS
15390 # -----------------
15391 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15392 as_fn_exit ()
15394 set +e
15395 as_fn_set_status $1
15396 exit $1
15397 } # as_fn_exit
15399 # as_fn_unset VAR
15400 # ---------------
15401 # Portably unset VAR.
15402 as_fn_unset ()
15404 { eval $1=; unset $1;}
15406 as_unset=as_fn_unset
15407 # as_fn_append VAR VALUE
15408 # ----------------------
15409 # Append the text in VALUE to the end of the definition contained in VAR. Take
15410 # advantage of any shell optimizations that allow amortized linear growth over
15411 # repeated appends, instead of the typical quadratic growth present in naive
15412 # implementations.
15413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15414 eval 'as_fn_append ()
15416 eval $1+=\$2
15418 else
15419 as_fn_append ()
15421 eval $1=\$$1\$2
15423 fi # as_fn_append
15425 # as_fn_arith ARG...
15426 # ------------------
15427 # Perform arithmetic evaluation on the ARGs, and store the result in the
15428 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15429 # must be portable across $(()) and expr.
15430 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15431 eval 'as_fn_arith ()
15433 as_val=$(( $* ))
15435 else
15436 as_fn_arith ()
15438 as_val=`expr "$@" || test $? -eq 1`
15440 fi # as_fn_arith
15443 if expr a : '\(a\)' >/dev/null 2>&1 &&
15444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15445 as_expr=expr
15446 else
15447 as_expr=false
15450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15451 as_basename=basename
15452 else
15453 as_basename=false
15456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15457 as_dirname=dirname
15458 else
15459 as_dirname=false
15462 as_me=`$as_basename -- "$0" ||
15463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15464 X"$0" : 'X\(//\)$' \| \
15465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15466 $as_echo X/"$0" |
15467 sed '/^.*\/\([^/][^/]*\)\/*$/{
15468 s//\1/
15471 /^X\/\(\/\/\)$/{
15472 s//\1/
15475 /^X\/\(\/\).*/{
15476 s//\1/
15479 s/.*/./; q'`
15481 # Avoid depending upon Character Ranges.
15482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15485 as_cr_digits='0123456789'
15486 as_cr_alnum=$as_cr_Letters$as_cr_digits
15488 ECHO_C= ECHO_N= ECHO_T=
15489 case `echo -n x` in #(((((
15490 -n*)
15491 case `echo 'xy\c'` in
15492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15493 xy) ECHO_C='\c';;
15494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15495 ECHO_T=' ';;
15496 esac;;
15498 ECHO_N='-n';;
15499 esac
15501 rm -f conf$$ conf$$.exe conf$$.file
15502 if test -d conf$$.dir; then
15503 rm -f conf$$.dir/conf$$.file
15504 else
15505 rm -f conf$$.dir
15506 mkdir conf$$.dir 2>/dev/null
15508 if (echo >conf$$.file) 2>/dev/null; then
15509 if ln -s conf$$.file conf$$ 2>/dev/null; then
15510 as_ln_s='ln -s'
15511 # ... but there are two gotchas:
15512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15514 # In both cases, we have to default to `cp -p'.
15515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15516 as_ln_s='cp -p'
15517 elif ln conf$$.file conf$$ 2>/dev/null; then
15518 as_ln_s=ln
15519 else
15520 as_ln_s='cp -p'
15522 else
15523 as_ln_s='cp -p'
15525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15526 rmdir conf$$.dir 2>/dev/null
15529 # as_fn_mkdir_p
15530 # -------------
15531 # Create "$as_dir" as a directory, including parents if necessary.
15532 as_fn_mkdir_p ()
15535 case $as_dir in #(
15536 -*) as_dir=./$as_dir;;
15537 esac
15538 test -d "$as_dir" || eval $as_mkdir_p || {
15539 as_dirs=
15540 while :; do
15541 case $as_dir in #(
15542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15543 *) as_qdir=$as_dir;;
15544 esac
15545 as_dirs="'$as_qdir' $as_dirs"
15546 as_dir=`$as_dirname -- "$as_dir" ||
15547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15548 X"$as_dir" : 'X\(//\)[^/]' \| \
15549 X"$as_dir" : 'X\(//\)$' \| \
15550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15551 $as_echo X"$as_dir" |
15552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15553 s//\1/
15556 /^X\(\/\/\)[^/].*/{
15557 s//\1/
15560 /^X\(\/\/\)$/{
15561 s//\1/
15564 /^X\(\/\).*/{
15565 s//\1/
15568 s/.*/./; q'`
15569 test -d "$as_dir" && break
15570 done
15571 test -z "$as_dirs" || eval "mkdir $as_dirs"
15572 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15575 } # as_fn_mkdir_p
15576 if mkdir -p . 2>/dev/null; then
15577 as_mkdir_p='mkdir -p "$as_dir"'
15578 else
15579 test -d ./-p && rmdir ./-p
15580 as_mkdir_p=false
15583 if test -x / >/dev/null 2>&1; then
15584 as_test_x='test -x'
15585 else
15586 if ls -dL / >/dev/null 2>&1; then
15587 as_ls_L_option=L
15588 else
15589 as_ls_L_option=
15591 as_test_x='
15592 eval sh -c '\''
15593 if test -d "$1"; then
15594 test -d "$1/.";
15595 else
15596 case $1 in #(
15597 -*)set "./$1";;
15598 esac;
15599 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15600 ???[sx]*):;;*)false;;esac;fi
15601 '\'' sh
15604 as_executable_p=$as_test_x
15606 # Sed expression to map a string onto a valid CPP name.
15607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15609 # Sed expression to map a string onto a valid variable name.
15610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15613 exec 6>&1
15614 ## ----------------------------------- ##
15615 ## Main body of $CONFIG_STATUS script. ##
15616 ## ----------------------------------- ##
15617 _ASEOF
15618 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 # Save the log message, to keep $0 and so on meaningful, and to
15622 # report actual input values of CONFIG_FILES etc. instead of their
15623 # values after options handling.
15624 ac_log="
15625 This file was extended by $as_me, which was
15626 generated by GNU Autoconf 2.64. Invocation command line was
15628 CONFIG_FILES = $CONFIG_FILES
15629 CONFIG_HEADERS = $CONFIG_HEADERS
15630 CONFIG_LINKS = $CONFIG_LINKS
15631 CONFIG_COMMANDS = $CONFIG_COMMANDS
15632 $ $0 $@
15634 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15637 _ACEOF
15639 case $ac_config_files in *"
15640 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15641 esac
15645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15646 # Files that config.status was made for.
15647 config_files="$ac_config_files"
15649 _ACEOF
15651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15652 ac_cs_usage="\
15653 \`$as_me' instantiates files and other configuration actions
15654 from templates according to the current configuration. Unless the files
15655 and actions are specified as TAGs, all are instantiated by default.
15657 Usage: $0 [OPTION]... [TAG]...
15659 -h, --help print this help, then exit
15660 -V, --version print version number and configuration settings, then exit
15661 -q, --quiet, --silent
15662 do not print progress messages
15663 -d, --debug don't remove temporary files
15664 --recheck update $as_me by reconfiguring in the same conditions
15665 --file=FILE[:TEMPLATE]
15666 instantiate the configuration file FILE
15668 Configuration files:
15669 $config_files
15671 Report bugs to the package provider."
15673 _ACEOF
15674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675 ac_cs_version="\\
15676 config.status
15677 configured by $0, generated by GNU Autoconf 2.64,
15678 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15680 Copyright (C) 2009 Free Software Foundation, Inc.
15681 This config.status script is free software; the Free Software Foundation
15682 gives unlimited permission to copy, distribute and modify it."
15684 ac_pwd='$ac_pwd'
15685 srcdir='$srcdir'
15686 INSTALL='$INSTALL'
15687 AWK='$AWK'
15688 test -n "\$AWK" || AWK=awk
15689 _ACEOF
15691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15692 # The default lists apply if the user does not specify any file.
15693 ac_need_defaults=:
15694 while test $# != 0
15696 case $1 in
15697 --*=*)
15698 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15699 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15700 ac_shift=:
15703 ac_option=$1
15704 ac_optarg=$2
15705 ac_shift=shift
15707 esac
15709 case $ac_option in
15710 # Handling of the options.
15711 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15712 ac_cs_recheck=: ;;
15713 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15714 $as_echo "$ac_cs_version"; exit ;;
15715 --debug | --debu | --deb | --de | --d | -d )
15716 debug=: ;;
15717 --file | --fil | --fi | --f )
15718 $ac_shift
15719 case $ac_optarg in
15720 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15721 esac
15722 as_fn_append CONFIG_FILES " '$ac_optarg'"
15723 ac_need_defaults=false;;
15724 --he | --h | --help | --hel | -h )
15725 $as_echo "$ac_cs_usage"; exit ;;
15726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15727 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15728 ac_cs_silent=: ;;
15730 # This is an error.
15731 -*) as_fn_error "unrecognized option: \`$1'
15732 Try \`$0 --help' for more information." ;;
15734 *) as_fn_append ac_config_targets " $1"
15735 ac_need_defaults=false ;;
15737 esac
15738 shift
15739 done
15741 ac_configure_extra_args=
15743 if $ac_cs_silent; then
15744 exec 6>/dev/null
15745 ac_configure_extra_args="$ac_configure_extra_args --silent"
15748 _ACEOF
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750 if \$ac_cs_recheck; then
15751 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15752 shift
15753 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15754 CONFIG_SHELL='$SHELL'
15755 export CONFIG_SHELL
15756 exec "\$@"
15759 _ACEOF
15760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15761 exec 5>>config.log
15763 echo
15764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15765 ## Running $as_me. ##
15766 _ASBOX
15767 $as_echo "$ac_log"
15768 } >&5
15770 _ACEOF
15771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15773 # INIT-COMMANDS
15775 extrasub_build="$extrasub_build"
15776 extrasub_host="$extrasub_host"
15777 extrasub_target="$extrasub_target"
15779 _ACEOF
15781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 # Handling of arguments.
15784 for ac_config_target in $ac_config_targets
15786 case $ac_config_target in
15787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15789 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15790 esac
15791 done
15794 # If the user did not use the arguments to specify the items to instantiate,
15795 # then the envvar interface is used. Set only those that are not.
15796 # We use the long form for the default assignment because of an extremely
15797 # bizarre bug on SunOS 4.1.3.
15798 if $ac_need_defaults; then
15799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15802 # Have a temporary directory for convenience. Make it in the build tree
15803 # simply because there is no reason against having it here, and in addition,
15804 # creating and moving files from /tmp can sometimes cause problems.
15805 # Hook for its removal unless debugging.
15806 # Note that there is a small window in which the directory will not be cleaned:
15807 # after its creation but before its name has been assigned to `$tmp'.
15808 $debug ||
15810 tmp=
15811 trap 'exit_status=$?
15812 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15814 trap 'as_fn_exit 1' 1 2 13 15
15816 # Create a (secure) tmp directory for tmp files.
15819 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15820 test -n "$tmp" && test -d "$tmp"
15821 } ||
15823 tmp=./conf$$-$RANDOM
15824 (umask 077 && mkdir "$tmp")
15825 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15827 # Set up the scripts for CONFIG_FILES section.
15828 # No need to generate them if there are no CONFIG_FILES.
15829 # This happens for instance with `./config.status config.h'.
15830 if test -n "$CONFIG_FILES"; then
15832 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15833 ac_cs_awk_getline=:
15834 ac_cs_awk_pipe_init=
15835 ac_cs_awk_read_file='
15836 while ((getline aline < (F[key])) > 0)
15837 print(aline)
15838 close(F[key])'
15839 ac_cs_awk_pipe_fini=
15840 else
15841 ac_cs_awk_getline=false
15842 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15843 ac_cs_awk_read_file='
15844 print "|#_!!_#|"
15845 print "cat " F[key] " &&"
15846 '$ac_cs_awk_pipe_init
15847 # The final `:' finishes the AND list.
15848 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15850 ac_cr=`echo X | tr X '\015'`
15851 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15852 # But we know of no other shell where ac_cr would be empty at this
15853 # point, so we can use a bashism as a fallback.
15854 if test "x$ac_cr" = x; then
15855 eval ac_cr=\$\'\\r\'
15857 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15858 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15859 ac_cs_awk_cr='\r'
15860 else
15861 ac_cs_awk_cr=$ac_cr
15864 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15865 _ACEOF
15867 # Create commands to substitute file output variables.
15869 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15870 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15871 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15872 echo "_ACAWK" &&
15873 echo "_ACEOF"
15874 } >conf$$files.sh &&
15875 . ./conf$$files.sh ||
15876 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15877 rm -f conf$$files.sh
15880 echo "cat >conf$$subs.awk <<_ACEOF" &&
15881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15882 echo "_ACEOF"
15883 } >conf$$subs.sh ||
15884 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15885 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15886 ac_delim='%!_!# '
15887 for ac_last_try in false false false false false :; do
15888 . ./conf$$subs.sh ||
15889 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15891 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15892 if test $ac_delim_n = $ac_delim_num; then
15893 break
15894 elif $ac_last_try; then
15895 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15896 else
15897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15899 done
15900 rm -f conf$$subs.sh
15902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15903 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15904 _ACEOF
15905 sed -n '
15907 s/^/S["/; s/!.*/"]=/
15910 s/^[^!]*!//
15911 :repl
15912 t repl
15913 s/'"$ac_delim"'$//
15914 t delim
15917 s/\(.\{148\}\).*/\1/
15918 t more1
15919 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15922 b repl
15923 :more1
15924 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15927 s/.\{148\}//
15928 t nl
15929 :delim
15931 s/\(.\{148\}\).*/\1/
15932 t more2
15933 s/["\\]/\\&/g; s/^/"/; s/$/"/
15936 :more2
15937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15940 s/.\{148\}//
15941 t delim
15942 ' <conf$$subs.awk | sed '
15943 /^[^""]/{
15945 s/\n//
15947 ' >>$CONFIG_STATUS || ac_write_fail=1
15948 rm -f conf$$subs.awk
15949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15950 _ACAWK
15951 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15952 for (key in S) S_is_set[key] = 1
15953 FS = "\a"
15954 \$ac_cs_awk_pipe_init
15957 line = $ 0
15958 nfields = split(line, field, "@")
15959 substed = 0
15960 len = length(field[1])
15961 for (i = 2; i < nfields; i++) {
15962 key = field[i]
15963 keylen = length(key)
15964 if (S_is_set[key]) {
15965 value = S[key]
15966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15967 len += length(value) + length(field[++i])
15968 substed = 1
15969 } else
15970 len += 1 + keylen
15972 if (nfields == 3 && !substed) {
15973 key = field[2]
15974 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15975 \$ac_cs_awk_read_file
15976 next
15979 print line
15981 \$ac_cs_awk_pipe_fini
15982 _ACAWK
15983 _ACEOF
15984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15985 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15987 else
15989 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15990 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15991 _ACEOF
15993 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15994 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15995 # trailing colons and then remove the whole line if VPATH becomes empty
15996 # (actually we leave an empty line to preserve line numbers).
15997 if test "x$srcdir" = x.; then
15998 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15999 s/:*\$(srcdir):*/:/
16000 s/:*\${srcdir}:*/:/
16001 s/:*@srcdir@:*/:/
16002 s/^\([^=]*=[ ]*\):*/\1/
16003 s/:*$//
16004 s/^[^=]*=[ ]*$//
16008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16009 fi # test -n "$CONFIG_FILES"
16012 eval set X " :F $CONFIG_FILES "
16013 shift
16014 for ac_tag
16016 case $ac_tag in
16017 :[FHLC]) ac_mode=$ac_tag; continue;;
16018 esac
16019 case $ac_mode$ac_tag in
16020 :[FHL]*:*);;
16021 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16022 :[FH]-) ac_tag=-:-;;
16023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16024 esac
16025 ac_save_IFS=$IFS
16026 IFS=:
16027 set x $ac_tag
16028 IFS=$ac_save_IFS
16029 shift
16030 ac_file=$1
16031 shift
16033 case $ac_mode in
16034 :L) ac_source=$1;;
16035 :[FH])
16036 ac_file_inputs=
16037 for ac_f
16039 case $ac_f in
16040 -) ac_f="$tmp/stdin";;
16041 *) # Look for the file first in the build tree, then in the source tree
16042 # (if the path is not absolute). The absolute path cannot be DOS-style,
16043 # because $ac_f cannot contain `:'.
16044 test -f "$ac_f" ||
16045 case $ac_f in
16046 [\\/$]*) false;;
16047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16048 esac ||
16049 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16050 esac
16051 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16052 as_fn_append ac_file_inputs " '$ac_f'"
16053 done
16055 # Let's still pretend it is `configure' which instantiates (i.e., don't
16056 # use $as_me), people would be surprised to read:
16057 # /* config.h. Generated by config.status. */
16058 configure_input='Generated from '`
16059 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16060 `' by configure.'
16061 if test x"$ac_file" != x-; then
16062 configure_input="$ac_file. $configure_input"
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16064 $as_echo "$as_me: creating $ac_file" >&6;}
16066 # Neutralize special characters interpreted by sed in replacement strings.
16067 case $configure_input in #(
16068 *\&* | *\|* | *\\* )
16069 ac_sed_conf_input=`$as_echo "$configure_input" |
16070 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16071 *) ac_sed_conf_input=$configure_input;;
16072 esac
16074 case $ac_tag in
16075 *:-:* | *:-) cat >"$tmp/stdin" \
16076 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16077 esac
16079 esac
16081 ac_dir=`$as_dirname -- "$ac_file" ||
16082 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16083 X"$ac_file" : 'X\(//\)[^/]' \| \
16084 X"$ac_file" : 'X\(//\)$' \| \
16085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16086 $as_echo X"$ac_file" |
16087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16088 s//\1/
16091 /^X\(\/\/\)[^/].*/{
16092 s//\1/
16095 /^X\(\/\/\)$/{
16096 s//\1/
16099 /^X\(\/\).*/{
16100 s//\1/
16103 s/.*/./; q'`
16104 as_dir="$ac_dir"; as_fn_mkdir_p
16105 ac_builddir=.
16107 case "$ac_dir" in
16108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16111 # A ".." for each directory in $ac_dir_suffix.
16112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16113 case $ac_top_builddir_sub in
16114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16116 esac ;;
16117 esac
16118 ac_abs_top_builddir=$ac_pwd
16119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16120 # for backward compatibility:
16121 ac_top_builddir=$ac_top_build_prefix
16123 case $srcdir in
16124 .) # We are building in place.
16125 ac_srcdir=.
16126 ac_top_srcdir=$ac_top_builddir_sub
16127 ac_abs_top_srcdir=$ac_pwd ;;
16128 [\\/]* | ?:[\\/]* ) # Absolute name.
16129 ac_srcdir=$srcdir$ac_dir_suffix;
16130 ac_top_srcdir=$srcdir
16131 ac_abs_top_srcdir=$srcdir ;;
16132 *) # Relative name.
16133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16134 ac_top_srcdir=$ac_top_build_prefix$srcdir
16135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16136 esac
16137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16140 case $ac_mode in
16143 # CONFIG_FILE
16146 case $INSTALL in
16147 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16148 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16149 esac
16150 _ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 # If the template does not know about datarootdir, expand it.
16154 # FIXME: This hack should be removed a few years after 2.60.
16155 ac_datarootdir_hack=; ac_datarootdir_seen=
16156 ac_sed_dataroot='
16157 /datarootdir/ {
16161 /@datadir@/p
16162 /@docdir@/p
16163 /@infodir@/p
16164 /@localedir@/p
16165 /@mandir@/p'
16166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16167 *datarootdir*) ac_datarootdir_seen=yes;;
16168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16171 _ACEOF
16172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16173 ac_datarootdir_hack='
16174 s&@datadir@&$datadir&g
16175 s&@docdir@&$docdir&g
16176 s&@infodir@&$infodir&g
16177 s&@localedir@&$localedir&g
16178 s&@mandir@&$mandir&g
16179 s&\\\${datarootdir}&$datarootdir&g' ;;
16180 esac
16181 _ACEOF
16183 # Neutralize VPATH when `$srcdir' = `.'.
16184 # Shell code in configure.ac might set extrasub.
16185 # FIXME: do we really want to maintain this feature?
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 ac_sed_extra="$ac_vpsub
16188 $extrasub
16189 _ACEOF
16190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16193 s|@configure_input@|$ac_sed_conf_input|;t t
16194 s&@top_builddir@&$ac_top_builddir_sub&;t t
16195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16196 s&@srcdir@&$ac_srcdir&;t t
16197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16198 s&@top_srcdir@&$ac_top_srcdir&;t t
16199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16200 s&@builddir@&$ac_builddir&;t t
16201 s&@abs_builddir@&$ac_abs_builddir&;t t
16202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16203 s&@INSTALL@&$ac_INSTALL&;t t
16204 $ac_datarootdir_hack
16206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16207 if $ac_cs_awk_getline; then
16208 $AWK -f "$tmp/subs.awk"
16209 else
16210 $AWK -f "$tmp/subs.awk" | $SHELL
16211 fi >$tmp/out \
16212 || as_fn_error "could not create $ac_file" "$LINENO" 5
16214 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16215 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16216 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16218 which seems to be undefined. Please make sure it is defined." >&5
16219 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16220 which seems to be undefined. Please make sure it is defined." >&2;}
16222 rm -f "$tmp/stdin"
16223 case $ac_file in
16224 -) cat "$tmp/out" && rm -f "$tmp/out";;
16225 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16226 esac \
16227 || as_fn_error "could not create $ac_file" "$LINENO" 5
16232 esac
16235 case $ac_file$ac_mode in
16236 "Makefile":F) sed "$extrasub_build" Makefile |
16237 sed "$extrasub_host" |
16238 sed "$extrasub_target" > mf$$
16239 mv -f mf$$ Makefile ;;
16241 esac
16242 done # for ac_tag
16245 as_fn_exit 0
16246 _ACEOF
16247 ac_clean_files=$ac_clean_files_save
16249 test $ac_write_fail = 0 ||
16250 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16253 # configure is writing to config.log, and then calls config.status.
16254 # config.status does its own redirection, appending to config.log.
16255 # Unfortunately, on DOS this fails, as config.log is still kept open
16256 # by configure, so config.status won't be able to write to it; its
16257 # output is simply discarded. So we exec the FD to /dev/null,
16258 # effectively closing config.log, so it can be properly (re)opened and
16259 # appended to by config.status. When coming back to configure, we
16260 # need to make the FD available again.
16261 if test "$no_create" != yes; then
16262 ac_cs_success=:
16263 ac_config_status_args=
16264 test "$silent" = yes &&
16265 ac_config_status_args="$ac_config_status_args --quiet"
16266 exec 5>/dev/null
16267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16268 exec 5>>config.log
16269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16270 # would make configure fail if this is the last instruction.
16271 $ac_cs_success || as_fn_exit $?
16273 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16275 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}