* config/abi/pre/gnu.ver: Adjust basic_ostream exports.
[official-gcc.git] / configure
blob55fca62a5d6d59c5ea17e2dc56229a247755a774
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 stage1_languages
646 extra_host_libiberty_configure_flags
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 clooginc
650 clooglibs
651 islinc
652 isllibs
653 poststage1_ldflags
654 poststage1_libs
655 stage1_ldflags
656 stage1_libs
657 extra_isl_gmp_configure_flags
658 extra_mpc_mpfr_configure_flags
659 extra_mpc_gmp_configure_flags
660 extra_mpfr_configure_flags
661 gmpinc
662 gmplibs
663 do_compare
664 GNATMAKE
665 GNATBIND
666 ac_ct_CXX
667 CXXFLAGS
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 EXTRA_CONFIGARGS_LIBJAVA
677 target_subdir
678 host_subdir
679 build_subdir
680 build_libsubdir
683 LN_S
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_os
689 target_vendor
690 target_cpu
691 target
692 host_os
693 host_vendor
694 host_cpu
695 host
696 target_noncanonical
697 host_noncanonical
698 build_noncanonical
699 build_os
700 build_vendor
701 build_cpu
702 build
703 TOPLEVEL_CONFIGURE_ARGUMENTS
704 target_alias
705 host_alias
706 build_alias
707 LIBS
708 ECHO_T
709 ECHO_N
710 ECHO_C
711 DEFS
712 mandir
713 localedir
714 libdir
715 psdir
716 pdfdir
717 dvidir
718 htmldir
719 infodir
720 docdir
721 oldincludedir
722 includedir
723 localstatedir
724 sharedstatedir
725 sysconfdir
726 datadir
727 datarootdir
728 libexecdir
729 sbindir
730 bindir
731 program_transform_name
732 prefix
733 exec_prefix
734 PACKAGE_URL
735 PACKAGE_BUGREPORT
736 PACKAGE_STRING
737 PACKAGE_VERSION
738 PACKAGE_TARNAME
739 PACKAGE_NAME
740 PATH_SEPARATOR
741 SHELL'
742 ac_subst_files='serialization_dependencies
743 host_makefile_frag
744 target_makefile_frag
745 alphaieee_frag
746 ospace_frag'
747 ac_user_opts='
748 enable_option_checking
749 with_build_libsubdir
750 enable_gold
751 enable_ld
752 enable_libquadmath
753 enable_libquadmath_support
754 enable_libada
755 enable_libssp
756 enable_libstdcxx
757 enable_static_libjava
758 enable_bootstrap
759 with_mpc
760 with_mpc_include
761 with_mpc_lib
762 with_mpfr_dir
763 with_mpfr
764 with_mpfr_include
765 with_mpfr_lib
766 with_gmp_dir
767 with_gmp
768 with_gmp_include
769 with_gmp_lib
770 with_host_libstdcxx
771 with_stage1_libs
772 with_stage1_ldflags
773 with_boot_libs
774 with_boot_ldflags
775 with_cloog
776 with_isl
777 with_isl_include
778 with_isl_lib
779 enable_isl_version_check
780 with_cloog_include
781 with_cloog_lib
782 enable_cloog_version_check
783 enable_lto
784 enable_linker_plugin_configure_flags
785 enable_linker_plugin_flags
786 enable_stage1_languages
787 enable_objc_gc
788 with_build_sysroot
789 with_debug_prefix_map
790 with_build_config
791 enable_vtable_verify
792 enable_serial_configure
793 with_build_time_tools
794 enable_maintainer_mode
795 enable_stage1_checking
796 enable_werror
797 enable_host_shared
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
808 CXXFLAGS
810 build_configargs
811 host_configargs
812 target_configargs
815 DLLTOOL
817 LIPO
819 RANLIB
820 STRIP
821 WINDRES
822 WINDMC
823 OBJCOPY
824 OBJDUMP
825 READELF
826 CC_FOR_TARGET
827 CXX_FOR_TARGET
828 GCC_FOR_TARGET
829 GCJ_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJDUMP_FOR_TARGET
839 RANLIB_FOR_TARGET
840 READELF_FOR_TARGET
841 STRIP_FOR_TARGET
842 WINDRES_FOR_TARGET
843 WINDMC_FOR_TARGET'
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
894 ac_prev=
895 ac_dashdash=
896 for ac_option
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
914 ac_dashdash=yes ;;
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
933 --config-cache | -C)
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 as_fn_error "invalid feature name: $ac_useropt"
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
974 -enable-* | --enable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
983 "enable_$ac_useropt"
984 "*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1068 no_create=yes ;;
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1228 -*) as_fn_error "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information."
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 esac
1251 done
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error "missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308 test "$silent" = yes && exec 6>/dev/null
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error "pwd does not report name of working directory"
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 $as_echo X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1337 /^X\(\/\/\)$/{
1338 s//\1/
1341 /^X\(\/\).*/{
1342 s//\1/
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1350 else
1351 ac_srcdir_defaulted=no
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 case $srcdir in
1372 *" "*)
1373 as_fn_error "path to source, $srcdir, contains spaces"
1375 esac
1376 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378 for ac_var in $ac_precious_vars; do
1379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_${ac_var}_value=\$${ac_var}
1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 done
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1391 cat <<_ACEOF
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1401 Configuration:
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 [PREFIX]
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1445 _ACEOF
1447 cat <<\_ACEOF
1449 Program names:
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454 System types:
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1457 --target=TARGET configure for building compilers for TARGET [HOST]
1458 _ACEOF
1461 if test -n "$ac_init_help"; then
1463 cat <<\_ACEOF
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1470 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1471 --disable-libquadmath do not build libquadmath directory
1472 --disable-libquadmath-support
1473 disable libquadmath support for Fortran
1474 --enable-libada build libada directory
1475 --enable-libssp build libssp directory
1476 --disable-libstdcxx do not build libstdc++-v3 directory
1477 --enable-static-libjava[=ARG]
1478 build static libjava [default=no]
1479 --enable-bootstrap enable bootstrapping [yes if native build]
1480 --disable-isl-version-check
1481 disable check for ISL version
1482 --disable-cloog-version-check
1483 disable check for CLooG version
1484 --enable-lto enable link time optimization support
1485 --enable-linker-plugin-configure-flags=FLAGS
1486 additional flags for configuring linker plugins
1487 [none]
1488 --enable-linker-plugin-flags=FLAGS
1489 additional flags for configuring and building linker
1490 plugins [none]
1491 --enable-stage1-languages[=all]
1492 choose additional languages to build during stage1.
1493 Mostly useful for compiler development
1494 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1495 Objective-C runtime
1496 --enable-vtable-verify Enable vtable verification feature
1497 --enable-serial-[{host,target,build}-]configure
1498 force sequential configuration of sub-packages for
1499 the host, target or build machine, or all
1500 sub-packages
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-stage1-checking[=all]
1505 choose additional checking for stage1 of the
1506 compiler
1507 --enable-werror enable -Werror in bootstrap stage2 and later
1508 --enable-host-shared build host code as shared libraries
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-build-libsubdir=DIR Directory where to find libraries for build system
1514 --with-mpc=PATH specify prefix directory for installed MPC package.
1515 Equivalent to --with-mpc-include=PATH/include plus
1516 --with-mpc-lib=PATH/lib
1517 --with-mpc-include=PATH specify directory for installed MPC include files
1518 --with-mpc-lib=PATH specify directory for the installed MPC library
1519 --with-mpfr-dir=PATH this option has been REMOVED
1520 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1521 Equivalent to --with-mpfr-include=PATH/include plus
1522 --with-mpfr-lib=PATH/lib
1523 --with-mpfr-include=PATH
1524 specify directory for installed MPFR include files
1525 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1526 --with-gmp-dir=PATH this option has been REMOVED
1527 --with-gmp=PATH specify prefix directory for the installed GMP
1528 package. Equivalent to
1529 --with-gmp-include=PATH/include plus
1530 --with-gmp-lib=PATH/lib
1531 --with-gmp-include=PATH specify directory for installed GMP include files
1532 --with-gmp-lib=PATH specify directory for the installed GMP library
1533 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1534 linking with PPL
1535 --with-stage1-libs=LIBS libraries for stage1
1536 --with-stage1-ldflags=FLAGS
1537 linker flags for stage1
1538 --with-boot-libs=LIBS libraries for stage2 and later
1539 --with-boot-ldflags=FLAGS
1540 linker flags for stage2 and later
1541 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1542 package. Equivalent to
1543 --with-cloog-include=PATH/include plus
1544 --with-cloog-lib=PATH/lib
1545 --with-isl=PATH Specify prefix directory for the installed ISL
1546 package. Equivalent to
1547 --with-isl-include=PATH/include plus
1548 --with-isl-lib=PATH/lib
1549 --with-isl-include=PATH Specify directory for installed ISL include files
1550 --with-isl-lib=PATH Specify the directory for the installed ISL library
1551 --with-cloog-include=PATH
1552 Specify directory for installed CLooG include files
1553 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1554 library
1555 --with-build-sysroot=SYSROOT
1556 use sysroot as the system root during the build
1557 --with-debug-prefix-map='A=B C=D ...'
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
1561 --with-build-time-tools=PATH
1562 use given path to find target tools during the build
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
1589 WINDMC WINDMC for the host
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
1592 READELF READELF for the host
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
1603 GOC_FOR_TARGET
1604 GOC for the target
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
1617 OBJDUMP_FOR_TARGET
1618 OBJDUMP for the target
1619 RANLIB_FOR_TARGET
1620 RANLIB for the target
1621 READELF_FOR_TARGET
1622 READELF for the target
1623 STRIP_FOR_TARGET
1624 STRIP for the target
1625 WINDRES_FOR_TARGET
1626 WINDRES for the target
1627 WINDMC_FOR_TARGET
1628 WINDMC for the target
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1633 Report bugs to the package provider.
1634 _ACEOF
1635 ac_status=$?
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695 cat <<\_ACEOF
1696 configure
1697 generated by GNU Autoconf 2.64
1699 Copyright (C) 2009 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703 exit
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=1
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 return $ac_retval
1746 } # ac_fn_c_try_compile
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext
1755 if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 return $ac_retval
1784 } # ac_fn_cxx_try_compile
1786 # ac_fn_cxx_try_link LINENO
1787 # -------------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_cxx_try_link ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_cxx_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 return $ac_retval
1830 } # ac_fn_cxx_try_link
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_link ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext conftest$ac_exeext
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 $as_test_x conftest$ac_exeext
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_c_try_link
1877 cat >config.log <<_ACEOF
1878 This file contains any messages produced by compilers while
1879 running configure, to aid debugging if configure makes a mistake.
1881 It was created by $as_me, which was
1882 generated by GNU Autoconf 2.64. Invocation command line was
1884 $ $0 $@
1886 _ACEOF
1887 exec 5>>config.log
1889 cat <<_ASUNAME
1890 ## --------- ##
1891 ## Platform. ##
1892 ## --------- ##
1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1903 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911 _ASUNAME
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 $as_echo "PATH: $as_dir"
1919 done
1920 IFS=$as_save_IFS
1922 } >&5
1924 cat >&5 <<_ACEOF
1927 ## ----------- ##
1928 ## Core tests. ##
1929 ## ----------- ##
1931 _ACEOF
1934 # Keep a trace of the command line.
1935 # Strip out --no-create and --no-recursion so they do not pile up.
1936 # Strip out --silent because we don't want to record it for future runs.
1937 # Also quote any args containing shell meta-characters.
1938 # Make two passes to allow for proper duplicate-argument suppression.
1939 ac_configure_args=
1940 ac_configure_args0=
1941 ac_configure_args1=
1942 ac_must_keep_next=false
1943 for ac_pass in 1 2
1945 for ac_arg
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
1953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 esac
1955 case $ac_pass in
1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1974 as_fn_append ac_configure_args " '$ac_arg'"
1976 esac
1977 done
1978 done
1979 { ac_configure_args0=; unset ac_configure_args0;}
1980 { ac_configure_args1=; unset ac_configure_args1;}
1982 # When interrupted or exit'd, cleanup temporary files, and complete
1983 # config.log. We remove comments because anyway the quotes in there
1984 # would cause problems or look ugly.
1985 # WARNING: Use '\'' to represent an apostrophe within the trap.
1986 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987 trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1990 echo
1992 cat <<\_ASBOX
1993 ## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##
1996 _ASBOX
1997 echo
1998 # The following way of writing the cache mishandles newlines in values,
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in #(
2003 *${as_nl}*)
2004 case $ac_var in #(
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007 esac
2008 case $ac_var in #(
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2012 esac ;;
2013 esac
2014 done
2015 (set) 2>&1 |
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2018 sed -n \
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021 ;; #(
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025 esac |
2026 sort
2028 echo
2030 cat <<\_ASBOX
2031 ## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##
2034 _ASBOX
2035 echo
2036 for ac_var in $ac_subst_vars
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 $as_echo "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2046 if test -n "$ac_subst_files"; then
2047 cat <<\_ASBOX
2048 ## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##
2051 _ASBOX
2052 echo
2053 for ac_var in $ac_subst_files
2055 eval ac_val=\$$ac_var
2056 case $ac_val in
2057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2058 esac
2059 $as_echo "$ac_var='\''$ac_val'\''"
2060 done | sort
2061 echo
2064 if test -s confdefs.h; then
2065 cat <<\_ASBOX
2066 ## ----------- ##
2067 ## confdefs.h. ##
2068 ## ----------- ##
2069 _ASBOX
2070 echo
2071 cat confdefs.h
2072 echo
2074 test "$ac_signal" != 0 &&
2075 $as_echo "$as_me: caught signal $ac_signal"
2076 $as_echo "$as_me: exit $exit_status"
2077 } >&5
2078 rm -f core *.core core.conftest.* &&
2079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2080 exit $exit_status
2082 for ac_signal in 1 2 13 15; do
2083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2084 done
2085 ac_signal=0
2087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2088 rm -f -r conftest* confdefs.h
2090 $as_echo "/* confdefs.h */" > confdefs.h
2092 # Predefined preprocessor variables.
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_NAME "$PACKAGE_NAME"
2096 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2100 _ACEOF
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2104 _ACEOF
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_STRING "$PACKAGE_STRING"
2108 _ACEOF
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2112 _ACEOF
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_URL "$PACKAGE_URL"
2116 _ACEOF
2119 # Let the site file select an alternate cache file if it wants to.
2120 # Prefer an explicitly selected file to automatically selected ones.
2121 ac_site_file1=NONE
2122 ac_site_file2=NONE
2123 if test -n "$CONFIG_SITE"; then
2124 ac_site_file1=$CONFIG_SITE
2125 elif test "x$prefix" != xNONE; then
2126 ac_site_file1=$prefix/share/config.site
2127 ac_site_file2=$prefix/etc/config.site
2128 else
2129 ac_site_file1=$ac_default_prefix/share/config.site
2130 ac_site_file2=$ac_default_prefix/etc/config.site
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2134 test "x$ac_site_file" = xNONE && continue
2135 if test -r "$ac_site_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138 sed 's/^/| /' "$ac_site_file" >&5
2139 . "$ac_site_file"
2141 done
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special
2145 # files actually), so we avoid doing that.
2146 if test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149 case $cache_file in
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2152 esac
2154 else
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2157 >$cache_file
2160 # Check that the precious variables saved in the cache have kept the same
2161 # value.
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2169 set,)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,set)
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2177 ,);;
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2187 else
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2196 fi;;
2197 esac
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2200 case $ac_new_val in
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2203 esac
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2207 esac
2209 done
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2221 ac_ext=c
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 progname=$0
2236 # if PWD already has a value, it is probably wrong.
2237 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2239 # Export original configure arguments for use by sub-configures.
2240 # Quote arguments with shell meta charatcers.
2241 TOPLEVEL_CONFIGURE_ARGUMENTS=
2242 set -- "$progname" "$@"
2243 for ac_arg
2245 case "$ac_arg" in
2246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2247 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2248 # if the argument is of the form -foo=baz, quote the baz part only
2249 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2250 *) ;;
2251 esac
2252 # Add the quoted argument to the list.
2253 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2254 done
2255 if test "$silent" = yes; then
2256 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2258 # Remove the initial space we just introduced and, as these will be
2259 # expanded by make, quote '$'.
2260 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2263 # Find the build, host, and target systems.
2264 ac_aux_dir=
2265 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2266 for ac_t in install-sh install.sh shtool; do
2267 if test -f "$ac_dir/$ac_t"; then
2268 ac_aux_dir=$ac_dir
2269 ac_install_sh="$ac_aux_dir/$ac_t -c"
2270 break 2
2272 done
2273 done
2274 if test -z "$ac_aux_dir"; then
2275 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2278 # These three variables are undocumented and unsupported,
2279 # and are intended to be withdrawn in a future Autoconf release.
2280 # They can cause serious problems if a builder's source tree is in a directory
2281 # whose full name contains unusual characters.
2282 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2283 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2284 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2287 # Make sure we can run config.sub.
2288 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2289 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2292 $as_echo_n "checking build system type... " >&6; }
2293 if test "${ac_cv_build+set}" = set; then :
2294 $as_echo_n "(cached) " >&6
2295 else
2296 ac_build_alias=$build_alias
2297 test "x$ac_build_alias" = x &&
2298 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2299 test "x$ac_build_alias" = x &&
2300 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2301 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2302 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2306 $as_echo "$ac_cv_build" >&6; }
2307 case $ac_cv_build in
2308 *-*-*) ;;
2309 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2310 esac
2311 build=$ac_cv_build
2312 ac_save_IFS=$IFS; IFS='-'
2313 set x $ac_cv_build
2314 shift
2315 build_cpu=$1
2316 build_vendor=$2
2317 shift; shift
2318 # Remember, the first character of IFS is used to create $*,
2319 # except with old shells:
2320 build_os=$*
2321 IFS=$ac_save_IFS
2322 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2325 case ${build_alias} in
2326 "") build_noncanonical=${build} ;;
2327 *) build_noncanonical=${build_alias} ;;
2328 esac
2332 case ${host_alias} in
2333 "") host_noncanonical=${build_noncanonical} ;;
2334 *) host_noncanonical=${host_alias} ;;
2335 esac
2339 case ${target_alias} in
2340 "") target_noncanonical=${host_noncanonical} ;;
2341 *) target_noncanonical=${target_alias} ;;
2342 esac
2347 test "$host_noncanonical" = "$target_noncanonical" &&
2348 test "$program_prefix$program_suffix$program_transform_name" = \
2349 NONENONEs,x,x, &&
2350 program_transform_name=s,y,y,
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2353 $as_echo_n "checking host system type... " >&6; }
2354 if test "${ac_cv_host+set}" = set; then :
2355 $as_echo_n "(cached) " >&6
2356 else
2357 if test "x$host_alias" = x; then
2358 ac_cv_host=$ac_cv_build
2359 else
2360 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2361 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2366 $as_echo "$ac_cv_host" >&6; }
2367 case $ac_cv_host in
2368 *-*-*) ;;
2369 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2370 esac
2371 host=$ac_cv_host
2372 ac_save_IFS=$IFS; IFS='-'
2373 set x $ac_cv_host
2374 shift
2375 host_cpu=$1
2376 host_vendor=$2
2377 shift; shift
2378 # Remember, the first character of IFS is used to create $*,
2379 # except with old shells:
2380 host_os=$*
2381 IFS=$ac_save_IFS
2382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2386 $as_echo_n "checking target system type... " >&6; }
2387 if test "${ac_cv_target+set}" = set; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 if test "x$target_alias" = x; then
2391 ac_cv_target=$ac_cv_host
2392 else
2393 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2394 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2399 $as_echo "$ac_cv_target" >&6; }
2400 case $ac_cv_target in
2401 *-*-*) ;;
2402 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2403 esac
2404 target=$ac_cv_target
2405 ac_save_IFS=$IFS; IFS='-'
2406 set x $ac_cv_target
2407 shift
2408 target_cpu=$1
2409 target_vendor=$2
2410 shift; shift
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2413 target_os=$*
2414 IFS=$ac_save_IFS
2415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2418 # The aliases save the names the user supplied, while $host etc.
2419 # will get canonicalized.
2420 test -n "$target_alias" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_prefix=${target_alias}-
2425 test "$program_prefix" != NONE &&
2426 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2427 # Use a double $ so make ignores it.
2428 test "$program_suffix" != NONE &&
2429 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2430 # Double any \ or $.
2431 # By default was `s,x,x', remove it if useless.
2432 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2433 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2437 # Get 'install' or 'install-sh' and its variants.
2438 # Find a good install program. We prefer a C program (faster),
2439 # so one script is as good as another. But avoid the broken or
2440 # incompatible versions:
2441 # SysV /etc/install, /usr/sbin/install
2442 # SunOS /usr/etc/install
2443 # IRIX /sbin/install
2444 # AIX /bin/install
2445 # AmigaOS /C/install, which installs bootblocks on floppy discs
2446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2449 # OS/2's system install, which has a completely different semantic
2450 # ./install, which can be erroneously created by make from ./install.sh.
2451 # Reject install programs that cannot install multiple files.
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2453 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2454 if test -z "$INSTALL"; then
2455 if test "${ac_cv_path_install+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 # Account for people who put trailing slashes in PATH elements.
2464 case $as_dir/ in #((
2465 ./ | .// | /[cC]/* | \
2466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2467 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2468 /usr/ucb/* ) ;;
2470 # OSF1 and SCO ODT 3.0 have their own names for install.
2471 # Don't use installbsd from OSF since it installs stuff as root
2472 # by default.
2473 for ac_prog in ginstall scoinst install; do
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2476 if test $ac_prog = install &&
2477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478 # AIX install. It has an incompatible calling convention.
2480 elif test $ac_prog = install &&
2481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # program-specific install script used by HP pwplus--don't use.
2484 else
2485 rm -rf conftest.one conftest.two conftest.dir
2486 echo one > conftest.one
2487 echo two > conftest.two
2488 mkdir conftest.dir
2489 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2490 test -s conftest.one && test -s conftest.two &&
2491 test -s conftest.dir/conftest.one &&
2492 test -s conftest.dir/conftest.two
2493 then
2494 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2495 break 3
2499 done
2500 done
2502 esac
2504 done
2505 IFS=$as_save_IFS
2507 rm -rf conftest.one conftest.two conftest.dir
2510 if test "${ac_cv_path_install+set}" = set; then
2511 INSTALL=$ac_cv_path_install
2512 else
2513 # As a last resort, use the slow shell script. Don't cache a
2514 # value for INSTALL within a source directory, because that will
2515 # break other packages using the cache if that directory is
2516 # removed, or if the value is a relative name.
2517 INSTALL=$ac_install_sh
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2521 $as_echo "$INSTALL" >&6; }
2523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2524 # It thinks the first close brace ends the variable substitution.
2525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2532 $as_echo_n "checking whether ln works... " >&6; }
2533 if test "${acx_cv_prog_LN+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 rm -f conftestdata_t
2537 echo >conftestdata_f
2538 if ln conftestdata_f conftestdata_t 2>/dev/null
2539 then
2540 acx_cv_prog_LN=ln
2541 else
2542 acx_cv_prog_LN=no
2544 rm -f conftestdata_f conftestdata_t
2547 if test $acx_cv_prog_LN = no; then
2548 LN="cp"
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2550 $as_echo "no, using $LN" >&6; }
2551 else
2552 LN="$acx_cv_prog_LN"
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2554 $as_echo "yes" >&6; }
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2558 $as_echo_n "checking whether ln -s works... " >&6; }
2559 LN_S=$as_ln_s
2560 if test "$LN_S" = "ln -s"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2562 $as_echo "yes" >&6; }
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2565 $as_echo "no, using $LN_S" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2569 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2570 if test "${ac_cv_path_SED+set}" = set; then :
2571 $as_echo_n "(cached) " >&6
2572 else
2573 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2574 for ac_i in 1 2 3 4 5 6 7; do
2575 ac_script="$ac_script$as_nl$ac_script"
2576 done
2577 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2578 { ac_script=; unset ac_script;}
2579 if test -z "$SED"; then
2580 ac_path_SED_found=false
2581 # Loop through the user's path and test for each of PROGNAME-LIST
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_prog in sed gsed; do
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2590 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2591 # Check for GNU ac_path_SED and select it if it is found.
2592 # Check for GNU $ac_path_SED
2593 case `"$ac_path_SED" --version 2>&1` in
2594 *GNU*)
2595 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2597 ac_count=0
2598 $as_echo_n 0123456789 >"conftest.in"
2599 while :
2601 cat "conftest.in" "conftest.in" >"conftest.tmp"
2602 mv "conftest.tmp" "conftest.in"
2603 cp "conftest.in" "conftest.nl"
2604 $as_echo '' >> "conftest.nl"
2605 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2607 as_fn_arith $ac_count + 1 && ac_count=$as_val
2608 if test $ac_count -gt ${ac_path_SED_max-0}; then
2609 # Best one so far, save it but keep looking for a better one
2610 ac_cv_path_SED="$ac_path_SED"
2611 ac_path_SED_max=$ac_count
2613 # 10*(2^10) chars as input seems more than enough
2614 test $ac_count -gt 10 && break
2615 done
2616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2617 esac
2619 $ac_path_SED_found && break 3
2620 done
2621 done
2622 done
2623 IFS=$as_save_IFS
2624 if test -z "$ac_cv_path_SED"; then
2625 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2627 else
2628 ac_cv_path_SED=$SED
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2633 $as_echo "$ac_cv_path_SED" >&6; }
2634 SED="$ac_cv_path_SED"
2635 rm -f conftest.sed
2637 for ac_prog in gawk mawk nawk awk
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_AWK+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 if test -n "$AWK"; then
2647 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_AWK="$ac_prog"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2660 done
2661 done
2662 IFS=$as_save_IFS
2666 AWK=$ac_cv_prog_AWK
2667 if test -n "$AWK"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2669 $as_echo "$AWK" >&6; }
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2676 test -n "$AWK" && break
2677 done
2680 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2682 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2683 # a relative path.
2684 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2685 INSTALL="${srcpwd}/install-sh -c"
2688 # Set srcdir to "." if that's what it is.
2689 # This is important for multilib support.
2690 pwd=`${PWDCMD-pwd}`
2691 if test "${pwd}" = "${srcpwd}" ; then
2692 srcdir=.
2695 topsrcdir=$srcpwd
2697 extra_host_args=
2699 ### To add a new directory to the tree, first choose whether it is a target
2700 ### or a host dependent tool. Then put it into the appropriate list
2701 ### (library or tools, host or target), doing a dependency sort.
2703 # Subdirs will be configured in the order listed in build_configdirs,
2704 # configdirs, or target_configdirs; see the serialization section below.
2706 # Dependency sorting is only needed when *configuration* must be done in
2707 # a particular order. In all cases a dependency should be specified in
2708 # the Makefile, whether or not it's implicitly specified here.
2710 # Double entries in build_configdirs, configdirs, or target_configdirs may
2711 # cause circular dependencies and break everything horribly.
2713 # these library is used by various programs built for the build
2714 # environment
2716 build_libs="build-libiberty"
2718 # these tools are built for the build environment
2719 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2721 # these libraries are used by various programs built for the host environment
2723 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2725 # these tools are built for the host environment
2726 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2727 # know that we are building the simulator.
2728 # binutils, gas and ld appear in that order because it makes sense to run
2729 # "make check" in that particular order.
2730 # If --enable-gold is used, "gold" may replace "ld".
2731 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2733 # libgcj represents the runtime libraries only used by gcj.
2734 libgcj="target-libffi \
2735 target-zlib \
2736 target-libjava"
2738 # these libraries are built for the target environment, and are built after
2739 # the host libraries and the host tools (which may be a cross compiler)
2740 # Note that libiberty is not a target library.
2741 target_libraries="target-libgcc \
2742 target-libbacktrace \
2743 target-libgloss \
2744 target-newlib \
2745 target-libgomp \
2746 target-libcilkrts \
2747 target-libatomic \
2748 target-libitm \
2749 target-libstdc++-v3 \
2750 target-libsanitizer \
2751 target-libvtv \
2752 target-libssp \
2753 target-libquadmath \
2754 target-libgfortran \
2755 target-boehm-gc \
2756 ${libgcj} \
2757 target-libobjc \
2758 target-libada \
2759 target-libgo"
2761 # these tools are built using the target libraries, and are intended to
2762 # run only in the target environment
2764 # note: any program that *uses* libraries that are in the "target_libraries"
2765 # list belongs in this list.
2767 target_tools="target-rda"
2769 ################################################################################
2771 ## All tools belong in one of the four categories, and are assigned above
2772 ## We assign ${configdirs} this way to remove all embedded newlines. This
2773 ## is important because configure will choke if they ever get through.
2774 ## ${configdirs} is directories we build using the host tools.
2775 ## ${target_configdirs} is directories we build using the target tools.
2776 configdirs=`echo ${host_libs} ${host_tools}`
2777 target_configdirs=`echo ${target_libraries} ${target_tools}`
2778 build_configdirs=`echo ${build_libs} ${build_tools}`
2782 ################################################################################
2784 srcname="gnu development package"
2786 # This gets set non-empty for some net releases of packages.
2787 appdirs=""
2789 # Define is_cross_compiler to save on calls to 'test'.
2790 is_cross_compiler=
2791 if test x"${host}" = x"${target}" ; then
2792 is_cross_compiler=no
2793 else
2794 is_cross_compiler=yes
2797 # Find the build and target subdir names.
2799 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2800 # have matching libraries, they should use host libraries: Makefile.tpl
2801 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2802 # However, they still use the build modules, because the corresponding
2803 # host modules (e.g. bison) are only built for the host when bootstrap
2804 # finishes. So:
2805 # - build_subdir is where we find build modules, and never changes.
2806 # - build_libsubdir is where we find build libraries, and can be overridden.
2808 # Prefix 'build-' so this never conflicts with target_subdir.
2809 build_subdir="build-${build_noncanonical}"
2811 # Check whether --with-build-libsubdir was given.
2812 if test "${with_build_libsubdir+set}" = set; then :
2813 withval=$with_build_libsubdir; build_libsubdir="$withval"
2814 else
2815 build_libsubdir="$build_subdir"
2818 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2819 if ( test $srcdir = . && test -d gcc ) \
2820 || test -d $srcdir/../host-${host_noncanonical}; then
2821 host_subdir="host-${host_noncanonical}"
2822 else
2823 host_subdir=.
2825 # No prefix.
2826 target_subdir=${target_noncanonical}
2828 # Be sure to cover against remnants of an in-tree build.
2829 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2830 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2831 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2834 # Skipdirs are removed silently.
2835 skipdirs=
2836 # Noconfigdirs are removed loudly.
2837 noconfigdirs=""
2839 use_gnu_ld=
2840 # Make sure we don't let GNU ld be added if we didn't want it.
2841 if test x$with_gnu_ld = xno ; then
2842 use_gnu_ld=no
2843 noconfigdirs="$noconfigdirs ld gold"
2846 use_gnu_as=
2847 # Make sure we don't let GNU as be added if we didn't want it.
2848 if test x$with_gnu_as = xno ; then
2849 use_gnu_as=no
2850 noconfigdirs="$noconfigdirs gas"
2853 use_included_zlib=
2854 # Make sure we don't let ZLIB be added if we didn't want it.
2855 if test x$with_system_zlib = xyes ; then
2856 use_included_zlib=no
2857 noconfigdirs="$noconfigdirs zlib"
2860 # some tools are so dependent upon X11 that if we're not building with X,
2861 # it's not even worth trying to configure, much less build, that tool.
2863 case ${with_x} in
2864 yes | "") ;; # the default value for this tree is that X11 is available
2866 skipdirs="${skipdirs} tk itcl libgui"
2867 # We won't be able to build gdbtk without X.
2868 enable_gdbtk=no
2870 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2871 esac
2873 # Some are only suitable for cross toolchains.
2874 # Remove these if host=target.
2875 cross_only="target-libgloss target-newlib target-opcodes"
2877 case $is_cross_compiler in
2878 no) skipdirs="${skipdirs} ${cross_only}" ;;
2879 esac
2881 # If both --with-headers and --with-libs are specified, default to
2882 # --without-newlib.
2883 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2884 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2885 if test x"${with_newlib}" = x ; then
2886 with_newlib=no
2890 # Recognize --with-newlib/--without-newlib.
2891 case ${with_newlib} in
2892 no) skipdirs="${skipdirs} target-newlib" ;;
2893 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2894 esac
2896 # Handle --enable-gold, --enable-ld.
2897 # --disable-gold [--enable-ld]
2898 # Build only ld. Default option.
2899 # --enable-gold [--enable-ld]
2900 # Build both gold and ld. Install gold as "ld.gold", install ld
2901 # as "ld.bfd" and "ld".
2902 # --enable-gold=default [--enable-ld]
2903 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2904 # install ld as "ld.bfd".
2905 # --enable-gold[=default] --disable-ld
2906 # Build only gold, which is then installed as both "ld.gold" and "ld".
2907 # --enable-gold --enable-ld=default
2908 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2909 # and ld.bfd).
2910 # In other words, ld is default
2911 # --enable-gold=default --enable-ld=default
2912 # Error.
2914 default_ld=
2915 # Check whether --enable-gold was given.
2916 if test "${enable_gold+set}" = set; then :
2917 enableval=$enable_gold; ENABLE_GOLD=$enableval
2918 else
2919 ENABLE_GOLD=no
2922 case "${ENABLE_GOLD}" in
2923 yes|default)
2924 # Check for ELF target.
2925 is_elf=no
2926 case "${target}" in
2927 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2928 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2929 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2930 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2931 case "${target}" in
2932 *-*-linux*aout* | *-*-linux*oldld*)
2935 is_elf=yes
2937 esac
2938 esac
2940 if test "$is_elf" = "yes"; then
2941 # Check for target supported by gold.
2942 case "${target}" in
2943 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2944 configdirs="$configdirs gold"
2945 if test x${ENABLE_GOLD} = xdefault; then
2946 default_ld=gold
2948 ENABLE_GOLD=yes
2950 esac
2956 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2958 esac
2960 # Check whether --enable-ld was given.
2961 if test "${enable_ld+set}" = set; then :
2962 enableval=$enable_ld; ENABLE_LD=$enableval
2963 else
2964 ENABLE_LD=yes
2968 case "${ENABLE_LD}" in
2969 default)
2970 if test x${default_ld} != x; then
2971 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2974 yes)
2977 if test x${ENABLE_GOLD} != xyes; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2979 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2981 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2984 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2986 esac
2988 # Configure extra directories which are host specific
2990 case "${host}" in
2991 *-cygwin*)
2992 configdirs="$configdirs libtermcap" ;;
2993 esac
2995 # A target can indicate whether a language isn't supported for some reason.
2996 # Only spaces may be used in this macro; not newlines or tabs.
2997 unsupported_languages=
2999 # Remove more programs from consideration, based on the host or
3000 # target this usually means that a port of the program doesn't
3001 # exist yet.
3003 case "${host}" in
3004 i[3456789]86-*-msdosdjgpp*)
3005 noconfigdirs="$noconfigdirs tcl tk itcl"
3007 esac
3010 # Check whether --enable-libquadmath was given.
3011 if test "${enable_libquadmath+set}" = set; then :
3012 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3013 else
3014 ENABLE_LIBQUADMATH=yes
3017 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3018 noconfigdirs="$noconfigdirs target-libquadmath"
3022 # Check whether --enable-libquadmath-support was given.
3023 if test "${enable_libquadmath_support+set}" = set; then :
3024 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3025 else
3026 ENABLE_LIBQUADMATH_SUPPORT=yes
3029 enable_libquadmath_support=
3030 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3031 enable_libquadmath_support=no
3035 # Check whether --enable-libada was given.
3036 if test "${enable_libada+set}" = set; then :
3037 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3038 else
3039 ENABLE_LIBADA=yes
3042 if test "${ENABLE_LIBADA}" != "yes" ; then
3043 noconfigdirs="$noconfigdirs gnattools"
3046 # Check whether --enable-libssp was given.
3047 if test "${enable_libssp+set}" = set; then :
3048 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3049 else
3050 ENABLE_LIBSSP=yes
3054 # Check whether --enable-libstdcxx was given.
3055 if test "${enable_libstdcxx+set}" = set; then :
3056 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3057 else
3058 ENABLE_LIBSTDCXX=default
3061 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3062 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3065 # Save it here so that, even in case of --enable-libgcj, if the Java
3066 # front-end isn't enabled, we still get libgcj disabled.
3067 libgcj_saved=$libgcj
3068 case $enable_libgcj in
3069 yes)
3070 # If we reset it here, it won't get added to noconfigdirs in the
3071 # target-specific build rules, so it will be forcibly enabled
3072 # (unless the Java language itself isn't enabled).
3073 libgcj=
3076 # Make sure we get it printed in the list of not supported target libs.
3077 # Don't disable libffi, though, other languages use it.
3078 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3079 # Clear libgcj_saved so that even if java is enabled libffi won't be
3080 # built.
3081 libgcj_saved=
3083 esac
3085 # Check whether --enable-static-libjava was given.
3086 if test "${enable_static_libjava+set}" = set; then :
3087 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3088 else
3089 ENABLE_STATIC_LIBJAVA=no
3092 enable_static_libjava=
3093 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3094 enable_static_libjava=yes
3097 if test x$enable_static_libjava != xyes ; then
3098 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3102 # Disable libgomp on non POSIX hosted systems.
3103 if test x$enable_libgomp = x ; then
3104 # Enable libgomp by default on hosted POSIX systems.
3105 case "${target}" in
3106 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3108 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3110 *-*-solaris2* | *-*-hpux11*)
3112 *-*-darwin* | *-*-aix*)
3115 noconfigdirs="$noconfigdirs target-libgomp"
3117 esac
3120 # Disable libatomic on unsupported systems.
3121 if test -d ${srcdir}/libatomic; then
3122 if test x$enable_libatomic = x; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3124 $as_echo_n "checking for libatomic support... " >&6; }
3125 if (srcdir=${srcdir}/libatomic; \
3126 . ${srcdir}/configure.tgt; \
3127 test -n "$UNSUPPORTED")
3128 then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3131 noconfigdirs="$noconfigdirs target-libatomic"
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3139 # Disable libcilkrts on unsupported systems.
3140 if test -d ${srcdir}/libcilkrts; then
3141 if test x$enable_libcilkrts = x; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3143 $as_echo_n "checking for libcilkrts support... " >&6; }
3144 if (srcdir=${srcdir}/libcilkrts; \
3145 . ${srcdir}/configure.tgt; \
3146 test -n "$UNSUPPORTED")
3147 then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 noconfigdirs="$noconfigdirs target-libcilkrts"
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3153 $as_echo "yes" >&6; }
3158 # Disable libitm on unsupported systems.
3159 if test -d ${srcdir}/libitm; then
3160 if test x$enable_libitm = x; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3162 $as_echo_n "checking for libitm support... " >&6; }
3163 if (srcdir=${srcdir}/libitm; \
3164 . ${srcdir}/configure.tgt; \
3165 test -n "$UNSUPPORTED")
3166 then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 noconfigdirs="$noconfigdirs target-libitm"
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3177 # Disable libsanitizer on unsupported systems.
3178 if test -d ${srcdir}/libsanitizer; then
3179 if test x$enable_libsanitizer = x; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3181 $as_echo_n "checking for libsanitizer support... " >&6; }
3182 if (srcdir=${srcdir}/libsanitizer; \
3183 . ${srcdir}/configure.tgt; \
3184 test -n "$UNSUPPORTED")
3185 then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 noconfigdirs="$noconfigdirs target-libsanitizer"
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3196 # Disable libvtv on unsupported systems.
3197 if test -d ${srcdir}/libvtv; then
3198 if test x$enable_libvtv = x; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3200 $as_echo_n "checking for libvtv support... " >&6; }
3201 if (srcdir=${srcdir}/libvtv; \
3202 . ${srcdir}/configure.tgt; \
3203 test "$VTV_SUPPORTED" != "yes")
3204 then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 noconfigdirs="$noconfigdirs target-libvtv"
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3215 # Disable libquadmath for some systems.
3216 case "${target}" in
3217 avr-*-*)
3218 noconfigdirs="$noconfigdirs target-libquadmath"
3220 # libquadmath is unused on AIX and libquadmath build process use of
3221 # LD_LIBRARY_PATH can break AIX bootstrap.
3222 powerpc-*-aix* | rs6000-*-aix*)
3223 noconfigdirs="$noconfigdirs target-libquadmath"
3225 esac
3227 # Disable libssp for some systems.
3228 case "${target}" in
3229 avr-*-*)
3230 # No hosted I/O support.
3231 noconfigdirs="$noconfigdirs target-libssp"
3233 powerpc-*-aix* | rs6000-*-aix*)
3234 noconfigdirs="$noconfigdirs target-libssp"
3236 rl78-*-*)
3237 # libssp uses a misaligned load to trigger a fault, but the RL78
3238 # doesn't fault for those - instead, it gives a build-time error
3239 # for explicit misaligned loads.
3240 noconfigdirs="$noconfigdirs target-libssp"
3242 esac
3244 # Disable libstdc++-v3 for some systems.
3245 # Allow user to override this if they pass --enable-libstdc++-v3
3246 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3247 case "${target}" in
3248 *-*-vxworks*)
3249 # VxWorks uses the Dinkumware C++ library.
3250 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3252 arm*-wince-pe*)
3253 # the C++ libraries don't build on top of CE's C libraries
3254 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3256 avr-*-*)
3257 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3259 esac
3262 # Disable Fortran for some systems.
3263 case "${target}" in
3264 mmix-*-*)
3265 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3266 unsupported_languages="$unsupported_languages fortran"
3268 esac
3270 # Disable Java if libffi is not supported.
3271 case "${target}" in
3272 aarch64-*-*)
3274 alpha*-*-*)
3276 arm*-*-*)
3278 cris-*-*)
3280 frv-*-*)
3282 hppa*-*-linux*)
3284 hppa*-*-hpux*)
3286 i?86-*-*)
3288 ia64*-*-*)
3290 m32r*-*-*)
3292 m68k-*-*)
3294 mips*-*-rtems*)
3296 mips*-*-linux*)
3298 powerpc*-*-linux*)
3300 powerpc-*-darwin*)
3302 powerpc-*-aix* | rs6000-*-aix*)
3304 powerpc-*-freebsd*)
3306 powerpc64-*-freebsd*)
3308 powerpc*-*-rtems*)
3310 s390-*-* | s390x-*-*)
3312 sh-*-* | sh[34]*-*-*)
3314 sh64-*-* | sh5*-*-*)
3316 sparc*-*-*)
3318 x86_64-*-*)
3320 *-*-*)
3321 unsupported_languages="$unsupported_languages java"
3323 esac
3325 # Disable Java, libgcj or related libraries for some systems.
3326 case "${target}" in
3327 powerpc-*-darwin*)
3329 i[3456789]86-*-darwin*)
3331 x86_64-*-darwin[912]*)
3333 *-*-darwin*)
3334 noconfigdirs="$noconfigdirs ${libgcj}"
3336 *-*-netware*)
3337 noconfigdirs="$noconfigdirs ${libgcj}"
3339 *-*-rtems*)
3340 noconfigdirs="$noconfigdirs ${libgcj}"
3342 *-*-tpf*)
3343 noconfigdirs="$noconfigdirs ${libgcj}"
3345 *-*-uclinux*)
3346 noconfigdirs="$noconfigdirs ${libgcj}"
3348 *-*-vxworks*)
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3351 alpha*-*-*vms*)
3352 noconfigdirs="$noconfigdirs ${libgcj}"
3354 arm-wince-pe)
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3357 arm*-*-symbianelf*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3360 bfin-*-*)
3361 noconfigdirs="$noconfigdirs target-boehm-gc"
3363 cris-*-* | crisv32-*-*)
3364 unsupported_languages="$unsupported_languages java"
3365 case "${target}" in
3366 *-*-linux*)
3368 *) # See PR46792 regarding target-libffi.
3369 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3370 esac
3372 hppa*64*-*-linux*)
3373 # In this case, it's because the hppa64-linux target is for
3374 # the kernel only at this point and has no libc, and thus no
3375 # headers, crt*.o, etc., all of which are needed by these.
3376 unsupported_languages="$unsupported_languages java"
3378 hppa*64*-*-hpux*)
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3381 hppa*-hp-hpux11*)
3383 hppa*-*-hpux*)
3384 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3385 # build on HP-UX 10.20.
3386 noconfigdirs="$noconfigdirs ${libgcj}"
3388 ia64*-*-*vms*)
3389 noconfigdirs="$noconfigdirs ${libgcj}"
3391 i[3456789]86-w64-mingw*)
3392 noconfigdirs="$noconfigdirs ${libgcj}"
3394 i[3456789]86-*-mingw*)
3395 noconfigdirs="$noconfigdirs ${libgcj}"
3397 x86_64-*-mingw*)
3398 noconfigdirs="$noconfigdirs ${libgcj}"
3400 mmix-*-*)
3401 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3403 powerpc-*-aix*)
3404 # copied from rs6000-*-* entry
3405 noconfigdirs="$noconfigdirs ${libgcj}"
3407 rs6000-*-aix*)
3408 noconfigdirs="$noconfigdirs ${libgcj}"
3410 *-*-lynxos*)
3411 noconfigdirs="$noconfigdirs ${libgcj}"
3413 esac
3415 # Disable libgo for some systems where it is known to not work.
3416 # For testing, you can easily override this with --enable-libgo.
3417 if test x$enable_libgo = x; then
3418 case "${target}" in
3419 *-*-darwin*)
3420 # PR 46986
3421 noconfigdirs="$noconfigdirs target-libgo"
3423 *-*-cygwin* | *-*-mingw*)
3424 noconfigdirs="$noconfigdirs target-libgo"
3426 *-*-aix*)
3427 noconfigdirs="$noconfigdirs target-libgo"
3429 esac
3432 # Default libgloss CPU subdirectory.
3433 libgloss_dir="$target_cpu"
3435 case "${target}" in
3436 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3437 libgloss_dir=wince
3439 aarch64*-*-* )
3440 libgloss_dir=aarch64
3442 arm*-*-*)
3443 libgloss_dir=arm
3445 cris-*-* | crisv32-*-*)
3446 libgloss_dir=cris
3448 hppa*-*-*)
3449 libgloss_dir=pa
3451 i[3456789]86-*-*)
3452 libgloss_dir=i386
3454 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3455 libgloss_dir=m68hc11
3457 m68*-*-* | fido-*-*)
3458 libgloss_dir=m68k
3460 mips*-*-*)
3461 libgloss_dir=mips
3463 powerpc*-*-*)
3464 libgloss_dir=rs6000
3466 sparc*-*-*)
3467 libgloss_dir=sparc
3469 esac
3471 # Disable newlib and libgloss for various target OSes.
3472 case "${target}" in
3473 alpha*-dec-osf*)
3474 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3476 i[3456789]86-*-linux*)
3477 # This section makes it possible to build newlib natively on linux.
3478 # If we are using a cross compiler then don't configure newlib.
3479 if test x${is_cross_compiler} != xno ; then
3480 noconfigdirs="$noconfigdirs target-newlib"
3482 noconfigdirs="$noconfigdirs target-libgloss"
3483 # If we are not using a cross compiler, do configure newlib.
3484 # Note however, that newlib will only be configured in this situation
3485 # if the --with-newlib option has been given, because otherwise
3486 # 'target-newlib' will appear in skipdirs.
3488 i[3456789]86-*-rdos*)
3489 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3491 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3492 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3494 sparc-*-sunos4*)
3495 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3497 *-*-aix*)
3498 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3500 *-*-beos*)
3501 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3503 *-*-chorusos)
3504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3506 *-*-dragonfly*)
3507 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3509 *-*-freebsd*)
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3512 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 *-*-lynxos*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 *-*-mingw*)
3519 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 *-*-netbsd*)
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 *-*-netware*)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 *-*-tpf*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 *-*-uclinux*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 *-*-vxworks*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 esac
3538 case "${target}" in
3539 *-*-chorusos)
3541 powerpc-*-darwin*)
3542 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3543 noconfigdirs="$noconfigdirs sim target-rda"
3545 i[3456789]86-*-darwin*)
3546 noconfigdirs="$noconfigdirs ld gprof"
3547 noconfigdirs="$noconfigdirs sim target-rda"
3549 x86_64-*-darwin[912]*)
3550 noconfigdirs="$noconfigdirs ld gas gprof"
3551 noconfigdirs="$noconfigdirs sim target-rda"
3553 *-*-darwin*)
3554 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3555 noconfigdirs="$noconfigdirs sim target-rda"
3557 *-*-dragonfly*)
3559 *-*-freebsd*)
3560 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3561 && test -f /usr/local/include/gmp.h; then
3562 with_gmp=/usr/local
3565 *-*-kaos*)
3566 # Remove unsupported stuff on all kaOS configurations.
3567 noconfigdirs="$noconfigdirs target-libgloss"
3569 *-*-netbsd*)
3571 *-*-netware*)
3573 *-*-rtems*)
3574 noconfigdirs="$noconfigdirs target-libgloss"
3576 # The tpf target doesn't support gdb yet.
3577 *-*-tpf*)
3578 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3580 *-*-uclinux*)
3581 noconfigdirs="$noconfigdirs target-rda"
3583 *-*-vxworks*)
3585 alpha*-dec-osf*)
3586 # ld works, but does not support shared libraries.
3587 # gas doesn't generate exception information.
3588 noconfigdirs="$noconfigdirs gas ld"
3590 alpha*-*-*vms*)
3591 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3593 alpha*-*-*)
3594 # newlib is not 64 bit ready
3595 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3597 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3598 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3600 arc-*-*|arceb-*-*)
3601 noconfigdirs="$noconfigdirs target-libgloss"
3603 arm-*-pe*)
3604 noconfigdirs="$noconfigdirs target-libgloss"
3606 arm-*-riscix*)
3607 noconfigdirs="$noconfigdirs ld target-libgloss"
3609 avr-*-rtems*)
3611 avr-*-*)
3612 if test x${with_avrlibc} != xno; then
3613 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3616 c4x-*-* | tic4x-*-*)
3617 noconfigdirs="$noconfigdirs target-libgloss"
3619 tic54x-*-*)
3620 noconfigdirs="$noconfigdirs target-libgloss gdb"
3622 d10v-*-*)
3623 noconfigdirs="$noconfigdirs target-libgloss"
3625 d30v-*-*)
3626 noconfigdirs="$noconfigdirs gdb"
3628 fr30-*-elf*)
3629 noconfigdirs="$noconfigdirs gdb"
3631 moxie-*-*)
3632 noconfigdirs="$noconfigdirs gprof"
3634 h8300*-*-*)
3635 noconfigdirs="$noconfigdirs target-libgloss"
3637 h8500-*-*)
3638 noconfigdirs="$noconfigdirs target-libgloss"
3640 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3642 hppa*64*-*-linux*)
3644 hppa*-*-linux*)
3646 hppa*-*-*elf* | \
3647 hppa*-*-lites* | \
3648 hppa*-*-openbsd* | \
3649 hppa*64*-*-*)
3651 hppa*-hp-hpux11*)
3652 noconfigdirs="$noconfigdirs ld"
3654 hppa*-*-pro*)
3656 hppa*-*-*)
3657 noconfigdirs="$noconfigdirs ld"
3659 i960-*-*)
3660 noconfigdirs="$noconfigdirs gdb"
3662 ia64*-*-elf*)
3663 # No gdb support yet.
3664 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3666 ia64*-**-hpux*)
3667 # No ld support yet.
3668 noconfigdirs="$noconfigdirs libgui itcl ld"
3670 ia64*-*-*vms*)
3671 # No ld support yet.
3672 noconfigdirs="$noconfigdirs libgui itcl ld"
3674 i[3456789]86-w64-mingw*)
3676 i[3456789]86-*-mingw*)
3677 target_configdirs="$target_configdirs target-winsup"
3679 *-*-cygwin*)
3680 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3681 noconfigdirs="$noconfigdirs target-libgloss"
3682 # always build newlib if winsup directory is present.
3683 if test -d "$srcdir/winsup/cygwin"; then
3684 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3685 elif test -d "$srcdir/newlib"; then
3686 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3689 i[3456789]86-*-pe)
3690 noconfigdirs="$noconfigdirs target-libgloss"
3692 i[3456789]86-*-sco3.2v5*)
3693 # The linker does not yet know about weak symbols in COFF,
3694 # and is not configured to handle mixed ELF and COFF.
3695 noconfigdirs="$noconfigdirs ld target-libgloss"
3697 i[3456789]86-*-sco*)
3698 noconfigdirs="$noconfigdirs gprof target-libgloss"
3700 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3701 noconfigdirs="$noconfigdirs target-libgloss"
3703 i[3456789]86-*-sysv4*)
3704 noconfigdirs="$noconfigdirs target-libgloss"
3706 i[3456789]86-*-beos*)
3707 noconfigdirs="$noconfigdirs gdb"
3709 i[3456789]86-*-rdos*)
3710 noconfigdirs="$noconfigdirs gdb"
3712 mmix-*-*)
3713 noconfigdirs="$noconfigdirs gdb"
3715 mt-*-*)
3716 noconfigdirs="$noconfigdirs sim"
3718 powerpc-*-aix*)
3719 # copied from rs6000-*-* entry
3720 noconfigdirs="$noconfigdirs gprof"
3722 powerpc*-*-winnt* | powerpc*-*-pe*)
3723 target_configdirs="$target_configdirs target-winsup"
3724 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3725 # always build newlib.
3726 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3728 # This is temporary until we can link against shared libraries
3729 powerpcle-*-solaris*)
3730 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3732 powerpc-*-beos*)
3733 noconfigdirs="$noconfigdirs gdb"
3735 rs6000-*-lynxos*)
3736 noconfigdirs="$noconfigdirs gprof"
3738 rs6000-*-aix*)
3739 noconfigdirs="$noconfigdirs gprof"
3741 rs6000-*-*)
3742 noconfigdirs="$noconfigdirs gprof"
3744 m68k-apollo-*)
3745 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3747 microblaze*)
3748 noconfigdirs="$noconfigdirs gprof"
3750 mips*-sde-elf* | mips*-mti-elf*)
3751 if test x$with_newlib = xyes; then
3752 noconfigdirs="$noconfigdirs gprof"
3755 mips*-*-irix5*)
3756 noconfigdirs="$noconfigdirs gprof target-libgloss"
3758 mips*-*-irix6*)
3759 noconfigdirs="$noconfigdirs gprof target-libgloss"
3761 mips*-*-bsd*)
3762 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3764 mips*-*-linux*)
3766 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3767 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3768 noconfigdirs="$noconfigdirs ld gas gprof"
3770 mips*-*-*)
3771 noconfigdirs="$noconfigdirs gprof"
3773 sh-*-* | sh64-*-*)
3774 case "${target}" in
3775 sh*-*-elf)
3778 noconfigdirs="$noconfigdirs target-libgloss" ;;
3779 esac
3781 sparc-*-sunos4*)
3782 if test x${is_cross_compiler} = xno ; then
3783 use_gnu_ld=no
3786 tic6x-*-*)
3787 noconfigdirs="$noconfigdirs sim"
3789 tilepro*-*-* | tilegx*-*-*)
3790 noconfigdirs="$noconfigdirs sim"
3792 v810-*-*)
3793 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3795 vax-*-*)
3796 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3798 esac
3800 # If we aren't building newlib, then don't build libgloss, since libgloss
3801 # depends upon some newlib header files.
3802 case "${noconfigdirs}" in
3803 *target-libgloss*) ;;
3804 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3805 esac
3807 # Work in distributions that contain no compiler tools, like Autoconf.
3808 host_makefile_frag=/dev/null
3809 if test -d ${srcdir}/config ; then
3810 case "${host}" in
3811 i[3456789]86-*-msdosdjgpp*)
3812 host_makefile_frag="config/mh-djgpp"
3814 *-cygwin*)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3817 $as_echo_n "checking to see if cat works as expected... " >&6; }
3818 echo a >cygwin-cat-check
3819 if test `cat cygwin-cat-check` = a ; then
3820 rm cygwin-cat-check
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822 $as_echo "yes" >&6; }
3823 else
3824 rm cygwin-cat-check
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3827 as_fn_error "The cat command does not ignore carriage return characters.
3828 Please either mount the build directory in binary mode or run the following
3829 commands before running any configure script:
3830 set -o igncr
3831 export SHELLOPTS
3832 " "$LINENO" 5
3835 host_makefile_frag="config/mh-cygwin"
3837 *-mingw*)
3838 host_makefile_frag="config/mh-mingw"
3840 alpha*-*-linux*)
3841 host_makefile_frag="config/mh-alpha-linux"
3843 hppa*-hp-hpux10*)
3844 host_makefile_frag="config/mh-pa-hpux10"
3846 hppa*-hp-hpux*)
3847 host_makefile_frag="config/mh-pa"
3849 hppa*-*)
3850 host_makefile_frag="config/mh-pa"
3852 *-*-darwin*)
3853 host_makefile_frag="config/mh-darwin"
3855 powerpc-*-aix*)
3856 host_makefile_frag="config/mh-ppc-aix"
3858 rs6000-*-aix*)
3859 host_makefile_frag="config/mh-ppc-aix"
3861 esac
3864 if test "${build}" != "${host}" ; then
3865 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3866 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3867 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3868 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3869 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3870 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3871 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3872 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3873 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3874 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3875 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3876 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3877 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3878 else
3879 AR_FOR_BUILD="\$(AR)"
3880 AS_FOR_BUILD="\$(AS)"
3881 CC_FOR_BUILD="\$(CC)"
3882 CXX_FOR_BUILD="\$(CXX)"
3883 GCJ_FOR_BUILD="\$(GCJ)"
3884 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3885 GOC_FOR_BUILD="\$(GOC)"
3886 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3887 LD_FOR_BUILD="\$(LD)"
3888 NM_FOR_BUILD="\$(NM)"
3889 RANLIB_FOR_BUILD="\$(RANLIB)"
3890 WINDRES_FOR_BUILD="\$(WINDRES)"
3891 WINDMC_FOR_BUILD="\$(WINDMC)"
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test -n "$ac_tool_prefix"; then
3900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if test "${ac_cv_prog_CC+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3921 done
3922 done
3923 IFS=$as_save_IFS
3927 CC=$ac_cv_prog_CC
3928 if test -n "$CC"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3930 $as_echo "$CC" >&6; }
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3938 if test -z "$ac_cv_prog_CC"; then
3939 ac_ct_CC=$CC
3940 # Extract the first word of "gcc", so it can be a program name with args.
3941 set dummy gcc; ac_word=$2
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3943 $as_echo_n "checking for $ac_word... " >&6; }
3944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 if test -n "$ac_ct_CC"; then
3948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3953 IFS=$as_save_IFS
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_prog_ac_ct_CC="gcc"
3958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 break 2
3961 done
3962 done
3963 IFS=$as_save_IFS
3967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3968 if test -n "$ac_ct_CC"; then
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3970 $as_echo "$ac_ct_CC" >&6; }
3971 else
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3976 if test "x$ac_ct_CC" = x; then
3977 CC=""
3978 else
3979 case $cross_compiling:$ac_tool_warned in
3980 yes:)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3984 esac
3985 CC=$ac_ct_CC
3987 else
3988 CC="$ac_cv_prog_CC"
3991 if test -z "$CC"; then
3992 if test -n "$ac_tool_prefix"; then
3993 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3994 set dummy ${ac_tool_prefix}cc; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if test "${ac_cv_prog_CC+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 if test -n "$CC"; then
4001 ac_cv_prog_CC="$CC" # Let the user override the test.
4002 else
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010 ac_cv_prog_CC="${ac_tool_prefix}cc"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4014 done
4015 done
4016 IFS=$as_save_IFS
4020 CC=$ac_cv_prog_CC
4021 if test -n "$CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4024 else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4032 if test -z "$CC"; then
4033 # Extract the first word of "cc", so it can be a program name with args.
4034 set dummy cc; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if test "${ac_cv_prog_CC+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 if test -n "$CC"; then
4041 ac_cv_prog_CC="$CC" # Let the user override the test.
4042 else
4043 ac_prog_rejected=no
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4052 ac_prog_rejected=yes
4053 continue
4055 ac_cv_prog_CC="cc"
4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4059 done
4060 done
4061 IFS=$as_save_IFS
4063 if test $ac_prog_rejected = yes; then
4064 # We found a bogon in the path, so make sure we never use it.
4065 set dummy $ac_cv_prog_CC
4066 shift
4067 if test $# != 0; then
4068 # We chose a different compiler from the bogus one.
4069 # However, it has the same basename, so the bogon will be chosen
4070 # first if we set CC to just the basename; use the full file name.
4071 shift
4072 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4077 CC=$ac_cv_prog_CC
4078 if test -n "$CC"; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080 $as_echo "$CC" >&6; }
4081 else
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 $as_echo "no" >&6; }
4088 if test -z "$CC"; then
4089 if test -n "$ac_tool_prefix"; then
4090 for ac_prog in cl.exe
4092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_CC+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 if test -n "$CC"; then
4100 ac_cv_prog_CC="$CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4113 done
4114 done
4115 IFS=$as_save_IFS
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122 $as_echo "$CC" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4129 test -n "$CC" && break
4130 done
4132 if test -z "$CC"; then
4133 ac_ct_CC=$CC
4134 for ac_prog in cl.exe
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$ac_ct_CC"; then
4144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153 ac_cv_prog_ac_ct_CC="$ac_prog"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4157 done
4158 done
4159 IFS=$as_save_IFS
4163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4164 if test -n "$ac_ct_CC"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4166 $as_echo "$ac_ct_CC" >&6; }
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4173 test -n "$ac_ct_CC" && break
4174 done
4176 if test "x$ac_ct_CC" = x; then
4177 CC=""
4178 else
4179 case $cross_compiling:$ac_tool_warned in
4180 yes:)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4183 ac_tool_warned=yes ;;
4184 esac
4185 CC=$ac_ct_CC
4192 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "no acceptable C compiler found in \$PATH
4195 See \`config.log' for more details." "$LINENO" 5; }
4197 # Provide some information about the compiler.
4198 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4199 set X $ac_compile
4200 ac_compiler=$2
4201 for ac_option in --version -v -V -qversion; do
4202 { { ac_try="$ac_compiler $ac_option >&5"
4203 case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206 esac
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4210 ac_status=$?
4211 if test -s conftest.err; then
4212 sed '10a\
4213 ... rest of stderr output deleted ...
4214 10q' conftest.err >conftest.er1
4215 cat conftest.er1 >&5
4216 rm -f conftest.er1 conftest.err
4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }
4220 done
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4226 main ()
4230 return 0;
4232 _ACEOF
4233 ac_clean_files_save=$ac_clean_files
4234 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4235 # Try to create an executable without -o first, disregard a.out.
4236 # It will help us diagnose broken compilers, and finding out an intuition
4237 # of exeext.
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4239 $as_echo_n "checking for C compiler default output file name... " >&6; }
4240 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4242 # The possible output files:
4243 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4245 ac_rmfiles=
4246 for ac_file in $ac_files
4248 case $ac_file in
4249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4250 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4251 esac
4252 done
4253 rm -f $ac_rmfiles
4255 if { { ac_try="$ac_link_default"
4256 case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_link_default") 2>&5
4263 ac_status=$?
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
4266 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4267 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4268 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4269 # so that the user can short-circuit this test for compilers unknown to
4270 # Autoconf.
4271 for ac_file in $ac_files ''
4273 test -f "$ac_file" || continue
4274 case $ac_file in
4275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4277 [ab].out )
4278 # We found the default executable, but exeext='' is most
4279 # certainly right.
4280 break;;
4281 *.* )
4282 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4283 then :; else
4284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4286 # We set ac_cv_exeext here because the later test for it is not
4287 # safe: cross compilers may not add the suffix if given an `-o'
4288 # argument, so we may need to know it at that point already.
4289 # Even if this section looks crufty: it has the advantage of
4290 # actually working.
4291 break;;
4293 break;;
4294 esac
4295 done
4296 test "$ac_cv_exeext" = no && ac_cv_exeext=
4298 else
4299 ac_file=''
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4302 $as_echo "$ac_file" >&6; }
4303 if test -z "$ac_file"; then :
4304 $as_echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309 { as_fn_set_status 77
4310 as_fn_error "C compiler cannot create executables
4311 See \`config.log' for more details." "$LINENO" 5; }; }
4313 ac_exeext=$ac_cv_exeext
4315 # Check that the compiler produces executables we can run. If not, either
4316 # the compiler is broken, or we cross compile.
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4318 $as_echo_n "checking whether the C compiler works... " >&6; }
4319 # If not cross compiling, check that we can run a simple program.
4320 if test "$cross_compiling" != yes; then
4321 if { ac_try='./$ac_file'
4322 { { case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4327 $as_echo "$ac_try_echo"; } >&5
4328 (eval "$ac_try") 2>&5
4329 ac_status=$?
4330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4331 test $ac_status = 0; }; }; then
4332 cross_compiling=no
4333 else
4334 if test "$cross_compiling" = maybe; then
4335 cross_compiling=yes
4336 else
4337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339 as_fn_error "cannot run C compiled programs.
4340 If you meant to cross compile, use \`--host'.
4341 See \`config.log' for more details." "$LINENO" 5; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4346 $as_echo "yes" >&6; }
4348 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4349 ac_clean_files=$ac_clean_files_save
4350 # Check that the compiler produces executables we can run. If not, either
4351 # the compiler is broken, or we cross compile.
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4353 $as_echo_n "checking whether we are cross compiling... " >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4355 $as_echo "$cross_compiling" >&6; }
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4358 $as_echo_n "checking for suffix of executables... " >&6; }
4359 if { { ac_try="$ac_link"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366 (eval "$ac_link") 2>&5
4367 ac_status=$?
4368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }; then :
4370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4372 # work properly (i.e., refer to `conftest.exe'), while it won't with
4373 # `rm'.
4374 for ac_file in conftest.exe conftest conftest.*; do
4375 test -f "$ac_file" || continue
4376 case $ac_file in
4377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4379 break;;
4380 * ) break;;
4381 esac
4382 done
4383 else
4384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386 as_fn_error "cannot compute suffix of executables: cannot compile and link
4387 See \`config.log' for more details." "$LINENO" 5; }
4389 rm -f conftest$ac_cv_exeext
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4391 $as_echo "$ac_cv_exeext" >&6; }
4393 rm -f conftest.$ac_ext
4394 EXEEXT=$ac_cv_exeext
4395 ac_exeext=$EXEEXT
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4397 $as_echo_n "checking for suffix of object files... " >&6; }
4398 if test "${ac_cv_objext+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4405 main ()
4409 return 0;
4411 _ACEOF
4412 rm -f conftest.o conftest.obj
4413 if { { ac_try="$ac_compile"
4414 case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_compile") 2>&5
4421 ac_status=$?
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }; then :
4424 for ac_file in conftest.o conftest.obj conftest.*; do
4425 test -f "$ac_file" || continue;
4426 case $ac_file in
4427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4429 break;;
4430 esac
4431 done
4432 else
4433 $as_echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error "cannot compute suffix of object files: cannot compile
4439 See \`config.log' for more details." "$LINENO" 5; }
4441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4444 $as_echo "$ac_cv_objext" >&6; }
4445 OBJEXT=$ac_cv_objext
4446 ac_objext=$OBJEXT
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4448 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4449 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4456 main ()
4458 #ifndef __GNUC__
4459 choke me
4460 #endif
4463 return 0;
4465 _ACEOF
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_compiler_gnu=yes
4468 else
4469 ac_compiler_gnu=no
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4476 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4477 if test $ac_compiler_gnu = yes; then
4478 GCC=yes
4479 else
4480 GCC=
4482 ac_test_CFLAGS=${CFLAGS+set}
4483 ac_save_CFLAGS=$CFLAGS
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4485 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4486 if test "${ac_cv_prog_cc_g+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 ac_save_c_werror_flag=$ac_c_werror_flag
4490 ac_c_werror_flag=yes
4491 ac_cv_prog_cc_g=no
4492 CFLAGS="-g"
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4497 main ()
4501 return 0;
4503 _ACEOF
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_prog_cc_g=yes
4506 else
4507 CFLAGS=""
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4512 main ()
4516 return 0;
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4521 else
4522 ac_c_werror_flag=$ac_save_c_werror_flag
4523 CFLAGS="-g"
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4528 main ()
4532 return 0;
4534 _ACEOF
4535 if ac_fn_c_try_compile "$LINENO"; then :
4536 ac_cv_prog_cc_g=yes
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_c_werror_flag=$ac_save_c_werror_flag
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4546 $as_echo "$ac_cv_prog_cc_g" >&6; }
4547 if test "$ac_test_CFLAGS" = set; then
4548 CFLAGS=$ac_save_CFLAGS
4549 elif test $ac_cv_prog_cc_g = yes; then
4550 if test "$GCC" = yes; then
4551 CFLAGS="-g -O2"
4552 else
4553 CFLAGS="-g"
4555 else
4556 if test "$GCC" = yes; then
4557 CFLAGS="-O2"
4558 else
4559 CFLAGS=
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4563 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4564 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 ac_cv_prog_cc_c89=no
4568 ac_save_CC=$CC
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4571 #include <stdarg.h>
4572 #include <stdio.h>
4573 #include <sys/types.h>
4574 #include <sys/stat.h>
4575 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4576 struct buf { int x; };
4577 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4578 static char *e (p, i)
4579 char **p;
4580 int i;
4582 return p[i];
4584 static char *f (char * (*g) (char **, int), char **p, ...)
4586 char *s;
4587 va_list v;
4588 va_start (v,p);
4589 s = g (p, va_arg (v,int));
4590 va_end (v);
4591 return s;
4594 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4595 function prototypes and stuff, but not '\xHH' hex character constants.
4596 These don't provoke an error unfortunately, instead are silently treated
4597 as 'x'. The following induces an error, until -std is added to get
4598 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4599 array size at least. It's necessary to write '\x00'==0 to get something
4600 that's true only with -std. */
4601 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4603 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4604 inside strings and character constants. */
4605 #define FOO(x) 'x'
4606 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4608 int test (int i, double x);
4609 struct s1 {int (*f) (int a);};
4610 struct s2 {int (*f) (double a);};
4611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4612 int argc;
4613 char **argv;
4615 main ()
4617 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4619 return 0;
4621 _ACEOF
4622 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4623 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4625 CC="$ac_save_CC $ac_arg"
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_prog_cc_c89=$ac_arg
4629 rm -f core conftest.err conftest.$ac_objext
4630 test "x$ac_cv_prog_cc_c89" != "xno" && break
4631 done
4632 rm -f conftest.$ac_ext
4633 CC=$ac_save_CC
4636 # AC_CACHE_VAL
4637 case "x$ac_cv_prog_cc_c89" in
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4640 $as_echo "none needed" >&6; } ;;
4641 xno)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4643 $as_echo "unsupported" >&6; } ;;
4645 CC="$CC $ac_cv_prog_cc_c89"
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4647 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4648 esac
4649 if test "x$ac_cv_prog_cc_c89" != xno; then :
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 ac_ext=cpp
4660 ac_cpp='$CXXCPP $CPPFLAGS'
4661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4664 if test -z "$CXX"; then
4665 if test -n "$CCC"; then
4666 CXX=$CCC
4667 else
4668 if test -n "$ac_tool_prefix"; then
4669 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_CXX+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$CXX"; then
4679 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 CXX=$ac_cv_prog_CXX
4699 if test -n "$CXX"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4701 $as_echo "$CXX" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4708 test -n "$CXX" && break
4709 done
4711 if test -z "$CXX"; then
4712 ac_ct_CXX=$CXX
4713 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4715 # Extract the first word of "$ac_prog", so it can be a program name with args.
4716 set dummy $ac_prog; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 if test -n "$ac_ct_CXX"; then
4723 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_ac_ct_CXX="$ac_prog"
4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4736 done
4737 done
4738 IFS=$as_save_IFS
4742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4743 if test -n "$ac_ct_CXX"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4745 $as_echo "$ac_ct_CXX" >&6; }
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4752 test -n "$ac_ct_CXX" && break
4753 done
4755 if test "x$ac_ct_CXX" = x; then
4756 CXX="g++"
4757 else
4758 case $cross_compiling:$ac_tool_warned in
4759 yes:)
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4762 ac_tool_warned=yes ;;
4763 esac
4764 CXX=$ac_ct_CXX
4770 # Provide some information about the compiler.
4771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4772 set X $ac_compile
4773 ac_compiler=$2
4774 for ac_option in --version -v -V -qversion; do
4775 { { ac_try="$ac_compiler $ac_option >&5"
4776 case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779 esac
4780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4781 $as_echo "$ac_try_echo"; } >&5
4782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4783 ac_status=$?
4784 if test -s conftest.err; then
4785 sed '10a\
4786 ... rest of stderr output deleted ...
4787 10q' conftest.err >conftest.er1
4788 cat conftest.er1 >&5
4789 rm -f conftest.er1 conftest.err
4791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4792 test $ac_status = 0; }
4793 done
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4796 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4797 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4804 main ()
4806 #ifndef __GNUC__
4807 choke me
4808 #endif
4811 return 0;
4813 _ACEOF
4814 if ac_fn_cxx_try_compile "$LINENO"; then :
4815 ac_compiler_gnu=yes
4816 else
4817 ac_compiler_gnu=no
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4824 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4825 if test $ac_compiler_gnu = yes; then
4826 GXX=yes
4827 else
4828 GXX=
4830 ac_test_CXXFLAGS=${CXXFLAGS+set}
4831 ac_save_CXXFLAGS=$CXXFLAGS
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4833 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4834 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4838 ac_cxx_werror_flag=yes
4839 ac_cv_prog_cxx_g=no
4840 CXXFLAGS="-g"
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4845 main ()
4849 return 0;
4851 _ACEOF
4852 if ac_fn_cxx_try_compile "$LINENO"; then :
4853 ac_cv_prog_cxx_g=yes
4854 else
4855 CXXFLAGS=""
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4860 main ()
4864 return 0;
4866 _ACEOF
4867 if ac_fn_cxx_try_compile "$LINENO"; then :
4869 else
4870 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4871 CXXFLAGS="-g"
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4876 main ()
4880 return 0;
4882 _ACEOF
4883 if ac_fn_cxx_try_compile "$LINENO"; then :
4884 ac_cv_prog_cxx_g=yes
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4894 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4895 if test "$ac_test_CXXFLAGS" = set; then
4896 CXXFLAGS=$ac_save_CXXFLAGS
4897 elif test $ac_cv_prog_cxx_g = yes; then
4898 if test "$GXX" = yes; then
4899 CXXFLAGS="-g -O2"
4900 else
4901 CXXFLAGS="-g"
4903 else
4904 if test "$GXX" = yes; then
4905 CXXFLAGS="-O2"
4906 else
4907 CXXFLAGS=
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917 # We must set the default linker to the linker used by gcc for the correct
4918 # operation of libtool. If LD is not defined and we are using gcc, try to
4919 # set the LD default to the ld used by gcc.
4920 if test -z "$LD"; then
4921 if test "$GCC" = yes; then
4922 case $build in
4923 *-*-mingw*)
4924 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4926 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4927 esac
4928 case $gcc_prog_ld in
4929 # Accept absolute paths.
4930 [\\/]* | [A-Za-z]:[\\/]*)
4931 LD="$gcc_prog_ld" ;;
4932 esac
4936 # Check whether -static-libstdc++ -static-libgcc is supported.
4937 have_static_libs=no
4938 if test "$GCC" = yes; then
4939 saved_LDFLAGS="$LDFLAGS"
4941 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4943 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4944 ac_ext=cpp
4945 ac_cpp='$CXXCPP $CPPFLAGS'
4946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4954 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4955 #error -static-libstdc++ not implemented
4956 #endif
4957 int main() {}
4958 _ACEOF
4959 if ac_fn_cxx_try_link "$LINENO"; then :
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4961 $as_echo "yes" >&6; }; have_static_libs=yes
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4966 rm -f core conftest.err conftest.$ac_objext \
4967 conftest$ac_exeext conftest.$ac_ext
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 LDFLAGS="$saved_LDFLAGS"
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$GNATBIND"; then
4990 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5005 IFS=$as_save_IFS
5009 GNATBIND=$ac_cv_prog_GNATBIND
5010 if test -n "$GNATBIND"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5012 $as_echo "$GNATBIND" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5020 if test -z "$ac_cv_prog_GNATBIND"; then
5021 ac_ct_GNATBIND=$GNATBIND
5022 # Extract the first word of "gnatbind", so it can be a program name with args.
5023 set dummy gnatbind; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$ac_ct_GNATBIND"; then
5030 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5043 done
5044 done
5045 IFS=$as_save_IFS
5049 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5050 if test -n "$ac_ct_GNATBIND"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5052 $as_echo "$ac_ct_GNATBIND" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5058 if test "x$ac_ct_GNATBIND" = x; then
5059 GNATBIND="no"
5060 else
5061 case $cross_compiling:$ac_tool_warned in
5062 yes:)
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065 ac_tool_warned=yes ;;
5066 esac
5067 GNATBIND=$ac_ct_GNATBIND
5069 else
5070 GNATBIND="$ac_cv_prog_GNATBIND"
5073 if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$GNATMAKE"; then
5082 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 GNATMAKE=$ac_cv_prog_GNATMAKE
5102 if test -n "$GNATMAKE"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5104 $as_echo "$GNATMAKE" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5112 if test -z "$ac_cv_prog_GNATMAKE"; then
5113 ac_ct_GNATMAKE=$GNATMAKE
5114 # Extract the first word of "gnatmake", so it can be a program name with args.
5115 set dummy gnatmake; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$ac_ct_GNATMAKE"; then
5122 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5137 IFS=$as_save_IFS
5141 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5142 if test -n "$ac_ct_GNATMAKE"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5144 $as_echo "$ac_ct_GNATMAKE" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5150 if test "x$ac_ct_GNATMAKE" = x; then
5151 GNATMAKE="no"
5152 else
5153 case $cross_compiling:$ac_tool_warned in
5154 yes:)
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5158 esac
5159 GNATMAKE=$ac_ct_GNATMAKE
5161 else
5162 GNATMAKE="$ac_cv_prog_GNATMAKE"
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5166 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5167 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 cat >conftest.adb <<EOF
5171 procedure conftest is begin null; end conftest;
5173 acx_cv_cc_gcc_supports_ada=no
5174 # There is a bug in old released versions of GCC which causes the
5175 # driver to exit successfully when the appropriate language module
5176 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5177 # Therefore we must check for the error message as well as an
5178 # unsuccessful exit.
5179 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5180 # given a .adb file, but produce no object file. So we must check
5181 # if an object file was really produced to guard against this.
5182 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5183 if test x"$errors" = x && test -f conftest.$ac_objext; then
5184 acx_cv_cc_gcc_supports_ada=yes
5186 rm -f conftest.*
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5189 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5191 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5192 have_gnat=yes
5193 else
5194 have_gnat=no
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5198 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5199 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 echo abfoo >t1
5203 echo cdfoo >t2
5204 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5205 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5206 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5208 else
5209 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5212 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5213 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5215 else
5216 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5219 rm t1 t2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5223 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5224 do_compare="$gcc_cv_prog_cmp_skip"
5228 # Check whether --enable-bootstrap was given.
5229 if test "${enable_bootstrap+set}" = set; then :
5230 enableval=$enable_bootstrap;
5231 else
5232 enable_bootstrap=default
5236 # Issue errors and warnings for invalid/strange bootstrap combinations.
5237 if test -r $srcdir/gcc/configure; then
5238 have_compiler=yes
5239 else
5240 have_compiler=no
5243 case "$have_compiler:$host:$target:$enable_bootstrap" in
5244 *:*:*:no) ;;
5246 # Default behavior. Enable bootstrap if we have a compiler
5247 # and we are in a native configuration.
5248 yes:$build:$build:default)
5249 enable_bootstrap=yes ;;
5251 *:*:*:default)
5252 enable_bootstrap=no ;;
5254 # We have a compiler and we are in a native configuration, bootstrap is ok
5255 yes:$build:$build:yes)
5258 # Other configurations, but we have a compiler. Assume the user knows
5259 # what he's doing.
5260 yes:*:*:yes)
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5262 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5265 # No compiler: if they passed --enable-bootstrap explicitly, fail
5266 no:*:*:yes)
5267 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5269 # Fail if wrong command line
5271 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5273 esac
5275 # Used for setting $lt_cv_objdir
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5277 $as_echo_n "checking for objdir... " >&6; }
5278 if test "${lt_cv_objdir+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 rm -f .libs 2>/dev/null
5282 mkdir .libs 2>/dev/null
5283 if test -d .libs; then
5284 lt_cv_objdir=.libs
5285 else
5286 # MS-DOS does not allow filenames that begin with a dot.
5287 lt_cv_objdir=_libs
5289 rmdir .libs 2>/dev/null
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5292 $as_echo "$lt_cv_objdir" >&6; }
5293 objdir=$lt_cv_objdir
5299 cat >>confdefs.h <<_ACEOF
5300 #define LT_OBJDIR "$lt_cv_objdir/"
5301 _ACEOF
5305 # Check for GMP, MPFR and MPC
5306 gmplibs="-lmpc -lmpfr -lgmp"
5307 gmpinc=
5308 have_gmp=no
5310 # Specify a location for mpc
5311 # check for this first so it ends up on the link line before mpfr.
5313 # Check whether --with-mpc was given.
5314 if test "${with_mpc+set}" = set; then :
5315 withval=$with_mpc;
5319 # Check whether --with-mpc-include was given.
5320 if test "${with_mpc_include+set}" = set; then :
5321 withval=$with_mpc_include;
5325 # Check whether --with-mpc-lib was given.
5326 if test "${with_mpc_lib+set}" = set; then :
5327 withval=$with_mpc_lib;
5331 if test "x$with_mpc" != x; then
5332 gmplibs="-L$with_mpc/lib $gmplibs"
5333 gmpinc="-I$with_mpc/include $gmpinc"
5335 if test "x$with_mpc_include" != x; then
5336 gmpinc="-I$with_mpc_include $gmpinc"
5338 if test "x$with_mpc_lib" != x; then
5339 gmplibs="-L$with_mpc_lib $gmplibs"
5341 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5342 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5343 gmpinc='-I$$s/mpc/src '"$gmpinc"
5344 # Do not test the mpc version. Assume that it is sufficient, since
5345 # it is in the source tree, and the library has not been built yet
5346 # but it would be included on the link line in the version check below
5347 # hence making the test fail.
5348 have_gmp=yes
5351 # Specify a location for mpfr
5352 # check for this first so it ends up on the link line before gmp.
5354 # Check whether --with-mpfr-dir was given.
5355 if test "${with_mpfr_dir+set}" = set; then :
5356 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5357 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5362 # Check whether --with-mpfr was given.
5363 if test "${with_mpfr+set}" = set; then :
5364 withval=$with_mpfr;
5368 # Check whether --with-mpfr-include was given.
5369 if test "${with_mpfr_include+set}" = set; then :
5370 withval=$with_mpfr_include;
5374 # Check whether --with-mpfr-lib was given.
5375 if test "${with_mpfr_lib+set}" = set; then :
5376 withval=$with_mpfr_lib;
5380 if test "x$with_mpfr" != x; then
5381 gmplibs="-L$with_mpfr/lib $gmplibs"
5382 gmpinc="-I$with_mpfr/include $gmpinc"
5384 if test "x$with_mpfr_include" != x; then
5385 gmpinc="-I$with_mpfr_include $gmpinc"
5387 if test "x$with_mpfr_lib" != x; then
5388 gmplibs="-L$with_mpfr_lib $gmplibs"
5390 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5391 # MPFR v3.1.0 moved the sources into a src sub-directory.
5392 if test -d ${srcdir}/mpfr/src; then
5393 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5394 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5395 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5396 else
5397 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5398 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5399 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5401 # Do not test the mpfr version. Assume that it is sufficient, since
5402 # it is in the source tree, and the library has not been built yet
5403 # but it would be included on the link line in the version check below
5404 # hence making the test fail.
5405 have_gmp=yes
5408 # Specify a location for gmp
5410 # Check whether --with-gmp-dir was given.
5411 if test "${with_gmp_dir+set}" = set; then :
5412 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5413 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5418 # Check whether --with-gmp was given.
5419 if test "${with_gmp+set}" = set; then :
5420 withval=$with_gmp;
5424 # Check whether --with-gmp-include was given.
5425 if test "${with_gmp_include+set}" = set; then :
5426 withval=$with_gmp_include;
5430 # Check whether --with-gmp-lib was given.
5431 if test "${with_gmp_lib+set}" = set; then :
5432 withval=$with_gmp_lib;
5437 if test "x$with_gmp" != x; then
5438 gmplibs="-L$with_gmp/lib $gmplibs"
5439 gmpinc="-I$with_gmp/include $gmpinc"
5441 if test "x$with_gmp_include" != x; then
5442 gmpinc="-I$with_gmp_include $gmpinc"
5444 if test "x$with_gmp_lib" != x; then
5445 gmplibs="-L$with_gmp_lib $gmplibs"
5447 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5448 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5449 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5450 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5451 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5452 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5453 # Do not test the gmp version. Assume that it is sufficient, since
5454 # it is in the source tree, and the library has not been built yet
5455 # but it would be included on the link line in the version check below
5456 # hence making the test fail.
5457 have_gmp=yes
5460 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5461 have_gmp=yes
5462 saved_CFLAGS="$CFLAGS"
5463 CFLAGS="$CFLAGS $gmpinc"
5464 # Check for the recommended and required versions of GMP.
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5466 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #include "gmp.h"
5472 main ()
5475 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5476 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5477 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5478 choke me
5479 #endif
5482 return 0;
5484 _ACEOF
5485 if ac_fn_c_try_compile "$LINENO"; then :
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 #include <gmp.h>
5490 main ()
5493 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5494 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5495 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5496 choke me
5497 #endif
5500 return 0;
5502 _ACEOF
5503 if ac_fn_c_try_compile "$LINENO"; then :
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5505 $as_echo "yes" >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5508 $as_echo "buggy but acceptable" >&6; }
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }; have_gmp=no
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 # If we have GMP, check the MPFR version.
5518 if test x"$have_gmp" = xyes; then
5519 # Check for the recommended and required versions of MPFR.
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5521 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5524 #include <gmp.h>
5525 #include <mpfr.h>
5527 main ()
5530 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5531 choke me
5532 #endif
5535 return 0;
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <gmp.h>
5542 #include <mpfr.h>
5544 main ()
5547 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5548 choke me
5549 #endif
5552 return 0;
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5560 $as_echo "buggy but acceptable" >&6; }
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }; have_gmp=no
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 # Check for the MPC header version.
5571 if test x"$have_gmp" = xyes ; then
5572 # Check for the recommended and required versions of MPC.
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5574 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #include <mpc.h>
5579 main ()
5582 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5583 choke me
5584 #endif
5587 return 0;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <mpc.h>
5595 main ()
5598 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5599 choke me
5600 #endif
5603 return 0;
5605 _ACEOF
5606 if ac_fn_c_try_compile "$LINENO"; then :
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5608 $as_echo "yes" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5611 $as_echo "buggy but acceptable" >&6; }
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }; have_gmp=no
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 # Now check the MPFR library.
5622 if test x"$have_gmp" = xyes; then
5623 saved_LIBS="$LIBS"
5624 LIBS="$LIBS $gmplibs"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5626 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include <mpc.h>
5631 main ()
5634 mpfr_t n;
5635 mpfr_t x;
5636 mpc_t c;
5637 int t;
5638 mpfr_init (n);
5639 mpfr_init (x);
5640 mpfr_atan2 (n, n, x, GMP_RNDN);
5641 mpfr_erfc (n, x, GMP_RNDN);
5642 mpfr_subnormalize (x, t, GMP_RNDN);
5643 mpfr_clear(n);
5644 mpfr_clear(x);
5645 mpc_init2 (c, 53);
5646 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5647 mpc_cosh (c, c, MPC_RNDNN);
5648 mpc_pow (c, c, c, MPC_RNDNN);
5649 mpc_acosh (c, c, MPC_RNDNN);
5650 mpc_clear (c);
5653 return 0;
5655 _ACEOF
5656 if ac_fn_c_try_link "$LINENO"; then :
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }; have_gmp=no
5663 rm -f core conftest.err conftest.$ac_objext \
5664 conftest$ac_exeext conftest.$ac_ext
5665 LIBS="$saved_LIBS"
5668 CFLAGS="$saved_CFLAGS"
5670 # The library versions listed in the error message below should match
5671 # the HARD-minimums enforced above.
5672 if test x$have_gmp != xyes; then
5673 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5674 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5675 their locations. Source code for these libraries can be found at
5676 their respective hosting sites as well as at
5677 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5678 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5679 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5680 make sure that you have installed both the libraries and the header
5681 files. They may be located in separate packages." "$LINENO" 5
5685 # Flags needed for both GMP, MPFR and/or MPC.
5693 # Allow host libstdc++ to be specified for static linking with PPL.
5695 # Check whether --with-host-libstdcxx was given.
5696 if test "${with_host_libstdcxx+set}" = set; then :
5697 withval=$with_host_libstdcxx;
5701 case $with_host_libstdcxx in
5702 no|yes)
5703 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5705 esac
5707 # Libraries to use for stage1 or when not bootstrapping.
5709 # Check whether --with-stage1-libs was given.
5710 if test "${with_stage1_libs+set}" = set; then :
5711 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5712 stage1_libs=
5713 else
5714 stage1_libs=$withval
5716 else
5717 stage1_libs=$with_host_libstdcxx
5722 # Linker flags to use for stage1 or when not bootstrapping.
5724 # Check whether --with-stage1-ldflags was given.
5725 if test "${with_stage1_ldflags+set}" = set; then :
5726 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5727 stage1_ldflags=
5728 else
5729 stage1_ldflags=$withval
5731 else
5732 stage1_ldflags=
5733 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5734 # if supported. But if the user explicitly specified the libraries to use,
5735 # trust that they are doing what they want.
5736 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5737 stage1_ldflags="-static-libstdc++ -static-libgcc"
5743 # Libraries to use for stage2 and later builds. This defaults to the
5744 # argument passed to --with-host-libstdcxx.
5746 # Check whether --with-boot-libs was given.
5747 if test "${with_boot_libs+set}" = set; then :
5748 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5749 poststage1_libs=
5750 else
5751 poststage1_libs=$withval
5753 else
5754 poststage1_libs=$with_host_libstdcxx
5759 # Linker flags to use for stage2 and later builds.
5761 # Check whether --with-boot-ldflags was given.
5762 if test "${with_boot_ldflags+set}" = set; then :
5763 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5764 poststage1_ldflags=
5765 else
5766 poststage1_ldflags=$withval
5768 else
5769 poststage1_ldflags=
5770 # In stages 2 and 3, default to linking libstdc++ and libgcc
5771 # statically. But if the user explicitly specified the libraries to
5772 # use, trust that they are doing what they want.
5773 if test "$poststage1_libs" = ""; then
5774 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5780 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5781 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5782 # config/isl.m4
5785 # Check whether --with-cloog was given.
5786 if test "${with_cloog+set}" = set; then :
5787 withval=$with_cloog;
5791 # Check whether --with-isl was given.
5792 if test "${with_isl+set}" = set; then :
5793 withval=$with_isl;
5797 # Treat --without-isl as a request to disable
5798 # GRAPHITE support and skip all following checks.
5799 if test "x$with_isl" != "xno"; then
5800 # Check for ISL
5803 # Check whether --with-isl-include was given.
5804 if test "${with_isl_include+set}" = set; then :
5805 withval=$with_isl_include;
5809 # Check whether --with-isl-lib was given.
5810 if test "${with_isl_lib+set}" = set; then :
5811 withval=$with_isl_lib;
5815 # Check whether --enable-isl-version-check was given.
5816 if test "${enable_isl_version_check+set}" = set; then :
5817 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5818 else
5819 ENABLE_ISL_CHECK=yes
5823 # Initialize isllibs and islinc.
5824 case $with_isl in
5826 isllibs=
5827 islinc=
5829 "" | yes)
5832 isllibs="-L$with_isl/lib"
5833 islinc="-I$with_isl/include"
5835 esac
5836 if test "x${with_isl_include}" != x ; then
5837 islinc="-I$with_isl_include"
5839 if test "x${with_isl_lib}" != x; then
5840 isllibs="-L$with_isl_lib"
5842 if test "x${islinc}" = x && test "x${isllibs}" = x \
5843 && test -d ${srcdir}/isl; then
5844 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5845 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5846 ENABLE_ISL_CHECK=no
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5848 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5851 islinc="-DCLOOG_INT_GMP ${islinc}"
5852 isllibs="${isllibs} -lisl"
5856 if test "${ENABLE_ISL_CHECK}" = yes ; then
5857 _isl_saved_CFLAGS=$CFLAGS
5858 _isl_saved_LDFLAGS=$LDFLAGS
5859 _isl_saved_LIBS=$LIBS
5861 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5862 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5863 LIBS="${_isl_saved_LIBS} -lisl"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5866 $as_echo_n "checking for compatible ISL... " >&6; }
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #include <isl/val.h>
5871 main ()
5875 return 0;
5877 _ACEOF
5878 if ac_fn_c_try_link "$LINENO"; then :
5879 gcc_cv_isl=yes
5880 else
5881 gcc_cv_isl=no
5883 rm -f core conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext conftest.$ac_ext
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5886 $as_echo "$gcc_cv_isl" >&6; }
5888 CFLAGS=$_isl_saved_CFLAGS
5889 LDFLAGS=$_isl_saved_LDFLAGS
5890 LIBS=$_isl_saved_LIBS
5898 if test "x${with_isl}" = xno; then
5899 graphite_requested=no
5900 elif test "x${with_isl}" != x \
5901 || test "x${with_isl_include}" != x \
5902 || test "x${with_isl_lib}" != x ; then
5903 graphite_requested=yes
5904 else
5905 graphite_requested=no
5910 if test "${gcc_cv_isl}" = no ; then
5911 isllibs=
5912 islinc=
5915 if test "${graphite_requested}" = yes \
5916 && test "x${isllibs}" = x \
5917 && test "x${islinc}" = x ; then
5919 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5924 if test "x$gcc_cv_isl" != "xno"; then
5925 # Check for CLOOG
5928 # Check whether --with-cloog-include was given.
5929 if test "${with_cloog_include+set}" = set; then :
5930 withval=$with_cloog_include;
5934 # Check whether --with-cloog-lib was given.
5935 if test "${with_cloog_lib+set}" = set; then :
5936 withval=$with_cloog_lib;
5940 # Check whether --enable-cloog-version-check was given.
5941 if test "${enable_cloog_version_check+set}" = set; then :
5942 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5943 else
5944 ENABLE_CLOOG_CHECK=yes
5948 # Initialize clooglibs and clooginc.
5949 case $with_cloog in
5951 clooglibs=
5952 clooginc=
5954 "" | yes)
5957 clooglibs="-L$with_cloog/lib"
5958 clooginc="-I$with_cloog/include"
5960 esac
5961 if test "x${with_cloog_include}" != x ; then
5962 clooginc="-I$with_cloog_include"
5964 if test "x${with_cloog_lib}" != x; then
5965 clooglibs="-L$with_cloog_lib"
5967 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5968 && test -d ${srcdir}/cloog; then
5969 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5970 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include'
5971 ENABLE_CLOOG_CHECK=no
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
5973 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
5976 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5977 clooglibs="${clooglibs} -lcloog-isl"
5983 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5984 _cloog_saved_CFLAGS=$CFLAGS
5985 _cloog_saved_LDFLAGS=$LDFLAGS
5987 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5988 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.1 of CLooG" >&5
5991 $as_echo_n "checking for version 0.18.1 of CLooG... " >&6; }
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 #include "cloog/version.h"
5996 main ()
5998 #if CLOOG_VERSION_MAJOR != 0 \
5999 || CLOOG_VERSION_MINOR != 18 \
6000 || CLOOG_VERSION_REVISION < 1
6001 choke me
6002 #endif
6004 return 0;
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 gcc_cv_cloog=yes
6009 else
6010 gcc_cv_cloog=no
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6014 $as_echo "$gcc_cv_cloog" >&6; }
6016 CFLAGS=$_cloog_saved_CFLAGS
6017 LDFLAGS=$_cloog_saved_LDFLAGS
6026 if test "x${with_cloog}" = xno; then
6027 graphite_requested=no
6028 elif test "x${with_cloog}" != x \
6029 || test "x${with_cloog_include}" != x \
6030 || test "x${with_cloog_lib}" != x ; then
6031 graphite_requested=yes
6032 else
6033 graphite_requested=no
6038 if test "${gcc_cv_cloog}" = no ; then
6039 clooglibs=
6040 clooginc=
6043 if test "${graphite_requested}" = yes \
6044 && test "x${clooglibs}" = x \
6045 && test "x${clooginc}" = x ; then
6047 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6054 # If the ISL check failed, disable builds of in-tree
6055 # variants of both ISL and CLooG
6056 if test "x$with_isl" = xno ||
6057 test "x$gcc_cv_isl" = xno; then
6058 noconfigdirs="$noconfigdirs cloog isl"
6059 islinc=
6060 clooginc=
6061 clooglibs=
6064 # If the CLooG check failed, disable builds of in-tree
6065 # variants of CLooG
6066 if test "x$with_cloog" = xno ||
6067 test "x$gcc_cv_cloog" = xno; then
6068 noconfigdirs="$noconfigdirs cloog isl"
6069 clooginc=
6070 clooglibs=
6078 # Check for LTO support.
6079 # Check whether --enable-lto was given.
6080 if test "${enable_lto+set}" = set; then :
6081 enableval=$enable_lto; enable_lto=$enableval
6082 else
6083 enable_lto=yes; default_enable_lto=yes
6090 target_elf=no
6091 case $target in
6092 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6093 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6094 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6095 target_elf=no
6098 target_elf=yes
6100 esac
6102 if test $target_elf = yes; then :
6103 # ELF platforms build the lto-plugin always.
6104 build_lto_plugin=yes
6106 else
6107 if test x"$default_enable_lto" = x"yes" ; then
6108 case $target in
6109 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6110 # On other non-ELF platforms, LTO has yet to be validated.
6111 *) enable_lto=no ;;
6112 esac
6113 else
6114 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6115 # It would also be nice to check the binutils support, but we don't
6116 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6117 # warn during gcc/ subconfigure; unless you're bootstrapping with
6118 # -flto it won't be needed until after installation anyway.
6119 case $target in
6120 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6121 *) if test x"$enable_lto" = x"yes"; then
6122 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6125 esac
6127 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6128 # Build it unless LTO was explicitly disabled.
6129 case $target in
6130 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6131 *) ;;
6132 esac
6137 # Check whether --enable-linker-plugin-configure-flags was given.
6138 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6139 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6140 else
6141 extra_linker_plugin_configure_flags=
6145 # Check whether --enable-linker-plugin-flags was given.
6146 if test "${enable_linker_plugin_flags+set}" = set; then :
6147 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6148 else
6149 extra_linker_plugin_flags=
6155 # By default, C and C++ are the only stage 1 languages.
6156 stage1_languages=,c,
6158 # Target libraries that we bootstrap.
6159 bootstrap_target_libs=,target-libgcc,
6161 # Figure out what language subdirectories are present.
6162 # Look if the user specified --enable-languages="..."; if not, use
6163 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6164 # go away some day.
6165 # NB: embedded tabs in this IF block -- do not untabify
6166 if test -d ${srcdir}/gcc; then
6167 if test x"${enable_languages+set}" != xset; then
6168 if test x"${LANGUAGES+set}" = xset; then
6169 enable_languages="${LANGUAGES}"
6170 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6171 else
6172 enable_languages=all
6174 else
6175 if test x"${enable_languages}" = x ||
6176 test x"${enable_languages}" = xyes;
6177 then
6178 echo configure.in: --enable-languages needs at least one language argument 1>&2
6179 exit 1
6182 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6184 # 'f95' is the old name for the 'fortran' language. We issue a warning
6185 # and make the substitution.
6186 case ,${enable_languages}, in
6187 *,f95,*)
6188 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6189 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6191 esac
6193 # If bootstrapping, C++ must be enabled.
6194 case ",$enable_languages,:$enable_bootstrap" in
6195 *,c++,*:*) ;;
6196 *:yes)
6197 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6198 enable_languages="${enable_languages},c++"
6199 else
6200 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6203 esac
6205 # First scan to see if an enabled language requires some other language.
6206 # We assume that a given config-lang.in will list all the language
6207 # front ends it requires, even if some are required indirectly.
6208 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6209 case ${lang_frag} in
6210 ..) ;;
6211 # The odd quoting in the next line works around
6212 # an apparent bug in bash 1.12 on linux.
6213 ${srcdir}/gcc/[*]/config-lang.in) ;;
6215 # From the config-lang.in, get $language, $lang_requires, and
6216 # $lang_requires_boot_languages.
6217 language=
6218 lang_requires=
6219 lang_requires_boot_languages=
6220 . ${lang_frag}
6221 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6222 case ,${enable_languages}, in
6223 *,$other,*) ;;
6224 *,all,*) ;;
6225 *,$language,*)
6226 echo " \`$other' language required by \`$language'; enabling" 1>&2
6227 enable_languages="${enable_languages},${other}"
6229 esac
6230 done
6231 for other in ${lang_requires_boot_languages} ; do
6232 if test "$other" != "c"; then
6233 case ,${enable_stage1_languages}, in
6234 *,$other,*) ;;
6235 *,all,*) ;;
6237 case ,${enable_languages}, in
6238 *,$language,*)
6239 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6240 enable_stage1_languages="$enable_stage1_languages,${other}"
6242 esac
6244 esac
6246 done
6248 esac
6249 done
6251 new_enable_languages=,c,
6253 # If LTO is enabled, add the LTO front end.
6254 extra_host_libiberty_configure_flags=
6255 if test "$enable_lto" = "yes" ; then
6256 case ,${enable_languages}, in
6257 *,lto,*) ;;
6258 *) enable_languages="${enable_languages},lto" ;;
6259 esac
6260 if test "${build_lto_plugin}" = "yes" ; then
6261 configdirs="$configdirs lto-plugin"
6262 extra_host_libiberty_configure_flags=--enable-shared
6267 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6268 potential_languages=,c,
6270 enabled_target_libs=
6271 disabled_target_libs=
6273 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6274 case ${lang_frag} in
6275 ..) ;;
6276 # The odd quoting in the next line works around
6277 # an apparent bug in bash 1.12 on linux.
6278 ${srcdir}/gcc/[*]/config-lang.in) ;;
6280 # From the config-lang.in, get $language, $target_libs,
6281 # $lang_dirs, $boot_language, and $build_by_default
6282 language=
6283 target_libs=
6284 lang_dirs=
6285 subdir_requires=
6286 boot_language=no
6287 build_by_default=yes
6288 . ${lang_frag}
6289 if test x${language} = x; then
6290 echo "${lang_frag} doesn't set \$language." 1>&2
6291 exit 1
6294 if test "$language" = "c++"; then
6295 boot_language=yes
6298 add_this_lang=no
6299 case ,${enable_languages}, in
6300 *,${language},*)
6301 # Language was explicitly selected; include it
6302 # unless it is C, which is enabled by default.
6303 if test "$language" != "c"; then
6304 add_this_lang=yes
6307 *,all,*)
6308 # 'all' was selected, select it if it is a default language
6309 if test "$language" != "c"; then
6310 add_this_lang=${build_by_default}
6313 esac
6315 # Disable languages that need other directories if these aren't available.
6316 for i in $subdir_requires; do
6317 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6318 case ,${enable_languages}, in
6319 *,${language},*)
6320 # Specifically requested language; tell them.
6321 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6324 # Silently disable.
6325 add_this_lang=unsupported
6327 esac
6328 done
6330 # Disable Ada if no preexisting GNAT is available.
6331 case ,${enable_languages},:${language}:${have_gnat} in
6332 *,${language},*:ada:no)
6333 # Specifically requested language; tell them.
6334 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6336 *:ada:no)
6337 # Silently disable.
6338 add_this_lang=unsupported
6340 esac
6342 # Disable a language that is unsupported by the target.
6343 case " $unsupported_languages " in
6344 *" $language "*)
6345 add_this_lang=unsupported
6347 esac
6349 case $add_this_lang in
6350 unsupported)
6351 # Remove language-dependent dirs.
6352 disabled_target_libs="$disabled_target_libs $target_libs"
6353 noconfigdirs="$noconfigdirs $lang_dirs"
6356 # Remove language-dependent dirs; still show language as supported.
6357 disabled_target_libs="$disabled_target_libs $target_libs"
6358 noconfigdirs="$noconfigdirs $lang_dirs"
6359 potential_languages="${potential_languages}${language},"
6361 yes)
6362 new_enable_languages="${new_enable_languages}${language},"
6363 potential_languages="${potential_languages}${language},"
6364 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6365 enabled_target_libs="$enabled_target_libs $target_libs"
6366 case "${boot_language}:,$enable_stage1_languages," in
6367 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6368 # Add to (comma-separated) list of stage 1 languages.
6369 case ",$stage1_languages," in
6370 *,$language,* | ,yes, | ,all,) ;;
6371 *) stage1_languages="${stage1_languages}${language}," ;;
6372 esac
6373 # We need to bootstrap any supporting libraries.
6374 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6376 esac
6378 esac
6380 esac
6381 done
6383 # Add target libraries which are only needed for disabled languages
6384 # to noconfigdirs.
6385 if test -n "$disabled_target_libs"; then
6386 for dir in $disabled_target_libs; do
6387 case " $enabled_target_libs " in
6388 *" ${dir} "*) ;;
6389 *) noconfigdirs="$noconfigdirs $dir" ;;
6390 esac
6391 done
6394 # Check whether --enable-stage1-languages was given.
6395 if test "${enable_stage1_languages+set}" = set; then :
6396 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6397 ,no,|,,)
6398 # Set it to something that will have no effect in the loop below
6399 enable_stage1_languages=c ;;
6400 ,yes,)
6401 enable_stage1_languages=`echo $new_enable_languages | \
6402 sed -e "s/^,//" -e "s/,$//" ` ;;
6403 *,all,*)
6404 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6405 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6406 esac
6408 # Add "good" languages from enable_stage1_languages to stage1_languages,
6409 # while "bad" languages go in missing_languages. Leave no duplicates.
6410 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6411 case $potential_languages in
6412 *,$i,*)
6413 case $stage1_languages in
6414 *,$i,*) ;;
6415 *) stage1_languages="$stage1_languages$i," ;;
6416 esac ;;
6418 case $missing_languages in
6419 *,$i,*) ;;
6420 *) missing_languages="$missing_languages$i," ;;
6421 esac ;;
6422 esac
6423 done
6427 # Remove leading/trailing commas that were added for simplicity
6428 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6429 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6430 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6431 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6433 if test "x$missing_languages" != x; then
6434 as_fn_error "
6435 The following requested languages could not be built: ${missing_languages}
6436 Supported languages are: ${potential_languages}" "$LINENO" 5
6438 if test "x$new_enable_languages" != "x$enable_languages"; then
6439 echo The following languages will be built: ${new_enable_languages}
6440 enable_languages="$new_enable_languages"
6444 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6447 # Handle --disable-<component> generically.
6448 for dir in $configdirs $build_configdirs $target_configdirs ; do
6449 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6450 varname=`echo $dirname | sed -e s/+/_/g`
6451 if eval test x\${enable_${varname}} "=" xno ; then
6452 noconfigdirs="$noconfigdirs $dir"
6454 done
6456 # Check for Boehm's garbage collector
6457 # Check whether --enable-objc-gc was given.
6458 if test "${enable_objc_gc+set}" = set; then :
6459 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6460 *,objc,*:*:yes:*target-boehm-gc*)
6461 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6463 esac
6467 # Make sure we only build Boehm's garbage collector if required.
6468 case ,${enable_languages},:${enable_objc_gc} in
6469 *,objc,*:yes)
6470 # Keep target-boehm-gc if requested for Objective-C.
6473 # Otherwise remove target-boehm-gc depending on target-libjava.
6474 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6475 noconfigdirs="$noconfigdirs target-boehm-gc"
6478 esac
6480 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6481 case ,${enable_languages}, in
6482 *,c++,*)
6483 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6484 case "${noconfigdirs}" in
6485 *target-libstdc++-v3*)
6486 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6488 *) ;;
6489 esac
6492 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6494 esac
6496 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6497 # $build_configdirs and $target_configdirs.
6498 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6500 notsupp=""
6501 for dir in . $skipdirs $noconfigdirs ; do
6502 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6503 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6504 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6505 if test -r $srcdir/$dirname/configure ; then
6506 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6507 true
6508 else
6509 notsupp="$notsupp $dir"
6513 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6514 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6515 if test -r $srcdir/$dirname/configure ; then
6516 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6517 true
6518 else
6519 notsupp="$notsupp $dir"
6523 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6524 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6525 if test -r $srcdir/$dirname/configure ; then
6526 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6527 true
6528 else
6529 notsupp="$notsupp $dir"
6533 done
6535 # Quietly strip out all directories which aren't configurable in this tree.
6536 # This relies on all configurable subdirectories being autoconfiscated, which
6537 # is now the case.
6538 build_configdirs_all="$build_configdirs"
6539 build_configdirs=
6540 for i in ${build_configdirs_all} ; do
6541 j=`echo $i | sed -e s/build-//g`
6542 if test -f ${srcdir}/$j/configure ; then
6543 build_configdirs="${build_configdirs} $i"
6545 done
6547 configdirs_all="$configdirs"
6548 configdirs=
6549 for i in ${configdirs_all} ; do
6550 if test -f ${srcdir}/$i/configure ; then
6551 configdirs="${configdirs} $i"
6553 done
6555 target_configdirs_all="$target_configdirs"
6556 target_configdirs=
6557 for i in ${target_configdirs_all} ; do
6558 j=`echo $i | sed -e s/target-//g`
6559 if test -f ${srcdir}/$j/configure ; then
6560 target_configdirs="${target_configdirs} $i"
6562 done
6564 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6565 # so we have to add it after the preceding checks.
6566 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6567 then
6568 case " $configdirs " in
6569 *" libiberty "*)
6570 # If we can build libiberty, we can also build libiberty-linker-plugin.
6571 configdirs="$configdirs libiberty-linker-plugin"
6572 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6573 --with-libiberty=../libiberty-linker-plugin";;
6575 as_fn_error "libiberty missing" "$LINENO" 5;;
6576 esac
6579 # Produce a warning message for the subdirs we can't configure.
6580 # This isn't especially interesting in the Cygnus tree, but in the individual
6581 # FSF releases, it's important to let people know when their machine isn't
6582 # supported by the one or two programs in a package.
6584 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6585 # If $appdirs is non-empty, at least one of those directories must still
6586 # be configured, or we error out. (E.g., if the gas release supports a
6587 # specified target in some subdirs but not the gas subdir, we shouldn't
6588 # pretend that all is well.)
6589 if test -n "$appdirs" ; then
6590 for dir in $appdirs ; do
6591 if test -r $dir/Makefile.in ; then
6592 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6593 appdirs=""
6594 break
6596 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6597 appdirs=""
6598 break
6601 done
6602 if test -n "$appdirs" ; then
6603 echo "*** This configuration is not supported by this package." 1>&2
6604 exit 1
6607 # Okay, some application will build, or we don't care to check. Still
6608 # notify of subdirs not getting built.
6609 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6610 echo " ${notsupp}" 1>&2
6611 echo " (Any other directories should still work fine.)" 1>&2
6614 case "$host" in
6615 *msdosdjgpp*)
6616 enable_gdbtk=no ;;
6617 esac
6619 # To find our prefix, in gcc_cv_tool_prefix.
6621 # The user is always right.
6622 if test "${PATH_SEPARATOR+set}" != set; then
6623 echo "#! /bin/sh" >conf$$.sh
6624 echo "exit 0" >>conf$$.sh
6625 chmod +x conf$$.sh
6626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6627 PATH_SEPARATOR=';'
6628 else
6629 PATH_SEPARATOR=:
6631 rm -f conf$$.sh
6636 if test "x$exec_prefix" = xNONE; then
6637 if test "x$prefix" = xNONE; then
6638 gcc_cv_tool_prefix=$ac_default_prefix
6639 else
6640 gcc_cv_tool_prefix=$prefix
6642 else
6643 gcc_cv_tool_prefix=$exec_prefix
6646 # If there is no compiler in the tree, use the PATH only. In any
6647 # case, if there is no compiler in the tree nobody should use
6648 # AS_FOR_TARGET and LD_FOR_TARGET.
6649 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6650 gcc_version=`cat $srcdir/gcc/BASE-VER`
6651 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6652 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6653 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6654 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6655 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6656 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6657 else
6658 gcc_cv_tool_dirs=
6661 if test x$build = x$target && test -n "$md_exec_prefix"; then
6662 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6667 copy_dirs=
6670 # Check whether --with-build-sysroot was given.
6671 if test "${with_build_sysroot+set}" = set; then :
6672 withval=$with_build_sysroot; if test x"$withval" != x ; then
6673 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6675 else
6676 SYSROOT_CFLAGS_FOR_TARGET=
6682 # Check whether --with-debug-prefix-map was given.
6683 if test "${with_debug_prefix_map+set}" = set; then :
6684 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6685 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6686 for debug_map in $withval; do
6687 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6688 done
6690 else
6691 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6696 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6697 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6698 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6699 # We want to ensure that TARGET libraries (which we know are built with
6700 # gcc) are built with "-O2 -g", so include those options when setting
6701 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6702 if test "x$CFLAGS_FOR_TARGET" = x; then
6703 CFLAGS_FOR_TARGET=$CFLAGS
6704 case " $CFLAGS " in
6705 *" -O2 "*) ;;
6706 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6707 esac
6708 case " $CFLAGS " in
6709 *" -g "* | *" -g3 "*) ;;
6710 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6711 esac
6715 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6716 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6717 case " $CXXFLAGS " in
6718 *" -O2 "*) ;;
6719 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6720 esac
6721 case " $CXXFLAGS " in
6722 *" -g "* | *" -g3 "*) ;;
6723 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6724 esac
6730 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6731 # the named directory are copied to $(tooldir)/sys-include.
6732 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6733 if test x${is_cross_compiler} = xno ; then
6734 echo 1>&2 '***' --with-headers is only supported when cross compiling
6735 exit 1
6737 if test x"${with_headers}" != xyes ; then
6738 x=${gcc_cv_tool_prefix}
6739 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6743 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6744 # the name directories are copied to $(tooldir)/lib. Multiple directories
6745 # are permitted.
6746 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6747 if test x${is_cross_compiler} = xno ; then
6748 echo 1>&2 '***' --with-libs is only supported when cross compiling
6749 exit 1
6751 if test x"${with_libs}" != xyes ; then
6752 # Copy the libraries in reverse order, so that files in the first named
6753 # library override files in subsequent libraries.
6754 x=${gcc_cv_tool_prefix}
6755 for l in ${with_libs}; do
6756 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6757 done
6761 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6763 # This is done by determining whether or not the appropriate directory
6764 # is available, and by checking whether or not specific configurations
6765 # have requested that this magic not happen.
6767 # The command line options always override the explicit settings in
6768 # configure.in, and the settings in configure.in override this magic.
6770 # If the default for a toolchain is to use GNU as and ld, and you don't
6771 # want to do that, then you should use the --without-gnu-as and
6772 # --without-gnu-ld options for the configure script. Similarly, if
6773 # the default is to use the included zlib and you don't want to do that,
6774 # you should use the --with-system-zlib option for the configure script.
6776 if test x${use_gnu_as} = x &&
6777 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6778 with_gnu_as=yes
6779 extra_host_args="$extra_host_args --with-gnu-as"
6782 if test x${use_gnu_ld} = x &&
6783 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6784 with_gnu_ld=yes
6785 extra_host_args="$extra_host_args --with-gnu-ld"
6788 if test x${use_included_zlib} = x &&
6789 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6791 else
6792 with_system_zlib=yes
6793 extra_host_args="$extra_host_args --with-system-zlib"
6796 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6797 # can detect this case.
6799 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6800 with_newlib=yes
6801 extra_host_args="$extra_host_args --with-newlib"
6804 # Handle ${copy_dirs}
6805 set fnord ${copy_dirs}
6806 shift
6807 while test $# != 0 ; do
6808 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6810 else
6811 echo Copying $1 to $2
6813 # Use the install script to create the directory and all required
6814 # parent directories.
6815 if test -d $2 ; then
6817 else
6818 echo >config.temp
6819 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6822 # Copy the directory, assuming we have tar.
6823 # FIXME: Should we use B in the second tar? Not all systems support it.
6824 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6826 # It is the responsibility of the user to correctly adjust all
6827 # symlinks. If somebody can figure out how to handle them correctly
6828 # here, feel free to add the code.
6830 echo $1 > $2/COPIED
6832 shift; shift
6833 done
6835 # Determine a target-dependent exec_prefix that the installed
6836 # gcc will search in. Keep this list sorted by triplet, with
6837 # the *-*-osname triplets last.
6838 md_exec_prefix=
6839 case "${target}" in
6840 i[34567]86-pc-msdosdjgpp*)
6841 md_exec_prefix=/dev/env/DJDIR/bin
6843 *-*-hpux* | \
6844 *-*-nto-qnx* | \
6845 *-*-solaris2*)
6846 md_exec_prefix=/usr/ccs/bin
6848 esac
6850 extra_arflags_for_target=
6851 extra_nmflags_for_target=
6852 extra_ranlibflags_for_target=
6853 target_makefile_frag=/dev/null
6854 case "${target}" in
6855 spu-*-*)
6856 target_makefile_frag="config/mt-spu"
6858 mips*-sde-elf* | mips*-mti-elf*)
6859 target_makefile_frag="config/mt-sde"
6861 mipsisa*-*-elfoabi*)
6862 target_makefile_frag="config/mt-mips-elfoabi"
6864 mips*-*-*linux* | mips*-*-gnu*)
6865 target_makefile_frag="config/mt-mips-gnu"
6867 nios2-*-elf*)
6868 target_makefile_frag="config/mt-nios2-elf"
6870 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6871 target_makefile_frag="config/mt-gnu"
6873 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6874 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6875 # commands to handle both 32-bit and 64-bit objects. These flags are
6876 # harmless if we're using GNU nm or ar.
6877 extra_arflags_for_target=" -X32_64"
6878 extra_nmflags_for_target=" -B -X32_64"
6880 esac
6882 alphaieee_frag=/dev/null
6883 case $target in
6884 alpha*-*-*)
6885 # This just makes sure to use the -mieee option to build target libs.
6886 # This should probably be set individually by each library.
6887 alphaieee_frag="config/mt-alphaieee"
6889 esac
6891 # If --enable-target-optspace always use -Os instead of -O2 to build
6892 # the target libraries, similarly if it is not specified, use -Os
6893 # on selected platforms.
6894 ospace_frag=/dev/null
6895 case "${enable_target_optspace}:${target}" in
6896 yes:*)
6897 ospace_frag="config/mt-ospace"
6899 :d30v-*)
6900 ospace_frag="config/mt-d30v"
6902 :m32r-* | :d10v-* | :fr30-*)
6903 ospace_frag="config/mt-ospace"
6905 no:* | :*)
6908 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6910 esac
6912 # Some systems (e.g., one of the i386-aix systems the gas testers are
6913 # using) don't handle "\$" correctly, so don't use it here.
6914 tooldir='${exec_prefix}'/${target_noncanonical}
6915 build_tooldir=${tooldir}
6917 # Create a .gdbinit file which runs the one in srcdir
6918 # and tells GDB to look there for source files.
6920 if test -r ${srcdir}/.gdbinit ; then
6921 case ${srcdir} in
6922 .) ;;
6923 *) cat > ./.gdbinit <<EOF
6924 # ${NO_EDIT}
6925 dir ${srcdir}
6926 dir .
6927 source ${srcdir}/.gdbinit
6930 esac
6933 # Make sure that the compiler is able to generate an executable. If it
6934 # can't, we are probably in trouble. We don't care whether we can run the
6935 # executable--we might be using a cross compiler--we only care whether it
6936 # can be created. At this point the main configure script has set CC.
6937 we_are_ok=no
6938 echo "int main () { return 0; }" > conftest.c
6939 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6940 if test $? = 0 ; then
6941 if test -s conftest || test -s conftest.exe ; then
6942 we_are_ok=yes
6945 case $we_are_ok in
6947 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6948 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6949 rm -f conftest*
6950 exit 1
6952 esac
6953 rm -f conftest*
6955 # Decide which environment variable is used to find dynamic libraries.
6956 case "${host}" in
6957 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6958 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6959 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6960 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6961 esac
6963 # On systems where the dynamic library environment variable is PATH,
6964 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6965 # built executables to PATH.
6966 if test "$RPATH_ENVVAR" = PATH; then
6967 GCC_SHLIB_SUBDIR=/shlib
6968 else
6969 GCC_SHLIB_SUBDIR=
6972 # Adjust the toplevel makefile according to whether bootstrap was selected.
6973 case $enable_bootstrap in
6974 yes)
6975 bootstrap_suffix=bootstrap
6976 BUILD_CONFIG=bootstrap-debug
6979 bootstrap_suffix=no-bootstrap
6980 BUILD_CONFIG=
6982 esac
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6985 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6988 # Check whether --with-build-config was given.
6989 if test "${with_build_config+set}" = set; then :
6990 withval=$with_build_config; case $with_build_config in
6991 yes) with_build_config= ;;
6992 no) with_build_config= BUILD_CONFIG= ;;
6993 esac
6997 if test "x${with_build_config}" != x; then
6998 BUILD_CONFIG=$with_build_config
6999 else
7000 case $BUILD_CONFIG in
7001 bootstrap-debug)
7002 if echo "int f (void) { return 0; }" > conftest.c &&
7003 ${CC} -c conftest.c &&
7004 mv conftest.o conftest.o.g0 &&
7005 ${CC} -c -g conftest.c &&
7006 mv conftest.o conftest.o.g &&
7007 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7009 else
7010 BUILD_CONFIG=
7012 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7014 esac
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7017 $as_echo "$BUILD_CONFIG" >&6; }
7020 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7022 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7023 # Check whether --enable-vtable-verify was given.
7024 if test "${enable_vtable_verify+set}" = set; then :
7025 enableval=$enable_vtable_verify; case "$enableval" in
7026 yes) enable_vtable_verify=yes ;;
7027 no) enable_vtable_verify=no ;;
7028 *) enable_vtable_verify=no;;
7029 esac
7030 else
7031 enable_vtable_verify=no
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7035 $as_echo "$enable_vtable_verify" >&6; }
7037 # Record target_configdirs and the configure arguments for target and
7038 # build configuration in Makefile.
7039 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7040 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7041 bootstrap_fixincludes=no
7043 # If we are building libgomp, bootstrap it.
7044 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7045 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7048 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7049 # or bootstrap-ubsan, bootstrap it.
7050 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7051 case "$BUILD_CONFIG" in
7052 *bootstrap-asan* | *bootstrap-ubsan* )
7053 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7054 bootstrap_fixincludes=yes
7056 esac
7059 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7060 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7061 test "$enable_vtable_verify" != no; then
7062 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7065 # Determine whether gdb needs tk/tcl or not.
7066 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7067 # and in that case we want gdb to be built without tk. Ugh!
7068 # In fact I believe gdb is the *only* package directly dependent on tk,
7069 # so we should be able to put the 'maybe's in unconditionally and
7070 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7071 # 100% sure that that's safe though.
7073 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7074 case "$enable_gdbtk" in
7076 GDB_TK="" ;;
7077 yes)
7078 GDB_TK="${gdb_tk}" ;;
7080 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7081 # distro. Eventually someone will fix this and move Insight, nee
7082 # gdbtk to a separate directory.
7083 if test -d ${srcdir}/gdb/gdbtk ; then
7084 GDB_TK="${gdb_tk}"
7085 else
7086 GDB_TK=""
7089 esac
7090 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7091 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7093 # Strip out unwanted targets.
7095 # While at that, we remove Makefiles if we were started for recursive
7096 # configuration, so that the top-level Makefile reconfigures them,
7097 # like we used to do when configure itself was recursive.
7099 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7100 # but now we're fixing up the Makefile ourselves with the additional
7101 # commands passed to AC_CONFIG_FILES. Use separate variables
7102 # extrasub-{build,host,target} not because there is any reason to split
7103 # the substitutions up that way, but only to remain below the limit of
7104 # 99 commands in a script, for HP-UX sed.
7105 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7107 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7108 yes:yes:*\ gold\ *:*,c++,*) ;;
7109 yes:yes:*\ gold\ *:*)
7110 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7112 esac
7114 extrasub_build=
7115 for module in ${build_configdirs} ; do
7116 if test -z "${no_recursion}" \
7117 && test -f ${build_subdir}/${module}/Makefile; then
7118 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7119 rm -f ${build_subdir}/${module}/Makefile
7121 extrasub_build="$extrasub_build
7122 /^@if build-$module\$/d
7123 /^@endif build-$module\$/d
7124 /^@if build-$module-$bootstrap_suffix\$/d
7125 /^@endif build-$module-$bootstrap_suffix\$/d"
7126 done
7127 extrasub_host=
7128 for module in ${configdirs} ; do
7129 if test -z "${no_recursion}"; then
7130 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7131 if test -f ${file}; then
7132 echo 1>&2 "*** removing ${file} to force reconfigure"
7133 rm -f ${file}
7135 done
7137 case ${module},${bootstrap_fixincludes} in
7138 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7139 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7140 esac
7141 extrasub_host="$extrasub_host
7142 /^@if $module\$/d
7143 /^@endif $module\$/d
7144 /^@if $module-$host_bootstrap_suffix\$/d
7145 /^@endif $module-$host_bootstrap_suffix\$/d"
7146 done
7147 extrasub_target=
7148 for module in ${target_configdirs} ; do
7149 if test -z "${no_recursion}" \
7150 && test -f ${target_subdir}/${module}/Makefile; then
7151 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7152 rm -f ${target_subdir}/${module}/Makefile
7155 # We only bootstrap target libraries listed in bootstrap_target_libs.
7156 case $bootstrap_target_libs in
7157 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7158 *) target_bootstrap_suffix=no-bootstrap ;;
7159 esac
7161 extrasub_target="$extrasub_target
7162 /^@if target-$module\$/d
7163 /^@endif target-$module\$/d
7164 /^@if target-$module-$target_bootstrap_suffix\$/d
7165 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7166 done
7168 # Do the final fixup along with target modules.
7169 extrasub_target="$extrasub_target
7170 /^@if /,/^@endif /d"
7172 # Create the serialization dependencies. This uses a temporary file.
7174 # Check whether --enable-serial-configure was given.
7175 if test "${enable_serial_configure+set}" = set; then :
7176 enableval=$enable_serial_configure;
7180 case ${enable_serial_configure} in
7181 yes)
7182 enable_serial_build_configure=yes
7183 enable_serial_host_configure=yes
7184 enable_serial_target_configure=yes
7186 esac
7188 # These force 'configure's to be done one at a time, to avoid problems
7189 # with contention over a shared config.cache.
7190 rm -f serdep.tmp
7191 echo '# serdep.tmp' > serdep.tmp
7192 olditem=
7193 test "x${enable_serial_build_configure}" = xyes &&
7194 for item in ${build_configdirs} ; do
7195 case ${olditem} in
7196 "") ;;
7197 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7198 esac
7199 olditem=${item}
7200 done
7201 olditem=
7202 test "x${enable_serial_host_configure}" = xyes &&
7203 for item in ${configdirs} ; do
7204 case ${olditem} in
7205 "") ;;
7206 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7207 esac
7208 olditem=${item}
7209 done
7210 olditem=
7211 test "x${enable_serial_target_configure}" = xyes &&
7212 for item in ${target_configdirs} ; do
7213 case ${olditem} in
7214 "") ;;
7215 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7216 esac
7217 olditem=${item}
7218 done
7219 serialization_dependencies=serdep.tmp
7222 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7223 # target, nonopt, and variable assignments. These are the ones we
7224 # might not want to pass down to subconfigures. The exception being
7225 # --cache-file=/dev/null, which is used to turn off the use of cache
7226 # files altogether, and which should be passed on to subconfigures.
7227 # Also strip program-prefix, program-suffix, and program-transform-name,
7228 # so that we can pass down a consistent program-transform-name.
7229 baseargs=
7230 tbaseargs=
7231 keep_next=no
7232 skip_next=no
7233 eval "set -- $ac_configure_args"
7234 for ac_arg
7236 if test X"$skip_next" = X"yes"; then
7237 skip_next=no
7238 continue
7240 if test X"$keep_next" = X"yes"; then
7241 case $ac_arg in
7242 *\'*)
7243 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7244 esac
7245 baseargs="$baseargs '$ac_arg'"
7246 tbaseargs="$tbaseargs '$ac_arg'"
7247 keep_next=no
7248 continue
7251 # Handle separated arguments. Based on the logic generated by
7252 # autoconf 2.59.
7253 case $ac_arg in
7254 *=* | --config-cache | -C | -disable-* | --disable-* \
7255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7257 | -with-* | --with-* | -without-* | --without-* | --x)
7258 separate_arg=no
7261 separate_arg=yes
7264 separate_arg=no
7266 esac
7268 skip_targ=no
7269 case $ac_arg in
7271 --with-* | --without-*)
7272 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7274 case $libopt in
7275 *[-_]include)
7276 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7278 *[-_]lib)
7279 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7282 lib=$libopt
7284 esac
7287 case $lib in
7288 mpc | mpfr | gmp | isl | cloog)
7289 # If we're processing --with-$lib, --with-$lib-include or
7290 # --with-$lib-lib, for one of the libs above, and target is
7291 # different from host, don't pass the current argument to any
7292 # target library's configure.
7293 if test x$is_cross_compiler = xyes; then
7294 skip_targ=yes
7297 esac
7299 esac
7301 case "$ac_arg" in
7302 --cache-file=/dev/null | \
7303 -cache-file=/dev/null )
7304 # Handled here to avoid the test to skip args below.
7305 baseargs="$baseargs '$ac_arg'"
7306 tbaseargs="$tbaseargs '$ac_arg'"
7307 # Assert: $separate_arg should always be no.
7308 keep_next=$separate_arg
7310 --no*)
7311 continue
7313 --c* | \
7314 --sr* | \
7315 --ho* | \
7316 --bu* | \
7317 --t* | \
7318 --program-* | \
7319 -cache_file* | \
7320 -srcdir* | \
7321 -host* | \
7322 -build* | \
7323 -target* | \
7324 -program-prefix* | \
7325 -program-suffix* | \
7326 -program-transform-name* )
7327 skip_next=$separate_arg
7328 continue
7331 # An option. Add it.
7332 case $ac_arg in
7333 *\'*)
7334 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7335 esac
7336 baseargs="$baseargs '$ac_arg'"
7337 if test X"$skip_targ" = Xno; then
7338 tbaseargs="$tbaseargs '$ac_arg'"
7340 keep_next=$separate_arg
7343 # Either a variable assignment, or a nonopt (triplet). Don't
7344 # pass it down; let the Makefile handle this.
7345 continue
7347 esac
7348 done
7349 # Remove the initial space we just introduced and, as these will be
7350 # expanded by make, quote '$'.
7351 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7353 # Add in --program-transform-name, after --program-prefix and
7354 # --program-suffix have been applied to it. Autoconf has already
7355 # doubled dollar signs and backslashes in program_transform_name; we want
7356 # the backslashes un-doubled, and then the entire thing wrapped in single
7357 # quotes, because this will be expanded first by make and then by the shell.
7358 # Also, because we want to override the logic in subdir configure scripts to
7359 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7360 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7361 ${program_transform_name}
7362 EOF_SED
7363 gcc_transform_name=`cat conftestsed.out`
7364 rm -f conftestsed.out
7365 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7366 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7367 if test "$silent" = yes; then
7368 baseargs="$baseargs --silent"
7369 tbaseargs="$tbaseargs --silent"
7371 baseargs="$baseargs --disable-option-checking"
7372 tbaseargs="$tbaseargs --disable-option-checking"
7374 # Record and document user additions to sub configure arguments.
7379 # For the build-side libraries, we just need to pretend we're native,
7380 # and not use the same cache file. Multilibs are neither needed nor
7381 # desired.
7382 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7384 # For host modules, accept cache file option, or specification as blank.
7385 case "${cache_file}" in
7386 "") # empty
7387 cache_file_option="" ;;
7388 /* | [A-Za-z]:[\\/]* ) # absolute path
7389 cache_file_option="--cache-file=${cache_file}" ;;
7390 *) # relative path
7391 cache_file_option="--cache-file=../${cache_file}" ;;
7392 esac
7394 # Host dirs don't like to share a cache file either, horribly enough.
7395 # This seems to be due to autoconf 2.5x stupidity.
7396 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7398 target_configargs="$target_configargs ${tbaseargs}"
7400 # Passing a --with-cross-host argument lets the target libraries know
7401 # whether they are being built with a cross-compiler or being built
7402 # native. However, it would be better to use other mechanisms to make the
7403 # sorts of decisions they want to make on this basis. Please consider
7404 # this option to be deprecated. FIXME.
7405 if test x${is_cross_compiler} = xyes ; then
7406 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7409 # Special user-friendly check for native x86_64-linux build, if
7410 # multilib is not explicitly enabled.
7411 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7412 x86_64-*linux*:yes:$build:$build:)
7413 # Make sure we have a developement environment that handles 32-bit
7414 dev64=no
7415 echo "int main () { return 0; }" > conftest.c
7416 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7417 if test $? = 0 ; then
7418 if test -s conftest || test -s conftest.exe ; then
7419 dev64=yes
7422 rm -f conftest*
7423 if test x${dev64} != xyes ; then
7424 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
7427 esac
7429 # Default to --enable-multilib.
7430 if test x${enable_multilib} = x ; then
7431 target_configargs="--enable-multilib ${target_configargs}"
7434 # Pass --with-newlib if appropriate. Note that target_configdirs has
7435 # changed from the earlier setting of with_newlib.
7436 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7437 target_configargs="--with-newlib ${target_configargs}"
7440 # Different target subdirs use different values of certain variables
7441 # (notably CXX). Worse, multilibs use *lots* of different values.
7442 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7443 # it doesn't automatically accept command-line overrides of them.
7444 # This means it's not safe for target subdirs to share a cache file,
7445 # which is disgusting, but there you have it. Hopefully this can be
7446 # fixed in future. It's still worthwhile to use a cache file for each
7447 # directory. I think.
7449 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7450 # We need to pass --target, as newer autoconf's requires consistency
7451 # for target_alias and gcc doesn't manage it consistently.
7452 target_configargs="--cache-file=./config.cache ${target_configargs}"
7454 FLAGS_FOR_TARGET=
7455 case " $target_configdirs " in
7456 *" newlib "*)
7457 case " $target_configargs " in
7458 *" --with-newlib "*)
7459 case "$target" in
7460 *-cygwin*)
7461 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7463 esac
7465 # If we're not building GCC, don't discard standard headers.
7466 if test -d ${srcdir}/gcc; then
7467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7469 if test "${build}" != "${host}"; then
7470 # On Canadian crosses, CC_FOR_TARGET will have already been set
7471 # by `configure', so we won't have an opportunity to add -Bgcc/
7472 # to it. This is right: we don't want to search that directory
7473 # for binaries, but we want the header files in there, so add
7474 # them explicitly.
7475 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7477 # Someone might think of using the pre-installed headers on
7478 # Canadian crosses, in case the installed compiler is not fully
7479 # compatible with the compiler being built. In this case, it
7480 # would be better to flag an error than risking having
7481 # incompatible object files being constructed. We can't
7482 # guarantee that an error will be flagged, but let's hope the
7483 # compiler will do it, when presented with incompatible header
7484 # files.
7488 case "${target}-${is_cross_compiler}" in
7489 i[3456789]86-*-linux*-no)
7490 # Here host == target, so we don't need to build gcc,
7491 # so we don't want to discard standard headers.
7492 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7495 # If we're building newlib, use its generic headers last, but search
7496 # for any libc-related directories first (so make it the last -B
7497 # switch).
7498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7500 # If we're building libgloss, find the startup file, simulator library
7501 # and linker script.
7502 case " $target_configdirs " in
7503 *" libgloss "*)
7504 # Look for startup file, simulator library and maybe linker script.
7505 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7506 # Look for libnosys.a in case the target needs it.
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7508 # Most targets have the linker script in the source directory.
7509 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7511 esac
7513 esac
7515 esac
7517 esac
7519 case "$target" in
7520 x86_64-*mingw* | *-w64-mingw*)
7521 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7522 # however, use a symlink named 'mingw' in ${prefix} .
7523 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7525 *-mingw*)
7526 # MinGW can't be handled as Cygwin above since it does not use newlib.
7527 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'
7529 esac
7531 # Allow the user to override the flags for
7532 # our build compiler if desired.
7533 if test x"${build}" = x"${host}" ; then
7534 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7535 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7536 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7539 # On Canadian crosses, we'll be searching the right directories for
7540 # the previously-installed cross compiler, so don't bother to add
7541 # flags for directories within the install tree of the compiler
7542 # being built; programs in there won't even run.
7543 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7544 # Search for pre-installed headers if nothing else fits.
7545 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7548 if test "x${use_gnu_ld}" = x &&
7549 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7550 # Arrange for us to find uninstalled linker scripts.
7551 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7554 # Search for other target-specific linker scripts and such.
7555 case "${target}" in
7556 mep*)
7557 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7559 esac
7561 # Makefile fragments.
7562 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7564 eval fragval=\$$frag
7565 if test $fragval != /dev/null; then
7566 eval $frag=${srcdir}/$fragval
7568 done
7574 # Miscellanea: directories, flags, etc.
7583 # Build module lists & subconfigure args.
7587 # Host module lists & subconfigure args.
7592 # Target module lists & subconfigure args.
7596 # Build tools.
7614 # Generate default definitions for YACC, M4, LEX and other programs that run
7615 # on the build machine. These are used if the Makefile can't locate these
7616 # programs in objdir.
7617 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7619 for ac_prog in 'bison -y' byacc yacc
7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy $ac_prog; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_YACC+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$YACC"; then
7629 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_YACC="$ac_prog"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7644 IFS=$as_save_IFS
7648 YACC=$ac_cv_prog_YACC
7649 if test -n "$YACC"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7651 $as_echo "$YACC" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7658 test -n "$YACC" && break
7659 done
7660 test -n "$YACC" || YACC="$MISSING bison -y"
7662 case " $build_configdirs " in
7663 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7664 esac
7666 for ac_prog in bison
7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
7669 set dummy $ac_prog; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_BISON+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 if test -n "$BISON"; then
7676 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_prog_BISON="$ac_prog"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7689 done
7690 done
7691 IFS=$as_save_IFS
7695 BISON=$ac_cv_prog_BISON
7696 if test -n "$BISON"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7698 $as_echo "$BISON" >&6; }
7699 else
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7705 test -n "$BISON" && break
7706 done
7707 test -n "$BISON" || BISON="$MISSING bison"
7709 case " $build_configdirs " in
7710 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7711 esac
7713 for ac_prog in gm4 gnum4 m4
7715 # Extract the first word of "$ac_prog", so it can be a program name with args.
7716 set dummy $ac_prog; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_M4+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 if test -n "$M4"; then
7723 ac_cv_prog_M4="$M4" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_M4="$ac_prog"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7736 done
7737 done
7738 IFS=$as_save_IFS
7742 M4=$ac_cv_prog_M4
7743 if test -n "$M4"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7745 $as_echo "$M4" >&6; }
7746 else
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7752 test -n "$M4" && break
7753 done
7754 test -n "$M4" || M4="$MISSING m4"
7756 case " $build_configdirs " in
7757 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7758 esac
7760 for ac_prog in flex lex
7762 # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if test "${ac_cv_prog_LEX+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test -n "$LEX"; then
7770 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_prog_LEX="$ac_prog"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7783 done
7784 done
7785 IFS=$as_save_IFS
7789 LEX=$ac_cv_prog_LEX
7790 if test -n "$LEX"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7792 $as_echo "$LEX" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7799 test -n "$LEX" && break
7800 done
7801 test -n "$LEX" || LEX="$MISSING flex"
7803 case " $build_configdirs " in
7804 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7805 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7806 esac
7808 for ac_prog in flex
7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if test "${ac_cv_prog_FLEX+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test -n "$FLEX"; then
7818 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_prog_FLEX="$ac_prog"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7831 done
7832 done
7833 IFS=$as_save_IFS
7837 FLEX=$ac_cv_prog_FLEX
7838 if test -n "$FLEX"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7840 $as_echo "$FLEX" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7847 test -n "$FLEX" && break
7848 done
7849 test -n "$FLEX" || FLEX="$MISSING flex"
7851 case " $build_configdirs " in
7852 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7853 esac
7855 for ac_prog in makeinfo
7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$MAKEINFO"; then
7865 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_prog_MAKEINFO="$ac_prog"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7878 done
7879 done
7880 IFS=$as_save_IFS
7884 MAKEINFO=$ac_cv_prog_MAKEINFO
7885 if test -n "$MAKEINFO"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7887 $as_echo "$MAKEINFO" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7894 test -n "$MAKEINFO" && break
7895 done
7896 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7898 case " $build_configdirs " in
7899 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7902 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7903 # higher, else we use the "missing" dummy.
7904 if ${MAKEINFO} --version \
7905 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7907 else
7908 MAKEINFO="$MISSING makeinfo"
7912 esac
7914 # FIXME: expect and dejagnu may become build tools?
7916 for ac_prog in expect
7918 # Extract the first word of "$ac_prog", so it can be a program name with args.
7919 set dummy $ac_prog; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 if test -n "$EXPECT"; then
7926 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_prog_EXPECT="$ac_prog"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7939 done
7940 done
7941 IFS=$as_save_IFS
7945 EXPECT=$ac_cv_prog_EXPECT
7946 if test -n "$EXPECT"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7948 $as_echo "$EXPECT" >&6; }
7949 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7955 test -n "$EXPECT" && break
7956 done
7957 test -n "$EXPECT" || EXPECT="expect"
7959 case " $configdirs " in
7960 *" expect "*)
7961 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7963 esac
7965 for ac_prog in runtest
7967 # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$RUNTEST"; then
7975 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_prog_RUNTEST="$ac_prog"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7988 done
7989 done
7990 IFS=$as_save_IFS
7994 RUNTEST=$ac_cv_prog_RUNTEST
7995 if test -n "$RUNTEST"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7997 $as_echo "$RUNTEST" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8004 test -n "$RUNTEST" && break
8005 done
8006 test -n "$RUNTEST" || RUNTEST="runtest"
8008 case " $configdirs " in
8009 *" dejagnu "*)
8010 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8012 esac
8015 # Host tools.
8016 ncn_tool_prefix=
8017 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8018 ncn_target_tool_prefix=
8019 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8023 if test -n "$AR"; then
8024 ac_cv_prog_AR=$AR
8025 elif test -n "$ac_cv_prog_AR"; then
8026 AR=$ac_cv_prog_AR
8029 if test -n "$ac_cv_prog_AR"; then
8030 for ncn_progname in ar; do
8031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8032 set dummy ${ncn_progname}; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if test "${ac_cv_prog_AR+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 if test -n "$AR"; then
8039 ac_cv_prog_AR="$AR" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_AR="${ncn_progname}"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8052 done
8053 done
8054 IFS=$as_save_IFS
8058 AR=$ac_cv_prog_AR
8059 if test -n "$AR"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8061 $as_echo "$AR" >&6; }
8062 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8068 done
8071 for ncn_progname in ar; do
8072 if test -n "$ncn_tool_prefix"; then
8073 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8074 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if test "${ac_cv_prog_AR+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$AR"; then
8081 ac_cv_prog_AR="$AR" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8090 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8094 done
8095 done
8096 IFS=$as_save_IFS
8100 AR=$ac_cv_prog_AR
8101 if test -n "$AR"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8103 $as_echo "$AR" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8113 set dummy ${ncn_progname}; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_AR+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 if test -n "$AR"; then
8120 ac_cv_prog_AR="$AR" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_AR="${ncn_progname}"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8133 done
8134 done
8135 IFS=$as_save_IFS
8139 AR=$ac_cv_prog_AR
8140 if test -n "$AR"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8142 $as_echo "$AR" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8150 test -n "$ac_cv_prog_AR" && break
8151 done
8153 if test -z "$ac_cv_prog_AR" ; then
8154 set dummy ar
8155 if test $build = $host ; then
8156 AR="$2"
8157 else
8158 AR="${ncn_tool_prefix}$2"
8164 if test -n "$AS"; then
8165 ac_cv_prog_AS=$AS
8166 elif test -n "$ac_cv_prog_AS"; then
8167 AS=$ac_cv_prog_AS
8170 if test -n "$ac_cv_prog_AS"; then
8171 for ncn_progname in as; do
8172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8173 set dummy ${ncn_progname}; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_AS+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$AS"; then
8180 ac_cv_prog_AS="$AS" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_AS="${ncn_progname}"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8199 AS=$ac_cv_prog_AS
8200 if test -n "$AS"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8202 $as_echo "$AS" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8209 done
8212 for ncn_progname in as; do
8213 if test -n "$ncn_tool_prefix"; then
8214 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8215 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_AS+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 if test -n "$AS"; then
8222 ac_cv_prog_AS="$AS" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8237 IFS=$as_save_IFS
8241 AS=$ac_cv_prog_AS
8242 if test -n "$AS"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8244 $as_echo "$AS" >&6; }
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8252 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8254 set dummy ${ncn_progname}; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if test "${ac_cv_prog_AS+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$AS"; then
8261 ac_cv_prog_AS="$AS" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8270 ac_cv_prog_AS="${ncn_progname}"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8274 done
8275 done
8276 IFS=$as_save_IFS
8280 AS=$ac_cv_prog_AS
8281 if test -n "$AS"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8283 $as_echo "$AS" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8291 test -n "$ac_cv_prog_AS" && break
8292 done
8294 if test -z "$ac_cv_prog_AS" ; then
8295 set dummy as
8296 if test $build = $host ; then
8297 AS="$2"
8298 else
8299 AS="${ncn_tool_prefix}$2"
8305 if test -n "$DLLTOOL"; then
8306 ac_cv_prog_DLLTOOL=$DLLTOOL
8307 elif test -n "$ac_cv_prog_DLLTOOL"; then
8308 DLLTOOL=$ac_cv_prog_DLLTOOL
8311 if test -n "$ac_cv_prog_DLLTOOL"; then
8312 for ncn_progname in dlltool; do
8313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8314 set dummy ${ncn_progname}; ac_word=$2
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316 $as_echo_n "checking for $ac_word... " >&6; }
8317 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 if test -n "$DLLTOOL"; then
8321 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8322 else
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in $PATH
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8330 ac_cv_prog_DLLTOOL="${ncn_progname}"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8334 done
8335 done
8336 IFS=$as_save_IFS
8340 DLLTOOL=$ac_cv_prog_DLLTOOL
8341 if test -n "$DLLTOOL"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8343 $as_echo "$DLLTOOL" >&6; }
8344 else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346 $as_echo "no" >&6; }
8350 done
8353 for ncn_progname in dlltool; do
8354 if test -n "$ncn_tool_prefix"; then
8355 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8356 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$DLLTOOL"; then
8363 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8378 IFS=$as_save_IFS
8382 DLLTOOL=$ac_cv_prog_DLLTOOL
8383 if test -n "$DLLTOOL"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8385 $as_echo "$DLLTOOL" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8393 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8395 set dummy ${ncn_progname}; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 if test -n "$DLLTOOL"; then
8402 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_prog_DLLTOOL="${ncn_progname}"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8415 done
8416 done
8417 IFS=$as_save_IFS
8421 DLLTOOL=$ac_cv_prog_DLLTOOL
8422 if test -n "$DLLTOOL"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8424 $as_echo "$DLLTOOL" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8432 test -n "$ac_cv_prog_DLLTOOL" && break
8433 done
8435 if test -z "$ac_cv_prog_DLLTOOL" ; then
8436 set dummy dlltool
8437 if test $build = $host ; then
8438 DLLTOOL="$2"
8439 else
8440 DLLTOOL="${ncn_tool_prefix}$2"
8446 if test -n "$LD"; then
8447 ac_cv_prog_LD=$LD
8448 elif test -n "$ac_cv_prog_LD"; then
8449 LD=$ac_cv_prog_LD
8452 if test -n "$ac_cv_prog_LD"; then
8453 for ncn_progname in ld; do
8454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8455 set dummy ${ncn_progname}; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if test "${ac_cv_prog_LD+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 if test -n "$LD"; then
8462 ac_cv_prog_LD="$LD" # Let the user override the test.
8463 else
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8471 ac_cv_prog_LD="${ncn_progname}"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 break 2
8475 done
8476 done
8477 IFS=$as_save_IFS
8481 LD=$ac_cv_prog_LD
8482 if test -n "$LD"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8484 $as_echo "$LD" >&6; }
8485 else
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8491 done
8494 for ncn_progname in ld; do
8495 if test -n "$ncn_tool_prefix"; then
8496 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8497 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_prog_LD+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 if test -n "$LD"; then
8504 ac_cv_prog_LD="$LD" # Let the user override the test.
8505 else
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8517 done
8518 done
8519 IFS=$as_save_IFS
8523 LD=$ac_cv_prog_LD
8524 if test -n "$LD"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8526 $as_echo "$LD" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8534 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8536 set dummy ${ncn_progname}; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_prog_LD+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 if test -n "$LD"; then
8543 ac_cv_prog_LD="$LD" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_prog_LD="${ncn_progname}"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8558 IFS=$as_save_IFS
8562 LD=$ac_cv_prog_LD
8563 if test -n "$LD"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8565 $as_echo "$LD" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8573 test -n "$ac_cv_prog_LD" && break
8574 done
8576 if test -z "$ac_cv_prog_LD" ; then
8577 set dummy ld
8578 if test $build = $host ; then
8579 LD="$2"
8580 else
8581 LD="${ncn_tool_prefix}$2"
8587 if test -n "$LIPO"; then
8588 ac_cv_prog_LIPO=$LIPO
8589 elif test -n "$ac_cv_prog_LIPO"; then
8590 LIPO=$ac_cv_prog_LIPO
8593 if test -n "$ac_cv_prog_LIPO"; then
8594 for ncn_progname in lipo; do
8595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8596 set dummy ${ncn_progname}; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if test "${ac_cv_prog_LIPO+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 if test -n "$LIPO"; then
8603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8604 else
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612 ac_cv_prog_LIPO="${ncn_progname}"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8616 done
8617 done
8618 IFS=$as_save_IFS
8622 LIPO=$ac_cv_prog_LIPO
8623 if test -n "$LIPO"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8625 $as_echo "$LIPO" >&6; }
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8632 done
8635 for ncn_progname in lipo; do
8636 if test -n "$ncn_tool_prefix"; then
8637 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8638 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_prog_LIPO+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 if test -n "$LIPO"; then
8645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8646 else
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8658 done
8659 done
8660 IFS=$as_save_IFS
8664 LIPO=$ac_cv_prog_LIPO
8665 if test -n "$LIPO"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8667 $as_echo "$LIPO" >&6; }
8668 else
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8675 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8677 set dummy ${ncn_progname}; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if test "${ac_cv_prog_LIPO+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 if test -n "$LIPO"; then
8684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_prog_LIPO="${ncn_progname}"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8697 done
8698 done
8699 IFS=$as_save_IFS
8703 LIPO=$ac_cv_prog_LIPO
8704 if test -n "$LIPO"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8706 $as_echo "$LIPO" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8714 test -n "$ac_cv_prog_LIPO" && break
8715 done
8717 if test -z "$ac_cv_prog_LIPO" ; then
8718 set dummy lipo
8719 if test $build = $host ; then
8720 LIPO="$2"
8721 else
8722 LIPO="${ncn_tool_prefix}$2"
8728 if test -n "$NM"; then
8729 ac_cv_prog_NM=$NM
8730 elif test -n "$ac_cv_prog_NM"; then
8731 NM=$ac_cv_prog_NM
8734 if test -n "$ac_cv_prog_NM"; then
8735 for ncn_progname in nm; do
8736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8737 set dummy ${ncn_progname}; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if test "${ac_cv_prog_NM+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if test -n "$NM"; then
8744 ac_cv_prog_NM="$NM" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8753 ac_cv_prog_NM="${ncn_progname}"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755 break 2
8757 done
8758 done
8759 IFS=$as_save_IFS
8763 NM=$ac_cv_prog_NM
8764 if test -n "$NM"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8766 $as_echo "$NM" >&6; }
8767 else
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8773 done
8776 for ncn_progname in nm; do
8777 if test -n "$ncn_tool_prefix"; then
8778 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8779 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if test "${ac_cv_prog_NM+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 if test -n "$NM"; then
8786 ac_cv_prog_NM="$NM" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8805 NM=$ac_cv_prog_NM
8806 if test -n "$NM"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8808 $as_echo "$NM" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8818 set dummy ${ncn_progname}; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if test "${ac_cv_prog_NM+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$NM"; then
8825 ac_cv_prog_NM="$NM" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8834 ac_cv_prog_NM="${ncn_progname}"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8838 done
8839 done
8840 IFS=$as_save_IFS
8844 NM=$ac_cv_prog_NM
8845 if test -n "$NM"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8847 $as_echo "$NM" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8855 test -n "$ac_cv_prog_NM" && break
8856 done
8858 if test -z "$ac_cv_prog_NM" ; then
8859 set dummy nm
8860 if test $build = $host ; then
8861 NM="$2"
8862 else
8863 NM="${ncn_tool_prefix}$2"
8869 if test -n "$RANLIB"; then
8870 ac_cv_prog_RANLIB=$RANLIB
8871 elif test -n "$ac_cv_prog_RANLIB"; then
8872 RANLIB=$ac_cv_prog_RANLIB
8875 if test -n "$ac_cv_prog_RANLIB"; then
8876 for ncn_progname in ranlib; do
8877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878 set dummy ${ncn_progname}; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 if test -n "$RANLIB"; then
8885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_RANLIB="${ncn_progname}"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8898 done
8899 done
8900 IFS=$as_save_IFS
8904 RANLIB=$ac_cv_prog_RANLIB
8905 if test -n "$RANLIB"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8907 $as_echo "$RANLIB" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8914 done
8917 for ncn_progname in ranlib; do
8918 if test -n "$ncn_tool_prefix"; then
8919 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8920 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 if test -n "$RANLIB"; then
8927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8940 done
8941 done
8942 IFS=$as_save_IFS
8946 RANLIB=$ac_cv_prog_RANLIB
8947 if test -n "$RANLIB"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8949 $as_echo "$RANLIB" >&6; }
8950 else
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8957 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8959 set dummy ${ncn_progname}; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 if test -n "$RANLIB"; then
8966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_prog_RANLIB="${ncn_progname}"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8979 done
8980 done
8981 IFS=$as_save_IFS
8985 RANLIB=$ac_cv_prog_RANLIB
8986 if test -n "$RANLIB"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8988 $as_echo "$RANLIB" >&6; }
8989 else
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8996 test -n "$ac_cv_prog_RANLIB" && break
8997 done
8999 if test -z "$ac_cv_prog_RANLIB" ; then
9000 RANLIB="true"
9005 if test -n "$STRIP"; then
9006 ac_cv_prog_STRIP=$STRIP
9007 elif test -n "$ac_cv_prog_STRIP"; then
9008 STRIP=$ac_cv_prog_STRIP
9011 if test -n "$ac_cv_prog_STRIP"; then
9012 for ncn_progname in strip; do
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_STRIP+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 if test -n "$STRIP"; then
9021 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${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 STRIP=$ac_cv_prog_STRIP
9041 if test -n "$STRIP"; then
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9043 $as_echo "$STRIP" >&6; }
9044 else
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9050 done
9053 for ncn_progname in strip; do
9054 if test -n "$ncn_tool_prefix"; then
9055 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9056 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if test "${ac_cv_prog_STRIP+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 if test -n "$STRIP"; then
9063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9076 done
9077 done
9078 IFS=$as_save_IFS
9082 STRIP=$ac_cv_prog_STRIP
9083 if test -n "$STRIP"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9085 $as_echo "$STRIP" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9093 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9095 set dummy ${ncn_progname}; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if test "${ac_cv_prog_STRIP+set}" = set; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 if test -n "$STRIP"; then
9102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9107 IFS=$as_save_IFS
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9111 ac_cv_prog_STRIP="${ncn_progname}"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 break 2
9115 done
9116 done
9117 IFS=$as_save_IFS
9121 STRIP=$ac_cv_prog_STRIP
9122 if test -n "$STRIP"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9124 $as_echo "$STRIP" >&6; }
9125 else
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9132 test -n "$ac_cv_prog_STRIP" && break
9133 done
9135 if test -z "$ac_cv_prog_STRIP" ; then
9136 STRIP="true"
9141 if test -n "$WINDRES"; then
9142 ac_cv_prog_WINDRES=$WINDRES
9143 elif test -n "$ac_cv_prog_WINDRES"; then
9144 WINDRES=$ac_cv_prog_WINDRES
9147 if test -n "$ac_cv_prog_WINDRES"; then
9148 for ncn_progname in windres; do
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_WINDRES+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156 if test -n "$WINDRES"; then
9157 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 WINDRES=$ac_cv_prog_WINDRES
9177 if test -n "$WINDRES"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9179 $as_echo "$WINDRES" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9186 done
9189 for ncn_progname in windres; do
9190 if test -n "$ncn_tool_prefix"; then
9191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9192 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194 $as_echo_n "checking for $ac_word... " >&6; }
9195 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 if test -n "$WINDRES"; then
9199 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9200 else
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $PATH
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
9207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9208 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 break 2
9212 done
9213 done
9214 IFS=$as_save_IFS
9218 WINDRES=$ac_cv_prog_WINDRES
9219 if test -n "$WINDRES"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9221 $as_echo "$WINDRES" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9229 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9231 set dummy ${ncn_progname}; ac_word=$2
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233 $as_echo_n "checking for $ac_word... " >&6; }
9234 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 if test -n "$WINDRES"; then
9238 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9239 else
9240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 for as_dir in $PATH
9243 IFS=$as_save_IFS
9244 test -z "$as_dir" && as_dir=.
9245 for ac_exec_ext in '' $ac_executable_extensions; do
9246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9247 ac_cv_prog_WINDRES="${ncn_progname}"
9248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249 break 2
9251 done
9252 done
9253 IFS=$as_save_IFS
9257 WINDRES=$ac_cv_prog_WINDRES
9258 if test -n "$WINDRES"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9260 $as_echo "$WINDRES" >&6; }
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9268 test -n "$ac_cv_prog_WINDRES" && break
9269 done
9271 if test -z "$ac_cv_prog_WINDRES" ; then
9272 set dummy windres
9273 if test $build = $host ; then
9274 WINDRES="$2"
9275 else
9276 WINDRES="${ncn_tool_prefix}$2"
9282 if test -n "$WINDMC"; then
9283 ac_cv_prog_WINDMC=$WINDMC
9284 elif test -n "$ac_cv_prog_WINDMC"; then
9285 WINDMC=$ac_cv_prog_WINDMC
9288 if test -n "$ac_cv_prog_WINDMC"; then
9289 for ncn_progname in windmc; do
9290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9291 set dummy ${ncn_progname}; ac_word=$2
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 if test -n "$WINDMC"; then
9298 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9299 else
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9307 ac_cv_prog_WINDMC="${ncn_progname}"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 break 2
9311 done
9312 done
9313 IFS=$as_save_IFS
9317 WINDMC=$ac_cv_prog_WINDMC
9318 if test -n "$WINDMC"; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9320 $as_echo "$WINDMC" >&6; }
9321 else
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323 $as_echo "no" >&6; }
9327 done
9330 for ncn_progname in windmc; do
9331 if test -n "$ncn_tool_prefix"; then
9332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 if test -n "$WINDMC"; then
9340 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9353 done
9354 done
9355 IFS=$as_save_IFS
9359 WINDMC=$ac_cv_prog_WINDMC
9360 if test -n "$WINDMC"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9362 $as_echo "$WINDMC" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9370 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9372 set dummy ${ncn_progname}; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 if test -n "$WINDMC"; then
9379 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_prog_WINDMC="${ncn_progname}"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9392 done
9393 done
9394 IFS=$as_save_IFS
9398 WINDMC=$ac_cv_prog_WINDMC
9399 if test -n "$WINDMC"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9401 $as_echo "$WINDMC" >&6; }
9402 else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9409 test -n "$ac_cv_prog_WINDMC" && break
9410 done
9412 if test -z "$ac_cv_prog_WINDMC" ; then
9413 set dummy windmc
9414 if test $build = $host ; then
9415 WINDMC="$2"
9416 else
9417 WINDMC="${ncn_tool_prefix}$2"
9423 if test -n "$OBJCOPY"; then
9424 ac_cv_prog_OBJCOPY=$OBJCOPY
9425 elif test -n "$ac_cv_prog_OBJCOPY"; then
9426 OBJCOPY=$ac_cv_prog_OBJCOPY
9429 if test -n "$ac_cv_prog_OBJCOPY"; then
9430 for ncn_progname in objcopy; do
9431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9432 set dummy ${ncn_progname}; ac_word=$2
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434 $as_echo_n "checking for $ac_word... " >&6; }
9435 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
9437 else
9438 if test -n "$OBJCOPY"; then
9439 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9440 else
9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442 for as_dir in $PATH
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9448 ac_cv_prog_OBJCOPY="${ncn_progname}"
9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9450 break 2
9452 done
9453 done
9454 IFS=$as_save_IFS
9458 OBJCOPY=$ac_cv_prog_OBJCOPY
9459 if test -n "$OBJCOPY"; then
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9461 $as_echo "$OBJCOPY" >&6; }
9462 else
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9468 done
9471 for ncn_progname in objcopy; do
9472 if test -n "$ncn_tool_prefix"; then
9473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9476 $as_echo_n "checking for $ac_word... " >&6; }
9477 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 if test -n "$OBJCOPY"; then
9481 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9482 else
9483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 for as_dir in $PATH
9486 IFS=$as_save_IFS
9487 test -z "$as_dir" && as_dir=.
9488 for ac_exec_ext in '' $ac_executable_extensions; do
9489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9490 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9492 break 2
9494 done
9495 done
9496 IFS=$as_save_IFS
9500 OBJCOPY=$ac_cv_prog_OBJCOPY
9501 if test -n "$OBJCOPY"; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9503 $as_echo "$OBJCOPY" >&6; }
9504 else
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506 $as_echo "no" >&6; }
9511 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9513 set dummy ${ncn_progname}; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 if test -n "$OBJCOPY"; then
9520 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9521 else
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529 ac_cv_prog_OBJCOPY="${ncn_progname}"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 break 2
9533 done
9534 done
9535 IFS=$as_save_IFS
9539 OBJCOPY=$ac_cv_prog_OBJCOPY
9540 if test -n "$OBJCOPY"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9542 $as_echo "$OBJCOPY" >&6; }
9543 else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9550 test -n "$ac_cv_prog_OBJCOPY" && break
9551 done
9553 if test -z "$ac_cv_prog_OBJCOPY" ; then
9554 set dummy objcopy
9555 if test $build = $host ; then
9556 OBJCOPY="$2"
9557 else
9558 OBJCOPY="${ncn_tool_prefix}$2"
9564 if test -n "$OBJDUMP"; then
9565 ac_cv_prog_OBJDUMP=$OBJDUMP
9566 elif test -n "$ac_cv_prog_OBJDUMP"; then
9567 OBJDUMP=$ac_cv_prog_OBJDUMP
9570 if test -n "$ac_cv_prog_OBJDUMP"; then
9571 for ncn_progname in objdump; do
9572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9573 set dummy ${ncn_progname}; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 if test -n "$OBJDUMP"; then
9580 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9581 else
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9589 ac_cv_prog_OBJDUMP="${ncn_progname}"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9593 done
9594 done
9595 IFS=$as_save_IFS
9599 OBJDUMP=$ac_cv_prog_OBJDUMP
9600 if test -n "$OBJDUMP"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9602 $as_echo "$OBJDUMP" >&6; }
9603 else
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9609 done
9612 for ncn_progname in objdump; do
9613 if test -n "$ncn_tool_prefix"; then
9614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 if test -n "$OBJDUMP"; then
9622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9623 else
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 for as_dir in $PATH
9627 IFS=$as_save_IFS
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9631 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 break 2
9635 done
9636 done
9637 IFS=$as_save_IFS
9641 OBJDUMP=$ac_cv_prog_OBJDUMP
9642 if test -n "$OBJDUMP"; then
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9644 $as_echo "$OBJDUMP" >&6; }
9645 else
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9647 $as_echo "no" >&6; }
9652 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9654 set dummy ${ncn_progname}; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 if test -n "$OBJDUMP"; then
9661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9662 else
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9670 ac_cv_prog_OBJDUMP="${ncn_progname}"
9671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 break 2
9674 done
9675 done
9676 IFS=$as_save_IFS
9680 OBJDUMP=$ac_cv_prog_OBJDUMP
9681 if test -n "$OBJDUMP"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9683 $as_echo "$OBJDUMP" >&6; }
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9691 test -n "$ac_cv_prog_OBJDUMP" && break
9692 done
9694 if test -z "$ac_cv_prog_OBJDUMP" ; then
9695 set dummy objdump
9696 if test $build = $host ; then
9697 OBJDUMP="$2"
9698 else
9699 OBJDUMP="${ncn_tool_prefix}$2"
9705 if test -n "$READELF"; then
9706 ac_cv_prog_READELF=$READELF
9707 elif test -n "$ac_cv_prog_READELF"; then
9708 READELF=$ac_cv_prog_READELF
9711 if test -n "$ac_cv_prog_READELF"; then
9712 for ncn_progname in readelf; do
9713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9714 set dummy ${ncn_progname}; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if test "${ac_cv_prog_READELF+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 if test -n "$READELF"; then
9721 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9722 else
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724 for as_dir in $PATH
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_prog_READELF="${ncn_progname}"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9734 done
9735 done
9736 IFS=$as_save_IFS
9740 READELF=$ac_cv_prog_READELF
9741 if test -n "$READELF"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9743 $as_echo "$READELF" >&6; }
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9750 done
9753 for ncn_progname in readelf; do
9754 if test -n "$ncn_tool_prefix"; then
9755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if test "${ac_cv_prog_READELF+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 if test -n "$READELF"; then
9763 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9764 else
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9772 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9776 done
9777 done
9778 IFS=$as_save_IFS
9782 READELF=$ac_cv_prog_READELF
9783 if test -n "$READELF"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9785 $as_echo "$READELF" >&6; }
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9793 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9795 set dummy ${ncn_progname}; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_READELF+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$READELF"; then
9802 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_prog_READELF="${ncn_progname}"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9821 READELF=$ac_cv_prog_READELF
9822 if test -n "$READELF"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9824 $as_echo "$READELF" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9832 test -n "$ac_cv_prog_READELF" && break
9833 done
9835 if test -z "$ac_cv_prog_READELF" ; then
9836 set dummy readelf
9837 if test $build = $host ; then
9838 READELF="$2"
9839 else
9840 READELF="${ncn_tool_prefix}$2"
9849 # Target tools.
9851 # Check whether --with-build-time-tools was given.
9852 if test "${with_build_time_tools+set}" = set; then :
9853 withval=$with_build_time_tools; case x"$withval" in
9854 x/*) ;;
9856 with_build_time_tools=
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9858 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9860 esac
9861 else
9862 with_build_time_tools=
9868 if test -n "$CC_FOR_TARGET"; then
9869 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9870 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9871 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9874 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9875 for ncn_progname in cc gcc; do
9876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9877 set dummy ${ncn_progname}; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9881 $as_echo_n "(cached) " >&6
9882 else
9883 if test -n "$CC_FOR_TARGET"; then
9884 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9885 else
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9887 for as_dir in $PATH
9889 IFS=$as_save_IFS
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9895 break 2
9897 done
9898 done
9899 IFS=$as_save_IFS
9903 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9904 if test -n "$CC_FOR_TARGET"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9906 $as_echo "$CC_FOR_TARGET" >&6; }
9907 else
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9913 done
9916 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9917 for ncn_progname in cc gcc; do
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9919 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9920 if test -x $with_build_time_tools/${ncn_progname}; then
9921 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9923 $as_echo "yes" >&6; }
9924 break
9925 else
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9929 done
9932 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9933 for ncn_progname in cc gcc; do
9934 if test -n "$ncn_target_tool_prefix"; then
9935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9936 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 if test -n "$CC_FOR_TARGET"; then
9943 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9944 else
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9952 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9956 done
9957 done
9958 IFS=$as_save_IFS
9962 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9963 if test -n "$CC_FOR_TARGET"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9965 $as_echo "$CC_FOR_TARGET" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9973 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9975 set dummy ${ncn_progname}; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 if test -n "$CC_FOR_TARGET"; then
9982 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9983 else
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9997 IFS=$as_save_IFS
10001 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10002 if test -n "$CC_FOR_TARGET"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10004 $as_echo "$CC_FOR_TARGET" >&6; }
10005 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10012 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10013 done
10016 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10017 set dummy cc gcc
10018 if test $build = $target ; then
10019 CC_FOR_TARGET="$2"
10020 else
10021 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10023 else
10024 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10029 if test -n "$CXX_FOR_TARGET"; then
10030 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10031 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10032 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10035 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10036 for ncn_progname in c++ g++ cxx gxx; do
10037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10038 set dummy ${ncn_progname}; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 if test -n "$CXX_FOR_TARGET"; then
10045 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10046 else
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10058 done
10059 done
10060 IFS=$as_save_IFS
10064 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10065 if test -n "$CXX_FOR_TARGET"; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10067 $as_echo "$CXX_FOR_TARGET" >&6; }
10068 else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10070 $as_echo "no" >&6; }
10074 done
10077 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10078 for ncn_progname in c++ g++ cxx gxx; do
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10080 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10081 if test -x $with_build_time_tools/${ncn_progname}; then
10082 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10084 $as_echo "yes" >&6; }
10085 break
10086 else
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10090 done
10093 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10094 for ncn_progname in c++ g++ cxx gxx; do
10095 if test -n "$ncn_target_tool_prefix"; then
10096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10097 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099 $as_echo_n "checking for $ac_word... " >&6; }
10100 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 if test -n "$CXX_FOR_TARGET"; then
10104 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10105 else
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10109 IFS=$as_save_IFS
10110 test -z "$as_dir" && as_dir=.
10111 for ac_exec_ext in '' $ac_executable_extensions; do
10112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10113 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 break 2
10117 done
10118 done
10119 IFS=$as_save_IFS
10123 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10124 if test -n "$CXX_FOR_TARGET"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10126 $as_echo "$CXX_FOR_TARGET" >&6; }
10127 else
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10134 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10136 set dummy ${ncn_progname}; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 if test -n "$CXX_FOR_TARGET"; then
10143 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10144 else
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10152 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10156 done
10157 done
10158 IFS=$as_save_IFS
10162 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10163 if test -n "$CXX_FOR_TARGET"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10165 $as_echo "$CXX_FOR_TARGET" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10173 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10174 done
10177 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10178 set dummy c++ g++ cxx gxx
10179 if test $build = $target ; then
10180 CXX_FOR_TARGET="$2"
10181 else
10182 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10184 else
10185 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10190 if test -n "$GCC_FOR_TARGET"; then
10191 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10192 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10193 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10196 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10197 for ncn_progname in gcc; do
10198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10199 set dummy ${ncn_progname}; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 if test -n "$GCC_FOR_TARGET"; then
10206 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10207 else
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10219 done
10220 done
10221 IFS=$as_save_IFS
10225 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10226 if test -n "$GCC_FOR_TARGET"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10228 $as_echo "$GCC_FOR_TARGET" >&6; }
10229 else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10235 done
10238 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10239 for ncn_progname in gcc; do
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10241 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10242 if test -x $with_build_time_tools/${ncn_progname}; then
10243 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245 $as_echo "yes" >&6; }
10246 break
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10251 done
10254 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10255 for ncn_progname in gcc; do
10256 if test -n "$ncn_target_tool_prefix"; then
10257 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10258 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 if test -n "$GCC_FOR_TARGET"; then
10265 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10266 else
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10278 done
10279 done
10280 IFS=$as_save_IFS
10284 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10285 if test -n "$GCC_FOR_TARGET"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10287 $as_echo "$GCC_FOR_TARGET" >&6; }
10288 else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10295 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297 set dummy ${ncn_progname}; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 if test -n "$GCC_FOR_TARGET"; then
10304 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10313 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10317 done
10318 done
10319 IFS=$as_save_IFS
10323 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10324 if test -n "$GCC_FOR_TARGET"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10326 $as_echo "$GCC_FOR_TARGET" >&6; }
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10334 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10335 done
10338 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10339 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10340 else
10341 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10346 if test -n "$GCJ_FOR_TARGET"; then
10347 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10348 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10349 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10352 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10353 for ncn_progname in gcj; do
10354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10355 set dummy ${ncn_progname}; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 if test -n "$GCJ_FOR_TARGET"; then
10362 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10363 else
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10371 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10375 done
10376 done
10377 IFS=$as_save_IFS
10381 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10382 if test -n "$GCJ_FOR_TARGET"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10384 $as_echo "$GCJ_FOR_TARGET" >&6; }
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10391 done
10394 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10395 for ncn_progname in gcj; do
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10397 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10398 if test -x $with_build_time_tools/${ncn_progname}; then
10399 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10401 $as_echo "yes" >&6; }
10402 break
10403 else
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10407 done
10410 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10411 for ncn_progname in gcj; do
10412 if test -n "$ncn_target_tool_prefix"; then
10413 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10414 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
10419 else
10420 if test -n "$GCJ_FOR_TARGET"; then
10421 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10422 else
10423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10424 for as_dir in $PATH
10426 IFS=$as_save_IFS
10427 test -z "$as_dir" && as_dir=.
10428 for ac_exec_ext in '' $ac_executable_extensions; do
10429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10430 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10432 break 2
10434 done
10435 done
10436 IFS=$as_save_IFS
10440 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10441 if test -n "$GCJ_FOR_TARGET"; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10443 $as_echo "$GCJ_FOR_TARGET" >&6; }
10444 else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10446 $as_echo "no" >&6; }
10451 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10453 set dummy ${ncn_progname}; ac_word=$2
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 $as_echo_n "checking for $ac_word... " >&6; }
10456 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 if test -n "$GCJ_FOR_TARGET"; then
10460 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10461 else
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 break 2
10473 done
10474 done
10475 IFS=$as_save_IFS
10479 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10480 if test -n "$GCJ_FOR_TARGET"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10482 $as_echo "$GCJ_FOR_TARGET" >&6; }
10483 else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10490 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10491 done
10494 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10495 set dummy gcj
10496 if test $build = $target ; then
10497 GCJ_FOR_TARGET="$2"
10498 else
10499 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10501 else
10502 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10507 if test -n "$GFORTRAN_FOR_TARGET"; then
10508 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10509 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10510 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10513 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10514 for ncn_progname in gfortran; do
10515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10516 set dummy ${ncn_progname}; ac_word=$2
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10518 $as_echo_n "checking for $ac_word... " >&6; }
10519 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 if test -n "$GFORTRAN_FOR_TARGET"; then
10523 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10524 else
10525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10526 for as_dir in $PATH
10528 IFS=$as_save_IFS
10529 test -z "$as_dir" && as_dir=.
10530 for ac_exec_ext in '' $ac_executable_extensions; do
10531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10532 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 break 2
10536 done
10537 done
10538 IFS=$as_save_IFS
10542 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10543 if test -n "$GFORTRAN_FOR_TARGET"; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10545 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10552 done
10555 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10556 for ncn_progname in gfortran; do
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10558 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10559 if test -x $with_build_time_tools/${ncn_progname}; then
10560 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10562 $as_echo "yes" >&6; }
10563 break
10564 else
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10568 done
10571 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10572 for ncn_progname in gfortran; do
10573 if test -n "$ncn_target_tool_prefix"; then
10574 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10575 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10579 $as_echo_n "(cached) " >&6
10580 else
10581 if test -n "$GFORTRAN_FOR_TARGET"; then
10582 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10583 else
10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10585 for as_dir in $PATH
10587 IFS=$as_save_IFS
10588 test -z "$as_dir" && as_dir=.
10589 for ac_exec_ext in '' $ac_executable_extensions; do
10590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10591 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10593 break 2
10595 done
10596 done
10597 IFS=$as_save_IFS
10601 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10602 if test -n "$GFORTRAN_FOR_TARGET"; then
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10604 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10612 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10613 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10614 set dummy ${ncn_progname}; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 if test -n "$GFORTRAN_FOR_TARGET"; then
10621 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10622 else
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10634 done
10635 done
10636 IFS=$as_save_IFS
10640 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10641 if test -n "$GFORTRAN_FOR_TARGET"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10643 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10651 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10652 done
10655 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10656 set dummy gfortran
10657 if test $build = $target ; then
10658 GFORTRAN_FOR_TARGET="$2"
10659 else
10660 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10662 else
10663 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10668 if test -n "$GOC_FOR_TARGET"; then
10669 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10670 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10671 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10674 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10675 for ncn_progname in gccgo; do
10676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10677 set dummy ${ncn_progname}; ac_word=$2
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 if test -n "$GOC_FOR_TARGET"; then
10684 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10685 else
10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10693 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 break 2
10697 done
10698 done
10699 IFS=$as_save_IFS
10703 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10704 if test -n "$GOC_FOR_TARGET"; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10706 $as_echo "$GOC_FOR_TARGET" >&6; }
10707 else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709 $as_echo "no" >&6; }
10713 done
10716 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10717 for ncn_progname in gccgo; do
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10719 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10720 if test -x $with_build_time_tools/${ncn_progname}; then
10721 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723 $as_echo "yes" >&6; }
10724 break
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10729 done
10732 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10733 for ncn_progname in gccgo; do
10734 if test -n "$ncn_target_tool_prefix"; then
10735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10736 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 if test -n "$GOC_FOR_TARGET"; then
10743 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10744 else
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10752 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10756 done
10757 done
10758 IFS=$as_save_IFS
10762 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10763 if test -n "$GOC_FOR_TARGET"; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10765 $as_echo "$GOC_FOR_TARGET" >&6; }
10766 else
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10773 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10775 set dummy ${ncn_progname}; ac_word=$2
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777 $as_echo_n "checking for $ac_word... " >&6; }
10778 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 if test -n "$GOC_FOR_TARGET"; then
10782 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10783 else
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10787 IFS=$as_save_IFS
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10791 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793 break 2
10795 done
10796 done
10797 IFS=$as_save_IFS
10801 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10802 if test -n "$GOC_FOR_TARGET"; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10804 $as_echo "$GOC_FOR_TARGET" >&6; }
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807 $as_echo "no" >&6; }
10812 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10813 done
10816 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10817 set dummy gccgo
10818 if test $build = $target ; then
10819 GOC_FOR_TARGET="$2"
10820 else
10821 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10823 else
10824 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10829 cat > conftest.c << \EOF
10830 #ifdef __GNUC__
10831 gcc_yay;
10832 #endif
10834 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10835 have_gcc_for_target=yes
10836 else
10837 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10838 have_gcc_for_target=no
10840 rm conftest.c
10845 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10846 if test -n "$with_build_time_tools"; then
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10848 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10849 if test -x $with_build_time_tools/ar; then
10850 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10851 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10853 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10854 else
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10856 $as_echo "no" >&6; }
10858 elif test $build != $host && test $have_gcc_for_target = yes; then
10859 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10860 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10861 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10864 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10865 # Extract the first word of "ar", so it can be a program name with args.
10866 set dummy ar; ac_word=$2
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10868 $as_echo_n "checking for $ac_word... " >&6; }
10869 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 case $AR_FOR_TARGET in
10873 [\\/]* | ?:[\\/]*)
10874 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878 for as_dir in $gcc_cv_tool_dirs
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10884 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10888 done
10889 done
10890 IFS=$as_save_IFS
10893 esac
10895 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10896 if test -n "$AR_FOR_TARGET"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10898 $as_echo "$AR_FOR_TARGET" >&6; }
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901 $as_echo "no" >&6; }
10906 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10909 if test -n "$AR_FOR_TARGET"; then
10910 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10911 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10912 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10915 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10916 for ncn_progname in ar; do
10917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10918 set dummy ${ncn_progname}; ac_word=$2
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920 $as_echo_n "checking for $ac_word... " >&6; }
10921 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 if test -n "$AR_FOR_TARGET"; then
10925 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10926 else
10927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928 for as_dir in $PATH
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
10933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10934 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 break 2
10938 done
10939 done
10940 IFS=$as_save_IFS
10944 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10945 if test -n "$AR_FOR_TARGET"; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10947 $as_echo "$AR_FOR_TARGET" >&6; }
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950 $as_echo "no" >&6; }
10954 done
10957 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10958 for ncn_progname in ar; do
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10960 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10961 if test -x $with_build_time_tools/${ncn_progname}; then
10962 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10964 $as_echo "yes" >&6; }
10965 break
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10970 done
10973 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10974 for ncn_progname in ar; do
10975 if test -n "$ncn_target_tool_prefix"; then
10976 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10977 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 if test -n "$AR_FOR_TARGET"; then
10984 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10985 else
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10993 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10997 done
10998 done
10999 IFS=$as_save_IFS
11003 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11004 if test -n "$AR_FOR_TARGET"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11006 $as_echo "$AR_FOR_TARGET" >&6; }
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11014 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11016 set dummy ${ncn_progname}; ac_word=$2
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11018 $as_echo_n "checking for $ac_word... " >&6; }
11019 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 if test -n "$AR_FOR_TARGET"; then
11023 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11024 else
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11028 IFS=$as_save_IFS
11029 test -z "$as_dir" && as_dir=.
11030 for ac_exec_ext in '' $ac_executable_extensions; do
11031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11032 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11034 break 2
11036 done
11037 done
11038 IFS=$as_save_IFS
11042 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11043 if test -n "$AR_FOR_TARGET"; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11045 $as_echo "$AR_FOR_TARGET" >&6; }
11046 else
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048 $as_echo "no" >&6; }
11053 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11054 done
11057 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11058 set dummy ar
11059 if test $build = $target ; then
11060 AR_FOR_TARGET="$2"
11061 else
11062 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11064 else
11065 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11068 else
11069 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11075 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11076 if test -n "$with_build_time_tools"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11078 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11079 if test -x $with_build_time_tools/as; then
11080 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11081 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11083 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11084 else
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11088 elif test $build != $host && test $have_gcc_for_target = yes; then
11089 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11090 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11091 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11094 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11095 # Extract the first word of "as", so it can be a program name with args.
11096 set dummy as; ac_word=$2
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098 $as_echo_n "checking for $ac_word... " >&6; }
11099 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 case $AS_FOR_TARGET in
11103 [\\/]* | ?:[\\/]*)
11104 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $gcc_cv_tool_dirs
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11118 done
11119 done
11120 IFS=$as_save_IFS
11123 esac
11125 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11126 if test -n "$AS_FOR_TARGET"; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11128 $as_echo "$AS_FOR_TARGET" >&6; }
11129 else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11136 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11139 if test -n "$AS_FOR_TARGET"; then
11140 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11141 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11142 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11145 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11146 for ncn_progname in as; do
11147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11148 set dummy ${ncn_progname}; ac_word=$2
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150 $as_echo_n "checking for $ac_word... " >&6; }
11151 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 if test -n "$AS_FOR_TARGET"; then
11155 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11156 else
11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158 for as_dir in $PATH
11160 IFS=$as_save_IFS
11161 test -z "$as_dir" && as_dir=.
11162 for ac_exec_ext in '' $ac_executable_extensions; do
11163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166 break 2
11168 done
11169 done
11170 IFS=$as_save_IFS
11174 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11175 if test -n "$AS_FOR_TARGET"; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11177 $as_echo "$AS_FOR_TARGET" >&6; }
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11184 done
11187 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11188 for ncn_progname in as; do
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11190 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11191 if test -x $with_build_time_tools/${ncn_progname}; then
11192 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11194 $as_echo "yes" >&6; }
11195 break
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11200 done
11203 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11204 for ncn_progname in as; do
11205 if test -n "$ncn_target_tool_prefix"; then
11206 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11207 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11211 $as_echo_n "(cached) " >&6
11212 else
11213 if test -n "$AS_FOR_TARGET"; then
11214 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11215 else
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11227 done
11228 done
11229 IFS=$as_save_IFS
11233 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11234 if test -n "$AS_FOR_TARGET"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11236 $as_echo "$AS_FOR_TARGET" >&6; }
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11244 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11246 set dummy ${ncn_progname}; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 if test -n "$AS_FOR_TARGET"; then
11253 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11254 else
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11258 IFS=$as_save_IFS
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11264 break 2
11266 done
11267 done
11268 IFS=$as_save_IFS
11272 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11273 if test -n "$AS_FOR_TARGET"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11275 $as_echo "$AS_FOR_TARGET" >&6; }
11276 else
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11283 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11284 done
11287 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11288 set dummy as
11289 if test $build = $target ; then
11290 AS_FOR_TARGET="$2"
11291 else
11292 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11294 else
11295 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11298 else
11299 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11305 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11306 if test -n "$with_build_time_tools"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11308 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11309 if test -x $with_build_time_tools/dlltool; then
11310 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11311 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11313 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 $as_echo "no" >&6; }
11318 elif test $build != $host && test $have_gcc_for_target = yes; then
11319 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11320 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11321 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11324 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11325 # Extract the first word of "dlltool", so it can be a program name with args.
11326 set dummy dlltool; ac_word=$2
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328 $as_echo_n "checking for $ac_word... " >&6; }
11329 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11331 else
11332 case $DLLTOOL_FOR_TARGET in
11333 [\\/]* | ?:[\\/]*)
11334 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11338 for as_dir in $gcc_cv_tool_dirs
11340 IFS=$as_save_IFS
11341 test -z "$as_dir" && as_dir=.
11342 for ac_exec_ext in '' $ac_executable_extensions; do
11343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11344 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346 break 2
11348 done
11349 done
11350 IFS=$as_save_IFS
11353 esac
11355 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11356 if test -n "$DLLTOOL_FOR_TARGET"; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11358 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11366 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11369 if test -n "$DLLTOOL_FOR_TARGET"; then
11370 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11371 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11372 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11375 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11376 for ncn_progname in dlltool; do
11377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11378 set dummy ${ncn_progname}; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 if test -n "$DLLTOOL_FOR_TARGET"; then
11385 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11386 else
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11398 done
11399 done
11400 IFS=$as_save_IFS
11404 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11405 if test -n "$DLLTOOL_FOR_TARGET"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11407 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11414 done
11417 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11418 for ncn_progname in dlltool; do
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11420 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11421 if test -x $with_build_time_tools/${ncn_progname}; then
11422 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11424 $as_echo "yes" >&6; }
11425 break
11426 else
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11430 done
11433 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11434 for ncn_progname in dlltool; do
11435 if test -n "$ncn_target_tool_prefix"; then
11436 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11437 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 if test -n "$DLLTOOL_FOR_TARGET"; then
11444 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11445 else
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11449 IFS=$as_save_IFS
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11453 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11455 break 2
11457 done
11458 done
11459 IFS=$as_save_IFS
11463 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11464 if test -n "$DLLTOOL_FOR_TARGET"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11466 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11474 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11475 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11476 set dummy ${ncn_progname}; ac_word=$2
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478 $as_echo_n "checking for $ac_word... " >&6; }
11479 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11480 $as_echo_n "(cached) " >&6
11481 else
11482 if test -n "$DLLTOOL_FOR_TARGET"; then
11483 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11484 else
11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11486 for as_dir in $PATH
11488 IFS=$as_save_IFS
11489 test -z "$as_dir" && as_dir=.
11490 for ac_exec_ext in '' $ac_executable_extensions; do
11491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11492 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 break 2
11496 done
11497 done
11498 IFS=$as_save_IFS
11502 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11503 if test -n "$DLLTOOL_FOR_TARGET"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11505 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11513 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11514 done
11517 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11518 set dummy dlltool
11519 if test $build = $target ; then
11520 DLLTOOL_FOR_TARGET="$2"
11521 else
11522 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11524 else
11525 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11528 else
11529 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11535 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11536 if test -n "$with_build_time_tools"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11538 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11539 if test -x $with_build_time_tools/ld; then
11540 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11541 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11543 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11548 elif test $build != $host && test $have_gcc_for_target = yes; then
11549 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11550 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11551 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11554 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11555 # Extract the first word of "ld", so it can be a program name with args.
11556 set dummy ld; ac_word=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 case $LD_FOR_TARGET in
11563 [\\/]* | ?:[\\/]*)
11564 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $gcc_cv_tool_dirs
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11574 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 break 2
11578 done
11579 done
11580 IFS=$as_save_IFS
11583 esac
11585 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11586 if test -n "$LD_FOR_TARGET"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11588 $as_echo "$LD_FOR_TARGET" >&6; }
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11596 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11599 if test -n "$LD_FOR_TARGET"; then
11600 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11601 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11602 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11605 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11606 for ncn_progname in ld; do
11607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11608 set dummy ${ncn_progname}; ac_word=$2
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 if test -n "$LD_FOR_TARGET"; then
11615 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11616 else
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11628 done
11629 done
11630 IFS=$as_save_IFS
11634 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11635 if test -n "$LD_FOR_TARGET"; then
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11637 $as_echo "$LD_FOR_TARGET" >&6; }
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11644 done
11647 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11648 for ncn_progname in ld; do
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11650 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11651 if test -x $with_build_time_tools/${ncn_progname}; then
11652 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654 $as_echo "yes" >&6; }
11655 break
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658 $as_echo "no" >&6; }
11660 done
11663 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11664 for ncn_progname in ld; do
11665 if test -n "$ncn_target_tool_prefix"; then
11666 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11667 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11669 $as_echo_n "checking for $ac_word... " >&6; }
11670 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11671 $as_echo_n "(cached) " >&6
11672 else
11673 if test -n "$LD_FOR_TARGET"; then
11674 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11675 else
11676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11679 IFS=$as_save_IFS
11680 test -z "$as_dir" && as_dir=.
11681 for ac_exec_ext in '' $ac_executable_extensions; do
11682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11683 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11685 break 2
11687 done
11688 done
11689 IFS=$as_save_IFS
11693 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11694 if test -n "$LD_FOR_TARGET"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11696 $as_echo "$LD_FOR_TARGET" >&6; }
11697 else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11704 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11706 set dummy ${ncn_progname}; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11710 $as_echo_n "(cached) " >&6
11711 else
11712 if test -n "$LD_FOR_TARGET"; then
11713 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11714 else
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11726 done
11727 done
11728 IFS=$as_save_IFS
11732 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11733 if test -n "$LD_FOR_TARGET"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11735 $as_echo "$LD_FOR_TARGET" >&6; }
11736 else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738 $as_echo "no" >&6; }
11743 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11744 done
11747 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11748 set dummy ld
11749 if test $build = $target ; then
11750 LD_FOR_TARGET="$2"
11751 else
11752 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11754 else
11755 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11758 else
11759 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11765 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11766 if test -n "$with_build_time_tools"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11768 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11769 if test -x $with_build_time_tools/lipo; then
11770 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11771 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11773 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11774 else
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11776 $as_echo "no" >&6; }
11778 elif test $build != $host && test $have_gcc_for_target = yes; then
11779 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11780 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11781 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11784 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11785 # Extract the first word of "lipo", so it can be a program name with args.
11786 set dummy lipo; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 case $LIPO_FOR_TARGET in
11793 [\\/]* | ?:[\\/]*)
11794 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $gcc_cv_tool_dirs
11800 IFS=$as_save_IFS
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11804 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 break 2
11808 done
11809 done
11810 IFS=$as_save_IFS
11813 esac
11815 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11816 if test -n "$LIPO_FOR_TARGET"; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11818 $as_echo "$LIPO_FOR_TARGET" >&6; }
11819 else
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821 $as_echo "no" >&6; }
11826 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11829 if test -n "$LIPO_FOR_TARGET"; then
11830 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11831 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11832 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11835 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11836 for ncn_progname in lipo; do
11837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11838 set dummy ${ncn_progname}; ac_word=$2
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840 $as_echo_n "checking for $ac_word... " >&6; }
11841 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11842 $as_echo_n "(cached) " >&6
11843 else
11844 if test -n "$LIPO_FOR_TARGET"; then
11845 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11846 else
11847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848 for as_dir in $PATH
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
11852 for ac_exec_ext in '' $ac_executable_extensions; do
11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11854 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 break 2
11858 done
11859 done
11860 IFS=$as_save_IFS
11864 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11865 if test -n "$LIPO_FOR_TARGET"; then
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11867 $as_echo "$LIPO_FOR_TARGET" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11874 done
11877 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11878 for ncn_progname in lipo; do
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11880 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11881 if test -x $with_build_time_tools/${ncn_progname}; then
11882 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884 $as_echo "yes" >&6; }
11885 break
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11890 done
11893 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11894 for ncn_progname in lipo; do
11895 if test -n "$ncn_target_tool_prefix"; then
11896 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11897 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 if test -n "$LIPO_FOR_TARGET"; then
11904 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11905 else
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11913 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11917 done
11918 done
11919 IFS=$as_save_IFS
11923 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11924 if test -n "$LIPO_FOR_TARGET"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11926 $as_echo "$LIPO_FOR_TARGET" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11934 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11936 set dummy ${ncn_progname}; ac_word=$2
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11938 $as_echo_n "checking for $ac_word... " >&6; }
11939 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 if test -n "$LIPO_FOR_TARGET"; then
11943 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11944 else
11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946 for as_dir in $PATH
11948 IFS=$as_save_IFS
11949 test -z "$as_dir" && as_dir=.
11950 for ac_exec_ext in '' $ac_executable_extensions; do
11951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11952 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 break 2
11956 done
11957 done
11958 IFS=$as_save_IFS
11962 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11963 if test -n "$LIPO_FOR_TARGET"; then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11965 $as_echo "$LIPO_FOR_TARGET" >&6; }
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11973 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11974 done
11977 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11978 set dummy lipo
11979 if test $build = $target ; then
11980 LIPO_FOR_TARGET="$2"
11981 else
11982 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11984 else
11985 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11988 else
11989 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11995 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11996 if test -n "$with_build_time_tools"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11998 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11999 if test -x $with_build_time_tools/nm; then
12000 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12001 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12003 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12004 else
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12008 elif test $build != $host && test $have_gcc_for_target = yes; then
12009 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12010 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12011 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12014 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12015 # Extract the first word of "nm", so it can be a program name with args.
12016 set dummy nm; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 case $NM_FOR_TARGET in
12023 [\\/]* | ?:[\\/]*)
12024 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028 for as_dir in $gcc_cv_tool_dirs
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
12032 for ac_exec_ext in '' $ac_executable_extensions; do
12033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12034 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 break 2
12038 done
12039 done
12040 IFS=$as_save_IFS
12043 esac
12045 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12046 if test -n "$NM_FOR_TARGET"; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12048 $as_echo "$NM_FOR_TARGET" >&6; }
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12056 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12059 if test -n "$NM_FOR_TARGET"; then
12060 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12061 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12062 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12065 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12066 for ncn_progname in nm; do
12067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12068 set dummy ${ncn_progname}; ac_word=$2
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12070 $as_echo_n "checking for $ac_word... " >&6; }
12071 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 if test -n "$NM_FOR_TARGET"; then
12075 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12076 else
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $PATH
12080 IFS=$as_save_IFS
12081 test -z "$as_dir" && as_dir=.
12082 for ac_exec_ext in '' $ac_executable_extensions; do
12083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12084 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12086 break 2
12088 done
12089 done
12090 IFS=$as_save_IFS
12094 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12095 if test -n "$NM_FOR_TARGET"; then
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12097 $as_echo "$NM_FOR_TARGET" >&6; }
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12104 done
12107 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12108 for ncn_progname in nm; do
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12110 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12111 if test -x $with_build_time_tools/${ncn_progname}; then
12112 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12114 $as_echo "yes" >&6; }
12115 break
12116 else
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12120 done
12123 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12124 for ncn_progname in nm; do
12125 if test -n "$ncn_target_tool_prefix"; then
12126 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12127 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129 $as_echo_n "checking for $ac_word... " >&6; }
12130 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 if test -n "$NM_FOR_TARGET"; then
12134 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12135 else
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12143 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 break 2
12147 done
12148 done
12149 IFS=$as_save_IFS
12153 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12154 if test -n "$NM_FOR_TARGET"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12156 $as_echo "$NM_FOR_TARGET" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12164 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12165 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12166 set dummy ${ncn_progname}; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 if test -n "$NM_FOR_TARGET"; then
12173 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12174 else
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
12180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12182 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 break 2
12186 done
12187 done
12188 IFS=$as_save_IFS
12192 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12193 if test -n "$NM_FOR_TARGET"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12195 $as_echo "$NM_FOR_TARGET" >&6; }
12196 else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12203 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12204 done
12207 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12208 set dummy nm
12209 if test $build = $target ; then
12210 NM_FOR_TARGET="$2"
12211 else
12212 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12214 else
12215 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12218 else
12219 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12225 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12226 if test -n "$with_build_time_tools"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12228 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12229 if test -x $with_build_time_tools/objdump; then
12230 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12231 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12233 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12238 elif test $build != $host && test $have_gcc_for_target = yes; then
12239 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12240 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12241 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12244 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12245 # Extract the first word of "objdump", so it can be a program name with args.
12246 set dummy objdump; ac_word=$2
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12248 $as_echo_n "checking for $ac_word... " >&6; }
12249 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 case $OBJDUMP_FOR_TARGET in
12253 [\\/]* | ?:[\\/]*)
12254 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258 for as_dir in $gcc_cv_tool_dirs
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12268 done
12269 done
12270 IFS=$as_save_IFS
12273 esac
12275 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12276 if test -n "$OBJDUMP_FOR_TARGET"; then
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12278 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12279 else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12286 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12289 if test -n "$OBJDUMP_FOR_TARGET"; then
12290 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12291 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12292 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12295 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12296 for ncn_progname in objdump; do
12297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12298 set dummy ${ncn_progname}; ac_word=$2
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300 $as_echo_n "checking for $ac_word... " >&6; }
12301 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 if test -n "$OBJDUMP_FOR_TARGET"; then
12305 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12306 else
12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308 for as_dir in $PATH
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
12313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12314 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12316 break 2
12318 done
12319 done
12320 IFS=$as_save_IFS
12324 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12325 if test -n "$OBJDUMP_FOR_TARGET"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12327 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12328 else
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330 $as_echo "no" >&6; }
12334 done
12337 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12338 for ncn_progname in objdump; do
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12340 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12341 if test -x $with_build_time_tools/${ncn_progname}; then
12342 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344 $as_echo "yes" >&6; }
12345 break
12346 else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348 $as_echo "no" >&6; }
12350 done
12353 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12354 for ncn_progname in objdump; do
12355 if test -n "$ncn_target_tool_prefix"; then
12356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12357 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359 $as_echo_n "checking for $ac_word... " >&6; }
12360 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 if test -n "$OBJDUMP_FOR_TARGET"; then
12364 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12365 else
12366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367 for as_dir in $PATH
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
12372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12373 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12377 done
12378 done
12379 IFS=$as_save_IFS
12383 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12384 if test -n "$OBJDUMP_FOR_TARGET"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12386 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12394 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12396 set dummy ${ncn_progname}; ac_word=$2
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398 $as_echo_n "checking for $ac_word... " >&6; }
12399 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 if test -n "$OBJDUMP_FOR_TARGET"; then
12403 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12404 else
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 break 2
12416 done
12417 done
12418 IFS=$as_save_IFS
12422 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12423 if test -n "$OBJDUMP_FOR_TARGET"; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12425 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12426 else
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428 $as_echo "no" >&6; }
12433 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12434 done
12437 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12438 set dummy objdump
12439 if test $build = $target ; then
12440 OBJDUMP_FOR_TARGET="$2"
12441 else
12442 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12444 else
12445 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12448 else
12449 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12455 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12456 if test -n "$with_build_time_tools"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12458 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12459 if test -x $with_build_time_tools/ranlib; then
12460 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12461 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12463 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12464 else
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12468 elif test $build != $host && test $have_gcc_for_target = yes; then
12469 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12470 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12471 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12474 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12475 # Extract the first word of "ranlib", so it can be a program name with args.
12476 set dummy ranlib; ac_word=$2
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12478 $as_echo_n "checking for $ac_word... " >&6; }
12479 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 case $RANLIB_FOR_TARGET in
12483 [\\/]* | ?:[\\/]*)
12484 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488 for as_dir in $gcc_cv_tool_dirs
12490 IFS=$as_save_IFS
12491 test -z "$as_dir" && as_dir=.
12492 for ac_exec_ext in '' $ac_executable_extensions; do
12493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12494 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496 break 2
12498 done
12499 done
12500 IFS=$as_save_IFS
12503 esac
12505 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12506 if test -n "$RANLIB_FOR_TARGET"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12508 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12516 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12519 if test -n "$RANLIB_FOR_TARGET"; then
12520 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12521 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12522 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12525 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12526 for ncn_progname in ranlib; do
12527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12528 set dummy ${ncn_progname}; ac_word=$2
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12530 $as_echo_n "checking for $ac_word... " >&6; }
12531 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12532 $as_echo_n "(cached) " >&6
12533 else
12534 if test -n "$RANLIB_FOR_TARGET"; then
12535 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12536 else
12537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12538 for as_dir in $PATH
12540 IFS=$as_save_IFS
12541 test -z "$as_dir" && as_dir=.
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12544 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 break 2
12548 done
12549 done
12550 IFS=$as_save_IFS
12554 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12555 if test -n "$RANLIB_FOR_TARGET"; then
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12557 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12558 else
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12560 $as_echo "no" >&6; }
12564 done
12567 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12568 for ncn_progname in ranlib; do
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12570 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12571 if test -x $with_build_time_tools/${ncn_progname}; then
12572 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574 $as_echo "yes" >&6; }
12575 break
12576 else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578 $as_echo "no" >&6; }
12580 done
12583 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12584 for ncn_progname in ranlib; do
12585 if test -n "$ncn_target_tool_prefix"; then
12586 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12587 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 if test -n "$RANLIB_FOR_TARGET"; then
12594 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12607 done
12608 done
12609 IFS=$as_save_IFS
12613 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12614 if test -n "$RANLIB_FOR_TARGET"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12616 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12624 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12626 set dummy ${ncn_progname}; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12630 $as_echo_n "(cached) " >&6
12631 else
12632 if test -n "$RANLIB_FOR_TARGET"; then
12633 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12634 else
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
12641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 break 2
12646 done
12647 done
12648 IFS=$as_save_IFS
12652 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12653 if test -n "$RANLIB_FOR_TARGET"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12655 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12656 else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12663 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12664 done
12667 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12668 set dummy ranlib
12669 if test $build = $target ; then
12670 RANLIB_FOR_TARGET="$2"
12671 else
12672 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12674 else
12675 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12678 else
12679 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12685 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12686 if test -n "$with_build_time_tools"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12688 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12689 if test -x $with_build_time_tools/readelf; then
12690 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12691 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12693 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12694 else
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12698 elif test $build != $host && test $have_gcc_for_target = yes; then
12699 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12700 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12701 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12704 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12705 # Extract the first word of "readelf", so it can be a program name with args.
12706 set dummy readelf; ac_word=$2
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708 $as_echo_n "checking for $ac_word... " >&6; }
12709 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712 case $READELF_FOR_TARGET in
12713 [\\/]* | ?:[\\/]*)
12714 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $gcc_cv_tool_dirs
12720 IFS=$as_save_IFS
12721 test -z "$as_dir" && as_dir=.
12722 for ac_exec_ext in '' $ac_executable_extensions; do
12723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12724 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12726 break 2
12728 done
12729 done
12730 IFS=$as_save_IFS
12733 esac
12735 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12736 if test -n "$READELF_FOR_TARGET"; then
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12738 $as_echo "$READELF_FOR_TARGET" >&6; }
12739 else
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12746 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12749 if test -n "$READELF_FOR_TARGET"; then
12750 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12751 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12752 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12755 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12756 for ncn_progname in readelf; do
12757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12758 set dummy ${ncn_progname}; ac_word=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 if test -n "$READELF_FOR_TARGET"; then
12765 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12766 else
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12774 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12778 done
12779 done
12780 IFS=$as_save_IFS
12784 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12785 if test -n "$READELF_FOR_TARGET"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12787 $as_echo "$READELF_FOR_TARGET" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12794 done
12797 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12798 for ncn_progname in readelf; do
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12800 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12801 if test -x $with_build_time_tools/${ncn_progname}; then
12802 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12804 $as_echo "yes" >&6; }
12805 break
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12810 done
12813 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12814 for ncn_progname in readelf; do
12815 if test -n "$ncn_target_tool_prefix"; then
12816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12817 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12821 $as_echo_n "(cached) " >&6
12822 else
12823 if test -n "$READELF_FOR_TARGET"; then
12824 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12825 else
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12833 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12837 done
12838 done
12839 IFS=$as_save_IFS
12843 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12844 if test -n "$READELF_FOR_TARGET"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12846 $as_echo "$READELF_FOR_TARGET" >&6; }
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12854 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12856 set dummy ${ncn_progname}; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12858 $as_echo_n "checking for $ac_word... " >&6; }
12859 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12861 else
12862 if test -n "$READELF_FOR_TARGET"; then
12863 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12864 else
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12868 IFS=$as_save_IFS
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12872 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12874 break 2
12876 done
12877 done
12878 IFS=$as_save_IFS
12882 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12883 if test -n "$READELF_FOR_TARGET"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12885 $as_echo "$READELF_FOR_TARGET" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12893 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12894 done
12897 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12898 set dummy readelf
12899 if test $build = $target ; then
12900 READELF_FOR_TARGET="$2"
12901 else
12902 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12904 else
12905 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12908 else
12909 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12915 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12916 if test -n "$with_build_time_tools"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12918 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12919 if test -x $with_build_time_tools/strip; then
12920 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12921 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12923 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12924 else
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12928 elif test $build != $host && test $have_gcc_for_target = yes; then
12929 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12930 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12931 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12934 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12935 # Extract the first word of "strip", so it can be a program name with args.
12936 set dummy strip; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938 $as_echo_n "checking for $ac_word... " >&6; }
12939 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 case $STRIP_FOR_TARGET in
12943 [\\/]* | ?:[\\/]*)
12944 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12948 for as_dir in $gcc_cv_tool_dirs
12950 IFS=$as_save_IFS
12951 test -z "$as_dir" && as_dir=.
12952 for ac_exec_ext in '' $ac_executable_extensions; do
12953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12954 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12956 break 2
12958 done
12959 done
12960 IFS=$as_save_IFS
12963 esac
12965 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12966 if test -n "$STRIP_FOR_TARGET"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12968 $as_echo "$STRIP_FOR_TARGET" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12976 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12979 if test -n "$STRIP_FOR_TARGET"; then
12980 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12981 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12982 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12985 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12986 for ncn_progname in strip; do
12987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12988 set dummy ${ncn_progname}; ac_word=$2
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12990 $as_echo_n "checking for $ac_word... " >&6; }
12991 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 if test -n "$STRIP_FOR_TARGET"; then
12995 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12996 else
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
13000 IFS=$as_save_IFS
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 break 2
13008 done
13009 done
13010 IFS=$as_save_IFS
13014 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13015 if test -n "$STRIP_FOR_TARGET"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13017 $as_echo "$STRIP_FOR_TARGET" >&6; }
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13020 $as_echo "no" >&6; }
13024 done
13027 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13028 for ncn_progname in strip; do
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13030 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13031 if test -x $with_build_time_tools/${ncn_progname}; then
13032 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13034 $as_echo "yes" >&6; }
13035 break
13036 else
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038 $as_echo "no" >&6; }
13040 done
13043 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13044 for ncn_progname in strip; do
13045 if test -n "$ncn_target_tool_prefix"; then
13046 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13047 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13051 $as_echo_n "(cached) " >&6
13052 else
13053 if test -n "$STRIP_FOR_TARGET"; then
13054 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13055 else
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13059 IFS=$as_save_IFS
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065 break 2
13067 done
13068 done
13069 IFS=$as_save_IFS
13073 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13074 if test -n "$STRIP_FOR_TARGET"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13076 $as_echo "$STRIP_FOR_TARGET" >&6; }
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13084 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13086 set dummy ${ncn_progname}; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 if test -n "$STRIP_FOR_TARGET"; then
13093 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13102 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13106 done
13107 done
13108 IFS=$as_save_IFS
13112 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13113 if test -n "$STRIP_FOR_TARGET"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13115 $as_echo "$STRIP_FOR_TARGET" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13123 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13124 done
13127 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13128 set dummy strip
13129 if test $build = $target ; then
13130 STRIP_FOR_TARGET="$2"
13131 else
13132 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13134 else
13135 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13138 else
13139 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13145 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13146 if test -n "$with_build_time_tools"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13148 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13149 if test -x $with_build_time_tools/windres; then
13150 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13151 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13153 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13154 else
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 $as_echo "no" >&6; }
13158 elif test $build != $host && test $have_gcc_for_target = yes; then
13159 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13160 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13161 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13164 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13165 # Extract the first word of "windres", so it can be a program name with args.
13166 set dummy windres; ac_word=$2
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13168 $as_echo_n "checking for $ac_word... " >&6; }
13169 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 case $WINDRES_FOR_TARGET in
13173 [\\/]* | ?:[\\/]*)
13174 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $gcc_cv_tool_dirs
13180 IFS=$as_save_IFS
13181 test -z "$as_dir" && as_dir=.
13182 for ac_exec_ext in '' $ac_executable_extensions; do
13183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13184 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186 break 2
13188 done
13189 done
13190 IFS=$as_save_IFS
13193 esac
13195 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13196 if test -n "$WINDRES_FOR_TARGET"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13198 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13206 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13209 if test -n "$WINDRES_FOR_TARGET"; then
13210 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13211 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13212 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13215 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13216 for ncn_progname in windres; do
13217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13218 set dummy ${ncn_progname}; ac_word=$2
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13220 $as_echo_n "checking for $ac_word... " >&6; }
13221 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 if test -n "$WINDRES_FOR_TARGET"; then
13225 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13226 else
13227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228 for as_dir in $PATH
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
13233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13234 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13238 done
13239 done
13240 IFS=$as_save_IFS
13244 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13245 if test -n "$WINDRES_FOR_TARGET"; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13247 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13248 else
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13254 done
13257 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13258 for ncn_progname in windres; do
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13260 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13261 if test -x $with_build_time_tools/${ncn_progname}; then
13262 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13264 $as_echo "yes" >&6; }
13265 break
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268 $as_echo "no" >&6; }
13270 done
13273 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13274 for ncn_progname in windres; do
13275 if test -n "$ncn_target_tool_prefix"; then
13276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13277 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 if test -n "$WINDRES_FOR_TARGET"; then
13284 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13285 else
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13289 IFS=$as_save_IFS
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295 break 2
13297 done
13298 done
13299 IFS=$as_save_IFS
13303 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13304 if test -n "$WINDRES_FOR_TARGET"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13306 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13314 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13316 set dummy ${ncn_progname}; ac_word=$2
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13318 $as_echo_n "checking for $ac_word... " >&6; }
13319 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 if test -n "$WINDRES_FOR_TARGET"; then
13323 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13324 else
13325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13326 for as_dir in $PATH
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13332 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13336 done
13337 done
13338 IFS=$as_save_IFS
13342 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13343 if test -n "$WINDRES_FOR_TARGET"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13345 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13353 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13354 done
13357 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13358 set dummy windres
13359 if test $build = $target ; then
13360 WINDRES_FOR_TARGET="$2"
13361 else
13362 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13364 else
13365 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13368 else
13369 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13375 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13376 if test -n "$with_build_time_tools"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13378 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13379 if test -x $with_build_time_tools/windmc; then
13380 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13381 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13383 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13384 else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13388 elif test $build != $host && test $have_gcc_for_target = yes; then
13389 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13390 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13391 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13394 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13395 # Extract the first word of "windmc", so it can be a program name with args.
13396 set dummy windmc; ac_word=$2
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13398 $as_echo_n "checking for $ac_word... " >&6; }
13399 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 case $WINDMC_FOR_TARGET in
13403 [\\/]* | ?:[\\/]*)
13404 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408 for as_dir in $gcc_cv_tool_dirs
13410 IFS=$as_save_IFS
13411 test -z "$as_dir" && as_dir=.
13412 for ac_exec_ext in '' $ac_executable_extensions; do
13413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13414 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416 break 2
13418 done
13419 done
13420 IFS=$as_save_IFS
13423 esac
13425 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13426 if test -n "$WINDMC_FOR_TARGET"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13428 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13429 else
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13431 $as_echo "no" >&6; }
13436 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13439 if test -n "$WINDMC_FOR_TARGET"; then
13440 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13441 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13442 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13445 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13446 for ncn_progname in windmc; do
13447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13448 set dummy ${ncn_progname}; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 if test -n "$WINDMC_FOR_TARGET"; then
13455 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13456 else
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13464 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13468 done
13469 done
13470 IFS=$as_save_IFS
13474 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13475 if test -n "$WINDMC_FOR_TARGET"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13477 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13478 else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13484 done
13487 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13488 for ncn_progname in windmc; do
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13490 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13491 if test -x $with_build_time_tools/${ncn_progname}; then
13492 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13494 $as_echo "yes" >&6; }
13495 break
13496 else
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13498 $as_echo "no" >&6; }
13500 done
13503 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13504 for ncn_progname in windmc; do
13505 if test -n "$ncn_target_tool_prefix"; then
13506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13507 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13509 $as_echo_n "checking for $ac_word... " >&6; }
13510 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 if test -n "$WINDMC_FOR_TARGET"; then
13514 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13515 else
13516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13517 for as_dir in $PATH
13519 IFS=$as_save_IFS
13520 test -z "$as_dir" && as_dir=.
13521 for ac_exec_ext in '' $ac_executable_extensions; do
13522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13523 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13525 break 2
13527 done
13528 done
13529 IFS=$as_save_IFS
13533 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13534 if test -n "$WINDMC_FOR_TARGET"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13536 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13537 else
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539 $as_echo "no" >&6; }
13544 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13546 set dummy ${ncn_progname}; ac_word=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548 $as_echo_n "checking for $ac_word... " >&6; }
13549 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 if test -n "$WINDMC_FOR_TARGET"; then
13553 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13554 else
13555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13558 IFS=$as_save_IFS
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
13561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13562 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564 break 2
13566 done
13567 done
13568 IFS=$as_save_IFS
13572 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13573 if test -n "$WINDMC_FOR_TARGET"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13575 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13576 else
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578 $as_echo "no" >&6; }
13583 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13584 done
13587 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13588 set dummy windmc
13589 if test $build = $target ; then
13590 WINDMC_FOR_TARGET="$2"
13591 else
13592 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13594 else
13595 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13598 else
13599 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13603 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13606 $as_echo_n "checking where to find the target ar... " >&6; }
13607 if test "x${build}" != "x${host}" ; then
13608 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13609 # We already found the complete path
13610 ac_dir=`dirname $AR_FOR_TARGET`
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13612 $as_echo "pre-installed in $ac_dir" >&6; }
13613 else
13614 # Canadian cross, just use what we found
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13616 $as_echo "pre-installed" >&6; }
13618 else
13619 ok=yes
13620 case " ${configdirs} " in
13621 *" binutils "*) ;;
13622 *) ok=no ;;
13623 esac
13625 if test $ok = yes; then
13626 # An in-tree tool is available and we can use it
13627 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13629 $as_echo "just compiled" >&6; }
13630 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13631 # We already found the complete path
13632 ac_dir=`dirname $AR_FOR_TARGET`
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13634 $as_echo "pre-installed in $ac_dir" >&6; }
13635 elif test "x$target" = "x$host"; then
13636 # We can use an host tool
13637 AR_FOR_TARGET='$(AR)'
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13639 $as_echo "host tool" >&6; }
13640 else
13641 # We need a cross tool
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13643 $as_echo "pre-installed" >&6; }
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13648 $as_echo_n "checking where to find the target as... " >&6; }
13649 if test "x${build}" != "x${host}" ; then
13650 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13651 # We already found the complete path
13652 ac_dir=`dirname $AS_FOR_TARGET`
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13654 $as_echo "pre-installed in $ac_dir" >&6; }
13655 else
13656 # Canadian cross, just use what we found
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658 $as_echo "pre-installed" >&6; }
13660 else
13661 ok=yes
13662 case " ${configdirs} " in
13663 *" gas "*) ;;
13664 *) ok=no ;;
13665 esac
13667 if test $ok = yes; then
13668 # An in-tree tool is available and we can use it
13669 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13671 $as_echo "just compiled" >&6; }
13672 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13673 # We already found the complete path
13674 ac_dir=`dirname $AS_FOR_TARGET`
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676 $as_echo "pre-installed in $ac_dir" >&6; }
13677 elif test "x$target" = "x$host"; then
13678 # We can use an host tool
13679 AS_FOR_TARGET='$(AS)'
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13681 $as_echo "host tool" >&6; }
13682 else
13683 # We need a cross tool
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13685 $as_echo "pre-installed" >&6; }
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13690 $as_echo_n "checking where to find the target cc... " >&6; }
13691 if test "x${build}" != "x${host}" ; then
13692 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13693 # We already found the complete path
13694 ac_dir=`dirname $CC_FOR_TARGET`
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13696 $as_echo "pre-installed in $ac_dir" >&6; }
13697 else
13698 # Canadian cross, just use what we found
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700 $as_echo "pre-installed" >&6; }
13702 else
13703 ok=yes
13704 case " ${configdirs} " in
13705 *" gcc "*) ;;
13706 *) ok=no ;;
13707 esac
13709 if test $ok = yes; then
13710 # An in-tree tool is available and we can use it
13711 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13713 $as_echo "just compiled" >&6; }
13714 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13715 # We already found the complete path
13716 ac_dir=`dirname $CC_FOR_TARGET`
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13718 $as_echo "pre-installed in $ac_dir" >&6; }
13719 elif test "x$target" = "x$host"; then
13720 # We can use an host tool
13721 CC_FOR_TARGET='$(CC)'
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13723 $as_echo "host tool" >&6; }
13724 else
13725 # We need a cross tool
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13727 $as_echo "pre-installed" >&6; }
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13732 $as_echo_n "checking where to find the target c++... " >&6; }
13733 if test "x${build}" != "x${host}" ; then
13734 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13735 # We already found the complete path
13736 ac_dir=`dirname $CXX_FOR_TARGET`
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13738 $as_echo "pre-installed in $ac_dir" >&6; }
13739 else
13740 # Canadian cross, just use what we found
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742 $as_echo "pre-installed" >&6; }
13744 else
13745 ok=yes
13746 case " ${configdirs} " in
13747 *" gcc "*) ;;
13748 *) ok=no ;;
13749 esac
13750 case ,${enable_languages}, in
13751 *,c++,*) ;;
13752 *) ok=no ;;
13753 esac
13754 if test $ok = yes; then
13755 # An in-tree tool is available and we can use it
13756 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'
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13758 $as_echo "just compiled" >&6; }
13759 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13760 # We already found the complete path
13761 ac_dir=`dirname $CXX_FOR_TARGET`
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13763 $as_echo "pre-installed in $ac_dir" >&6; }
13764 elif test "x$target" = "x$host"; then
13765 # We can use an host tool
13766 CXX_FOR_TARGET='$(CXX)'
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13768 $as_echo "host tool" >&6; }
13769 else
13770 # We need a cross tool
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772 $as_echo "pre-installed" >&6; }
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13777 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13778 if test "x${build}" != "x${host}" ; then
13779 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13780 # We already found the complete path
13781 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13783 $as_echo "pre-installed in $ac_dir" >&6; }
13784 else
13785 # Canadian cross, just use what we found
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787 $as_echo "pre-installed" >&6; }
13789 else
13790 ok=yes
13791 case " ${configdirs} " in
13792 *" gcc "*) ;;
13793 *) ok=no ;;
13794 esac
13795 case ,${enable_languages}, in
13796 *,c++,*) ;;
13797 *) ok=no ;;
13798 esac
13799 if test $ok = yes; then
13800 # An in-tree tool is available and we can use it
13801 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'
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13803 $as_echo "just compiled" >&6; }
13804 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
13806 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808 $as_echo "pre-installed in $ac_dir" >&6; }
13809 elif test "x$target" = "x$host"; then
13810 # We can use an host tool
13811 RAW_CXX_FOR_TARGET='$(CXX)'
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13813 $as_echo "host tool" >&6; }
13814 else
13815 # We need a cross tool
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817 $as_echo "pre-installed" >&6; }
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13822 $as_echo_n "checking where to find the target dlltool... " >&6; }
13823 if test "x${build}" != "x${host}" ; then
13824 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13825 # We already found the complete path
13826 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828 $as_echo "pre-installed in $ac_dir" >&6; }
13829 else
13830 # Canadian cross, just use what we found
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832 $as_echo "pre-installed" >&6; }
13834 else
13835 ok=yes
13836 case " ${configdirs} " in
13837 *" binutils "*) ;;
13838 *) ok=no ;;
13839 esac
13841 if test $ok = yes; then
13842 # An in-tree tool is available and we can use it
13843 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13845 $as_echo "just compiled" >&6; }
13846 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13847 # We already found the complete path
13848 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13850 $as_echo "pre-installed in $ac_dir" >&6; }
13851 elif test "x$target" = "x$host"; then
13852 # We can use an host tool
13853 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13855 $as_echo "host tool" >&6; }
13856 else
13857 # We need a cross tool
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13859 $as_echo "pre-installed" >&6; }
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13864 $as_echo_n "checking where to find the target gcc... " >&6; }
13865 if test "x${build}" != "x${host}" ; then
13866 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
13868 ac_dir=`dirname $GCC_FOR_TARGET`
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870 $as_echo "pre-installed in $ac_dir" >&6; }
13871 else
13872 # Canadian cross, just use what we found
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874 $as_echo "pre-installed" >&6; }
13876 else
13877 ok=yes
13878 case " ${configdirs} " in
13879 *" gcc "*) ;;
13880 *) ok=no ;;
13881 esac
13883 if test $ok = yes; then
13884 # An in-tree tool is available and we can use it
13885 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13887 $as_echo "just compiled" >&6; }
13888 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13889 # We already found the complete path
13890 ac_dir=`dirname $GCC_FOR_TARGET`
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13892 $as_echo "pre-installed in $ac_dir" >&6; }
13893 elif test "x$target" = "x$host"; then
13894 # We can use an host tool
13895 GCC_FOR_TARGET='$()'
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13897 $as_echo "host tool" >&6; }
13898 else
13899 # We need a cross tool
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13901 $as_echo "pre-installed" >&6; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13906 $as_echo_n "checking where to find the target gcj... " >&6; }
13907 if test "x${build}" != "x${host}" ; then
13908 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
13910 ac_dir=`dirname $GCJ_FOR_TARGET`
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912 $as_echo "pre-installed in $ac_dir" >&6; }
13913 else
13914 # Canadian cross, just use what we found
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916 $as_echo "pre-installed" >&6; }
13918 else
13919 ok=yes
13920 case " ${configdirs} " in
13921 *" gcc "*) ;;
13922 *) ok=no ;;
13923 esac
13924 case ,${enable_languages}, in
13925 *,java,*) ;;
13926 *) ok=no ;;
13927 esac
13928 if test $ok = yes; then
13929 # An in-tree tool is available and we can use it
13930 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13932 $as_echo "just compiled" >&6; }
13933 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13934 # We already found the complete path
13935 ac_dir=`dirname $GCJ_FOR_TARGET`
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13937 $as_echo "pre-installed in $ac_dir" >&6; }
13938 elif test "x$target" = "x$host"; then
13939 # We can use an host tool
13940 GCJ_FOR_TARGET='$(GCJ)'
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13942 $as_echo "host tool" >&6; }
13943 else
13944 # We need a cross tool
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13946 $as_echo "pre-installed" >&6; }
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13951 $as_echo_n "checking where to find the target gfortran... " >&6; }
13952 if test "x${build}" != "x${host}" ; then
13953 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13954 # We already found the complete path
13955 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13957 $as_echo "pre-installed in $ac_dir" >&6; }
13958 else
13959 # Canadian cross, just use what we found
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961 $as_echo "pre-installed" >&6; }
13963 else
13964 ok=yes
13965 case " ${configdirs} " in
13966 *" gcc "*) ;;
13967 *) ok=no ;;
13968 esac
13969 case ,${enable_languages}, in
13970 *,fortran,*) ;;
13971 *) ok=no ;;
13972 esac
13973 if test $ok = yes; then
13974 # An in-tree tool is available and we can use it
13975 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13977 $as_echo "just compiled" >&6; }
13978 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
13980 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982 $as_echo "pre-installed in $ac_dir" >&6; }
13983 elif test "x$target" = "x$host"; then
13984 # We can use an host tool
13985 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13987 $as_echo "host tool" >&6; }
13988 else
13989 # We need a cross tool
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991 $as_echo "pre-installed" >&6; }
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13996 $as_echo_n "checking where to find the target gccgo... " >&6; }
13997 if test "x${build}" != "x${host}" ; then
13998 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13999 # We already found the complete path
14000 ac_dir=`dirname $GOC_FOR_TARGET`
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14002 $as_echo "pre-installed in $ac_dir" >&6; }
14003 else
14004 # Canadian cross, just use what we found
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006 $as_echo "pre-installed" >&6; }
14008 else
14009 ok=yes
14010 case " ${configdirs} " in
14011 *" gcc "*) ;;
14012 *) ok=no ;;
14013 esac
14014 case ,${enable_languages}, in
14015 *,go,*) ;;
14016 *) ok=no ;;
14017 esac
14018 if test $ok = yes; then
14019 # An in-tree tool is available and we can use it
14020 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14022 $as_echo "just compiled" >&6; }
14023 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
14025 ac_dir=`dirname $GOC_FOR_TARGET`
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027 $as_echo "pre-installed in $ac_dir" >&6; }
14028 elif test "x$target" = "x$host"; then
14029 # We can use an host tool
14030 GOC_FOR_TARGET='$(GOC)'
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14032 $as_echo "host tool" >&6; }
14033 else
14034 # We need a cross tool
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036 $as_echo "pre-installed" >&6; }
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14041 $as_echo_n "checking where to find the target ld... " >&6; }
14042 if test "x${build}" != "x${host}" ; then
14043 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
14045 ac_dir=`dirname $LD_FOR_TARGET`
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047 $as_echo "pre-installed in $ac_dir" >&6; }
14048 else
14049 # Canadian cross, just use what we found
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051 $as_echo "pre-installed" >&6; }
14053 else
14054 ok=yes
14055 case " ${configdirs} " in
14056 *" ld "*) ;;
14057 *) ok=no ;;
14058 esac
14060 if test $ok = yes; then
14061 # An in-tree tool is available and we can use it
14062 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14064 $as_echo "just compiled" >&6; }
14065 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14066 # We already found the complete path
14067 ac_dir=`dirname $LD_FOR_TARGET`
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069 $as_echo "pre-installed in $ac_dir" >&6; }
14070 elif test "x$target" = "x$host"; then
14071 # We can use an host tool
14072 LD_FOR_TARGET='$(LD)'
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14074 $as_echo "host tool" >&6; }
14075 else
14076 # We need a cross tool
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14078 $as_echo "pre-installed" >&6; }
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14083 $as_echo_n "checking where to find the target lipo... " >&6; }
14084 if test "x${build}" != "x${host}" ; then
14085 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14086 # We already found the complete path
14087 ac_dir=`dirname $LIPO_FOR_TARGET`
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14089 $as_echo "pre-installed in $ac_dir" >&6; }
14090 else
14091 # Canadian cross, just use what we found
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093 $as_echo "pre-installed" >&6; }
14095 else
14096 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14097 # We already found the complete path
14098 ac_dir=`dirname $LIPO_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 elif test "x$target" = "x$host"; then
14102 # We can use an host tool
14103 LIPO_FOR_TARGET='$(LIPO)'
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14105 $as_echo "host tool" >&6; }
14106 else
14107 # We need a cross tool
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109 $as_echo "pre-installed" >&6; }
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14114 $as_echo_n "checking where to find the target nm... " >&6; }
14115 if test "x${build}" != "x${host}" ; then
14116 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14117 # We already found the complete path
14118 ac_dir=`dirname $NM_FOR_TARGET`
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14120 $as_echo "pre-installed in $ac_dir" >&6; }
14121 else
14122 # Canadian cross, just use what we found
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14124 $as_echo "pre-installed" >&6; }
14126 else
14127 ok=yes
14128 case " ${configdirs} " in
14129 *" binutils "*) ;;
14130 *) ok=no ;;
14131 esac
14133 if test $ok = yes; then
14134 # An in-tree tool is available and we can use it
14135 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14137 $as_echo "just compiled" >&6; }
14138 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
14140 ac_dir=`dirname $NM_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 elif test "x$target" = "x$host"; then
14144 # We can use an host tool
14145 NM_FOR_TARGET='$(NM)'
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14147 $as_echo "host tool" >&6; }
14148 else
14149 # We need a cross tool
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151 $as_echo "pre-installed" >&6; }
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14156 $as_echo_n "checking where to find the target objdump... " >&6; }
14157 if test "x${build}" != "x${host}" ; then
14158 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14159 # We already found the complete path
14160 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14162 $as_echo "pre-installed in $ac_dir" >&6; }
14163 else
14164 # Canadian cross, just use what we found
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14166 $as_echo "pre-installed" >&6; }
14168 else
14169 ok=yes
14170 case " ${configdirs} " in
14171 *" binutils "*) ;;
14172 *) ok=no ;;
14173 esac
14175 if test $ok = yes; then
14176 # An in-tree tool is available and we can use it
14177 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14179 $as_echo "just compiled" >&6; }
14180 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14181 # We already found the complete path
14182 ac_dir=`dirname $OBJDUMP_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 elif test "x$target" = "x$host"; then
14186 # We can use an host tool
14187 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14189 $as_echo "host tool" >&6; }
14190 else
14191 # We need a cross tool
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14193 $as_echo "pre-installed" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14198 $as_echo_n "checking where to find the target ranlib... " >&6; }
14199 if test "x${build}" != "x${host}" ; then
14200 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14201 # We already found the complete path
14202 ac_dir=`dirname $RANLIB_FOR_TARGET`
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14204 $as_echo "pre-installed in $ac_dir" >&6; }
14205 else
14206 # Canadian cross, just use what we found
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14208 $as_echo "pre-installed" >&6; }
14210 else
14211 ok=yes
14212 case " ${configdirs} " in
14213 *" binutils "*) ;;
14214 *) ok=no ;;
14215 esac
14217 if test $ok = yes; then
14218 # An in-tree tool is available and we can use it
14219 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14221 $as_echo "just compiled" >&6; }
14222 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14223 # We already found the complete path
14224 ac_dir=`dirname $RANLIB_FOR_TARGET`
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14226 $as_echo "pre-installed in $ac_dir" >&6; }
14227 elif test "x$target" = "x$host"; then
14228 # We can use an host tool
14229 RANLIB_FOR_TARGET='$(RANLIB)'
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14231 $as_echo "host tool" >&6; }
14232 else
14233 # We need a cross tool
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14235 $as_echo "pre-installed" >&6; }
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14240 $as_echo_n "checking where to find the target readelf... " >&6; }
14241 if test "x${build}" != "x${host}" ; then
14242 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14243 # We already found the complete path
14244 ac_dir=`dirname $READELF_FOR_TARGET`
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14246 $as_echo "pre-installed in $ac_dir" >&6; }
14247 else
14248 # Canadian cross, just use what we found
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14250 $as_echo "pre-installed" >&6; }
14252 else
14253 ok=yes
14254 case " ${configdirs} " in
14255 *" binutils "*) ;;
14256 *) ok=no ;;
14257 esac
14259 if test $ok = yes; then
14260 # An in-tree tool is available and we can use it
14261 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14263 $as_echo "just compiled" >&6; }
14264 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14265 # We already found the complete path
14266 ac_dir=`dirname $READELF_FOR_TARGET`
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14268 $as_echo "pre-installed in $ac_dir" >&6; }
14269 elif test "x$target" = "x$host"; then
14270 # We can use an host tool
14271 READELF_FOR_TARGET='$(READELF)'
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14273 $as_echo "host tool" >&6; }
14274 else
14275 # We need a cross tool
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14277 $as_echo "pre-installed" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14282 $as_echo_n "checking where to find the target strip... " >&6; }
14283 if test "x${build}" != "x${host}" ; then
14284 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14285 # We already found the complete path
14286 ac_dir=`dirname $STRIP_FOR_TARGET`
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14288 $as_echo "pre-installed in $ac_dir" >&6; }
14289 else
14290 # Canadian cross, just use what we found
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14292 $as_echo "pre-installed" >&6; }
14294 else
14295 ok=yes
14296 case " ${configdirs} " in
14297 *" binutils "*) ;;
14298 *) ok=no ;;
14299 esac
14301 if test $ok = yes; then
14302 # An in-tree tool is available and we can use it
14303 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14305 $as_echo "just compiled" >&6; }
14306 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14307 # We already found the complete path
14308 ac_dir=`dirname $STRIP_FOR_TARGET`
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14310 $as_echo "pre-installed in $ac_dir" >&6; }
14311 elif test "x$target" = "x$host"; then
14312 # We can use an host tool
14313 STRIP_FOR_TARGET='$(STRIP)'
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14315 $as_echo "host tool" >&6; }
14316 else
14317 # We need a cross tool
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14319 $as_echo "pre-installed" >&6; }
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14324 $as_echo_n "checking where to find the target windres... " >&6; }
14325 if test "x${build}" != "x${host}" ; then
14326 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14327 # We already found the complete path
14328 ac_dir=`dirname $WINDRES_FOR_TARGET`
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14330 $as_echo "pre-installed in $ac_dir" >&6; }
14331 else
14332 # Canadian cross, just use what we found
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14334 $as_echo "pre-installed" >&6; }
14336 else
14337 ok=yes
14338 case " ${configdirs} " in
14339 *" binutils "*) ;;
14340 *) ok=no ;;
14341 esac
14343 if test $ok = yes; then
14344 # An in-tree tool is available and we can use it
14345 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14347 $as_echo "just compiled" >&6; }
14348 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14349 # We already found the complete path
14350 ac_dir=`dirname $WINDRES_FOR_TARGET`
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14352 $as_echo "pre-installed in $ac_dir" >&6; }
14353 elif test "x$target" = "x$host"; then
14354 # We can use an host tool
14355 WINDRES_FOR_TARGET='$(WINDRES)'
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14357 $as_echo "host tool" >&6; }
14358 else
14359 # We need a cross tool
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361 $as_echo "pre-installed" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14366 $as_echo_n "checking where to find the target windmc... " >&6; }
14367 if test "x${build}" != "x${host}" ; then
14368 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14369 # We already found the complete path
14370 ac_dir=`dirname $WINDMC_FOR_TARGET`
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14372 $as_echo "pre-installed in $ac_dir" >&6; }
14373 else
14374 # Canadian cross, just use what we found
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14376 $as_echo "pre-installed" >&6; }
14378 else
14379 ok=yes
14380 case " ${configdirs} " in
14381 *" binutils "*) ;;
14382 *) ok=no ;;
14383 esac
14385 if test $ok = yes; then
14386 # An in-tree tool is available and we can use it
14387 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14389 $as_echo "just compiled" >&6; }
14390 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14391 # We already found the complete path
14392 ac_dir=`dirname $WINDMC_FOR_TARGET`
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14394 $as_echo "pre-installed in $ac_dir" >&6; }
14395 elif test "x$target" = "x$host"; then
14396 # We can use an host tool
14397 WINDMC_FOR_TARGET='$(WINDMC)'
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14399 $as_echo "host tool" >&6; }
14400 else
14401 # We need a cross tool
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403 $as_echo "pre-installed" >&6; }
14411 # Certain tools may need extra flags.
14412 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14413 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14414 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14416 # When building target libraries, except in a Canadian cross, we use
14417 # the same toolchain as the compiler we just built.
14418 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14419 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14420 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14421 if test $host = $build; then
14422 case " $configdirs " in
14423 *" gcc "*)
14424 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14425 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14426 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14428 esac
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14436 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14437 # Check whether --enable-maintainer-mode was given.
14438 if test "${enable_maintainer_mode+set}" = set; then :
14439 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14440 else
14441 USE_MAINTAINER_MODE=no
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14445 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14448 if test "$USE_MAINTAINER_MODE" = yes; then
14449 MAINTAINER_MODE_TRUE=
14450 MAINTAINER_MODE_FALSE='#'
14451 else
14452 MAINTAINER_MODE_TRUE='#'
14453 MAINTAINER_MODE_FALSE=
14455 MAINT=$MAINTAINER_MODE_TRUE
14457 # ---------------------
14458 # GCC bootstrap support
14459 # ---------------------
14461 # Stage specific cflags for build.
14462 stage1_cflags="-g"
14463 case $build in
14464 vax-*-*)
14465 case ${GCC} in
14466 yes) stage1_cflags="-g -Wa,-J" ;;
14467 *) stage1_cflags="-g -J" ;;
14468 esac ;;
14469 esac
14473 # Enable --enable-checking in stage1 of the compiler.
14474 # Check whether --enable-stage1-checking was given.
14475 if test "${enable_stage1_checking+set}" = set; then :
14476 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14477 else
14478 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14479 stage1_checking=--enable-checking=yes,types
14480 else
14481 stage1_checking=--enable-checking=$enable_checking,types
14487 # Enable -Werror in bootstrap stage2 and later.
14488 # Check whether --enable-werror was given.
14489 if test "${enable_werror+set}" = set; then :
14490 enableval=$enable_werror;
14491 else
14492 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14493 enable_werror=yes
14494 else
14495 enable_werror=no
14499 case ${enable_werror} in
14500 yes) stage2_werror_flag="--enable-werror-always" ;;
14501 *) stage2_werror_flag="" ;;
14502 esac
14505 # Enable --enable-host-shared.
14506 # Check whether --enable-host-shared was given.
14507 if test "${enable_host_shared+set}" = set; then :
14508 enableval=$enable_host_shared; host_shared=$enableval
14509 else
14510 host_shared=no
14515 # Specify what files to not compare during bootstrap.
14517 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14518 case "$target" in
14519 hppa*64*-*-hpux*) ;;
14520 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14521 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14522 esac
14525 ac_config_files="$ac_config_files Makefile"
14527 cat >confcache <<\_ACEOF
14528 # This file is a shell script that caches the results of configure
14529 # tests run on this system so they can be shared between configure
14530 # scripts and configure runs, see configure's option --config-cache.
14531 # It is not useful on other systems. If it contains results you don't
14532 # want to keep, you may remove or edit it.
14534 # config.status only pays attention to the cache file if you give it
14535 # the --recheck option to rerun configure.
14537 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14539 # following values.
14541 _ACEOF
14543 # The following way of writing the cache mishandles newlines in values,
14544 # but we know of no workaround that is simple, portable, and efficient.
14545 # So, we kill variables containing newlines.
14546 # Ultrix sh set writes to stderr and can't be redirected directly,
14547 # and sets the high bit in the cache file unless we assign to the vars.
14549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14550 eval ac_val=\$$ac_var
14551 case $ac_val in #(
14552 *${as_nl}*)
14553 case $ac_var in #(
14554 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14555 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14556 esac
14557 case $ac_var in #(
14558 _ | IFS | as_nl) ;; #(
14559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14560 *) { eval $ac_var=; unset $ac_var;} ;;
14561 esac ;;
14562 esac
14563 done
14565 (set) 2>&1 |
14566 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14567 *${as_nl}ac_space=\ *)
14568 # `set' does not quote correctly, so add quotes: double-quote
14569 # substitution turns \\\\ into \\, and sed turns \\ into \.
14570 sed -n \
14571 "s/'/'\\\\''/g;
14572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14573 ;; #(
14575 # `set' quotes correctly as required by POSIX, so do not add quotes.
14576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14578 esac |
14579 sort
14581 sed '
14582 /^ac_cv_env_/b end
14583 t clear
14584 :clear
14585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14586 t end
14587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14588 :end' >>confcache
14589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14590 if test -w "$cache_file"; then
14591 test "x$cache_file" != "x/dev/null" &&
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14593 $as_echo "$as_me: updating cache $cache_file" >&6;}
14594 cat confcache >$cache_file
14595 else
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14597 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14600 rm -f confcache
14602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14603 # Let make expand exec_prefix.
14604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14606 # Transform confdefs.h into DEFS.
14607 # Protect against shell expansion while executing Makefile rules.
14608 # Protect against Makefile macro expansion.
14610 # If the first sed substitution is executed (which looks for macros that
14611 # take arguments), then branch to the quote section. Otherwise,
14612 # look for a macro that doesn't take arguments.
14613 ac_script='
14614 :mline
14615 /\\$/{
14617 s,\\\n,,
14618 b mline
14620 t clear
14621 :clear
14622 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14623 t quote
14624 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14625 t quote
14626 b any
14627 :quote
14628 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14629 s/\[/\\&/g
14630 s/\]/\\&/g
14631 s/\$/$$/g
14633 :any
14636 s/^\n//
14637 s/\n/ /g
14641 DEFS=`sed -n "$ac_script" confdefs.h`
14644 ac_libobjs=
14645 ac_ltlibobjs=
14646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14647 # 1. Remove the extension, and $U if already installed.
14648 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14649 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14650 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14651 # will be set to the directory where LIBOBJS objects are built.
14652 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14653 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14654 done
14655 LIBOBJS=$ac_libobjs
14657 LTLIBOBJS=$ac_ltlibobjs
14661 : ${CONFIG_STATUS=./config.status}
14662 ac_write_fail=0
14663 ac_clean_files_save=$ac_clean_files
14664 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14666 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14667 as_write_fail=0
14668 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14669 #! $SHELL
14670 # Generated by $as_me.
14671 # Run this file to recreate the current configuration.
14672 # Compiler output produced by configure, useful for debugging
14673 # configure, is in config.log if it exists.
14675 debug=false
14676 ac_cs_recheck=false
14677 ac_cs_silent=false
14679 SHELL=\${CONFIG_SHELL-$SHELL}
14680 export SHELL
14681 _ASEOF
14682 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14683 ## -------------------- ##
14684 ## M4sh Initialization. ##
14685 ## -------------------- ##
14687 # Be more Bourne compatible
14688 DUALCASE=1; export DUALCASE # for MKS sh
14689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14690 emulate sh
14691 NULLCMD=:
14692 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14693 # is contrary to our usage. Disable this feature.
14694 alias -g '${1+"$@"}'='"$@"'
14695 setopt NO_GLOB_SUBST
14696 else
14697 case `(set -o) 2>/dev/null` in #(
14698 *posix*) :
14699 set -o posix ;; #(
14700 *) :
14702 esac
14706 as_nl='
14708 export as_nl
14709 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14710 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14712 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14713 # Prefer a ksh shell builtin over an external printf program on Solaris,
14714 # but without wasting forks for bash or zsh.
14715 if test -z "$BASH_VERSION$ZSH_VERSION" \
14716 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14717 as_echo='print -r --'
14718 as_echo_n='print -rn --'
14719 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14720 as_echo='printf %s\n'
14721 as_echo_n='printf %s'
14722 else
14723 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14724 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14725 as_echo_n='/usr/ucb/echo -n'
14726 else
14727 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14728 as_echo_n_body='eval
14729 arg=$1;
14730 case $arg in #(
14731 *"$as_nl"*)
14732 expr "X$arg" : "X\\(.*\\)$as_nl";
14733 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14734 esac;
14735 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14737 export as_echo_n_body
14738 as_echo_n='sh -c $as_echo_n_body as_echo'
14740 export as_echo_body
14741 as_echo='sh -c $as_echo_body as_echo'
14744 # The user is always right.
14745 if test "${PATH_SEPARATOR+set}" != set; then
14746 PATH_SEPARATOR=:
14747 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14748 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14749 PATH_SEPARATOR=';'
14754 # IFS
14755 # We need space, tab and new line, in precisely that order. Quoting is
14756 # there to prevent editors from complaining about space-tab.
14757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14758 # splitting by setting IFS to empty value.)
14759 IFS=" "" $as_nl"
14761 # Find who we are. Look in the path if we contain no directory separator.
14762 case $0 in #((
14763 *[\\/]* ) as_myself=$0 ;;
14764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765 for as_dir in $PATH
14767 IFS=$as_save_IFS
14768 test -z "$as_dir" && as_dir=.
14769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14770 done
14771 IFS=$as_save_IFS
14774 esac
14775 # We did not find ourselves, most probably we were run as `sh COMMAND'
14776 # in which case we are not to be found in the path.
14777 if test "x$as_myself" = x; then
14778 as_myself=$0
14780 if test ! -f "$as_myself"; then
14781 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14782 exit 1
14785 # Unset variables that we do not need and which cause bugs (e.g. in
14786 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14787 # suppresses any "Segmentation fault" message there. '((' could
14788 # trigger a bug in pdksh 5.2.14.
14789 for as_var in BASH_ENV ENV MAIL MAILPATH
14790 do eval test x\${$as_var+set} = xset \
14791 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14792 done
14793 PS1='$ '
14794 PS2='> '
14795 PS4='+ '
14797 # NLS nuisances.
14798 LC_ALL=C
14799 export LC_ALL
14800 LANGUAGE=C
14801 export LANGUAGE
14803 # CDPATH.
14804 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14807 # as_fn_error ERROR [LINENO LOG_FD]
14808 # ---------------------------------
14809 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14810 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14811 # script with status $?, using 1 if that was 0.
14812 as_fn_error ()
14814 as_status=$?; test $as_status -eq 0 && as_status=1
14815 if test "$3"; then
14816 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14817 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14819 $as_echo "$as_me: error: $1" >&2
14820 as_fn_exit $as_status
14821 } # as_fn_error
14824 # as_fn_set_status STATUS
14825 # -----------------------
14826 # Set $? to STATUS, without forking.
14827 as_fn_set_status ()
14829 return $1
14830 } # as_fn_set_status
14832 # as_fn_exit STATUS
14833 # -----------------
14834 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14835 as_fn_exit ()
14837 set +e
14838 as_fn_set_status $1
14839 exit $1
14840 } # as_fn_exit
14842 # as_fn_unset VAR
14843 # ---------------
14844 # Portably unset VAR.
14845 as_fn_unset ()
14847 { eval $1=; unset $1;}
14849 as_unset=as_fn_unset
14850 # as_fn_append VAR VALUE
14851 # ----------------------
14852 # Append the text in VALUE to the end of the definition contained in VAR. Take
14853 # advantage of any shell optimizations that allow amortized linear growth over
14854 # repeated appends, instead of the typical quadratic growth present in naive
14855 # implementations.
14856 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14857 eval 'as_fn_append ()
14859 eval $1+=\$2
14861 else
14862 as_fn_append ()
14864 eval $1=\$$1\$2
14866 fi # as_fn_append
14868 # as_fn_arith ARG...
14869 # ------------------
14870 # Perform arithmetic evaluation on the ARGs, and store the result in the
14871 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14872 # must be portable across $(()) and expr.
14873 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14874 eval 'as_fn_arith ()
14876 as_val=$(( $* ))
14878 else
14879 as_fn_arith ()
14881 as_val=`expr "$@" || test $? -eq 1`
14883 fi # as_fn_arith
14886 if expr a : '\(a\)' >/dev/null 2>&1 &&
14887 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14888 as_expr=expr
14889 else
14890 as_expr=false
14893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14894 as_basename=basename
14895 else
14896 as_basename=false
14899 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14900 as_dirname=dirname
14901 else
14902 as_dirname=false
14905 as_me=`$as_basename -- "$0" ||
14906 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14907 X"$0" : 'X\(//\)$' \| \
14908 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14909 $as_echo X/"$0" |
14910 sed '/^.*\/\([^/][^/]*\)\/*$/{
14911 s//\1/
14914 /^X\/\(\/\/\)$/{
14915 s//\1/
14918 /^X\/\(\/\).*/{
14919 s//\1/
14922 s/.*/./; q'`
14924 # Avoid depending upon Character Ranges.
14925 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14926 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14927 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14928 as_cr_digits='0123456789'
14929 as_cr_alnum=$as_cr_Letters$as_cr_digits
14931 ECHO_C= ECHO_N= ECHO_T=
14932 case `echo -n x` in #(((((
14933 -n*)
14934 case `echo 'xy\c'` in
14935 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14936 xy) ECHO_C='\c';;
14937 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14938 ECHO_T=' ';;
14939 esac;;
14941 ECHO_N='-n';;
14942 esac
14944 rm -f conf$$ conf$$.exe conf$$.file
14945 if test -d conf$$.dir; then
14946 rm -f conf$$.dir/conf$$.file
14947 else
14948 rm -f conf$$.dir
14949 mkdir conf$$.dir 2>/dev/null
14951 if (echo >conf$$.file) 2>/dev/null; then
14952 if ln -s conf$$.file conf$$ 2>/dev/null; then
14953 as_ln_s='ln -s'
14954 # ... but there are two gotchas:
14955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14957 # In both cases, we have to default to `cp -p'.
14958 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14959 as_ln_s='cp -p'
14960 elif ln conf$$.file conf$$ 2>/dev/null; then
14961 as_ln_s=ln
14962 else
14963 as_ln_s='cp -p'
14965 else
14966 as_ln_s='cp -p'
14968 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14969 rmdir conf$$.dir 2>/dev/null
14972 # as_fn_mkdir_p
14973 # -------------
14974 # Create "$as_dir" as a directory, including parents if necessary.
14975 as_fn_mkdir_p ()
14978 case $as_dir in #(
14979 -*) as_dir=./$as_dir;;
14980 esac
14981 test -d "$as_dir" || eval $as_mkdir_p || {
14982 as_dirs=
14983 while :; do
14984 case $as_dir in #(
14985 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14986 *) as_qdir=$as_dir;;
14987 esac
14988 as_dirs="'$as_qdir' $as_dirs"
14989 as_dir=`$as_dirname -- "$as_dir" ||
14990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14991 X"$as_dir" : 'X\(//\)[^/]' \| \
14992 X"$as_dir" : 'X\(//\)$' \| \
14993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14994 $as_echo X"$as_dir" |
14995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14996 s//\1/
14999 /^X\(\/\/\)[^/].*/{
15000 s//\1/
15003 /^X\(\/\/\)$/{
15004 s//\1/
15007 /^X\(\/\).*/{
15008 s//\1/
15011 s/.*/./; q'`
15012 test -d "$as_dir" && break
15013 done
15014 test -z "$as_dirs" || eval "mkdir $as_dirs"
15015 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15018 } # as_fn_mkdir_p
15019 if mkdir -p . 2>/dev/null; then
15020 as_mkdir_p='mkdir -p "$as_dir"'
15021 else
15022 test -d ./-p && rmdir ./-p
15023 as_mkdir_p=false
15026 if test -x / >/dev/null 2>&1; then
15027 as_test_x='test -x'
15028 else
15029 if ls -dL / >/dev/null 2>&1; then
15030 as_ls_L_option=L
15031 else
15032 as_ls_L_option=
15034 as_test_x='
15035 eval sh -c '\''
15036 if test -d "$1"; then
15037 test -d "$1/.";
15038 else
15039 case $1 in #(
15040 -*)set "./$1";;
15041 esac;
15042 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15043 ???[sx]*):;;*)false;;esac;fi
15044 '\'' sh
15047 as_executable_p=$as_test_x
15049 # Sed expression to map a string onto a valid CPP name.
15050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15052 # Sed expression to map a string onto a valid variable name.
15053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15056 exec 6>&1
15057 ## ----------------------------------- ##
15058 ## Main body of $CONFIG_STATUS script. ##
15059 ## ----------------------------------- ##
15060 _ASEOF
15061 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15064 # Save the log message, to keep $0 and so on meaningful, and to
15065 # report actual input values of CONFIG_FILES etc. instead of their
15066 # values after options handling.
15067 ac_log="
15068 This file was extended by $as_me, which was
15069 generated by GNU Autoconf 2.64. Invocation command line was
15071 CONFIG_FILES = $CONFIG_FILES
15072 CONFIG_HEADERS = $CONFIG_HEADERS
15073 CONFIG_LINKS = $CONFIG_LINKS
15074 CONFIG_COMMANDS = $CONFIG_COMMANDS
15075 $ $0 $@
15077 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15080 _ACEOF
15082 case $ac_config_files in *"
15083 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15084 esac
15088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15089 # Files that config.status was made for.
15090 config_files="$ac_config_files"
15092 _ACEOF
15094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15095 ac_cs_usage="\
15096 \`$as_me' instantiates files and other configuration actions
15097 from templates according to the current configuration. Unless the files
15098 and actions are specified as TAGs, all are instantiated by default.
15100 Usage: $0 [OPTION]... [TAG]...
15102 -h, --help print this help, then exit
15103 -V, --version print version number and configuration settings, then exit
15104 -q, --quiet, --silent
15105 do not print progress messages
15106 -d, --debug don't remove temporary files
15107 --recheck update $as_me by reconfiguring in the same conditions
15108 --file=FILE[:TEMPLATE]
15109 instantiate the configuration file FILE
15111 Configuration files:
15112 $config_files
15114 Report bugs to the package provider."
15116 _ACEOF
15117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118 ac_cs_version="\\
15119 config.status
15120 configured by $0, generated by GNU Autoconf 2.64,
15121 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15123 Copyright (C) 2009 Free Software Foundation, Inc.
15124 This config.status script is free software; the Free Software Foundation
15125 gives unlimited permission to copy, distribute and modify it."
15127 ac_pwd='$ac_pwd'
15128 srcdir='$srcdir'
15129 INSTALL='$INSTALL'
15130 AWK='$AWK'
15131 test -n "\$AWK" || AWK=awk
15132 _ACEOF
15134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15135 # The default lists apply if the user does not specify any file.
15136 ac_need_defaults=:
15137 while test $# != 0
15139 case $1 in
15140 --*=*)
15141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15143 ac_shift=:
15146 ac_option=$1
15147 ac_optarg=$2
15148 ac_shift=shift
15150 esac
15152 case $ac_option in
15153 # Handling of the options.
15154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15155 ac_cs_recheck=: ;;
15156 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15157 $as_echo "$ac_cs_version"; exit ;;
15158 --debug | --debu | --deb | --de | --d | -d )
15159 debug=: ;;
15160 --file | --fil | --fi | --f )
15161 $ac_shift
15162 case $ac_optarg in
15163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15164 esac
15165 as_fn_append CONFIG_FILES " '$ac_optarg'"
15166 ac_need_defaults=false;;
15167 --he | --h | --help | --hel | -h )
15168 $as_echo "$ac_cs_usage"; exit ;;
15169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15170 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15171 ac_cs_silent=: ;;
15173 # This is an error.
15174 -*) as_fn_error "unrecognized option: \`$1'
15175 Try \`$0 --help' for more information." ;;
15177 *) as_fn_append ac_config_targets " $1"
15178 ac_need_defaults=false ;;
15180 esac
15181 shift
15182 done
15184 ac_configure_extra_args=
15186 if $ac_cs_silent; then
15187 exec 6>/dev/null
15188 ac_configure_extra_args="$ac_configure_extra_args --silent"
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 if \$ac_cs_recheck; then
15194 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15195 shift
15196 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15197 CONFIG_SHELL='$SHELL'
15198 export CONFIG_SHELL
15199 exec "\$@"
15202 _ACEOF
15203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15204 exec 5>>config.log
15206 echo
15207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15208 ## Running $as_me. ##
15209 _ASBOX
15210 $as_echo "$ac_log"
15211 } >&5
15213 _ACEOF
15214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15216 # INIT-COMMANDS
15218 extrasub_build="$extrasub_build"
15219 extrasub_host="$extrasub_host"
15220 extrasub_target="$extrasub_target"
15222 _ACEOF
15224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15226 # Handling of arguments.
15227 for ac_config_target in $ac_config_targets
15229 case $ac_config_target in
15230 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15232 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15233 esac
15234 done
15237 # If the user did not use the arguments to specify the items to instantiate,
15238 # then the envvar interface is used. Set only those that are not.
15239 # We use the long form for the default assignment because of an extremely
15240 # bizarre bug on SunOS 4.1.3.
15241 if $ac_need_defaults; then
15242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15245 # Have a temporary directory for convenience. Make it in the build tree
15246 # simply because there is no reason against having it here, and in addition,
15247 # creating and moving files from /tmp can sometimes cause problems.
15248 # Hook for its removal unless debugging.
15249 # Note that there is a small window in which the directory will not be cleaned:
15250 # after its creation but before its name has been assigned to `$tmp'.
15251 $debug ||
15253 tmp=
15254 trap 'exit_status=$?
15255 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15257 trap 'as_fn_exit 1' 1 2 13 15
15259 # Create a (secure) tmp directory for tmp files.
15262 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15263 test -n "$tmp" && test -d "$tmp"
15264 } ||
15266 tmp=./conf$$-$RANDOM
15267 (umask 077 && mkdir "$tmp")
15268 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15270 # Set up the scripts for CONFIG_FILES section.
15271 # No need to generate them if there are no CONFIG_FILES.
15272 # This happens for instance with `./config.status config.h'.
15273 if test -n "$CONFIG_FILES"; then
15275 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15276 ac_cs_awk_getline=:
15277 ac_cs_awk_pipe_init=
15278 ac_cs_awk_read_file='
15279 while ((getline aline < (F[key])) > 0)
15280 print(aline)
15281 close(F[key])'
15282 ac_cs_awk_pipe_fini=
15283 else
15284 ac_cs_awk_getline=false
15285 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15286 ac_cs_awk_read_file='
15287 print "|#_!!_#|"
15288 print "cat " F[key] " &&"
15289 '$ac_cs_awk_pipe_init
15290 # The final `:' finishes the AND list.
15291 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15293 ac_cr=`echo X | tr X '\015'`
15294 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15295 # But we know of no other shell where ac_cr would be empty at this
15296 # point, so we can use a bashism as a fallback.
15297 if test "x$ac_cr" = x; then
15298 eval ac_cr=\$\'\\r\'
15300 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15301 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15302 ac_cs_awk_cr='\r'
15303 else
15304 ac_cs_awk_cr=$ac_cr
15307 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15308 _ACEOF
15310 # Create commands to substitute file output variables.
15312 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15313 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15314 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15315 echo "_ACAWK" &&
15316 echo "_ACEOF"
15317 } >conf$$files.sh &&
15318 . ./conf$$files.sh ||
15319 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15320 rm -f conf$$files.sh
15323 echo "cat >conf$$subs.awk <<_ACEOF" &&
15324 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15325 echo "_ACEOF"
15326 } >conf$$subs.sh ||
15327 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15328 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15329 ac_delim='%!_!# '
15330 for ac_last_try in false false false false false :; do
15331 . ./conf$$subs.sh ||
15332 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15334 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15335 if test $ac_delim_n = $ac_delim_num; then
15336 break
15337 elif $ac_last_try; then
15338 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15339 else
15340 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15342 done
15343 rm -f conf$$subs.sh
15345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15346 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15347 _ACEOF
15348 sed -n '
15350 s/^/S["/; s/!.*/"]=/
15353 s/^[^!]*!//
15354 :repl
15355 t repl
15356 s/'"$ac_delim"'$//
15357 t delim
15360 s/\(.\{148\}\).*/\1/
15361 t more1
15362 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15365 b repl
15366 :more1
15367 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15370 s/.\{148\}//
15371 t nl
15372 :delim
15374 s/\(.\{148\}\).*/\1/
15375 t more2
15376 s/["\\]/\\&/g; s/^/"/; s/$/"/
15379 :more2
15380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15383 s/.\{148\}//
15384 t delim
15385 ' <conf$$subs.awk | sed '
15386 /^[^""]/{
15388 s/\n//
15390 ' >>$CONFIG_STATUS || ac_write_fail=1
15391 rm -f conf$$subs.awk
15392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15393 _ACAWK
15394 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15395 for (key in S) S_is_set[key] = 1
15396 FS = "\a"
15397 \$ac_cs_awk_pipe_init
15400 line = $ 0
15401 nfields = split(line, field, "@")
15402 substed = 0
15403 len = length(field[1])
15404 for (i = 2; i < nfields; i++) {
15405 key = field[i]
15406 keylen = length(key)
15407 if (S_is_set[key]) {
15408 value = S[key]
15409 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15410 len += length(value) + length(field[++i])
15411 substed = 1
15412 } else
15413 len += 1 + keylen
15415 if (nfields == 3 && !substed) {
15416 key = field[2]
15417 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15418 \$ac_cs_awk_read_file
15419 next
15422 print line
15424 \$ac_cs_awk_pipe_fini
15425 _ACAWK
15426 _ACEOF
15427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15428 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15429 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15430 else
15432 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15433 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15434 _ACEOF
15436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15438 # trailing colons and then remove the whole line if VPATH becomes empty
15439 # (actually we leave an empty line to preserve line numbers).
15440 if test "x$srcdir" = x.; then
15441 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15442 s/:*\$(srcdir):*/:/
15443 s/:*\${srcdir}:*/:/
15444 s/:*@srcdir@:*/:/
15445 s/^\([^=]*=[ ]*\):*/\1/
15446 s/:*$//
15447 s/^[^=]*=[ ]*$//
15451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452 fi # test -n "$CONFIG_FILES"
15455 eval set X " :F $CONFIG_FILES "
15456 shift
15457 for ac_tag
15459 case $ac_tag in
15460 :[FHLC]) ac_mode=$ac_tag; continue;;
15461 esac
15462 case $ac_mode$ac_tag in
15463 :[FHL]*:*);;
15464 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15465 :[FH]-) ac_tag=-:-;;
15466 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15467 esac
15468 ac_save_IFS=$IFS
15469 IFS=:
15470 set x $ac_tag
15471 IFS=$ac_save_IFS
15472 shift
15473 ac_file=$1
15474 shift
15476 case $ac_mode in
15477 :L) ac_source=$1;;
15478 :[FH])
15479 ac_file_inputs=
15480 for ac_f
15482 case $ac_f in
15483 -) ac_f="$tmp/stdin";;
15484 *) # Look for the file first in the build tree, then in the source tree
15485 # (if the path is not absolute). The absolute path cannot be DOS-style,
15486 # because $ac_f cannot contain `:'.
15487 test -f "$ac_f" ||
15488 case $ac_f in
15489 [\\/$]*) false;;
15490 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15491 esac ||
15492 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15493 esac
15494 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15495 as_fn_append ac_file_inputs " '$ac_f'"
15496 done
15498 # Let's still pretend it is `configure' which instantiates (i.e., don't
15499 # use $as_me), people would be surprised to read:
15500 # /* config.h. Generated by config.status. */
15501 configure_input='Generated from '`
15502 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15503 `' by configure.'
15504 if test x"$ac_file" != x-; then
15505 configure_input="$ac_file. $configure_input"
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15507 $as_echo "$as_me: creating $ac_file" >&6;}
15509 # Neutralize special characters interpreted by sed in replacement strings.
15510 case $configure_input in #(
15511 *\&* | *\|* | *\\* )
15512 ac_sed_conf_input=`$as_echo "$configure_input" |
15513 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15514 *) ac_sed_conf_input=$configure_input;;
15515 esac
15517 case $ac_tag in
15518 *:-:* | *:-) cat >"$tmp/stdin" \
15519 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15520 esac
15522 esac
15524 ac_dir=`$as_dirname -- "$ac_file" ||
15525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15526 X"$ac_file" : 'X\(//\)[^/]' \| \
15527 X"$ac_file" : 'X\(//\)$' \| \
15528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15529 $as_echo X"$ac_file" |
15530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15531 s//\1/
15534 /^X\(\/\/\)[^/].*/{
15535 s//\1/
15538 /^X\(\/\/\)$/{
15539 s//\1/
15542 /^X\(\/\).*/{
15543 s//\1/
15546 s/.*/./; q'`
15547 as_dir="$ac_dir"; as_fn_mkdir_p
15548 ac_builddir=.
15550 case "$ac_dir" in
15551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15554 # A ".." for each directory in $ac_dir_suffix.
15555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15556 case $ac_top_builddir_sub in
15557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15559 esac ;;
15560 esac
15561 ac_abs_top_builddir=$ac_pwd
15562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15563 # for backward compatibility:
15564 ac_top_builddir=$ac_top_build_prefix
15566 case $srcdir in
15567 .) # We are building in place.
15568 ac_srcdir=.
15569 ac_top_srcdir=$ac_top_builddir_sub
15570 ac_abs_top_srcdir=$ac_pwd ;;
15571 [\\/]* | ?:[\\/]* ) # Absolute name.
15572 ac_srcdir=$srcdir$ac_dir_suffix;
15573 ac_top_srcdir=$srcdir
15574 ac_abs_top_srcdir=$srcdir ;;
15575 *) # Relative name.
15576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15577 ac_top_srcdir=$ac_top_build_prefix$srcdir
15578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15579 esac
15580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15583 case $ac_mode in
15586 # CONFIG_FILE
15589 case $INSTALL in
15590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15592 esac
15593 _ACEOF
15595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15596 # If the template does not know about datarootdir, expand it.
15597 # FIXME: This hack should be removed a few years after 2.60.
15598 ac_datarootdir_hack=; ac_datarootdir_seen=
15599 ac_sed_dataroot='
15600 /datarootdir/ {
15604 /@datadir@/p
15605 /@docdir@/p
15606 /@infodir@/p
15607 /@localedir@/p
15608 /@mandir@/p'
15609 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15610 *datarootdir*) ac_datarootdir_seen=yes;;
15611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15613 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15614 _ACEOF
15615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15616 ac_datarootdir_hack='
15617 s&@datadir@&$datadir&g
15618 s&@docdir@&$docdir&g
15619 s&@infodir@&$infodir&g
15620 s&@localedir@&$localedir&g
15621 s&@mandir@&$mandir&g
15622 s&\\\${datarootdir}&$datarootdir&g' ;;
15623 esac
15624 _ACEOF
15626 # Neutralize VPATH when `$srcdir' = `.'.
15627 # Shell code in configure.ac might set extrasub.
15628 # FIXME: do we really want to maintain this feature?
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630 ac_sed_extra="$ac_vpsub
15631 $extrasub
15632 _ACEOF
15633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15636 s|@configure_input@|$ac_sed_conf_input|;t t
15637 s&@top_builddir@&$ac_top_builddir_sub&;t t
15638 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15639 s&@srcdir@&$ac_srcdir&;t t
15640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15641 s&@top_srcdir@&$ac_top_srcdir&;t t
15642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15643 s&@builddir@&$ac_builddir&;t t
15644 s&@abs_builddir@&$ac_abs_builddir&;t t
15645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15646 s&@INSTALL@&$ac_INSTALL&;t t
15647 $ac_datarootdir_hack
15649 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15650 if $ac_cs_awk_getline; then
15651 $AWK -f "$tmp/subs.awk"
15652 else
15653 $AWK -f "$tmp/subs.awk" | $SHELL
15654 fi >$tmp/out \
15655 || as_fn_error "could not create $ac_file" "$LINENO" 5
15657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15661 which seems to be undefined. Please make sure it is defined." >&5
15662 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15663 which seems to be undefined. Please make sure it is defined." >&2;}
15665 rm -f "$tmp/stdin"
15666 case $ac_file in
15667 -) cat "$tmp/out" && rm -f "$tmp/out";;
15668 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15669 esac \
15670 || as_fn_error "could not create $ac_file" "$LINENO" 5
15675 esac
15678 case $ac_file$ac_mode in
15679 "Makefile":F) sed "$extrasub_build" Makefile |
15680 sed "$extrasub_host" |
15681 sed "$extrasub_target" > mf$$
15682 mv -f mf$$ Makefile ;;
15684 esac
15685 done # for ac_tag
15688 as_fn_exit 0
15689 _ACEOF
15690 ac_clean_files=$ac_clean_files_save
15692 test $ac_write_fail = 0 ||
15693 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15696 # configure is writing to config.log, and then calls config.status.
15697 # config.status does its own redirection, appending to config.log.
15698 # Unfortunately, on DOS this fails, as config.log is still kept open
15699 # by configure, so config.status won't be able to write to it; its
15700 # output is simply discarded. So we exec the FD to /dev/null,
15701 # effectively closing config.log, so it can be properly (re)opened and
15702 # appended to by config.status. When coming back to configure, we
15703 # need to make the FD available again.
15704 if test "$no_create" != yes; then
15705 ac_cs_success=:
15706 ac_config_status_args=
15707 test "$silent" = yes &&
15708 ac_config_status_args="$ac_config_status_args --quiet"
15709 exec 5>/dev/null
15710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15711 exec 5>>config.log
15712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15713 # would make configure fail if this is the last instruction.
15714 $ac_cs_success || as_fn_exit $?
15716 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15718 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}