OpenACC loop construct: predetermined data attributes for loop variables.
[official-gcc.git] / configure
blob96ee349d99f67aa88089df6353fda2a20237ecf4
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCJ_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 GCJ_FOR_BUILD
619 DLLTOOL_FOR_BUILD
620 CXX_FOR_BUILD
621 CXXFLAGS_FOR_BUILD
622 CFLAGS_FOR_BUILD
623 CC_FOR_BUILD
624 AS_FOR_BUILD
625 AR_FOR_BUILD
626 target_configdirs
627 configdirs
628 build_configdirs
629 INSTALL_GDB_TK
630 GDB_TK
631 CONFIGURE_GDB_TK
632 build_tooldir
633 tooldir
634 GCC_SHLIB_SUBDIR
635 RPATH_ENVVAR
636 target_configargs
637 host_configargs
638 build_configargs
639 BUILD_CONFIG
640 LDFLAGS_FOR_TARGET
641 CXXFLAGS_FOR_TARGET
642 CFLAGS_FOR_TARGET
643 DEBUG_PREFIX_CFLAGS_FOR_TARGET
644 SYSROOT_CFLAGS_FOR_TARGET
645 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 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_offload_targets
751 enable_gold
752 enable_ld
753 enable_libquadmath
754 enable_libquadmath_support
755 enable_libada
756 enable_libssp
757 enable_libstdcxx
758 enable_static_libjava
759 enable_bootstrap
760 with_mpc
761 with_mpc_include
762 with_mpc_lib
763 with_mpfr_dir
764 with_mpfr
765 with_mpfr_include
766 with_mpfr_lib
767 with_gmp_dir
768 with_gmp
769 with_gmp_include
770 with_gmp_lib
771 with_host_libstdcxx
772 with_stage1_libs
773 with_stage1_ldflags
774 with_boot_libs
775 with_boot_ldflags
776 with_cloog
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 with_cloog_include
782 with_cloog_lib
783 enable_cloog_version_check
784 enable_lto
785 enable_linker_plugin_configure_flags
786 enable_linker_plugin_flags
787 enable_stage1_languages
788 enable_objc_gc
789 with_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
809 CXXFLAGS
811 build_configargs
812 host_configargs
813 target_configargs
816 DLLTOOL
818 LIPO
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GCJ_FOR_TARGET
831 GFORTRAN_FOR_TARGET
832 GOC_FOR_TARGET
833 AR_FOR_TARGET
834 AS_FOR_TARGET
835 DLLTOOL_FOR_TARGET
836 LD_FOR_TARGET
837 LIPO_FOR_TARGET
838 NM_FOR_TARGET
839 OBJDUMP_FOR_TARGET
840 RANLIB_FOR_TARGET
841 READELF_FOR_TARGET
842 STRIP_FOR_TARGET
843 WINDRES_FOR_TARGET
844 WINDMC_FOR_TARGET'
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 esac
1252 done
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1338 /^X\(\/\/\)$/{
1339 s//\1/
1342 /^X\(\/\).*/{
1343 s//\1/
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1351 else
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1376 esac
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1448 cat <<\_ACEOF
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1464 cat <<\_ACEOF
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-offload-targets=LIST
1471 enable offloading to devices from LIST
1472 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1473 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1474 --disable-libquadmath do not build libquadmath directory
1475 --disable-libquadmath-support
1476 disable libquadmath support for Fortran
1477 --enable-libada build libada directory
1478 --enable-libssp build libssp directory
1479 --disable-libstdcxx do not build libstdc++-v3 directory
1480 --enable-static-libjava[=ARG]
1481 build static libjava [default=no]
1482 --enable-bootstrap enable bootstrapping [yes if native build]
1483 --disable-isl-version-check
1484 disable check for ISL version
1485 --disable-cloog-version-check
1486 disable check for CLooG version
1487 --enable-lto enable link time optimization support
1488 --enable-linker-plugin-configure-flags=FLAGS
1489 additional flags for configuring linker plugins
1490 [none]
1491 --enable-linker-plugin-flags=FLAGS
1492 additional flags for configuring and building linker
1493 plugins [none]
1494 --enable-stage1-languages[=all]
1495 choose additional languages to build during stage1.
1496 Mostly useful for compiler development
1497 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1498 Objective-C runtime
1499 --enable-vtable-verify Enable vtable verification feature
1500 --enable-serial-[{host,target,build}-]configure
1501 force sequential configuration of sub-packages for
1502 the host, target or build machine, or all
1503 sub-packages
1504 --enable-maintainer-mode
1505 enable make rules and dependencies not useful (and
1506 sometimes confusing) to the casual installer
1507 --enable-stage1-checking[=all]
1508 choose additional checking for stage1 of the
1509 compiler
1510 --enable-werror enable -Werror in bootstrap stage2 and later
1511 --enable-host-shared build host code as shared libraries
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-build-libsubdir=DIR Directory where to find libraries for build system
1517 --with-mpc=PATH specify prefix directory for installed MPC package.
1518 Equivalent to --with-mpc-include=PATH/include plus
1519 --with-mpc-lib=PATH/lib
1520 --with-mpc-include=PATH specify directory for installed MPC include files
1521 --with-mpc-lib=PATH specify directory for the installed MPC library
1522 --with-mpfr-dir=PATH this option has been REMOVED
1523 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1524 Equivalent to --with-mpfr-include=PATH/include plus
1525 --with-mpfr-lib=PATH/lib
1526 --with-mpfr-include=PATH
1527 specify directory for installed MPFR include files
1528 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1529 --with-gmp-dir=PATH this option has been REMOVED
1530 --with-gmp=PATH specify prefix directory for the installed GMP
1531 package. Equivalent to
1532 --with-gmp-include=PATH/include plus
1533 --with-gmp-lib=PATH/lib
1534 --with-gmp-include=PATH specify directory for installed GMP include files
1535 --with-gmp-lib=PATH specify directory for the installed GMP library
1536 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1537 linking with PPL
1538 --with-stage1-libs=LIBS libraries for stage1
1539 --with-stage1-ldflags=FLAGS
1540 linker flags for stage1
1541 --with-boot-libs=LIBS libraries for stage2 and later
1542 --with-boot-ldflags=FLAGS
1543 linker flags for stage2 and later
1544 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1545 package. Equivalent to
1546 --with-cloog-include=PATH/include plus
1547 --with-cloog-lib=PATH/lib
1548 --with-isl=PATH Specify prefix directory for the installed ISL
1549 package. Equivalent to
1550 --with-isl-include=PATH/include plus
1551 --with-isl-lib=PATH/lib
1552 --with-isl-include=PATH Specify directory for installed ISL include files
1553 --with-isl-lib=PATH Specify the directory for the installed ISL library
1554 --with-cloog-include=PATH
1555 Specify directory for installed CLooG include files
1556 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1557 library
1558 --with-build-sysroot=SYSROOT
1559 use sysroot as the system root during the build
1560 --with-debug-prefix-map='A=B C=D ...'
1561 map A to B, C to D ... in debug information
1562 --with-build-config='NAME NAME2...'
1563 use config/NAME.mk build configuration
1564 --with-build-time-tools=PATH
1565 use given path to find target tools during the build
1567 Some influential environment variables:
1568 CC C compiler command
1569 CFLAGS C compiler flags
1570 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1571 nonstandard directory <lib dir>
1572 LIBS libraries to pass to the linker, e.g. -l<library>
1573 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1574 you have headers in a nonstandard directory <include dir>
1575 CXX C++ compiler command
1576 CXXFLAGS C++ compiler flags
1577 build_configargs
1578 additional configure arguments for build directories
1579 host_configargs
1580 additional configure arguments for host directories
1581 target_configargs
1582 additional configure arguments for target directories
1583 AR AR for the host
1584 AS AS for the host
1585 DLLTOOL DLLTOOL for the host
1586 LD LD for the host
1587 LIPO LIPO for the host
1588 NM NM for the host
1589 RANLIB RANLIB for the host
1590 STRIP STRIP for the host
1591 WINDRES WINDRES for the host
1592 WINDMC WINDMC for the host
1593 OBJCOPY OBJCOPY for the host
1594 OBJDUMP OBJDUMP for the host
1595 READELF READELF for the host
1596 CC_FOR_TARGET
1597 CC for the target
1598 CXX_FOR_TARGET
1599 CXX for the target
1600 GCC_FOR_TARGET
1601 GCC for the target
1602 GCJ_FOR_TARGET
1603 GCJ for the target
1604 GFORTRAN_FOR_TARGET
1605 GFORTRAN for the target
1606 GOC_FOR_TARGET
1607 GOC for the target
1608 AR_FOR_TARGET
1609 AR for the target
1610 AS_FOR_TARGET
1611 AS for the target
1612 DLLTOOL_FOR_TARGET
1613 DLLTOOL for the target
1614 LD_FOR_TARGET
1615 LD for the target
1616 LIPO_FOR_TARGET
1617 LIPO for the target
1618 NM_FOR_TARGET
1619 NM for the target
1620 OBJDUMP_FOR_TARGET
1621 OBJDUMP for the target
1622 RANLIB_FOR_TARGET
1623 RANLIB for the target
1624 READELF_FOR_TARGET
1625 READELF for the target
1626 STRIP_FOR_TARGET
1627 STRIP for the target
1628 WINDRES_FOR_TARGET
1629 WINDRES for the target
1630 WINDMC_FOR_TARGET
1631 WINDMC for the target
1633 Use these variables to override the choices made by `configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1636 Report bugs to the package provider.
1637 _ACEOF
1638 ac_status=$?
1641 if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 continue
1647 ac_builddir=.
1649 case "$ac_dir" in
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1653 # A ".." for each directory in $ac_dir_suffix.
1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 esac ;;
1659 esac
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1665 case $srcdir in
1666 .) # We are building in place.
1667 ac_srcdir=.
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
1671 ac_srcdir=$srcdir$ac_dir_suffix;
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1674 *) # Relative name.
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 esac
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for guested configure.
1683 if test -f "$ac_srcdir/configure.gnu"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686 elif test -f "$ac_srcdir/configure"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure" --help=recursive
1689 else
1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 fi || ac_status=$?
1692 cd "$ac_pwd" || { ac_status=$?; break; }
1693 done
1696 test -n "$ac_init_help" && exit $ac_status
1697 if $ac_init_version; then
1698 cat <<\_ACEOF
1699 configure
1700 generated by GNU Autoconf 2.64
1702 Copyright (C) 2009 Free Software Foundation, Inc.
1703 This configure script is free software; the Free Software Foundation
1704 gives unlimited permission to copy, distribute and modify it.
1705 _ACEOF
1706 exit
1709 ## ------------------------ ##
1710 ## Autoconf initialization. ##
1711 ## ------------------------ ##
1713 # ac_fn_c_try_compile LINENO
1714 # --------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=1
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1749 } # ac_fn_c_try_compile
1751 # ac_fn_cxx_try_compile LINENO
1752 # ----------------------------
1753 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_cxx_try_compile ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext
1758 if { { ac_try="$ac_compile"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_compile") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_cxx_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest.$ac_objext; then :
1777 ac_retval=0
1778 else
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1782 ac_retval=1
1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 return $ac_retval
1787 } # ac_fn_cxx_try_compile
1789 # ac_fn_cxx_try_link LINENO
1790 # -------------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_cxx_try_link ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext conftest$ac_exeext
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_cxx_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest$ac_exeext && {
1815 test "$cross_compiling" = yes ||
1816 $as_test_x conftest$ac_exeext
1817 }; then :
1818 ac_retval=0
1819 else
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1823 ac_retval=1
1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827 # interfere with the next link command; also delete a directory that is
1828 # left behind by Apple's compiler. We do this before executing the actions.
1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831 return $ac_retval
1833 } # ac_fn_cxx_try_link
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_link ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 $as_test_x conftest$ac_exeext
1863 }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 ac_retval=1
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 return $ac_retval
1879 } # ac_fn_c_try_link
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1884 It was created by $as_me, which was
1885 generated by GNU Autoconf 2.64. Invocation command line was
1887 $ $0 $@
1889 _ACEOF
1890 exec 5>>config.log
1892 cat <<_ASUNAME
1893 ## --------- ##
1894 ## Platform. ##
1895 ## --------- ##
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1906 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1907 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1910 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1911 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1912 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914 _ASUNAME
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1919 IFS=$as_save_IFS
1920 test -z "$as_dir" && as_dir=.
1921 $as_echo "PATH: $as_dir"
1922 done
1923 IFS=$as_save_IFS
1925 } >&5
1927 cat >&5 <<_ACEOF
1930 ## ----------- ##
1931 ## Core tests. ##
1932 ## ----------- ##
1934 _ACEOF
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1942 ac_configure_args=
1943 ac_configure_args0=
1944 ac_configure_args1=
1945 ac_must_keep_next=false
1946 for ac_pass in 1 2
1948 for ac_arg
1950 case $ac_arg in
1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953 | -silent | --silent | --silen | --sile | --sil)
1954 continue ;;
1955 *\'*)
1956 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 esac
1958 case $ac_pass in
1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1961 as_fn_append ac_configure_args1 " '$ac_arg'"
1962 if test $ac_must_keep_next = true; then
1963 ac_must_keep_next=false # Got value, back to normal.
1964 else
1965 case $ac_arg in
1966 *=* | --config-cache | -C | -disable-* | --disable-* \
1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969 | -with-* | --with-* | -without-* | --without-* | --x)
1970 case "$ac_configure_args0 " in
1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972 esac
1974 -* ) ac_must_keep_next=true ;;
1975 esac
1977 as_fn_append ac_configure_args " '$ac_arg'"
1979 esac
1980 done
1981 done
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log. We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991 # Save into config.log some information that might help in debugging.
1993 echo
1995 cat <<\_ASBOX
1996 ## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##
1999 _ASBOX
2000 echo
2001 # The following way of writing the cache mishandles newlines in values,
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in #(
2006 *${as_nl}*)
2007 case $ac_var in #(
2008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 esac
2011 case $ac_var in #(
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2015 esac ;;
2016 esac
2017 done
2018 (set) 2>&1 |
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
2021 sed -n \
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 ;; #(
2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 esac |
2029 sort
2031 echo
2033 cat <<\_ASBOX
2034 ## ----------------- ##
2035 ## Output variables. ##
2036 ## ----------------- ##
2037 _ASBOX
2038 echo
2039 for ac_var in $ac_subst_vars
2041 eval ac_val=\$$ac_var
2042 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2046 done | sort
2047 echo
2049 if test -n "$ac_subst_files"; then
2050 cat <<\_ASBOX
2051 ## ------------------- ##
2052 ## File substitutions. ##
2053 ## ------------------- ##
2054 _ASBOX
2055 echo
2056 for ac_var in $ac_subst_files
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2067 if test -s confdefs.h; then
2068 cat <<\_ASBOX
2069 ## ----------- ##
2070 ## confdefs.h. ##
2071 ## ----------- ##
2072 _ASBOX
2073 echo
2074 cat confdefs.h
2075 echo
2077 test "$ac_signal" != 0 &&
2078 $as_echo "$as_me: caught signal $ac_signal"
2079 $as_echo "$as_me: exit $exit_status"
2080 } >&5
2081 rm -f core *.core core.conftest.* &&
2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2083 exit $exit_status
2085 for ac_signal in 1 2 13 15; do
2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2087 done
2088 ac_signal=0
2090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091 rm -f -r conftest* confdefs.h
2093 $as_echo "/* confdefs.h */" > confdefs.h
2095 # Predefined preprocessor variables.
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_NAME "$PACKAGE_NAME"
2099 _ACEOF
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2103 _ACEOF
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2107 _ACEOF
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_STRING "$PACKAGE_STRING"
2111 _ACEOF
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2115 _ACEOF
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_URL "$PACKAGE_URL"
2119 _ACEOF
2122 # Let the site file select an alternate cache file if it wants to.
2123 # Prefer an explicitly selected file to automatically selected ones.
2124 ac_site_file1=NONE
2125 ac_site_file2=NONE
2126 if test -n "$CONFIG_SITE"; then
2127 ac_site_file1=$CONFIG_SITE
2128 elif test "x$prefix" != xNONE; then
2129 ac_site_file1=$prefix/share/config.site
2130 ac_site_file2=$prefix/etc/config.site
2131 else
2132 ac_site_file1=$ac_default_prefix/share/config.site
2133 ac_site_file2=$ac_default_prefix/etc/config.site
2135 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137 test "x$ac_site_file" = xNONE && continue
2138 if test -r "$ac_site_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2140 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2141 sed 's/^/| /' "$ac_site_file" >&5
2142 . "$ac_site_file"
2144 done
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special
2148 # files actually), so we avoid doing that.
2149 if test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 case $cache_file in
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2155 esac
2157 else
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 >$cache_file
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2172 set,)
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2176 ,set)
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2180 ,);;
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2190 else
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2199 fi;;
2200 esac
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2203 case $ac_new_val in
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2206 esac
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 esac
2212 done
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238 progname=$0
2239 # if PWD already has a value, it is probably wrong.
2240 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2242 # Export original configure arguments for use by sub-configures.
2243 # Quote arguments with shell meta charatcers.
2244 TOPLEVEL_CONFIGURE_ARGUMENTS=
2245 set -- "$progname" "$@"
2246 for ac_arg
2248 case "$ac_arg" in
2249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2251 # if the argument is of the form -foo=baz, quote the baz part only
2252 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2253 *) ;;
2254 esac
2255 # Add the quoted argument to the list.
2256 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2257 done
2258 if test "$silent" = yes; then
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2261 # Remove the initial space we just introduced and, as these will be
2262 # expanded by make, quote '$'.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2266 # Find the build, host, and target systems.
2267 ac_aux_dir=
2268 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2269 for ac_t in install-sh install.sh shtool; do
2270 if test -f "$ac_dir/$ac_t"; then
2271 ac_aux_dir=$ac_dir
2272 ac_install_sh="$ac_aux_dir/$ac_t -c"
2273 break 2
2275 done
2276 done
2277 if test -z "$ac_aux_dir"; then
2278 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2281 # These three variables are undocumented and unsupported,
2282 # and are intended to be withdrawn in a future Autoconf release.
2283 # They can cause serious problems if a builder's source tree is in a directory
2284 # whose full name contains unusual characters.
2285 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2286 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2287 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290 # Make sure we can run config.sub.
2291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2292 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2295 $as_echo_n "checking build system type... " >&6; }
2296 if test "${ac_cv_build+set}" = set; then :
2297 $as_echo_n "(cached) " >&6
2298 else
2299 ac_build_alias=$build_alias
2300 test "x$ac_build_alias" = x &&
2301 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2302 test "x$ac_build_alias" = x &&
2303 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2305 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2309 $as_echo "$ac_cv_build" >&6; }
2310 case $ac_cv_build in
2311 *-*-*) ;;
2312 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2313 esac
2314 build=$ac_cv_build
2315 ac_save_IFS=$IFS; IFS='-'
2316 set x $ac_cv_build
2317 shift
2318 build_cpu=$1
2319 build_vendor=$2
2320 shift; shift
2321 # Remember, the first character of IFS is used to create $*,
2322 # except with old shells:
2323 build_os=$*
2324 IFS=$ac_save_IFS
2325 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2328 case ${build_alias} in
2329 "") build_noncanonical=${build} ;;
2330 *) build_noncanonical=${build_alias} ;;
2331 esac
2335 case ${host_alias} in
2336 "") host_noncanonical=${build_noncanonical} ;;
2337 *) host_noncanonical=${host_alias} ;;
2338 esac
2342 case ${target_alias} in
2343 "") target_noncanonical=${host_noncanonical} ;;
2344 *) target_noncanonical=${target_alias} ;;
2345 esac
2350 test "$host_noncanonical" = "$target_noncanonical" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_transform_name=s,y,y,
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2356 $as_echo_n "checking host system type... " >&6; }
2357 if test "${ac_cv_host+set}" = set; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test "x$host_alias" = x; then
2361 ac_cv_host=$ac_cv_build
2362 else
2363 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2364 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2369 $as_echo "$ac_cv_host" >&6; }
2370 case $ac_cv_host in
2371 *-*-*) ;;
2372 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2373 esac
2374 host=$ac_cv_host
2375 ac_save_IFS=$IFS; IFS='-'
2376 set x $ac_cv_host
2377 shift
2378 host_cpu=$1
2379 host_vendor=$2
2380 shift; shift
2381 # Remember, the first character of IFS is used to create $*,
2382 # except with old shells:
2383 host_os=$*
2384 IFS=$ac_save_IFS
2385 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2389 $as_echo_n "checking target system type... " >&6; }
2390 if test "${ac_cv_target+set}" = set; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 if test "x$target_alias" = x; then
2394 ac_cv_target=$ac_cv_host
2395 else
2396 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2397 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2402 $as_echo "$ac_cv_target" >&6; }
2403 case $ac_cv_target in
2404 *-*-*) ;;
2405 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2406 esac
2407 target=$ac_cv_target
2408 ac_save_IFS=$IFS; IFS='-'
2409 set x $ac_cv_target
2410 shift
2411 target_cpu=$1
2412 target_vendor=$2
2413 shift; shift
2414 # Remember, the first character of IFS is used to create $*,
2415 # except with old shells:
2416 target_os=$*
2417 IFS=$ac_save_IFS
2418 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2421 # The aliases save the names the user supplied, while $host etc.
2422 # will get canonicalized.
2423 test -n "$target_alias" &&
2424 test "$program_prefix$program_suffix$program_transform_name" = \
2425 NONENONEs,x,x, &&
2426 program_prefix=${target_alias}-
2428 test "$program_prefix" != NONE &&
2429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2430 # Use a double $ so make ignores it.
2431 test "$program_suffix" != NONE &&
2432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2433 # Double any \ or $.
2434 # By default was `s,x,x', remove it if useless.
2435 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2436 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2440 # Get 'install' or 'install-sh' and its variants.
2441 # Find a good install program. We prefer a C program (faster),
2442 # so one script is as good as another. But avoid the broken or
2443 # incompatible versions:
2444 # SysV /etc/install, /usr/sbin/install
2445 # SunOS /usr/etc/install
2446 # IRIX /sbin/install
2447 # AIX /bin/install
2448 # AmigaOS /C/install, which installs bootblocks on floppy discs
2449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2452 # OS/2's system install, which has a completely different semantic
2453 # ./install, which can be erroneously created by make from ./install.sh.
2454 # Reject install programs that cannot install multiple files.
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2456 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2457 if test -z "$INSTALL"; then
2458 if test "${ac_cv_path_install+set}" = set; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
2466 # Account for people who put trailing slashes in PATH elements.
2467 case $as_dir/ in #((
2468 ./ | .// | /[cC]/* | \
2469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2470 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2471 /usr/ucb/* ) ;;
2473 # OSF1 and SCO ODT 3.0 have their own names for install.
2474 # Don't use installbsd from OSF since it installs stuff as root
2475 # by default.
2476 for ac_prog in ginstall scoinst install; do
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2479 if test $ac_prog = install &&
2480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481 # AIX install. It has an incompatible calling convention.
2483 elif test $ac_prog = install &&
2484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2485 # program-specific install script used by HP pwplus--don't use.
2487 else
2488 rm -rf conftest.one conftest.two conftest.dir
2489 echo one > conftest.one
2490 echo two > conftest.two
2491 mkdir conftest.dir
2492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2493 test -s conftest.one && test -s conftest.two &&
2494 test -s conftest.dir/conftest.one &&
2495 test -s conftest.dir/conftest.two
2496 then
2497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2498 break 3
2502 done
2503 done
2505 esac
2507 done
2508 IFS=$as_save_IFS
2510 rm -rf conftest.one conftest.two conftest.dir
2513 if test "${ac_cv_path_install+set}" = set; then
2514 INSTALL=$ac_cv_path_install
2515 else
2516 # As a last resort, use the slow shell script. Don't cache a
2517 # value for INSTALL within a source directory, because that will
2518 # break other packages using the cache if that directory is
2519 # removed, or if the value is a relative name.
2520 INSTALL=$ac_install_sh
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2524 $as_echo "$INSTALL" >&6; }
2526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2527 # It thinks the first close brace ends the variable substitution.
2528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2535 $as_echo_n "checking whether ln works... " >&6; }
2536 if test "${acx_cv_prog_LN+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 rm -f conftestdata_t
2540 echo >conftestdata_f
2541 if ln conftestdata_f conftestdata_t 2>/dev/null
2542 then
2543 acx_cv_prog_LN=ln
2544 else
2545 acx_cv_prog_LN=no
2547 rm -f conftestdata_f conftestdata_t
2550 if test $acx_cv_prog_LN = no; then
2551 LN="cp"
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2553 $as_echo "no, using $LN" >&6; }
2554 else
2555 LN="$acx_cv_prog_LN"
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2561 $as_echo_n "checking whether ln -s works... " >&6; }
2562 LN_S=$as_ln_s
2563 if test "$LN_S" = "ln -s"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2565 $as_echo "yes" >&6; }
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2568 $as_echo "no, using $LN_S" >&6; }
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2572 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2573 if test "${ac_cv_path_SED+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2577 for ac_i in 1 2 3 4 5 6 7; do
2578 ac_script="$ac_script$as_nl$ac_script"
2579 done
2580 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2581 { ac_script=; unset ac_script;}
2582 if test -z "$SED"; then
2583 ac_path_SED_found=false
2584 # Loop through the user's path and test for each of PROGNAME-LIST
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_prog in sed gsed; do
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2593 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2594 # Check for GNU ac_path_SED and select it if it is found.
2595 # Check for GNU $ac_path_SED
2596 case `"$ac_path_SED" --version 2>&1` in
2597 *GNU*)
2598 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2600 ac_count=0
2601 $as_echo_n 0123456789 >"conftest.in"
2602 while :
2604 cat "conftest.in" "conftest.in" >"conftest.tmp"
2605 mv "conftest.tmp" "conftest.in"
2606 cp "conftest.in" "conftest.nl"
2607 $as_echo '' >> "conftest.nl"
2608 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2610 as_fn_arith $ac_count + 1 && ac_count=$as_val
2611 if test $ac_count -gt ${ac_path_SED_max-0}; then
2612 # Best one so far, save it but keep looking for a better one
2613 ac_cv_path_SED="$ac_path_SED"
2614 ac_path_SED_max=$ac_count
2616 # 10*(2^10) chars as input seems more than enough
2617 test $ac_count -gt 10 && break
2618 done
2619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2620 esac
2622 $ac_path_SED_found && break 3
2623 done
2624 done
2625 done
2626 IFS=$as_save_IFS
2627 if test -z "$ac_cv_path_SED"; then
2628 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2630 else
2631 ac_cv_path_SED=$SED
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2636 $as_echo "$ac_cv_path_SED" >&6; }
2637 SED="$ac_cv_path_SED"
2638 rm -f conftest.sed
2640 for ac_prog in gawk mawk nawk awk
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_AWK+set}" = set; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 if test -n "$AWK"; then
2650 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_AWK="$ac_prog"
2660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 break 2
2663 done
2664 done
2665 IFS=$as_save_IFS
2669 AWK=$ac_cv_prog_AWK
2670 if test -n "$AWK"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2672 $as_echo "$AWK" >&6; }
2673 else
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2679 test -n "$AWK" && break
2680 done
2683 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2685 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2686 # a relative path.
2687 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2688 INSTALL="${srcpwd}/install-sh -c"
2691 # Set srcdir to "." if that's what it is.
2692 # This is important for multilib support.
2693 pwd=`${PWDCMD-pwd}`
2694 if test "${pwd}" = "${srcpwd}" ; then
2695 srcdir=.
2698 topsrcdir=$srcpwd
2700 extra_host_args=
2702 ### To add a new directory to the tree, first choose whether it is a target
2703 ### or a host dependent tool. Then put it into the appropriate list
2704 ### (library or tools, host or target), doing a dependency sort.
2706 # Subdirs will be configured in the order listed in build_configdirs,
2707 # configdirs, or target_configdirs; see the serialization section below.
2709 # Dependency sorting is only needed when *configuration* must be done in
2710 # a particular order. In all cases a dependency should be specified in
2711 # the Makefile, whether or not it's implicitly specified here.
2713 # Double entries in build_configdirs, configdirs, or target_configdirs may
2714 # cause circular dependencies and break everything horribly.
2716 # these library is used by various programs built for the build
2717 # environment
2719 build_libs="build-libiberty build-libcpp"
2721 # these tools are built for the build environment
2722 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2724 # these libraries are used by various programs built for the host environment
2726 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2728 # these tools are built for the host environment
2729 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2730 # know that we are building the simulator.
2731 # binutils, gas and ld appear in that order because it makes sense to run
2732 # "make check" in that particular order.
2733 # If --enable-gold is used, "gold" may replace "ld".
2734 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1"
2736 # libgcj represents the runtime libraries only used by gcj.
2737 libgcj="target-libffi \
2738 target-zlib \
2739 target-libjava"
2741 # these libraries are built for the target environment, and are built after
2742 # the host libraries and the host tools (which may be a cross compiler)
2743 # Note that libiberty is not a target library.
2744 target_libraries="target-libgcc \
2745 target-libbacktrace \
2746 target-libgloss \
2747 target-newlib \
2748 target-libgomp \
2749 target-libcilkrts \
2750 target-libatomic \
2751 target-libitm \
2752 target-libstdc++-v3 \
2753 target-libsanitizer \
2754 target-libvtv \
2755 target-libssp \
2756 target-libquadmath \
2757 target-libgfortran \
2758 target-boehm-gc \
2759 ${libgcj} \
2760 target-libobjc \
2761 target-libada \
2762 target-libgo"
2764 # these tools are built using the target libraries, and are intended to
2765 # run only in the target environment
2767 # note: any program that *uses* libraries that are in the "target_libraries"
2768 # list belongs in this list.
2770 target_tools="target-rda"
2772 ################################################################################
2774 ## All tools belong in one of the four categories, and are assigned above
2775 ## We assign ${configdirs} this way to remove all embedded newlines. This
2776 ## is important because configure will choke if they ever get through.
2777 ## ${configdirs} is directories we build using the host tools.
2778 ## ${target_configdirs} is directories we build using the target tools.
2779 configdirs=`echo ${host_libs} ${host_tools}`
2780 target_configdirs=`echo ${target_libraries} ${target_tools}`
2781 build_configdirs=`echo ${build_libs} ${build_tools}`
2785 ################################################################################
2787 srcname="gnu development package"
2789 # This gets set non-empty for some net releases of packages.
2790 appdirs=""
2792 # Define is_cross_compiler to save on calls to 'test'.
2793 is_cross_compiler=
2794 if test x"${host}" = x"${target}" ; then
2795 is_cross_compiler=no
2796 else
2797 is_cross_compiler=yes
2800 # Find the build and target subdir names.
2802 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2803 # have matching libraries, they should use host libraries: Makefile.tpl
2804 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2805 # However, they still use the build modules, because the corresponding
2806 # host modules (e.g. bison) are only built for the host when bootstrap
2807 # finishes. So:
2808 # - build_subdir is where we find build modules, and never changes.
2809 # - build_libsubdir is where we find build libraries, and can be overridden.
2811 # Prefix 'build-' so this never conflicts with target_subdir.
2812 build_subdir="build-${build_noncanonical}"
2814 # Check whether --with-build-libsubdir was given.
2815 if test "${with_build_libsubdir+set}" = set; then :
2816 withval=$with_build_libsubdir; build_libsubdir="$withval"
2817 else
2818 build_libsubdir="$build_subdir"
2821 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2822 if ( test $srcdir = . && test -d gcc ) \
2823 || test -d $srcdir/../host-${host_noncanonical}; then
2824 host_subdir="host-${host_noncanonical}"
2825 else
2826 host_subdir=.
2828 # No prefix.
2829 target_subdir=${target_noncanonical}
2831 # Be sure to cover against remnants of an in-tree build.
2832 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2833 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2834 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2837 # Skipdirs are removed silently.
2838 skipdirs=
2839 # Noconfigdirs are removed loudly.
2840 noconfigdirs=""
2842 use_gnu_ld=
2843 # Make sure we don't let GNU ld be added if we didn't want it.
2844 if test x$with_gnu_ld = xno ; then
2845 use_gnu_ld=no
2846 noconfigdirs="$noconfigdirs ld gold"
2849 use_gnu_as=
2850 # Make sure we don't let GNU as be added if we didn't want it.
2851 if test x$with_gnu_as = xno ; then
2852 use_gnu_as=no
2853 noconfigdirs="$noconfigdirs gas"
2856 use_included_zlib=
2857 # Make sure we don't let ZLIB be added if we didn't want it.
2858 if test x$with_system_zlib = xyes ; then
2859 use_included_zlib=no
2860 noconfigdirs="$noconfigdirs zlib"
2863 # some tools are so dependent upon X11 that if we're not building with X,
2864 # it's not even worth trying to configure, much less build, that tool.
2866 case ${with_x} in
2867 yes | "") ;; # the default value for this tree is that X11 is available
2869 skipdirs="${skipdirs} tk itcl libgui"
2870 # We won't be able to build gdbtk without X.
2871 enable_gdbtk=no
2873 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2874 esac
2876 # Some are only suitable for cross toolchains.
2877 # Remove these if host=target.
2878 cross_only="target-libgloss target-newlib target-opcodes"
2880 case $is_cross_compiler in
2881 no) skipdirs="${skipdirs} ${cross_only}" ;;
2882 esac
2884 # If both --with-headers and --with-libs are specified, default to
2885 # --without-newlib.
2886 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2887 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2888 if test x"${with_newlib}" = x ; then
2889 with_newlib=no
2893 # Recognize --with-newlib/--without-newlib.
2894 case ${with_newlib} in
2895 no) skipdirs="${skipdirs} target-newlib" ;;
2896 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2897 esac
2899 # Check whether --enable-offload-targets was given.
2900 if test "${enable_offload_targets+set}" = set; then :
2901 enableval=$enable_offload_targets;
2902 if test x"$enable_offload_targets" = x; then
2903 as_fn_error "no offload targets specified" "$LINENO" 5
2906 else
2907 enable_offload_targets=
2911 # Handle --enable-gold, --enable-ld.
2912 # --disable-gold [--enable-ld]
2913 # Build only ld. Default option.
2914 # --enable-gold [--enable-ld]
2915 # Build both gold and ld. Install gold as "ld.gold", install ld
2916 # as "ld.bfd" and "ld".
2917 # --enable-gold=default [--enable-ld]
2918 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2919 # install ld as "ld.bfd".
2920 # --enable-gold[=default] --disable-ld
2921 # Build only gold, which is then installed as both "ld.gold" and "ld".
2922 # --enable-gold --enable-ld=default
2923 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2924 # and ld.bfd).
2925 # In other words, ld is default
2926 # --enable-gold=default --enable-ld=default
2927 # Error.
2929 default_ld=
2930 # Check whether --enable-gold was given.
2931 if test "${enable_gold+set}" = set; then :
2932 enableval=$enable_gold; ENABLE_GOLD=$enableval
2933 else
2934 ENABLE_GOLD=no
2937 case "${ENABLE_GOLD}" in
2938 yes|default)
2939 # Check for ELF target.
2940 is_elf=no
2941 case "${target}" in
2942 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2943 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2944 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2945 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2946 case "${target}" in
2947 *-*-linux*aout* | *-*-linux*oldld*)
2950 is_elf=yes
2952 esac
2953 esac
2955 if test "$is_elf" = "yes"; then
2956 # Check for target supported by gold.
2957 case "${target}" in
2958 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2959 | aarch64*-*-* | tilegx*-*-*)
2960 configdirs="$configdirs gold"
2961 if test x${ENABLE_GOLD} = xdefault; then
2962 default_ld=gold
2964 ENABLE_GOLD=yes
2966 esac
2972 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2974 esac
2976 # Check whether --enable-ld was given.
2977 if test "${enable_ld+set}" = set; then :
2978 enableval=$enable_ld; ENABLE_LD=$enableval
2979 else
2980 ENABLE_LD=yes
2984 case "${ENABLE_LD}" in
2985 default)
2986 if test x${default_ld} != x; then
2987 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2990 yes)
2993 if test x${ENABLE_GOLD} != xyes; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2995 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2997 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3000 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3002 esac
3004 # Configure extra directories which are host specific
3006 case "${host}" in
3007 *-cygwin*)
3008 configdirs="$configdirs libtermcap" ;;
3009 esac
3011 # A target can indicate whether a language isn't supported for some reason.
3012 # Only spaces may be used in this macro; not newlines or tabs.
3013 unsupported_languages=
3015 # Remove more programs from consideration, based on the host or
3016 # target this usually means that a port of the program doesn't
3017 # exist yet.
3019 case "${host}" in
3020 i[3456789]86-*-msdosdjgpp*)
3021 noconfigdirs="$noconfigdirs tcl tk itcl"
3023 esac
3026 # Check whether --enable-libquadmath was given.
3027 if test "${enable_libquadmath+set}" = set; then :
3028 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3029 else
3030 ENABLE_LIBQUADMATH=yes
3033 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3034 noconfigdirs="$noconfigdirs target-libquadmath"
3038 # Check whether --enable-libquadmath-support was given.
3039 if test "${enable_libquadmath_support+set}" = set; then :
3040 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3041 else
3042 ENABLE_LIBQUADMATH_SUPPORT=yes
3045 enable_libquadmath_support=
3046 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3047 enable_libquadmath_support=no
3051 # Check whether --enable-libada was given.
3052 if test "${enable_libada+set}" = set; then :
3053 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3054 else
3055 ENABLE_LIBADA=yes
3058 if test "${ENABLE_LIBADA}" != "yes" ; then
3059 noconfigdirs="$noconfigdirs gnattools"
3062 # Check whether --enable-libssp was given.
3063 if test "${enable_libssp+set}" = set; then :
3064 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3065 else
3066 ENABLE_LIBSSP=yes
3070 # Check whether --enable-libstdcxx was given.
3071 if test "${enable_libstdcxx+set}" = set; then :
3072 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3073 else
3074 ENABLE_LIBSTDCXX=default
3077 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3078 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3081 # Save it here so that, even in case of --enable-libgcj, if the Java
3082 # front-end isn't enabled, we still get libgcj disabled.
3083 libgcj_saved=$libgcj
3084 case $enable_libgcj in
3085 yes)
3086 # If we reset it here, it won't get added to noconfigdirs in the
3087 # target-specific build rules, so it will be forcibly enabled
3088 # (unless the Java language itself isn't enabled).
3089 libgcj=
3092 # Make sure we get it printed in the list of not supported target libs.
3093 # Don't disable libffi, though, other languages use it.
3094 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3095 # Clear libgcj_saved so that even if java is enabled libffi won't be
3096 # built.
3097 libgcj_saved=
3099 esac
3101 # Check whether --enable-static-libjava was given.
3102 if test "${enable_static_libjava+set}" = set; then :
3103 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3104 else
3105 ENABLE_STATIC_LIBJAVA=no
3108 enable_static_libjava=
3109 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3110 enable_static_libjava=yes
3113 if test x$enable_static_libjava != xyes ; then
3114 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3118 # Disable libgomp on non POSIX hosted systems.
3119 if test x$enable_libgomp = x ; then
3120 # Enable libgomp by default on hosted POSIX systems.
3121 case "${target}" in
3122 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3124 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3126 *-*-solaris2* | *-*-hpux11*)
3128 *-*-darwin* | *-*-aix*)
3131 noconfigdirs="$noconfigdirs target-libgomp"
3133 esac
3136 # Disable libatomic on unsupported systems.
3137 if test -d ${srcdir}/libatomic; then
3138 if test x$enable_libatomic = x; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3140 $as_echo_n "checking for libatomic support... " >&6; }
3141 if (srcdir=${srcdir}/libatomic; \
3142 . ${srcdir}/configure.tgt; \
3143 test -n "$UNSUPPORTED")
3144 then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 noconfigdirs="$noconfigdirs target-libatomic"
3148 else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3155 # Disable libcilkrts on unsupported systems.
3156 if test -d ${srcdir}/libcilkrts; then
3157 if test x$enable_libcilkrts = x; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3159 $as_echo_n "checking for libcilkrts support... " >&6; }
3160 if (srcdir=${srcdir}/libcilkrts; \
3161 . ${srcdir}/configure.tgt; \
3162 test -n "$UNSUPPORTED")
3163 then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 noconfigdirs="$noconfigdirs target-libcilkrts"
3167 else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3169 $as_echo "yes" >&6; }
3174 # Disable libitm on unsupported systems.
3175 if test -d ${srcdir}/libitm; then
3176 if test x$enable_libitm = x; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3178 $as_echo_n "checking for libitm support... " >&6; }
3179 if (srcdir=${srcdir}/libitm; \
3180 . ${srcdir}/configure.tgt; \
3181 test -n "$UNSUPPORTED")
3182 then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 noconfigdirs="$noconfigdirs target-libitm"
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3188 $as_echo "yes" >&6; }
3193 # Disable libsanitizer on unsupported systems.
3194 if test -d ${srcdir}/libsanitizer; then
3195 if test x$enable_libsanitizer = x; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3197 $as_echo_n "checking for libsanitizer support... " >&6; }
3198 if (srcdir=${srcdir}/libsanitizer; \
3199 . ${srcdir}/configure.tgt; \
3200 test -n "$UNSUPPORTED")
3201 then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 noconfigdirs="$noconfigdirs target-libsanitizer"
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3212 # Disable libvtv on unsupported systems.
3213 if test -d ${srcdir}/libvtv; then
3214 if test x$enable_libvtv = x; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3216 $as_echo_n "checking for libvtv support... " >&6; }
3217 if (srcdir=${srcdir}/libvtv; \
3218 . ${srcdir}/configure.tgt; \
3219 test "$VTV_SUPPORTED" != "yes")
3220 then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 noconfigdirs="$noconfigdirs target-libvtv"
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3231 # Disable libquadmath for some systems.
3232 case "${target}" in
3233 avr-*-*)
3234 noconfigdirs="$noconfigdirs target-libquadmath"
3236 # libquadmath is unused on AIX and libquadmath build process use of
3237 # LD_LIBRARY_PATH can break AIX bootstrap.
3238 powerpc-*-aix* | rs6000-*-aix*)
3239 noconfigdirs="$noconfigdirs target-libquadmath"
3241 esac
3243 # Disable libssp for some systems.
3244 case "${target}" in
3245 avr-*-*)
3246 # No hosted I/O support.
3247 noconfigdirs="$noconfigdirs target-libssp"
3249 powerpc-*-aix* | rs6000-*-aix*)
3250 noconfigdirs="$noconfigdirs target-libssp"
3252 rl78-*-*)
3253 # libssp uses a misaligned load to trigger a fault, but the RL78
3254 # doesn't fault for those - instead, it gives a build-time error
3255 # for explicit misaligned loads.
3256 noconfigdirs="$noconfigdirs target-libssp"
3258 esac
3260 # Disable libstdc++-v3 for some systems.
3261 # Allow user to override this if they pass --enable-libstdc++-v3
3262 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3263 case "${target}" in
3264 *-*-vxworks*)
3265 # VxWorks uses the Dinkumware C++ library.
3266 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3268 arm*-wince-pe*)
3269 # the C++ libraries don't build on top of CE's C libraries
3270 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3272 avr-*-*)
3273 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3275 esac
3278 # Disable Fortran for some systems.
3279 case "${target}" in
3280 mmix-*-*)
3281 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3282 unsupported_languages="$unsupported_languages fortran"
3284 esac
3286 # Disable Java if libffi is not supported.
3287 case "${target}" in
3288 aarch64-*-*)
3290 alpha*-*-*)
3292 arm*-*-*)
3294 cris-*-*)
3296 frv-*-*)
3298 hppa*-*-linux*)
3300 hppa*-*-hpux*)
3302 i?86-*-*)
3304 ia64*-*-*)
3306 m32r*-*-*)
3308 m68k-*-*)
3310 mips*-*-rtems*)
3312 mips*-*-linux*)
3314 powerpc*-*-linux*)
3316 powerpc-*-darwin*)
3318 powerpc-*-aix* | rs6000-*-aix*)
3320 powerpc-*-freebsd*)
3322 powerpc64-*-freebsd*)
3324 powerpc*-*-rtems*)
3326 s390-*-* | s390x-*-*)
3328 sh-*-* | sh[34]*-*-*)
3330 sh64-*-* | sh5*-*-*)
3332 sparc*-*-*)
3334 x86_64-*-*)
3336 *-*-*)
3337 unsupported_languages="$unsupported_languages java"
3339 esac
3341 # Disable Java, libgcj or related libraries for some systems.
3342 case "${target}" in
3343 powerpc-*-darwin*)
3345 i[3456789]86-*-darwin*)
3347 x86_64-*-darwin[912]*)
3349 *-*-darwin*)
3350 noconfigdirs="$noconfigdirs ${libgcj}"
3352 *-*-netware*)
3353 noconfigdirs="$noconfigdirs ${libgcj}"
3355 *-*-rtems*)
3356 noconfigdirs="$noconfigdirs ${libgcj}"
3358 *-*-tpf*)
3359 noconfigdirs="$noconfigdirs ${libgcj}"
3361 *-*-uclinux*)
3362 noconfigdirs="$noconfigdirs ${libgcj}"
3364 *-*-vxworks*)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3367 alpha*-*-*vms*)
3368 noconfigdirs="$noconfigdirs ${libgcj}"
3370 arm-wince-pe)
3371 noconfigdirs="$noconfigdirs ${libgcj}"
3373 arm*-*-symbianelf*)
3374 noconfigdirs="$noconfigdirs ${libgcj}"
3376 bfin-*-*)
3377 noconfigdirs="$noconfigdirs target-boehm-gc"
3379 cris-*-* | crisv32-*-*)
3380 unsupported_languages="$unsupported_languages java"
3381 case "${target}" in
3382 *-*-linux*)
3384 *) # See PR46792 regarding target-libffi.
3385 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3386 esac
3388 hppa*64*-*-linux*)
3389 # In this case, it's because the hppa64-linux target is for
3390 # the kernel only at this point and has no libc, and thus no
3391 # headers, crt*.o, etc., all of which are needed by these.
3392 unsupported_languages="$unsupported_languages java"
3394 hppa*64*-*-hpux*)
3395 noconfigdirs="$noconfigdirs ${libgcj}"
3397 hppa*-hp-hpux11*)
3399 hppa*-*-hpux*)
3400 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3401 # build on HP-UX 10.20.
3402 noconfigdirs="$noconfigdirs ${libgcj}"
3404 ia64*-*-*vms*)
3405 noconfigdirs="$noconfigdirs ${libgcj}"
3407 i[3456789]86-w64-mingw*)
3408 noconfigdirs="$noconfigdirs ${libgcj}"
3410 i[3456789]86-*-mingw*)
3411 noconfigdirs="$noconfigdirs ${libgcj}"
3413 x86_64-*-mingw*)
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3416 mmix-*-*)
3417 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3419 powerpc-*-aix*)
3420 # copied from rs6000-*-* entry
3421 noconfigdirs="$noconfigdirs ${libgcj}"
3423 rs6000-*-aix*)
3424 noconfigdirs="$noconfigdirs ${libgcj}"
3426 *-*-lynxos*)
3427 noconfigdirs="$noconfigdirs ${libgcj}"
3429 esac
3431 # Disable the go frontend on systems where it is known to not work.
3432 case "${target}" in
3433 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3434 unsupported_languages="$unsupported_languages go"
3436 esac
3438 # Disable libgo for some systems where it is known to not work.
3439 # For testing, you can easily override this with --enable-libgo.
3440 if test x$enable_libgo = x; then
3441 case "${target}" in
3442 *-*-darwin*)
3443 # PR 46986
3444 noconfigdirs="$noconfigdirs target-libgo"
3446 *-*-cygwin* | *-*-mingw*)
3447 noconfigdirs="$noconfigdirs target-libgo"
3449 *-*-aix*)
3450 noconfigdirs="$noconfigdirs target-libgo"
3452 esac
3455 # Default libgloss CPU subdirectory.
3456 libgloss_dir="$target_cpu"
3458 case "${target}" in
3459 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3460 libgloss_dir=wince
3462 aarch64*-*-* )
3463 libgloss_dir=aarch64
3465 arm*-*-*)
3466 libgloss_dir=arm
3468 cris-*-* | crisv32-*-*)
3469 libgloss_dir=cris
3471 hppa*-*-*)
3472 libgloss_dir=pa
3474 i[3456789]86-*-*)
3475 libgloss_dir=i386
3477 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3478 libgloss_dir=m68hc11
3480 m68*-*-* | fido-*-*)
3481 libgloss_dir=m68k
3483 mips*-*-*)
3484 libgloss_dir=mips
3486 powerpc*-*-*)
3487 libgloss_dir=rs6000
3489 sparc*-*-*)
3490 libgloss_dir=sparc
3492 esac
3494 # Disable newlib and libgloss for various target OSes.
3495 case "${target}" in
3496 alpha*-dec-osf*)
3497 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3499 i[3456789]86-*-linux*)
3500 # This section makes it possible to build newlib natively on linux.
3501 # If we are using a cross compiler then don't configure newlib.
3502 if test x${is_cross_compiler} != xno ; then
3503 noconfigdirs="$noconfigdirs target-newlib"
3505 noconfigdirs="$noconfigdirs target-libgloss"
3506 # If we are not using a cross compiler, do configure newlib.
3507 # Note however, that newlib will only be configured in this situation
3508 # if the --with-newlib option has been given, because otherwise
3509 # 'target-newlib' will appear in skipdirs.
3511 i[3456789]86-*-rdos*)
3512 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3514 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3515 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3517 sparc-*-sunos4*)
3518 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3520 *-*-aix*)
3521 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3523 *-*-beos*)
3524 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526 *-*-chorusos)
3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 *-*-dragonfly*)
3530 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 *-*-freebsd*)
3533 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3536 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 *-*-lynxos*)
3539 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541 *-*-mingw*)
3542 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 *-*-netbsd*)
3545 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 *-*-netware*)
3548 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550 *-*-tpf*)
3551 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 *-*-uclinux*)
3554 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 *-*-vxworks*)
3557 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 esac
3561 case "${target}" in
3562 *-*-chorusos)
3564 powerpc-*-darwin*)
3565 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3566 noconfigdirs="$noconfigdirs sim target-rda"
3568 i[3456789]86-*-darwin*)
3569 noconfigdirs="$noconfigdirs ld gprof"
3570 noconfigdirs="$noconfigdirs sim target-rda"
3572 x86_64-*-darwin[912]*)
3573 noconfigdirs="$noconfigdirs ld gas gprof"
3574 noconfigdirs="$noconfigdirs sim target-rda"
3576 *-*-darwin*)
3577 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3578 noconfigdirs="$noconfigdirs sim target-rda"
3580 *-*-dragonfly*)
3582 *-*-freebsd*)
3583 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3584 && test -f /usr/local/include/gmp.h; then
3585 with_gmp=/usr/local
3588 *-*-kaos*)
3589 # Remove unsupported stuff on all kaOS configurations.
3590 noconfigdirs="$noconfigdirs target-libgloss"
3592 *-*-netbsd*)
3594 *-*-netware*)
3596 *-*-rtems*)
3597 noconfigdirs="$noconfigdirs target-libgloss"
3599 # The tpf target doesn't support gdb yet.
3600 *-*-tpf*)
3601 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3603 *-*-uclinux*)
3604 noconfigdirs="$noconfigdirs target-rda"
3606 *-*-vxworks*)
3608 alpha*-dec-osf*)
3609 # ld works, but does not support shared libraries.
3610 # gas doesn't generate exception information.
3611 noconfigdirs="$noconfigdirs gas ld"
3613 alpha*-*-*vms*)
3614 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3616 alpha*-*-*)
3617 # newlib is not 64 bit ready
3618 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3620 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3621 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3623 arc-*-*|arceb-*-*)
3624 noconfigdirs="$noconfigdirs target-libgloss"
3626 arm-*-pe*)
3627 noconfigdirs="$noconfigdirs target-libgloss"
3629 arm-*-riscix*)
3630 noconfigdirs="$noconfigdirs ld target-libgloss"
3632 avr-*-rtems*)
3634 avr-*-*)
3635 if test x${with_avrlibc} != xno; then
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 c4x-*-* | tic4x-*-*)
3640 noconfigdirs="$noconfigdirs target-libgloss"
3642 tic54x-*-*)
3643 noconfigdirs="$noconfigdirs target-libgloss gdb"
3645 d10v-*-*)
3646 noconfigdirs="$noconfigdirs target-libgloss"
3648 d30v-*-*)
3649 noconfigdirs="$noconfigdirs gdb"
3651 fr30-*-elf*)
3652 noconfigdirs="$noconfigdirs gdb"
3654 moxie-*-*)
3655 noconfigdirs="$noconfigdirs gprof"
3657 h8300*-*-*)
3658 noconfigdirs="$noconfigdirs target-libgloss"
3660 h8500-*-*)
3661 noconfigdirs="$noconfigdirs target-libgloss"
3663 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3665 hppa*64*-*-linux*)
3667 hppa*-*-linux*)
3669 hppa*-*-*elf* | \
3670 hppa*-*-lites* | \
3671 hppa*-*-openbsd* | \
3672 hppa*64*-*-*)
3674 hppa*-hp-hpux11*)
3675 noconfigdirs="$noconfigdirs ld"
3677 hppa*-*-pro*)
3679 hppa*-*-*)
3680 noconfigdirs="$noconfigdirs ld"
3682 i960-*-*)
3683 noconfigdirs="$noconfigdirs gdb"
3685 ia64*-*-elf*)
3686 # No gdb support yet.
3687 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3689 ia64*-**-hpux*)
3690 # No ld support yet.
3691 noconfigdirs="$noconfigdirs libgui itcl ld"
3693 ia64*-*-*vms*)
3694 # No ld support yet.
3695 noconfigdirs="$noconfigdirs libgui itcl ld"
3697 i[3456789]86-w64-mingw*)
3699 i[3456789]86-*-mingw*)
3700 target_configdirs="$target_configdirs target-winsup"
3702 *-*-cygwin*)
3703 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3704 noconfigdirs="$noconfigdirs target-libgloss"
3705 # always build newlib if winsup directory is present.
3706 if test -d "$srcdir/winsup/cygwin"; then
3707 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3708 elif test -d "$srcdir/newlib"; then
3709 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3712 i[3456789]86-*-pe)
3713 noconfigdirs="$noconfigdirs target-libgloss"
3715 i[3456789]86-*-sco3.2v5*)
3716 # The linker does not yet know about weak symbols in COFF,
3717 # and is not configured to handle mixed ELF and COFF.
3718 noconfigdirs="$noconfigdirs ld target-libgloss"
3720 i[3456789]86-*-sco*)
3721 noconfigdirs="$noconfigdirs gprof target-libgloss"
3723 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3724 noconfigdirs="$noconfigdirs target-libgloss"
3726 i[3456789]86-*-sysv4*)
3727 noconfigdirs="$noconfigdirs target-libgloss"
3729 i[3456789]86-*-beos*)
3730 noconfigdirs="$noconfigdirs gdb"
3732 i[3456789]86-*-rdos*)
3733 noconfigdirs="$noconfigdirs gdb"
3735 mmix-*-*)
3736 noconfigdirs="$noconfigdirs gdb"
3738 mt-*-*)
3739 noconfigdirs="$noconfigdirs sim"
3741 powerpc-*-aix*)
3742 # copied from rs6000-*-* entry
3743 noconfigdirs="$noconfigdirs gprof"
3745 powerpc*-*-winnt* | powerpc*-*-pe*)
3746 target_configdirs="$target_configdirs target-winsup"
3747 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3748 # always build newlib.
3749 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3751 # This is temporary until we can link against shared libraries
3752 powerpcle-*-solaris*)
3753 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3755 powerpc-*-beos*)
3756 noconfigdirs="$noconfigdirs gdb"
3758 rs6000-*-lynxos*)
3759 noconfigdirs="$noconfigdirs gprof"
3761 rs6000-*-aix*)
3762 noconfigdirs="$noconfigdirs gprof"
3764 rs6000-*-*)
3765 noconfigdirs="$noconfigdirs gprof"
3767 m68k-apollo-*)
3768 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3770 microblaze*)
3771 noconfigdirs="$noconfigdirs gprof"
3773 mips*-sde-elf* | mips*-mti-elf*)
3774 if test x$with_newlib = xyes; then
3775 noconfigdirs="$noconfigdirs gprof"
3778 mips*-*-irix5*)
3779 noconfigdirs="$noconfigdirs gprof target-libgloss"
3781 mips*-*-irix6*)
3782 noconfigdirs="$noconfigdirs gprof target-libgloss"
3784 mips*-*-bsd*)
3785 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3787 mips*-*-linux*)
3789 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3790 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3791 noconfigdirs="$noconfigdirs ld gas gprof"
3793 mips*-*-*)
3794 noconfigdirs="$noconfigdirs gprof"
3796 sh-*-* | sh64-*-*)
3797 case "${target}" in
3798 sh*-*-elf)
3801 noconfigdirs="$noconfigdirs target-libgloss" ;;
3802 esac
3804 sparc-*-sunos4*)
3805 if test x${is_cross_compiler} = xno ; then
3806 use_gnu_ld=no
3809 tic6x-*-*)
3810 noconfigdirs="$noconfigdirs sim"
3812 tilepro*-*-* | tilegx*-*-*)
3813 noconfigdirs="$noconfigdirs sim"
3815 v810-*-*)
3816 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3818 vax-*-*)
3819 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3821 esac
3823 # If we aren't building newlib, then don't build libgloss, since libgloss
3824 # depends upon some newlib header files.
3825 case "${noconfigdirs}" in
3826 *target-libgloss*) ;;
3827 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3828 esac
3830 # Work in distributions that contain no compiler tools, like Autoconf.
3831 host_makefile_frag=/dev/null
3832 if test -d ${srcdir}/config ; then
3833 case "${host}" in
3834 i[3456789]86-*-msdosdjgpp*)
3835 host_makefile_frag="config/mh-djgpp"
3837 *-cygwin*)
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3840 $as_echo_n "checking to see if cat works as expected... " >&6; }
3841 echo a >cygwin-cat-check
3842 if test `cat cygwin-cat-check` = a ; then
3843 rm cygwin-cat-check
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3845 $as_echo "yes" >&6; }
3846 else
3847 rm cygwin-cat-check
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3850 as_fn_error "The cat command does not ignore carriage return characters.
3851 Please either mount the build directory in binary mode or run the following
3852 commands before running any configure script:
3853 set -o igncr
3854 export SHELLOPTS
3855 " "$LINENO" 5
3858 host_makefile_frag="config/mh-cygwin"
3860 *-mingw*)
3861 host_makefile_frag="config/mh-mingw"
3863 alpha*-*-linux*)
3864 host_makefile_frag="config/mh-alpha-linux"
3866 hppa*-hp-hpux10*)
3867 host_makefile_frag="config/mh-pa-hpux10"
3869 hppa*-hp-hpux*)
3870 host_makefile_frag="config/mh-pa"
3872 hppa*-*)
3873 host_makefile_frag="config/mh-pa"
3875 *-*-darwin*)
3876 host_makefile_frag="config/mh-darwin"
3878 powerpc-*-aix*)
3879 host_makefile_frag="config/mh-ppc-aix"
3881 rs6000-*-aix*)
3882 host_makefile_frag="config/mh-ppc-aix"
3884 esac
3887 if test "${build}" != "${host}" ; then
3888 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3889 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3890 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3891 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3892 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3893 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3894 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3895 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3896 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3897 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3898 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3899 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3900 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3901 else
3902 AR_FOR_BUILD="\$(AR)"
3903 AS_FOR_BUILD="\$(AS)"
3904 CC_FOR_BUILD="\$(CC)"
3905 CXX_FOR_BUILD="\$(CXX)"
3906 GCJ_FOR_BUILD="\$(GCJ)"
3907 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3908 GOC_FOR_BUILD="\$(GOC)"
3909 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3910 LD_FOR_BUILD="\$(LD)"
3911 NM_FOR_BUILD="\$(NM)"
3912 RANLIB_FOR_BUILD="\$(RANLIB)"
3913 WINDRES_FOR_BUILD="\$(WINDRES)"
3914 WINDMC_FOR_BUILD="\$(WINDMC)"
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3924 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if test "${ac_cv_prog_CC+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 if test -n "$CC"; then
3931 ac_cv_prog_CC="$CC" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3940 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3944 done
3945 done
3946 IFS=$as_save_IFS
3950 CC=$ac_cv_prog_CC
3951 if test -n "$CC"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953 $as_echo "$CC" >&6; }
3954 else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3961 if test -z "$ac_cv_prog_CC"; then
3962 ac_ct_CC=$CC
3963 # Extract the first word of "gcc", so it can be a program name with args.
3964 set dummy gcc; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$ac_ct_CC"; then
3971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980 ac_cv_prog_ac_ct_CC="gcc"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3984 done
3985 done
3986 IFS=$as_save_IFS
3990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3991 if test -n "$ac_ct_CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3993 $as_echo "$ac_ct_CC" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3999 if test "x$ac_ct_CC" = x; then
4000 CC=""
4001 else
4002 case $cross_compiling:$ac_tool_warned in
4003 yes:)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008 CC=$ac_ct_CC
4010 else
4011 CC="$ac_cv_prog_CC"
4014 if test -z "$CC"; then
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}cc; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_prog_CC+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -n "$CC"; then
4024 ac_cv_prog_CC="$CC" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_CC="${ac_tool_prefix}cc"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4037 done
4038 done
4039 IFS=$as_save_IFS
4043 CC=$ac_cv_prog_CC
4044 if test -n "$CC"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4046 $as_echo "$CC" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4055 if test -z "$CC"; then
4056 # Extract the first word of "cc", so it can be a program name with args.
4057 set dummy cc; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if test "${ac_cv_prog_CC+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 if test -n "$CC"; then
4064 ac_cv_prog_CC="$CC" # Let the user override the test.
4065 else
4066 ac_prog_rejected=no
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4075 ac_prog_rejected=yes
4076 continue
4078 ac_cv_prog_CC="cc"
4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4082 done
4083 done
4084 IFS=$as_save_IFS
4086 if test $ac_prog_rejected = yes; then
4087 # We found a bogon in the path, so make sure we never use it.
4088 set dummy $ac_cv_prog_CC
4089 shift
4090 if test $# != 0; then
4091 # We chose a different compiler from the bogus one.
4092 # However, it has the same basename, so the bogon will be chosen
4093 # first if we set CC to just the basename; use the full file name.
4094 shift
4095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4100 CC=$ac_cv_prog_CC
4101 if test -n "$CC"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4103 $as_echo "$CC" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4111 if test -z "$CC"; then
4112 if test -n "$ac_tool_prefix"; then
4113 for ac_prog in cl.exe
4115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$CC"; then
4123 ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4138 IFS=$as_save_IFS
4142 CC=$ac_cv_prog_CC
4143 if test -n "$CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145 $as_echo "$CC" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4152 test -n "$CC" && break
4153 done
4155 if test -z "$CC"; then
4156 ac_ct_CC=$CC
4157 for ac_prog in cl.exe
4159 # Extract the first word of "$ac_prog", so it can be a program name with args.
4160 set dummy $ac_prog; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -n "$ac_ct_CC"; then
4167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_prog_ac_ct_CC="$ac_prog"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4180 done
4181 done
4182 IFS=$as_save_IFS
4186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4187 if test -n "$ac_ct_CC"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4189 $as_echo "$ac_ct_CC" >&6; }
4190 else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4196 test -n "$ac_ct_CC" && break
4197 done
4199 if test "x$ac_ct_CC" = x; then
4200 CC=""
4201 else
4202 case $cross_compiling:$ac_tool_warned in
4203 yes:)
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4206 ac_tool_warned=yes ;;
4207 esac
4208 CC=$ac_ct_CC
4215 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error "no acceptable C compiler found in \$PATH
4218 See \`config.log' for more details." "$LINENO" 5; }
4220 # Provide some information about the compiler.
4221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4222 set X $ac_compile
4223 ac_compiler=$2
4224 for ac_option in --version -v -V -qversion; do
4225 { { ac_try="$ac_compiler $ac_option >&5"
4226 case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4233 ac_status=$?
4234 if test -s conftest.err; then
4235 sed '10a\
4236 ... rest of stderr output deleted ...
4237 10q' conftest.err >conftest.er1
4238 cat conftest.er1 >&5
4239 rm -f conftest.er1 conftest.err
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }
4243 done
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4249 main ()
4253 return 0;
4255 _ACEOF
4256 ac_clean_files_save=$ac_clean_files
4257 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4258 # Try to create an executable without -o first, disregard a.out.
4259 # It will help us diagnose broken compilers, and finding out an intuition
4260 # of exeext.
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4262 $as_echo_n "checking for C compiler default output file name... " >&6; }
4263 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4265 # The possible output files:
4266 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4268 ac_rmfiles=
4269 for ac_file in $ac_files
4271 case $ac_file in
4272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4273 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4274 esac
4275 done
4276 rm -f $ac_rmfiles
4278 if { { ac_try="$ac_link_default"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_link_default") 2>&5
4286 ac_status=$?
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; }; then :
4289 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4290 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4291 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4292 # so that the user can short-circuit this test for compilers unknown to
4293 # Autoconf.
4294 for ac_file in $ac_files ''
4296 test -f "$ac_file" || continue
4297 case $ac_file in
4298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4300 [ab].out )
4301 # We found the default executable, but exeext='' is most
4302 # certainly right.
4303 break;;
4304 *.* )
4305 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4306 then :; else
4307 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4309 # We set ac_cv_exeext here because the later test for it is not
4310 # safe: cross compilers may not add the suffix if given an `-o'
4311 # argument, so we may need to know it at that point already.
4312 # Even if this section looks crufty: it has the advantage of
4313 # actually working.
4314 break;;
4316 break;;
4317 esac
4318 done
4319 test "$ac_cv_exeext" = no && ac_cv_exeext=
4321 else
4322 ac_file=''
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4325 $as_echo "$ac_file" >&6; }
4326 if test -z "$ac_file"; then :
4327 $as_echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4332 { as_fn_set_status 77
4333 as_fn_error "C compiler cannot create executables
4334 See \`config.log' for more details." "$LINENO" 5; }; }
4336 ac_exeext=$ac_cv_exeext
4338 # Check that the compiler produces executables we can run. If not, either
4339 # the compiler is broken, or we cross compile.
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4341 $as_echo_n "checking whether the C compiler works... " >&6; }
4342 # If not cross compiling, check that we can run a simple program.
4343 if test "$cross_compiling" != yes; then
4344 if { ac_try='./$ac_file'
4345 { { case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4350 $as_echo "$ac_try_echo"; } >&5
4351 (eval "$ac_try") 2>&5
4352 ac_status=$?
4353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4354 test $ac_status = 0; }; }; then
4355 cross_compiling=no
4356 else
4357 if test "$cross_compiling" = maybe; then
4358 cross_compiling=yes
4359 else
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error "cannot run C compiled programs.
4363 If you meant to cross compile, use \`--host'.
4364 See \`config.log' for more details." "$LINENO" 5; }
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4371 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4372 ac_clean_files=$ac_clean_files_save
4373 # Check that the compiler produces executables we can run. If not, either
4374 # the compiler is broken, or we cross compile.
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4376 $as_echo_n "checking whether we are cross compiling... " >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4378 $as_echo "$cross_compiling" >&6; }
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4381 $as_echo_n "checking for suffix of executables... " >&6; }
4382 if { { ac_try="$ac_link"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_link") 2>&5
4390 ac_status=$?
4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; }; then :
4393 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4394 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4395 # work properly (i.e., refer to `conftest.exe'), while it won't with
4396 # `rm'.
4397 for ac_file in conftest.exe conftest conftest.*; do
4398 test -f "$ac_file" || continue
4399 case $ac_file in
4400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4402 break;;
4403 * ) break;;
4404 esac
4405 done
4406 else
4407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4409 as_fn_error "cannot compute suffix of executables: cannot compile and link
4410 See \`config.log' for more details." "$LINENO" 5; }
4412 rm -f conftest$ac_cv_exeext
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4414 $as_echo "$ac_cv_exeext" >&6; }
4416 rm -f conftest.$ac_ext
4417 EXEEXT=$ac_cv_exeext
4418 ac_exeext=$EXEEXT
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4420 $as_echo_n "checking for suffix of object files... " >&6; }
4421 if test "${ac_cv_objext+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4428 main ()
4432 return 0;
4434 _ACEOF
4435 rm -f conftest.o conftest.obj
4436 if { { ac_try="$ac_compile"
4437 case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_compile") 2>&5
4444 ac_status=$?
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }; then :
4447 for ac_file in conftest.o conftest.obj conftest.*; do
4448 test -f "$ac_file" || continue;
4449 case $ac_file in
4450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4452 break;;
4453 esac
4454 done
4455 else
4456 $as_echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error "cannot compute suffix of object files: cannot compile
4462 See \`config.log' for more details." "$LINENO" 5; }
4464 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4467 $as_echo "$ac_cv_objext" >&6; }
4468 OBJEXT=$ac_cv_objext
4469 ac_objext=$OBJEXT
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4471 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4472 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4479 main ()
4481 #ifndef __GNUC__
4482 choke me
4483 #endif
4486 return 0;
4488 _ACEOF
4489 if ac_fn_c_try_compile "$LINENO"; then :
4490 ac_compiler_gnu=yes
4491 else
4492 ac_compiler_gnu=no
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4500 if test $ac_compiler_gnu = yes; then
4501 GCC=yes
4502 else
4503 GCC=
4505 ac_test_CFLAGS=${CFLAGS+set}
4506 ac_save_CFLAGS=$CFLAGS
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4509 if test "${ac_cv_prog_cc_g+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 ac_save_c_werror_flag=$ac_c_werror_flag
4513 ac_c_werror_flag=yes
4514 ac_cv_prog_cc_g=no
4515 CFLAGS="-g"
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4520 main ()
4524 return 0;
4526 _ACEOF
4527 if ac_fn_c_try_compile "$LINENO"; then :
4528 ac_cv_prog_cc_g=yes
4529 else
4530 CFLAGS=""
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4535 main ()
4539 return 0;
4541 _ACEOF
4542 if ac_fn_c_try_compile "$LINENO"; then :
4544 else
4545 ac_c_werror_flag=$ac_save_c_werror_flag
4546 CFLAGS="-g"
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4551 main ()
4555 return 0;
4557 _ACEOF
4558 if ac_fn_c_try_compile "$LINENO"; then :
4559 ac_cv_prog_cc_g=yes
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 ac_c_werror_flag=$ac_save_c_werror_flag
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4569 $as_echo "$ac_cv_prog_cc_g" >&6; }
4570 if test "$ac_test_CFLAGS" = set; then
4571 CFLAGS=$ac_save_CFLAGS
4572 elif test $ac_cv_prog_cc_g = yes; then
4573 if test "$GCC" = yes; then
4574 CFLAGS="-g -O2"
4575 else
4576 CFLAGS="-g"
4578 else
4579 if test "$GCC" = yes; then
4580 CFLAGS="-O2"
4581 else
4582 CFLAGS=
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4587 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 ac_cv_prog_cc_c89=no
4591 ac_save_CC=$CC
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #include <stdarg.h>
4595 #include <stdio.h>
4596 #include <sys/types.h>
4597 #include <sys/stat.h>
4598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4599 struct buf { int x; };
4600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4601 static char *e (p, i)
4602 char **p;
4603 int i;
4605 return p[i];
4607 static char *f (char * (*g) (char **, int), char **p, ...)
4609 char *s;
4610 va_list v;
4611 va_start (v,p);
4612 s = g (p, va_arg (v,int));
4613 va_end (v);
4614 return s;
4617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4618 function prototypes and stuff, but not '\xHH' hex character constants.
4619 These don't provoke an error unfortunately, instead are silently treated
4620 as 'x'. The following induces an error, until -std is added to get
4621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4622 array size at least. It's necessary to write '\x00'==0 to get something
4623 that's true only with -std. */
4624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4627 inside strings and character constants. */
4628 #define FOO(x) 'x'
4629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4631 int test (int i, double x);
4632 struct s1 {int (*f) (int a);};
4633 struct s2 {int (*f) (double a);};
4634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4635 int argc;
4636 char **argv;
4638 main ()
4640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4642 return 0;
4644 _ACEOF
4645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4648 CC="$ac_save_CC $ac_arg"
4649 if ac_fn_c_try_compile "$LINENO"; then :
4650 ac_cv_prog_cc_c89=$ac_arg
4652 rm -f core conftest.err conftest.$ac_objext
4653 test "x$ac_cv_prog_cc_c89" != "xno" && break
4654 done
4655 rm -f conftest.$ac_ext
4656 CC=$ac_save_CC
4659 # AC_CACHE_VAL
4660 case "x$ac_cv_prog_cc_c89" in
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4663 $as_echo "none needed" >&6; } ;;
4664 xno)
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4666 $as_echo "unsupported" >&6; } ;;
4668 CC="$CC $ac_cv_prog_cc_c89"
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4670 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4671 esac
4672 if test "x$ac_cv_prog_cc_c89" != xno; then :
4676 ac_ext=c
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4682 ac_ext=cpp
4683 ac_cpp='$CXXCPP $CPPFLAGS'
4684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4687 if test -z "$CXX"; then
4688 if test -n "$CCC"; then
4689 CXX=$CCC
4690 else
4691 if test -n "$ac_tool_prefix"; then
4692 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697 $as_echo_n "checking for $ac_word... " >&6; }
4698 if test "${ac_cv_prog_CXX+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 if test -n "$CXX"; then
4702 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 CXX=$ac_cv_prog_CXX
4722 if test -n "$CXX"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4724 $as_echo "$CXX" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4731 test -n "$CXX" && break
4732 done
4734 if test -z "$CXX"; then
4735 ac_ct_CXX=$CXX
4736 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4738 # Extract the first word of "$ac_prog", so it can be a program name with args.
4739 set dummy $ac_prog; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 if test -n "$ac_ct_CXX"; then
4746 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4747 else
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_prog_ac_ct_CXX="$ac_prog"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4759 done
4760 done
4761 IFS=$as_save_IFS
4765 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4766 if test -n "$ac_ct_CXX"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4768 $as_echo "$ac_ct_CXX" >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4775 test -n "$ac_ct_CXX" && break
4776 done
4778 if test "x$ac_ct_CXX" = x; then
4779 CXX="g++"
4780 else
4781 case $cross_compiling:$ac_tool_warned in
4782 yes:)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785 ac_tool_warned=yes ;;
4786 esac
4787 CXX=$ac_ct_CXX
4793 # Provide some information about the compiler.
4794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4795 set X $ac_compile
4796 ac_compiler=$2
4797 for ac_option in --version -v -V -qversion; do
4798 { { ac_try="$ac_compiler $ac_option >&5"
4799 case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802 esac
4803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804 $as_echo "$ac_try_echo"; } >&5
4805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4806 ac_status=$?
4807 if test -s conftest.err; then
4808 sed '10a\
4809 ... rest of stderr output deleted ...
4810 10q' conftest.err >conftest.er1
4811 cat conftest.er1 >&5
4812 rm -f conftest.er1 conftest.err
4814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4815 test $ac_status = 0; }
4816 done
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4819 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4820 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4827 main ()
4829 #ifndef __GNUC__
4830 choke me
4831 #endif
4834 return 0;
4836 _ACEOF
4837 if ac_fn_cxx_try_compile "$LINENO"; then :
4838 ac_compiler_gnu=yes
4839 else
4840 ac_compiler_gnu=no
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4847 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4848 if test $ac_compiler_gnu = yes; then
4849 GXX=yes
4850 else
4851 GXX=
4853 ac_test_CXXFLAGS=${CXXFLAGS+set}
4854 ac_save_CXXFLAGS=$CXXFLAGS
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4856 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4857 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4861 ac_cxx_werror_flag=yes
4862 ac_cv_prog_cxx_g=no
4863 CXXFLAGS="-g"
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4868 main ()
4872 return 0;
4874 _ACEOF
4875 if ac_fn_cxx_try_compile "$LINENO"; then :
4876 ac_cv_prog_cxx_g=yes
4877 else
4878 CXXFLAGS=""
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 main ()
4887 return 0;
4889 _ACEOF
4890 if ac_fn_cxx_try_compile "$LINENO"; then :
4892 else
4893 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4894 CXXFLAGS="-g"
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4899 main ()
4903 return 0;
4905 _ACEOF
4906 if ac_fn_cxx_try_compile "$LINENO"; then :
4907 ac_cv_prog_cxx_g=yes
4909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4917 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4918 if test "$ac_test_CXXFLAGS" = set; then
4919 CXXFLAGS=$ac_save_CXXFLAGS
4920 elif test $ac_cv_prog_cxx_g = yes; then
4921 if test "$GXX" = yes; then
4922 CXXFLAGS="-g -O2"
4923 else
4924 CXXFLAGS="-g"
4926 else
4927 if test "$GXX" = yes; then
4928 CXXFLAGS="-O2"
4929 else
4930 CXXFLAGS=
4933 ac_ext=c
4934 ac_cpp='$CPP $CPPFLAGS'
4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940 # We must set the default linker to the linker used by gcc for the correct
4941 # operation of libtool. If LD is not defined and we are using gcc, try to
4942 # set the LD default to the ld used by gcc.
4943 if test -z "$LD"; then
4944 if test "$GCC" = yes; then
4945 case $build in
4946 *-*-mingw*)
4947 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4949 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4950 esac
4951 case $gcc_prog_ld in
4952 # Accept absolute paths.
4953 [\\/]* | [A-Za-z]:[\\/]*)
4954 LD="$gcc_prog_ld" ;;
4955 esac
4959 # Check whether -static-libstdc++ -static-libgcc is supported.
4960 have_static_libs=no
4961 if test "$GCC" = yes; then
4962 saved_LDFLAGS="$LDFLAGS"
4964 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4966 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4967 ac_ext=cpp
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4977 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4978 #error -static-libstdc++ not implemented
4979 #endif
4980 int main() {}
4981 _ACEOF
4982 if ac_fn_cxx_try_link "$LINENO"; then :
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4984 $as_echo "yes" >&6; }; have_static_libs=yes
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4989 rm -f core conftest.err conftest.$ac_objext \
4990 conftest$ac_exeext conftest.$ac_ext
4991 ac_ext=c
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998 LDFLAGS="$saved_LDFLAGS"
5004 if test -n "$ac_tool_prefix"; then
5005 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5006 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$GNATBIND"; then
5013 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5032 GNATBIND=$ac_cv_prog_GNATBIND
5033 if test -n "$GNATBIND"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5035 $as_echo "$GNATBIND" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5043 if test -z "$ac_cv_prog_GNATBIND"; then
5044 ac_ct_GNATBIND=$GNATBIND
5045 # Extract the first word of "gnatbind", so it can be a program name with args.
5046 set dummy gnatbind; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$ac_ct_GNATBIND"; then
5053 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5073 if test -n "$ac_ct_GNATBIND"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5075 $as_echo "$ac_ct_GNATBIND" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5081 if test "x$ac_ct_GNATBIND" = x; then
5082 GNATBIND="no"
5083 else
5084 case $cross_compiling:$ac_tool_warned in
5085 yes:)
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5088 ac_tool_warned=yes ;;
5089 esac
5090 GNATBIND=$ac_ct_GNATBIND
5092 else
5093 GNATBIND="$ac_cv_prog_GNATBIND"
5096 if test -n "$ac_tool_prefix"; then
5097 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5098 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -n "$GNATMAKE"; then
5105 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5118 done
5119 done
5120 IFS=$as_save_IFS
5124 GNATMAKE=$ac_cv_prog_GNATMAKE
5125 if test -n "$GNATMAKE"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5127 $as_echo "$GNATMAKE" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5135 if test -z "$ac_cv_prog_GNATMAKE"; then
5136 ac_ct_GNATMAKE=$GNATMAKE
5137 # Extract the first word of "gnatmake", so it can be a program name with args.
5138 set dummy gnatmake; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -n "$ac_ct_GNATMAKE"; then
5145 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
5158 done
5159 done
5160 IFS=$as_save_IFS
5164 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5165 if test -n "$ac_ct_GNATMAKE"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5167 $as_echo "$ac_ct_GNATMAKE" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5173 if test "x$ac_ct_GNATMAKE" = x; then
5174 GNATMAKE="no"
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177 yes:)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned=yes ;;
5181 esac
5182 GNATMAKE=$ac_ct_GNATMAKE
5184 else
5185 GNATMAKE="$ac_cv_prog_GNATMAKE"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5189 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5190 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 cat >conftest.adb <<EOF
5194 procedure conftest is begin null; end conftest;
5196 acx_cv_cc_gcc_supports_ada=no
5197 # There is a bug in old released versions of GCC which causes the
5198 # driver to exit successfully when the appropriate language module
5199 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5200 # Therefore we must check for the error message as well as an
5201 # unsuccessful exit.
5202 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5203 # given a .adb file, but produce no object file. So we must check
5204 # if an object file was really produced to guard against this.
5205 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5206 if test x"$errors" = x && test -f conftest.$ac_objext; then
5207 acx_cv_cc_gcc_supports_ada=yes
5209 rm -f conftest.*
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5212 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5214 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5215 have_gnat=yes
5216 else
5217 have_gnat=no
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5221 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5222 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 echo abfoo >t1
5226 echo cdfoo >t2
5227 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5228 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5229 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5231 else
5232 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5235 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5236 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5238 else
5239 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5242 rm t1 t2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5246 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5247 do_compare="$gcc_cv_prog_cmp_skip"
5251 # Check whether --enable-bootstrap was given.
5252 if test "${enable_bootstrap+set}" = set; then :
5253 enableval=$enable_bootstrap;
5254 else
5255 enable_bootstrap=default
5259 # Issue errors and warnings for invalid/strange bootstrap combinations.
5260 if test -r $srcdir/gcc/configure; then
5261 have_compiler=yes
5262 else
5263 have_compiler=no
5266 case "$have_compiler:$host:$target:$enable_bootstrap" in
5267 *:*:*:no) ;;
5269 # Default behavior. Enable bootstrap if we have a compiler
5270 # and we are in a native configuration.
5271 yes:$build:$build:default)
5272 enable_bootstrap=yes ;;
5274 *:*:*:default)
5275 enable_bootstrap=no ;;
5277 # We have a compiler and we are in a native configuration, bootstrap is ok
5278 yes:$build:$build:yes)
5281 # Other configurations, but we have a compiler. Assume the user knows
5282 # what he's doing.
5283 yes:*:*:yes)
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5285 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5288 # No compiler: if they passed --enable-bootstrap explicitly, fail
5289 no:*:*:yes)
5290 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5292 # Fail if wrong command line
5294 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5296 esac
5298 # Used for setting $lt_cv_objdir
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5300 $as_echo_n "checking for objdir... " >&6; }
5301 if test "${lt_cv_objdir+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 rm -f .libs 2>/dev/null
5305 mkdir .libs 2>/dev/null
5306 if test -d .libs; then
5307 lt_cv_objdir=.libs
5308 else
5309 # MS-DOS does not allow filenames that begin with a dot.
5310 lt_cv_objdir=_libs
5312 rmdir .libs 2>/dev/null
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5315 $as_echo "$lt_cv_objdir" >&6; }
5316 objdir=$lt_cv_objdir
5322 cat >>confdefs.h <<_ACEOF
5323 #define LT_OBJDIR "$lt_cv_objdir/"
5324 _ACEOF
5328 # Check for GMP, MPFR and MPC
5329 gmplibs="-lmpc -lmpfr -lgmp"
5330 gmpinc=
5331 have_gmp=no
5333 # Specify a location for mpc
5334 # check for this first so it ends up on the link line before mpfr.
5336 # Check whether --with-mpc was given.
5337 if test "${with_mpc+set}" = set; then :
5338 withval=$with_mpc;
5342 # Check whether --with-mpc-include was given.
5343 if test "${with_mpc_include+set}" = set; then :
5344 withval=$with_mpc_include;
5348 # Check whether --with-mpc-lib was given.
5349 if test "${with_mpc_lib+set}" = set; then :
5350 withval=$with_mpc_lib;
5354 if test "x$with_mpc" != x; then
5355 gmplibs="-L$with_mpc/lib $gmplibs"
5356 gmpinc="-I$with_mpc/include $gmpinc"
5358 if test "x$with_mpc_include" != x; then
5359 gmpinc="-I$with_mpc_include $gmpinc"
5361 if test "x$with_mpc_lib" != x; then
5362 gmplibs="-L$with_mpc_lib $gmplibs"
5364 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5365 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5366 gmpinc='-I$$s/mpc/src '"$gmpinc"
5367 # Do not test the mpc version. Assume that it is sufficient, since
5368 # it is in the source tree, and the library has not been built yet
5369 # but it would be included on the link line in the version check below
5370 # hence making the test fail.
5371 have_gmp=yes
5374 # Specify a location for mpfr
5375 # check for this first so it ends up on the link line before gmp.
5377 # Check whether --with-mpfr-dir was given.
5378 if test "${with_mpfr_dir+set}" = set; then :
5379 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5380 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5385 # Check whether --with-mpfr was given.
5386 if test "${with_mpfr+set}" = set; then :
5387 withval=$with_mpfr;
5391 # Check whether --with-mpfr-include was given.
5392 if test "${with_mpfr_include+set}" = set; then :
5393 withval=$with_mpfr_include;
5397 # Check whether --with-mpfr-lib was given.
5398 if test "${with_mpfr_lib+set}" = set; then :
5399 withval=$with_mpfr_lib;
5403 if test "x$with_mpfr" != x; then
5404 gmplibs="-L$with_mpfr/lib $gmplibs"
5405 gmpinc="-I$with_mpfr/include $gmpinc"
5407 if test "x$with_mpfr_include" != x; then
5408 gmpinc="-I$with_mpfr_include $gmpinc"
5410 if test "x$with_mpfr_lib" != x; then
5411 gmplibs="-L$with_mpfr_lib $gmplibs"
5413 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5414 # MPFR v3.1.0 moved the sources into a src sub-directory.
5415 if test -d ${srcdir}/mpfr/src; then
5416 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5417 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5418 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5419 else
5420 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5421 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5422 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5424 # Do not test the mpfr version. Assume that it is sufficient, since
5425 # it is in the source tree, and the library has not been built yet
5426 # but it would be included on the link line in the version check below
5427 # hence making the test fail.
5428 have_gmp=yes
5431 # Specify a location for gmp
5433 # Check whether --with-gmp-dir was given.
5434 if test "${with_gmp_dir+set}" = set; then :
5435 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5436 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5441 # Check whether --with-gmp was given.
5442 if test "${with_gmp+set}" = set; then :
5443 withval=$with_gmp;
5447 # Check whether --with-gmp-include was given.
5448 if test "${with_gmp_include+set}" = set; then :
5449 withval=$with_gmp_include;
5453 # Check whether --with-gmp-lib was given.
5454 if test "${with_gmp_lib+set}" = set; then :
5455 withval=$with_gmp_lib;
5460 if test "x$with_gmp" != x; then
5461 gmplibs="-L$with_gmp/lib $gmplibs"
5462 gmpinc="-I$with_gmp/include $gmpinc"
5464 if test "x$with_gmp_include" != x; then
5465 gmpinc="-I$with_gmp_include $gmpinc"
5467 if test "x$with_gmp_lib" != x; then
5468 gmplibs="-L$with_gmp_lib $gmplibs"
5470 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5471 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5472 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5473 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5474 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5475 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5476 # Do not test the gmp version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5483 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5484 have_gmp=yes
5485 saved_CFLAGS="$CFLAGS"
5486 CFLAGS="$CFLAGS $gmpinc"
5487 # Check for the recommended and required versions of GMP.
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5489 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 #include "gmp.h"
5495 main ()
5498 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5499 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5500 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5501 choke me
5502 #endif
5505 return 0;
5507 _ACEOF
5508 if ac_fn_c_try_compile "$LINENO"; then :
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 #include <gmp.h>
5513 main ()
5516 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5517 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5518 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5519 choke me
5520 #endif
5523 return 0;
5525 _ACEOF
5526 if ac_fn_c_try_compile "$LINENO"; then :
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 $as_echo "yes" >&6; }
5529 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5531 $as_echo "buggy but acceptable" >&6; }
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }; have_gmp=no
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 # If we have GMP, check the MPFR version.
5541 if test x"$have_gmp" = xyes; then
5542 # Check for the recommended and required versions of MPFR.
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5544 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 #include <gmp.h>
5548 #include <mpfr.h>
5550 main ()
5553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5554 choke me
5555 #endif
5558 return 0;
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 #include <gmp.h>
5565 #include <mpfr.h>
5567 main ()
5570 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5571 choke me
5572 #endif
5575 return 0;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5581 else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5583 $as_echo "buggy but acceptable" >&6; }
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }; have_gmp=no
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 # Check for the MPC header version.
5594 if test x"$have_gmp" = xyes ; then
5595 # Check for the recommended and required versions of MPC.
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5597 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600 #include <mpc.h>
5602 main ()
5605 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5606 choke me
5607 #endif
5610 return 0;
5612 _ACEOF
5613 if ac_fn_c_try_compile "$LINENO"; then :
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <mpc.h>
5618 main ()
5621 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5622 choke me
5623 #endif
5626 return 0;
5628 _ACEOF
5629 if ac_fn_c_try_compile "$LINENO"; then :
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5631 $as_echo "yes" >&6; }
5632 else
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5634 $as_echo "buggy but acceptable" >&6; }
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }; have_gmp=no
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 # Now check the MPFR library.
5645 if test x"$have_gmp" = xyes; then
5646 saved_LIBS="$LIBS"
5647 LIBS="$LIBS $gmplibs"
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5649 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <mpc.h>
5654 main ()
5657 mpfr_t n;
5658 mpfr_t x;
5659 mpc_t c;
5660 int t;
5661 mpfr_init (n);
5662 mpfr_init (x);
5663 mpfr_atan2 (n, n, x, GMP_RNDN);
5664 mpfr_erfc (n, x, GMP_RNDN);
5665 mpfr_subnormalize (x, t, GMP_RNDN);
5666 mpfr_clear(n);
5667 mpfr_clear(x);
5668 mpc_init2 (c, 53);
5669 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5670 mpc_cosh (c, c, MPC_RNDNN);
5671 mpc_pow (c, c, c, MPC_RNDNN);
5672 mpc_acosh (c, c, MPC_RNDNN);
5673 mpc_clear (c);
5676 return 0;
5678 _ACEOF
5679 if ac_fn_c_try_link "$LINENO"; then :
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5681 $as_echo "yes" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }; have_gmp=no
5686 rm -f core conftest.err conftest.$ac_objext \
5687 conftest$ac_exeext conftest.$ac_ext
5688 LIBS="$saved_LIBS"
5691 CFLAGS="$saved_CFLAGS"
5693 # The library versions listed in the error message below should match
5694 # the HARD-minimums enforced above.
5695 if test x$have_gmp != xyes; then
5696 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5697 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5698 their locations. Source code for these libraries can be found at
5699 their respective hosting sites as well as at
5700 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5701 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5702 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5703 make sure that you have installed both the libraries and the header
5704 files. They may be located in separate packages." "$LINENO" 5
5708 # Flags needed for both GMP, MPFR and/or MPC.
5716 # Allow host libstdc++ to be specified for static linking with PPL.
5718 # Check whether --with-host-libstdcxx was given.
5719 if test "${with_host_libstdcxx+set}" = set; then :
5720 withval=$with_host_libstdcxx;
5724 case $with_host_libstdcxx in
5725 no|yes)
5726 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5728 esac
5730 # Libraries to use for stage1 or when not bootstrapping.
5732 # Check whether --with-stage1-libs was given.
5733 if test "${with_stage1_libs+set}" = set; then :
5734 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5735 stage1_libs=
5736 else
5737 stage1_libs=$withval
5739 else
5740 stage1_libs=$with_host_libstdcxx
5745 # Linker flags to use for stage1 or when not bootstrapping.
5747 # Check whether --with-stage1-ldflags was given.
5748 if test "${with_stage1_ldflags+set}" = set; then :
5749 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5750 stage1_ldflags=
5751 else
5752 stage1_ldflags=$withval
5754 else
5755 stage1_ldflags=
5756 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5757 # if supported. But if the user explicitly specified the libraries to use,
5758 # trust that they are doing what they want.
5759 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5760 stage1_ldflags="-static-libstdc++ -static-libgcc"
5766 # Libraries to use for stage2 and later builds. This defaults to the
5767 # argument passed to --with-host-libstdcxx.
5769 # Check whether --with-boot-libs was given.
5770 if test "${with_boot_libs+set}" = set; then :
5771 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5772 poststage1_libs=
5773 else
5774 poststage1_libs=$withval
5776 else
5777 poststage1_libs=$with_host_libstdcxx
5782 # Linker flags to use for stage2 and later builds.
5784 # Check whether --with-boot-ldflags was given.
5785 if test "${with_boot_ldflags+set}" = set; then :
5786 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5787 poststage1_ldflags=
5788 else
5789 poststage1_ldflags=$withval
5791 else
5792 poststage1_ldflags=
5793 # In stages 2 and 3, default to linking libstdc++ and libgcc
5794 # statically. But if the user explicitly specified the libraries to
5795 # use, trust that they are doing what they want.
5796 if test "$poststage1_libs" = ""; then
5797 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5803 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5804 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5805 # config/isl.m4
5808 # Check whether --with-cloog was given.
5809 if test "${with_cloog+set}" = set; then :
5810 withval=$with_cloog;
5814 # Check whether --with-isl was given.
5815 if test "${with_isl+set}" = set; then :
5816 withval=$with_isl;
5820 # Treat --without-isl as a request to disable
5821 # GRAPHITE support and skip all following checks.
5822 if test "x$with_isl" != "xno"; then
5823 # Check for ISL
5826 # Check whether --with-isl-include was given.
5827 if test "${with_isl_include+set}" = set; then :
5828 withval=$with_isl_include;
5832 # Check whether --with-isl-lib was given.
5833 if test "${with_isl_lib+set}" = set; then :
5834 withval=$with_isl_lib;
5838 # Check whether --enable-isl-version-check was given.
5839 if test "${enable_isl_version_check+set}" = set; then :
5840 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5841 else
5842 ENABLE_ISL_CHECK=yes
5846 # Initialize isllibs and islinc.
5847 case $with_isl in
5849 isllibs=
5850 islinc=
5852 "" | yes)
5855 isllibs="-L$with_isl/lib"
5856 islinc="-I$with_isl/include"
5858 esac
5859 if test "x${with_isl_include}" != x ; then
5860 islinc="-I$with_isl_include"
5862 if test "x${with_isl_lib}" != x; then
5863 isllibs="-L$with_isl_lib"
5865 if test "x${islinc}" = x && test "x${isllibs}" = x \
5866 && test -d ${srcdir}/isl; then
5867 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5868 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5869 ENABLE_ISL_CHECK=no
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5871 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5874 islinc="-DCLOOG_INT_GMP ${islinc}"
5875 isllibs="${isllibs} -lisl"
5879 if test "${ENABLE_ISL_CHECK}" = yes ; then
5880 _isl_saved_CFLAGS=$CFLAGS
5881 _isl_saved_LDFLAGS=$LDFLAGS
5882 _isl_saved_LIBS=$LIBS
5884 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5885 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5886 LIBS="${_isl_saved_LIBS} -lisl"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5
5889 $as_echo_n "checking for compatible ISL... " >&6; }
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5892 #include <isl/val.h>
5894 main ()
5898 return 0;
5900 _ACEOF
5901 if ac_fn_c_try_link "$LINENO"; then :
5902 gcc_cv_isl=yes
5903 else
5904 gcc_cv_isl=no
5906 rm -f core conftest.err conftest.$ac_objext \
5907 conftest$ac_exeext conftest.$ac_ext
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5909 $as_echo "$gcc_cv_isl" >&6; }
5911 CFLAGS=$_isl_saved_CFLAGS
5912 LDFLAGS=$_isl_saved_LDFLAGS
5913 LIBS=$_isl_saved_LIBS
5921 if test "x${with_isl}" = xno; then
5922 graphite_requested=no
5923 elif test "x${with_isl}" != x \
5924 || test "x${with_isl_include}" != x \
5925 || test "x${with_isl_lib}" != x ; then
5926 graphite_requested=yes
5927 else
5928 graphite_requested=no
5933 if test "${gcc_cv_isl}" = no ; then
5934 isllibs=
5935 islinc=
5938 if test "${graphite_requested}" = yes \
5939 && test "x${isllibs}" = x \
5940 && test "x${islinc}" = x ; then
5942 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5947 if test "x$gcc_cv_isl" != "xno"; then
5948 # Check for CLOOG
5951 # Check whether --with-cloog-include was given.
5952 if test "${with_cloog_include+set}" = set; then :
5953 withval=$with_cloog_include;
5957 # Check whether --with-cloog-lib was given.
5958 if test "${with_cloog_lib+set}" = set; then :
5959 withval=$with_cloog_lib;
5963 # Check whether --enable-cloog-version-check was given.
5964 if test "${enable_cloog_version_check+set}" = set; then :
5965 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5966 else
5967 ENABLE_CLOOG_CHECK=yes
5971 # Initialize clooglibs and clooginc.
5972 case $with_cloog in
5974 clooglibs=
5975 clooginc=
5977 "" | yes)
5980 clooglibs="-L$with_cloog/lib"
5981 clooginc="-I$with_cloog/include"
5983 esac
5984 if test "x${with_cloog_include}" != x ; then
5985 clooginc="-I$with_cloog_include"
5987 if test "x${with_cloog_lib}" != x; then
5988 clooglibs="-L$with_cloog_lib"
5990 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5991 && test -d ${srcdir}/cloog; then
5992 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5993 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include'
5994 ENABLE_CLOOG_CHECK=no
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
5996 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
5999 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6000 clooglibs="${clooglibs} -lcloog-isl"
6006 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6007 _cloog_saved_CFLAGS=$CFLAGS
6008 _cloog_saved_LDFLAGS=$LDFLAGS
6010 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6011 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.1 of CLooG" >&5
6014 $as_echo_n "checking for version 0.18.1 of CLooG... " >&6; }
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017 #include "cloog/version.h"
6019 main ()
6021 #if CLOOG_VERSION_MAJOR != 0 \
6022 || CLOOG_VERSION_MINOR != 18 \
6023 || CLOOG_VERSION_REVISION < 1
6024 choke me
6025 #endif
6027 return 0;
6029 _ACEOF
6030 if ac_fn_c_try_compile "$LINENO"; then :
6031 gcc_cv_cloog=yes
6032 else
6033 gcc_cv_cloog=no
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6037 $as_echo "$gcc_cv_cloog" >&6; }
6039 CFLAGS=$_cloog_saved_CFLAGS
6040 LDFLAGS=$_cloog_saved_LDFLAGS
6049 if test "x${with_cloog}" = xno; then
6050 graphite_requested=no
6051 elif test "x${with_cloog}" != x \
6052 || test "x${with_cloog_include}" != x \
6053 || test "x${with_cloog_lib}" != x ; then
6054 graphite_requested=yes
6055 else
6056 graphite_requested=no
6061 if test "${gcc_cv_cloog}" = no ; then
6062 clooglibs=
6063 clooginc=
6066 if test "${graphite_requested}" = yes \
6067 && test "x${clooglibs}" = x \
6068 && test "x${clooginc}" = x ; then
6070 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6077 # If the ISL check failed, disable builds of in-tree
6078 # variants of both ISL and CLooG
6079 if test "x$with_isl" = xno ||
6080 test "x$gcc_cv_isl" = xno; then
6081 noconfigdirs="$noconfigdirs cloog isl"
6082 islinc=
6083 clooginc=
6084 clooglibs=
6087 # If the CLooG check failed, disable builds of in-tree
6088 # variants of CLooG
6089 if test "x$with_cloog" = xno ||
6090 test "x$gcc_cv_cloog" = xno; then
6091 noconfigdirs="$noconfigdirs cloog isl"
6092 clooginc=
6093 clooglibs=
6101 # Check for LTO support.
6102 # Check whether --enable-lto was given.
6103 if test "${enable_lto+set}" = set; then :
6104 enableval=$enable_lto; enable_lto=$enableval
6105 else
6106 enable_lto=yes; default_enable_lto=yes
6113 target_elf=no
6114 case $target in
6115 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6116 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6117 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6118 target_elf=no
6121 target_elf=yes
6123 esac
6125 if test $target_elf = yes; then :
6126 # ELF platforms build the lto-plugin always.
6127 build_lto_plugin=yes
6129 else
6130 if test x"$default_enable_lto" = x"yes" ; then
6131 case $target in
6132 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6133 # On other non-ELF platforms, LTO has yet to be validated.
6134 *) enable_lto=no ;;
6135 esac
6136 else
6137 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6138 # It would also be nice to check the binutils support, but we don't
6139 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6140 # warn during gcc/ subconfigure; unless you're bootstrapping with
6141 # -flto it won't be needed until after installation anyway.
6142 case $target in
6143 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6144 *) if test x"$enable_lto" = x"yes"; then
6145 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6148 esac
6150 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6151 # Build it unless LTO was explicitly disabled.
6152 case $target in
6153 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6154 *) ;;
6155 esac
6160 # Check whether --enable-linker-plugin-configure-flags was given.
6161 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6162 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6163 else
6164 extra_linker_plugin_configure_flags=
6168 # Check whether --enable-linker-plugin-flags was given.
6169 if test "${enable_linker_plugin_flags+set}" = set; then :
6170 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6171 else
6172 extra_linker_plugin_flags=
6178 # By default, C and C++ are the only stage 1 languages.
6179 stage1_languages=,c,
6181 # Target libraries that we bootstrap.
6182 bootstrap_target_libs=,target-libgcc,
6184 # Figure out what language subdirectories are present.
6185 # Look if the user specified --enable-languages="..."; if not, use
6186 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6187 # go away some day.
6188 # NB: embedded tabs in this IF block -- do not untabify
6189 if test -d ${srcdir}/gcc; then
6190 if test x"${enable_languages+set}" != xset; then
6191 if test x"${LANGUAGES+set}" = xset; then
6192 enable_languages="${LANGUAGES}"
6193 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6194 else
6195 enable_languages=all
6197 else
6198 if test x"${enable_languages}" = x ||
6199 test x"${enable_languages}" = xyes;
6200 then
6201 echo configure.in: --enable-languages needs at least one language argument 1>&2
6202 exit 1
6205 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6207 # 'f95' is the old name for the 'fortran' language. We issue a warning
6208 # and make the substitution.
6209 case ,${enable_languages}, in
6210 *,f95,*)
6211 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6212 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6214 esac
6216 # If bootstrapping, C++ must be enabled.
6217 case ",$enable_languages,:$enable_bootstrap" in
6218 *,c++,*:*) ;;
6219 *:yes)
6220 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6221 enable_languages="${enable_languages},c++"
6222 else
6223 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6226 esac
6228 # First scan to see if an enabled language requires some other language.
6229 # We assume that a given config-lang.in will list all the language
6230 # front ends it requires, even if some are required indirectly.
6231 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6232 case ${lang_frag} in
6233 ..) ;;
6234 # The odd quoting in the next line works around
6235 # an apparent bug in bash 1.12 on linux.
6236 ${srcdir}/gcc/[*]/config-lang.in) ;;
6238 # From the config-lang.in, get $language, $lang_requires, and
6239 # $lang_requires_boot_languages.
6240 language=
6241 lang_requires=
6242 lang_requires_boot_languages=
6243 . ${lang_frag}
6244 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6245 case ,${enable_languages}, in
6246 *,$other,*) ;;
6247 *,all,*) ;;
6248 *,$language,*)
6249 echo " \`$other' language required by \`$language'; enabling" 1>&2
6250 enable_languages="${enable_languages},${other}"
6252 esac
6253 done
6254 for other in ${lang_requires_boot_languages} ; do
6255 if test "$other" != "c"; then
6256 case ,${enable_stage1_languages}, in
6257 *,$other,*) ;;
6258 *,all,*) ;;
6260 case ,${enable_languages}, in
6261 *,$language,*)
6262 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6263 enable_stage1_languages="$enable_stage1_languages,${other}"
6265 esac
6267 esac
6269 done
6271 esac
6272 done
6274 new_enable_languages=,c,
6276 # If LTO is enabled, add the LTO front end.
6277 if test "$enable_lto" = "yes" ; then
6278 case ,${enable_languages}, in
6279 *,lto,*) ;;
6280 *) enable_languages="${enable_languages},lto" ;;
6281 esac
6282 if test "${build_lto_plugin}" = "yes" ; then
6283 configdirs="$configdirs lto-plugin"
6287 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6288 potential_languages=,c,
6290 enabled_target_libs=
6291 disabled_target_libs=
6293 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6294 case ${lang_frag} in
6295 ..) ;;
6296 # The odd quoting in the next line works around
6297 # an apparent bug in bash 1.12 on linux.
6298 ${srcdir}/gcc/[*]/config-lang.in) ;;
6300 # From the config-lang.in, get $language, $target_libs,
6301 # $lang_dirs, $boot_language, and $build_by_default
6302 language=
6303 target_libs=
6304 lang_dirs=
6305 subdir_requires=
6306 boot_language=no
6307 build_by_default=yes
6308 . ${lang_frag}
6309 if test x${language} = x; then
6310 echo "${lang_frag} doesn't set \$language." 1>&2
6311 exit 1
6314 if test "$language" = "c++"; then
6315 boot_language=yes
6318 add_this_lang=no
6319 case ,${enable_languages}, in
6320 *,${language},*)
6321 # Language was explicitly selected; include it
6322 # unless it is C, which is enabled by default.
6323 if test "$language" != "c"; then
6324 add_this_lang=yes
6327 *,all,*)
6328 # 'all' was selected, select it if it is a default language
6329 if test "$language" != "c"; then
6330 add_this_lang=${build_by_default}
6333 esac
6335 # Disable languages that need other directories if these aren't available.
6336 for i in $subdir_requires; do
6337 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6338 case ,${enable_languages}, in
6339 *,${language},*)
6340 # Specifically requested language; tell them.
6341 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6344 # Silently disable.
6345 add_this_lang=unsupported
6347 esac
6348 done
6350 # Disable Ada if no preexisting GNAT is available.
6351 case ,${enable_languages},:${language}:${have_gnat} in
6352 *,${language},*:ada:no)
6353 # Specifically requested language; tell them.
6354 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6356 *:ada:no)
6357 # Silently disable.
6358 add_this_lang=unsupported
6360 esac
6362 # Disable a language that is unsupported by the target.
6363 case " $unsupported_languages " in
6364 *" $language "*)
6365 add_this_lang=unsupported
6367 esac
6369 case $add_this_lang in
6370 unsupported)
6371 # Remove language-dependent dirs.
6372 disabled_target_libs="$disabled_target_libs $target_libs"
6373 noconfigdirs="$noconfigdirs $lang_dirs"
6376 # Remove language-dependent dirs; still show language as supported.
6377 disabled_target_libs="$disabled_target_libs $target_libs"
6378 noconfigdirs="$noconfigdirs $lang_dirs"
6379 potential_languages="${potential_languages}${language},"
6381 yes)
6382 new_enable_languages="${new_enable_languages}${language},"
6383 potential_languages="${potential_languages}${language},"
6384 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6385 enabled_target_libs="$enabled_target_libs $target_libs"
6386 case "${boot_language}:,$enable_stage1_languages," in
6387 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6388 # Add to (comma-separated) list of stage 1 languages.
6389 case ",$stage1_languages," in
6390 *,$language,* | ,yes, | ,all,) ;;
6391 *) stage1_languages="${stage1_languages}${language}," ;;
6392 esac
6393 # We need to bootstrap any supporting libraries.
6394 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6396 esac
6398 esac
6400 esac
6401 done
6403 # Add target libraries which are only needed for disabled languages
6404 # to noconfigdirs.
6405 if test -n "$disabled_target_libs"; then
6406 for dir in $disabled_target_libs; do
6407 case " $enabled_target_libs " in
6408 *" ${dir} "*) ;;
6409 *) noconfigdirs="$noconfigdirs $dir" ;;
6410 esac
6411 done
6414 # Check whether --enable-stage1-languages was given.
6415 if test "${enable_stage1_languages+set}" = set; then :
6416 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6417 ,no,|,,)
6418 # Set it to something that will have no effect in the loop below
6419 enable_stage1_languages=c ;;
6420 ,yes,)
6421 enable_stage1_languages=`echo $new_enable_languages | \
6422 sed -e "s/^,//" -e "s/,$//" ` ;;
6423 *,all,*)
6424 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6425 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6426 esac
6428 # Add "good" languages from enable_stage1_languages to stage1_languages,
6429 # while "bad" languages go in missing_languages. Leave no duplicates.
6430 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6431 case $potential_languages in
6432 *,$i,*)
6433 case $stage1_languages in
6434 *,$i,*) ;;
6435 *) stage1_languages="$stage1_languages$i," ;;
6436 esac ;;
6438 case $missing_languages in
6439 *,$i,*) ;;
6440 *) missing_languages="$missing_languages$i," ;;
6441 esac ;;
6442 esac
6443 done
6447 # Remove leading/trailing commas that were added for simplicity
6448 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6449 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6450 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6451 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6453 if test "x$missing_languages" != x; then
6454 as_fn_error "
6455 The following requested languages could not be built: ${missing_languages}
6456 Supported languages are: ${potential_languages}" "$LINENO" 5
6458 if test "x$new_enable_languages" != "x$enable_languages"; then
6459 echo The following languages will be built: ${new_enable_languages}
6460 enable_languages="$new_enable_languages"
6464 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6467 # Handle --disable-<component> generically.
6468 for dir in $configdirs $build_configdirs $target_configdirs ; do
6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6470 varname=`echo $dirname | sed -e s/+/_/g`
6471 if eval test x\${enable_${varname}} "=" xno ; then
6472 noconfigdirs="$noconfigdirs $dir"
6474 done
6476 # Check for Boehm's garbage collector
6477 # Check whether --enable-objc-gc was given.
6478 if test "${enable_objc_gc+set}" = set; then :
6479 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6480 *,objc,*:*:yes:*target-boehm-gc*)
6481 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6483 esac
6487 # Make sure we only build Boehm's garbage collector if required.
6488 case ,${enable_languages},:${enable_objc_gc} in
6489 *,objc,*:yes)
6490 # Keep target-boehm-gc if requested for Objective-C.
6493 # Otherwise remove target-boehm-gc depending on target-libjava.
6494 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6495 noconfigdirs="$noconfigdirs target-boehm-gc"
6498 esac
6500 # Disable libcilkrts, libitm, libsanitizer, libvtv if we're not building C++
6501 case ,${enable_languages}, in
6502 *,c++,*)
6503 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6504 case "${noconfigdirs}" in
6505 *target-libstdc++-v3*)
6506 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6508 *) ;;
6509 esac
6512 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6514 esac
6516 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6517 # $build_configdirs and $target_configdirs.
6518 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6520 notsupp=""
6521 for dir in . $skipdirs $noconfigdirs ; do
6522 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6523 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6524 configdirs=`echo " ${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 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6534 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6535 if test -r $srcdir/$dirname/configure ; then
6536 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6537 true
6538 else
6539 notsupp="$notsupp $dir"
6543 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6544 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6545 if test -r $srcdir/$dirname/configure ; then
6546 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6547 true
6548 else
6549 notsupp="$notsupp $dir"
6553 done
6555 # Quietly strip out all directories which aren't configurable in this tree.
6556 # This relies on all configurable subdirectories being autoconfiscated, which
6557 # is now the case.
6558 build_configdirs_all="$build_configdirs"
6559 build_configdirs=
6560 for i in ${build_configdirs_all} ; do
6561 j=`echo $i | sed -e s/build-//g`
6562 if test -f ${srcdir}/$j/configure ; then
6563 build_configdirs="${build_configdirs} $i"
6565 done
6567 configdirs_all="$configdirs"
6568 configdirs=
6569 for i in ${configdirs_all} ; do
6570 if test -f ${srcdir}/$i/configure ; then
6571 configdirs="${configdirs} $i"
6573 done
6575 target_configdirs_all="$target_configdirs"
6576 target_configdirs=
6577 for i in ${target_configdirs_all} ; do
6578 j=`echo $i | sed -e s/target-//g`
6579 if test -f ${srcdir}/$j/configure ; then
6580 target_configdirs="${target_configdirs} $i"
6582 done
6584 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6585 # so we have to add it after the preceding checks.
6586 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6587 then
6588 case " $configdirs " in
6589 *" libiberty "*)
6590 # If we can build libiberty, we can also build libiberty-linker-plugin.
6591 configdirs="$configdirs libiberty-linker-plugin"
6592 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6593 --with-libiberty=../libiberty-linker-plugin";;
6595 as_fn_error "libiberty missing" "$LINENO" 5;;
6596 esac
6599 # Sometimes we have special requirements for the host libiberty.
6600 extra_host_libiberty_configure_flags=
6601 case " $configdirs " in
6602 *" lto-plugin "* | *" libcc1 "*)
6603 # When these are to be built as shared libraries, the same applies to
6604 # libiberty.
6605 extra_host_libiberty_configure_flags=--enable-shared
6607 esac
6610 # Produce a warning message for the subdirs we can't configure.
6611 # This isn't especially interesting in the Cygnus tree, but in the individual
6612 # FSF releases, it's important to let people know when their machine isn't
6613 # supported by the one or two programs in a package.
6615 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6616 # If $appdirs is non-empty, at least one of those directories must still
6617 # be configured, or we error out. (E.g., if the gas release supports a
6618 # specified target in some subdirs but not the gas subdir, we shouldn't
6619 # pretend that all is well.)
6620 if test -n "$appdirs" ; then
6621 for dir in $appdirs ; do
6622 if test -r $dir/Makefile.in ; then
6623 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6624 appdirs=""
6625 break
6627 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6628 appdirs=""
6629 break
6632 done
6633 if test -n "$appdirs" ; then
6634 echo "*** This configuration is not supported by this package." 1>&2
6635 exit 1
6638 # Okay, some application will build, or we don't care to check. Still
6639 # notify of subdirs not getting built.
6640 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6641 echo " ${notsupp}" 1>&2
6642 echo " (Any other directories should still work fine.)" 1>&2
6645 case "$host" in
6646 *msdosdjgpp*)
6647 enable_gdbtk=no ;;
6648 esac
6650 # To find our prefix, in gcc_cv_tool_prefix.
6652 # The user is always right.
6653 if test "${PATH_SEPARATOR+set}" != set; then
6654 echo "#! /bin/sh" >conf$$.sh
6655 echo "exit 0" >>conf$$.sh
6656 chmod +x conf$$.sh
6657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6658 PATH_SEPARATOR=';'
6659 else
6660 PATH_SEPARATOR=:
6662 rm -f conf$$.sh
6667 if test "x$exec_prefix" = xNONE; then
6668 if test "x$prefix" = xNONE; then
6669 gcc_cv_tool_prefix=$ac_default_prefix
6670 else
6671 gcc_cv_tool_prefix=$prefix
6673 else
6674 gcc_cv_tool_prefix=$exec_prefix
6677 # If there is no compiler in the tree, use the PATH only. In any
6678 # case, if there is no compiler in the tree nobody should use
6679 # AS_FOR_TARGET and LD_FOR_TARGET.
6680 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6681 gcc_version=`cat $srcdir/gcc/BASE-VER`
6682 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6683 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6684 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6685 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6686 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6687 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6688 else
6689 gcc_cv_tool_dirs=
6692 if test x$build = x$target && test -n "$md_exec_prefix"; then
6693 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6698 copy_dirs=
6701 # Check whether --with-build-sysroot was given.
6702 if test "${with_build_sysroot+set}" = set; then :
6703 withval=$with_build_sysroot; if test x"$withval" != x ; then
6704 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6706 else
6707 SYSROOT_CFLAGS_FOR_TARGET=
6713 # Check whether --with-debug-prefix-map was given.
6714 if test "${with_debug_prefix_map+set}" = set; then :
6715 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6716 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6717 for debug_map in $withval; do
6718 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6719 done
6721 else
6722 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6727 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6728 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6729 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6730 # We want to ensure that TARGET libraries (which we know are built with
6731 # gcc) are built with "-O2 -g", so include those options when setting
6732 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6733 if test "x$CFLAGS_FOR_TARGET" = x; then
6734 CFLAGS_FOR_TARGET=$CFLAGS
6735 case " $CFLAGS " in
6736 *" -O2 "*) ;;
6737 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6738 esac
6739 case " $CFLAGS " in
6740 *" -g "* | *" -g3 "*) ;;
6741 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6742 esac
6746 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6747 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6748 case " $CXXFLAGS " in
6749 *" -O2 "*) ;;
6750 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6751 esac
6752 case " $CXXFLAGS " in
6753 *" -g "* | *" -g3 "*) ;;
6754 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6755 esac
6761 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6762 # the named directory are copied to $(tooldir)/sys-include.
6763 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6764 if test x${is_cross_compiler} = xno ; then
6765 echo 1>&2 '***' --with-headers is only supported when cross compiling
6766 exit 1
6768 if test x"${with_headers}" != xyes ; then
6769 x=${gcc_cv_tool_prefix}
6770 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6774 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6775 # the name directories are copied to $(tooldir)/lib. Multiple directories
6776 # are permitted.
6777 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6778 if test x${is_cross_compiler} = xno ; then
6779 echo 1>&2 '***' --with-libs is only supported when cross compiling
6780 exit 1
6782 if test x"${with_libs}" != xyes ; then
6783 # Copy the libraries in reverse order, so that files in the first named
6784 # library override files in subsequent libraries.
6785 x=${gcc_cv_tool_prefix}
6786 for l in ${with_libs}; do
6787 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6788 done
6792 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6794 # This is done by determining whether or not the appropriate directory
6795 # is available, and by checking whether or not specific configurations
6796 # have requested that this magic not happen.
6798 # The command line options always override the explicit settings in
6799 # configure.in, and the settings in configure.in override this magic.
6801 # If the default for a toolchain is to use GNU as and ld, and you don't
6802 # want to do that, then you should use the --without-gnu-as and
6803 # --without-gnu-ld options for the configure script. Similarly, if
6804 # the default is to use the included zlib and you don't want to do that,
6805 # you should use the --with-system-zlib option for the configure script.
6807 if test x${use_gnu_as} = x &&
6808 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6809 with_gnu_as=yes
6810 extra_host_args="$extra_host_args --with-gnu-as"
6813 if test x${use_gnu_ld} = x &&
6814 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6815 with_gnu_ld=yes
6816 extra_host_args="$extra_host_args --with-gnu-ld"
6819 if test x${use_included_zlib} = x &&
6820 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6822 else
6823 with_system_zlib=yes
6824 extra_host_args="$extra_host_args --with-system-zlib"
6827 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6828 # can detect this case.
6830 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6831 with_newlib=yes
6832 extra_host_args="$extra_host_args --with-newlib"
6835 # Handle ${copy_dirs}
6836 set fnord ${copy_dirs}
6837 shift
6838 while test $# != 0 ; do
6839 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6841 else
6842 echo Copying $1 to $2
6844 # Use the install script to create the directory and all required
6845 # parent directories.
6846 if test -d $2 ; then
6848 else
6849 echo >config.temp
6850 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6853 # Copy the directory, assuming we have tar.
6854 # FIXME: Should we use B in the second tar? Not all systems support it.
6855 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6857 # It is the responsibility of the user to correctly adjust all
6858 # symlinks. If somebody can figure out how to handle them correctly
6859 # here, feel free to add the code.
6861 echo $1 > $2/COPIED
6863 shift; shift
6864 done
6866 # Determine a target-dependent exec_prefix that the installed
6867 # gcc will search in. Keep this list sorted by triplet, with
6868 # the *-*-osname triplets last.
6869 md_exec_prefix=
6870 case "${target}" in
6871 i[34567]86-pc-msdosdjgpp*)
6872 md_exec_prefix=/dev/env/DJDIR/bin
6874 *-*-hpux* | \
6875 *-*-nto-qnx* | \
6876 *-*-solaris2*)
6877 md_exec_prefix=/usr/ccs/bin
6879 esac
6881 extra_arflags_for_target=
6882 extra_nmflags_for_target=
6883 extra_ranlibflags_for_target=
6884 target_makefile_frag=/dev/null
6885 case "${target}" in
6886 spu-*-*)
6887 target_makefile_frag="config/mt-spu"
6889 mips*-sde-elf* | mips*-mti-elf*)
6890 target_makefile_frag="config/mt-sde"
6892 mipsisa*-*-elfoabi*)
6893 target_makefile_frag="config/mt-mips-elfoabi"
6895 mips*-*-*linux* | mips*-*-gnu*)
6896 target_makefile_frag="config/mt-mips-gnu"
6898 nios2-*-elf*)
6899 target_makefile_frag="config/mt-nios2-elf"
6901 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6902 target_makefile_frag="config/mt-gnu"
6904 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6905 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6906 # commands to handle both 32-bit and 64-bit objects. These flags are
6907 # harmless if we're using GNU nm or ar.
6908 extra_arflags_for_target=" -X32_64"
6909 extra_nmflags_for_target=" -B -X32_64"
6911 esac
6913 alphaieee_frag=/dev/null
6914 case $target in
6915 alpha*-*-*)
6916 # This just makes sure to use the -mieee option to build target libs.
6917 # This should probably be set individually by each library.
6918 alphaieee_frag="config/mt-alphaieee"
6920 esac
6922 # If --enable-target-optspace always use -Os instead of -O2 to build
6923 # the target libraries, similarly if it is not specified, use -Os
6924 # on selected platforms.
6925 ospace_frag=/dev/null
6926 case "${enable_target_optspace}:${target}" in
6927 yes:*)
6928 ospace_frag="config/mt-ospace"
6930 :d30v-*)
6931 ospace_frag="config/mt-d30v"
6933 :m32r-* | :d10v-* | :fr30-*)
6934 ospace_frag="config/mt-ospace"
6936 no:* | :*)
6939 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6941 esac
6943 # Some systems (e.g., one of the i386-aix systems the gas testers are
6944 # using) don't handle "\$" correctly, so don't use it here.
6945 tooldir='${exec_prefix}'/${target_noncanonical}
6946 build_tooldir=${tooldir}
6948 # Create a .gdbinit file which runs the one in srcdir
6949 # and tells GDB to look there for source files.
6951 if test -r ${srcdir}/.gdbinit ; then
6952 case ${srcdir} in
6953 .) ;;
6954 *) cat > ./.gdbinit <<EOF
6955 # ${NO_EDIT}
6956 dir ${srcdir}
6957 dir .
6958 source ${srcdir}/.gdbinit
6961 esac
6964 # Make sure that the compiler is able to generate an executable. If it
6965 # can't, we are probably in trouble. We don't care whether we can run the
6966 # executable--we might be using a cross compiler--we only care whether it
6967 # can be created. At this point the main configure script has set CC.
6968 we_are_ok=no
6969 echo "int main () { return 0; }" > conftest.c
6970 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6971 if test $? = 0 ; then
6972 if test -s conftest || test -s conftest.exe ; then
6973 we_are_ok=yes
6976 case $we_are_ok in
6978 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6979 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6980 rm -f conftest*
6981 exit 1
6983 esac
6984 rm -f conftest*
6986 # Decide which environment variable is used to find dynamic libraries.
6987 case "${host}" in
6988 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6989 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6990 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6991 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6992 esac
6994 # On systems where the dynamic library environment variable is PATH,
6995 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6996 # built executables to PATH.
6997 if test "$RPATH_ENVVAR" = PATH; then
6998 GCC_SHLIB_SUBDIR=/shlib
6999 else
7000 GCC_SHLIB_SUBDIR=
7003 # Adjust the toplevel makefile according to whether bootstrap was selected.
7004 case $enable_bootstrap in
7005 yes)
7006 bootstrap_suffix=bootstrap
7007 BUILD_CONFIG=bootstrap-debug
7010 bootstrap_suffix=no-bootstrap
7011 BUILD_CONFIG=
7013 esac
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7016 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7019 # Check whether --with-build-config was given.
7020 if test "${with_build_config+set}" = set; then :
7021 withval=$with_build_config; case $with_build_config in
7022 yes) with_build_config= ;;
7023 no) with_build_config= BUILD_CONFIG= ;;
7024 esac
7028 if test "x${with_build_config}" != x; then
7029 BUILD_CONFIG=$with_build_config
7030 else
7031 case $BUILD_CONFIG in
7032 bootstrap-debug)
7033 if echo "int f (void) { return 0; }" > conftest.c &&
7034 ${CC} -c conftest.c &&
7035 mv conftest.o conftest.o.g0 &&
7036 ${CC} -c -g conftest.c &&
7037 mv conftest.o conftest.o.g &&
7038 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7040 else
7041 BUILD_CONFIG=
7043 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7045 esac
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7048 $as_echo "$BUILD_CONFIG" >&6; }
7051 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7053 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7054 # Check whether --enable-vtable-verify was given.
7055 if test "${enable_vtable_verify+set}" = set; then :
7056 enableval=$enable_vtable_verify; case "$enableval" in
7057 yes) enable_vtable_verify=yes ;;
7058 no) enable_vtable_verify=no ;;
7059 *) enable_vtable_verify=no;;
7060 esac
7061 else
7062 enable_vtable_verify=no
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7066 $as_echo "$enable_vtable_verify" >&6; }
7068 # Record target_configdirs and the configure arguments for target and
7069 # build configuration in Makefile.
7070 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7071 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7072 bootstrap_fixincludes=no
7074 # If we are building libgomp, bootstrap it.
7075 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7076 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7079 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7080 # or bootstrap-ubsan, bootstrap it.
7081 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7082 case "$BUILD_CONFIG" in
7083 *bootstrap-asan* | *bootstrap-ubsan* )
7084 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7085 bootstrap_fixincludes=yes
7087 esac
7090 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7091 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7092 test "$enable_vtable_verify" != no; then
7093 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7096 # Determine whether gdb needs tk/tcl or not.
7097 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7098 # and in that case we want gdb to be built without tk. Ugh!
7099 # In fact I believe gdb is the *only* package directly dependent on tk,
7100 # so we should be able to put the 'maybe's in unconditionally and
7101 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7102 # 100% sure that that's safe though.
7104 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7105 case "$enable_gdbtk" in
7107 GDB_TK="" ;;
7108 yes)
7109 GDB_TK="${gdb_tk}" ;;
7111 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7112 # distro. Eventually someone will fix this and move Insight, nee
7113 # gdbtk to a separate directory.
7114 if test -d ${srcdir}/gdb/gdbtk ; then
7115 GDB_TK="${gdb_tk}"
7116 else
7117 GDB_TK=""
7120 esac
7121 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7122 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7124 # Strip out unwanted targets.
7126 # While at that, we remove Makefiles if we were started for recursive
7127 # configuration, so that the top-level Makefile reconfigures them,
7128 # like we used to do when configure itself was recursive.
7130 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7131 # but now we're fixing up the Makefile ourselves with the additional
7132 # commands passed to AC_CONFIG_FILES. Use separate variables
7133 # extrasub-{build,host,target} not because there is any reason to split
7134 # the substitutions up that way, but only to remain below the limit of
7135 # 99 commands in a script, for HP-UX sed.
7136 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7138 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7139 yes:yes:*\ gold\ *:*,c++,*) ;;
7140 yes:yes:*\ gold\ *:*)
7141 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7143 esac
7145 extrasub_build=
7146 for module in ${build_configdirs} ; do
7147 if test -z "${no_recursion}" \
7148 && test -f ${build_subdir}/${module}/Makefile; then
7149 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7150 rm -f ${build_subdir}/${module}/Makefile
7152 extrasub_build="$extrasub_build
7153 /^@if build-$module\$/d
7154 /^@endif build-$module\$/d
7155 /^@if build-$module-$bootstrap_suffix\$/d
7156 /^@endif build-$module-$bootstrap_suffix\$/d"
7157 done
7158 extrasub_host=
7159 for module in ${configdirs} ; do
7160 if test -z "${no_recursion}"; then
7161 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7162 if test -f ${file}; then
7163 echo 1>&2 "*** removing ${file} to force reconfigure"
7164 rm -f ${file}
7166 done
7168 case ${module},${bootstrap_fixincludes} in
7169 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7170 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7171 esac
7172 extrasub_host="$extrasub_host
7173 /^@if $module\$/d
7174 /^@endif $module\$/d
7175 /^@if $module-$host_bootstrap_suffix\$/d
7176 /^@endif $module-$host_bootstrap_suffix\$/d"
7177 done
7178 extrasub_target=
7179 for module in ${target_configdirs} ; do
7180 if test -z "${no_recursion}" \
7181 && test -f ${target_subdir}/${module}/Makefile; then
7182 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7183 rm -f ${target_subdir}/${module}/Makefile
7186 # We only bootstrap target libraries listed in bootstrap_target_libs.
7187 case $bootstrap_target_libs in
7188 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7189 *) target_bootstrap_suffix=no-bootstrap ;;
7190 esac
7192 extrasub_target="$extrasub_target
7193 /^@if target-$module\$/d
7194 /^@endif target-$module\$/d
7195 /^@if target-$module-$target_bootstrap_suffix\$/d
7196 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7197 done
7199 # Do the final fixup along with target modules.
7200 extrasub_target="$extrasub_target
7201 /^@if /,/^@endif /d"
7203 # Create the serialization dependencies. This uses a temporary file.
7205 # Check whether --enable-serial-configure was given.
7206 if test "${enable_serial_configure+set}" = set; then :
7207 enableval=$enable_serial_configure;
7211 case ${enable_serial_configure} in
7212 yes)
7213 enable_serial_build_configure=yes
7214 enable_serial_host_configure=yes
7215 enable_serial_target_configure=yes
7217 esac
7219 # These force 'configure's to be done one at a time, to avoid problems
7220 # with contention over a shared config.cache.
7221 rm -f serdep.tmp
7222 echo '# serdep.tmp' > serdep.tmp
7223 olditem=
7224 test "x${enable_serial_build_configure}" = xyes &&
7225 for item in ${build_configdirs} ; do
7226 case ${olditem} in
7227 "") ;;
7228 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7229 esac
7230 olditem=${item}
7231 done
7232 olditem=
7233 test "x${enable_serial_host_configure}" = xyes &&
7234 for item in ${configdirs} ; do
7235 case ${olditem} in
7236 "") ;;
7237 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7238 esac
7239 olditem=${item}
7240 done
7241 olditem=
7242 test "x${enable_serial_target_configure}" = xyes &&
7243 for item in ${target_configdirs} ; do
7244 case ${olditem} in
7245 "") ;;
7246 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7247 esac
7248 olditem=${item}
7249 done
7250 serialization_dependencies=serdep.tmp
7253 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7254 # target, nonopt, and variable assignments. These are the ones we
7255 # might not want to pass down to subconfigures. The exception being
7256 # --cache-file=/dev/null, which is used to turn off the use of cache
7257 # files altogether, and which should be passed on to subconfigures.
7258 # Also strip program-prefix, program-suffix, and program-transform-name,
7259 # so that we can pass down a consistent program-transform-name.
7260 baseargs=
7261 tbaseargs=
7262 keep_next=no
7263 skip_next=no
7264 eval "set -- $ac_configure_args"
7265 for ac_arg
7267 if test X"$skip_next" = X"yes"; then
7268 skip_next=no
7269 continue
7271 if test X"$keep_next" = X"yes"; then
7272 case $ac_arg in
7273 *\'*)
7274 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7275 esac
7276 baseargs="$baseargs '$ac_arg'"
7277 tbaseargs="$tbaseargs '$ac_arg'"
7278 keep_next=no
7279 continue
7282 # Handle separated arguments. Based on the logic generated by
7283 # autoconf 2.59.
7284 case $ac_arg in
7285 *=* | --config-cache | -C | -disable-* | --disable-* \
7286 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7287 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7288 | -with-* | --with-* | -without-* | --without-* | --x)
7289 separate_arg=no
7292 separate_arg=yes
7295 separate_arg=no
7297 esac
7299 skip_targ=no
7300 case $ac_arg in
7302 --with-* | --without-*)
7303 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7305 case $libopt in
7306 *[-_]include)
7307 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7309 *[-_]lib)
7310 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7313 lib=$libopt
7315 esac
7318 case $lib in
7319 mpc | mpfr | gmp | isl | cloog)
7320 # If we're processing --with-$lib, --with-$lib-include or
7321 # --with-$lib-lib, for one of the libs above, and target is
7322 # different from host, don't pass the current argument to any
7323 # target library's configure.
7324 if test x$is_cross_compiler = xyes; then
7325 skip_targ=yes
7328 esac
7330 esac
7332 case "$ac_arg" in
7333 --cache-file=/dev/null | \
7334 -cache-file=/dev/null )
7335 # Handled here to avoid the test to skip args below.
7336 baseargs="$baseargs '$ac_arg'"
7337 tbaseargs="$tbaseargs '$ac_arg'"
7338 # Assert: $separate_arg should always be no.
7339 keep_next=$separate_arg
7341 --no*)
7342 continue
7344 --c* | \
7345 --sr* | \
7346 --ho* | \
7347 --bu* | \
7348 --t* | \
7349 --program-* | \
7350 -cache_file* | \
7351 -srcdir* | \
7352 -host* | \
7353 -build* | \
7354 -target* | \
7355 -program-prefix* | \
7356 -program-suffix* | \
7357 -program-transform-name* )
7358 skip_next=$separate_arg
7359 continue
7362 # An option. Add it.
7363 case $ac_arg in
7364 *\'*)
7365 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7366 esac
7367 baseargs="$baseargs '$ac_arg'"
7368 if test X"$skip_targ" = Xno; then
7369 tbaseargs="$tbaseargs '$ac_arg'"
7371 keep_next=$separate_arg
7374 # Either a variable assignment, or a nonopt (triplet). Don't
7375 # pass it down; let the Makefile handle this.
7376 continue
7378 esac
7379 done
7380 # Remove the initial space we just introduced and, as these will be
7381 # expanded by make, quote '$'.
7382 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7384 # Add in --program-transform-name, after --program-prefix and
7385 # --program-suffix have been applied to it. Autoconf has already
7386 # doubled dollar signs and backslashes in program_transform_name; we want
7387 # the backslashes un-doubled, and then the entire thing wrapped in single
7388 # quotes, because this will be expanded first by make and then by the shell.
7389 # Also, because we want to override the logic in subdir configure scripts to
7390 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7391 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7392 ${program_transform_name}
7393 EOF_SED
7394 gcc_transform_name=`cat conftestsed.out`
7395 rm -f conftestsed.out
7396 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7397 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7398 if test "$silent" = yes; then
7399 baseargs="$baseargs --silent"
7400 tbaseargs="$tbaseargs --silent"
7402 baseargs="$baseargs --disable-option-checking"
7403 tbaseargs="$tbaseargs --disable-option-checking"
7405 # Record and document user additions to sub configure arguments.
7410 # For the build-side libraries, we just need to pretend we're native,
7411 # and not use the same cache file. Multilibs are neither needed nor
7412 # desired. We can't even use the same cache file for all build-side
7413 # libraries, as they're compiled differently; some with C, some with
7414 # C++ or with different feature-enabling options.
7415 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7417 # For host modules, accept cache file option, or specification as blank.
7418 case "${cache_file}" in
7419 "") # empty
7420 cache_file_option="" ;;
7421 /* | [A-Za-z]:[\\/]* ) # absolute path
7422 cache_file_option="--cache-file=${cache_file}" ;;
7423 *) # relative path
7424 cache_file_option="--cache-file=../${cache_file}" ;;
7425 esac
7427 # Host dirs don't like to share a cache file either, horribly enough.
7428 # This seems to be due to autoconf 2.5x stupidity.
7429 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7431 target_configargs="$target_configargs ${tbaseargs}"
7433 # Passing a --with-cross-host argument lets the target libraries know
7434 # whether they are being built with a cross-compiler or being built
7435 # native. However, it would be better to use other mechanisms to make the
7436 # sorts of decisions they want to make on this basis. Please consider
7437 # this option to be deprecated. FIXME.
7438 if test x${is_cross_compiler} = xyes ; then
7439 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7442 # Special user-friendly check for native x86_64-linux build, if
7443 # multilib is not explicitly enabled.
7444 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7445 x86_64-*linux*:yes:$build:$build:)
7446 # Make sure we have a developement environment that handles 32-bit
7447 dev64=no
7448 echo "int main () { return 0; }" > conftest.c
7449 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7450 if test $? = 0 ; then
7451 if test -s conftest || test -s conftest.exe ; then
7452 dev64=yes
7455 rm -f conftest*
7456 if test x${dev64} != xyes ; then
7457 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
7460 esac
7462 # Default to --enable-multilib.
7463 if test x${enable_multilib} = x ; then
7464 target_configargs="--enable-multilib ${target_configargs}"
7467 # Pass --with-newlib if appropriate. Note that target_configdirs has
7468 # changed from the earlier setting of with_newlib.
7469 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7470 target_configargs="--with-newlib ${target_configargs}"
7473 # Different target subdirs use different values of certain variables
7474 # (notably CXX). Worse, multilibs use *lots* of different values.
7475 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7476 # it doesn't automatically accept command-line overrides of them.
7477 # This means it's not safe for target subdirs to share a cache file,
7478 # which is disgusting, but there you have it. Hopefully this can be
7479 # fixed in future. It's still worthwhile to use a cache file for each
7480 # directory. I think.
7482 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7483 # We need to pass --target, as newer autoconf's requires consistency
7484 # for target_alias and gcc doesn't manage it consistently.
7485 target_configargs="--cache-file=./config.cache ${target_configargs}"
7487 FLAGS_FOR_TARGET=
7488 case " $target_configdirs " in
7489 *" newlib "*)
7490 case " $target_configargs " in
7491 *" --with-newlib "*)
7492 case "$target" in
7493 *-cygwin*)
7494 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7496 esac
7498 # If we're not building GCC, don't discard standard headers.
7499 if test -d ${srcdir}/gcc; then
7500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7502 if test "${build}" != "${host}"; then
7503 # On Canadian crosses, CC_FOR_TARGET will have already been set
7504 # by `configure', so we won't have an opportunity to add -Bgcc/
7505 # to it. This is right: we don't want to search that directory
7506 # for binaries, but we want the header files in there, so add
7507 # them explicitly.
7508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7510 # Someone might think of using the pre-installed headers on
7511 # Canadian crosses, in case the installed compiler is not fully
7512 # compatible with the compiler being built. In this case, it
7513 # would be better to flag an error than risking having
7514 # incompatible object files being constructed. We can't
7515 # guarantee that an error will be flagged, but let's hope the
7516 # compiler will do it, when presented with incompatible header
7517 # files.
7521 case "${target}-${is_cross_compiler}" in
7522 i[3456789]86-*-linux*-no)
7523 # Here host == target, so we don't need to build gcc,
7524 # so we don't want to discard standard headers.
7525 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7528 # If we're building newlib, use its generic headers last, but search
7529 # for any libc-related directories first (so make it the last -B
7530 # switch).
7531 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7533 # If we're building libgloss, find the startup file, simulator library
7534 # and linker script.
7535 case " $target_configdirs " in
7536 *" libgloss "*)
7537 # Look for startup file, simulator library and maybe linker script.
7538 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7539 # Look for libnosys.a in case the target needs it.
7540 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7541 # Most targets have the linker script in the source directory.
7542 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7544 esac
7546 esac
7548 esac
7550 esac
7552 case "$target" in
7553 x86_64-*mingw* | *-w64-mingw*)
7554 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7555 # however, use a symlink named 'mingw' in ${prefix} .
7556 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7558 *-mingw*)
7559 # MinGW can't be handled as Cygwin above since it does not use newlib.
7560 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'
7562 esac
7564 # Allow the user to override the flags for
7565 # our build compiler if desired.
7566 if test x"${build}" = x"${host}" ; then
7567 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7568 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7569 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7572 # On Canadian crosses, we'll be searching the right directories for
7573 # the previously-installed cross compiler, so don't bother to add
7574 # flags for directories within the install tree of the compiler
7575 # being built; programs in there won't even run.
7576 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7577 # Search for pre-installed headers if nothing else fits.
7578 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7581 if test "x${use_gnu_ld}" = x &&
7582 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7583 # Arrange for us to find uninstalled linker scripts.
7584 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7587 # Search for other target-specific linker scripts and such.
7588 case "${target}" in
7589 mep*)
7590 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7592 esac
7594 # Makefile fragments.
7595 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7597 eval fragval=\$$frag
7598 if test $fragval != /dev/null; then
7599 eval $frag=${srcdir}/$fragval
7601 done
7607 # Miscellanea: directories, flags, etc.
7616 # Build module lists & subconfigure args.
7620 # Host module lists & subconfigure args.
7625 # Target module lists & subconfigure args.
7629 # Build tools.
7647 # Generate default definitions for YACC, M4, LEX and other programs that run
7648 # on the build machine. These are used if the Makefile can't locate these
7649 # programs in objdir.
7650 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7652 for ac_prog in 'bison -y' byacc yacc
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_YACC+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test -n "$YACC"; then
7662 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_YACC="$ac_prog"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7675 done
7676 done
7677 IFS=$as_save_IFS
7681 YACC=$ac_cv_prog_YACC
7682 if test -n "$YACC"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7684 $as_echo "$YACC" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7691 test -n "$YACC" && break
7692 done
7693 test -n "$YACC" || YACC="$MISSING bison -y"
7695 case " $build_configdirs " in
7696 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7697 esac
7699 for ac_prog in bison
7701 # Extract the first word of "$ac_prog", so it can be a program name with args.
7702 set dummy $ac_prog; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if test "${ac_cv_prog_BISON+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test -n "$BISON"; then
7709 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_prog_BISON="$ac_prog"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7722 done
7723 done
7724 IFS=$as_save_IFS
7728 BISON=$ac_cv_prog_BISON
7729 if test -n "$BISON"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7731 $as_echo "$BISON" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7738 test -n "$BISON" && break
7739 done
7740 test -n "$BISON" || BISON="$MISSING bison"
7742 case " $build_configdirs " in
7743 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7744 esac
7746 for ac_prog in gm4 gnum4 m4
7748 # Extract the first word of "$ac_prog", so it can be a program name with args.
7749 set dummy $ac_prog; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if test "${ac_cv_prog_M4+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 if test -n "$M4"; then
7756 ac_cv_prog_M4="$M4" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_prog_M4="$ac_prog"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7769 done
7770 done
7771 IFS=$as_save_IFS
7775 M4=$ac_cv_prog_M4
7776 if test -n "$M4"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7778 $as_echo "$M4" >&6; }
7779 else
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7785 test -n "$M4" && break
7786 done
7787 test -n "$M4" || M4="$MISSING m4"
7789 case " $build_configdirs " in
7790 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7791 esac
7793 for ac_prog in flex lex
7795 # Extract the first word of "$ac_prog", so it can be a program name with args.
7796 set dummy $ac_prog; ac_word=$2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7798 $as_echo_n "checking for $ac_word... " >&6; }
7799 if test "${ac_cv_prog_LEX+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 if test -n "$LEX"; then
7803 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7804 else
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
7811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7812 ac_cv_prog_LEX="$ac_prog"
7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7816 done
7817 done
7818 IFS=$as_save_IFS
7822 LEX=$ac_cv_prog_LEX
7823 if test -n "$LEX"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7825 $as_echo "$LEX" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7832 test -n "$LEX" && break
7833 done
7834 test -n "$LEX" || LEX="$MISSING flex"
7836 case " $build_configdirs " in
7837 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7838 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7839 esac
7841 for ac_prog in flex
7843 # Extract the first word of "$ac_prog", so it can be a program name with args.
7844 set dummy $ac_prog; ac_word=$2
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 $as_echo_n "checking for $ac_word... " >&6; }
7847 if test "${ac_cv_prog_FLEX+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7849 else
7850 if test -n "$FLEX"; then
7851 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_prog_FLEX="$ac_prog"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7864 done
7865 done
7866 IFS=$as_save_IFS
7870 FLEX=$ac_cv_prog_FLEX
7871 if test -n "$FLEX"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7873 $as_echo "$FLEX" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7880 test -n "$FLEX" && break
7881 done
7882 test -n "$FLEX" || FLEX="$MISSING flex"
7884 case " $build_configdirs " in
7885 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7886 esac
7888 for ac_prog in makeinfo
7890 # Extract the first word of "$ac_prog", so it can be a program name with args.
7891 set dummy $ac_prog; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 if test -n "$MAKEINFO"; then
7898 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7899 else
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_prog_MAKEINFO="$ac_prog"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7911 done
7912 done
7913 IFS=$as_save_IFS
7917 MAKEINFO=$ac_cv_prog_MAKEINFO
7918 if test -n "$MAKEINFO"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7920 $as_echo "$MAKEINFO" >&6; }
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7927 test -n "$MAKEINFO" && break
7928 done
7929 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7931 case " $build_configdirs " in
7932 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7935 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7936 # higher, else we use the "missing" dummy.
7937 if ${MAKEINFO} --version \
7938 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7940 else
7941 MAKEINFO="$MISSING makeinfo"
7945 esac
7947 # FIXME: expect and dejagnu may become build tools?
7949 for ac_prog in expect
7951 # Extract the first word of "$ac_prog", so it can be a program name with args.
7952 set dummy $ac_prog; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 $as_echo_n "checking for $ac_word... " >&6; }
7955 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 if test -n "$EXPECT"; then
7959 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7960 else
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7968 ac_cv_prog_EXPECT="$ac_prog"
7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7972 done
7973 done
7974 IFS=$as_save_IFS
7978 EXPECT=$ac_cv_prog_EXPECT
7979 if test -n "$EXPECT"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7981 $as_echo "$EXPECT" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7988 test -n "$EXPECT" && break
7989 done
7990 test -n "$EXPECT" || EXPECT="expect"
7992 case " $configdirs " in
7993 *" expect "*)
7994 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7996 esac
7998 for ac_prog in runtest
8000 # Extract the first word of "$ac_prog", so it can be a program name with args.
8001 set dummy $ac_prog; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 if test -n "$RUNTEST"; then
8008 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8009 else
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_prog_RUNTEST="$ac_prog"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8021 done
8022 done
8023 IFS=$as_save_IFS
8027 RUNTEST=$ac_cv_prog_RUNTEST
8028 if test -n "$RUNTEST"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8030 $as_echo "$RUNTEST" >&6; }
8031 else
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8037 test -n "$RUNTEST" && break
8038 done
8039 test -n "$RUNTEST" || RUNTEST="runtest"
8041 case " $configdirs " in
8042 *" dejagnu "*)
8043 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8045 esac
8048 # Host tools.
8049 ncn_tool_prefix=
8050 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8051 ncn_target_tool_prefix=
8052 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8056 if test -n "$AR"; then
8057 ac_cv_prog_AR=$AR
8058 elif test -n "$ac_cv_prog_AR"; then
8059 AR=$ac_cv_prog_AR
8062 if test -n "$ac_cv_prog_AR"; then
8063 for ncn_progname in ar; do
8064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8065 set dummy ${ncn_progname}; ac_word=$2
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8067 $as_echo_n "checking for $ac_word... " >&6; }
8068 if test "${ac_cv_prog_AR+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 if test -n "$AR"; then
8072 ac_cv_prog_AR="$AR" # Let the user override the test.
8073 else
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 for as_dir in $PATH
8077 IFS=$as_save_IFS
8078 test -z "$as_dir" && as_dir=.
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8081 ac_cv_prog_AR="${ncn_progname}"
8082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 break 2
8085 done
8086 done
8087 IFS=$as_save_IFS
8091 AR=$ac_cv_prog_AR
8092 if test -n "$AR"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8094 $as_echo "$AR" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8101 done
8104 for ncn_progname in ar; do
8105 if test -n "$ncn_tool_prefix"; then
8106 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8107 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if test "${ac_cv_prog_AR+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 if test -n "$AR"; then
8114 ac_cv_prog_AR="$AR" # Let the user override the test.
8115 else
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117 for as_dir in $PATH
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8123 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8125 break 2
8127 done
8128 done
8129 IFS=$as_save_IFS
8133 AR=$ac_cv_prog_AR
8134 if test -n "$AR"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8136 $as_echo "$AR" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8146 set dummy ${ncn_progname}; ac_word=$2
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 $as_echo_n "checking for $ac_word... " >&6; }
8149 if test "${ac_cv_prog_AR+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 if test -n "$AR"; then
8153 ac_cv_prog_AR="$AR" # Let the user override the test.
8154 else
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_prog_AR="${ncn_progname}"
8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 break 2
8166 done
8167 done
8168 IFS=$as_save_IFS
8172 AR=$ac_cv_prog_AR
8173 if test -n "$AR"; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8175 $as_echo "$AR" >&6; }
8176 else
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178 $as_echo "no" >&6; }
8183 test -n "$ac_cv_prog_AR" && break
8184 done
8186 if test -z "$ac_cv_prog_AR" ; then
8187 set dummy ar
8188 if test $build = $host ; then
8189 AR="$2"
8190 else
8191 AR="${ncn_tool_prefix}$2"
8197 if test -n "$AS"; then
8198 ac_cv_prog_AS=$AS
8199 elif test -n "$ac_cv_prog_AS"; then
8200 AS=$ac_cv_prog_AS
8203 if test -n "$ac_cv_prog_AS"; then
8204 for ncn_progname in as; do
8205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8206 set dummy ${ncn_progname}; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if test "${ac_cv_prog_AS+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 if test -n "$AS"; then
8213 ac_cv_prog_AS="$AS" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_prog_AS="${ncn_progname}"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8226 done
8227 done
8228 IFS=$as_save_IFS
8232 AS=$ac_cv_prog_AS
8233 if test -n "$AS"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8235 $as_echo "$AS" >&6; }
8236 else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8242 done
8245 for ncn_progname in as; do
8246 if test -n "$ncn_tool_prefix"; then
8247 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8248 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_AS+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 if test -n "$AS"; then
8255 ac_cv_prog_AS="$AS" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8260 IFS=$as_save_IFS
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266 break 2
8268 done
8269 done
8270 IFS=$as_save_IFS
8274 AS=$ac_cv_prog_AS
8275 if test -n "$AS"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8277 $as_echo "$AS" >&6; }
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8285 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8287 set dummy ${ncn_progname}; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_AS+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 if test -n "$AS"; then
8294 ac_cv_prog_AS="$AS" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_AS="${ncn_progname}"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8307 done
8308 done
8309 IFS=$as_save_IFS
8313 AS=$ac_cv_prog_AS
8314 if test -n "$AS"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8316 $as_echo "$AS" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8324 test -n "$ac_cv_prog_AS" && break
8325 done
8327 if test -z "$ac_cv_prog_AS" ; then
8328 set dummy as
8329 if test $build = $host ; then
8330 AS="$2"
8331 else
8332 AS="${ncn_tool_prefix}$2"
8338 if test -n "$DLLTOOL"; then
8339 ac_cv_prog_DLLTOOL=$DLLTOOL
8340 elif test -n "$ac_cv_prog_DLLTOOL"; then
8341 DLLTOOL=$ac_cv_prog_DLLTOOL
8344 if test -n "$ac_cv_prog_DLLTOOL"; then
8345 for ncn_progname in dlltool; do
8346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8347 set dummy ${ncn_progname}; ac_word=$2
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8351 $as_echo_n "(cached) " >&6
8352 else
8353 if test -n "$DLLTOOL"; then
8354 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8355 else
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 for as_dir in $PATH
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_prog_DLLTOOL="${ncn_progname}"
8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8367 done
8368 done
8369 IFS=$as_save_IFS
8373 DLLTOOL=$ac_cv_prog_DLLTOOL
8374 if test -n "$DLLTOOL"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8376 $as_echo "$DLLTOOL" >&6; }
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8383 done
8386 for ncn_progname in dlltool; do
8387 if test -n "$ncn_tool_prefix"; then
8388 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8389 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 if test -n "$DLLTOOL"; then
8396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8409 done
8410 done
8411 IFS=$as_save_IFS
8415 DLLTOOL=$ac_cv_prog_DLLTOOL
8416 if test -n "$DLLTOOL"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8418 $as_echo "$DLLTOOL" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8426 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8428 set dummy ${ncn_progname}; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 if test -n "$DLLTOOL"; then
8435 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_prog_DLLTOOL="${ncn_progname}"
8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446 break 2
8448 done
8449 done
8450 IFS=$as_save_IFS
8454 DLLTOOL=$ac_cv_prog_DLLTOOL
8455 if test -n "$DLLTOOL"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8457 $as_echo "$DLLTOOL" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8465 test -n "$ac_cv_prog_DLLTOOL" && break
8466 done
8468 if test -z "$ac_cv_prog_DLLTOOL" ; then
8469 set dummy dlltool
8470 if test $build = $host ; then
8471 DLLTOOL="$2"
8472 else
8473 DLLTOOL="${ncn_tool_prefix}$2"
8479 if test -n "$LD"; then
8480 ac_cv_prog_LD=$LD
8481 elif test -n "$ac_cv_prog_LD"; then
8482 LD=$ac_cv_prog_LD
8485 if test -n "$ac_cv_prog_LD"; then
8486 for ncn_progname in ld; do
8487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8488 set dummy ${ncn_progname}; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if test "${ac_cv_prog_LD+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 if test -n "$LD"; then
8495 ac_cv_prog_LD="$LD" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_prog_LD="${ncn_progname}"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8514 LD=$ac_cv_prog_LD
8515 if test -n "$LD"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8517 $as_echo "$LD" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8524 done
8527 for ncn_progname in ld; do
8528 if test -n "$ncn_tool_prefix"; then
8529 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8530 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if test "${ac_cv_prog_LD+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 if test -n "$LD"; then
8537 ac_cv_prog_LD="$LD" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8550 done
8551 done
8552 IFS=$as_save_IFS
8556 LD=$ac_cv_prog_LD
8557 if test -n "$LD"; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8559 $as_echo "$LD" >&6; }
8560 else
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 $as_echo "no" >&6; }
8567 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8569 set dummy ${ncn_progname}; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if test "${ac_cv_prog_LD+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 if test -n "$LD"; then
8576 ac_cv_prog_LD="$LD" # Let the user override the test.
8577 else
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8585 ac_cv_prog_LD="${ncn_progname}"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8589 done
8590 done
8591 IFS=$as_save_IFS
8595 LD=$ac_cv_prog_LD
8596 if test -n "$LD"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8598 $as_echo "$LD" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8606 test -n "$ac_cv_prog_LD" && break
8607 done
8609 if test -z "$ac_cv_prog_LD" ; then
8610 set dummy ld
8611 if test $build = $host ; then
8612 LD="$2"
8613 else
8614 LD="${ncn_tool_prefix}$2"
8620 if test -n "$LIPO"; then
8621 ac_cv_prog_LIPO=$LIPO
8622 elif test -n "$ac_cv_prog_LIPO"; then
8623 LIPO=$ac_cv_prog_LIPO
8626 if test -n "$ac_cv_prog_LIPO"; then
8627 for ncn_progname in lipo; do
8628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8629 set dummy ${ncn_progname}; ac_word=$2
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 $as_echo_n "checking for $ac_word... " >&6; }
8632 if test "${ac_cv_prog_LIPO+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 if test -n "$LIPO"; then
8636 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8637 else
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in $PATH
8641 IFS=$as_save_IFS
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_prog_LIPO="${ncn_progname}"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 break 2
8649 done
8650 done
8651 IFS=$as_save_IFS
8655 LIPO=$ac_cv_prog_LIPO
8656 if test -n "$LIPO"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8658 $as_echo "$LIPO" >&6; }
8659 else
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8665 done
8668 for ncn_progname in lipo; do
8669 if test -n "$ncn_tool_prefix"; then
8670 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8671 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if test "${ac_cv_prog_LIPO+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 if test -n "$LIPO"; then
8678 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8679 else
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 break 2
8691 done
8692 done
8693 IFS=$as_save_IFS
8697 LIPO=$ac_cv_prog_LIPO
8698 if test -n "$LIPO"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8700 $as_echo "$LIPO" >&6; }
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8708 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8710 set dummy ${ncn_progname}; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if test "${ac_cv_prog_LIPO+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 if test -n "$LIPO"; then
8717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726 ac_cv_prog_LIPO="${ncn_progname}"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8730 done
8731 done
8732 IFS=$as_save_IFS
8736 LIPO=$ac_cv_prog_LIPO
8737 if test -n "$LIPO"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8739 $as_echo "$LIPO" >&6; }
8740 else
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8747 test -n "$ac_cv_prog_LIPO" && break
8748 done
8750 if test -z "$ac_cv_prog_LIPO" ; then
8751 set dummy lipo
8752 if test $build = $host ; then
8753 LIPO="$2"
8754 else
8755 LIPO="${ncn_tool_prefix}$2"
8761 if test -n "$NM"; then
8762 ac_cv_prog_NM=$NM
8763 elif test -n "$ac_cv_prog_NM"; then
8764 NM=$ac_cv_prog_NM
8767 if test -n "$ac_cv_prog_NM"; then
8768 for ncn_progname in nm; do
8769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8770 set dummy ${ncn_progname}; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if test "${ac_cv_prog_NM+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 if test -n "$NM"; then
8777 ac_cv_prog_NM="$NM" # Let the user override the test.
8778 else
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8782 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786 ac_cv_prog_NM="${ncn_progname}"
8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2
8790 done
8791 done
8792 IFS=$as_save_IFS
8796 NM=$ac_cv_prog_NM
8797 if test -n "$NM"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8799 $as_echo "$NM" >&6; }
8800 else
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8806 done
8809 for ncn_progname in nm; do
8810 if test -n "$ncn_tool_prefix"; then
8811 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8812 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if test "${ac_cv_prog_NM+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 if test -n "$NM"; then
8819 ac_cv_prog_NM="$NM" # Let the user override the test.
8820 else
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $PATH
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8828 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8832 done
8833 done
8834 IFS=$as_save_IFS
8838 NM=$ac_cv_prog_NM
8839 if test -n "$NM"; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8841 $as_echo "$NM" >&6; }
8842 else
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8849 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8851 set dummy ${ncn_progname}; ac_word=$2
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 $as_echo_n "checking for $ac_word... " >&6; }
8854 if test "${ac_cv_prog_NM+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 if test -n "$NM"; then
8858 ac_cv_prog_NM="$NM" # Let the user override the test.
8859 else
8860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8867 ac_cv_prog_NM="${ncn_progname}"
8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 break 2
8871 done
8872 done
8873 IFS=$as_save_IFS
8877 NM=$ac_cv_prog_NM
8878 if test -n "$NM"; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8880 $as_echo "$NM" >&6; }
8881 else
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8888 test -n "$ac_cv_prog_NM" && break
8889 done
8891 if test -z "$ac_cv_prog_NM" ; then
8892 set dummy nm
8893 if test $build = $host ; then
8894 NM="$2"
8895 else
8896 NM="${ncn_tool_prefix}$2"
8902 if test -n "$RANLIB"; then
8903 ac_cv_prog_RANLIB=$RANLIB
8904 elif test -n "$ac_cv_prog_RANLIB"; then
8905 RANLIB=$ac_cv_prog_RANLIB
8908 if test -n "$ac_cv_prog_RANLIB"; then
8909 for ncn_progname in ranlib; do
8910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8911 set dummy ${ncn_progname}; ac_word=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 if test -n "$RANLIB"; then
8918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8919 else
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 for as_dir in $PATH
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8927 ac_cv_prog_RANLIB="${ncn_progname}"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8931 done
8932 done
8933 IFS=$as_save_IFS
8937 RANLIB=$ac_cv_prog_RANLIB
8938 if test -n "$RANLIB"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8940 $as_echo "$RANLIB" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8947 done
8950 for ncn_progname in ranlib; do
8951 if test -n "$ncn_tool_prefix"; then
8952 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8953 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 if test -n "$RANLIB"; then
8960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8961 else
8962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 for as_dir in $PATH
8965 IFS=$as_save_IFS
8966 test -z "$as_dir" && as_dir=.
8967 for ac_exec_ext in '' $ac_executable_extensions; do
8968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8969 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8971 break 2
8973 done
8974 done
8975 IFS=$as_save_IFS
8979 RANLIB=$ac_cv_prog_RANLIB
8980 if test -n "$RANLIB"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8982 $as_echo "$RANLIB" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8990 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8992 set dummy ${ncn_progname}; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 if test -n "$RANLIB"; then
8999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9000 else
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9004 IFS=$as_save_IFS
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_prog_RANLIB="${ncn_progname}"
9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 break 2
9012 done
9013 done
9014 IFS=$as_save_IFS
9018 RANLIB=$ac_cv_prog_RANLIB
9019 if test -n "$RANLIB"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9021 $as_echo "$RANLIB" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9029 test -n "$ac_cv_prog_RANLIB" && break
9030 done
9032 if test -z "$ac_cv_prog_RANLIB" ; then
9033 RANLIB="true"
9038 if test -n "$STRIP"; then
9039 ac_cv_prog_STRIP=$STRIP
9040 elif test -n "$ac_cv_prog_STRIP"; then
9041 STRIP=$ac_cv_prog_STRIP
9044 if test -n "$ac_cv_prog_STRIP"; then
9045 for ncn_progname in strip; do
9046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9047 set dummy ${ncn_progname}; ac_word=$2
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9049 $as_echo_n "checking for $ac_word... " >&6; }
9050 if test "${ac_cv_prog_STRIP+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053 if test -n "$STRIP"; then
9054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9055 else
9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9057 for as_dir in $PATH
9059 IFS=$as_save_IFS
9060 test -z "$as_dir" && as_dir=.
9061 for ac_exec_ext in '' $ac_executable_extensions; do
9062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9063 ac_cv_prog_STRIP="${ncn_progname}"
9064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9065 break 2
9067 done
9068 done
9069 IFS=$as_save_IFS
9073 STRIP=$ac_cv_prog_STRIP
9074 if test -n "$STRIP"; then
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9076 $as_echo "$STRIP" >&6; }
9077 else
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079 $as_echo "no" >&6; }
9083 done
9086 for ncn_progname in strip; do
9087 if test -n "$ncn_tool_prefix"; then
9088 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9089 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 $as_echo_n "checking for $ac_word... " >&6; }
9092 if test "${ac_cv_prog_STRIP+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 if test -n "$STRIP"; then
9096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9097 else
9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099 for as_dir in $PATH
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9105 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 break 2
9109 done
9110 done
9111 IFS=$as_save_IFS
9115 STRIP=$ac_cv_prog_STRIP
9116 if test -n "$STRIP"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9118 $as_echo "$STRIP" >&6; }
9119 else
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9126 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9128 set dummy ${ncn_progname}; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if test "${ac_cv_prog_STRIP+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 if test -n "$STRIP"; then
9135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9136 else
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9140 IFS=$as_save_IFS
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_prog_STRIP="${ncn_progname}"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 break 2
9148 done
9149 done
9150 IFS=$as_save_IFS
9154 STRIP=$ac_cv_prog_STRIP
9155 if test -n "$STRIP"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9157 $as_echo "$STRIP" >&6; }
9158 else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9165 test -n "$ac_cv_prog_STRIP" && break
9166 done
9168 if test -z "$ac_cv_prog_STRIP" ; then
9169 STRIP="true"
9174 if test -n "$WINDRES"; then
9175 ac_cv_prog_WINDRES=$WINDRES
9176 elif test -n "$ac_cv_prog_WINDRES"; then
9177 WINDRES=$ac_cv_prog_WINDRES
9180 if test -n "$ac_cv_prog_WINDRES"; then
9181 for ncn_progname in windres; do
9182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9183 set dummy ${ncn_progname}; ac_word=$2
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185 $as_echo_n "checking for $ac_word... " >&6; }
9186 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 if test -n "$WINDRES"; then
9190 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9191 else
9192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193 for as_dir in $PATH
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9199 ac_cv_prog_WINDRES="${ncn_progname}"
9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9201 break 2
9203 done
9204 done
9205 IFS=$as_save_IFS
9209 WINDRES=$ac_cv_prog_WINDRES
9210 if test -n "$WINDRES"; then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9212 $as_echo "$WINDRES" >&6; }
9213 else
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215 $as_echo "no" >&6; }
9219 done
9222 for ncn_progname in windres; do
9223 if test -n "$ncn_tool_prefix"; then
9224 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9225 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227 $as_echo_n "checking for $ac_word... " >&6; }
9228 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 if test -n "$WINDRES"; then
9232 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9233 else
9234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 for as_dir in $PATH
9237 IFS=$as_save_IFS
9238 test -z "$as_dir" && as_dir=.
9239 for ac_exec_ext in '' $ac_executable_extensions; do
9240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9241 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243 break 2
9245 done
9246 done
9247 IFS=$as_save_IFS
9251 WINDRES=$ac_cv_prog_WINDRES
9252 if test -n "$WINDRES"; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9254 $as_echo "$WINDRES" >&6; }
9255 else
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257 $as_echo "no" >&6; }
9262 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9264 set dummy ${ncn_progname}; ac_word=$2
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266 $as_echo_n "checking for $ac_word... " >&6; }
9267 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 if test -n "$WINDRES"; then
9271 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9272 else
9273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9280 ac_cv_prog_WINDRES="${ncn_progname}"
9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 break 2
9284 done
9285 done
9286 IFS=$as_save_IFS
9290 WINDRES=$ac_cv_prog_WINDRES
9291 if test -n "$WINDRES"; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9293 $as_echo "$WINDRES" >&6; }
9294 else
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296 $as_echo "no" >&6; }
9301 test -n "$ac_cv_prog_WINDRES" && break
9302 done
9304 if test -z "$ac_cv_prog_WINDRES" ; then
9305 set dummy windres
9306 if test $build = $host ; then
9307 WINDRES="$2"
9308 else
9309 WINDRES="${ncn_tool_prefix}$2"
9315 if test -n "$WINDMC"; then
9316 ac_cv_prog_WINDMC=$WINDMC
9317 elif test -n "$ac_cv_prog_WINDMC"; then
9318 WINDMC=$ac_cv_prog_WINDMC
9321 if test -n "$ac_cv_prog_WINDMC"; then
9322 for ncn_progname in windmc; do
9323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9324 set dummy ${ncn_progname}; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 if test -n "$WINDMC"; then
9331 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9332 else
9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 for as_dir in $PATH
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9340 ac_cv_prog_WINDMC="${ncn_progname}"
9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 break 2
9344 done
9345 done
9346 IFS=$as_save_IFS
9350 WINDMC=$ac_cv_prog_WINDMC
9351 if test -n "$WINDMC"; then
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9353 $as_echo "$WINDMC" >&6; }
9354 else
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 $as_echo "no" >&6; }
9360 done
9363 for ncn_progname in windmc; do
9364 if test -n "$ncn_tool_prefix"; then
9365 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9366 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368 $as_echo_n "checking for $ac_word... " >&6; }
9369 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 if test -n "$WINDMC"; then
9373 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9374 else
9375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376 for as_dir in $PATH
9378 IFS=$as_save_IFS
9379 test -z "$as_dir" && as_dir=.
9380 for ac_exec_ext in '' $ac_executable_extensions; do
9381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9382 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9384 break 2
9386 done
9387 done
9388 IFS=$as_save_IFS
9392 WINDMC=$ac_cv_prog_WINDMC
9393 if test -n "$WINDMC"; then
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9395 $as_echo "$WINDMC" >&6; }
9396 else
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398 $as_echo "no" >&6; }
9403 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405 set dummy ${ncn_progname}; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 if test -n "$WINDMC"; then
9412 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9413 else
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415 for as_dir in $PATH
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9421 ac_cv_prog_WINDMC="${ncn_progname}"
9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 break 2
9425 done
9426 done
9427 IFS=$as_save_IFS
9431 WINDMC=$ac_cv_prog_WINDMC
9432 if test -n "$WINDMC"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9434 $as_echo "$WINDMC" >&6; }
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437 $as_echo "no" >&6; }
9442 test -n "$ac_cv_prog_WINDMC" && break
9443 done
9445 if test -z "$ac_cv_prog_WINDMC" ; then
9446 set dummy windmc
9447 if test $build = $host ; then
9448 WINDMC="$2"
9449 else
9450 WINDMC="${ncn_tool_prefix}$2"
9456 if test -n "$OBJCOPY"; then
9457 ac_cv_prog_OBJCOPY=$OBJCOPY
9458 elif test -n "$ac_cv_prog_OBJCOPY"; then
9459 OBJCOPY=$ac_cv_prog_OBJCOPY
9462 if test -n "$ac_cv_prog_OBJCOPY"; then
9463 for ncn_progname in objcopy; do
9464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9465 set dummy ${ncn_progname}; ac_word=$2
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467 $as_echo_n "checking for $ac_word... " >&6; }
9468 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 if test -n "$OBJCOPY"; then
9472 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9473 else
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in $PATH
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_prog_OBJCOPY="${ncn_progname}"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2
9485 done
9486 done
9487 IFS=$as_save_IFS
9491 OBJCOPY=$ac_cv_prog_OBJCOPY
9492 if test -n "$OBJCOPY"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9494 $as_echo "$OBJCOPY" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9501 done
9504 for ncn_progname in objcopy; do
9505 if test -n "$ncn_tool_prefix"; then
9506 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9507 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9512 else
9513 if test -n "$OBJCOPY"; then
9514 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9515 else
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9519 IFS=$as_save_IFS
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9525 break 2
9527 done
9528 done
9529 IFS=$as_save_IFS
9533 OBJCOPY=$ac_cv_prog_OBJCOPY
9534 if test -n "$OBJCOPY"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9536 $as_echo "$OBJCOPY" >&6; }
9537 else
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9544 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9546 set dummy ${ncn_progname}; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 if test -n "$OBJCOPY"; then
9553 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9554 else
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556 for as_dir in $PATH
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_prog_OBJCOPY="${ncn_progname}"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9564 break 2
9566 done
9567 done
9568 IFS=$as_save_IFS
9572 OBJCOPY=$ac_cv_prog_OBJCOPY
9573 if test -n "$OBJCOPY"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9575 $as_echo "$OBJCOPY" >&6; }
9576 else
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9583 test -n "$ac_cv_prog_OBJCOPY" && break
9584 done
9586 if test -z "$ac_cv_prog_OBJCOPY" ; then
9587 set dummy objcopy
9588 if test $build = $host ; then
9589 OBJCOPY="$2"
9590 else
9591 OBJCOPY="${ncn_tool_prefix}$2"
9597 if test -n "$OBJDUMP"; then
9598 ac_cv_prog_OBJDUMP=$OBJDUMP
9599 elif test -n "$ac_cv_prog_OBJDUMP"; then
9600 OBJDUMP=$ac_cv_prog_OBJDUMP
9603 if test -n "$ac_cv_prog_OBJDUMP"; then
9604 for ncn_progname in objdump; do
9605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9606 set dummy ${ncn_progname}; ac_word=$2
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9608 $as_echo_n "checking for $ac_word... " >&6; }
9609 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 if test -n "$OBJDUMP"; then
9613 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9614 else
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616 for as_dir in $PATH
9618 IFS=$as_save_IFS
9619 test -z "$as_dir" && as_dir=.
9620 for ac_exec_ext in '' $ac_executable_extensions; do
9621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9622 ac_cv_prog_OBJDUMP="${ncn_progname}"
9623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9624 break 2
9626 done
9627 done
9628 IFS=$as_save_IFS
9632 OBJDUMP=$ac_cv_prog_OBJDUMP
9633 if test -n "$OBJDUMP"; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9635 $as_echo "$OBJDUMP" >&6; }
9636 else
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638 $as_echo "no" >&6; }
9642 done
9645 for ncn_progname in objdump; do
9646 if test -n "$ncn_tool_prefix"; then
9647 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9648 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 if test -n "$OBJDUMP"; then
9655 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9656 else
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9668 done
9669 done
9670 IFS=$as_save_IFS
9674 OBJDUMP=$ac_cv_prog_OBJDUMP
9675 if test -n "$OBJDUMP"; then
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9677 $as_echo "$OBJDUMP" >&6; }
9678 else
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; }
9685 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9687 set dummy ${ncn_progname}; ac_word=$2
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689 $as_echo_n "checking for $ac_word... " >&6; }
9690 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 if test -n "$OBJDUMP"; then
9694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9695 else
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in $PATH
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_prog_OBJDUMP="${ncn_progname}"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9707 done
9708 done
9709 IFS=$as_save_IFS
9713 OBJDUMP=$ac_cv_prog_OBJDUMP
9714 if test -n "$OBJDUMP"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9716 $as_echo "$OBJDUMP" >&6; }
9717 else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719 $as_echo "no" >&6; }
9724 test -n "$ac_cv_prog_OBJDUMP" && break
9725 done
9727 if test -z "$ac_cv_prog_OBJDUMP" ; then
9728 set dummy objdump
9729 if test $build = $host ; then
9730 OBJDUMP="$2"
9731 else
9732 OBJDUMP="${ncn_tool_prefix}$2"
9738 if test -n "$READELF"; then
9739 ac_cv_prog_READELF=$READELF
9740 elif test -n "$ac_cv_prog_READELF"; then
9741 READELF=$ac_cv_prog_READELF
9744 if test -n "$ac_cv_prog_READELF"; then
9745 for ncn_progname in readelf; do
9746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9747 set dummy ${ncn_progname}; ac_word=$2
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if test "${ac_cv_prog_READELF+set}" = set; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 if test -n "$READELF"; then
9754 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9755 else
9756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757 for as_dir in $PATH
9759 IFS=$as_save_IFS
9760 test -z "$as_dir" && as_dir=.
9761 for ac_exec_ext in '' $ac_executable_extensions; do
9762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9763 ac_cv_prog_READELF="${ncn_progname}"
9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 break 2
9767 done
9768 done
9769 IFS=$as_save_IFS
9773 READELF=$ac_cv_prog_READELF
9774 if test -n "$READELF"; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9776 $as_echo "$READELF" >&6; }
9777 else
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9779 $as_echo "no" >&6; }
9783 done
9786 for ncn_progname in readelf; do
9787 if test -n "$ncn_tool_prefix"; then
9788 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9789 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9791 $as_echo_n "checking for $ac_word... " >&6; }
9792 if test "${ac_cv_prog_READELF+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 if test -n "$READELF"; then
9796 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9797 else
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9799 for as_dir in $PATH
9801 IFS=$as_save_IFS
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9805 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 break 2
9809 done
9810 done
9811 IFS=$as_save_IFS
9815 READELF=$ac_cv_prog_READELF
9816 if test -n "$READELF"; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9818 $as_echo "$READELF" >&6; }
9819 else
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821 $as_echo "no" >&6; }
9826 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9828 set dummy ${ncn_progname}; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if test "${ac_cv_prog_READELF+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 if test -n "$READELF"; then
9835 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9836 else
9837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
9842 for ac_exec_ext in '' $ac_executable_extensions; do
9843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9844 ac_cv_prog_READELF="${ncn_progname}"
9845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 break 2
9848 done
9849 done
9850 IFS=$as_save_IFS
9854 READELF=$ac_cv_prog_READELF
9855 if test -n "$READELF"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9857 $as_echo "$READELF" >&6; }
9858 else
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9865 test -n "$ac_cv_prog_READELF" && break
9866 done
9868 if test -z "$ac_cv_prog_READELF" ; then
9869 set dummy readelf
9870 if test $build = $host ; then
9871 READELF="$2"
9872 else
9873 READELF="${ncn_tool_prefix}$2"
9882 # Target tools.
9884 # Check whether --with-build-time-tools was given.
9885 if test "${with_build_time_tools+set}" = set; then :
9886 withval=$with_build_time_tools; case x"$withval" in
9887 x/*) ;;
9889 with_build_time_tools=
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9891 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9893 esac
9894 else
9895 with_build_time_tools=
9901 if test -n "$CC_FOR_TARGET"; then
9902 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9903 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9904 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9907 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9908 for ncn_progname in cc gcc; do
9909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9910 set dummy ${ncn_progname}; ac_word=$2
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 $as_echo_n "checking for $ac_word... " >&6; }
9913 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 if test -n "$CC_FOR_TARGET"; then
9917 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9918 else
9919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920 for as_dir in $PATH
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9926 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9928 break 2
9930 done
9931 done
9932 IFS=$as_save_IFS
9936 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9937 if test -n "$CC_FOR_TARGET"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9939 $as_echo "$CC_FOR_TARGET" >&6; }
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9946 done
9949 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9950 for ncn_progname in cc gcc; do
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9952 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9953 if test -x $with_build_time_tools/${ncn_progname}; then
9954 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9956 $as_echo "yes" >&6; }
9957 break
9958 else
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9962 done
9965 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9966 for ncn_progname in cc gcc; do
9967 if test -n "$ncn_target_tool_prefix"; then
9968 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9969 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 if test -n "$CC_FOR_TARGET"; then
9976 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9977 else
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9985 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 break 2
9989 done
9990 done
9991 IFS=$as_save_IFS
9995 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9996 if test -n "$CC_FOR_TARGET"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9998 $as_echo "$CC_FOR_TARGET" >&6; }
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10006 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10008 set dummy ${ncn_progname}; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10012 $as_echo_n "(cached) " >&6
10013 else
10014 if test -n "$CC_FOR_TARGET"; then
10015 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10016 else
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10020 IFS=$as_save_IFS
10021 test -z "$as_dir" && as_dir=.
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026 break 2
10028 done
10029 done
10030 IFS=$as_save_IFS
10034 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10035 if test -n "$CC_FOR_TARGET"; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10037 $as_echo "$CC_FOR_TARGET" >&6; }
10038 else
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10040 $as_echo "no" >&6; }
10045 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10046 done
10049 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10050 set dummy cc gcc
10051 if test $build = $target ; then
10052 CC_FOR_TARGET="$2"
10053 else
10054 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10056 else
10057 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10062 if test -n "$CXX_FOR_TARGET"; then
10063 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10064 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10065 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10068 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10069 for ncn_progname in c++ g++ cxx gxx; do
10070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10071 set dummy ${ncn_progname}; ac_word=$2
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073 $as_echo_n "checking for $ac_word... " >&6; }
10074 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 if test -n "$CXX_FOR_TARGET"; then
10078 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10079 else
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10087 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10091 done
10092 done
10093 IFS=$as_save_IFS
10097 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10098 if test -n "$CXX_FOR_TARGET"; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10100 $as_echo "$CXX_FOR_TARGET" >&6; }
10101 else
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; }
10107 done
10110 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10111 for ncn_progname in c++ g++ cxx gxx; do
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10113 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10114 if test -x $with_build_time_tools/${ncn_progname}; then
10115 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10117 $as_echo "yes" >&6; }
10118 break
10119 else
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121 $as_echo "no" >&6; }
10123 done
10126 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10127 for ncn_progname in c++ g++ cxx gxx; do
10128 if test -n "$ncn_target_tool_prefix"; then
10129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10130 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132 $as_echo_n "checking for $ac_word... " >&6; }
10133 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 if test -n "$CXX_FOR_TARGET"; then
10137 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10138 else
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10146 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10150 done
10151 done
10152 IFS=$as_save_IFS
10156 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10157 if test -n "$CXX_FOR_TARGET"; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10159 $as_echo "$CXX_FOR_TARGET" >&6; }
10160 else
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; }
10167 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10169 set dummy ${ncn_progname}; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10173 $as_echo_n "(cached) " >&6
10174 else
10175 if test -n "$CXX_FOR_TARGET"; then
10176 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10177 else
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10181 IFS=$as_save_IFS
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10185 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10187 break 2
10189 done
10190 done
10191 IFS=$as_save_IFS
10195 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10196 if test -n "$CXX_FOR_TARGET"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10198 $as_echo "$CXX_FOR_TARGET" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10206 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10207 done
10210 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10211 set dummy c++ g++ cxx gxx
10212 if test $build = $target ; then
10213 CXX_FOR_TARGET="$2"
10214 else
10215 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10217 else
10218 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10223 if test -n "$GCC_FOR_TARGET"; then
10224 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10225 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10226 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10229 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10230 for ncn_progname in gcc; do
10231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10232 set dummy ${ncn_progname}; ac_word=$2
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10234 $as_echo_n "checking for $ac_word... " >&6; }
10235 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 if test -n "$GCC_FOR_TARGET"; then
10239 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10240 else
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10248 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10254 IFS=$as_save_IFS
10258 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10259 if test -n "$GCC_FOR_TARGET"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10261 $as_echo "$GCC_FOR_TARGET" >&6; }
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10268 done
10271 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10272 for ncn_progname in gcc; do
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10274 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10275 if test -x $with_build_time_tools/${ncn_progname}; then
10276 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10278 $as_echo "yes" >&6; }
10279 break
10280 else
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282 $as_echo "no" >&6; }
10284 done
10287 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10288 for ncn_progname in gcc; do
10289 if test -n "$ncn_target_tool_prefix"; then
10290 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10291 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10293 $as_echo_n "checking for $ac_word... " >&6; }
10294 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 if test -n "$GCC_FOR_TARGET"; then
10298 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10299 else
10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $PATH
10303 IFS=$as_save_IFS
10304 test -z "$as_dir" && as_dir=.
10305 for ac_exec_ext in '' $ac_executable_extensions; do
10306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10307 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 break 2
10311 done
10312 done
10313 IFS=$as_save_IFS
10317 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10318 if test -n "$GCC_FOR_TARGET"; then
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10320 $as_echo "$GCC_FOR_TARGET" >&6; }
10321 else
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323 $as_echo "no" >&6; }
10328 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10330 set dummy ${ncn_progname}; ac_word=$2
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10332 $as_echo_n "checking for $ac_word... " >&6; }
10333 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 if test -n "$GCC_FOR_TARGET"; then
10337 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10338 else
10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10340 for as_dir in $PATH
10342 IFS=$as_save_IFS
10343 test -z "$as_dir" && as_dir=.
10344 for ac_exec_ext in '' $ac_executable_extensions; do
10345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10346 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10348 break 2
10350 done
10351 done
10352 IFS=$as_save_IFS
10356 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10357 if test -n "$GCC_FOR_TARGET"; then
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10359 $as_echo "$GCC_FOR_TARGET" >&6; }
10360 else
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10362 $as_echo "no" >&6; }
10367 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10368 done
10371 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10372 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10373 else
10374 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10379 if test -n "$GCJ_FOR_TARGET"; then
10380 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10381 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10382 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10385 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10386 for ncn_progname in gcj; do
10387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10388 set dummy ${ncn_progname}; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 if test -n "$GCJ_FOR_TARGET"; then
10395 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10396 else
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10404 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 break 2
10408 done
10409 done
10410 IFS=$as_save_IFS
10414 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10415 if test -n "$GCJ_FOR_TARGET"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10417 $as_echo "$GCJ_FOR_TARGET" >&6; }
10418 else
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10424 done
10427 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10428 for ncn_progname in gcj; do
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10430 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10431 if test -x $with_build_time_tools/${ncn_progname}; then
10432 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10434 $as_echo "yes" >&6; }
10435 break
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10440 done
10443 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10444 for ncn_progname in gcj; do
10445 if test -n "$ncn_target_tool_prefix"; then
10446 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10447 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449 $as_echo_n "checking for $ac_word... " >&6; }
10450 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 if test -n "$GCJ_FOR_TARGET"; then
10454 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10455 else
10456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457 for as_dir in $PATH
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10463 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10465 break 2
10467 done
10468 done
10469 IFS=$as_save_IFS
10473 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10474 if test -n "$GCJ_FOR_TARGET"; then
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10476 $as_echo "$GCJ_FOR_TARGET" >&6; }
10477 else
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479 $as_echo "no" >&6; }
10484 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10486 set dummy ${ncn_progname}; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 if test -n "$GCJ_FOR_TARGET"; then
10493 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10494 else
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10498 IFS=$as_save_IFS
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10504 break 2
10506 done
10507 done
10508 IFS=$as_save_IFS
10512 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10513 if test -n "$GCJ_FOR_TARGET"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10515 $as_echo "$GCJ_FOR_TARGET" >&6; }
10516 else
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; }
10523 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10524 done
10527 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10528 set dummy gcj
10529 if test $build = $target ; then
10530 GCJ_FOR_TARGET="$2"
10531 else
10532 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10534 else
10535 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10540 if test -n "$GFORTRAN_FOR_TARGET"; then
10541 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10542 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10543 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10546 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10547 for ncn_progname in gfortran; do
10548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10549 set dummy ${ncn_progname}; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 if test -n "$GFORTRAN_FOR_TARGET"; then
10556 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10557 else
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10569 done
10570 done
10571 IFS=$as_save_IFS
10575 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10576 if test -n "$GFORTRAN_FOR_TARGET"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10578 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; }
10585 done
10588 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10589 for ncn_progname in gfortran; do
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10591 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10592 if test -x $with_build_time_tools/${ncn_progname}; then
10593 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10595 $as_echo "yes" >&6; }
10596 break
10597 else
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10599 $as_echo "no" >&6; }
10601 done
10604 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10605 for ncn_progname in gfortran; do
10606 if test -n "$ncn_target_tool_prefix"; then
10607 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10608 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610 $as_echo_n "checking for $ac_word... " >&6; }
10611 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 if test -n "$GFORTRAN_FOR_TARGET"; then
10615 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10616 else
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in $PATH
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10624 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10628 done
10629 done
10630 IFS=$as_save_IFS
10634 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10635 if test -n "$GFORTRAN_FOR_TARGET"; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10637 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10638 else
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640 $as_echo "no" >&6; }
10645 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10647 set dummy ${ncn_progname}; ac_word=$2
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649 $as_echo_n "checking for $ac_word... " >&6; }
10650 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if test -n "$GFORTRAN_FOR_TARGET"; then
10654 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10655 else
10656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657 for as_dir in $PATH
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
10661 for ac_exec_ext in '' $ac_executable_extensions; do
10662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10663 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 break 2
10667 done
10668 done
10669 IFS=$as_save_IFS
10673 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10674 if test -n "$GFORTRAN_FOR_TARGET"; then
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10676 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679 $as_echo "no" >&6; }
10684 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10685 done
10688 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10689 set dummy gfortran
10690 if test $build = $target ; then
10691 GFORTRAN_FOR_TARGET="$2"
10692 else
10693 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10695 else
10696 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10701 if test -n "$GOC_FOR_TARGET"; then
10702 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10703 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10704 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10707 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10708 for ncn_progname in gccgo; do
10709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10710 set dummy ${ncn_progname}; ac_word=$2
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712 $as_echo_n "checking for $ac_word... " >&6; }
10713 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 if test -n "$GOC_FOR_TARGET"; then
10717 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10718 else
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10722 IFS=$as_save_IFS
10723 test -z "$as_dir" && as_dir=.
10724 for ac_exec_ext in '' $ac_executable_extensions; do
10725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10726 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10728 break 2
10730 done
10731 done
10732 IFS=$as_save_IFS
10736 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10737 if test -n "$GOC_FOR_TARGET"; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10739 $as_echo "$GOC_FOR_TARGET" >&6; }
10740 else
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10746 done
10749 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10750 for ncn_progname in gccgo; do
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10752 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10753 if test -x $with_build_time_tools/${ncn_progname}; then
10754 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10756 $as_echo "yes" >&6; }
10757 break
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10762 done
10765 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10766 for ncn_progname in gccgo; do
10767 if test -n "$ncn_target_tool_prefix"; then
10768 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10769 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 if test -n "$GOC_FOR_TARGET"; then
10776 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10777 else
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10789 done
10790 done
10791 IFS=$as_save_IFS
10795 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10796 if test -n "$GOC_FOR_TARGET"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10798 $as_echo "$GOC_FOR_TARGET" >&6; }
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10806 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10808 set dummy ${ncn_progname}; ac_word=$2
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10810 $as_echo_n "checking for $ac_word... " >&6; }
10811 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 if test -n "$GOC_FOR_TARGET"; then
10815 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10816 else
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10820 IFS=$as_save_IFS
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10824 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826 break 2
10828 done
10829 done
10830 IFS=$as_save_IFS
10834 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10835 if test -n "$GOC_FOR_TARGET"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10837 $as_echo "$GOC_FOR_TARGET" >&6; }
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10845 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10846 done
10849 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10850 set dummy gccgo
10851 if test $build = $target ; then
10852 GOC_FOR_TARGET="$2"
10853 else
10854 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10856 else
10857 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10862 cat > conftest.c << \EOF
10863 #ifdef __GNUC__
10864 gcc_yay;
10865 #endif
10867 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10868 have_gcc_for_target=yes
10869 else
10870 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10871 have_gcc_for_target=no
10873 rm conftest.c
10878 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10879 if test -n "$with_build_time_tools"; then
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10881 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10882 if test -x $with_build_time_tools/ar; then
10883 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10884 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10886 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10891 elif test $build != $host && test $have_gcc_for_target = yes; then
10892 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10893 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10894 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10897 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10898 # Extract the first word of "ar", so it can be a program name with args.
10899 set dummy ar; ac_word=$2
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901 $as_echo_n "checking for $ac_word... " >&6; }
10902 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 case $AR_FOR_TARGET in
10906 [\\/]* | ?:[\\/]*)
10907 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $gcc_cv_tool_dirs
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10921 done
10922 done
10923 IFS=$as_save_IFS
10926 esac
10928 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10929 if test -n "$AR_FOR_TARGET"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10931 $as_echo "$AR_FOR_TARGET" >&6; }
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934 $as_echo "no" >&6; }
10939 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10942 if test -n "$AR_FOR_TARGET"; then
10943 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10944 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10945 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10948 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10949 for ncn_progname in ar; do
10950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10951 set dummy ${ncn_progname}; ac_word=$2
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10953 $as_echo_n "checking for $ac_word... " >&6; }
10954 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 if test -n "$AR_FOR_TARGET"; then
10958 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10959 else
10960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961 for as_dir in $PATH
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10967 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10971 done
10972 done
10973 IFS=$as_save_IFS
10977 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10978 if test -n "$AR_FOR_TARGET"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10980 $as_echo "$AR_FOR_TARGET" >&6; }
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10987 done
10990 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10991 for ncn_progname in ar; do
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10993 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10994 if test -x $with_build_time_tools/${ncn_progname}; then
10995 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10997 $as_echo "yes" >&6; }
10998 break
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11003 done
11006 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11007 for ncn_progname in ar; do
11008 if test -n "$ncn_target_tool_prefix"; then
11009 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11010 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 if test -n "$AR_FOR_TARGET"; then
11017 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11018 else
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11026 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11030 done
11031 done
11032 IFS=$as_save_IFS
11036 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11037 if test -n "$AR_FOR_TARGET"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11039 $as_echo "$AR_FOR_TARGET" >&6; }
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11047 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11049 set dummy ${ncn_progname}; ac_word=$2
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051 $as_echo_n "checking for $ac_word... " >&6; }
11052 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 if test -n "$AR_FOR_TARGET"; then
11056 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11057 else
11058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11059 for as_dir in $PATH
11061 IFS=$as_save_IFS
11062 test -z "$as_dir" && as_dir=.
11063 for ac_exec_ext in '' $ac_executable_extensions; do
11064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11065 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11067 break 2
11069 done
11070 done
11071 IFS=$as_save_IFS
11075 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11076 if test -n "$AR_FOR_TARGET"; then
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11078 $as_echo "$AR_FOR_TARGET" >&6; }
11079 else
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081 $as_echo "no" >&6; }
11086 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11087 done
11090 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11091 set dummy ar
11092 if test $build = $target ; then
11093 AR_FOR_TARGET="$2"
11094 else
11095 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11097 else
11098 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11101 else
11102 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11108 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11109 if test -n "$with_build_time_tools"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11111 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11112 if test -x $with_build_time_tools/as; then
11113 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11114 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11116 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11117 else
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11121 elif test $build != $host && test $have_gcc_for_target = yes; then
11122 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11123 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11124 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11127 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11128 # Extract the first word of "as", so it can be a program name with args.
11129 set dummy as; ac_word=$2
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11131 $as_echo_n "checking for $ac_word... " >&6; }
11132 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 case $AS_FOR_TARGET in
11136 [\\/]* | ?:[\\/]*)
11137 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $gcc_cv_tool_dirs
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11147 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149 break 2
11151 done
11152 done
11153 IFS=$as_save_IFS
11156 esac
11158 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11159 if test -n "$AS_FOR_TARGET"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11161 $as_echo "$AS_FOR_TARGET" >&6; }
11162 else
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11169 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11172 if test -n "$AS_FOR_TARGET"; then
11173 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11174 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11175 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11178 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11179 for ncn_progname in as; do
11180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11181 set dummy ${ncn_progname}; ac_word=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 if test -n "$AS_FOR_TARGET"; then
11188 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11189 else
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11201 done
11202 done
11203 IFS=$as_save_IFS
11207 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11208 if test -n "$AS_FOR_TARGET"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11210 $as_echo "$AS_FOR_TARGET" >&6; }
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11217 done
11220 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11221 for ncn_progname in as; do
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11223 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11224 if test -x $with_build_time_tools/${ncn_progname}; then
11225 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11227 $as_echo "yes" >&6; }
11228 break
11229 else
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11233 done
11236 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11237 for ncn_progname in as; do
11238 if test -n "$ncn_target_tool_prefix"; then
11239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11240 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 $as_echo_n "checking for $ac_word... " >&6; }
11243 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 if test -n "$AS_FOR_TARGET"; then
11247 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11248 else
11249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250 for as_dir in $PATH
11252 IFS=$as_save_IFS
11253 test -z "$as_dir" && as_dir=.
11254 for ac_exec_ext in '' $ac_executable_extensions; do
11255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11256 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11258 break 2
11260 done
11261 done
11262 IFS=$as_save_IFS
11266 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11267 if test -n "$AS_FOR_TARGET"; then
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11269 $as_echo "$AS_FOR_TARGET" >&6; }
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11277 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11279 set dummy ${ncn_progname}; ac_word=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 if test -n "$AS_FOR_TARGET"; then
11286 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11287 else
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in $PATH
11291 IFS=$as_save_IFS
11292 test -z "$as_dir" && as_dir=.
11293 for ac_exec_ext in '' $ac_executable_extensions; do
11294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 break 2
11299 done
11300 done
11301 IFS=$as_save_IFS
11305 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11306 if test -n "$AS_FOR_TARGET"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11308 $as_echo "$AS_FOR_TARGET" >&6; }
11309 else
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11316 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11317 done
11320 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11321 set dummy as
11322 if test $build = $target ; then
11323 AS_FOR_TARGET="$2"
11324 else
11325 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11327 else
11328 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11331 else
11332 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11338 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11339 if test -n "$with_build_time_tools"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11341 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11342 if test -x $with_build_time_tools/dlltool; then
11343 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11344 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11346 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11349 $as_echo "no" >&6; }
11351 elif test $build != $host && test $have_gcc_for_target = yes; then
11352 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11353 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11354 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11357 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11358 # Extract the first word of "dlltool", so it can be a program name with args.
11359 set dummy dlltool; ac_word=$2
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11361 $as_echo_n "checking for $ac_word... " >&6; }
11362 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 case $DLLTOOL_FOR_TARGET in
11366 [\\/]* | ?:[\\/]*)
11367 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $gcc_cv_tool_dirs
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11377 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11381 done
11382 done
11383 IFS=$as_save_IFS
11386 esac
11388 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11389 if test -n "$DLLTOOL_FOR_TARGET"; then
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11391 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11392 else
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11399 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11402 if test -n "$DLLTOOL_FOR_TARGET"; then
11403 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11404 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11405 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11408 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11409 for ncn_progname in dlltool; do
11410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11411 set dummy ${ncn_progname}; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 if test -n "$DLLTOOL_FOR_TARGET"; then
11418 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11419 else
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11431 done
11432 done
11433 IFS=$as_save_IFS
11437 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11438 if test -n "$DLLTOOL_FOR_TARGET"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11440 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11447 done
11450 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11451 for ncn_progname in dlltool; do
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11453 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11454 if test -x $with_build_time_tools/${ncn_progname}; then
11455 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11457 $as_echo "yes" >&6; }
11458 break
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11463 done
11466 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11467 for ncn_progname in dlltool; do
11468 if test -n "$ncn_target_tool_prefix"; then
11469 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11470 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 if test -n "$DLLTOOL_FOR_TARGET"; then
11477 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11478 else
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 break 2
11490 done
11491 done
11492 IFS=$as_save_IFS
11496 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11497 if test -n "$DLLTOOL_FOR_TARGET"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11499 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11507 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11509 set dummy ${ncn_progname}; ac_word=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 if test -n "$DLLTOOL_FOR_TARGET"; then
11516 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11517 else
11518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519 for as_dir in $PATH
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
11523 for ac_exec_ext in '' $ac_executable_extensions; do
11524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11525 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 break 2
11529 done
11530 done
11531 IFS=$as_save_IFS
11535 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11536 if test -n "$DLLTOOL_FOR_TARGET"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11538 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11546 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11547 done
11550 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11551 set dummy dlltool
11552 if test $build = $target ; then
11553 DLLTOOL_FOR_TARGET="$2"
11554 else
11555 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11557 else
11558 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11561 else
11562 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11568 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11569 if test -n "$with_build_time_tools"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11571 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11572 if test -x $with_build_time_tools/ld; then
11573 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11574 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11576 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11577 else
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11581 elif test $build != $host && test $have_gcc_for_target = yes; then
11582 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11583 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11584 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11587 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11588 # Extract the first word of "ld", so it can be a program name with args.
11589 set dummy ld; ac_word=$2
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 case $LD_FOR_TARGET in
11596 [\\/]* | ?:[\\/]*)
11597 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $gcc_cv_tool_dirs
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11607 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11611 done
11612 done
11613 IFS=$as_save_IFS
11616 esac
11618 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11619 if test -n "$LD_FOR_TARGET"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11621 $as_echo "$LD_FOR_TARGET" >&6; }
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11629 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11632 if test -n "$LD_FOR_TARGET"; then
11633 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11634 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11635 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11638 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11639 for ncn_progname in ld; do
11640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11641 set dummy ${ncn_progname}; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test -n "$LD_FOR_TARGET"; then
11648 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11649 else
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11661 done
11662 done
11663 IFS=$as_save_IFS
11667 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11668 if test -n "$LD_FOR_TARGET"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11670 $as_echo "$LD_FOR_TARGET" >&6; }
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11677 done
11680 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11681 for ncn_progname in ld; do
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11683 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11684 if test -x $with_build_time_tools/${ncn_progname}; then
11685 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11687 $as_echo "yes" >&6; }
11688 break
11689 else
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11693 done
11696 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11697 for ncn_progname in ld; do
11698 if test -n "$ncn_target_tool_prefix"; then
11699 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11700 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11702 $as_echo_n "checking for $ac_word... " >&6; }
11703 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 if test -n "$LD_FOR_TARGET"; then
11707 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11708 else
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11720 done
11721 done
11722 IFS=$as_save_IFS
11726 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11727 if test -n "$LD_FOR_TARGET"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11729 $as_echo "$LD_FOR_TARGET" >&6; }
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11737 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11739 set dummy ${ncn_progname}; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 if test -n "$LD_FOR_TARGET"; then
11746 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 break 2
11759 done
11760 done
11761 IFS=$as_save_IFS
11765 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11766 if test -n "$LD_FOR_TARGET"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11768 $as_echo "$LD_FOR_TARGET" >&6; }
11769 else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11776 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11777 done
11780 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11781 set dummy ld
11782 if test $build = $target ; then
11783 LD_FOR_TARGET="$2"
11784 else
11785 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11787 else
11788 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11791 else
11792 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11798 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11799 if test -n "$with_build_time_tools"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11801 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11802 if test -x $with_build_time_tools/lipo; then
11803 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11804 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11806 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11811 elif test $build != $host && test $have_gcc_for_target = yes; then
11812 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11813 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11814 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11817 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11818 # Extract the first word of "lipo", so it can be a program name with args.
11819 set dummy lipo; ac_word=$2
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821 $as_echo_n "checking for $ac_word... " >&6; }
11822 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11824 else
11825 case $LIPO_FOR_TARGET in
11826 [\\/]* | ?:[\\/]*)
11827 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $gcc_cv_tool_dirs
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11837 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11839 break 2
11841 done
11842 done
11843 IFS=$as_save_IFS
11846 esac
11848 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11849 if test -n "$LIPO_FOR_TARGET"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11851 $as_echo "$LIPO_FOR_TARGET" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11859 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11862 if test -n "$LIPO_FOR_TARGET"; then
11863 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11864 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11865 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11868 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11869 for ncn_progname in lipo; do
11870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11871 set dummy ${ncn_progname}; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 if test -n "$LIPO_FOR_TARGET"; then
11878 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11879 else
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11891 done
11892 done
11893 IFS=$as_save_IFS
11897 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11898 if test -n "$LIPO_FOR_TARGET"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11900 $as_echo "$LIPO_FOR_TARGET" >&6; }
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11907 done
11910 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11911 for ncn_progname in lipo; do
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11913 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11914 if test -x $with_build_time_tools/${ncn_progname}; then
11915 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11917 $as_echo "yes" >&6; }
11918 break
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11923 done
11926 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11927 for ncn_progname in lipo; do
11928 if test -n "$ncn_target_tool_prefix"; then
11929 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11930 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 if test -n "$LIPO_FOR_TARGET"; then
11937 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11946 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948 break 2
11950 done
11951 done
11952 IFS=$as_save_IFS
11956 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11957 if test -n "$LIPO_FOR_TARGET"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11959 $as_echo "$LIPO_FOR_TARGET" >&6; }
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11967 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11969 set dummy ${ncn_progname}; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11973 $as_echo_n "(cached) " >&6
11974 else
11975 if test -n "$LIPO_FOR_TARGET"; then
11976 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11977 else
11978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11979 for as_dir in $PATH
11981 IFS=$as_save_IFS
11982 test -z "$as_dir" && as_dir=.
11983 for ac_exec_ext in '' $ac_executable_extensions; do
11984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11985 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11987 break 2
11989 done
11990 done
11991 IFS=$as_save_IFS
11995 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11996 if test -n "$LIPO_FOR_TARGET"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11998 $as_echo "$LIPO_FOR_TARGET" >&6; }
11999 else
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12006 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12007 done
12010 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12011 set dummy lipo
12012 if test $build = $target ; then
12013 LIPO_FOR_TARGET="$2"
12014 else
12015 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12017 else
12018 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12021 else
12022 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12028 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12029 if test -n "$with_build_time_tools"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12031 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12032 if test -x $with_build_time_tools/nm; then
12033 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12034 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12036 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12041 elif test $build != $host && test $have_gcc_for_target = yes; then
12042 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12043 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12044 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12047 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12048 # Extract the first word of "nm", so it can be a program name with args.
12049 set dummy nm; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 case $NM_FOR_TARGET in
12056 [\\/]* | ?:[\\/]*)
12057 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $gcc_cv_tool_dirs
12063 IFS=$as_save_IFS
12064 test -z "$as_dir" && as_dir=.
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12067 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 break 2
12071 done
12072 done
12073 IFS=$as_save_IFS
12076 esac
12078 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12079 if test -n "$NM_FOR_TARGET"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12081 $as_echo "$NM_FOR_TARGET" >&6; }
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12089 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12092 if test -n "$NM_FOR_TARGET"; then
12093 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12094 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12095 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12098 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12099 for ncn_progname in nm; do
12100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12101 set dummy ${ncn_progname}; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 if test -n "$NM_FOR_TARGET"; then
12108 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12109 else
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12117 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12121 done
12122 done
12123 IFS=$as_save_IFS
12127 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12128 if test -n "$NM_FOR_TARGET"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12130 $as_echo "$NM_FOR_TARGET" >&6; }
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12137 done
12140 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12141 for ncn_progname in nm; do
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12143 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12144 if test -x $with_build_time_tools/${ncn_progname}; then
12145 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12147 $as_echo "yes" >&6; }
12148 break
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12153 done
12156 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12157 for ncn_progname in nm; do
12158 if test -n "$ncn_target_tool_prefix"; then
12159 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12160 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162 $as_echo_n "checking for $ac_word... " >&6; }
12163 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 if test -n "$NM_FOR_TARGET"; then
12167 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12168 else
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12176 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12178 break 2
12180 done
12181 done
12182 IFS=$as_save_IFS
12186 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12187 if test -n "$NM_FOR_TARGET"; then
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12189 $as_echo "$NM_FOR_TARGET" >&6; }
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12197 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12199 set dummy ${ncn_progname}; ac_word=$2
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12201 $as_echo_n "checking for $ac_word... " >&6; }
12202 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 if test -n "$NM_FOR_TARGET"; then
12206 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12207 else
12208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12211 IFS=$as_save_IFS
12212 test -z "$as_dir" && as_dir=.
12213 for ac_exec_ext in '' $ac_executable_extensions; do
12214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12215 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217 break 2
12219 done
12220 done
12221 IFS=$as_save_IFS
12225 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12226 if test -n "$NM_FOR_TARGET"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12228 $as_echo "$NM_FOR_TARGET" >&6; }
12229 else
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12236 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12237 done
12240 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12241 set dummy nm
12242 if test $build = $target ; then
12243 NM_FOR_TARGET="$2"
12244 else
12245 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12247 else
12248 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12251 else
12252 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12258 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12259 if test -n "$with_build_time_tools"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12261 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12262 if test -x $with_build_time_tools/objdump; then
12263 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12264 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12266 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12267 else
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12271 elif test $build != $host && test $have_gcc_for_target = yes; then
12272 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12273 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12274 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12277 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12278 # Extract the first word of "objdump", so it can be a program name with args.
12279 set dummy objdump; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 case $OBJDUMP_FOR_TARGET in
12286 [\\/]* | ?:[\\/]*)
12287 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $gcc_cv_tool_dirs
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12297 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12299 break 2
12301 done
12302 done
12303 IFS=$as_save_IFS
12306 esac
12308 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12309 if test -n "$OBJDUMP_FOR_TARGET"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12311 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12312 else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12319 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12322 if test -n "$OBJDUMP_FOR_TARGET"; then
12323 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12324 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12325 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12328 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12329 for ncn_progname in objdump; do
12330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 if test -n "$OBJDUMP_FOR_TARGET"; then
12338 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12339 else
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12347 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349 break 2
12351 done
12352 done
12353 IFS=$as_save_IFS
12357 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12358 if test -n "$OBJDUMP_FOR_TARGET"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12360 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12367 done
12370 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12371 for ncn_progname in objdump; do
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12373 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12374 if test -x $with_build_time_tools/${ncn_progname}; then
12375 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12377 $as_echo "yes" >&6; }
12378 break
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12383 done
12386 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12387 for ncn_progname in objdump; do
12388 if test -n "$ncn_target_tool_prefix"; then
12389 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12390 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -n "$OBJDUMP_FOR_TARGET"; then
12397 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12410 done
12411 done
12412 IFS=$as_save_IFS
12416 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12417 if test -n "$OBJDUMP_FOR_TARGET"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12419 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12427 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12429 set dummy ${ncn_progname}; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 if test -n "$OBJDUMP_FOR_TARGET"; then
12436 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12437 else
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12449 done
12450 done
12451 IFS=$as_save_IFS
12455 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12456 if test -n "$OBJDUMP_FOR_TARGET"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12458 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12466 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12467 done
12470 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12471 set dummy objdump
12472 if test $build = $target ; then
12473 OBJDUMP_FOR_TARGET="$2"
12474 else
12475 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12477 else
12478 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12481 else
12482 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12488 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12489 if test -n "$with_build_time_tools"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12491 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12492 if test -x $with_build_time_tools/ranlib; then
12493 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12494 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12496 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12501 elif test $build != $host && test $have_gcc_for_target = yes; then
12502 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12503 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12504 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12507 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12508 # Extract the first word of "ranlib", so it can be a program name with args.
12509 set dummy ranlib; ac_word=$2
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12515 case $RANLIB_FOR_TARGET in
12516 [\\/]* | ?:[\\/]*)
12517 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in $gcc_cv_tool_dirs
12523 IFS=$as_save_IFS
12524 test -z "$as_dir" && as_dir=.
12525 for ac_exec_ext in '' $ac_executable_extensions; do
12526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12527 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529 break 2
12531 done
12532 done
12533 IFS=$as_save_IFS
12536 esac
12538 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12539 if test -n "$RANLIB_FOR_TARGET"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12541 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12542 else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12549 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12552 if test -n "$RANLIB_FOR_TARGET"; then
12553 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12554 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12555 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12558 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12559 for ncn_progname in ranlib; do
12560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12561 set dummy ${ncn_progname}; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 if test -n "$RANLIB_FOR_TARGET"; then
12568 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12569 else
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12577 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12581 done
12582 done
12583 IFS=$as_save_IFS
12587 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12588 if test -n "$RANLIB_FOR_TARGET"; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12590 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12597 done
12600 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12601 for ncn_progname in ranlib; do
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12603 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12604 if test -x $with_build_time_tools/${ncn_progname}; then
12605 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12607 $as_echo "yes" >&6; }
12608 break
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12613 done
12616 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12617 for ncn_progname in ranlib; do
12618 if test -n "$ncn_target_tool_prefix"; then
12619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12620 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
12625 else
12626 if test -n "$RANLIB_FOR_TARGET"; then
12627 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12628 else
12629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630 for as_dir in $PATH
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12636 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638 break 2
12640 done
12641 done
12642 IFS=$as_save_IFS
12646 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12647 if test -n "$RANLIB_FOR_TARGET"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12649 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12657 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12659 set dummy ${ncn_progname}; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 if test -n "$RANLIB_FOR_TARGET"; then
12666 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12667 else
12668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12669 for as_dir in $PATH
12671 IFS=$as_save_IFS
12672 test -z "$as_dir" && as_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12675 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12677 break 2
12679 done
12680 done
12681 IFS=$as_save_IFS
12685 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12686 if test -n "$RANLIB_FOR_TARGET"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12688 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12689 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12696 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12697 done
12700 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12701 set dummy ranlib
12702 if test $build = $target ; then
12703 RANLIB_FOR_TARGET="$2"
12704 else
12705 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12707 else
12708 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12711 else
12712 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12718 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12719 if test -n "$with_build_time_tools"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12721 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12722 if test -x $with_build_time_tools/readelf; then
12723 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12724 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12726 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729 $as_echo "no" >&6; }
12731 elif test $build != $host && test $have_gcc_for_target = yes; then
12732 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12733 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12734 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12737 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12738 # Extract the first word of "readelf", so it can be a program name with args.
12739 set dummy readelf; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12741 $as_echo_n "checking for $ac_word... " >&6; }
12742 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12743 $as_echo_n "(cached) " >&6
12744 else
12745 case $READELF_FOR_TARGET in
12746 [\\/]* | ?:[\\/]*)
12747 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751 for as_dir in $gcc_cv_tool_dirs
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12757 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12761 done
12762 done
12763 IFS=$as_save_IFS
12766 esac
12768 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12769 if test -n "$READELF_FOR_TARGET"; then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12771 $as_echo "$READELF_FOR_TARGET" >&6; }
12772 else
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 $as_echo "no" >&6; }
12779 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12782 if test -n "$READELF_FOR_TARGET"; then
12783 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12784 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12785 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12788 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12789 for ncn_progname in readelf; do
12790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12791 set dummy ${ncn_progname}; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 if test -n "$READELF_FOR_TARGET"; then
12798 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12799 else
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in $PATH
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12807 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12811 done
12812 done
12813 IFS=$as_save_IFS
12817 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12818 if test -n "$READELF_FOR_TARGET"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12820 $as_echo "$READELF_FOR_TARGET" >&6; }
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12827 done
12830 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12831 for ncn_progname in readelf; do
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12833 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12834 if test -x $with_build_time_tools/${ncn_progname}; then
12835 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12837 $as_echo "yes" >&6; }
12838 break
12839 else
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12843 done
12846 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12847 for ncn_progname in readelf; do
12848 if test -n "$ncn_target_tool_prefix"; then
12849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12850 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852 $as_echo_n "checking for $ac_word... " >&6; }
12853 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 if test -n "$READELF_FOR_TARGET"; then
12857 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12858 else
12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12866 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 break 2
12870 done
12871 done
12872 IFS=$as_save_IFS
12876 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12877 if test -n "$READELF_FOR_TARGET"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12879 $as_echo "$READELF_FOR_TARGET" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12887 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12889 set dummy ${ncn_progname}; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 if test -n "$READELF_FOR_TARGET"; then
12896 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12909 done
12910 done
12911 IFS=$as_save_IFS
12915 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12916 if test -n "$READELF_FOR_TARGET"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12918 $as_echo "$READELF_FOR_TARGET" >&6; }
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12926 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12927 done
12930 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12931 set dummy readelf
12932 if test $build = $target ; then
12933 READELF_FOR_TARGET="$2"
12934 else
12935 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12937 else
12938 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12941 else
12942 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12948 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12949 if test -n "$with_build_time_tools"; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12951 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12952 if test -x $with_build_time_tools/strip; then
12953 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12954 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12956 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12957 else
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12961 elif test $build != $host && test $have_gcc_for_target = yes; then
12962 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12963 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12964 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12967 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12968 # Extract the first word of "strip", so it can be a program name with args.
12969 set dummy strip; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12974 else
12975 case $STRIP_FOR_TARGET in
12976 [\\/]* | ?:[\\/]*)
12977 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $gcc_cv_tool_dirs
12983 IFS=$as_save_IFS
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 break 2
12991 done
12992 done
12993 IFS=$as_save_IFS
12996 esac
12998 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12999 if test -n "$STRIP_FOR_TARGET"; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13001 $as_echo "$STRIP_FOR_TARGET" >&6; }
13002 else
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13009 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13012 if test -n "$STRIP_FOR_TARGET"; then
13013 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13014 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13015 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13018 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13019 for ncn_progname in strip; do
13020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13021 set dummy ${ncn_progname}; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 if test -n "$STRIP_FOR_TARGET"; then
13028 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13041 done
13042 done
13043 IFS=$as_save_IFS
13047 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13048 if test -n "$STRIP_FOR_TARGET"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13050 $as_echo "$STRIP_FOR_TARGET" >&6; }
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13057 done
13060 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13061 for ncn_progname in strip; do
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13063 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13064 if test -x $with_build_time_tools/${ncn_progname}; then
13065 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13067 $as_echo "yes" >&6; }
13068 break
13069 else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13073 done
13076 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13077 for ncn_progname in strip; do
13078 if test -n "$ncn_target_tool_prefix"; then
13079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13080 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082 $as_echo_n "checking for $ac_word... " >&6; }
13083 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 if test -n "$STRIP_FOR_TARGET"; then
13087 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13088 else
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $PATH
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13096 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13100 done
13101 done
13102 IFS=$as_save_IFS
13106 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13107 if test -n "$STRIP_FOR_TARGET"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13109 $as_echo "$STRIP_FOR_TARGET" >&6; }
13110 else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13117 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13119 set dummy ${ncn_progname}; ac_word=$2
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121 $as_echo_n "checking for $ac_word... " >&6; }
13122 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 if test -n "$STRIP_FOR_TARGET"; then
13126 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13127 else
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13135 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13139 done
13140 done
13141 IFS=$as_save_IFS
13145 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13146 if test -n "$STRIP_FOR_TARGET"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13148 $as_echo "$STRIP_FOR_TARGET" >&6; }
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13156 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13157 done
13160 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13161 set dummy strip
13162 if test $build = $target ; then
13163 STRIP_FOR_TARGET="$2"
13164 else
13165 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13167 else
13168 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13171 else
13172 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13178 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13179 if test -n "$with_build_time_tools"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13181 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13182 if test -x $with_build_time_tools/windres; then
13183 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13184 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13186 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13191 elif test $build != $host && test $have_gcc_for_target = yes; then
13192 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13193 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13194 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13197 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13198 # Extract the first word of "windres", so it can be a program name with args.
13199 set dummy windres; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13201 $as_echo_n "checking for $ac_word... " >&6; }
13202 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 case $WINDRES_FOR_TARGET in
13206 [\\/]* | ?:[\\/]*)
13207 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $gcc_cv_tool_dirs
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13217 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13221 done
13222 done
13223 IFS=$as_save_IFS
13226 esac
13228 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13229 if test -n "$WINDRES_FOR_TARGET"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13231 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13239 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13242 if test -n "$WINDRES_FOR_TARGET"; then
13243 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13244 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13245 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13248 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13249 for ncn_progname in windres; do
13250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13251 set dummy ${ncn_progname}; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 if test -n "$WINDRES_FOR_TARGET"; then
13258 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13271 done
13272 done
13273 IFS=$as_save_IFS
13277 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13278 if test -n "$WINDRES_FOR_TARGET"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13280 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13287 done
13290 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13291 for ncn_progname in windres; do
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13293 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13294 if test -x $with_build_time_tools/${ncn_progname}; then
13295 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13297 $as_echo "yes" >&6; }
13298 break
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13303 done
13306 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13307 for ncn_progname in windres; do
13308 if test -n "$ncn_target_tool_prefix"; then
13309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13310 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312 $as_echo_n "checking for $ac_word... " >&6; }
13313 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 if test -n "$WINDRES_FOR_TARGET"; then
13317 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13318 else
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $PATH
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13326 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13328 break 2
13330 done
13331 done
13332 IFS=$as_save_IFS
13336 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13339 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13347 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13349 set dummy ${ncn_progname}; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 if test -n "$WINDRES_FOR_TARGET"; then
13356 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13357 else
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13369 done
13370 done
13371 IFS=$as_save_IFS
13375 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13376 if test -n "$WINDRES_FOR_TARGET"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13378 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13379 else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13386 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13387 done
13390 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13391 set dummy windres
13392 if test $build = $target ; then
13393 WINDRES_FOR_TARGET="$2"
13394 else
13395 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13397 else
13398 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13401 else
13402 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13408 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13409 if test -n "$with_build_time_tools"; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13411 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13412 if test -x $with_build_time_tools/windmc; then
13413 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13414 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13416 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13421 elif test $build != $host && test $have_gcc_for_target = yes; then
13422 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13423 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13424 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13427 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13428 # Extract the first word of "windmc", so it can be a program name with args.
13429 set dummy windmc; ac_word=$2
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13431 $as_echo_n "checking for $ac_word... " >&6; }
13432 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13435 case $WINDMC_FOR_TARGET in
13436 [\\/]* | ?:[\\/]*)
13437 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441 for as_dir in $gcc_cv_tool_dirs
13443 IFS=$as_save_IFS
13444 test -z "$as_dir" && as_dir=.
13445 for ac_exec_ext in '' $ac_executable_extensions; do
13446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13447 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13449 break 2
13451 done
13452 done
13453 IFS=$as_save_IFS
13456 esac
13458 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13459 if test -n "$WINDMC_FOR_TARGET"; then
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13461 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13462 else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464 $as_echo "no" >&6; }
13469 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13472 if test -n "$WINDMC_FOR_TARGET"; then
13473 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13474 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13475 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13478 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13479 for ncn_progname in windmc; do
13480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13481 set dummy ${ncn_progname}; ac_word=$2
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13483 $as_echo_n "checking for $ac_word... " >&6; }
13484 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 if test -n "$WINDMC_FOR_TARGET"; then
13488 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13489 else
13490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491 for as_dir in $PATH
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13497 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13499 break 2
13501 done
13502 done
13503 IFS=$as_save_IFS
13507 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13508 if test -n "$WINDMC_FOR_TARGET"; then
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13510 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13511 else
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13517 done
13520 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13521 for ncn_progname in windmc; do
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13523 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13524 if test -x $with_build_time_tools/${ncn_progname}; then
13525 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13527 $as_echo "yes" >&6; }
13528 break
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13531 $as_echo "no" >&6; }
13533 done
13536 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13537 for ncn_progname in windmc; do
13538 if test -n "$ncn_target_tool_prefix"; then
13539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13540 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13542 $as_echo_n "checking for $ac_word... " >&6; }
13543 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13544 $as_echo_n "(cached) " >&6
13545 else
13546 if test -n "$WINDMC_FOR_TARGET"; then
13547 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13548 else
13549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 for as_dir in $PATH
13552 IFS=$as_save_IFS
13553 test -z "$as_dir" && as_dir=.
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13556 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13558 break 2
13560 done
13561 done
13562 IFS=$as_save_IFS
13566 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13569 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13570 else
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572 $as_echo "no" >&6; }
13577 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13579 set dummy ${ncn_progname}; ac_word=$2
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581 $as_echo_n "checking for $ac_word... " >&6; }
13582 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 if test -n "$WINDMC_FOR_TARGET"; then
13586 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13587 else
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589 for as_dir in $PATH
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13595 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13599 done
13600 done
13601 IFS=$as_save_IFS
13605 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13606 if test -n "$WINDMC_FOR_TARGET"; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13608 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611 $as_echo "no" >&6; }
13616 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13617 done
13620 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13621 set dummy windmc
13622 if test $build = $target ; then
13623 WINDMC_FOR_TARGET="$2"
13624 else
13625 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13627 else
13628 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13631 else
13632 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13636 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13639 $as_echo_n "checking where to find the target ar... " >&6; }
13640 if test "x${build}" != "x${host}" ; then
13641 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13642 # We already found the complete path
13643 ac_dir=`dirname $AR_FOR_TARGET`
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13645 $as_echo "pre-installed in $ac_dir" >&6; }
13646 else
13647 # Canadian cross, just use what we found
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13649 $as_echo "pre-installed" >&6; }
13651 else
13652 ok=yes
13653 case " ${configdirs} " in
13654 *" binutils "*) ;;
13655 *) ok=no ;;
13656 esac
13658 if test $ok = yes; then
13659 # An in-tree tool is available and we can use it
13660 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13662 $as_echo "just compiled" >&6; }
13663 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13664 # We already found the complete path
13665 ac_dir=`dirname $AR_FOR_TARGET`
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13667 $as_echo "pre-installed in $ac_dir" >&6; }
13668 elif test "x$target" = "x$host"; then
13669 # We can use an host tool
13670 AR_FOR_TARGET='$(AR)'
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13672 $as_echo "host tool" >&6; }
13673 else
13674 # We need a cross tool
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13676 $as_echo "pre-installed" >&6; }
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13681 $as_echo_n "checking where to find the target as... " >&6; }
13682 if test "x${build}" != "x${host}" ; then
13683 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13684 # We already found the complete path
13685 ac_dir=`dirname $AS_FOR_TARGET`
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13687 $as_echo "pre-installed in $ac_dir" >&6; }
13688 else
13689 # Canadian cross, just use what we found
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13691 $as_echo "pre-installed" >&6; }
13693 else
13694 ok=yes
13695 case " ${configdirs} " in
13696 *" gas "*) ;;
13697 *) ok=no ;;
13698 esac
13700 if test $ok = yes; then
13701 # An in-tree tool is available and we can use it
13702 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13704 $as_echo "just compiled" >&6; }
13705 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
13707 ac_dir=`dirname $AS_FOR_TARGET`
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709 $as_echo "pre-installed in $ac_dir" >&6; }
13710 elif test "x$target" = "x$host"; then
13711 # We can use an host tool
13712 AS_FOR_TARGET='$(AS)'
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13714 $as_echo "host tool" >&6; }
13715 else
13716 # We need a cross tool
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13718 $as_echo "pre-installed" >&6; }
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13723 $as_echo_n "checking where to find the target cc... " >&6; }
13724 if test "x${build}" != "x${host}" ; then
13725 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13726 # We already found the complete path
13727 ac_dir=`dirname $CC_FOR_TARGET`
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13729 $as_echo "pre-installed in $ac_dir" >&6; }
13730 else
13731 # Canadian cross, just use what we found
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13733 $as_echo "pre-installed" >&6; }
13735 else
13736 ok=yes
13737 case " ${configdirs} " in
13738 *" gcc "*) ;;
13739 *) ok=no ;;
13740 esac
13742 if test $ok = yes; then
13743 # An in-tree tool is available and we can use it
13744 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13746 $as_echo "just compiled" >&6; }
13747 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
13749 ac_dir=`dirname $CC_FOR_TARGET`
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751 $as_echo "pre-installed in $ac_dir" >&6; }
13752 elif test "x$target" = "x$host"; then
13753 # We can use an host tool
13754 CC_FOR_TARGET='$(CC)'
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13756 $as_echo "host tool" >&6; }
13757 else
13758 # We need a cross tool
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13760 $as_echo "pre-installed" >&6; }
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13765 $as_echo_n "checking where to find the target c++... " >&6; }
13766 if test "x${build}" != "x${host}" ; then
13767 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13768 # We already found the complete path
13769 ac_dir=`dirname $CXX_FOR_TARGET`
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13771 $as_echo "pre-installed in $ac_dir" >&6; }
13772 else
13773 # Canadian cross, just use what we found
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775 $as_echo "pre-installed" >&6; }
13777 else
13778 ok=yes
13779 case " ${configdirs} " in
13780 *" gcc "*) ;;
13781 *) ok=no ;;
13782 esac
13783 case ,${enable_languages}, in
13784 *,c++,*) ;;
13785 *) ok=no ;;
13786 esac
13787 if test $ok = yes; then
13788 # An in-tree tool is available and we can use it
13789 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'
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13791 $as_echo "just compiled" >&6; }
13792 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13793 # We already found the complete path
13794 ac_dir=`dirname $CXX_FOR_TARGET`
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13796 $as_echo "pre-installed in $ac_dir" >&6; }
13797 elif test "x$target" = "x$host"; then
13798 # We can use an host tool
13799 CXX_FOR_TARGET='$(CXX)'
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13801 $as_echo "host tool" >&6; }
13802 else
13803 # We need a cross tool
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13805 $as_echo "pre-installed" >&6; }
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13810 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13811 if test "x${build}" != "x${host}" ; then
13812 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13813 # We already found the complete path
13814 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13816 $as_echo "pre-installed in $ac_dir" >&6; }
13817 else
13818 # Canadian cross, just use what we found
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13820 $as_echo "pre-installed" >&6; }
13822 else
13823 ok=yes
13824 case " ${configdirs} " in
13825 *" gcc "*) ;;
13826 *) ok=no ;;
13827 esac
13828 case ,${enable_languages}, in
13829 *,c++,*) ;;
13830 *) ok=no ;;
13831 esac
13832 if test $ok = yes; then
13833 # An in-tree tool is available and we can use it
13834 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'
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13836 $as_echo "just compiled" >&6; }
13837 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13838 # We already found the complete path
13839 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13841 $as_echo "pre-installed in $ac_dir" >&6; }
13842 elif test "x$target" = "x$host"; then
13843 # We can use an host tool
13844 RAW_CXX_FOR_TARGET='$(CXX)'
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13846 $as_echo "host tool" >&6; }
13847 else
13848 # We need a cross tool
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13850 $as_echo "pre-installed" >&6; }
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13855 $as_echo_n "checking where to find the target dlltool... " >&6; }
13856 if test "x${build}" != "x${host}" ; then
13857 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13858 # We already found the complete path
13859 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13861 $as_echo "pre-installed in $ac_dir" >&6; }
13862 else
13863 # Canadian cross, just use what we found
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13865 $as_echo "pre-installed" >&6; }
13867 else
13868 ok=yes
13869 case " ${configdirs} " in
13870 *" binutils "*) ;;
13871 *) ok=no ;;
13872 esac
13874 if test $ok = yes; then
13875 # An in-tree tool is available and we can use it
13876 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13878 $as_echo "just compiled" >&6; }
13879 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13880 # We already found the complete path
13881 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13883 $as_echo "pre-installed in $ac_dir" >&6; }
13884 elif test "x$target" = "x$host"; then
13885 # We can use an host tool
13886 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13888 $as_echo "host tool" >&6; }
13889 else
13890 # We need a cross tool
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892 $as_echo "pre-installed" >&6; }
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13897 $as_echo_n "checking where to find the target gcc... " >&6; }
13898 if test "x${build}" != "x${host}" ; then
13899 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13900 # We already found the complete path
13901 ac_dir=`dirname $GCC_FOR_TARGET`
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13903 $as_echo "pre-installed in $ac_dir" >&6; }
13904 else
13905 # Canadian cross, just use what we found
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13907 $as_echo "pre-installed" >&6; }
13909 else
13910 ok=yes
13911 case " ${configdirs} " in
13912 *" gcc "*) ;;
13913 *) ok=no ;;
13914 esac
13916 if test $ok = yes; then
13917 # An in-tree tool is available and we can use it
13918 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13920 $as_echo "just compiled" >&6; }
13921 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13922 # We already found the complete path
13923 ac_dir=`dirname $GCC_FOR_TARGET`
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13925 $as_echo "pre-installed in $ac_dir" >&6; }
13926 elif test "x$target" = "x$host"; then
13927 # We can use an host tool
13928 GCC_FOR_TARGET='$()'
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13930 $as_echo "host tool" >&6; }
13931 else
13932 # We need a cross tool
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13934 $as_echo "pre-installed" >&6; }
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13939 $as_echo_n "checking where to find the target gcj... " >&6; }
13940 if test "x${build}" != "x${host}" ; then
13941 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
13943 ac_dir=`dirname $GCJ_FOR_TARGET`
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945 $as_echo "pre-installed in $ac_dir" >&6; }
13946 else
13947 # Canadian cross, just use what we found
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949 $as_echo "pre-installed" >&6; }
13951 else
13952 ok=yes
13953 case " ${configdirs} " in
13954 *" gcc "*) ;;
13955 *) ok=no ;;
13956 esac
13957 case ,${enable_languages}, in
13958 *,java,*) ;;
13959 *) ok=no ;;
13960 esac
13961 if test $ok = yes; then
13962 # An in-tree tool is available and we can use it
13963 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13965 $as_echo "just compiled" >&6; }
13966 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13967 # We already found the complete path
13968 ac_dir=`dirname $GCJ_FOR_TARGET`
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13970 $as_echo "pre-installed in $ac_dir" >&6; }
13971 elif test "x$target" = "x$host"; then
13972 # We can use an host tool
13973 GCJ_FOR_TARGET='$(GCJ)'
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13975 $as_echo "host tool" >&6; }
13976 else
13977 # We need a cross tool
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13979 $as_echo "pre-installed" >&6; }
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13984 $as_echo_n "checking where to find the target gfortran... " >&6; }
13985 if test "x${build}" != "x${host}" ; then
13986 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13987 # We already found the complete path
13988 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13990 $as_echo "pre-installed in $ac_dir" >&6; }
13991 else
13992 # Canadian cross, just use what we found
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13994 $as_echo "pre-installed" >&6; }
13996 else
13997 ok=yes
13998 case " ${configdirs} " in
13999 *" gcc "*) ;;
14000 *) ok=no ;;
14001 esac
14002 case ,${enable_languages}, in
14003 *,fortran,*) ;;
14004 *) ok=no ;;
14005 esac
14006 if test $ok = yes; then
14007 # An in-tree tool is available and we can use it
14008 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14010 $as_echo "just compiled" >&6; }
14011 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14012 # We already found the complete path
14013 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14015 $as_echo "pre-installed in $ac_dir" >&6; }
14016 elif test "x$target" = "x$host"; then
14017 # We can use an host tool
14018 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14020 $as_echo "host tool" >&6; }
14021 else
14022 # We need a cross tool
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14024 $as_echo "pre-installed" >&6; }
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14029 $as_echo_n "checking where to find the target gccgo... " >&6; }
14030 if test "x${build}" != "x${host}" ; then
14031 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14032 # We already found the complete path
14033 ac_dir=`dirname $GOC_FOR_TARGET`
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14035 $as_echo "pre-installed in $ac_dir" >&6; }
14036 else
14037 # Canadian cross, just use what we found
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14039 $as_echo "pre-installed" >&6; }
14041 else
14042 ok=yes
14043 case " ${configdirs} " in
14044 *" gcc "*) ;;
14045 *) ok=no ;;
14046 esac
14047 case ,${enable_languages}, in
14048 *,go,*) ;;
14049 *) ok=no ;;
14050 esac
14051 if test $ok = yes; then
14052 # An in-tree tool is available and we can use it
14053 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14055 $as_echo "just compiled" >&6; }
14056 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14057 # We already found the complete path
14058 ac_dir=`dirname $GOC_FOR_TARGET`
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14060 $as_echo "pre-installed in $ac_dir" >&6; }
14061 elif test "x$target" = "x$host"; then
14062 # We can use an host tool
14063 GOC_FOR_TARGET='$(GOC)'
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14065 $as_echo "host tool" >&6; }
14066 else
14067 # We need a cross tool
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14069 $as_echo "pre-installed" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14074 $as_echo_n "checking where to find the target ld... " >&6; }
14075 if test "x${build}" != "x${host}" ; then
14076 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14077 # We already found the complete path
14078 ac_dir=`dirname $LD_FOR_TARGET`
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14080 $as_echo "pre-installed in $ac_dir" >&6; }
14081 else
14082 # Canadian cross, just use what we found
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14084 $as_echo "pre-installed" >&6; }
14086 else
14087 ok=yes
14088 case " ${configdirs} " in
14089 *" ld "*) ;;
14090 *) ok=no ;;
14091 esac
14093 if test $ok = yes; then
14094 # An in-tree tool is available and we can use it
14095 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14097 $as_echo "just compiled" >&6; }
14098 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14099 # We already found the complete path
14100 ac_dir=`dirname $LD_FOR_TARGET`
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14102 $as_echo "pre-installed in $ac_dir" >&6; }
14103 elif test "x$target" = "x$host"; then
14104 # We can use an host tool
14105 LD_FOR_TARGET='$(LD)'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14107 $as_echo "host tool" >&6; }
14108 else
14109 # We need a cross tool
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14111 $as_echo "pre-installed" >&6; }
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14116 $as_echo_n "checking where to find the target lipo... " >&6; }
14117 if test "x${build}" != "x${host}" ; then
14118 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14119 # We already found the complete path
14120 ac_dir=`dirname $LIPO_FOR_TARGET`
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14122 $as_echo "pre-installed in $ac_dir" >&6; }
14123 else
14124 # Canadian cross, just use what we found
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14126 $as_echo "pre-installed" >&6; }
14128 else
14129 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
14131 ac_dir=`dirname $LIPO_FOR_TARGET`
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133 $as_echo "pre-installed in $ac_dir" >&6; }
14134 elif test "x$target" = "x$host"; then
14135 # We can use an host tool
14136 LIPO_FOR_TARGET='$(LIPO)'
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14138 $as_echo "host tool" >&6; }
14139 else
14140 # We need a cross tool
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14142 $as_echo "pre-installed" >&6; }
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14147 $as_echo_n "checking where to find the target nm... " >&6; }
14148 if test "x${build}" != "x${host}" ; then
14149 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14150 # We already found the complete path
14151 ac_dir=`dirname $NM_FOR_TARGET`
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14153 $as_echo "pre-installed in $ac_dir" >&6; }
14154 else
14155 # Canadian cross, just use what we found
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14157 $as_echo "pre-installed" >&6; }
14159 else
14160 ok=yes
14161 case " ${configdirs} " in
14162 *" binutils "*) ;;
14163 *) ok=no ;;
14164 esac
14166 if test $ok = yes; then
14167 # An in-tree tool is available and we can use it
14168 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14170 $as_echo "just compiled" >&6; }
14171 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14172 # We already found the complete path
14173 ac_dir=`dirname $NM_FOR_TARGET`
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14175 $as_echo "pre-installed in $ac_dir" >&6; }
14176 elif test "x$target" = "x$host"; then
14177 # We can use an host tool
14178 NM_FOR_TARGET='$(NM)'
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14180 $as_echo "host tool" >&6; }
14181 else
14182 # We need a cross tool
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14184 $as_echo "pre-installed" >&6; }
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14189 $as_echo_n "checking where to find the target objdump... " >&6; }
14190 if test "x${build}" != "x${host}" ; then
14191 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14192 # We already found the complete path
14193 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14195 $as_echo "pre-installed in $ac_dir" >&6; }
14196 else
14197 # Canadian cross, just use what we found
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14199 $as_echo "pre-installed" >&6; }
14201 else
14202 ok=yes
14203 case " ${configdirs} " in
14204 *" binutils "*) ;;
14205 *) ok=no ;;
14206 esac
14208 if test $ok = yes; then
14209 # An in-tree tool is available and we can use it
14210 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14212 $as_echo "just compiled" >&6; }
14213 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14214 # We already found the complete path
14215 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14217 $as_echo "pre-installed in $ac_dir" >&6; }
14218 elif test "x$target" = "x$host"; then
14219 # We can use an host tool
14220 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14222 $as_echo "host tool" >&6; }
14223 else
14224 # We need a cross tool
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14226 $as_echo "pre-installed" >&6; }
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14231 $as_echo_n "checking where to find the target ranlib... " >&6; }
14232 if test "x${build}" != "x${host}" ; then
14233 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14234 # We already found the complete path
14235 ac_dir=`dirname $RANLIB_FOR_TARGET`
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14237 $as_echo "pre-installed in $ac_dir" >&6; }
14238 else
14239 # Canadian cross, just use what we found
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14241 $as_echo "pre-installed" >&6; }
14243 else
14244 ok=yes
14245 case " ${configdirs} " in
14246 *" binutils "*) ;;
14247 *) ok=no ;;
14248 esac
14250 if test $ok = yes; then
14251 # An in-tree tool is available and we can use it
14252 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14254 $as_echo "just compiled" >&6; }
14255 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14256 # We already found the complete path
14257 ac_dir=`dirname $RANLIB_FOR_TARGET`
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14259 $as_echo "pre-installed in $ac_dir" >&6; }
14260 elif test "x$target" = "x$host"; then
14261 # We can use an host tool
14262 RANLIB_FOR_TARGET='$(RANLIB)'
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14264 $as_echo "host tool" >&6; }
14265 else
14266 # We need a cross tool
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14268 $as_echo "pre-installed" >&6; }
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14273 $as_echo_n "checking where to find the target readelf... " >&6; }
14274 if test "x${build}" != "x${host}" ; then
14275 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14276 # We already found the complete path
14277 ac_dir=`dirname $READELF_FOR_TARGET`
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14279 $as_echo "pre-installed in $ac_dir" >&6; }
14280 else
14281 # Canadian cross, just use what we found
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14283 $as_echo "pre-installed" >&6; }
14285 else
14286 ok=yes
14287 case " ${configdirs} " in
14288 *" binutils "*) ;;
14289 *) ok=no ;;
14290 esac
14292 if test $ok = yes; then
14293 # An in-tree tool is available and we can use it
14294 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14296 $as_echo "just compiled" >&6; }
14297 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14298 # We already found the complete path
14299 ac_dir=`dirname $READELF_FOR_TARGET`
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14301 $as_echo "pre-installed in $ac_dir" >&6; }
14302 elif test "x$target" = "x$host"; then
14303 # We can use an host tool
14304 READELF_FOR_TARGET='$(READELF)'
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14306 $as_echo "host tool" >&6; }
14307 else
14308 # We need a cross tool
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14310 $as_echo "pre-installed" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14315 $as_echo_n "checking where to find the target strip... " >&6; }
14316 if test "x${build}" != "x${host}" ; then
14317 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14318 # We already found the complete path
14319 ac_dir=`dirname $STRIP_FOR_TARGET`
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14321 $as_echo "pre-installed in $ac_dir" >&6; }
14322 else
14323 # Canadian cross, just use what we found
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14325 $as_echo "pre-installed" >&6; }
14327 else
14328 ok=yes
14329 case " ${configdirs} " in
14330 *" binutils "*) ;;
14331 *) ok=no ;;
14332 esac
14334 if test $ok = yes; then
14335 # An in-tree tool is available and we can use it
14336 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14338 $as_echo "just compiled" >&6; }
14339 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14340 # We already found the complete path
14341 ac_dir=`dirname $STRIP_FOR_TARGET`
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14343 $as_echo "pre-installed in $ac_dir" >&6; }
14344 elif test "x$target" = "x$host"; then
14345 # We can use an host tool
14346 STRIP_FOR_TARGET='$(STRIP)'
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14348 $as_echo "host tool" >&6; }
14349 else
14350 # We need a cross tool
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14352 $as_echo "pre-installed" >&6; }
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14357 $as_echo_n "checking where to find the target windres... " >&6; }
14358 if test "x${build}" != "x${host}" ; then
14359 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14360 # We already found the complete path
14361 ac_dir=`dirname $WINDRES_FOR_TARGET`
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14363 $as_echo "pre-installed in $ac_dir" >&6; }
14364 else
14365 # Canadian cross, just use what we found
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14367 $as_echo "pre-installed" >&6; }
14369 else
14370 ok=yes
14371 case " ${configdirs} " in
14372 *" binutils "*) ;;
14373 *) ok=no ;;
14374 esac
14376 if test $ok = yes; then
14377 # An in-tree tool is available and we can use it
14378 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14380 $as_echo "just compiled" >&6; }
14381 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14382 # We already found the complete path
14383 ac_dir=`dirname $WINDRES_FOR_TARGET`
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14385 $as_echo "pre-installed in $ac_dir" >&6; }
14386 elif test "x$target" = "x$host"; then
14387 # We can use an host tool
14388 WINDRES_FOR_TARGET='$(WINDRES)'
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14390 $as_echo "host tool" >&6; }
14391 else
14392 # We need a cross tool
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14394 $as_echo "pre-installed" >&6; }
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14399 $as_echo_n "checking where to find the target windmc... " >&6; }
14400 if test "x${build}" != "x${host}" ; then
14401 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14402 # We already found the complete path
14403 ac_dir=`dirname $WINDMC_FOR_TARGET`
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14405 $as_echo "pre-installed in $ac_dir" >&6; }
14406 else
14407 # Canadian cross, just use what we found
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14409 $as_echo "pre-installed" >&6; }
14411 else
14412 ok=yes
14413 case " ${configdirs} " in
14414 *" binutils "*) ;;
14415 *) ok=no ;;
14416 esac
14418 if test $ok = yes; then
14419 # An in-tree tool is available and we can use it
14420 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14422 $as_echo "just compiled" >&6; }
14423 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14424 # We already found the complete path
14425 ac_dir=`dirname $WINDMC_FOR_TARGET`
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14427 $as_echo "pre-installed in $ac_dir" >&6; }
14428 elif test "x$target" = "x$host"; then
14429 # We can use an host tool
14430 WINDMC_FOR_TARGET='$(WINDMC)'
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14432 $as_echo "host tool" >&6; }
14433 else
14434 # We need a cross tool
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14436 $as_echo "pre-installed" >&6; }
14444 # Certain tools may need extra flags.
14445 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14446 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14447 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14449 # When building target libraries, except in a Canadian cross, we use
14450 # the same toolchain as the compiler we just built.
14451 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14452 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14453 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14454 if test $host = $build; then
14455 case " $configdirs " in
14456 *" gcc "*)
14457 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14458 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14459 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14461 esac
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14469 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14470 # Check whether --enable-maintainer-mode was given.
14471 if test "${enable_maintainer_mode+set}" = set; then :
14472 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14473 else
14474 USE_MAINTAINER_MODE=no
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14478 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14481 if test "$USE_MAINTAINER_MODE" = yes; then
14482 MAINTAINER_MODE_TRUE=
14483 MAINTAINER_MODE_FALSE='#'
14484 else
14485 MAINTAINER_MODE_TRUE='#'
14486 MAINTAINER_MODE_FALSE=
14488 MAINT=$MAINTAINER_MODE_TRUE
14490 # ---------------------
14491 # GCC bootstrap support
14492 # ---------------------
14494 # Stage specific cflags for build.
14495 stage1_cflags="-g"
14496 case $build in
14497 vax-*-*)
14498 case ${GCC} in
14499 yes) stage1_cflags="-g -Wa,-J" ;;
14500 *) stage1_cflags="-g -J" ;;
14501 esac ;;
14502 esac
14506 # Enable --enable-checking in stage1 of the compiler.
14507 # Check whether --enable-stage1-checking was given.
14508 if test "${enable_stage1_checking+set}" = set; then :
14509 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14510 else
14511 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14512 stage1_checking=--enable-checking=yes,types
14513 else
14514 stage1_checking=--enable-checking=$enable_checking,types
14520 # Enable -Werror in bootstrap stage2 and later.
14521 # Check whether --enable-werror was given.
14522 if test "${enable_werror+set}" = set; then :
14523 enableval=$enable_werror;
14524 else
14525 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14526 enable_werror=yes
14527 else
14528 enable_werror=no
14532 case ${enable_werror} in
14533 yes) stage2_werror_flag="--enable-werror-always" ;;
14534 *) stage2_werror_flag="" ;;
14535 esac
14538 # Enable --enable-host-shared.
14539 # Check whether --enable-host-shared was given.
14540 if test "${enable_host_shared+set}" = set; then :
14541 enableval=$enable_host_shared; host_shared=$enableval
14542 else
14543 host_shared=no
14548 # Specify what files to not compare during bootstrap.
14550 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14551 case "$target" in
14552 hppa*64*-*-hpux*) ;;
14553 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14554 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14555 esac
14558 ac_config_files="$ac_config_files Makefile"
14560 cat >confcache <<\_ACEOF
14561 # This file is a shell script that caches the results of configure
14562 # tests run on this system so they can be shared between configure
14563 # scripts and configure runs, see configure's option --config-cache.
14564 # It is not useful on other systems. If it contains results you don't
14565 # want to keep, you may remove or edit it.
14567 # config.status only pays attention to the cache file if you give it
14568 # the --recheck option to rerun configure.
14570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14572 # following values.
14574 _ACEOF
14576 # The following way of writing the cache mishandles newlines in values,
14577 # but we know of no workaround that is simple, portable, and efficient.
14578 # So, we kill variables containing newlines.
14579 # Ultrix sh set writes to stderr and can't be redirected directly,
14580 # and sets the high bit in the cache file unless we assign to the vars.
14582 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14583 eval ac_val=\$$ac_var
14584 case $ac_val in #(
14585 *${as_nl}*)
14586 case $ac_var in #(
14587 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14588 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14589 esac
14590 case $ac_var in #(
14591 _ | IFS | as_nl) ;; #(
14592 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14593 *) { eval $ac_var=; unset $ac_var;} ;;
14594 esac ;;
14595 esac
14596 done
14598 (set) 2>&1 |
14599 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14600 *${as_nl}ac_space=\ *)
14601 # `set' does not quote correctly, so add quotes: double-quote
14602 # substitution turns \\\\ into \\, and sed turns \\ into \.
14603 sed -n \
14604 "s/'/'\\\\''/g;
14605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14606 ;; #(
14608 # `set' quotes correctly as required by POSIX, so do not add quotes.
14609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14611 esac |
14612 sort
14614 sed '
14615 /^ac_cv_env_/b end
14616 t clear
14617 :clear
14618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14619 t end
14620 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14621 :end' >>confcache
14622 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14623 if test -w "$cache_file"; then
14624 test "x$cache_file" != "x/dev/null" &&
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14626 $as_echo "$as_me: updating cache $cache_file" >&6;}
14627 cat confcache >$cache_file
14628 else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14633 rm -f confcache
14635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14636 # Let make expand exec_prefix.
14637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14639 # Transform confdefs.h into DEFS.
14640 # Protect against shell expansion while executing Makefile rules.
14641 # Protect against Makefile macro expansion.
14643 # If the first sed substitution is executed (which looks for macros that
14644 # take arguments), then branch to the quote section. Otherwise,
14645 # look for a macro that doesn't take arguments.
14646 ac_script='
14647 :mline
14648 /\\$/{
14650 s,\\\n,,
14651 b mline
14653 t clear
14654 :clear
14655 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14656 t quote
14657 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14658 t quote
14659 b any
14660 :quote
14661 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14662 s/\[/\\&/g
14663 s/\]/\\&/g
14664 s/\$/$$/g
14666 :any
14669 s/^\n//
14670 s/\n/ /g
14674 DEFS=`sed -n "$ac_script" confdefs.h`
14677 ac_libobjs=
14678 ac_ltlibobjs=
14679 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14680 # 1. Remove the extension, and $U if already installed.
14681 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14682 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14683 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14684 # will be set to the directory where LIBOBJS objects are built.
14685 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14686 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14687 done
14688 LIBOBJS=$ac_libobjs
14690 LTLIBOBJS=$ac_ltlibobjs
14694 : ${CONFIG_STATUS=./config.status}
14695 ac_write_fail=0
14696 ac_clean_files_save=$ac_clean_files
14697 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14699 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14700 as_write_fail=0
14701 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14702 #! $SHELL
14703 # Generated by $as_me.
14704 # Run this file to recreate the current configuration.
14705 # Compiler output produced by configure, useful for debugging
14706 # configure, is in config.log if it exists.
14708 debug=false
14709 ac_cs_recheck=false
14710 ac_cs_silent=false
14712 SHELL=\${CONFIG_SHELL-$SHELL}
14713 export SHELL
14714 _ASEOF
14715 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14716 ## -------------------- ##
14717 ## M4sh Initialization. ##
14718 ## -------------------- ##
14720 # Be more Bourne compatible
14721 DUALCASE=1; export DUALCASE # for MKS sh
14722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14723 emulate sh
14724 NULLCMD=:
14725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14726 # is contrary to our usage. Disable this feature.
14727 alias -g '${1+"$@"}'='"$@"'
14728 setopt NO_GLOB_SUBST
14729 else
14730 case `(set -o) 2>/dev/null` in #(
14731 *posix*) :
14732 set -o posix ;; #(
14733 *) :
14735 esac
14739 as_nl='
14741 export as_nl
14742 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14743 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14745 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14746 # Prefer a ksh shell builtin over an external printf program on Solaris,
14747 # but without wasting forks for bash or zsh.
14748 if test -z "$BASH_VERSION$ZSH_VERSION" \
14749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14750 as_echo='print -r --'
14751 as_echo_n='print -rn --'
14752 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14753 as_echo='printf %s\n'
14754 as_echo_n='printf %s'
14755 else
14756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14757 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14758 as_echo_n='/usr/ucb/echo -n'
14759 else
14760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14761 as_echo_n_body='eval
14762 arg=$1;
14763 case $arg in #(
14764 *"$as_nl"*)
14765 expr "X$arg" : "X\\(.*\\)$as_nl";
14766 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14767 esac;
14768 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14770 export as_echo_n_body
14771 as_echo_n='sh -c $as_echo_n_body as_echo'
14773 export as_echo_body
14774 as_echo='sh -c $as_echo_body as_echo'
14777 # The user is always right.
14778 if test "${PATH_SEPARATOR+set}" != set; then
14779 PATH_SEPARATOR=:
14780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14782 PATH_SEPARATOR=';'
14787 # IFS
14788 # We need space, tab and new line, in precisely that order. Quoting is
14789 # there to prevent editors from complaining about space-tab.
14790 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14791 # splitting by setting IFS to empty value.)
14792 IFS=" "" $as_nl"
14794 # Find who we are. Look in the path if we contain no directory separator.
14795 case $0 in #((
14796 *[\\/]* ) as_myself=$0 ;;
14797 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798 for as_dir in $PATH
14800 IFS=$as_save_IFS
14801 test -z "$as_dir" && as_dir=.
14802 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14803 done
14804 IFS=$as_save_IFS
14807 esac
14808 # We did not find ourselves, most probably we were run as `sh COMMAND'
14809 # in which case we are not to be found in the path.
14810 if test "x$as_myself" = x; then
14811 as_myself=$0
14813 if test ! -f "$as_myself"; then
14814 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14815 exit 1
14818 # Unset variables that we do not need and which cause bugs (e.g. in
14819 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14820 # suppresses any "Segmentation fault" message there. '((' could
14821 # trigger a bug in pdksh 5.2.14.
14822 for as_var in BASH_ENV ENV MAIL MAILPATH
14823 do eval test x\${$as_var+set} = xset \
14824 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14825 done
14826 PS1='$ '
14827 PS2='> '
14828 PS4='+ '
14830 # NLS nuisances.
14831 LC_ALL=C
14832 export LC_ALL
14833 LANGUAGE=C
14834 export LANGUAGE
14836 # CDPATH.
14837 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14840 # as_fn_error ERROR [LINENO LOG_FD]
14841 # ---------------------------------
14842 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14843 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14844 # script with status $?, using 1 if that was 0.
14845 as_fn_error ()
14847 as_status=$?; test $as_status -eq 0 && as_status=1
14848 if test "$3"; then
14849 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14850 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14852 $as_echo "$as_me: error: $1" >&2
14853 as_fn_exit $as_status
14854 } # as_fn_error
14857 # as_fn_set_status STATUS
14858 # -----------------------
14859 # Set $? to STATUS, without forking.
14860 as_fn_set_status ()
14862 return $1
14863 } # as_fn_set_status
14865 # as_fn_exit STATUS
14866 # -----------------
14867 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14868 as_fn_exit ()
14870 set +e
14871 as_fn_set_status $1
14872 exit $1
14873 } # as_fn_exit
14875 # as_fn_unset VAR
14876 # ---------------
14877 # Portably unset VAR.
14878 as_fn_unset ()
14880 { eval $1=; unset $1;}
14882 as_unset=as_fn_unset
14883 # as_fn_append VAR VALUE
14884 # ----------------------
14885 # Append the text in VALUE to the end of the definition contained in VAR. Take
14886 # advantage of any shell optimizations that allow amortized linear growth over
14887 # repeated appends, instead of the typical quadratic growth present in naive
14888 # implementations.
14889 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14890 eval 'as_fn_append ()
14892 eval $1+=\$2
14894 else
14895 as_fn_append ()
14897 eval $1=\$$1\$2
14899 fi # as_fn_append
14901 # as_fn_arith ARG...
14902 # ------------------
14903 # Perform arithmetic evaluation on the ARGs, and store the result in the
14904 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14905 # must be portable across $(()) and expr.
14906 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14907 eval 'as_fn_arith ()
14909 as_val=$(( $* ))
14911 else
14912 as_fn_arith ()
14914 as_val=`expr "$@" || test $? -eq 1`
14916 fi # as_fn_arith
14919 if expr a : '\(a\)' >/dev/null 2>&1 &&
14920 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14921 as_expr=expr
14922 else
14923 as_expr=false
14926 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14927 as_basename=basename
14928 else
14929 as_basename=false
14932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14933 as_dirname=dirname
14934 else
14935 as_dirname=false
14938 as_me=`$as_basename -- "$0" ||
14939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14940 X"$0" : 'X\(//\)$' \| \
14941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14942 $as_echo X/"$0" |
14943 sed '/^.*\/\([^/][^/]*\)\/*$/{
14944 s//\1/
14947 /^X\/\(\/\/\)$/{
14948 s//\1/
14951 /^X\/\(\/\).*/{
14952 s//\1/
14955 s/.*/./; q'`
14957 # Avoid depending upon Character Ranges.
14958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14961 as_cr_digits='0123456789'
14962 as_cr_alnum=$as_cr_Letters$as_cr_digits
14964 ECHO_C= ECHO_N= ECHO_T=
14965 case `echo -n x` in #(((((
14966 -n*)
14967 case `echo 'xy\c'` in
14968 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14969 xy) ECHO_C='\c';;
14970 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14971 ECHO_T=' ';;
14972 esac;;
14974 ECHO_N='-n';;
14975 esac
14977 rm -f conf$$ conf$$.exe conf$$.file
14978 if test -d conf$$.dir; then
14979 rm -f conf$$.dir/conf$$.file
14980 else
14981 rm -f conf$$.dir
14982 mkdir conf$$.dir 2>/dev/null
14984 if (echo >conf$$.file) 2>/dev/null; then
14985 if ln -s conf$$.file conf$$ 2>/dev/null; then
14986 as_ln_s='ln -s'
14987 # ... but there are two gotchas:
14988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14990 # In both cases, we have to default to `cp -p'.
14991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14992 as_ln_s='cp -p'
14993 elif ln conf$$.file conf$$ 2>/dev/null; then
14994 as_ln_s=ln
14995 else
14996 as_ln_s='cp -p'
14998 else
14999 as_ln_s='cp -p'
15001 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15002 rmdir conf$$.dir 2>/dev/null
15005 # as_fn_mkdir_p
15006 # -------------
15007 # Create "$as_dir" as a directory, including parents if necessary.
15008 as_fn_mkdir_p ()
15011 case $as_dir in #(
15012 -*) as_dir=./$as_dir;;
15013 esac
15014 test -d "$as_dir" || eval $as_mkdir_p || {
15015 as_dirs=
15016 while :; do
15017 case $as_dir in #(
15018 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15019 *) as_qdir=$as_dir;;
15020 esac
15021 as_dirs="'$as_qdir' $as_dirs"
15022 as_dir=`$as_dirname -- "$as_dir" ||
15023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15024 X"$as_dir" : 'X\(//\)[^/]' \| \
15025 X"$as_dir" : 'X\(//\)$' \| \
15026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15027 $as_echo X"$as_dir" |
15028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15029 s//\1/
15032 /^X\(\/\/\)[^/].*/{
15033 s//\1/
15036 /^X\(\/\/\)$/{
15037 s//\1/
15040 /^X\(\/\).*/{
15041 s//\1/
15044 s/.*/./; q'`
15045 test -d "$as_dir" && break
15046 done
15047 test -z "$as_dirs" || eval "mkdir $as_dirs"
15048 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15051 } # as_fn_mkdir_p
15052 if mkdir -p . 2>/dev/null; then
15053 as_mkdir_p='mkdir -p "$as_dir"'
15054 else
15055 test -d ./-p && rmdir ./-p
15056 as_mkdir_p=false
15059 if test -x / >/dev/null 2>&1; then
15060 as_test_x='test -x'
15061 else
15062 if ls -dL / >/dev/null 2>&1; then
15063 as_ls_L_option=L
15064 else
15065 as_ls_L_option=
15067 as_test_x='
15068 eval sh -c '\''
15069 if test -d "$1"; then
15070 test -d "$1/.";
15071 else
15072 case $1 in #(
15073 -*)set "./$1";;
15074 esac;
15075 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15076 ???[sx]*):;;*)false;;esac;fi
15077 '\'' sh
15080 as_executable_p=$as_test_x
15082 # Sed expression to map a string onto a valid CPP name.
15083 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15085 # Sed expression to map a string onto a valid variable name.
15086 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15089 exec 6>&1
15090 ## ----------------------------------- ##
15091 ## Main body of $CONFIG_STATUS script. ##
15092 ## ----------------------------------- ##
15093 _ASEOF
15094 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15097 # Save the log message, to keep $0 and so on meaningful, and to
15098 # report actual input values of CONFIG_FILES etc. instead of their
15099 # values after options handling.
15100 ac_log="
15101 This file was extended by $as_me, which was
15102 generated by GNU Autoconf 2.64. Invocation command line was
15104 CONFIG_FILES = $CONFIG_FILES
15105 CONFIG_HEADERS = $CONFIG_HEADERS
15106 CONFIG_LINKS = $CONFIG_LINKS
15107 CONFIG_COMMANDS = $CONFIG_COMMANDS
15108 $ $0 $@
15110 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15113 _ACEOF
15115 case $ac_config_files in *"
15116 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15117 esac
15121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15122 # Files that config.status was made for.
15123 config_files="$ac_config_files"
15125 _ACEOF
15127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15128 ac_cs_usage="\
15129 \`$as_me' instantiates files and other configuration actions
15130 from templates according to the current configuration. Unless the files
15131 and actions are specified as TAGs, all are instantiated by default.
15133 Usage: $0 [OPTION]... [TAG]...
15135 -h, --help print this help, then exit
15136 -V, --version print version number and configuration settings, then exit
15137 -q, --quiet, --silent
15138 do not print progress messages
15139 -d, --debug don't remove temporary files
15140 --recheck update $as_me by reconfiguring in the same conditions
15141 --file=FILE[:TEMPLATE]
15142 instantiate the configuration file FILE
15144 Configuration files:
15145 $config_files
15147 Report bugs to the package provider."
15149 _ACEOF
15150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15151 ac_cs_version="\\
15152 config.status
15153 configured by $0, generated by GNU Autoconf 2.64,
15154 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15156 Copyright (C) 2009 Free Software Foundation, Inc.
15157 This config.status script is free software; the Free Software Foundation
15158 gives unlimited permission to copy, distribute and modify it."
15160 ac_pwd='$ac_pwd'
15161 srcdir='$srcdir'
15162 INSTALL='$INSTALL'
15163 AWK='$AWK'
15164 test -n "\$AWK" || AWK=awk
15165 _ACEOF
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 # The default lists apply if the user does not specify any file.
15169 ac_need_defaults=:
15170 while test $# != 0
15172 case $1 in
15173 --*=*)
15174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15176 ac_shift=:
15179 ac_option=$1
15180 ac_optarg=$2
15181 ac_shift=shift
15183 esac
15185 case $ac_option in
15186 # Handling of the options.
15187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15188 ac_cs_recheck=: ;;
15189 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15190 $as_echo "$ac_cs_version"; exit ;;
15191 --debug | --debu | --deb | --de | --d | -d )
15192 debug=: ;;
15193 --file | --fil | --fi | --f )
15194 $ac_shift
15195 case $ac_optarg in
15196 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15197 esac
15198 as_fn_append CONFIG_FILES " '$ac_optarg'"
15199 ac_need_defaults=false;;
15200 --he | --h | --help | --hel | -h )
15201 $as_echo "$ac_cs_usage"; exit ;;
15202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15203 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15204 ac_cs_silent=: ;;
15206 # This is an error.
15207 -*) as_fn_error "unrecognized option: \`$1'
15208 Try \`$0 --help' for more information." ;;
15210 *) as_fn_append ac_config_targets " $1"
15211 ac_need_defaults=false ;;
15213 esac
15214 shift
15215 done
15217 ac_configure_extra_args=
15219 if $ac_cs_silent; then
15220 exec 6>/dev/null
15221 ac_configure_extra_args="$ac_configure_extra_args --silent"
15224 _ACEOF
15225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15226 if \$ac_cs_recheck; then
15227 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15228 shift
15229 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15230 CONFIG_SHELL='$SHELL'
15231 export CONFIG_SHELL
15232 exec "\$@"
15235 _ACEOF
15236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15237 exec 5>>config.log
15239 echo
15240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15241 ## Running $as_me. ##
15242 _ASBOX
15243 $as_echo "$ac_log"
15244 } >&5
15246 _ACEOF
15247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249 # INIT-COMMANDS
15251 extrasub_build="$extrasub_build"
15252 extrasub_host="$extrasub_host"
15253 extrasub_target="$extrasub_target"
15255 _ACEOF
15257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15259 # Handling of arguments.
15260 for ac_config_target in $ac_config_targets
15262 case $ac_config_target in
15263 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15265 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15266 esac
15267 done
15270 # If the user did not use the arguments to specify the items to instantiate,
15271 # then the envvar interface is used. Set only those that are not.
15272 # We use the long form for the default assignment because of an extremely
15273 # bizarre bug on SunOS 4.1.3.
15274 if $ac_need_defaults; then
15275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15278 # Have a temporary directory for convenience. Make it in the build tree
15279 # simply because there is no reason against having it here, and in addition,
15280 # creating and moving files from /tmp can sometimes cause problems.
15281 # Hook for its removal unless debugging.
15282 # Note that there is a small window in which the directory will not be cleaned:
15283 # after its creation but before its name has been assigned to `$tmp'.
15284 $debug ||
15286 tmp=
15287 trap 'exit_status=$?
15288 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15290 trap 'as_fn_exit 1' 1 2 13 15
15292 # Create a (secure) tmp directory for tmp files.
15295 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15296 test -n "$tmp" && test -d "$tmp"
15297 } ||
15299 tmp=./conf$$-$RANDOM
15300 (umask 077 && mkdir "$tmp")
15301 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15303 # Set up the scripts for CONFIG_FILES section.
15304 # No need to generate them if there are no CONFIG_FILES.
15305 # This happens for instance with `./config.status config.h'.
15306 if test -n "$CONFIG_FILES"; then
15308 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15309 ac_cs_awk_getline=:
15310 ac_cs_awk_pipe_init=
15311 ac_cs_awk_read_file='
15312 while ((getline aline < (F[key])) > 0)
15313 print(aline)
15314 close(F[key])'
15315 ac_cs_awk_pipe_fini=
15316 else
15317 ac_cs_awk_getline=false
15318 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15319 ac_cs_awk_read_file='
15320 print "|#_!!_#|"
15321 print "cat " F[key] " &&"
15322 '$ac_cs_awk_pipe_init
15323 # The final `:' finishes the AND list.
15324 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15326 ac_cr=`echo X | tr X '\015'`
15327 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15328 # But we know of no other shell where ac_cr would be empty at this
15329 # point, so we can use a bashism as a fallback.
15330 if test "x$ac_cr" = x; then
15331 eval ac_cr=\$\'\\r\'
15333 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15334 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15335 ac_cs_awk_cr='\r'
15336 else
15337 ac_cs_awk_cr=$ac_cr
15340 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15341 _ACEOF
15343 # Create commands to substitute file output variables.
15345 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15346 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15347 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15348 echo "_ACAWK" &&
15349 echo "_ACEOF"
15350 } >conf$$files.sh &&
15351 . ./conf$$files.sh ||
15352 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15353 rm -f conf$$files.sh
15356 echo "cat >conf$$subs.awk <<_ACEOF" &&
15357 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15358 echo "_ACEOF"
15359 } >conf$$subs.sh ||
15360 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15362 ac_delim='%!_!# '
15363 for ac_last_try in false false false false false :; do
15364 . ./conf$$subs.sh ||
15365 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15367 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15368 if test $ac_delim_n = $ac_delim_num; then
15369 break
15370 elif $ac_last_try; then
15371 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15372 else
15373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15375 done
15376 rm -f conf$$subs.sh
15378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15379 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15380 _ACEOF
15381 sed -n '
15383 s/^/S["/; s/!.*/"]=/
15386 s/^[^!]*!//
15387 :repl
15388 t repl
15389 s/'"$ac_delim"'$//
15390 t delim
15393 s/\(.\{148\}\).*/\1/
15394 t more1
15395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15398 b repl
15399 :more1
15400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15403 s/.\{148\}//
15404 t nl
15405 :delim
15407 s/\(.\{148\}\).*/\1/
15408 t more2
15409 s/["\\]/\\&/g; s/^/"/; s/$/"/
15412 :more2
15413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15416 s/.\{148\}//
15417 t delim
15418 ' <conf$$subs.awk | sed '
15419 /^[^""]/{
15421 s/\n//
15423 ' >>$CONFIG_STATUS || ac_write_fail=1
15424 rm -f conf$$subs.awk
15425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15426 _ACAWK
15427 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15428 for (key in S) S_is_set[key] = 1
15429 FS = "\a"
15430 \$ac_cs_awk_pipe_init
15433 line = $ 0
15434 nfields = split(line, field, "@")
15435 substed = 0
15436 len = length(field[1])
15437 for (i = 2; i < nfields; i++) {
15438 key = field[i]
15439 keylen = length(key)
15440 if (S_is_set[key]) {
15441 value = S[key]
15442 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15443 len += length(value) + length(field[++i])
15444 substed = 1
15445 } else
15446 len += 1 + keylen
15448 if (nfields == 3 && !substed) {
15449 key = field[2]
15450 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15451 \$ac_cs_awk_read_file
15452 next
15455 print line
15457 \$ac_cs_awk_pipe_fini
15458 _ACAWK
15459 _ACEOF
15460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15462 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15463 else
15465 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15466 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15467 _ACEOF
15469 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15470 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15471 # trailing colons and then remove the whole line if VPATH becomes empty
15472 # (actually we leave an empty line to preserve line numbers).
15473 if test "x$srcdir" = x.; then
15474 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15475 s/:*\$(srcdir):*/:/
15476 s/:*\${srcdir}:*/:/
15477 s/:*@srcdir@:*/:/
15478 s/^\([^=]*=[ ]*\):*/\1/
15479 s/:*$//
15480 s/^[^=]*=[ ]*$//
15484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15485 fi # test -n "$CONFIG_FILES"
15488 eval set X " :F $CONFIG_FILES "
15489 shift
15490 for ac_tag
15492 case $ac_tag in
15493 :[FHLC]) ac_mode=$ac_tag; continue;;
15494 esac
15495 case $ac_mode$ac_tag in
15496 :[FHL]*:*);;
15497 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15498 :[FH]-) ac_tag=-:-;;
15499 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15500 esac
15501 ac_save_IFS=$IFS
15502 IFS=:
15503 set x $ac_tag
15504 IFS=$ac_save_IFS
15505 shift
15506 ac_file=$1
15507 shift
15509 case $ac_mode in
15510 :L) ac_source=$1;;
15511 :[FH])
15512 ac_file_inputs=
15513 for ac_f
15515 case $ac_f in
15516 -) ac_f="$tmp/stdin";;
15517 *) # Look for the file first in the build tree, then in the source tree
15518 # (if the path is not absolute). The absolute path cannot be DOS-style,
15519 # because $ac_f cannot contain `:'.
15520 test -f "$ac_f" ||
15521 case $ac_f in
15522 [\\/$]*) false;;
15523 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15524 esac ||
15525 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15526 esac
15527 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15528 as_fn_append ac_file_inputs " '$ac_f'"
15529 done
15531 # Let's still pretend it is `configure' which instantiates (i.e., don't
15532 # use $as_me), people would be surprised to read:
15533 # /* config.h. Generated by config.status. */
15534 configure_input='Generated from '`
15535 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15536 `' by configure.'
15537 if test x"$ac_file" != x-; then
15538 configure_input="$ac_file. $configure_input"
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15540 $as_echo "$as_me: creating $ac_file" >&6;}
15542 # Neutralize special characters interpreted by sed in replacement strings.
15543 case $configure_input in #(
15544 *\&* | *\|* | *\\* )
15545 ac_sed_conf_input=`$as_echo "$configure_input" |
15546 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15547 *) ac_sed_conf_input=$configure_input;;
15548 esac
15550 case $ac_tag in
15551 *:-:* | *:-) cat >"$tmp/stdin" \
15552 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15553 esac
15555 esac
15557 ac_dir=`$as_dirname -- "$ac_file" ||
15558 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15559 X"$ac_file" : 'X\(//\)[^/]' \| \
15560 X"$ac_file" : 'X\(//\)$' \| \
15561 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15562 $as_echo X"$ac_file" |
15563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15564 s//\1/
15567 /^X\(\/\/\)[^/].*/{
15568 s//\1/
15571 /^X\(\/\/\)$/{
15572 s//\1/
15575 /^X\(\/\).*/{
15576 s//\1/
15579 s/.*/./; q'`
15580 as_dir="$ac_dir"; as_fn_mkdir_p
15581 ac_builddir=.
15583 case "$ac_dir" in
15584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15587 # A ".." for each directory in $ac_dir_suffix.
15588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15589 case $ac_top_builddir_sub in
15590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15592 esac ;;
15593 esac
15594 ac_abs_top_builddir=$ac_pwd
15595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15596 # for backward compatibility:
15597 ac_top_builddir=$ac_top_build_prefix
15599 case $srcdir in
15600 .) # We are building in place.
15601 ac_srcdir=.
15602 ac_top_srcdir=$ac_top_builddir_sub
15603 ac_abs_top_srcdir=$ac_pwd ;;
15604 [\\/]* | ?:[\\/]* ) # Absolute name.
15605 ac_srcdir=$srcdir$ac_dir_suffix;
15606 ac_top_srcdir=$srcdir
15607 ac_abs_top_srcdir=$srcdir ;;
15608 *) # Relative name.
15609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15610 ac_top_srcdir=$ac_top_build_prefix$srcdir
15611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15612 esac
15613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15616 case $ac_mode in
15619 # CONFIG_FILE
15622 case $INSTALL in
15623 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15624 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15625 esac
15626 _ACEOF
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629 # If the template does not know about datarootdir, expand it.
15630 # FIXME: This hack should be removed a few years after 2.60.
15631 ac_datarootdir_hack=; ac_datarootdir_seen=
15632 ac_sed_dataroot='
15633 /datarootdir/ {
15637 /@datadir@/p
15638 /@docdir@/p
15639 /@infodir@/p
15640 /@localedir@/p
15641 /@mandir@/p'
15642 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15643 *datarootdir*) ac_datarootdir_seen=yes;;
15644 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15646 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15647 _ACEOF
15648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15649 ac_datarootdir_hack='
15650 s&@datadir@&$datadir&g
15651 s&@docdir@&$docdir&g
15652 s&@infodir@&$infodir&g
15653 s&@localedir@&$localedir&g
15654 s&@mandir@&$mandir&g
15655 s&\\\${datarootdir}&$datarootdir&g' ;;
15656 esac
15657 _ACEOF
15659 # Neutralize VPATH when `$srcdir' = `.'.
15660 # Shell code in configure.ac might set extrasub.
15661 # FIXME: do we really want to maintain this feature?
15662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15663 ac_sed_extra="$ac_vpsub
15664 $extrasub
15665 _ACEOF
15666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15669 s|@configure_input@|$ac_sed_conf_input|;t t
15670 s&@top_builddir@&$ac_top_builddir_sub&;t t
15671 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15672 s&@srcdir@&$ac_srcdir&;t t
15673 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15674 s&@top_srcdir@&$ac_top_srcdir&;t t
15675 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15676 s&@builddir@&$ac_builddir&;t t
15677 s&@abs_builddir@&$ac_abs_builddir&;t t
15678 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15679 s&@INSTALL@&$ac_INSTALL&;t t
15680 $ac_datarootdir_hack
15682 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15683 if $ac_cs_awk_getline; then
15684 $AWK -f "$tmp/subs.awk"
15685 else
15686 $AWK -f "$tmp/subs.awk" | $SHELL
15687 fi >$tmp/out \
15688 || as_fn_error "could not create $ac_file" "$LINENO" 5
15690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15694 which seems to be undefined. Please make sure it is defined." >&5
15695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15696 which seems to be undefined. Please make sure it is defined." >&2;}
15698 rm -f "$tmp/stdin"
15699 case $ac_file in
15700 -) cat "$tmp/out" && rm -f "$tmp/out";;
15701 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15702 esac \
15703 || as_fn_error "could not create $ac_file" "$LINENO" 5
15708 esac
15711 case $ac_file$ac_mode in
15712 "Makefile":F) sed "$extrasub_build" Makefile |
15713 sed "$extrasub_host" |
15714 sed "$extrasub_target" > mf$$
15715 mv -f mf$$ Makefile ;;
15717 esac
15718 done # for ac_tag
15721 as_fn_exit 0
15722 _ACEOF
15723 ac_clean_files=$ac_clean_files_save
15725 test $ac_write_fail = 0 ||
15726 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15729 # configure is writing to config.log, and then calls config.status.
15730 # config.status does its own redirection, appending to config.log.
15731 # Unfortunately, on DOS this fails, as config.log is still kept open
15732 # by configure, so config.status won't be able to write to it; its
15733 # output is simply discarded. So we exec the FD to /dev/null,
15734 # effectively closing config.log, so it can be properly (re)opened and
15735 # appended to by config.status. When coming back to configure, we
15736 # need to make the FD available again.
15737 if test "$no_create" != yes; then
15738 ac_cs_success=:
15739 ac_config_status_args=
15740 test "$silent" = yes &&
15741 ac_config_status_args="$ac_config_status_args --quiet"
15742 exec 5>/dev/null
15743 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15744 exec 5>>config.log
15745 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15746 # would make configure fail if this is the last instruction.
15747 $ac_cs_success || as_fn_exit $?
15749 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15751 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}