2016-05-02 Javier Miranda <miranda@adacore.com>
[official-gcc.git] / configure
blobd17b477f127414bc14d5075fdbfa1c82678318c7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
598 LIPO
600 DLLTOOL
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 extra_host_zlib_configure_flags
647 extra_host_libiberty_configure_flags
648 stage1_languages
649 extra_linker_plugin_flags
650 extra_linker_plugin_configure_flags
651 islinc
652 isllibs
653 islver
654 poststage1_ldflags
655 poststage1_libs
656 stage1_ldflags
657 stage1_libs
658 extra_isl_gmp_configure_flags
659 extra_mpc_mpfr_configure_flags
660 extra_mpc_gmp_configure_flags
661 extra_mpfr_configure_flags
662 gmpinc
663 gmplibs
664 do_compare
665 GNATMAKE
666 GNATBIND
667 ac_ct_CXX
668 CXXFLAGS
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
677 EXTRA_CONFIGARGS_LIBJAVA
678 extra_liboffloadmic_configure_flags
679 target_subdir
680 host_subdir
681 build_subdir
682 build_libsubdir
685 LN_S
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_os
691 target_vendor
692 target_cpu
693 target
694 host_os
695 host_vendor
696 host_cpu
697 host
698 target_noncanonical
699 host_noncanonical
700 build_noncanonical
701 build_os
702 build_vendor
703 build_cpu
704 build
705 TOPLEVEL_CONFIGURE_ARGUMENTS
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_URL
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files='serialization_dependencies
745 host_makefile_frag
746 target_makefile_frag
747 alphaieee_frag
748 ospace_frag'
749 ac_user_opts='
750 enable_option_checking
751 with_build_libsubdir
752 with_system_zlib
753 enable_as_accelerator_for
754 enable_offload_targets
755 enable_gold
756 enable_ld
757 enable_compressed_debug_sections
758 enable_libquadmath
759 enable_libquadmath_support
760 enable_libada
761 enable_libssp
762 enable_libstdcxx
763 enable_liboffloadmic
764 enable_static_libjava
765 enable_bootstrap
766 with_mpc
767 with_mpc_include
768 with_mpc_lib
769 with_mpfr_dir
770 with_mpfr
771 with_mpfr_include
772 with_mpfr_lib
773 with_gmp_dir
774 with_gmp
775 with_gmp_include
776 with_gmp_lib
777 with_stage1_libs
778 with_stage1_ldflags
779 with_boot_libs
780 with_boot_ldflags
781 with_isl
782 with_isl_include
783 with_isl_lib
784 enable_isl_version_check
785 enable_lto
786 enable_linker_plugin_configure_flags
787 enable_linker_plugin_flags
788 enable_stage1_languages
789 enable_objc_gc
790 with_build_sysroot
791 with_debug_prefix_map
792 with_build_config
793 enable_vtable_verify
794 enable_serial_configure
795 with_build_time_tools
796 enable_maintainer_mode
797 enable_stage1_checking
798 enable_werror
799 enable_host_shared
801 ac_precious_vars='build_alias
802 host_alias
803 target_alias
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
810 CXXFLAGS
812 build_configargs
813 host_configargs
814 target_configargs
817 DLLTOOL
819 LIPO
821 RANLIB
822 STRIP
823 WINDRES
824 WINDMC
825 OBJCOPY
826 OBJDUMP
827 READELF
828 CC_FOR_TARGET
829 CXX_FOR_TARGET
830 GCC_FOR_TARGET
831 GCJ_FOR_TARGET
832 GFORTRAN_FOR_TARGET
833 GOC_FOR_TARGET
834 AR_FOR_TARGET
835 AS_FOR_TARGET
836 DLLTOOL_FOR_TARGET
837 LD_FOR_TARGET
838 LIPO_FOR_TARGET
839 NM_FOR_TARGET
840 OBJCOPY_FOR_TARGET
841 OBJDUMP_FOR_TARGET
842 RANLIB_FOR_TARGET
843 READELF_FOR_TARGET
844 STRIP_FOR_TARGET
845 WINDRES_FOR_TARGET
846 WINDMC_FOR_TARGET'
849 # Initialize some variables set by options.
850 ac_init_help=
851 ac_init_version=false
852 ac_unrecognized_opts=
853 ac_unrecognized_sep=
854 # The variables have the same names as the options, with
855 # dashes changed to underlines.
856 cache_file=/dev/null
857 exec_prefix=NONE
858 no_create=
859 no_recursion=
860 prefix=NONE
861 program_prefix=NONE
862 program_suffix=NONE
863 program_transform_name=s,x,x,
864 silent=
865 site=
866 srcdir=
867 verbose=
868 x_includes=NONE
869 x_libraries=NONE
871 # Installation directory options.
872 # These are left unexpanded so users can "make install exec_prefix=/foo"
873 # and all the variables that are supposed to be based on exec_prefix
874 # by default will actually change.
875 # Use braces instead of parens because sh, perl, etc. also accept them.
876 # (The list follows the same order as the GNU Coding Standards.)
877 bindir='${exec_prefix}/bin'
878 sbindir='${exec_prefix}/sbin'
879 libexecdir='${exec_prefix}/libexec'
880 datarootdir='${prefix}/share'
881 datadir='${datarootdir}'
882 sysconfdir='${prefix}/etc'
883 sharedstatedir='${prefix}/com'
884 localstatedir='${prefix}/var'
885 includedir='${prefix}/include'
886 oldincludedir='/usr/include'
887 docdir='${datarootdir}/doc/${PACKAGE}'
888 infodir='${datarootdir}/info'
889 htmldir='${docdir}'
890 dvidir='${docdir}'
891 pdfdir='${docdir}'
892 psdir='${docdir}'
893 libdir='${exec_prefix}/lib'
894 localedir='${datarootdir}/locale'
895 mandir='${datarootdir}/man'
897 ac_prev=
898 ac_dashdash=
899 for ac_option
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
903 eval $ac_prev=\$ac_option
904 ac_prev=
905 continue
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
913 # Accept the important Cygnus configure options, so we can diagnose typos.
915 case $ac_dashdash$ac_option in
917 ac_dashdash=yes ;;
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922 bindir=$ac_optarg ;;
924 -build | --build | --buil | --bui | --bu)
925 ac_prev=build_alias ;;
926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927 build_alias=$ac_optarg ;;
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934 cache_file=$ac_optarg ;;
936 --config-cache | -C)
937 cache_file=config.cache ;;
939 -datadir | --datadir | --datadi | --datad)
940 ac_prev=datadir ;;
941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
942 datadir=$ac_optarg ;;
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
951 -disable-* | --disable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=\$ac_optarg ;;
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1000 exec_prefix=$ac_optarg ;;
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
1013 -host | --host | --hos | --ho)
1014 ac_prev=host_alias ;;
1015 -host=* | --host=* | --hos=* | --ho=*)
1016 host_alias=$ac_optarg ;;
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1029 includedir=$ac_optarg ;;
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034 infodir=$ac_optarg ;;
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039 libdir=$ac_optarg ;;
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1046 libexecdir=$ac_optarg ;;
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
1054 | --localstate | --localstat | --localsta | --localst | --locals)
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058 localstatedir=$ac_optarg ;;
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063 mandir=$ac_optarg ;;
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070 | --no-cr | --no-c | -n)
1071 no_create=yes ;;
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084 oldincludedir=$ac_optarg ;;
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089 prefix=$ac_optarg ;;
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096 program_prefix=$ac_optarg ;;
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103 program_suffix=$ac_optarg ;;
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1120 program_transform_name=$ac_optarg ;;
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232 Try \`$0 --help' for more information."
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 esac
1254 done
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error "missing argument to $ac_option"
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311 test "$silent" = yes && exec 6>/dev/null
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1340 /^X\(\/\/\)$/{
1341 s//\1/
1344 /^X\(\/\).*/{
1345 s//\1/
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1353 else
1354 ac_srcdir_defaulted=no
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1378 esac
1379 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461 _ACEOF
1464 if test -n "$ac_init_help"; then
1466 cat <<\_ACEOF
1468 Optional Features:
1469 --disable-option-checking ignore unrecognized --enable/--with options
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1489 --disable-libstdcxx do not build libstdc++-v3 directory
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
1492 --enable-static-libjava[=ARG]
1493 build static libjava [default=no]
1494 --enable-bootstrap enable bootstrapping [yes if native build]
1495 --disable-isl-version-check
1496 disable check for isl version
1497 --enable-lto enable link time optimization support
1498 --enable-linker-plugin-configure-flags=FLAGS
1499 additional flags for configuring linker plugins
1500 [none]
1501 --enable-linker-plugin-flags=FLAGS
1502 additional flags for configuring and building linker
1503 plugins [none]
1504 --enable-stage1-languages[=all]
1505 choose additional languages to build during stage1.
1506 Mostly useful for compiler development
1507 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1508 Objective-C runtime
1509 --enable-vtable-verify Enable vtable verification feature
1510 --enable-serial-[{host,target,build}-]configure
1511 force sequential configuration of sub-packages for
1512 the host, target or build machine, or all
1513 sub-packages
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-stage1-checking[=all]
1518 choose additional checking for stage1 of the
1519 compiler
1520 --enable-werror enable -Werror in bootstrap stage2 and later
1521 --enable-host-shared build host code as shared libraries
1523 Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-build-libsubdir=DIR Directory where to find libraries for build system
1527 --with-system-zlib use installed libz
1528 --with-mpc=PATH specify prefix directory for installed MPC package.
1529 Equivalent to --with-mpc-include=PATH/include plus
1530 --with-mpc-lib=PATH/lib
1531 --with-mpc-include=PATH specify directory for installed MPC include files
1532 --with-mpc-lib=PATH specify directory for the installed MPC library
1533 --with-mpfr-dir=PATH this option has been REMOVED
1534 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1535 Equivalent to --with-mpfr-include=PATH/include plus
1536 --with-mpfr-lib=PATH/lib
1537 --with-mpfr-include=PATH
1538 specify directory for installed MPFR include files
1539 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1540 --with-gmp-dir=PATH this option has been REMOVED
1541 --with-gmp=PATH specify prefix directory for the installed GMP
1542 package. Equivalent to
1543 --with-gmp-include=PATH/include plus
1544 --with-gmp-lib=PATH/lib
1545 --with-gmp-include=PATH specify directory for installed GMP include files
1546 --with-gmp-lib=PATH specify directory for the installed GMP library
1547 --with-stage1-libs=LIBS libraries for stage1
1548 --with-stage1-ldflags=FLAGS
1549 linker flags for stage1
1550 --with-boot-libs=LIBS libraries for stage2 and later
1551 --with-boot-ldflags=FLAGS
1552 linker flags for stage2 and later
1553 --with-isl=PATH Specify prefix directory for the installed isl
1554 package. Equivalent to
1555 --with-isl-include=PATH/include plus
1556 --with-isl-lib=PATH/lib
1557 --with-isl-include=PATH Specify directory for installed isl include files
1558 --with-isl-lib=PATH Specify the directory for the installed isl library
1559 --with-build-sysroot=SYSROOT
1560 use sysroot as the system root during the build
1561 --with-debug-prefix-map='A=B C=D ...'
1562 map A to B, C to D ... in debug information
1563 --with-build-config='NAME NAME2...'
1564 use config/NAME.mk build configuration
1565 --with-build-time-tools=PATH
1566 use given path to find target tools during the build
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
1578 build_configargs
1579 additional configure arguments for build directories
1580 host_configargs
1581 additional configure arguments for host directories
1582 target_configargs
1583 additional configure arguments for target directories
1584 AR AR for the host
1585 AS AS for the host
1586 DLLTOOL DLLTOOL for the host
1587 LD LD for the host
1588 LIPO LIPO for the host
1589 NM NM for the host
1590 RANLIB RANLIB for the host
1591 STRIP STRIP for the host
1592 WINDRES WINDRES for the host
1593 WINDMC WINDMC for the host
1594 OBJCOPY OBJCOPY for the host
1595 OBJDUMP OBJDUMP for the host
1596 READELF READELF for the host
1597 CC_FOR_TARGET
1598 CC for the target
1599 CXX_FOR_TARGET
1600 CXX for the target
1601 GCC_FOR_TARGET
1602 GCC for the target
1603 GCJ_FOR_TARGET
1604 GCJ for the target
1605 GFORTRAN_FOR_TARGET
1606 GFORTRAN for the target
1607 GOC_FOR_TARGET
1608 GOC for the target
1609 AR_FOR_TARGET
1610 AR for the target
1611 AS_FOR_TARGET
1612 AS for the target
1613 DLLTOOL_FOR_TARGET
1614 DLLTOOL for the target
1615 LD_FOR_TARGET
1616 LD for the target
1617 LIPO_FOR_TARGET
1618 LIPO for the target
1619 NM_FOR_TARGET
1620 NM for the target
1621 OBJCOPY_FOR_TARGET
1622 OBJCOPY for the target
1623 OBJDUMP_FOR_TARGET
1624 OBJDUMP for the target
1625 RANLIB_FOR_TARGET
1626 RANLIB for the target
1627 READELF_FOR_TARGET
1628 READELF for the target
1629 STRIP_FOR_TARGET
1630 STRIP for the target
1631 WINDRES_FOR_TARGET
1632 WINDRES for the target
1633 WINDMC_FOR_TARGET
1634 WINDMC for the target
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1639 Report bugs to the package provider.
1640 _ACEOF
1641 ac_status=$?
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.64
1705 Copyright (C) 2009 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708 _ACEOF
1709 exit
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=1
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1752 } # ac_fn_c_try_compile
1754 # ac_fn_cxx_try_compile LINENO
1755 # ----------------------------
1756 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_cxx_try_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1790 } # ac_fn_cxx_try_compile
1792 # ac_fn_cxx_try_link LINENO
1793 # -------------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_cxx_try_link ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
1836 } # ac_fn_cxx_try_link
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_link ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
1868 else
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 ac_retval=1
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
1882 } # ac_fn_c_try_link
1883 cat >config.log <<_ACEOF
1884 This file contains any messages produced by compilers while
1885 running configure, to aid debugging if configure makes a mistake.
1887 It was created by $as_me, which was
1888 generated by GNU Autoconf 2.64. Invocation command line was
1890 $ $0 $@
1892 _ACEOF
1893 exec 5>>config.log
1895 cat <<_ASUNAME
1896 ## --------- ##
1897 ## Platform. ##
1898 ## --------- ##
1900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1917 _ASUNAME
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
1924 $as_echo "PATH: $as_dir"
1925 done
1926 IFS=$as_save_IFS
1928 } >&5
1930 cat >&5 <<_ACEOF
1933 ## ----------- ##
1934 ## Core tests. ##
1935 ## ----------- ##
1937 _ACEOF
1940 # Keep a trace of the command line.
1941 # Strip out --no-create and --no-recursion so they do not pile up.
1942 # Strip out --silent because we don't want to record it for future runs.
1943 # Also quote any args containing shell meta-characters.
1944 # Make two passes to allow for proper duplicate-argument suppression.
1945 ac_configure_args=
1946 ac_configure_args0=
1947 ac_configure_args1=
1948 ac_must_keep_next=false
1949 for ac_pass in 1 2
1951 for ac_arg
1953 case $ac_arg in
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1957 continue ;;
1958 *\'*)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 esac
1961 case $ac_pass in
1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1964 as_fn_append ac_configure_args1 " '$ac_arg'"
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1967 else
1968 case $ac_arg in
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 esac
1977 -* ) ac_must_keep_next=true ;;
1978 esac
1980 as_fn_append ac_configure_args " '$ac_arg'"
1982 esac
1983 done
1984 done
1985 { ac_configure_args0=; unset ac_configure_args0;}
1986 { ac_configure_args1=; unset ac_configure_args1;}
1988 # When interrupted or exit'd, cleanup temporary files, and complete
1989 # config.log. We remove comments because anyway the quotes in there
1990 # would cause problems or look ugly.
1991 # WARNING: Use '\'' to represent an apostrophe within the trap.
1992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1993 trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1996 echo
1998 cat <<\_ASBOX
1999 ## ---------------- ##
2000 ## Cache variables. ##
2001 ## ---------------- ##
2002 _ASBOX
2003 echo
2004 # The following way of writing the cache mishandles newlines in values,
2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in #(
2009 *${as_nl}*)
2010 case $ac_var in #(
2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 esac
2014 case $ac_var in #(
2015 _ | IFS | as_nl) ;; #(
2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017 *) { eval $ac_var=; unset $ac_var;} ;;
2018 esac ;;
2019 esac
2020 done
2021 (set) 2>&1 |
2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023 *${as_nl}ac_space=\ *)
2024 sed -n \
2025 "s/'\''/'\''\\\\'\'''\''/g;
2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 ;; #(
2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2031 esac |
2032 sort
2034 echo
2036 cat <<\_ASBOX
2037 ## ----------------- ##
2038 ## Output variables. ##
2039 ## ----------------- ##
2040 _ASBOX
2041 echo
2042 for ac_var in $ac_subst_vars
2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
2049 done | sort
2050 echo
2052 if test -n "$ac_subst_files"; then
2053 cat <<\_ASBOX
2054 ## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##
2057 _ASBOX
2058 echo
2059 for ac_var in $ac_subst_files
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
2066 done | sort
2067 echo
2070 if test -s confdefs.h; then
2071 cat <<\_ASBOX
2072 ## ----------- ##
2073 ## confdefs.h. ##
2074 ## ----------- ##
2075 _ASBOX
2076 echo
2077 cat confdefs.h
2078 echo
2080 test "$ac_signal" != 0 &&
2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
2083 } >&5
2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2086 exit $exit_status
2088 for ac_signal in 1 2 13 15; do
2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 done
2091 ac_signal=0
2093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2094 rm -f -r conftest* confdefs.h
2096 $as_echo "/* confdefs.h */" > confdefs.h
2098 # Predefined preprocessor variables.
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_NAME "$PACKAGE_NAME"
2102 _ACEOF
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106 _ACEOF
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2110 _ACEOF
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_STRING "$PACKAGE_STRING"
2114 _ACEOF
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118 _ACEOF
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_URL "$PACKAGE_URL"
2122 _ACEOF
2125 # Let the site file select an alternate cache file if it wants to.
2126 # Prefer an explicitly selected file to automatically selected ones.
2127 ac_site_file1=NONE
2128 ac_site_file2=NONE
2129 if test -n "$CONFIG_SITE"; then
2130 ac_site_file1=$CONFIG_SITE
2131 elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2134 else
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
2138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2140 test "x$ac_site_file" = xNONE && continue
2141 if test -r "$ac_site_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2144 sed 's/^/| /' "$ac_site_file" >&5
2145 . "$ac_site_file"
2147 done
2149 if test -r "$cache_file"; then
2150 # Some versions of bash will fail to source /dev/null (special
2151 # files actually), so we avoid doing that.
2152 if test -f "$cache_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155 case $cache_file in
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
2158 esac
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163 >$cache_file
2166 # Check that the precious variables saved in the cache have kept the same
2167 # value.
2168 ac_cache_corrupted=false
2169 for ac_var in $ac_precious_vars; do
2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
2174 case $ac_old_set,$ac_new_set in
2175 set,)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,set)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,);;
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2202 fi;;
2203 esac
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2206 case $ac_new_val in
2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 *) ac_arg=$ac_var=$ac_new_val ;;
2209 esac
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213 esac
2215 done
2216 if $ac_cache_corrupted; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2223 ## -------------------- ##
2224 ## Main body of script. ##
2225 ## -------------------- ##
2227 ac_ext=c
2228 ac_cpp='$CPP $CPPFLAGS'
2229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 progname=$0
2242 # if PWD already has a value, it is probably wrong.
2243 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2245 # Export original configure arguments for use by sub-configures.
2246 # Quote arguments with shell meta charatcers.
2247 TOPLEVEL_CONFIGURE_ARGUMENTS=
2248 set -- "$progname" "$@"
2249 for ac_arg
2251 case "$ac_arg" in
2252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2254 # if the argument is of the form -foo=baz, quote the baz part only
2255 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2256 *) ;;
2257 esac
2258 # Add the quoted argument to the list.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2260 done
2261 if test "$silent" = yes; then
2262 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2264 # Remove the initial space we just introduced and, as these will be
2265 # expanded by make, quote '$'.
2266 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2269 # Find the build, host, and target systems.
2270 ac_aux_dir=
2271 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272 for ac_t in install-sh install.sh shtool; do
2273 if test -f "$ac_dir/$ac_t"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/$ac_t -c"
2276 break 2
2278 done
2279 done
2280 if test -z "$ac_aux_dir"; then
2281 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2293 # Make sure we can run config.sub.
2294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298 $as_echo_n "checking build system type... " >&6; }
2299 if test "${ac_cv_build+set}" = set; then :
2300 $as_echo_n "(cached) " >&6
2301 else
2302 ac_build_alias=$build_alias
2303 test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305 test "x$ac_build_alias" = x &&
2306 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312 $as_echo "$ac_cv_build" >&6; }
2313 case $ac_cv_build in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2316 esac
2317 build=$ac_cv_build
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_build
2320 shift
2321 build_cpu=$1
2322 build_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 build_os=$*
2327 IFS=$ac_save_IFS
2328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2331 case ${build_alias} in
2332 "") build_noncanonical=${build} ;;
2333 *) build_noncanonical=${build_alias} ;;
2334 esac
2338 case ${host_alias} in
2339 "") host_noncanonical=${build_noncanonical} ;;
2340 *) host_noncanonical=${host_alias} ;;
2341 esac
2345 case ${target_alias} in
2346 "") target_noncanonical=${host_noncanonical} ;;
2347 *) target_noncanonical=${target_alias} ;;
2348 esac
2353 test "$host_noncanonical" = "$target_noncanonical" &&
2354 test "$program_prefix$program_suffix$program_transform_name" = \
2355 NONENONEs,x,x, &&
2356 program_transform_name=s,y,y,
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2359 $as_echo_n "checking host system type... " >&6; }
2360 if test "${ac_cv_host+set}" = set; then :
2361 $as_echo_n "(cached) " >&6
2362 else
2363 if test "x$host_alias" = x; then
2364 ac_cv_host=$ac_cv_build
2365 else
2366 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2367 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2372 $as_echo "$ac_cv_host" >&6; }
2373 case $ac_cv_host in
2374 *-*-*) ;;
2375 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2376 esac
2377 host=$ac_cv_host
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_host
2380 shift
2381 host_cpu=$1
2382 host_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 host_os=$*
2387 IFS=$ac_save_IFS
2388 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2392 $as_echo_n "checking target system type... " >&6; }
2393 if test "${ac_cv_target+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 if test "x$target_alias" = x; then
2397 ac_cv_target=$ac_cv_host
2398 else
2399 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2400 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2405 $as_echo "$ac_cv_target" >&6; }
2406 case $ac_cv_target in
2407 *-*-*) ;;
2408 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2409 esac
2410 target=$ac_cv_target
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_target
2413 shift
2414 target_cpu=$1
2415 target_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 target_os=$*
2420 IFS=$ac_save_IFS
2421 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2424 # The aliases save the names the user supplied, while $host etc.
2425 # will get canonicalized.
2426 test -n "$target_alias" &&
2427 test "$program_prefix$program_suffix$program_transform_name" = \
2428 NONENONEs,x,x, &&
2429 program_prefix=${target_alias}-
2431 test "$program_prefix" != NONE &&
2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2443 # Get 'install' or 'install-sh' and its variants.
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2450 # AIX /bin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # OS/2's system install, which has a completely different semantic
2456 # ./install, which can be erroneously created by make from ./install.sh.
2457 # Reject install programs that cannot install multiple files.
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2460 if test -z "$INSTALL"; then
2461 if test "${ac_cv_path_install+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 # Account for people who put trailing slashes in PATH elements.
2470 case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2474 /usr/ucb/* ) ;;
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2482 if test $ac_prog = install &&
2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # AIX install. It has an incompatible calling convention.
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2490 else
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2505 done
2506 done
2508 esac
2510 done
2511 IFS=$as_save_IFS
2513 rm -rf conftest.one conftest.two conftest.dir
2516 if test "${ac_cv_path_install+set}" = set; then
2517 INSTALL=$ac_cv_path_install
2518 else
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 INSTALL=$ac_install_sh
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527 $as_echo "$INSTALL" >&6; }
2529 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530 # It thinks the first close brace ends the variable substitution.
2531 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2533 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2535 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2538 $as_echo_n "checking whether ln works... " >&6; }
2539 if test "${acx_cv_prog_LN+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 rm -f conftestdata_t
2543 echo >conftestdata_f
2544 if ln conftestdata_f conftestdata_t 2>/dev/null
2545 then
2546 acx_cv_prog_LN=ln
2547 else
2548 acx_cv_prog_LN=no
2550 rm -f conftestdata_f conftestdata_t
2553 if test $acx_cv_prog_LN = no; then
2554 LN="cp"
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2556 $as_echo "no, using $LN" >&6; }
2557 else
2558 LN="$acx_cv_prog_LN"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560 $as_echo "yes" >&6; }
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2564 $as_echo_n "checking whether ln -s works... " >&6; }
2565 LN_S=$as_ln_s
2566 if test "$LN_S" = "ln -s"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2571 $as_echo "no, using $LN_S" >&6; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2575 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2576 if test "${ac_cv_path_SED+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2580 for ac_i in 1 2 3 4 5 6 7; do
2581 ac_script="$ac_script$as_nl$ac_script"
2582 done
2583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2584 { ac_script=; unset ac_script;}
2585 if test -z "$SED"; then
2586 ac_path_SED_found=false
2587 # Loop through the user's path and test for each of PROGNAME-LIST
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_prog in sed gsed; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2596 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2597 # Check for GNU ac_path_SED and select it if it is found.
2598 # Check for GNU $ac_path_SED
2599 case `"$ac_path_SED" --version 2>&1` in
2600 *GNU*)
2601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2603 ac_count=0
2604 $as_echo_n 0123456789 >"conftest.in"
2605 while :
2607 cat "conftest.in" "conftest.in" >"conftest.tmp"
2608 mv "conftest.tmp" "conftest.in"
2609 cp "conftest.in" "conftest.nl"
2610 $as_echo '' >> "conftest.nl"
2611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2613 as_fn_arith $ac_count + 1 && ac_count=$as_val
2614 if test $ac_count -gt ${ac_path_SED_max-0}; then
2615 # Best one so far, save it but keep looking for a better one
2616 ac_cv_path_SED="$ac_path_SED"
2617 ac_path_SED_max=$ac_count
2619 # 10*(2^10) chars as input seems more than enough
2620 test $ac_count -gt 10 && break
2621 done
2622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2623 esac
2625 $ac_path_SED_found && break 3
2626 done
2627 done
2628 done
2629 IFS=$as_save_IFS
2630 if test -z "$ac_cv_path_SED"; then
2631 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2633 else
2634 ac_cv_path_SED=$SED
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2639 $as_echo "$ac_cv_path_SED" >&6; }
2640 SED="$ac_cv_path_SED"
2641 rm -f conftest.sed
2643 for ac_prog in gawk mawk nawk awk
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646 set dummy $ac_prog; ac_word=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if test "${ac_cv_prog_AWK+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654 else
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2666 done
2667 done
2668 IFS=$as_save_IFS
2672 AWK=$ac_cv_prog_AWK
2673 if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675 $as_echo "$AWK" >&6; }
2676 else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2682 test -n "$AWK" && break
2683 done
2686 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2688 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2689 # a relative path.
2690 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2691 INSTALL="${srcpwd}/install-sh -c"
2694 # Set srcdir to "." if that's what it is.
2695 # This is important for multilib support.
2696 pwd=`${PWDCMD-pwd}`
2697 if test "${pwd}" = "${srcpwd}" ; then
2698 srcdir=.
2701 topsrcdir=$srcpwd
2703 extra_host_args=
2705 ### To add a new directory to the tree, first choose whether it is a target
2706 ### or a host dependent tool. Then put it into the appropriate list
2707 ### (library or tools, host or target), doing a dependency sort.
2709 # Subdirs will be configured in the order listed in build_configdirs,
2710 # configdirs, or target_configdirs; see the serialization section below.
2712 # Dependency sorting is only needed when *configuration* must be done in
2713 # a particular order. In all cases a dependency should be specified in
2714 # the Makefile, whether or not it's implicitly specified here.
2716 # Double entries in build_configdirs, configdirs, or target_configdirs may
2717 # cause circular dependencies and break everything horribly.
2719 # these library is used by various programs built for the build
2720 # environment
2722 build_libs="build-libiberty build-libcpp"
2724 # these tools are built for the build environment
2725 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2727 # these libraries are used by various programs built for the host environment
2729 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2731 # these tools are built for the host environment
2732 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2733 # know that we are building the simulator.
2734 # binutils, gas and ld appear in that order because it makes sense to run
2735 # "make check" in that particular order.
2736 # If --enable-gold is used, "gold" may replace "ld".
2737 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
2739 # libgcj represents the runtime libraries only used by gcj.
2740 libgcj="target-libffi \
2741 target-zlib \
2742 target-libjava"
2744 # these libraries are built for the target environment, and are built after
2745 # the host libraries and the host tools (which may be a cross compiler)
2746 # Note that libiberty is not a target library.
2747 target_libraries="target-libgcc \
2748 target-libbacktrace \
2749 target-libgloss \
2750 target-newlib \
2751 target-libgomp \
2752 target-libcilkrts \
2753 target-liboffloadmic \
2754 target-libatomic \
2755 target-libitm \
2756 target-libstdc++-v3 \
2757 target-libsanitizer \
2758 target-libvtv \
2759 target-libmpx \
2760 target-libssp \
2761 target-libquadmath \
2762 target-libgfortran \
2763 target-boehm-gc \
2764 ${libgcj} \
2765 target-libobjc \
2766 target-libada \
2767 target-libgo"
2769 # these tools are built using the target libraries, and are intended to
2770 # run only in the target environment
2772 # note: any program that *uses* libraries that are in the "target_libraries"
2773 # list belongs in this list.
2775 target_tools="target-rda"
2777 ################################################################################
2779 ## All tools belong in one of the four categories, and are assigned above
2780 ## We assign ${configdirs} this way to remove all embedded newlines. This
2781 ## is important because configure will choke if they ever get through.
2782 ## ${configdirs} is directories we build using the host tools.
2783 ## ${target_configdirs} is directories we build using the target tools.
2784 configdirs=`echo ${host_libs} ${host_tools}`
2785 target_configdirs=`echo ${target_libraries} ${target_tools}`
2786 build_configdirs=`echo ${build_libs} ${build_tools}`
2790 ################################################################################
2792 srcname="gnu development package"
2794 # This gets set non-empty for some net releases of packages.
2795 appdirs=""
2797 # Define is_cross_compiler to save on calls to 'test'.
2798 is_cross_compiler=
2799 if test x"${host}" = x"${target}" ; then
2800 is_cross_compiler=no
2801 else
2802 is_cross_compiler=yes
2805 # Find the build and target subdir names.
2807 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2808 # have matching libraries, they should use host libraries: Makefile.tpl
2809 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2810 # However, they still use the build modules, because the corresponding
2811 # host modules (e.g. bison) are only built for the host when bootstrap
2812 # finishes. So:
2813 # - build_subdir is where we find build modules, and never changes.
2814 # - build_libsubdir is where we find build libraries, and can be overridden.
2816 # Prefix 'build-' so this never conflicts with target_subdir.
2817 build_subdir="build-${build_noncanonical}"
2819 # Check whether --with-build-libsubdir was given.
2820 if test "${with_build_libsubdir+set}" = set; then :
2821 withval=$with_build_libsubdir; build_libsubdir="$withval"
2822 else
2823 build_libsubdir="$build_subdir"
2826 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2827 if ( test $srcdir = . && test -d gcc ) \
2828 || test -d $srcdir/../host-${host_noncanonical}; then
2829 host_subdir="host-${host_noncanonical}"
2830 else
2831 host_subdir=.
2833 # No prefix.
2834 target_subdir=${target_noncanonical}
2836 # Be sure to cover against remnants of an in-tree build.
2837 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2838 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2839 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2842 # Skipdirs are removed silently.
2843 skipdirs=
2844 # Noconfigdirs are removed loudly.
2845 noconfigdirs=""
2847 use_gnu_ld=
2848 # Make sure we don't let GNU ld be added if we didn't want it.
2849 if test x$with_gnu_ld = xno ; then
2850 use_gnu_ld=no
2851 noconfigdirs="$noconfigdirs ld gold"
2854 use_gnu_as=
2855 # Make sure we don't let GNU as be added if we didn't want it.
2856 if test x$with_gnu_as = xno ; then
2857 use_gnu_as=no
2858 noconfigdirs="$noconfigdirs gas"
2861 use_included_zlib=
2863 # Check whether --with-system-zlib was given.
2864 if test "${with_system_zlib+set}" = set; then :
2865 withval=$with_system_zlib;
2868 # Make sure we don't let ZLIB be added if we didn't want it.
2869 if test x$with_system_zlib = xyes ; then
2870 use_included_zlib=no
2871 noconfigdirs="$noconfigdirs zlib"
2874 # some tools are so dependent upon X11 that if we're not building with X,
2875 # it's not even worth trying to configure, much less build, that tool.
2877 case ${with_x} in
2878 yes | "") ;; # the default value for this tree is that X11 is available
2880 skipdirs="${skipdirs} tk itcl libgui"
2881 # We won't be able to build gdbtk without X.
2882 enable_gdbtk=no
2884 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885 esac
2887 # Some are only suitable for cross toolchains.
2888 # Remove these if host=target.
2889 cross_only="target-libgloss target-newlib target-opcodes"
2891 case $is_cross_compiler in
2892 no) skipdirs="${skipdirs} ${cross_only}" ;;
2893 esac
2895 # If both --with-headers and --with-libs are specified, default to
2896 # --without-newlib.
2897 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2898 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2899 if test x"${with_newlib}" = x ; then
2900 with_newlib=no
2904 # Recognize --with-newlib/--without-newlib.
2905 case ${with_newlib} in
2906 no) skipdirs="${skipdirs} target-newlib" ;;
2907 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908 esac
2910 # Check whether --enable-as-accelerator-for was given.
2911 if test "${enable_as_accelerator_for+set}" = set; then :
2912 enableval=$enable_as_accelerator_for;
2916 # Check whether --enable-offload-targets was given.
2917 if test "${enable_offload_targets+set}" = set; then :
2918 enableval=$enable_offload_targets;
2919 if test x"$enable_offload_targets" = x; then
2920 as_fn_error "no offload targets specified" "$LINENO" 5
2923 else
2924 enable_offload_targets=
2928 # Handle --enable-gold, --enable-ld.
2929 # --disable-gold [--enable-ld]
2930 # Build only ld. Default option.
2931 # --enable-gold [--enable-ld]
2932 # Build both gold and ld. Install gold as "ld.gold", install ld
2933 # as "ld.bfd" and "ld".
2934 # --enable-gold=default [--enable-ld]
2935 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2936 # install ld as "ld.bfd".
2937 # --enable-gold[=default] --disable-ld
2938 # Build only gold, which is then installed as both "ld.gold" and "ld".
2939 # --enable-gold --enable-ld=default
2940 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2941 # and ld.bfd).
2942 # In other words, ld is default
2943 # --enable-gold=default --enable-ld=default
2944 # Error.
2946 default_ld=
2947 # Check whether --enable-gold was given.
2948 if test "${enable_gold+set}" = set; then :
2949 enableval=$enable_gold; ENABLE_GOLD=$enableval
2950 else
2951 ENABLE_GOLD=no
2954 case "${ENABLE_GOLD}" in
2955 yes|default)
2956 # Check for ELF target.
2957 is_elf=no
2958 case "${target}" in
2959 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2960 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2961 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2962 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2963 case "${target}" in
2964 *-*-linux*aout* | *-*-linux*oldld*)
2967 is_elf=yes
2969 esac
2970 esac
2972 if test "$is_elf" = "yes"; then
2973 # Check for target supported by gold.
2974 case "${target}" in
2975 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2976 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2977 configdirs="$configdirs gold"
2978 if test x${ENABLE_GOLD} = xdefault; then
2979 default_ld=gold
2981 ENABLE_GOLD=yes
2983 esac
2989 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2991 esac
2993 # Check whether --enable-ld was given.
2994 if test "${enable_ld+set}" = set; then :
2995 enableval=$enable_ld; ENABLE_LD=$enableval
2996 else
2997 ENABLE_LD=yes
3001 case "${ENABLE_LD}" in
3002 default)
3003 if test x${default_ld} != x; then
3004 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3007 yes)
3010 if test x${ENABLE_GOLD} != xyes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3012 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3014 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3017 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3019 esac
3021 # PR gas/19109
3022 # Decide the default method for compressing debug sections.
3023 # Provide a configure time option to override our default.
3024 # Check whether --enable-compressed_debug_sections was given.
3025 if test "${enable_compressed_debug_sections+set}" = set; then :
3026 enableval=$enable_compressed_debug_sections;
3027 if test x"$enable_compressed_debug_sections" = xyes; then
3028 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3031 else
3032 enable_compressed_debug_sections=
3036 # Configure extra directories which are host specific
3038 case "${host}" in
3039 *-cygwin*)
3040 configdirs="$configdirs libtermcap" ;;
3041 esac
3043 # A target can indicate whether a language isn't supported for some reason.
3044 # Only spaces may be used in this macro; not newlines or tabs.
3045 unsupported_languages=
3047 # Remove more programs from consideration, based on the host or
3048 # target this usually means that a port of the program doesn't
3049 # exist yet.
3051 case "${host}" in
3052 i[3456789]86-*-msdosdjgpp*)
3053 noconfigdirs="$noconfigdirs tcl tk itcl"
3055 esac
3058 # Check whether --enable-libquadmath was given.
3059 if test "${enable_libquadmath+set}" = set; then :
3060 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3061 else
3062 ENABLE_LIBQUADMATH=yes
3065 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3066 noconfigdirs="$noconfigdirs target-libquadmath"
3070 # Check whether --enable-libquadmath-support was given.
3071 if test "${enable_libquadmath_support+set}" = set; then :
3072 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3073 else
3074 ENABLE_LIBQUADMATH_SUPPORT=yes
3077 enable_libquadmath_support=
3078 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3079 enable_libquadmath_support=no
3083 # Check whether --enable-libada was given.
3084 if test "${enable_libada+set}" = set; then :
3085 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3086 else
3087 ENABLE_LIBADA=yes
3090 if test "${ENABLE_LIBADA}" != "yes" ; then
3091 noconfigdirs="$noconfigdirs gnattools"
3094 # Check whether --enable-libssp was given.
3095 if test "${enable_libssp+set}" = set; then :
3096 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3097 else
3098 ENABLE_LIBSSP=yes
3102 # Check whether --enable-libstdcxx was given.
3103 if test "${enable_libstdcxx+set}" = set; then :
3104 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3105 else
3106 ENABLE_LIBSTDCXX=default
3109 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3110 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3113 # If this is accelerator compiler and its target is intelmic we enable
3114 # target liboffloadmic by default. If this is compiler with offloading
3115 # for intelmic we enable host liboffloadmic by default. Otherwise
3116 # liboffloadmic is disabled by default.
3117 # Check whether --enable-liboffloadmic was given.
3118 if test "${enable_liboffloadmic+set}" = set; then :
3119 enableval=$enable_liboffloadmic; case "$enableval" in
3120 no | host | target)
3121 enable_liboffloadmic=$enableval ;;
3123 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3124 esac
3125 else
3126 if test x"$enable_as_accelerator_for" != x; then
3127 case "${target}" in
3128 *-intelmic-* | *-intelmicemul-*)
3129 enable_liboffloadmic=target
3130 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3133 enable_liboffloadmic=no
3135 esac
3136 else
3137 case "${enable_offload_targets}" in
3138 *-intelmic-* | *-intelmicemul-*)
3139 enable_liboffloadmic=host
3140 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3143 enable_liboffloadmic=no
3145 esac
3151 # Save it here so that, even in case of --enable-libgcj, if the Java
3152 # front-end isn't enabled, we still get libgcj disabled.
3153 libgcj_saved=$libgcj
3154 case $enable_libgcj in
3155 yes)
3156 # If we reset it here, it won't get added to noconfigdirs in the
3157 # target-specific build rules, so it will be forcibly enabled
3158 # (unless the Java language itself isn't enabled).
3159 libgcj=
3162 # Make sure we get it printed in the list of not supported target libs.
3163 # Don't disable libffi, though, other languages use it.
3164 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3165 # Clear libgcj_saved so that even if java is enabled libffi won't be
3166 # built.
3167 libgcj_saved=
3169 esac
3171 # Check whether --enable-static-libjava was given.
3172 if test "${enable_static_libjava+set}" = set; then :
3173 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3174 else
3175 ENABLE_STATIC_LIBJAVA=no
3178 enable_static_libjava=
3179 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3180 enable_static_libjava=yes
3183 if test x$enable_static_libjava != xyes ; then
3184 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3188 # Enable libgomp by default on hosted POSIX systems, and a few others.
3189 if test x$enable_libgomp = x ; then
3190 case "${target}" in
3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3195 *-*-solaris2* | *-*-hpux11*)
3197 *-*-darwin* | *-*-aix*)
3199 nvptx*-*-*)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3204 esac
3207 # Disable libatomic on unsupported systems.
3208 if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211 $as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3215 then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221 $as_echo "yes" >&6; }
3226 # Disable libcilkrts on unsupported systems.
3227 if test -d ${srcdir}/libcilkrts; then
3228 if test x$enable_libcilkrts = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3230 $as_echo_n "checking for libcilkrts support... " >&6; }
3231 if (srcdir=${srcdir}/libcilkrts; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libcilkrts"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3245 # Disable liboffloadmic on unsupported systems.
3246 if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249 $as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3264 # Disable libitm on unsupported systems.
3265 if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3268 $as_echo_n "checking for libitm support... " >&6; }
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3278 $as_echo "yes" >&6; }
3283 # Disable libsanitizer on unsupported systems.
3284 if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287 $as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3302 # Disable libvtv on unsupported systems.
3303 if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306 $as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
3309 test "$VTV_SUPPORTED" != "yes")
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3322 # Enable libmpx on supported systems by request.
3323 if test -d ${srcdir}/libmpx; then
3324 if test x$enable_libmpx = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3326 $as_echo_n "checking for libmpx support... " >&6; }
3327 if (srcdir=${srcdir}/libmpx; \
3328 . ${srcdir}/configure.tgt; \
3329 test "$LIBMPX_SUPPORTED" != "yes")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libmpx"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3343 # Disable libquadmath for some systems.
3344 case "${target}" in
3345 avr-*-*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3353 esac
3355 # Disable libssp for some systems.
3356 case "${target}" in
3357 avr-*-*)
3358 # No hosted I/O support.
3359 noconfigdirs="$noconfigdirs target-libssp"
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libssp"
3364 rl78-*-*)
3365 # libssp uses a misaligned load to trigger a fault, but the RL78
3366 # doesn't fault for those - instead, it gives a build-time error
3367 # for explicit misaligned loads.
3368 noconfigdirs="$noconfigdirs target-libssp"
3370 visium-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3374 esac
3376 # Disable libstdc++-v3 for some systems.
3377 # Allow user to override this if they pass --enable-libstdc++-v3
3378 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3379 case "${target}" in
3380 *-*-vxworks*)
3381 # VxWorks uses the Dinkumware C++ library.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3384 arm*-wince-pe*)
3385 # the C++ libraries don't build on top of CE's C libraries
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3388 avr-*-*)
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 ft32-*-*)
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3394 esac
3397 # Disable Fortran for some systems.
3398 case "${target}" in
3399 mmix-*-*)
3400 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401 unsupported_languages="$unsupported_languages fortran"
3403 esac
3405 # Disable Java if libffi is not supported.
3406 case "${target}" in
3407 aarch64-*-*)
3409 alpha*-*-*)
3411 arm*-*-*)
3413 cris-*-*)
3415 frv-*-*)
3417 hppa*-*-linux*)
3419 hppa*-*-hpux*)
3421 i?86-*-*)
3423 ia64*-*-*)
3425 m32r*-*-*)
3427 m68k-*-*)
3429 mips*-*-rtems*)
3431 mips*-*-linux*)
3433 powerpc*-*-linux*)
3435 powerpc-*-darwin*)
3437 powerpc-*-aix* | rs6000-*-aix*)
3439 powerpc-*-freebsd*)
3441 powerpc64-*-freebsd*)
3443 powerpc*-*-rtems*)
3445 s390-*-* | s390x-*-*)
3447 sh-*-* | sh[34]*-*-*)
3449 sparc*-*-*)
3451 x86_64-*-*)
3453 *-*-*)
3454 unsupported_languages="$unsupported_languages java"
3456 esac
3458 # Disable Java, libgcj or related libraries for some systems.
3459 case "${target}" in
3460 powerpc-*-darwin*)
3462 i[3456789]86-*-darwin*)
3464 x86_64-*-darwin[912]*)
3466 *-*-darwin*)
3467 noconfigdirs="$noconfigdirs ${libgcj}"
3469 *-*-netware*)
3470 noconfigdirs="$noconfigdirs ${libgcj}"
3472 *-*-rtems*)
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3475 *-*-tpf*)
3476 noconfigdirs="$noconfigdirs ${libgcj}"
3478 *-*-uclinux*)
3479 noconfigdirs="$noconfigdirs ${libgcj}"
3481 *-*-vxworks*)
3482 noconfigdirs="$noconfigdirs ${libgcj}"
3484 alpha*-*-*vms*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3487 arm*-*-freebsd*)
3488 noconfigdirs="$noconfigdirs ${libgcj}"
3490 arm-wince-pe)
3491 noconfigdirs="$noconfigdirs ${libgcj}"
3493 arm*-*-symbianelf*)
3494 noconfigdirs="$noconfigdirs ${libgcj}"
3496 bfin-*-*)
3497 noconfigdirs="$noconfigdirs target-boehm-gc"
3499 cris-*-* | crisv32-*-*)
3500 unsupported_languages="$unsupported_languages java"
3501 case "${target}" in
3502 *-*-linux*)
3504 *) # See PR46792 regarding target-libffi.
3505 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3506 esac
3508 hppa*64*-*-linux*)
3509 # In this case, it's because the hppa64-linux target is for
3510 # the kernel only at this point and has no libc, and thus no
3511 # headers, crt*.o, etc., all of which are needed by these.
3512 unsupported_languages="$unsupported_languages java"
3514 hppa*64*-*-hpux*)
3515 noconfigdirs="$noconfigdirs ${libgcj}"
3517 hppa*-hp-hpux11*)
3519 hppa*-*-hpux*)
3520 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3521 # build on HP-UX 10.20.
3522 noconfigdirs="$noconfigdirs ${libgcj}"
3524 ia64*-*-*vms*)
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3527 i[3456789]86-w64-mingw*)
3528 noconfigdirs="$noconfigdirs ${libgcj}"
3530 i[3456789]86-*-mingw*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3533 x86_64-*-mingw*)
3534 noconfigdirs="$noconfigdirs ${libgcj}"
3536 mmix-*-*)
3537 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3539 powerpc-*-aix*)
3540 # copied from rs6000-*-* entry
3541 noconfigdirs="$noconfigdirs ${libgcj}"
3543 rs6000-*-aix*)
3544 noconfigdirs="$noconfigdirs ${libgcj}"
3546 ft32-*-*)
3547 noconfigdirs="$noconfigdirs ${libgcj}"
3549 *-*-lynxos*)
3550 noconfigdirs="$noconfigdirs ${libgcj}"
3552 esac
3554 # Disable the go frontend on systems where it is known to not work. Please keep
3555 # this in sync with contrib/config-list.mk.
3556 case "${target}" in
3557 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3558 unsupported_languages="$unsupported_languages go"
3560 esac
3562 # Disable libgo for some systems where it is known to not work.
3563 # For testing, you can easily override this with --enable-libgo.
3564 if test x$enable_libgo = x; then
3565 case "${target}" in
3566 *-*-darwin*)
3567 # PR 46986
3568 noconfigdirs="$noconfigdirs target-libgo"
3570 *-*-cygwin* | *-*-mingw*)
3571 noconfigdirs="$noconfigdirs target-libgo"
3573 *-*-aix*)
3574 noconfigdirs="$noconfigdirs target-libgo"
3576 esac
3579 # Default libgloss CPU subdirectory.
3580 libgloss_dir="$target_cpu"
3582 case "${target}" in
3583 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3584 libgloss_dir=wince
3586 aarch64*-*-* )
3587 libgloss_dir=aarch64
3589 arm*-*-*)
3590 libgloss_dir=arm
3592 cris-*-* | crisv32-*-*)
3593 libgloss_dir=cris
3595 hppa*-*-*)
3596 libgloss_dir=pa
3598 i[3456789]86-*-*)
3599 libgloss_dir=i386
3601 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3602 libgloss_dir=m68hc11
3604 m68*-*-* | fido-*-*)
3605 libgloss_dir=m68k
3607 mips*-*-*)
3608 libgloss_dir=mips
3610 powerpc*-*-*)
3611 libgloss_dir=rs6000
3613 sparc*-*-*)
3614 libgloss_dir=sparc
3616 esac
3618 # Disable newlib and libgloss for various target OSes.
3619 case "${target}" in
3620 alpha*-dec-osf*)
3621 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 i[3456789]86-*-linux*)
3624 # This section makes it possible to build newlib natively on linux.
3625 # If we are using a cross compiler then don't configure newlib.
3626 if test x${is_cross_compiler} != xno ; then
3627 noconfigdirs="$noconfigdirs target-newlib"
3629 noconfigdirs="$noconfigdirs target-libgloss"
3630 # If we are not using a cross compiler, do configure newlib.
3631 # Note however, that newlib will only be configured in this situation
3632 # if the --with-newlib option has been given, because otherwise
3633 # 'target-newlib' will appear in skipdirs.
3635 i[3456789]86-*-rdos*)
3636 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3638 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3641 sparc-*-sunos4*)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3644 *-*-aix*)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3647 *-*-beos*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3650 *-*-chorusos)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 *-*-dragonfly*)
3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3656 *-*-freebsd*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3662 *-*-lynxos*)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3665 *-*-mingw*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 *-*-netbsd*)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3671 *-*-netware*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 *-*-tpf*)
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3677 *-*-uclinux*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 *-*-vxworks*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 esac
3685 case "${target}" in
3686 *-*-chorusos)
3688 aarch64-*-darwin*)
3689 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3690 noconfigdirs="$noconfigdirs sim target-rda"
3692 arm-*-darwin*)
3693 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3694 noconfigdirs="$noconfigdirs sim target-rda"
3696 powerpc-*-darwin*)
3697 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3698 noconfigdirs="$noconfigdirs sim target-rda"
3700 i[3456789]86-*-darwin*)
3701 noconfigdirs="$noconfigdirs ld gprof"
3702 noconfigdirs="$noconfigdirs sim target-rda"
3704 x86_64-*-darwin[912]*)
3705 noconfigdirs="$noconfigdirs ld gas gprof"
3706 noconfigdirs="$noconfigdirs sim target-rda"
3708 *-*-darwin*)
3709 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3710 noconfigdirs="$noconfigdirs sim target-rda"
3712 *-*-dragonfly*)
3714 *-*-freebsd*)
3715 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3716 && test -f /usr/local/include/gmp.h; then
3717 with_gmp=/usr/local
3720 *-*-kaos*)
3721 # Remove unsupported stuff on all kaOS configurations.
3722 noconfigdirs="$noconfigdirs target-libgloss"
3724 *-*-netbsd*)
3726 *-*-netware*)
3728 *-*-rtems*)
3729 noconfigdirs="$noconfigdirs target-libgloss"
3730 # this is not caught below because this stanza matches earlier
3731 case $target in
3732 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3733 esac
3735 # The tpf target doesn't support gdb yet.
3736 *-*-tpf*)
3737 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3739 *-*-uclinux*)
3740 noconfigdirs="$noconfigdirs target-rda"
3742 *-*-vxworks*)
3744 alpha*-dec-osf*)
3745 # ld works, but does not support shared libraries.
3746 # gas doesn't generate exception information.
3747 noconfigdirs="$noconfigdirs gas ld"
3749 alpha*-*-*vms*)
3750 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3752 alpha*-*-*)
3753 # newlib is not 64 bit ready
3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3756 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3757 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3759 arc-*-*|arceb-*-*)
3760 noconfigdirs="$noconfigdirs target-libgloss"
3762 arm-*-pe*)
3763 noconfigdirs="$noconfigdirs target-libgloss"
3765 arm-*-riscix*)
3766 noconfigdirs="$noconfigdirs ld target-libgloss"
3768 avr-*-rtems*)
3770 avr-*-*)
3771 if test x${with_avrlibc} != xno; then
3772 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3775 c4x-*-* | tic4x-*-*)
3776 noconfigdirs="$noconfigdirs target-libgloss"
3778 tic54x-*-*)
3779 noconfigdirs="$noconfigdirs target-libgloss gdb"
3781 d10v-*-*)
3782 noconfigdirs="$noconfigdirs target-libgloss"
3784 d30v-*-*)
3785 noconfigdirs="$noconfigdirs gdb"
3787 fr30-*-elf*)
3788 noconfigdirs="$noconfigdirs gdb"
3790 ft32-*-*)
3791 noconfigdirs="$noconfigdirs target-rda gprof"
3793 moxie-*-*)
3794 noconfigdirs="$noconfigdirs"
3796 h8300*-*-*)
3797 noconfigdirs="$noconfigdirs target-libgloss"
3799 h8500-*-*)
3800 noconfigdirs="$noconfigdirs target-libgloss"
3802 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3804 hppa*64*-*-hpux*)
3805 noconfigdirs="$noconfigdirs gdb"
3807 hppa*-*-hpux11*)
3808 noconfigdirs="$noconfigdirs gdb ld"
3810 hppa*64*-*-linux*)
3812 hppa*-*-linux*)
3814 hppa*-*-*elf* | \
3815 hppa*-*-lites* | \
3816 hppa*-*-openbsd* | \
3817 hppa*64*-*-*)
3819 hppa*-*-pro*)
3821 hppa*-*-*)
3822 noconfigdirs="$noconfigdirs ld"
3824 i960-*-*)
3825 noconfigdirs="$noconfigdirs gdb"
3827 ia64*-*-elf*)
3828 # No gdb support yet.
3829 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3831 ia64*-**-hpux*)
3832 # No ld support yet.
3833 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3835 ia64*-*-*vms*)
3836 # No ld support yet.
3837 noconfigdirs="$noconfigdirs libgui itcl ld"
3839 i[3456789]86-w64-mingw*)
3841 i[3456789]86-*-mingw*)
3842 target_configdirs="$target_configdirs target-winsup"
3844 *-*-cygwin*)
3845 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3846 noconfigdirs="$noconfigdirs target-libgloss"
3847 # always build newlib if winsup directory is present.
3848 if test -d "$srcdir/winsup/cygwin"; then
3849 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3850 elif test -d "$srcdir/newlib"; then
3851 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3854 i[3456789]86-*-pe)
3855 noconfigdirs="$noconfigdirs target-libgloss"
3857 i[3456789]86-*-sco3.2v5*)
3858 # The linker does not yet know about weak symbols in COFF,
3859 # and is not configured to handle mixed ELF and COFF.
3860 noconfigdirs="$noconfigdirs ld target-libgloss"
3862 i[3456789]86-*-sco*)
3863 noconfigdirs="$noconfigdirs gprof target-libgloss"
3865 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3866 noconfigdirs="$noconfigdirs target-libgloss"
3868 i[3456789]86-*-sysv4*)
3869 noconfigdirs="$noconfigdirs target-libgloss"
3871 i[3456789]86-*-beos*)
3872 noconfigdirs="$noconfigdirs gdb"
3874 i[3456789]86-*-rdos*)
3875 noconfigdirs="$noconfigdirs gdb"
3877 mmix-*-*)
3878 noconfigdirs="$noconfigdirs gdb"
3880 mt-*-*)
3881 noconfigdirs="$noconfigdirs sim"
3883 powerpc-*-aix*)
3884 # copied from rs6000-*-* entry
3885 noconfigdirs="$noconfigdirs gprof"
3887 powerpc*-*-winnt* | powerpc*-*-pe*)
3888 target_configdirs="$target_configdirs target-winsup"
3889 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3890 # always build newlib.
3891 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3893 # This is temporary until we can link against shared libraries
3894 powerpcle-*-solaris*)
3895 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3897 powerpc-*-beos*)
3898 noconfigdirs="$noconfigdirs gdb"
3900 rs6000-*-lynxos*)
3901 noconfigdirs="$noconfigdirs gprof"
3903 rs6000-*-aix*)
3904 noconfigdirs="$noconfigdirs gprof"
3906 rs6000-*-*)
3907 noconfigdirs="$noconfigdirs gprof"
3909 m68k-apollo-*)
3910 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3912 microblaze*)
3913 noconfigdirs="$noconfigdirs gprof"
3915 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3916 if test x$with_newlib = xyes; then
3917 noconfigdirs="$noconfigdirs gprof"
3920 mips*-*-irix5*)
3921 noconfigdirs="$noconfigdirs gprof target-libgloss"
3923 mips*-*-irix6*)
3924 noconfigdirs="$noconfigdirs gprof target-libgloss"
3926 mips*-*-bsd*)
3927 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3929 mips*-*-linux*)
3931 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3932 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3933 noconfigdirs="$noconfigdirs ld gas gprof"
3935 mips*-*-*)
3936 noconfigdirs="$noconfigdirs gprof"
3938 nds32*-*-*)
3939 noconfigdirs="$noconfigdirs gdb"
3941 nvptx*-*-*)
3942 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3944 or1k*-*-*)
3945 noconfigdirs="$noconfigdirs gdb"
3947 sh-*-*)
3948 case "${target}" in
3949 sh*-*-elf)
3952 noconfigdirs="$noconfigdirs target-libgloss" ;;
3953 esac
3955 sparc-*-sunos4*)
3956 if test x${is_cross_compiler} = xno ; then
3957 use_gnu_ld=no
3960 tic6x-*-*)
3961 noconfigdirs="$noconfigdirs sim"
3963 tilepro*-*-* | tilegx*-*-*)
3964 noconfigdirs="$noconfigdirs sim"
3966 v810-*-*)
3967 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3969 vax-*-*)
3970 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3972 esac
3974 # If we aren't building newlib, then don't build libgloss, since libgloss
3975 # depends upon some newlib header files.
3976 case "${noconfigdirs}" in
3977 *target-libgloss*) ;;
3978 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3979 esac
3981 # Work in distributions that contain no compiler tools, like Autoconf.
3982 host_makefile_frag=/dev/null
3983 if test -d ${srcdir}/config ; then
3984 case "${host}" in
3985 i[3456789]86-*-msdosdjgpp*)
3986 host_makefile_frag="config/mh-djgpp"
3988 *-cygwin*)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3991 $as_echo_n "checking to see if cat works as expected... " >&6; }
3992 echo a >cygwin-cat-check
3993 if test `cat cygwin-cat-check` = a ; then
3994 rm cygwin-cat-check
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3996 $as_echo "yes" >&6; }
3997 else
3998 rm cygwin-cat-check
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 as_fn_error "The cat command does not ignore carriage return characters.
4002 Please either mount the build directory in binary mode or run the following
4003 commands before running any configure script:
4004 set -o igncr
4005 export SHELLOPTS
4006 " "$LINENO" 5
4009 host_makefile_frag="config/mh-cygwin"
4011 *-mingw*)
4012 host_makefile_frag="config/mh-mingw"
4014 alpha*-linux*)
4015 host_makefile_frag="config/mh-alpha-linux"
4017 hppa*-hp-hpux10*)
4018 host_makefile_frag="config/mh-pa-hpux10"
4020 hppa*-hp-hpux*)
4021 host_makefile_frag="config/mh-pa"
4023 hppa*-*)
4024 host_makefile_frag="config/mh-pa"
4026 *-*-darwin*)
4027 host_makefile_frag="config/mh-darwin"
4029 powerpc-*-aix*)
4030 host_makefile_frag="config/mh-ppc-aix"
4032 rs6000-*-aix*)
4033 host_makefile_frag="config/mh-ppc-aix"
4035 esac
4038 if test "${build}" != "${host}" ; then
4039 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4040 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4041 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4042 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4043 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4044 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4045 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4046 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4047 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4048 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4049 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4050 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4051 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4052 else
4053 AR_FOR_BUILD="\$(AR)"
4054 AS_FOR_BUILD="\$(AS)"
4055 CC_FOR_BUILD="\$(CC)"
4056 CXX_FOR_BUILD="\$(CXX)"
4057 GCJ_FOR_BUILD="\$(GCJ)"
4058 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4059 GOC_FOR_BUILD="\$(GOC)"
4060 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4061 LD_FOR_BUILD="\$(LD)"
4062 NM_FOR_BUILD="\$(NM)"
4063 RANLIB_FOR_BUILD="\$(RANLIB)"
4064 WINDRES_FOR_BUILD="\$(WINDRES)"
4065 WINDMC_FOR_BUILD="\$(WINDMC)"
4068 ac_ext=c
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if test "${ac_cv_prog_CC+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if test -n "$CC"; then
4082 ac_cv_prog_CC="$CC" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 break 2
4095 done
4096 done
4097 IFS=$as_save_IFS
4101 CC=$ac_cv_prog_CC
4102 if test -n "$CC"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4104 $as_echo "$CC" >&6; }
4105 else
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4112 if test -z "$ac_cv_prog_CC"; then
4113 ac_ct_CC=$CC
4114 # Extract the first word of "gcc", so it can be a program name with args.
4115 set dummy gcc; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -n "$ac_ct_CC"; then
4122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_ac_ct_CC="gcc"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4142 if test -n "$ac_ct_CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4144 $as_echo "$ac_ct_CC" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4150 if test "x$ac_ct_CC" = x; then
4151 CC=""
4152 else
4153 case $cross_compiling:$ac_tool_warned in
4154 yes:)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned=yes ;;
4158 esac
4159 CC=$ac_ct_CC
4161 else
4162 CC="$ac_cv_prog_CC"
4165 if test -z "$CC"; then
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4168 set dummy ${ac_tool_prefix}cc; ac_word=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if test "${ac_cv_prog_CC+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC="$CC" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_prog_CC="${ac_tool_prefix}cc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4190 IFS=$as_save_IFS
4194 CC=$ac_cv_prog_CC
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4198 else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4206 if test -z "$CC"; then
4207 # Extract the first word of "cc", so it can be a program name with args.
4208 set dummy cc; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_CC+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC="$CC" # Let the user override the test.
4216 else
4217 ac_prog_rejected=no
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4226 ac_prog_rejected=yes
4227 continue
4229 ac_cv_prog_CC="cc"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4233 done
4234 done
4235 IFS=$as_save_IFS
4237 if test $ac_prog_rejected = yes; then
4238 # We found a bogon in the path, so make sure we never use it.
4239 set dummy $ac_cv_prog_CC
4240 shift
4241 if test $# != 0; then
4242 # We chose a different compiler from the bogus one.
4243 # However, it has the same basename, so the bogon will be chosen
4244 # first if we set CC to just the basename; use the full file name.
4245 shift
4246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4251 CC=$ac_cv_prog_CC
4252 if test -n "$CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 $as_echo "$CC" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4262 if test -z "$CC"; then
4263 if test -n "$ac_tool_prefix"; then
4264 for ac_prog in cl.exe
4266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if test "${ac_cv_prog_CC+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC="$CC" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4287 done
4288 done
4289 IFS=$as_save_IFS
4293 CC=$ac_cv_prog_CC
4294 if test -n "$CC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296 $as_echo "$CC" >&6; }
4297 else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4303 test -n "$CC" && break
4304 done
4306 if test -z "$CC"; then
4307 ac_ct_CC=$CC
4308 for ac_prog in cl.exe
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311 set dummy $ac_prog; ac_word=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -n "$ac_ct_CC"; then
4318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4327 ac_cv_prog_ac_ct_CC="$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4331 done
4332 done
4333 IFS=$as_save_IFS
4337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4338 if test -n "$ac_ct_CC"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4340 $as_echo "$ac_ct_CC" >&6; }
4341 else
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 test -n "$ac_ct_CC" && break
4348 done
4350 if test "x$ac_ct_CC" = x; then
4351 CC=""
4352 else
4353 case $cross_compiling:$ac_tool_warned in
4354 yes:)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357 ac_tool_warned=yes ;;
4358 esac
4359 CC=$ac_ct_CC
4366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error "no acceptable C compiler found in \$PATH
4369 See \`config.log' for more details." "$LINENO" 5; }
4371 # Provide some information about the compiler.
4372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4373 set X $ac_compile
4374 ac_compiler=$2
4375 for ac_option in --version -v -V -qversion; do
4376 { { ac_try="$ac_compiler $ac_option >&5"
4377 case "(($ac_try" in
4378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4380 esac
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4384 ac_status=$?
4385 if test -s conftest.err; then
4386 sed '10a\
4387 ... rest of stderr output deleted ...
4388 10q' conftest.err >conftest.er1
4389 cat conftest.er1 >&5
4390 rm -f conftest.er1 conftest.err
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }
4394 done
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 ac_clean_files_save=$ac_clean_files
4408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4409 # Try to create an executable without -o first, disregard a.out.
4410 # It will help us diagnose broken compilers, and finding out an intuition
4411 # of exeext.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4413 $as_echo_n "checking for C compiler default output file name... " >&6; }
4414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4416 # The possible output files:
4417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4419 ac_rmfiles=
4420 for ac_file in $ac_files
4422 case $ac_file in
4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4425 esac
4426 done
4427 rm -f $ac_rmfiles
4429 if { { ac_try="$ac_link_default"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_link_default") 2>&5
4437 ac_status=$?
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
4440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4443 # so that the user can short-circuit this test for compilers unknown to
4444 # Autoconf.
4445 for ac_file in $ac_files ''
4447 test -f "$ac_file" || continue
4448 case $ac_file in
4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4451 [ab].out )
4452 # We found the default executable, but exeext='' is most
4453 # certainly right.
4454 break;;
4455 *.* )
4456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4457 then :; else
4458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4460 # We set ac_cv_exeext here because the later test for it is not
4461 # safe: cross compilers may not add the suffix if given an `-o'
4462 # argument, so we may need to know it at that point already.
4463 # Even if this section looks crufty: it has the advantage of
4464 # actually working.
4465 break;;
4467 break;;
4468 esac
4469 done
4470 test "$ac_cv_exeext" = no && ac_cv_exeext=
4472 else
4473 ac_file=''
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4476 $as_echo "$ac_file" >&6; }
4477 if test -z "$ac_file"; then :
4478 $as_echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 { as_fn_set_status 77
4484 as_fn_error "C compiler cannot create executables
4485 See \`config.log' for more details." "$LINENO" 5; }; }
4487 ac_exeext=$ac_cv_exeext
4489 # Check that the compiler produces executables we can run. If not, either
4490 # the compiler is broken, or we cross compile.
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4492 $as_echo_n "checking whether the C compiler works... " >&6; }
4493 # If not cross compiling, check that we can run a simple program.
4494 if test "$cross_compiling" != yes; then
4495 if { ac_try='./$ac_file'
4496 { { case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 $as_echo "$ac_try_echo"; } >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }; }; then
4506 cross_compiling=no
4507 else
4508 if test "$cross_compiling" = maybe; then
4509 cross_compiling=yes
4510 else
4511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error "cannot run C compiled programs.
4514 If you meant to cross compile, use \`--host'.
4515 See \`config.log' for more details." "$LINENO" 5; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4520 $as_echo "yes" >&6; }
4522 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4523 ac_clean_files=$ac_clean_files_save
4524 # Check that the compiler produces executables we can run. If not, either
4525 # the compiler is broken, or we cross compile.
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4527 $as_echo_n "checking whether we are cross compiling... " >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4529 $as_echo "$cross_compiling" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4532 $as_echo_n "checking for suffix of executables... " >&6; }
4533 if { { ac_try="$ac_link"
4534 case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 $as_echo "$ac_try_echo"; } >&5
4540 (eval "$ac_link") 2>&5
4541 ac_status=$?
4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }; then :
4544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4546 # work properly (i.e., refer to `conftest.exe'), while it won't with
4547 # `rm'.
4548 for ac_file in conftest.exe conftest conftest.*; do
4549 test -f "$ac_file" || continue
4550 case $ac_file in
4551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4553 break;;
4554 * ) break;;
4555 esac
4556 done
4557 else
4558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error "cannot compute suffix of executables: cannot compile and link
4561 See \`config.log' for more details." "$LINENO" 5; }
4563 rm -f conftest$ac_cv_exeext
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4565 $as_echo "$ac_cv_exeext" >&6; }
4567 rm -f conftest.$ac_ext
4568 EXEEXT=$ac_cv_exeext
4569 ac_exeext=$EXEEXT
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4571 $as_echo_n "checking for suffix of object files... " >&6; }
4572 if test "${ac_cv_objext+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4579 main ()
4583 return 0;
4585 _ACEOF
4586 rm -f conftest.o conftest.obj
4587 if { { ac_try="$ac_compile"
4588 case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591 esac
4592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4593 $as_echo "$ac_try_echo"; } >&5
4594 (eval "$ac_compile") 2>&5
4595 ac_status=$?
4596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4597 test $ac_status = 0; }; then :
4598 for ac_file in conftest.o conftest.obj conftest.*; do
4599 test -f "$ac_file" || continue;
4600 case $ac_file in
4601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4603 break;;
4604 esac
4605 done
4606 else
4607 $as_echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4612 as_fn_error "cannot compute suffix of object files: cannot compile
4613 See \`config.log' for more details." "$LINENO" 5; }
4615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4618 $as_echo "$ac_cv_objext" >&6; }
4619 OBJEXT=$ac_cv_objext
4620 ac_objext=$OBJEXT
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4622 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4623 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4630 main ()
4632 #ifndef __GNUC__
4633 choke me
4634 #endif
4637 return 0;
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641 ac_compiler_gnu=yes
4642 else
4643 ac_compiler_gnu=no
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4650 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4651 if test $ac_compiler_gnu = yes; then
4652 GCC=yes
4653 else
4654 GCC=
4656 ac_test_CFLAGS=${CFLAGS+set}
4657 ac_save_CFLAGS=$CFLAGS
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4659 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4660 if test "${ac_cv_prog_cc_g+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 ac_save_c_werror_flag=$ac_c_werror_flag
4664 ac_c_werror_flag=yes
4665 ac_cv_prog_cc_g=no
4666 CFLAGS="-g"
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4671 main ()
4675 return 0;
4677 _ACEOF
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 ac_cv_prog_cc_g=yes
4680 else
4681 CFLAGS=""
4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4686 main ()
4690 return 0;
4692 _ACEOF
4693 if ac_fn_c_try_compile "$LINENO"; then :
4695 else
4696 ac_c_werror_flag=$ac_save_c_werror_flag
4697 CFLAGS="-g"
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 main ()
4706 return 0;
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710 ac_cv_prog_cc_g=yes
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 ac_c_werror_flag=$ac_save_c_werror_flag
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4720 $as_echo "$ac_cv_prog_cc_g" >&6; }
4721 if test "$ac_test_CFLAGS" = set; then
4722 CFLAGS=$ac_save_CFLAGS
4723 elif test $ac_cv_prog_cc_g = yes; then
4724 if test "$GCC" = yes; then
4725 CFLAGS="-g -O2"
4726 else
4727 CFLAGS="-g"
4729 else
4730 if test "$GCC" = yes; then
4731 CFLAGS="-O2"
4732 else
4733 CFLAGS=
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4737 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4738 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 ac_cv_prog_cc_c89=no
4742 ac_save_CC=$CC
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <stdarg.h>
4746 #include <stdio.h>
4747 #include <sys/types.h>
4748 #include <sys/stat.h>
4749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4750 struct buf { int x; };
4751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4752 static char *e (p, i)
4753 char **p;
4754 int i;
4756 return p[i];
4758 static char *f (char * (*g) (char **, int), char **p, ...)
4760 char *s;
4761 va_list v;
4762 va_start (v,p);
4763 s = g (p, va_arg (v,int));
4764 va_end (v);
4765 return s;
4768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4769 function prototypes and stuff, but not '\xHH' hex character constants.
4770 These don't provoke an error unfortunately, instead are silently treated
4771 as 'x'. The following induces an error, until -std is added to get
4772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4773 array size at least. It's necessary to write '\x00'==0 to get something
4774 that's true only with -std. */
4775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4778 inside strings and character constants. */
4779 #define FOO(x) 'x'
4780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4782 int test (int i, double x);
4783 struct s1 {int (*f) (int a);};
4784 struct s2 {int (*f) (double a);};
4785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4786 int argc;
4787 char **argv;
4789 main ()
4791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4793 return 0;
4795 _ACEOF
4796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4799 CC="$ac_save_CC $ac_arg"
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 ac_cv_prog_cc_c89=$ac_arg
4803 rm -f core conftest.err conftest.$ac_objext
4804 test "x$ac_cv_prog_cc_c89" != "xno" && break
4805 done
4806 rm -f conftest.$ac_ext
4807 CC=$ac_save_CC
4810 # AC_CACHE_VAL
4811 case "x$ac_cv_prog_cc_c89" in
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4814 $as_echo "none needed" >&6; } ;;
4815 xno)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4817 $as_echo "unsupported" >&6; } ;;
4819 CC="$CC $ac_cv_prog_cc_c89"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4821 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4822 esac
4823 if test "x$ac_cv_prog_cc_c89" != xno; then :
4827 ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833 ac_ext=cpp
4834 ac_cpp='$CXXCPP $CPPFLAGS'
4835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4838 if test -z "$CXX"; then
4839 if test -n "$CCC"; then
4840 CXX=$CCC
4841 else
4842 if test -n "$ac_tool_prefix"; then
4843 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_CXX+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$CXX"; then
4853 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4866 done
4867 done
4868 IFS=$as_save_IFS
4872 CXX=$ac_cv_prog_CXX
4873 if test -n "$CXX"; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4875 $as_echo "$CXX" >&6; }
4876 else
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878 $as_echo "no" >&6; }
4882 test -n "$CXX" && break
4883 done
4885 if test -z "$CXX"; then
4886 ac_ct_CXX=$CXX
4887 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4889 # Extract the first word of "$ac_prog", so it can be a program name with args.
4890 set dummy $ac_prog; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$ac_ct_CXX"; then
4897 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_CXX="$ac_prog"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4917 if test -n "$ac_ct_CXX"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4919 $as_echo "$ac_ct_CXX" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4926 test -n "$ac_ct_CXX" && break
4927 done
4929 if test "x$ac_ct_CXX" = x; then
4930 CXX="g++"
4931 else
4932 case $cross_compiling:$ac_tool_warned in
4933 yes:)
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4936 ac_tool_warned=yes ;;
4937 esac
4938 CXX=$ac_ct_CXX
4944 # Provide some information about the compiler.
4945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4946 set X $ac_compile
4947 ac_compiler=$2
4948 for ac_option in --version -v -V -qversion; do
4949 { { ac_try="$ac_compiler $ac_option >&5"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955 $as_echo "$ac_try_echo"; } >&5
4956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4957 ac_status=$?
4958 if test -s conftest.err; then
4959 sed '10a\
4960 ... rest of stderr output deleted ...
4961 10q' conftest.err >conftest.er1
4962 cat conftest.er1 >&5
4963 rm -f conftest.er1 conftest.err
4965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966 test $ac_status = 0; }
4967 done
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4970 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4971 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4978 main ()
4980 #ifndef __GNUC__
4981 choke me
4982 #endif
4985 return 0;
4987 _ACEOF
4988 if ac_fn_cxx_try_compile "$LINENO"; then :
4989 ac_compiler_gnu=yes
4990 else
4991 ac_compiler_gnu=no
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4998 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4999 if test $ac_compiler_gnu = yes; then
5000 GXX=yes
5001 else
5002 GXX=
5004 ac_test_CXXFLAGS=${CXXFLAGS+set}
5005 ac_save_CXXFLAGS=$CXXFLAGS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5007 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5008 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5012 ac_cxx_werror_flag=yes
5013 ac_cv_prog_cxx_g=no
5014 CXXFLAGS="-g"
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5019 main ()
5023 return 0;
5025 _ACEOF
5026 if ac_fn_cxx_try_compile "$LINENO"; then :
5027 ac_cv_prog_cxx_g=yes
5028 else
5029 CXXFLAGS=""
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5034 main ()
5038 return 0;
5040 _ACEOF
5041 if ac_fn_cxx_try_compile "$LINENO"; then :
5043 else
5044 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5045 CXXFLAGS="-g"
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5050 main ()
5054 return 0;
5056 _ACEOF
5057 if ac_fn_cxx_try_compile "$LINENO"; then :
5058 ac_cv_prog_cxx_g=yes
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5068 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5069 if test "$ac_test_CXXFLAGS" = set; then
5070 CXXFLAGS=$ac_save_CXXFLAGS
5071 elif test $ac_cv_prog_cxx_g = yes; then
5072 if test "$GXX" = yes; then
5073 CXXFLAGS="-g -O2"
5074 else
5075 CXXFLAGS="-g"
5077 else
5078 if test "$GXX" = yes; then
5079 CXXFLAGS="-O2"
5080 else
5081 CXXFLAGS=
5084 ac_ext=c
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091 # We must set the default linker to the linker used by gcc for the correct
5092 # operation of libtool. If LD is not defined and we are using gcc, try to
5093 # set the LD default to the ld used by gcc.
5094 if test -z "$LD"; then
5095 if test "$GCC" = yes; then
5096 case $build in
5097 *-*-mingw*)
5098 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5100 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5101 esac
5102 case $gcc_prog_ld in
5103 # Accept absolute paths.
5104 [\\/]* | [A-Za-z]:[\\/]*)
5105 LD="$gcc_prog_ld" ;;
5106 esac
5110 # Check whether -static-libstdc++ -static-libgcc is supported.
5111 have_static_libs=no
5112 if test "$GCC" = yes; then
5113 saved_LDFLAGS="$LDFLAGS"
5115 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5117 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5118 ac_ext=cpp
5119 ac_cpp='$CXXCPP $CPPFLAGS'
5120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5128 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5129 #error -static-libstdc++ not implemented
5130 #endif
5131 int main() {}
5132 _ACEOF
5133 if ac_fn_cxx_try_link "$LINENO"; then :
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5135 $as_echo "yes" >&6; }; have_static_libs=yes
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5140 rm -f core conftest.err conftest.$ac_objext \
5141 conftest$ac_exeext conftest.$ac_ext
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 LDFLAGS="$saved_LDFLAGS"
5155 if test -n "$ac_tool_prefix"; then
5156 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5157 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$GNATBIND"; then
5164 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 GNATBIND=$ac_cv_prog_GNATBIND
5184 if test -n "$GNATBIND"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5186 $as_echo "$GNATBIND" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5194 if test -z "$ac_cv_prog_GNATBIND"; then
5195 ac_ct_GNATBIND=$GNATBIND
5196 # Extract the first word of "gnatbind", so it can be a program name with args.
5197 set dummy gnatbind; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test -n "$ac_ct_GNATBIND"; then
5204 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5205 else
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5217 done
5218 done
5219 IFS=$as_save_IFS
5223 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5224 if test -n "$ac_ct_GNATBIND"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5226 $as_echo "$ac_ct_GNATBIND" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5232 if test "x$ac_ct_GNATBIND" = x; then
5233 GNATBIND="no"
5234 else
5235 case $cross_compiling:$ac_tool_warned in
5236 yes:)
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5240 esac
5241 GNATBIND=$ac_ct_GNATBIND
5243 else
5244 GNATBIND="$ac_cv_prog_GNATBIND"
5247 if test -n "$ac_tool_prefix"; then
5248 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5249 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -n "$GNATMAKE"; then
5256 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5257 else
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5275 GNATMAKE=$ac_cv_prog_GNATMAKE
5276 if test -n "$GNATMAKE"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5278 $as_echo "$GNATMAKE" >&6; }
5279 else
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5286 if test -z "$ac_cv_prog_GNATMAKE"; then
5287 ac_ct_GNATMAKE=$GNATMAKE
5288 # Extract the first word of "gnatmake", so it can be a program name with args.
5289 set dummy gnatmake; ac_word=$2
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$ac_ct_GNATMAKE"; then
5296 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5309 done
5310 done
5311 IFS=$as_save_IFS
5315 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5316 if test -n "$ac_ct_GNATMAKE"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5318 $as_echo "$ac_ct_GNATMAKE" >&6; }
5319 else
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5324 if test "x$ac_ct_GNATMAKE" = x; then
5325 GNATMAKE="no"
5326 else
5327 case $cross_compiling:$ac_tool_warned in
5328 yes:)
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5331 ac_tool_warned=yes ;;
5332 esac
5333 GNATMAKE=$ac_ct_GNATMAKE
5335 else
5336 GNATMAKE="$ac_cv_prog_GNATMAKE"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5340 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5341 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 cat >conftest.adb <<EOF
5345 procedure conftest is begin null; end conftest;
5347 acx_cv_cc_gcc_supports_ada=no
5348 # There is a bug in old released versions of GCC which causes the
5349 # driver to exit successfully when the appropriate language module
5350 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5351 # Therefore we must check for the error message as well as an
5352 # unsuccessful exit.
5353 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5354 # given a .adb file, but produce no object file. So we must check
5355 # if an object file was really produced to guard against this.
5356 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5357 if test x"$errors" = x && test -f conftest.$ac_objext; then
5358 acx_cv_cc_gcc_supports_ada=yes
5360 rm -f conftest.*
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5363 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5365 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5366 have_gnat=yes
5367 else
5368 have_gnat=no
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5372 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5373 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 echo abfoo >t1
5377 echo cdfoo >t2
5378 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5379 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5380 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5382 else
5383 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5386 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5387 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5389 else
5390 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5393 rm t1 t2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5397 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5398 do_compare="$gcc_cv_prog_cmp_skip"
5402 # Check whether --enable-bootstrap was given.
5403 if test "${enable_bootstrap+set}" = set; then :
5404 enableval=$enable_bootstrap;
5405 else
5406 enable_bootstrap=default
5410 # Issue errors and warnings for invalid/strange bootstrap combinations.
5411 if test -r $srcdir/gcc/configure; then
5412 have_compiler=yes
5413 else
5414 have_compiler=no
5417 case "$have_compiler:$host:$target:$enable_bootstrap" in
5418 *:*:*:no) ;;
5420 # Default behavior. Enable bootstrap if we have a compiler
5421 # and we are in a native configuration.
5422 yes:$build:$build:default)
5423 enable_bootstrap=yes ;;
5425 *:*:*:default)
5426 enable_bootstrap=no ;;
5428 # We have a compiler and we are in a native configuration, bootstrap is ok
5429 yes:$build:$build:yes)
5432 # Other configurations, but we have a compiler. Assume the user knows
5433 # what he's doing.
5434 yes:*:*:yes)
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5436 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5439 # No compiler: if they passed --enable-bootstrap explicitly, fail
5440 no:*:*:yes)
5441 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5443 # Fail if wrong command line
5445 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5447 esac
5449 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5450 # C++98 compiler can still start the bootstrap.
5451 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5452 CXX="$CXX -std=gnu++98"
5455 # Used for setting $lt_cv_objdir
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5457 $as_echo_n "checking for objdir... " >&6; }
5458 if test "${lt_cv_objdir+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 rm -f .libs 2>/dev/null
5462 mkdir .libs 2>/dev/null
5463 if test -d .libs; then
5464 lt_cv_objdir=.libs
5465 else
5466 # MS-DOS does not allow filenames that begin with a dot.
5467 lt_cv_objdir=_libs
5469 rmdir .libs 2>/dev/null
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5472 $as_echo "$lt_cv_objdir" >&6; }
5473 objdir=$lt_cv_objdir
5479 cat >>confdefs.h <<_ACEOF
5480 #define LT_OBJDIR "$lt_cv_objdir/"
5481 _ACEOF
5485 # Check for GMP, MPFR and MPC
5486 gmplibs="-lmpc -lmpfr -lgmp"
5487 gmpinc=
5488 have_gmp=no
5490 # Specify a location for mpc
5491 # check for this first so it ends up on the link line before mpfr.
5493 # Check whether --with-mpc was given.
5494 if test "${with_mpc+set}" = set; then :
5495 withval=$with_mpc;
5499 # Check whether --with-mpc-include was given.
5500 if test "${with_mpc_include+set}" = set; then :
5501 withval=$with_mpc_include;
5505 # Check whether --with-mpc-lib was given.
5506 if test "${with_mpc_lib+set}" = set; then :
5507 withval=$with_mpc_lib;
5511 if test "x$with_mpc" != x; then
5512 gmplibs="-L$with_mpc/lib $gmplibs"
5513 gmpinc="-I$with_mpc/include $gmpinc"
5515 if test "x$with_mpc_include" != x; then
5516 gmpinc="-I$with_mpc_include $gmpinc"
5518 if test "x$with_mpc_lib" != x; then
5519 gmplibs="-L$with_mpc_lib $gmplibs"
5521 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5522 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5523 gmpinc='-I$$s/mpc/src '"$gmpinc"
5524 # Do not test the mpc version. Assume that it is sufficient, since
5525 # it is in the source tree, and the library has not been built yet
5526 # but it would be included on the link line in the version check below
5527 # hence making the test fail.
5528 have_gmp=yes
5531 # Specify a location for mpfr
5532 # check for this first so it ends up on the link line before gmp.
5534 # Check whether --with-mpfr-dir was given.
5535 if test "${with_mpfr_dir+set}" = set; then :
5536 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5537 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5542 # Check whether --with-mpfr was given.
5543 if test "${with_mpfr+set}" = set; then :
5544 withval=$with_mpfr;
5548 # Check whether --with-mpfr-include was given.
5549 if test "${with_mpfr_include+set}" = set; then :
5550 withval=$with_mpfr_include;
5554 # Check whether --with-mpfr-lib was given.
5555 if test "${with_mpfr_lib+set}" = set; then :
5556 withval=$with_mpfr_lib;
5560 if test "x$with_mpfr" != x; then
5561 gmplibs="-L$with_mpfr/lib $gmplibs"
5562 gmpinc="-I$with_mpfr/include $gmpinc"
5564 if test "x$with_mpfr_include" != x; then
5565 gmpinc="-I$with_mpfr_include $gmpinc"
5567 if test "x$with_mpfr_lib" != x; then
5568 gmplibs="-L$with_mpfr_lib $gmplibs"
5570 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5571 # MPFR v3.1.0 moved the sources into a src sub-directory.
5572 if test -d ${srcdir}/mpfr/src; then
5573 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5574 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5575 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5576 else
5577 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5578 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5579 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5581 # Do not test the mpfr version. Assume that it is sufficient, since
5582 # it is in the source tree, and the library has not been built yet
5583 # but it would be included on the link line in the version check below
5584 # hence making the test fail.
5585 have_gmp=yes
5588 # Specify a location for gmp
5590 # Check whether --with-gmp-dir was given.
5591 if test "${with_gmp_dir+set}" = set; then :
5592 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5593 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5598 # Check whether --with-gmp was given.
5599 if test "${with_gmp+set}" = set; then :
5600 withval=$with_gmp;
5604 # Check whether --with-gmp-include was given.
5605 if test "${with_gmp_include+set}" = set; then :
5606 withval=$with_gmp_include;
5610 # Check whether --with-gmp-lib was given.
5611 if test "${with_gmp_lib+set}" = set; then :
5612 withval=$with_gmp_lib;
5617 if test "x$with_gmp" != x; then
5618 gmplibs="-L$with_gmp/lib $gmplibs"
5619 gmpinc="-I$with_gmp/include $gmpinc"
5621 if test "x$with_gmp_include" != x; then
5622 gmpinc="-I$with_gmp_include $gmpinc"
5624 if test "x$with_gmp_lib" != x; then
5625 gmplibs="-L$with_gmp_lib $gmplibs"
5627 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5628 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5629 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5630 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5631 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5632 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5633 # Do not test the gmp version. Assume that it is sufficient, since
5634 # it is in the source tree, and the library has not been built yet
5635 # but it would be included on the link line in the version check below
5636 # hence making the test fail.
5637 have_gmp=yes
5640 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5641 have_gmp=yes
5642 saved_CFLAGS="$CFLAGS"
5643 CFLAGS="$CFLAGS $gmpinc"
5644 # Check for the recommended and required versions of GMP.
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5646 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 #include "gmp.h"
5652 main ()
5655 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5656 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5657 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5658 choke me
5659 #endif
5662 return 0;
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <gmp.h>
5670 main ()
5673 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5674 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5675 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5676 choke me
5677 #endif
5680 return 0;
5682 _ACEOF
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5685 $as_echo "yes" >&6; }
5686 else
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5688 $as_echo "buggy but acceptable" >&6; }
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }; have_gmp=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 # If we have GMP, check the MPFR version.
5698 if test x"$have_gmp" = xyes; then
5699 # Check for the recommended and required versions of MPFR.
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5701 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <gmp.h>
5705 #include <mpfr.h>
5707 main ()
5710 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5711 choke me
5712 #endif
5715 return 0;
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 #include <gmp.h>
5722 #include <mpfr.h>
5724 main ()
5727 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5728 choke me
5729 #endif
5732 return 0;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737 $as_echo "yes" >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5740 $as_echo "buggy but acceptable" >&6; }
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }; have_gmp=no
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 # Check for the MPC header version.
5751 if test x"$have_gmp" = xyes ; then
5752 # Check for the recommended and required versions of MPC.
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5754 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 #include <mpc.h>
5759 main ()
5762 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5763 choke me
5764 #endif
5767 return 0;
5769 _ACEOF
5770 if ac_fn_c_try_compile "$LINENO"; then :
5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773 #include <mpc.h>
5775 main ()
5778 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5779 choke me
5780 #endif
5783 return 0;
5785 _ACEOF
5786 if ac_fn_c_try_compile "$LINENO"; then :
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5788 $as_echo "yes" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5791 $as_echo "buggy but acceptable" >&6; }
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }; have_gmp=no
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 # Now check the MPFR library.
5802 if test x"$have_gmp" = xyes; then
5803 saved_LIBS="$LIBS"
5804 LIBS="$LIBS $gmplibs"
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5806 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #include <mpc.h>
5811 main ()
5814 mpfr_t n;
5815 mpfr_t x;
5816 mpc_t c;
5817 int t;
5818 mpfr_init (n);
5819 mpfr_init (x);
5820 mpfr_atan2 (n, n, x, GMP_RNDN);
5821 mpfr_erfc (n, x, GMP_RNDN);
5822 mpfr_subnormalize (x, t, GMP_RNDN);
5823 mpfr_clear(n);
5824 mpfr_clear(x);
5825 mpc_init2 (c, 53);
5826 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5827 mpc_cosh (c, c, MPC_RNDNN);
5828 mpc_pow (c, c, c, MPC_RNDNN);
5829 mpc_acosh (c, c, MPC_RNDNN);
5830 mpc_clear (c);
5833 return 0;
5835 _ACEOF
5836 if ac_fn_c_try_link "$LINENO"; then :
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5838 $as_echo "yes" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }; have_gmp=no
5843 rm -f core conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
5845 LIBS="$saved_LIBS"
5848 CFLAGS="$saved_CFLAGS"
5850 # The library versions listed in the error message below should match
5851 # the HARD-minimums enforced above.
5852 if test x$have_gmp != xyes; then
5853 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5854 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5855 their locations. Source code for these libraries can be found at
5856 their respective hosting sites as well as at
5857 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5858 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5859 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5860 make sure that you have installed both the libraries and the header
5861 files. They may be located in separate packages." "$LINENO" 5
5865 # Flags needed for both GMP, MPFR and/or MPC.
5873 # Libraries to use for stage1 or when not bootstrapping.
5875 # Check whether --with-stage1-libs was given.
5876 if test "${with_stage1_libs+set}" = set; then :
5877 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5878 stage1_libs=
5879 else
5880 stage1_libs=$withval
5882 else
5883 stage1_libs=
5888 # Linker flags to use for stage1 or when not bootstrapping.
5890 # Check whether --with-stage1-ldflags was given.
5891 if test "${with_stage1_ldflags+set}" = set; then :
5892 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5893 stage1_ldflags=
5894 else
5895 stage1_ldflags=$withval
5897 else
5898 stage1_ldflags=
5899 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5900 # if supported. But if the user explicitly specified the libraries to use,
5901 # trust that they are doing what they want.
5902 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5903 stage1_ldflags="-static-libstdc++ -static-libgcc"
5909 # Libraries to use for stage2 and later builds.
5911 # Check whether --with-boot-libs was given.
5912 if test "${with_boot_libs+set}" = set; then :
5913 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5914 poststage1_libs=
5915 else
5916 poststage1_libs=$withval
5918 else
5919 poststage1_libs=
5924 # Linker flags to use for stage2 and later builds.
5926 # Check whether --with-boot-ldflags was given.
5927 if test "${with_boot_ldflags+set}" = set; then :
5928 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5929 poststage1_ldflags=
5930 else
5931 poststage1_ldflags=$withval
5933 else
5934 poststage1_ldflags=
5935 # In stages 2 and 3, default to linking libstdc++ and libgcc
5936 # statically. But if the user explicitly specified the libraries to
5937 # use, trust that they are doing what they want.
5938 if test "$poststage1_libs" = ""; then
5939 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5945 # GCC GRAPHITE dependency isl.
5946 # Basic setup is inlined here, actual checks are in config/isl.m4
5949 # Check whether --with-isl was given.
5950 if test "${with_isl+set}" = set; then :
5951 withval=$with_isl;
5955 # Treat --without-isl as a request to disable
5956 # GRAPHITE support and skip all following checks.
5957 if test "x$with_isl" != "xno"; then
5958 # Check for isl
5961 # Check whether --with-isl-include was given.
5962 if test "${with_isl_include+set}" = set; then :
5963 withval=$with_isl_include;
5967 # Check whether --with-isl-lib was given.
5968 if test "${with_isl_lib+set}" = set; then :
5969 withval=$with_isl_lib;
5973 # Check whether --enable-isl-version-check was given.
5974 if test "${enable_isl_version_check+set}" = set; then :
5975 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5976 else
5977 ENABLE_ISL_CHECK=yes
5981 # Initialize isllibs and islinc.
5982 case $with_isl in
5984 isllibs=
5985 islinc=
5987 "" | yes)
5990 isllibs="-L$with_isl/lib"
5991 islinc="-I$with_isl/include"
5993 esac
5994 if test "x${with_isl_include}" != x ; then
5995 islinc="-I$with_isl_include"
5997 if test "x${with_isl_lib}" != x; then
5998 isllibs="-L$with_isl_lib"
6000 if test "x${islinc}" = x && test "x${isllibs}" = x \
6001 && test -d ${srcdir}/isl; then
6002 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6003 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6004 ENABLE_ISL_CHECK=no
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6006 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
6009 isllibs="${isllibs} -lisl"
6013 if test "${ENABLE_ISL_CHECK}" = yes ; then
6014 _isl_saved_CFLAGS=$CFLAGS
6015 _isl_saved_LDFLAGS=$LDFLAGS
6016 _isl_saved_LIBS=$LIBS
6018 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6019 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6020 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6023 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 #include <isl/ctx.h>
6028 main ()
6030 isl_ctx_get_max_operations (isl_ctx_alloc ());
6032 return 0;
6034 _ACEOF
6035 if ac_fn_c_try_link "$LINENO"; then :
6036 gcc_cv_isl=yes
6037 else
6038 gcc_cv_isl=no
6040 rm -f core conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6043 $as_echo "$gcc_cv_isl" >&6; }
6045 if test "${gcc_cv_isl}" = no ; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
6047 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6051 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <isl/schedule.h>
6056 main ()
6058 isl_options_set_schedule_serialize_sccs (NULL, 0);
6060 return 0;
6062 _ACEOF
6063 if ac_fn_c_try_link "$LINENO"; then :
6064 ac_has_isl_options_set_schedule_serialize_sccs=yes
6065 else
6066 ac_has_isl_options_set_schedule_serialize_sccs=no
6068 rm -f core conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6071 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6073 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6074 islver="0.15"
6078 CFLAGS=$_isl_saved_CFLAGS
6079 LDFLAGS=$_isl_saved_LDFLAGS
6080 LIBS=$_isl_saved_LIBS
6088 if test "x${with_isl}" = xno; then
6089 graphite_requested=no
6090 elif test "x${with_isl}" != x \
6091 || test "x${with_isl_include}" != x \
6092 || test "x${with_isl_lib}" != x ; then
6093 graphite_requested=yes
6094 else
6095 graphite_requested=no
6100 if test "${gcc_cv_isl}" = no ; then
6101 isllibs=
6102 islinc=
6105 if test "${graphite_requested}" = yes \
6106 && test "x${isllibs}" = x \
6107 && test "x${islinc}" = x ; then
6109 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6115 # If the isl check failed, disable builds of in-tree variant of isl
6116 if test "x$with_isl" = xno ||
6117 test "x$gcc_cv_isl" = xno; then
6118 noconfigdirs="$noconfigdirs isl"
6119 islinc=
6125 # Check for LTO support.
6126 # Check whether --enable-lto was given.
6127 if test "${enable_lto+set}" = set; then :
6128 enableval=$enable_lto; enable_lto=$enableval
6129 else
6130 enable_lto=yes; default_enable_lto=yes
6137 target_elf=no
6138 case $target in
6139 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6140 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6141 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6142 nvptx-*-none)
6143 target_elf=no
6146 target_elf=yes
6148 esac
6150 if test $target_elf = yes; then :
6151 # ELF platforms build the lto-plugin always.
6152 build_lto_plugin=yes
6154 else
6155 if test x"$default_enable_lto" = x"yes" ; then
6156 case $target in
6157 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6158 # On other non-ELF platforms, LTO has yet to be validated.
6159 *) enable_lto=no ;;
6160 esac
6161 else
6162 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6163 # It would also be nice to check the binutils support, but we don't
6164 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6165 # warn during gcc/ subconfigure; unless you're bootstrapping with
6166 # -flto it won't be needed until after installation anyway.
6167 case $target in
6168 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6169 *) if test x"$enable_lto" = x"yes"; then
6170 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6173 esac
6175 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6176 # Build it unless LTO was explicitly disabled.
6177 case $target in
6178 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6179 *) ;;
6180 esac
6185 # Check whether --enable-linker-plugin-configure-flags was given.
6186 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6187 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6188 else
6189 extra_linker_plugin_configure_flags=
6193 # Check whether --enable-linker-plugin-flags was given.
6194 if test "${enable_linker_plugin_flags+set}" = set; then :
6195 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6196 else
6197 extra_linker_plugin_flags=
6203 # By default, C and C++ are the only stage 1 languages.
6204 stage1_languages=,c,
6206 # Target libraries that we bootstrap.
6207 bootstrap_target_libs=,target-libgcc,
6209 # Figure out what language subdirectories are present.
6210 # Look if the user specified --enable-languages="..."; if not, use
6211 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6212 # go away some day.
6213 # NB: embedded tabs in this IF block -- do not untabify
6214 if test -d ${srcdir}/gcc; then
6215 if test x"${enable_languages+set}" != xset; then
6216 if test x"${LANGUAGES+set}" = xset; then
6217 enable_languages="${LANGUAGES}"
6218 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6219 else
6220 enable_languages=all
6222 else
6223 if test x"${enable_languages}" = x ||
6224 test x"${enable_languages}" = xyes;
6225 then
6226 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6227 exit 1
6230 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6232 # 'f95' is the old name for the 'fortran' language. We issue a warning
6233 # and make the substitution.
6234 case ,${enable_languages}, in
6235 *,f95,*)
6236 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6237 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6239 esac
6241 # If bootstrapping, C++ must be enabled.
6242 case ",$enable_languages,:$enable_bootstrap" in
6243 *,c++,*:*) ;;
6244 *:yes)
6245 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6246 enable_languages="${enable_languages},c++"
6247 else
6248 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6251 esac
6253 # First scan to see if an enabled language requires some other language.
6254 # We assume that a given config-lang.in will list all the language
6255 # front ends it requires, even if some are required indirectly.
6256 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6257 case ${lang_frag} in
6258 ..) ;;
6259 # The odd quoting in the next line works around
6260 # an apparent bug in bash 1.12 on linux.
6261 ${srcdir}/gcc/[*]/config-lang.in) ;;
6263 # From the config-lang.in, get $language, $lang_requires, and
6264 # $lang_requires_boot_languages.
6265 language=
6266 lang_requires=
6267 lang_requires_boot_languages=
6268 . ${lang_frag}
6269 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6270 case ,${enable_languages}, in
6271 *,$other,*) ;;
6272 *,all,*) ;;
6273 *,$language,*)
6274 echo " \`$other' language required by \`$language'; enabling" 1>&2
6275 enable_languages="${enable_languages},${other}"
6277 esac
6278 done
6279 for other in ${lang_requires_boot_languages} ; do
6280 if test "$other" != "c"; then
6281 case ,${enable_stage1_languages}, in
6282 *,$other,*) ;;
6283 *,all,*) ;;
6285 case ,${enable_languages}, in
6286 *,$language,*)
6287 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6288 enable_stage1_languages="$enable_stage1_languages,${other}"
6290 esac
6292 esac
6294 done
6296 esac
6297 done
6299 new_enable_languages=,c,
6301 # If LTO is enabled, add the LTO front end.
6302 if test "$enable_lto" = "yes" ; then
6303 case ,${enable_languages}, in
6304 *,lto,*) ;;
6305 *) enable_languages="${enable_languages},lto" ;;
6306 esac
6307 if test "${build_lto_plugin}" = "yes" ; then
6308 configdirs="$configdirs lto-plugin"
6312 # If we're building an offloading compiler, add the LTO front end.
6313 if test x"$enable_as_accelerator_for" != x ; then
6314 case ,${enable_languages}, in
6315 *,lto,*) ;;
6316 *) enable_languages="${enable_languages},lto" ;;
6317 esac
6320 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6321 potential_languages=,c,
6323 enabled_target_libs=
6324 disabled_target_libs=
6326 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6327 case ${lang_frag} in
6328 ..) ;;
6329 # The odd quoting in the next line works around
6330 # an apparent bug in bash 1.12 on linux.
6331 ${srcdir}/gcc/[*]/config-lang.in) ;;
6333 # From the config-lang.in, get $language, $target_libs,
6334 # $lang_dirs, $boot_language, and $build_by_default
6335 language=
6336 target_libs=
6337 lang_dirs=
6338 subdir_requires=
6339 boot_language=no
6340 build_by_default=yes
6341 . ${lang_frag}
6342 if test x${language} = x; then
6343 echo "${lang_frag} doesn't set \$language." 1>&2
6344 exit 1
6347 if test "$language" = "c++"; then
6348 boot_language=yes
6351 add_this_lang=no
6352 case ,${enable_languages}, in
6353 *,${language},*)
6354 # Language was explicitly selected; include it
6355 # unless it is C, which is enabled by default.
6356 if test "$language" != "c"; then
6357 add_this_lang=yes
6360 *,all,*)
6361 # 'all' was selected, select it if it is a default language
6362 if test "$language" != "c"; then
6363 add_this_lang=${build_by_default}
6366 esac
6368 # Disable languages that need other directories if these aren't available.
6369 for i in $subdir_requires; do
6370 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6371 case ,${enable_languages}, in
6372 *,${language},*)
6373 # Specifically requested language; tell them.
6374 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6377 # Silently disable.
6378 add_this_lang=unsupported
6380 esac
6381 done
6383 # Disable Ada if no preexisting GNAT is available.
6384 case ,${enable_languages},:${language}:${have_gnat} in
6385 *,${language},*:ada:no)
6386 # Specifically requested language; tell them.
6387 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6389 *:ada:no)
6390 # Silently disable.
6391 add_this_lang=unsupported
6393 esac
6395 # Disable a language that is unsupported by the target.
6396 case " $unsupported_languages " in
6397 *" $language "*)
6398 add_this_lang=unsupported
6400 esac
6402 case $add_this_lang in
6403 unsupported)
6404 # Remove language-dependent dirs.
6405 disabled_target_libs="$disabled_target_libs $target_libs"
6406 noconfigdirs="$noconfigdirs $lang_dirs"
6409 # Remove language-dependent dirs; still show language as supported.
6410 disabled_target_libs="$disabled_target_libs $target_libs"
6411 noconfigdirs="$noconfigdirs $lang_dirs"
6412 potential_languages="${potential_languages}${language},"
6414 yes)
6415 new_enable_languages="${new_enable_languages}${language},"
6416 potential_languages="${potential_languages}${language},"
6417 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6418 enabled_target_libs="$enabled_target_libs $target_libs"
6419 case "${boot_language}:,$enable_stage1_languages," in
6420 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6421 # Add to (comma-separated) list of stage 1 languages.
6422 case ",$stage1_languages," in
6423 *,$language,* | ,yes, | ,all,) ;;
6424 *) stage1_languages="${stage1_languages}${language}," ;;
6425 esac
6426 # We need to bootstrap any supporting libraries.
6427 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6429 esac
6431 esac
6433 esac
6434 done
6436 # Add target libraries which are only needed for disabled languages
6437 # to noconfigdirs.
6438 if test -n "$disabled_target_libs"; then
6439 for dir in $disabled_target_libs; do
6440 case " $enabled_target_libs " in
6441 *" ${dir} "*) ;;
6442 *) noconfigdirs="$noconfigdirs $dir" ;;
6443 esac
6444 done
6447 # Check whether --enable-stage1-languages was given.
6448 if test "${enable_stage1_languages+set}" = set; then :
6449 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6450 ,no,|,,)
6451 # Set it to something that will have no effect in the loop below
6452 enable_stage1_languages=c ;;
6453 ,yes,)
6454 enable_stage1_languages=`echo $new_enable_languages | \
6455 sed -e "s/^,//" -e "s/,$//" ` ;;
6456 *,all,*)
6457 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6458 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6459 esac
6461 # Add "good" languages from enable_stage1_languages to stage1_languages,
6462 # while "bad" languages go in missing_languages. Leave no duplicates.
6463 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6464 case $potential_languages in
6465 *,$i,*)
6466 case $stage1_languages in
6467 *,$i,*) ;;
6468 *) stage1_languages="$stage1_languages$i," ;;
6469 esac ;;
6471 case $missing_languages in
6472 *,$i,*) ;;
6473 *) missing_languages="$missing_languages$i," ;;
6474 esac ;;
6475 esac
6476 done
6480 # Remove leading/trailing commas that were added for simplicity
6481 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6482 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6483 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6484 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6486 if test "x$missing_languages" != x; then
6487 as_fn_error "
6488 The following requested languages could not be built: ${missing_languages}
6489 Supported languages are: ${potential_languages}" "$LINENO" 5
6491 if test "x$new_enable_languages" != "x$enable_languages"; then
6492 echo The following languages will be built: ${new_enable_languages}
6493 enable_languages="$new_enable_languages"
6497 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6500 # Handle --disable-<component> generically.
6501 for dir in $configdirs $build_configdirs $target_configdirs ; do
6502 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6503 varname=`echo $dirname | sed -e s/+/_/g`
6504 if eval test x\${enable_${varname}} "=" xno ; then
6505 noconfigdirs="$noconfigdirs $dir"
6507 done
6509 # Check for Boehm's garbage collector
6510 # Check whether --enable-objc-gc was given.
6511 if test "${enable_objc_gc+set}" = set; then :
6512 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6513 *,objc,*:*:yes:*target-boehm-gc*)
6514 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6516 esac
6520 # Make sure we only build Boehm's garbage collector if required.
6521 case ,${enable_languages},:${enable_objc_gc} in
6522 *,objc,*:yes)
6523 # Keep target-boehm-gc if requested for Objective-C.
6526 # Otherwise remove target-boehm-gc depending on target-libjava.
6527 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6528 noconfigdirs="$noconfigdirs target-boehm-gc"
6531 esac
6533 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6534 case ,${enable_languages}, in
6535 *,c++,*)
6536 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6537 case "${noconfigdirs}" in
6538 *target-libstdc++-v3*)
6539 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6541 *) ;;
6542 esac
6545 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6547 esac
6549 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6550 # $build_configdirs and $target_configdirs.
6551 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6553 notsupp=""
6554 for dir in . $skipdirs $noconfigdirs ; do
6555 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6556 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6557 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6558 if test -r $srcdir/$dirname/configure ; then
6559 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6560 true
6561 else
6562 notsupp="$notsupp $dir"
6566 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6567 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6568 if test -r $srcdir/$dirname/configure ; then
6569 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6570 true
6571 else
6572 notsupp="$notsupp $dir"
6576 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6577 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6578 if test -r $srcdir/$dirname/configure ; then
6579 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6580 true
6581 else
6582 notsupp="$notsupp $dir"
6586 done
6588 # Quietly strip out all directories which aren't configurable in this tree.
6589 # This relies on all configurable subdirectories being autoconfiscated, which
6590 # is now the case.
6591 build_configdirs_all="$build_configdirs"
6592 build_configdirs=
6593 for i in ${build_configdirs_all} ; do
6594 j=`echo $i | sed -e s/build-//g`
6595 if test -f ${srcdir}/$j/configure ; then
6596 build_configdirs="${build_configdirs} $i"
6598 done
6600 configdirs_all="$configdirs"
6601 configdirs=
6602 for i in ${configdirs_all} ; do
6603 if test -f ${srcdir}/$i/configure ; then
6604 configdirs="${configdirs} $i"
6606 done
6608 target_configdirs_all="$target_configdirs"
6609 target_configdirs=
6610 for i in ${target_configdirs_all} ; do
6611 j=`echo $i | sed -e s/target-//g`
6612 if test -f ${srcdir}/$j/configure ; then
6613 target_configdirs="${target_configdirs} $i"
6615 done
6617 # Exclude target-zlib if target-libjava isn't built.
6618 case ${target_configdirs} in
6619 *target-libjava*)
6622 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6624 esac
6626 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6627 # so we have to add it after the preceding checks.
6628 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6629 then
6630 case " $configdirs " in
6631 *" libiberty "*)
6632 # If we can build libiberty, we can also build libiberty-linker-plugin.
6633 configdirs="$configdirs libiberty-linker-plugin"
6634 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6635 --with-libiberty=../libiberty-linker-plugin";;
6637 as_fn_error "libiberty missing" "$LINENO" 5;;
6638 esac
6641 # Sometimes we have special requirements for the host libiberty.
6642 extra_host_libiberty_configure_flags=
6643 extra_host_zlib_configure_flags=
6644 case " $configdirs " in
6645 *" lto-plugin "* | *" libcc1 "*)
6646 # When these are to be built as shared libraries, the same applies to
6647 # libiberty.
6648 extra_host_libiberty_configure_flags=--enable-shared
6650 *" bfd "*)
6651 # When bfd is to be built as a shared library, the same applies to
6652 # zlib.
6653 if test "$enable_shared" = "yes"; then
6654 extra_host_zlib_configure_flags=--enable-host-shared
6657 esac
6661 # Produce a warning message for the subdirs we can't configure.
6662 # This isn't especially interesting in the Cygnus tree, but in the individual
6663 # FSF releases, it's important to let people know when their machine isn't
6664 # supported by the one or two programs in a package.
6666 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6667 # If $appdirs is non-empty, at least one of those directories must still
6668 # be configured, or we error out. (E.g., if the gas release supports a
6669 # specified target in some subdirs but not the gas subdir, we shouldn't
6670 # pretend that all is well.)
6671 if test -n "$appdirs" ; then
6672 for dir in $appdirs ; do
6673 if test -r $dir/Makefile.in ; then
6674 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6675 appdirs=""
6676 break
6678 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6679 appdirs=""
6680 break
6683 done
6684 if test -n "$appdirs" ; then
6685 echo "*** This configuration is not supported by this package." 1>&2
6686 exit 1
6689 # Okay, some application will build, or we don't care to check. Still
6690 # notify of subdirs not getting built.
6691 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6692 echo " ${notsupp}" 1>&2
6693 echo " (Any other directories should still work fine.)" 1>&2
6696 case "$host" in
6697 *msdosdjgpp*)
6698 enable_gdbtk=no ;;
6699 esac
6701 # To find our prefix, in gcc_cv_tool_prefix.
6703 # The user is always right.
6704 if test "${PATH_SEPARATOR+set}" != set; then
6705 echo "#! /bin/sh" >conf$$.sh
6706 echo "exit 0" >>conf$$.sh
6707 chmod +x conf$$.sh
6708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6709 PATH_SEPARATOR=';'
6710 else
6711 PATH_SEPARATOR=:
6713 rm -f conf$$.sh
6718 if test "x$exec_prefix" = xNONE; then
6719 if test "x$prefix" = xNONE; then
6720 gcc_cv_tool_prefix=$ac_default_prefix
6721 else
6722 gcc_cv_tool_prefix=$prefix
6724 else
6725 gcc_cv_tool_prefix=$exec_prefix
6728 # If there is no compiler in the tree, use the PATH only. In any
6729 # case, if there is no compiler in the tree nobody should use
6730 # AS_FOR_TARGET and LD_FOR_TARGET.
6731 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6732 gcc_version=`cat $srcdir/gcc/BASE-VER`
6733 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6734 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6735 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6736 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6737 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6738 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6739 else
6740 gcc_cv_tool_dirs=
6743 if test x$build = x$target && test -n "$md_exec_prefix"; then
6744 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6749 copy_dirs=
6752 # Check whether --with-build-sysroot was given.
6753 if test "${with_build_sysroot+set}" = set; then :
6754 withval=$with_build_sysroot; if test x"$withval" != x ; then
6755 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6757 else
6758 SYSROOT_CFLAGS_FOR_TARGET=
6764 # Check whether --with-debug-prefix-map was given.
6765 if test "${with_debug_prefix_map+set}" = set; then :
6766 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6767 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6768 for debug_map in $withval; do
6769 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6770 done
6772 else
6773 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6778 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6779 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6780 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6781 # We want to ensure that TARGET libraries (which we know are built with
6782 # gcc) are built with "-O2 -g", so include those options when setting
6783 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6784 if test "x$CFLAGS_FOR_TARGET" = x; then
6785 if test "x${is_cross_compiler}" = xyes; then
6786 CFLAGS_FOR_TARGET="-g -O2"
6787 else
6788 CFLAGS_FOR_TARGET=$CFLAGS
6789 case " $CFLAGS " in
6790 *" -O2 "*) ;;
6791 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6792 esac
6793 case " $CFLAGS " in
6794 *" -g "* | *" -g3 "*) ;;
6795 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6796 esac
6801 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6802 if test "x${is_cross_compiler}" = xyes; then
6803 CXXFLAGS_FOR_TARGET="-g -O2"
6804 else
6805 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6806 case " $CXXFLAGS " in
6807 *" -O2 "*) ;;
6808 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6809 esac
6810 case " $CXXFLAGS " in
6811 *" -g "* | *" -g3 "*) ;;
6812 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6813 esac
6820 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6821 # the named directory are copied to $(tooldir)/sys-include.
6822 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6823 if test x${is_cross_compiler} = xno ; then
6824 echo 1>&2 '***' --with-headers is only supported when cross compiling
6825 exit 1
6827 if test x"${with_headers}" != xyes ; then
6828 x=${gcc_cv_tool_prefix}
6829 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6833 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6834 # the name directories are copied to $(tooldir)/lib. Multiple directories
6835 # are permitted.
6836 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6837 if test x${is_cross_compiler} = xno ; then
6838 echo 1>&2 '***' --with-libs is only supported when cross compiling
6839 exit 1
6841 if test x"${with_libs}" != xyes ; then
6842 # Copy the libraries in reverse order, so that files in the first named
6843 # library override files in subsequent libraries.
6844 x=${gcc_cv_tool_prefix}
6845 for l in ${with_libs}; do
6846 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6847 done
6851 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6853 # This is done by determining whether or not the appropriate directory
6854 # is available, and by checking whether or not specific configurations
6855 # have requested that this magic not happen.
6857 # The command line options always override the explicit settings in
6858 # configure.ac, and the settings in configure.ac override this magic.
6860 # If the default for a toolchain is to use GNU as and ld, and you don't
6861 # want to do that, then you should use the --without-gnu-as and
6862 # --without-gnu-ld options for the configure script. Similarly, if
6863 # the default is to use the included zlib and you don't want to do that,
6864 # you should use the --with-system-zlib option for the configure script.
6866 if test x${use_gnu_as} = x &&
6867 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6868 with_gnu_as=yes
6869 extra_host_args="$extra_host_args --with-gnu-as"
6872 if test x${use_gnu_ld} = x &&
6873 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6874 with_gnu_ld=yes
6875 extra_host_args="$extra_host_args --with-gnu-ld"
6878 if test x${use_included_zlib} = x &&
6879 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6881 else
6882 with_system_zlib=yes
6883 extra_host_args="$extra_host_args --with-system-zlib"
6886 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6887 # can detect this case.
6889 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6890 with_newlib=yes
6891 extra_host_args="$extra_host_args --with-newlib"
6894 # Handle ${copy_dirs}
6895 set fnord ${copy_dirs}
6896 shift
6897 while test $# != 0 ; do
6898 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6900 else
6901 echo Copying $1 to $2
6903 # Use the install script to create the directory and all required
6904 # parent directories.
6905 if test -d $2 ; then
6907 else
6908 echo >config.temp
6909 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6912 # Copy the directory, assuming we have tar.
6913 # FIXME: Should we use B in the second tar? Not all systems support it.
6914 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6916 # It is the responsibility of the user to correctly adjust all
6917 # symlinks. If somebody can figure out how to handle them correctly
6918 # here, feel free to add the code.
6920 echo $1 > $2/COPIED
6922 shift; shift
6923 done
6925 # Determine a target-dependent exec_prefix that the installed
6926 # gcc will search in. Keep this list sorted by triplet, with
6927 # the *-*-osname triplets last.
6928 md_exec_prefix=
6929 case "${target}" in
6930 i[34567]86-pc-msdosdjgpp*)
6931 md_exec_prefix=/dev/env/DJDIR/bin
6933 *-*-hpux* | \
6934 *-*-nto-qnx* | \
6935 *-*-solaris2*)
6936 md_exec_prefix=/usr/ccs/bin
6938 esac
6940 extra_arflags_for_target=
6941 extra_nmflags_for_target=
6942 extra_ranlibflags_for_target=
6943 target_makefile_frag=/dev/null
6944 case "${target}" in
6945 spu-*-*)
6946 target_makefile_frag="config/mt-spu"
6948 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6949 target_makefile_frag="config/mt-sde"
6951 mipsisa*-*-elfoabi*)
6952 target_makefile_frag="config/mt-mips-elfoabi"
6954 mips*-*-*linux* | mips*-*-gnu*)
6955 target_makefile_frag="config/mt-mips-gnu"
6957 nios2-*-elf*)
6958 target_makefile_frag="config/mt-nios2-elf"
6960 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6961 target_makefile_frag="config/mt-gnu"
6963 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6964 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6965 # commands to handle both 32-bit and 64-bit objects. These flags are
6966 # harmless if we're using GNU nm or ar.
6967 extra_arflags_for_target=" -X32_64"
6968 extra_nmflags_for_target=" -B -X32_64"
6970 esac
6972 alphaieee_frag=/dev/null
6973 case $target in
6974 alpha*-*-*)
6975 # This just makes sure to use the -mieee option to build target libs.
6976 # This should probably be set individually by each library.
6977 alphaieee_frag="config/mt-alphaieee"
6979 esac
6981 # If --enable-target-optspace always use -Os instead of -O2 to build
6982 # the target libraries, similarly if it is not specified, use -Os
6983 # on selected platforms.
6984 ospace_frag=/dev/null
6985 case "${enable_target_optspace}:${target}" in
6986 yes:*)
6987 ospace_frag="config/mt-ospace"
6989 :d30v-*)
6990 ospace_frag="config/mt-d30v"
6992 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6993 ospace_frag="config/mt-ospace"
6995 no:* | :*)
6998 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7000 esac
7002 # Some systems (e.g., one of the i386-aix systems the gas testers are
7003 # using) don't handle "\$" correctly, so don't use it here.
7004 tooldir='${exec_prefix}'/${target_noncanonical}
7005 build_tooldir=${tooldir}
7007 # Create a .gdbinit file which runs the one in srcdir
7008 # and tells GDB to look there for source files.
7010 if test -r ${srcdir}/.gdbinit ; then
7011 case ${srcdir} in
7012 .) ;;
7013 *) cat > ./.gdbinit <<EOF
7014 # ${NO_EDIT}
7015 dir ${srcdir}
7016 dir .
7017 source ${srcdir}/.gdbinit
7020 esac
7023 # Make sure that the compiler is able to generate an executable. If it
7024 # can't, we are probably in trouble. We don't care whether we can run the
7025 # executable--we might be using a cross compiler--we only care whether it
7026 # can be created. At this point the main configure script has set CC.
7027 we_are_ok=no
7028 echo "int main () { return 0; }" > conftest.c
7029 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7030 if test $? = 0 ; then
7031 if test -s conftest || test -s conftest.exe ; then
7032 we_are_ok=yes
7035 case $we_are_ok in
7037 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7038 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7039 rm -f conftest*
7040 exit 1
7042 esac
7043 rm -f conftest*
7045 # Decide which environment variable is used to find dynamic libraries.
7046 case "${host}" in
7047 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7048 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7049 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7050 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7051 esac
7053 # On systems where the dynamic library environment variable is PATH,
7054 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7055 # built executables to PATH.
7056 if test "$RPATH_ENVVAR" = PATH; then
7057 GCC_SHLIB_SUBDIR=/shlib
7058 else
7059 GCC_SHLIB_SUBDIR=
7062 # Adjust the toplevel makefile according to whether bootstrap was selected.
7063 case $enable_bootstrap in
7064 yes)
7065 bootstrap_suffix=bootstrap
7066 BUILD_CONFIG=bootstrap-debug
7069 bootstrap_suffix=no-bootstrap
7070 BUILD_CONFIG=
7072 esac
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7075 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7078 # Check whether --with-build-config was given.
7079 if test "${with_build_config+set}" = set; then :
7080 withval=$with_build_config; case $with_build_config in
7081 yes) with_build_config= ;;
7082 no) with_build_config= BUILD_CONFIG= ;;
7083 esac
7087 if test "x${with_build_config}" != x; then
7088 BUILD_CONFIG=$with_build_config
7089 else
7090 case $BUILD_CONFIG in
7091 bootstrap-debug)
7092 if echo "int f (void) { return 0; }" > conftest.c &&
7093 ${CC} -c conftest.c &&
7094 mv conftest.o conftest.o.g0 &&
7095 ${CC} -c -g conftest.c &&
7096 mv conftest.o conftest.o.g &&
7097 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7099 else
7100 BUILD_CONFIG=
7102 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7104 esac
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7107 $as_echo "$BUILD_CONFIG" >&6; }
7110 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7112 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7113 # Check whether --enable-vtable-verify was given.
7114 if test "${enable_vtable_verify+set}" = set; then :
7115 enableval=$enable_vtable_verify; case "$enableval" in
7116 yes) enable_vtable_verify=yes ;;
7117 no) enable_vtable_verify=no ;;
7118 *) enable_vtable_verify=no;;
7119 esac
7120 else
7121 enable_vtable_verify=no
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7125 $as_echo "$enable_vtable_verify" >&6; }
7127 # Record target_configdirs and the configure arguments for target and
7128 # build configuration in Makefile.
7129 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7130 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7131 bootstrap_fixincludes=no
7133 # If we are building libgomp, bootstrap it.
7134 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7135 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7138 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7139 # or bootstrap-ubsan, bootstrap it.
7140 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7141 case "$BUILD_CONFIG" in
7142 *bootstrap-asan* | *bootstrap-ubsan* )
7143 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7144 bootstrap_fixincludes=yes
7146 esac
7149 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7150 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7151 test "$enable_vtable_verify" != no; then
7152 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7155 # If we are building libmpx, bootstrap it.
7156 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7157 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7160 # Determine whether gdb needs tk/tcl or not.
7161 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7162 # and in that case we want gdb to be built without tk. Ugh!
7163 # In fact I believe gdb is the *only* package directly dependent on tk,
7164 # so we should be able to put the 'maybe's in unconditionally and
7165 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7166 # 100% sure that that's safe though.
7168 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7169 case "$enable_gdbtk" in
7171 GDB_TK="" ;;
7172 yes)
7173 GDB_TK="${gdb_tk}" ;;
7175 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7176 # distro. Eventually someone will fix this and move Insight, nee
7177 # gdbtk to a separate directory.
7178 if test -d ${srcdir}/gdb/gdbtk ; then
7179 GDB_TK="${gdb_tk}"
7180 else
7181 GDB_TK=""
7184 esac
7185 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7186 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7188 # Strip out unwanted targets.
7190 # While at that, we remove Makefiles if we were started for recursive
7191 # configuration, so that the top-level Makefile reconfigures them,
7192 # like we used to do when configure itself was recursive.
7194 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7195 # but now we're fixing up the Makefile ourselves with the additional
7196 # commands passed to AC_CONFIG_FILES. Use separate variables
7197 # extrasub-{build,host,target} not because there is any reason to split
7198 # the substitutions up that way, but only to remain below the limit of
7199 # 99 commands in a script, for HP-UX sed.
7200 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7202 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7203 yes:yes:*\ gold\ *:*,c++,*) ;;
7204 yes:yes:*\ gold\ *:*)
7205 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7207 esac
7209 extrasub_build=
7210 for module in ${build_configdirs} ; do
7211 if test -z "${no_recursion}" \
7212 && test -f ${build_subdir}/${module}/Makefile; then
7213 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7214 rm -f ${build_subdir}/${module}/Makefile
7216 extrasub_build="$extrasub_build
7217 /^@if build-$module\$/d
7218 /^@endif build-$module\$/d
7219 /^@if build-$module-$bootstrap_suffix\$/d
7220 /^@endif build-$module-$bootstrap_suffix\$/d"
7221 done
7222 extrasub_host=
7223 for module in ${configdirs} ; do
7224 if test -z "${no_recursion}"; then
7225 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7226 if test -f ${file}; then
7227 echo 1>&2 "*** removing ${file} to force reconfigure"
7228 rm -f ${file}
7230 done
7232 case ${module},${bootstrap_fixincludes} in
7233 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7234 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7235 esac
7236 extrasub_host="$extrasub_host
7237 /^@if $module\$/d
7238 /^@endif $module\$/d
7239 /^@if $module-$host_bootstrap_suffix\$/d
7240 /^@endif $module-$host_bootstrap_suffix\$/d"
7241 done
7242 extrasub_target=
7243 for module in ${target_configdirs} ; do
7244 if test -z "${no_recursion}" \
7245 && test -f ${target_subdir}/${module}/Makefile; then
7246 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7247 rm -f ${target_subdir}/${module}/Makefile
7250 # We only bootstrap target libraries listed in bootstrap_target_libs.
7251 case $bootstrap_target_libs in
7252 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7253 *) target_bootstrap_suffix=no-bootstrap ;;
7254 esac
7256 extrasub_target="$extrasub_target
7257 /^@if target-$module\$/d
7258 /^@endif target-$module\$/d
7259 /^@if target-$module-$target_bootstrap_suffix\$/d
7260 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7261 done
7263 # Do the final fixup along with target modules.
7264 extrasub_target="$extrasub_target
7265 /^@if /,/^@endif /d"
7267 # Create the serialization dependencies. This uses a temporary file.
7269 # Check whether --enable-serial-configure was given.
7270 if test "${enable_serial_configure+set}" = set; then :
7271 enableval=$enable_serial_configure;
7275 case ${enable_serial_configure} in
7276 yes)
7277 enable_serial_build_configure=yes
7278 enable_serial_host_configure=yes
7279 enable_serial_target_configure=yes
7281 esac
7283 # These force 'configure's to be done one at a time, to avoid problems
7284 # with contention over a shared config.cache.
7285 rm -f serdep.tmp
7286 echo '# serdep.tmp' > serdep.tmp
7287 olditem=
7288 test "x${enable_serial_build_configure}" = xyes &&
7289 for item in ${build_configdirs} ; do
7290 case ${olditem} in
7291 "") ;;
7292 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7293 esac
7294 olditem=${item}
7295 done
7296 olditem=
7297 test "x${enable_serial_host_configure}" = xyes &&
7298 for item in ${configdirs} ; do
7299 case ${olditem} in
7300 "") ;;
7301 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7302 esac
7303 olditem=${item}
7304 done
7305 olditem=
7306 test "x${enable_serial_target_configure}" = xyes &&
7307 for item in ${target_configdirs} ; do
7308 case ${olditem} in
7309 "") ;;
7310 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7311 esac
7312 olditem=${item}
7313 done
7314 serialization_dependencies=serdep.tmp
7317 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7318 # target, nonopt, and variable assignments. These are the ones we
7319 # might not want to pass down to subconfigures. The exception being
7320 # --cache-file=/dev/null, which is used to turn off the use of cache
7321 # files altogether, and which should be passed on to subconfigures.
7322 # Also strip program-prefix, program-suffix, and program-transform-name,
7323 # so that we can pass down a consistent program-transform-name.
7324 baseargs=
7325 tbaseargs=
7326 keep_next=no
7327 skip_next=no
7328 eval "set -- $ac_configure_args"
7329 for ac_arg
7331 if test X"$skip_next" = X"yes"; then
7332 skip_next=no
7333 continue
7335 if test X"$keep_next" = X"yes"; then
7336 case $ac_arg in
7337 *\'*)
7338 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7339 esac
7340 baseargs="$baseargs '$ac_arg'"
7341 tbaseargs="$tbaseargs '$ac_arg'"
7342 keep_next=no
7343 continue
7346 # Handle separated arguments. Based on the logic generated by
7347 # autoconf 2.59.
7348 case $ac_arg in
7349 *=* | --config-cache | -C | -disable-* | --disable-* \
7350 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7351 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7352 | -with-* | --with-* | -without-* | --without-* | --x)
7353 separate_arg=no
7356 separate_arg=yes
7359 separate_arg=no
7361 esac
7363 skip_targ=no
7364 case $ac_arg in
7366 --with-* | --without-*)
7367 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7369 case $libopt in
7370 *[-_]include)
7371 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7373 *[-_]lib)
7374 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7377 lib=$libopt
7379 esac
7382 case $lib in
7383 mpc | mpfr | gmp | isl)
7384 # If we're processing --with-$lib, --with-$lib-include or
7385 # --with-$lib-lib, for one of the libs above, and target is
7386 # different from host, don't pass the current argument to any
7387 # target library's configure.
7388 if test x$is_cross_compiler = xyes; then
7389 skip_targ=yes
7392 esac
7394 esac
7396 case "$ac_arg" in
7397 --cache-file=/dev/null | \
7398 -cache-file=/dev/null )
7399 # Handled here to avoid the test to skip args below.
7400 baseargs="$baseargs '$ac_arg'"
7401 tbaseargs="$tbaseargs '$ac_arg'"
7402 # Assert: $separate_arg should always be no.
7403 keep_next=$separate_arg
7405 --no*)
7406 continue
7408 --c* | \
7409 --sr* | \
7410 --ho* | \
7411 --bu* | \
7412 --t* | \
7413 --program-* | \
7414 -cache_file* | \
7415 -srcdir* | \
7416 -host* | \
7417 -build* | \
7418 -target* | \
7419 -program-prefix* | \
7420 -program-suffix* | \
7421 -program-transform-name* )
7422 skip_next=$separate_arg
7423 continue
7426 # An option. Add it.
7427 case $ac_arg in
7428 *\'*)
7429 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7430 esac
7431 baseargs="$baseargs '$ac_arg'"
7432 if test X"$skip_targ" = Xno; then
7433 tbaseargs="$tbaseargs '$ac_arg'"
7435 keep_next=$separate_arg
7438 # Either a variable assignment, or a nonopt (triplet). Don't
7439 # pass it down; let the Makefile handle this.
7440 continue
7442 esac
7443 done
7444 # Remove the initial space we just introduced and, as these will be
7445 # expanded by make, quote '$'.
7446 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7448 # Add in --program-transform-name, after --program-prefix and
7449 # --program-suffix have been applied to it. Autoconf has already
7450 # doubled dollar signs and backslashes in program_transform_name; we want
7451 # the backslashes un-doubled, and then the entire thing wrapped in single
7452 # quotes, because this will be expanded first by make and then by the shell.
7453 # Also, because we want to override the logic in subdir configure scripts to
7454 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7455 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7456 ${program_transform_name}
7457 EOF_SED
7458 gcc_transform_name=`cat conftestsed.out`
7459 rm -f conftestsed.out
7460 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7461 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7462 if test "$silent" = yes; then
7463 baseargs="$baseargs --silent"
7464 tbaseargs="$tbaseargs --silent"
7466 baseargs="$baseargs --disable-option-checking"
7467 tbaseargs="$tbaseargs --disable-option-checking"
7469 # Record and document user additions to sub configure arguments.
7474 # For the build-side libraries, we just need to pretend we're native,
7475 # and not use the same cache file. Multilibs are neither needed nor
7476 # desired. We can't even use the same cache file for all build-side
7477 # libraries, as they're compiled differently; some with C, some with
7478 # C++ or with different feature-enabling options.
7479 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7481 # For host modules, accept cache file option, or specification as blank.
7482 case "${cache_file}" in
7483 "") # empty
7484 cache_file_option="" ;;
7485 /* | [A-Za-z]:[\\/]* ) # absolute path
7486 cache_file_option="--cache-file=${cache_file}" ;;
7487 *) # relative path
7488 cache_file_option="--cache-file=../${cache_file}" ;;
7489 esac
7491 # Host dirs don't like to share a cache file either, horribly enough.
7492 # This seems to be due to autoconf 2.5x stupidity.
7493 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7495 target_configargs="$target_configargs ${tbaseargs}"
7497 # Passing a --with-cross-host argument lets the target libraries know
7498 # whether they are being built with a cross-compiler or being built
7499 # native. However, it would be better to use other mechanisms to make the
7500 # sorts of decisions they want to make on this basis. Please consider
7501 # this option to be deprecated. FIXME.
7502 if test x${is_cross_compiler} = xyes ; then
7503 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7506 # Special user-friendly check for native x86_64-linux build, if
7507 # multilib is not explicitly enabled.
7508 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7509 x86_64-*linux*:yes:$build:$build:)
7510 # Make sure we have a development environment that handles 32-bit
7511 dev64=no
7512 echo "int main () { return 0; }" > conftest.c
7513 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7514 if test $? = 0 ; then
7515 if test -s conftest || test -s conftest.exe ; then
7516 dev64=yes
7519 rm -f conftest*
7520 if test x${dev64} != xyes ; then
7521 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7524 esac
7526 # Default to --enable-multilib.
7527 if test x${enable_multilib} = x ; then
7528 target_configargs="--enable-multilib ${target_configargs}"
7531 # Pass --with-newlib if appropriate. Note that target_configdirs has
7532 # changed from the earlier setting of with_newlib.
7533 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7534 target_configargs="--with-newlib ${target_configargs}"
7537 # Different target subdirs use different values of certain variables
7538 # (notably CXX). Worse, multilibs use *lots* of different values.
7539 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7540 # it doesn't automatically accept command-line overrides of them.
7541 # This means it's not safe for target subdirs to share a cache file,
7542 # which is disgusting, but there you have it. Hopefully this can be
7543 # fixed in future. It's still worthwhile to use a cache file for each
7544 # directory. I think.
7546 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7547 # We need to pass --target, as newer autoconf's requires consistency
7548 # for target_alias and gcc doesn't manage it consistently.
7549 target_configargs="--cache-file=./config.cache ${target_configargs}"
7551 FLAGS_FOR_TARGET=
7552 case " $target_configdirs " in
7553 *" newlib "*)
7554 case " $target_configargs " in
7555 *" --with-newlib "*)
7556 case "$target" in
7557 *-cygwin*)
7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7560 esac
7562 # If we're not building GCC, don't discard standard headers.
7563 if test -d ${srcdir}/gcc; then
7564 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7566 if test "${build}" != "${host}"; then
7567 # On Canadian crosses, CC_FOR_TARGET will have already been set
7568 # by `configure', so we won't have an opportunity to add -Bgcc/
7569 # to it. This is right: we don't want to search that directory
7570 # for binaries, but we want the header files in there, so add
7571 # them explicitly.
7572 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7574 # Someone might think of using the pre-installed headers on
7575 # Canadian crosses, in case the installed compiler is not fully
7576 # compatible with the compiler being built. In this case, it
7577 # would be better to flag an error than risking having
7578 # incompatible object files being constructed. We can't
7579 # guarantee that an error will be flagged, but let's hope the
7580 # compiler will do it, when presented with incompatible header
7581 # files.
7585 case "${target}-${is_cross_compiler}" in
7586 i[3456789]86-*-linux*-no)
7587 # Here host == target, so we don't need to build gcc,
7588 # so we don't want to discard standard headers.
7589 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7592 # If we're building newlib, use its generic headers last, but search
7593 # for any libc-related directories first (so make it the last -B
7594 # switch).
7595 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7597 # If we're building libgloss, find the startup file, simulator library
7598 # and linker script.
7599 case " $target_configdirs " in
7600 *" libgloss "*)
7601 # Look for startup file, simulator library and maybe linker script.
7602 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7603 # Look for libnosys.a in case the target needs it.
7604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7605 # Most targets have the linker script in the source directory.
7606 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7608 esac
7610 esac
7612 esac
7614 esac
7616 case "$target" in
7617 x86_64-*mingw* | *-w64-mingw*)
7618 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7619 # however, use a symlink named 'mingw' in ${prefix} .
7620 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7622 *-mingw*)
7623 # MinGW can't be handled as Cygwin above since it does not use newlib.
7624 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'
7626 esac
7628 # Allow the user to override the flags for
7629 # our build compiler if desired.
7630 if test x"${build}" = x"${host}" ; then
7631 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7632 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7633 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7636 # On Canadian crosses, we'll be searching the right directories for
7637 # the previously-installed cross compiler, so don't bother to add
7638 # flags for directories within the install tree of the compiler
7639 # being built; programs in there won't even run.
7640 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7641 # Search for pre-installed headers if nothing else fits.
7642 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7645 if test "x${use_gnu_ld}" = x &&
7646 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7647 # Arrange for us to find uninstalled linker scripts.
7648 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7651 # Search for other target-specific linker scripts and such.
7652 case "${target}" in
7653 mep*)
7654 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7656 esac
7658 # Makefile fragments.
7659 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7661 eval fragval=\$$frag
7662 if test $fragval != /dev/null; then
7663 eval $frag=${srcdir}/$fragval
7665 done
7671 # Miscellanea: directories, flags, etc.
7680 # Build module lists & subconfigure args.
7684 # Host module lists & subconfigure args.
7689 # Target module lists & subconfigure args.
7693 # Build tools.
7711 # Generate default definitions for YACC, M4, LEX and other programs that run
7712 # on the build machine. These are used if the Makefile can't locate these
7713 # programs in objdir.
7714 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7716 for ac_prog in 'bison -y' byacc yacc
7718 # Extract the first word of "$ac_prog", so it can be a program name with args.
7719 set dummy $ac_prog; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_prog_YACC+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$YACC"; then
7726 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_YACC="$ac_prog"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7739 done
7740 done
7741 IFS=$as_save_IFS
7745 YACC=$ac_cv_prog_YACC
7746 if test -n "$YACC"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7748 $as_echo "$YACC" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7755 test -n "$YACC" && break
7756 done
7757 test -n "$YACC" || YACC="$MISSING bison -y"
7759 case " $build_configdirs " in
7760 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7761 esac
7763 for ac_prog in bison
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_BISON+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$BISON"; then
7773 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_BISON="$ac_prog"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7786 done
7787 done
7788 IFS=$as_save_IFS
7792 BISON=$ac_cv_prog_BISON
7793 if test -n "$BISON"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7795 $as_echo "$BISON" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7802 test -n "$BISON" && break
7803 done
7804 test -n "$BISON" || BISON="$MISSING bison"
7806 case " $build_configdirs " in
7807 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7808 esac
7810 for ac_prog in gm4 gnum4 m4
7812 # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_M4+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 if test -n "$M4"; then
7820 ac_cv_prog_M4="$M4" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7825 IFS=$as_save_IFS
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829 ac_cv_prog_M4="$ac_prog"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 break 2
7833 done
7834 done
7835 IFS=$as_save_IFS
7839 M4=$ac_cv_prog_M4
7840 if test -n "$M4"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7842 $as_echo "$M4" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7849 test -n "$M4" && break
7850 done
7851 test -n "$M4" || M4="$MISSING m4"
7853 case " $build_configdirs " in
7854 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7855 esac
7857 for ac_prog in flex lex
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860 set dummy $ac_prog; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if test "${ac_cv_prog_LEX+set}" = set; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$LEX"; then
7867 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_prog_LEX="$ac_prog"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7886 LEX=$ac_cv_prog_LEX
7887 if test -n "$LEX"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7889 $as_echo "$LEX" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7896 test -n "$LEX" && break
7897 done
7898 test -n "$LEX" || LEX="$MISSING flex"
7900 case " $build_configdirs " in
7901 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7902 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7903 esac
7905 for ac_prog in flex
7907 # Extract the first word of "$ac_prog", so it can be a program name with args.
7908 set dummy $ac_prog; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if test "${ac_cv_prog_FLEX+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 if test -n "$FLEX"; then
7915 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7924 ac_cv_prog_FLEX="$ac_prog"
7925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7928 done
7929 done
7930 IFS=$as_save_IFS
7934 FLEX=$ac_cv_prog_FLEX
7935 if test -n "$FLEX"; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7937 $as_echo "$FLEX" >&6; }
7938 else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7944 test -n "$FLEX" && break
7945 done
7946 test -n "$FLEX" || FLEX="$MISSING flex"
7948 case " $build_configdirs " in
7949 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7950 esac
7952 for ac_prog in makeinfo
7954 # Extract the first word of "$ac_prog", so it can be a program name with args.
7955 set dummy $ac_prog; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$MAKEINFO"; then
7962 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_MAKEINFO="$ac_prog"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7975 done
7976 done
7977 IFS=$as_save_IFS
7981 MAKEINFO=$ac_cv_prog_MAKEINFO
7982 if test -n "$MAKEINFO"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7984 $as_echo "$MAKEINFO" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7991 test -n "$MAKEINFO" && break
7992 done
7993 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7995 case " $build_configdirs " in
7996 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7999 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8000 # higher, else we use the "missing" dummy.
8001 if ${MAKEINFO} --version \
8002 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8004 else
8005 MAKEINFO="$MISSING makeinfo"
8009 esac
8011 # FIXME: expect and dejagnu may become build tools?
8013 for ac_prog in expect
8015 # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$EXPECT"; then
8023 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_prog_EXPECT="$ac_prog"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8036 done
8037 done
8038 IFS=$as_save_IFS
8042 EXPECT=$ac_cv_prog_EXPECT
8043 if test -n "$EXPECT"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8045 $as_echo "$EXPECT" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8052 test -n "$EXPECT" && break
8053 done
8054 test -n "$EXPECT" || EXPECT="expect"
8056 case " $configdirs " in
8057 *" expect "*)
8058 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8060 esac
8062 for ac_prog in runtest
8064 # Extract the first word of "$ac_prog", so it can be a program name with args.
8065 set dummy $ac_prog; 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_RUNTEST+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 if test -n "$RUNTEST"; then
8072 ac_cv_prog_RUNTEST="$RUNTEST" # 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_RUNTEST="$ac_prog"
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 RUNTEST=$ac_cv_prog_RUNTEST
8092 if test -n "$RUNTEST"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8094 $as_echo "$RUNTEST" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8101 test -n "$RUNTEST" && break
8102 done
8103 test -n "$RUNTEST" || RUNTEST="runtest"
8105 case " $configdirs " in
8106 *" dejagnu "*)
8107 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8109 esac
8112 # Host tools.
8113 ncn_tool_prefix=
8114 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8115 ncn_target_tool_prefix=
8116 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8120 if test -n "$AR"; then
8121 ac_cv_prog_AR=$AR
8122 elif test -n "$ac_cv_prog_AR"; then
8123 AR=$ac_cv_prog_AR
8126 if test -n "$ac_cv_prog_AR"; then
8127 for ncn_progname in ar; do
8128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8129 set dummy ${ncn_progname}; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_AR+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 if test -n "$AR"; then
8136 ac_cv_prog_AR="$AR" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8141 IFS=$as_save_IFS
8142 test -z "$as_dir" && as_dir=.
8143 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145 ac_cv_prog_AR="${ncn_progname}"
8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 break 2
8149 done
8150 done
8151 IFS=$as_save_IFS
8155 AR=$ac_cv_prog_AR
8156 if test -n "$AR"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8158 $as_echo "$AR" >&6; }
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8165 done
8168 for ncn_progname in ar; do
8169 if test -n "$ncn_tool_prefix"; then
8170 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8171 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_AR+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 if test -n "$AR"; then
8178 ac_cv_prog_AR="$AR" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8191 done
8192 done
8193 IFS=$as_save_IFS
8197 AR=$ac_cv_prog_AR
8198 if test -n "$AR"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8200 $as_echo "$AR" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8208 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8210 set dummy ${ncn_progname}; ac_word=$2
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8212 $as_echo_n "checking for $ac_word... " >&6; }
8213 if test "${ac_cv_prog_AR+set}" = set; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 if test -n "$AR"; then
8217 ac_cv_prog_AR="$AR" # Let the user override the test.
8218 else
8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8220 for as_dir in $PATH
8222 IFS=$as_save_IFS
8223 test -z "$as_dir" && as_dir=.
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8226 ac_cv_prog_AR="${ncn_progname}"
8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 break 2
8230 done
8231 done
8232 IFS=$as_save_IFS
8236 AR=$ac_cv_prog_AR
8237 if test -n "$AR"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8239 $as_echo "$AR" >&6; }
8240 else
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8247 test -n "$ac_cv_prog_AR" && break
8248 done
8250 if test -z "$ac_cv_prog_AR" ; then
8251 set dummy ar
8252 if test $build = $host ; then
8253 AR="$2"
8254 else
8255 AR="${ncn_tool_prefix}$2"
8261 if test -n "$AS"; then
8262 ac_cv_prog_AS=$AS
8263 elif test -n "$ac_cv_prog_AS"; then
8264 AS=$ac_cv_prog_AS
8267 if test -n "$ac_cv_prog_AS"; then
8268 for ncn_progname in as; do
8269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8270 set dummy ${ncn_progname}; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if test "${ac_cv_prog_AS+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$AS"; then
8277 ac_cv_prog_AS="$AS" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_prog_AS="${ncn_progname}"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8290 done
8291 done
8292 IFS=$as_save_IFS
8296 AS=$ac_cv_prog_AS
8297 if test -n "$AS"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8299 $as_echo "$AS" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8306 done
8309 for ncn_progname in as; do
8310 if test -n "$ncn_tool_prefix"; then
8311 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8312 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if test "${ac_cv_prog_AS+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 if test -n "$AS"; then
8319 ac_cv_prog_AS="$AS" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8332 done
8333 done
8334 IFS=$as_save_IFS
8338 AS=$ac_cv_prog_AS
8339 if test -n "$AS"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8341 $as_echo "$AS" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8349 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8351 set dummy ${ncn_progname}; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if test "${ac_cv_prog_AS+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 if test -n "$AS"; then
8358 ac_cv_prog_AS="$AS" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_prog_AS="${ncn_progname}"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8371 done
8372 done
8373 IFS=$as_save_IFS
8377 AS=$ac_cv_prog_AS
8378 if test -n "$AS"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8380 $as_echo "$AS" >&6; }
8381 else
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8388 test -n "$ac_cv_prog_AS" && break
8389 done
8391 if test -z "$ac_cv_prog_AS" ; then
8392 set dummy as
8393 if test $build = $host ; then
8394 AS="$2"
8395 else
8396 AS="${ncn_tool_prefix}$2"
8402 if test -n "$DLLTOOL"; then
8403 ac_cv_prog_DLLTOOL=$DLLTOOL
8404 elif test -n "$ac_cv_prog_DLLTOOL"; then
8405 DLLTOOL=$ac_cv_prog_DLLTOOL
8408 if test -n "$ac_cv_prog_DLLTOOL"; then
8409 for ncn_progname in dlltool; do
8410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8411 set dummy ${ncn_progname}; ac_word=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 if test -n "$DLLTOOL"; then
8418 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8419 else
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 for as_dir in $PATH
8423 IFS=$as_save_IFS
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_prog_DLLTOOL="${ncn_progname}"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 break 2
8431 done
8432 done
8433 IFS=$as_save_IFS
8437 DLLTOOL=$ac_cv_prog_DLLTOOL
8438 if test -n "$DLLTOOL"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8440 $as_echo "$DLLTOOL" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8447 done
8450 for ncn_progname in dlltool; do
8451 if test -n "$ncn_tool_prefix"; then
8452 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8453 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 $as_echo_n "checking for $ac_word... " >&6; }
8456 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 if test -n "$DLLTOOL"; then
8460 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8473 done
8474 done
8475 IFS=$as_save_IFS
8479 DLLTOOL=$ac_cv_prog_DLLTOOL
8480 if test -n "$DLLTOOL"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8482 $as_echo "$DLLTOOL" >&6; }
8483 else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8490 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8492 set dummy ${ncn_progname}; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 if test -n "$DLLTOOL"; then
8499 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8504 IFS=$as_save_IFS
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8508 ac_cv_prog_DLLTOOL="${ncn_progname}"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 break 2
8512 done
8513 done
8514 IFS=$as_save_IFS
8518 DLLTOOL=$ac_cv_prog_DLLTOOL
8519 if test -n "$DLLTOOL"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8521 $as_echo "$DLLTOOL" >&6; }
8522 else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8529 test -n "$ac_cv_prog_DLLTOOL" && break
8530 done
8532 if test -z "$ac_cv_prog_DLLTOOL" ; then
8533 set dummy dlltool
8534 if test $build = $host ; then
8535 DLLTOOL="$2"
8536 else
8537 DLLTOOL="${ncn_tool_prefix}$2"
8543 if test -n "$LD"; then
8544 ac_cv_prog_LD=$LD
8545 elif test -n "$ac_cv_prog_LD"; then
8546 LD=$ac_cv_prog_LD
8549 if test -n "$ac_cv_prog_LD"; then
8550 for ncn_progname in ld; do
8551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8552 set dummy ${ncn_progname}; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if test "${ac_cv_prog_LD+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 if test -n "$LD"; then
8559 ac_cv_prog_LD="$LD" # Let the user override the test.
8560 else
8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8562 for as_dir in $PATH
8564 IFS=$as_save_IFS
8565 test -z "$as_dir" && as_dir=.
8566 for ac_exec_ext in '' $ac_executable_extensions; do
8567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8568 ac_cv_prog_LD="${ncn_progname}"
8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570 break 2
8572 done
8573 done
8574 IFS=$as_save_IFS
8578 LD=$ac_cv_prog_LD
8579 if test -n "$LD"; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8581 $as_echo "$LD" >&6; }
8582 else
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 $as_echo "no" >&6; }
8588 done
8591 for ncn_progname in ld; do
8592 if test -n "$ncn_tool_prefix"; then
8593 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8594 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 $as_echo_n "checking for $ac_word... " >&6; }
8597 if test "${ac_cv_prog_LD+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 if test -n "$LD"; then
8601 ac_cv_prog_LD="$LD" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8614 done
8615 done
8616 IFS=$as_save_IFS
8620 LD=$ac_cv_prog_LD
8621 if test -n "$LD"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8623 $as_echo "$LD" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8631 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8633 set dummy ${ncn_progname}; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if test "${ac_cv_prog_LD+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 if test -n "$LD"; then
8640 ac_cv_prog_LD="$LD" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8649 ac_cv_prog_LD="${ncn_progname}"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8653 done
8654 done
8655 IFS=$as_save_IFS
8659 LD=$ac_cv_prog_LD
8660 if test -n "$LD"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8662 $as_echo "$LD" >&6; }
8663 else
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8670 test -n "$ac_cv_prog_LD" && break
8671 done
8673 if test -z "$ac_cv_prog_LD" ; then
8674 set dummy ld
8675 if test $build = $host ; then
8676 LD="$2"
8677 else
8678 LD="${ncn_tool_prefix}$2"
8684 if test -n "$LIPO"; then
8685 ac_cv_prog_LIPO=$LIPO
8686 elif test -n "$ac_cv_prog_LIPO"; then
8687 LIPO=$ac_cv_prog_LIPO
8690 if test -n "$ac_cv_prog_LIPO"; then
8691 for ncn_progname in lipo; do
8692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8693 set dummy ${ncn_progname}; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if test "${ac_cv_prog_LIPO+set}" = set; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 if test -n "$LIPO"; then
8700 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8701 else
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8709 ac_cv_prog_LIPO="${ncn_progname}"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8713 done
8714 done
8715 IFS=$as_save_IFS
8719 LIPO=$ac_cv_prog_LIPO
8720 if test -n "$LIPO"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8722 $as_echo "$LIPO" >&6; }
8723 else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8729 done
8732 for ncn_progname in lipo; do
8733 if test -n "$ncn_tool_prefix"; then
8734 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8735 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if test "${ac_cv_prog_LIPO+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 if test -n "$LIPO"; then
8742 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8743 else
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8755 done
8756 done
8757 IFS=$as_save_IFS
8761 LIPO=$ac_cv_prog_LIPO
8762 if test -n "$LIPO"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8764 $as_echo "$LIPO" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8772 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8774 set dummy ${ncn_progname}; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if test "${ac_cv_prog_LIPO+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 if test -n "$LIPO"; then
8781 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8790 ac_cv_prog_LIPO="${ncn_progname}"
8791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8794 done
8795 done
8796 IFS=$as_save_IFS
8800 LIPO=$ac_cv_prog_LIPO
8801 if test -n "$LIPO"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8803 $as_echo "$LIPO" >&6; }
8804 else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8811 test -n "$ac_cv_prog_LIPO" && break
8812 done
8814 if test -z "$ac_cv_prog_LIPO" ; then
8815 set dummy lipo
8816 if test $build = $host ; then
8817 LIPO="$2"
8818 else
8819 LIPO="${ncn_tool_prefix}$2"
8825 if test -n "$NM"; then
8826 ac_cv_prog_NM=$NM
8827 elif test -n "$ac_cv_prog_NM"; then
8828 NM=$ac_cv_prog_NM
8831 if test -n "$ac_cv_prog_NM"; then
8832 for ncn_progname in nm; do
8833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8834 set dummy ${ncn_progname}; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if test "${ac_cv_prog_NM+set}" = set; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 if test -n "$NM"; then
8841 ac_cv_prog_NM="$NM" # Let the user override the test.
8842 else
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 for as_dir in $PATH
8846 IFS=$as_save_IFS
8847 test -z "$as_dir" && as_dir=.
8848 for ac_exec_ext in '' $ac_executable_extensions; do
8849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8850 ac_cv_prog_NM="${ncn_progname}"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8852 break 2
8854 done
8855 done
8856 IFS=$as_save_IFS
8860 NM=$ac_cv_prog_NM
8861 if test -n "$NM"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8863 $as_echo "$NM" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8870 done
8873 for ncn_progname in nm; do
8874 if test -n "$ncn_tool_prefix"; then
8875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8876 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if test "${ac_cv_prog_NM+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 if test -n "$NM"; then
8883 ac_cv_prog_NM="$NM" # Let the user override the test.
8884 else
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8896 done
8897 done
8898 IFS=$as_save_IFS
8902 NM=$ac_cv_prog_NM
8903 if test -n "$NM"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8905 $as_echo "$NM" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8913 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8915 set dummy ${ncn_progname}; ac_word=$2
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8917 $as_echo_n "checking for $ac_word... " >&6; }
8918 if test "${ac_cv_prog_NM+set}" = set; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 if test -n "$NM"; then
8922 ac_cv_prog_NM="$NM" # Let the user override the test.
8923 else
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 for as_dir in $PATH
8927 IFS=$as_save_IFS
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8931 ac_cv_prog_NM="${ncn_progname}"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 break 2
8935 done
8936 done
8937 IFS=$as_save_IFS
8941 NM=$ac_cv_prog_NM
8942 if test -n "$NM"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8944 $as_echo "$NM" >&6; }
8945 else
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8947 $as_echo "no" >&6; }
8952 test -n "$ac_cv_prog_NM" && break
8953 done
8955 if test -z "$ac_cv_prog_NM" ; then
8956 set dummy nm
8957 if test $build = $host ; then
8958 NM="$2"
8959 else
8960 NM="${ncn_tool_prefix}$2"
8966 if test -n "$RANLIB"; then
8967 ac_cv_prog_RANLIB=$RANLIB
8968 elif test -n "$ac_cv_prog_RANLIB"; then
8969 RANLIB=$ac_cv_prog_RANLIB
8972 if test -n "$ac_cv_prog_RANLIB"; then
8973 for ncn_progname in ranlib; do
8974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8975 set dummy ${ncn_progname}; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 if test -n "$RANLIB"; then
8982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8987 IFS=$as_save_IFS
8988 test -z "$as_dir" && as_dir=.
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8991 ac_cv_prog_RANLIB="${ncn_progname}"
8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 break 2
8995 done
8996 done
8997 IFS=$as_save_IFS
9001 RANLIB=$ac_cv_prog_RANLIB
9002 if test -n "$RANLIB"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9004 $as_echo "$RANLIB" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9011 done
9014 for ncn_progname in ranlib; do
9015 if test -n "$ncn_tool_prefix"; then
9016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 if test -n "$RANLIB"; then
9024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9025 else
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9029 IFS=$as_save_IFS
9030 test -z "$as_dir" && as_dir=.
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9033 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035 break 2
9037 done
9038 done
9039 IFS=$as_save_IFS
9043 RANLIB=$ac_cv_prog_RANLIB
9044 if test -n "$RANLIB"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9046 $as_echo "$RANLIB" >&6; }
9047 else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9054 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9056 set dummy ${ncn_progname}; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 if test -n "$RANLIB"; then
9063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9064 else
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072 ac_cv_prog_RANLIB="${ncn_progname}"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9076 done
9077 done
9078 IFS=$as_save_IFS
9082 RANLIB=$ac_cv_prog_RANLIB
9083 if test -n "$RANLIB"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9085 $as_echo "$RANLIB" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9093 test -n "$ac_cv_prog_RANLIB" && break
9094 done
9096 if test -z "$ac_cv_prog_RANLIB" ; then
9097 RANLIB="true"
9102 if test -n "$STRIP"; then
9103 ac_cv_prog_STRIP=$STRIP
9104 elif test -n "$ac_cv_prog_STRIP"; then
9105 STRIP=$ac_cv_prog_STRIP
9108 if test -n "$ac_cv_prog_STRIP"; then
9109 for ncn_progname in strip; do
9110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9111 set dummy ${ncn_progname}; ac_word=$2
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113 $as_echo_n "checking for $ac_word... " >&6; }
9114 if test "${ac_cv_prog_STRIP+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9117 if test -n "$STRIP"; then
9118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127 ac_cv_prog_STRIP="${ncn_progname}"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9131 done
9132 done
9133 IFS=$as_save_IFS
9137 STRIP=$ac_cv_prog_STRIP
9138 if test -n "$STRIP"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9140 $as_echo "$STRIP" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9147 done
9150 for ncn_progname in strip; do
9151 if test -n "$ncn_tool_prefix"; then
9152 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9153 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if test "${ac_cv_prog_STRIP+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 if test -n "$STRIP"; then
9160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9161 else
9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 for as_dir in $PATH
9165 IFS=$as_save_IFS
9166 test -z "$as_dir" && as_dir=.
9167 for ac_exec_ext in '' $ac_executable_extensions; do
9168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 break 2
9173 done
9174 done
9175 IFS=$as_save_IFS
9179 STRIP=$ac_cv_prog_STRIP
9180 if test -n "$STRIP"; then
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9182 $as_echo "$STRIP" >&6; }
9183 else
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 $as_echo "no" >&6; }
9190 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9192 set dummy ${ncn_progname}; ac_word=$2
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194 $as_echo_n "checking for $ac_word... " >&6; }
9195 if test "${ac_cv_prog_STRIP+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 if test -n "$STRIP"; then
9199 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9200 else
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $PATH
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
9207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9208 ac_cv_prog_STRIP="${ncn_progname}"
9209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 break 2
9212 done
9213 done
9214 IFS=$as_save_IFS
9218 STRIP=$ac_cv_prog_STRIP
9219 if test -n "$STRIP"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9221 $as_echo "$STRIP" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9229 test -n "$ac_cv_prog_STRIP" && break
9230 done
9232 if test -z "$ac_cv_prog_STRIP" ; then
9233 STRIP="true"
9238 if test -n "$WINDRES"; then
9239 ac_cv_prog_WINDRES=$WINDRES
9240 elif test -n "$ac_cv_prog_WINDRES"; then
9241 WINDRES=$ac_cv_prog_WINDRES
9244 if test -n "$ac_cv_prog_WINDRES"; then
9245 for ncn_progname in windres; do
9246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9247 set dummy ${ncn_progname}; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 if test -n "$WINDRES"; then
9254 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9263 ac_cv_prog_WINDRES="${ncn_progname}"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9267 done
9268 done
9269 IFS=$as_save_IFS
9273 WINDRES=$ac_cv_prog_WINDRES
9274 if test -n "$WINDRES"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9276 $as_echo "$WINDRES" >&6; }
9277 else
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9279 $as_echo "no" >&6; }
9283 done
9286 for ncn_progname in windres; do
9287 if test -n "$ncn_tool_prefix"; then
9288 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9289 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9291 $as_echo_n "checking for $ac_word... " >&6; }
9292 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 if test -n "$WINDRES"; then
9296 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9297 else
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9305 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 break 2
9309 done
9310 done
9311 IFS=$as_save_IFS
9315 WINDRES=$ac_cv_prog_WINDRES
9316 if test -n "$WINDRES"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9318 $as_echo "$WINDRES" >&6; }
9319 else
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9326 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9328 set dummy ${ncn_progname}; ac_word=$2
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 $as_echo_n "checking for $ac_word... " >&6; }
9331 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9332 $as_echo_n "(cached) " >&6
9333 else
9334 if test -n "$WINDRES"; then
9335 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9336 else
9337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338 for as_dir in $PATH
9340 IFS=$as_save_IFS
9341 test -z "$as_dir" && as_dir=.
9342 for ac_exec_ext in '' $ac_executable_extensions; do
9343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9344 ac_cv_prog_WINDRES="${ncn_progname}"
9345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9346 break 2
9348 done
9349 done
9350 IFS=$as_save_IFS
9354 WINDRES=$ac_cv_prog_WINDRES
9355 if test -n "$WINDRES"; then
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9357 $as_echo "$WINDRES" >&6; }
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9360 $as_echo "no" >&6; }
9365 test -n "$ac_cv_prog_WINDRES" && break
9366 done
9368 if test -z "$ac_cv_prog_WINDRES" ; then
9369 set dummy windres
9370 if test $build = $host ; then
9371 WINDRES="$2"
9372 else
9373 WINDRES="${ncn_tool_prefix}$2"
9379 if test -n "$WINDMC"; then
9380 ac_cv_prog_WINDMC=$WINDMC
9381 elif test -n "$ac_cv_prog_WINDMC"; then
9382 WINDMC=$ac_cv_prog_WINDMC
9385 if test -n "$ac_cv_prog_WINDMC"; then
9386 for ncn_progname in windmc; do
9387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9388 set dummy ${ncn_progname}; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 if test -n "$WINDMC"; then
9395 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9396 else
9397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398 for as_dir in $PATH
9400 IFS=$as_save_IFS
9401 test -z "$as_dir" && as_dir=.
9402 for ac_exec_ext in '' $ac_executable_extensions; do
9403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9404 ac_cv_prog_WINDMC="${ncn_progname}"
9405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406 break 2
9408 done
9409 done
9410 IFS=$as_save_IFS
9414 WINDMC=$ac_cv_prog_WINDMC
9415 if test -n "$WINDMC"; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9417 $as_echo "$WINDMC" >&6; }
9418 else
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9424 done
9427 for ncn_progname in windmc; do
9428 if test -n "$ncn_tool_prefix"; then
9429 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9430 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9432 $as_echo_n "checking for $ac_word... " >&6; }
9433 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 if test -n "$WINDMC"; then
9437 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9438 else
9439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440 for as_dir in $PATH
9442 IFS=$as_save_IFS
9443 test -z "$as_dir" && as_dir=.
9444 for ac_exec_ext in '' $ac_executable_extensions; do
9445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9446 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9448 break 2
9450 done
9451 done
9452 IFS=$as_save_IFS
9456 WINDMC=$ac_cv_prog_WINDMC
9457 if test -n "$WINDMC"; then
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9459 $as_echo "$WINDMC" >&6; }
9460 else
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9467 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9469 set dummy ${ncn_progname}; ac_word=$2
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9471 $as_echo_n "checking for $ac_word... " >&6; }
9472 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 if test -n "$WINDMC"; then
9476 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9477 else
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479 for as_dir in $PATH
9481 IFS=$as_save_IFS
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9485 ac_cv_prog_WINDMC="${ncn_progname}"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9487 break 2
9489 done
9490 done
9491 IFS=$as_save_IFS
9495 WINDMC=$ac_cv_prog_WINDMC
9496 if test -n "$WINDMC"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9498 $as_echo "$WINDMC" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9506 test -n "$ac_cv_prog_WINDMC" && break
9507 done
9509 if test -z "$ac_cv_prog_WINDMC" ; then
9510 set dummy windmc
9511 if test $build = $host ; then
9512 WINDMC="$2"
9513 else
9514 WINDMC="${ncn_tool_prefix}$2"
9520 if test -n "$OBJCOPY"; then
9521 ac_cv_prog_OBJCOPY=$OBJCOPY
9522 elif test -n "$ac_cv_prog_OBJCOPY"; then
9523 OBJCOPY=$ac_cv_prog_OBJCOPY
9526 if test -n "$ac_cv_prog_OBJCOPY"; then
9527 for ncn_progname in objcopy; do
9528 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9529 set dummy ${ncn_progname}; ac_word=$2
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9531 $as_echo_n "checking for $ac_word... " >&6; }
9532 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 if test -n "$OBJCOPY"; then
9536 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9537 else
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9541 IFS=$as_save_IFS
9542 test -z "$as_dir" && as_dir=.
9543 for ac_exec_ext in '' $ac_executable_extensions; do
9544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9545 ac_cv_prog_OBJCOPY="${ncn_progname}"
9546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 break 2
9549 done
9550 done
9551 IFS=$as_save_IFS
9555 OBJCOPY=$ac_cv_prog_OBJCOPY
9556 if test -n "$OBJCOPY"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9558 $as_echo "$OBJCOPY" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9565 done
9568 for ncn_progname in objcopy; do
9569 if test -n "$ncn_tool_prefix"; then
9570 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9571 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 if test -n "$OBJCOPY"; then
9578 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9579 else
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9591 done
9592 done
9593 IFS=$as_save_IFS
9597 OBJCOPY=$ac_cv_prog_OBJCOPY
9598 if test -n "$OBJCOPY"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9600 $as_echo "$OBJCOPY" >&6; }
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 $as_echo "no" >&6; }
9608 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9610 set dummy ${ncn_progname}; ac_word=$2
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 $as_echo_n "checking for $ac_word... " >&6; }
9613 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 if test -n "$OBJCOPY"; then
9617 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9618 else
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9622 IFS=$as_save_IFS
9623 test -z "$as_dir" && as_dir=.
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9626 ac_cv_prog_OBJCOPY="${ncn_progname}"
9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 break 2
9630 done
9631 done
9632 IFS=$as_save_IFS
9636 OBJCOPY=$ac_cv_prog_OBJCOPY
9637 if test -n "$OBJCOPY"; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9639 $as_echo "$OBJCOPY" >&6; }
9640 else
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9647 test -n "$ac_cv_prog_OBJCOPY" && break
9648 done
9650 if test -z "$ac_cv_prog_OBJCOPY" ; then
9651 set dummy objcopy
9652 if test $build = $host ; then
9653 OBJCOPY="$2"
9654 else
9655 OBJCOPY="${ncn_tool_prefix}$2"
9661 if test -n "$OBJDUMP"; then
9662 ac_cv_prog_OBJDUMP=$OBJDUMP
9663 elif test -n "$ac_cv_prog_OBJDUMP"; then
9664 OBJDUMP=$ac_cv_prog_OBJDUMP
9667 if test -n "$ac_cv_prog_OBJDUMP"; then
9668 for ncn_progname in objdump; do
9669 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9670 set dummy ${ncn_progname}; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 if test -n "$OBJDUMP"; then
9677 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9678 else
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9686 ac_cv_prog_OBJDUMP="${ncn_progname}"
9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 break 2
9690 done
9691 done
9692 IFS=$as_save_IFS
9696 OBJDUMP=$ac_cv_prog_OBJDUMP
9697 if test -n "$OBJDUMP"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9699 $as_echo "$OBJDUMP" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9706 done
9709 for ncn_progname in objdump; do
9710 if test -n "$ncn_tool_prefix"; then
9711 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9712 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 if test -n "$OBJDUMP"; then
9719 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9720 else
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $PATH
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9728 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 break 2
9732 done
9733 done
9734 IFS=$as_save_IFS
9738 OBJDUMP=$ac_cv_prog_OBJDUMP
9739 if test -n "$OBJDUMP"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9741 $as_echo "$OBJDUMP" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9749 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9751 set dummy ${ncn_progname}; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test -n "$OBJDUMP"; then
9758 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9759 else
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767 ac_cv_prog_OBJDUMP="${ncn_progname}"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9771 done
9772 done
9773 IFS=$as_save_IFS
9777 OBJDUMP=$ac_cv_prog_OBJDUMP
9778 if test -n "$OBJDUMP"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9780 $as_echo "$OBJDUMP" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9788 test -n "$ac_cv_prog_OBJDUMP" && break
9789 done
9791 if test -z "$ac_cv_prog_OBJDUMP" ; then
9792 set dummy objdump
9793 if test $build = $host ; then
9794 OBJDUMP="$2"
9795 else
9796 OBJDUMP="${ncn_tool_prefix}$2"
9802 if test -n "$READELF"; then
9803 ac_cv_prog_READELF=$READELF
9804 elif test -n "$ac_cv_prog_READELF"; then
9805 READELF=$ac_cv_prog_READELF
9808 if test -n "$ac_cv_prog_READELF"; then
9809 for ncn_progname in readelf; do
9810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9811 set dummy ${ncn_progname}; ac_word=$2
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813 $as_echo_n "checking for $ac_word... " >&6; }
9814 if test "${ac_cv_prog_READELF+set}" = set; then :
9815 $as_echo_n "(cached) " >&6
9816 else
9817 if test -n "$READELF"; then
9818 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9819 else
9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $PATH
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9827 ac_cv_prog_READELF="${ncn_progname}"
9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9829 break 2
9831 done
9832 done
9833 IFS=$as_save_IFS
9837 READELF=$ac_cv_prog_READELF
9838 if test -n "$READELF"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9840 $as_echo "$READELF" >&6; }
9841 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9847 done
9850 for ncn_progname in readelf; do
9851 if test -n "$ncn_tool_prefix"; then
9852 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9853 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9855 $as_echo_n "checking for $ac_word... " >&6; }
9856 if test "${ac_cv_prog_READELF+set}" = set; then :
9857 $as_echo_n "(cached) " >&6
9858 else
9859 if test -n "$READELF"; then
9860 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9861 else
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 for as_dir in $PATH
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9869 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 break 2
9873 done
9874 done
9875 IFS=$as_save_IFS
9879 READELF=$ac_cv_prog_READELF
9880 if test -n "$READELF"; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9882 $as_echo "$READELF" >&6; }
9883 else
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 $as_echo "no" >&6; }
9890 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9892 set dummy ${ncn_progname}; ac_word=$2
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9894 $as_echo_n "checking for $ac_word... " >&6; }
9895 if test "${ac_cv_prog_READELF+set}" = set; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 if test -n "$READELF"; then
9899 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9900 else
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9908 ac_cv_prog_READELF="${ncn_progname}"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9914 IFS=$as_save_IFS
9918 READELF=$ac_cv_prog_READELF
9919 if test -n "$READELF"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9921 $as_echo "$READELF" >&6; }
9922 else
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9929 test -n "$ac_cv_prog_READELF" && break
9930 done
9932 if test -z "$ac_cv_prog_READELF" ; then
9933 set dummy readelf
9934 if test $build = $host ; then
9935 READELF="$2"
9936 else
9937 READELF="${ncn_tool_prefix}$2"
9946 # Target tools.
9948 # Check whether --with-build-time-tools was given.
9949 if test "${with_build_time_tools+set}" = set; then :
9950 withval=$with_build_time_tools; case x"$withval" in
9951 x/*) ;;
9953 with_build_time_tools=
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9955 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9957 esac
9958 else
9959 with_build_time_tools=
9965 if test -n "$CC_FOR_TARGET"; then
9966 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9967 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9968 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9971 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9972 for ncn_progname in cc gcc; do
9973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9974 set dummy ${ncn_progname}; ac_word=$2
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976 $as_echo_n "checking for $ac_word... " >&6; }
9977 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9978 $as_echo_n "(cached) " >&6
9979 else
9980 if test -n "$CC_FOR_TARGET"; then
9981 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9982 else
9983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984 for as_dir in $PATH
9986 IFS=$as_save_IFS
9987 test -z "$as_dir" && as_dir=.
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9990 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 break 2
9994 done
9995 done
9996 IFS=$as_save_IFS
10000 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10001 if test -n "$CC_FOR_TARGET"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10003 $as_echo "$CC_FOR_TARGET" >&6; }
10004 else
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 $as_echo "no" >&6; }
10010 done
10013 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10014 for ncn_progname in cc gcc; do
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10016 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10017 if test -x $with_build_time_tools/${ncn_progname}; then
10018 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10020 $as_echo "yes" >&6; }
10021 break
10022 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10026 done
10029 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10030 for ncn_progname in cc gcc; do
10031 if test -n "$ncn_target_tool_prefix"; then
10032 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10033 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 if test -n "$CC_FOR_TARGET"; then
10040 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10041 else
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $PATH
10045 IFS=$as_save_IFS
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
10048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10049 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 break 2
10053 done
10054 done
10055 IFS=$as_save_IFS
10059 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10060 if test -n "$CC_FOR_TARGET"; then
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10062 $as_echo "$CC_FOR_TARGET" >&6; }
10063 else
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10065 $as_echo "no" >&6; }
10070 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10072 set dummy ${ncn_progname}; ac_word=$2
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074 $as_echo_n "checking for $ac_word... " >&6; }
10075 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 if test -n "$CC_FOR_TARGET"; then
10079 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10080 else
10081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082 for as_dir in $PATH
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10088 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10090 break 2
10092 done
10093 done
10094 IFS=$as_save_IFS
10098 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10099 if test -n "$CC_FOR_TARGET"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10101 $as_echo "$CC_FOR_TARGET" >&6; }
10102 else
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10109 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10110 done
10113 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10114 set dummy cc gcc
10115 if test $build = $target ; then
10116 CC_FOR_TARGET="$2"
10117 else
10118 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10120 else
10121 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10126 if test -n "$CXX_FOR_TARGET"; then
10127 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10128 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10129 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10132 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10133 for ncn_progname in c++ g++ cxx gxx; do
10134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10135 set dummy ${ncn_progname}; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 if test -n "$CXX_FOR_TARGET"; then
10142 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10143 else
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 for ac_exec_ext in '' $ac_executable_extensions; do
10150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10151 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 break 2
10155 done
10156 done
10157 IFS=$as_save_IFS
10161 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10162 if test -n "$CXX_FOR_TARGET"; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10164 $as_echo "$CXX_FOR_TARGET" >&6; }
10165 else
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10171 done
10174 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10175 for ncn_progname in c++ g++ cxx gxx; do
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10177 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10178 if test -x $with_build_time_tools/${ncn_progname}; then
10179 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10181 $as_echo "yes" >&6; }
10182 break
10183 else
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10187 done
10190 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10191 for ncn_progname in c++ g++ cxx gxx; do
10192 if test -n "$ncn_target_tool_prefix"; then
10193 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10194 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10199 else
10200 if test -n "$CXX_FOR_TARGET"; then
10201 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10202 else
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 break 2
10214 done
10215 done
10216 IFS=$as_save_IFS
10220 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10221 if test -n "$CXX_FOR_TARGET"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10223 $as_echo "$CXX_FOR_TARGET" >&6; }
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10231 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10233 set dummy ${ncn_progname}; ac_word=$2
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10235 $as_echo_n "checking for $ac_word... " >&6; }
10236 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 if test -n "$CXX_FOR_TARGET"; then
10240 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10241 else
10242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10243 for as_dir in $PATH
10245 IFS=$as_save_IFS
10246 test -z "$as_dir" && as_dir=.
10247 for ac_exec_ext in '' $ac_executable_extensions; do
10248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10249 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10251 break 2
10253 done
10254 done
10255 IFS=$as_save_IFS
10259 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10260 if test -n "$CXX_FOR_TARGET"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10262 $as_echo "$CXX_FOR_TARGET" >&6; }
10263 else
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10265 $as_echo "no" >&6; }
10270 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10271 done
10274 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10275 set dummy c++ g++ cxx gxx
10276 if test $build = $target ; then
10277 CXX_FOR_TARGET="$2"
10278 else
10279 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10281 else
10282 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10287 if test -n "$GCC_FOR_TARGET"; then
10288 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10289 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10290 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10293 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10294 for ncn_progname in gcc; do
10295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10296 set dummy ${ncn_progname}; ac_word=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 if test -n "$GCC_FOR_TARGET"; then
10303 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10304 else
10305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306 for as_dir in $PATH
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10312 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10314 break 2
10316 done
10317 done
10318 IFS=$as_save_IFS
10322 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10323 if test -n "$GCC_FOR_TARGET"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10325 $as_echo "$GCC_FOR_TARGET" >&6; }
10326 else
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328 $as_echo "no" >&6; }
10332 done
10335 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10336 for ncn_progname in gcc; do
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10338 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10339 if test -x $with_build_time_tools/${ncn_progname}; then
10340 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10342 $as_echo "yes" >&6; }
10343 break
10344 else
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10348 done
10351 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10352 for ncn_progname in gcc; do
10353 if test -n "$ncn_target_tool_prefix"; then
10354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10359 $as_echo_n "(cached) " >&6
10360 else
10361 if test -n "$GCC_FOR_TARGET"; then
10362 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10363 else
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10371 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10375 done
10376 done
10377 IFS=$as_save_IFS
10381 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10382 if test -n "$GCC_FOR_TARGET"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10384 $as_echo "$GCC_FOR_TARGET" >&6; }
10385 else
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10387 $as_echo "no" >&6; }
10392 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10394 set dummy ${ncn_progname}; ac_word=$2
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396 $as_echo_n "checking for $ac_word... " >&6; }
10397 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 if test -n "$GCC_FOR_TARGET"; then
10401 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10402 else
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10414 done
10415 done
10416 IFS=$as_save_IFS
10420 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10421 if test -n "$GCC_FOR_TARGET"; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10423 $as_echo "$GCC_FOR_TARGET" >&6; }
10424 else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }
10431 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10432 done
10435 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10436 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10437 else
10438 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10443 if test -n "$GCJ_FOR_TARGET"; then
10444 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10445 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10446 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10449 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10450 for ncn_progname in gcj; do
10451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10452 set dummy ${ncn_progname}; ac_word=$2
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10454 $as_echo_n "checking for $ac_word... " >&6; }
10455 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10456 $as_echo_n "(cached) " >&6
10457 else
10458 if test -n "$GCJ_FOR_TARGET"; then
10459 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10460 else
10461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462 for as_dir in $PATH
10464 IFS=$as_save_IFS
10465 test -z "$as_dir" && as_dir=.
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10468 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10470 break 2
10472 done
10473 done
10474 IFS=$as_save_IFS
10478 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10479 if test -n "$GCJ_FOR_TARGET"; then
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10481 $as_echo "$GCJ_FOR_TARGET" >&6; }
10482 else
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10484 $as_echo "no" >&6; }
10488 done
10491 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10492 for ncn_progname in gcj; do
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10494 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10495 if test -x $with_build_time_tools/${ncn_progname}; then
10496 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10498 $as_echo "yes" >&6; }
10499 break
10500 else
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; }
10504 done
10507 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10508 for ncn_progname in gcj; do
10509 if test -n "$ncn_target_tool_prefix"; then
10510 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10511 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10515 $as_echo_n "(cached) " >&6
10516 else
10517 if test -n "$GCJ_FOR_TARGET"; then
10518 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10519 else
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in $PATH
10523 IFS=$as_save_IFS
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10527 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10529 break 2
10531 done
10532 done
10533 IFS=$as_save_IFS
10537 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10538 if test -n "$GCJ_FOR_TARGET"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10540 $as_echo "$GCJ_FOR_TARGET" >&6; }
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10548 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10550 set dummy ${ncn_progname}; ac_word=$2
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552 $as_echo_n "checking for $ac_word... " >&6; }
10553 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 if test -n "$GCJ_FOR_TARGET"; then
10557 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10558 else
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10562 IFS=$as_save_IFS
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10566 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 break 2
10570 done
10571 done
10572 IFS=$as_save_IFS
10576 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10577 if test -n "$GCJ_FOR_TARGET"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10579 $as_echo "$GCJ_FOR_TARGET" >&6; }
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582 $as_echo "no" >&6; }
10587 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10588 done
10591 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10592 set dummy gcj
10593 if test $build = $target ; then
10594 GCJ_FOR_TARGET="$2"
10595 else
10596 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10598 else
10599 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10604 if test -n "$GFORTRAN_FOR_TARGET"; then
10605 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10606 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10607 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10610 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10611 for ncn_progname in gfortran; do
10612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10613 set dummy ${ncn_progname}; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 if test -n "$GFORTRAN_FOR_TARGET"; then
10620 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10621 else
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10629 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631 break 2
10633 done
10634 done
10635 IFS=$as_save_IFS
10639 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10640 if test -n "$GFORTRAN_FOR_TARGET"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10642 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10649 done
10652 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10653 for ncn_progname in gfortran; do
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10655 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10656 if test -x $with_build_time_tools/${ncn_progname}; then
10657 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10659 $as_echo "yes" >&6; }
10660 break
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10665 done
10668 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10669 for ncn_progname in gfortran; do
10670 if test -n "$ncn_target_tool_prefix"; then
10671 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10672 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 if test -n "$GFORTRAN_FOR_TARGET"; then
10679 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10680 else
10681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682 for as_dir in $PATH
10684 IFS=$as_save_IFS
10685 test -z "$as_dir" && as_dir=.
10686 for ac_exec_ext in '' $ac_executable_extensions; do
10687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10688 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 break 2
10692 done
10693 done
10694 IFS=$as_save_IFS
10698 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10699 if test -n "$GFORTRAN_FOR_TARGET"; then
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10701 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10702 else
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 $as_echo "no" >&6; }
10709 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10711 set dummy ${ncn_progname}; ac_word=$2
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713 $as_echo_n "checking for $ac_word... " >&6; }
10714 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 if test -n "$GFORTRAN_FOR_TARGET"; then
10718 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10719 else
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10727 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 break 2
10731 done
10732 done
10733 IFS=$as_save_IFS
10737 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10738 if test -n "$GFORTRAN_FOR_TARGET"; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10740 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10741 else
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10748 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10749 done
10752 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10753 set dummy gfortran
10754 if test $build = $target ; then
10755 GFORTRAN_FOR_TARGET="$2"
10756 else
10757 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10759 else
10760 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10765 if test -n "$GOC_FOR_TARGET"; then
10766 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10767 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10768 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10771 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10772 for ncn_progname in gccgo; do
10773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10774 set dummy ${ncn_progname}; ac_word=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 if test -n "$GOC_FOR_TARGET"; then
10781 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10782 else
10783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10784 for as_dir in $PATH
10786 IFS=$as_save_IFS
10787 test -z "$as_dir" && as_dir=.
10788 for ac_exec_ext in '' $ac_executable_extensions; do
10789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10790 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10792 break 2
10794 done
10795 done
10796 IFS=$as_save_IFS
10800 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10801 if test -n "$GOC_FOR_TARGET"; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10803 $as_echo "$GOC_FOR_TARGET" >&6; }
10804 else
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806 $as_echo "no" >&6; }
10810 done
10813 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10814 for ncn_progname in gccgo; do
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10816 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10817 if test -x $with_build_time_tools/${ncn_progname}; then
10818 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10820 $as_echo "yes" >&6; }
10821 break
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10826 done
10829 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10830 for ncn_progname in gccgo; do
10831 if test -n "$ncn_target_tool_prefix"; then
10832 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10833 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10835 $as_echo_n "checking for $ac_word... " >&6; }
10836 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 if test -n "$GOC_FOR_TARGET"; then
10840 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10841 else
10842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10843 for as_dir in $PATH
10845 IFS=$as_save_IFS
10846 test -z "$as_dir" && as_dir=.
10847 for ac_exec_ext in '' $ac_executable_extensions; do
10848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10849 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10851 break 2
10853 done
10854 done
10855 IFS=$as_save_IFS
10859 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10860 if test -n "$GOC_FOR_TARGET"; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10862 $as_echo "$GOC_FOR_TARGET" >&6; }
10863 else
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 $as_echo "no" >&6; }
10870 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10872 set dummy ${ncn_progname}; ac_word=$2
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10874 $as_echo_n "checking for $ac_word... " >&6; }
10875 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 if test -n "$GOC_FOR_TARGET"; then
10879 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10880 else
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10892 done
10893 done
10894 IFS=$as_save_IFS
10898 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10899 if test -n "$GOC_FOR_TARGET"; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10901 $as_echo "$GOC_FOR_TARGET" >&6; }
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10904 $as_echo "no" >&6; }
10909 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10910 done
10913 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10914 set dummy gccgo
10915 if test $build = $target ; then
10916 GOC_FOR_TARGET="$2"
10917 else
10918 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10920 else
10921 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10926 cat > conftest.c << \EOF
10927 #ifdef __GNUC__
10928 gcc_yay;
10929 #endif
10931 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10932 have_gcc_for_target=yes
10933 else
10934 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10935 have_gcc_for_target=no
10937 rm conftest.c
10942 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10943 if test -n "$with_build_time_tools"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10945 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10946 if test -x $with_build_time_tools/ar; then
10947 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10948 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10950 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10951 else
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953 $as_echo "no" >&6; }
10955 elif test $build != $host && test $have_gcc_for_target = yes; then
10956 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10957 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10958 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10961 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10962 # Extract the first word of "ar", so it can be a program name with args.
10963 set dummy ar; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 case $AR_FOR_TARGET in
10970 [\\/]* | ?:[\\/]*)
10971 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $gcc_cv_tool_dirs
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10981 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10983 break 2
10985 done
10986 done
10987 IFS=$as_save_IFS
10990 esac
10992 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10993 if test -n "$AR_FOR_TARGET"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10995 $as_echo "$AR_FOR_TARGET" >&6; }
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
11003 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11006 if test -n "$AR_FOR_TARGET"; then
11007 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11008 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11009 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11012 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11013 for ncn_progname in ar; do
11014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11015 set dummy ${ncn_progname}; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 if test -n "$AR_FOR_TARGET"; then
11022 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11023 else
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11033 break 2
11035 done
11036 done
11037 IFS=$as_save_IFS
11041 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11042 if test -n "$AR_FOR_TARGET"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11044 $as_echo "$AR_FOR_TARGET" >&6; }
11045 else
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11051 done
11054 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11055 for ncn_progname in ar; do
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11057 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11058 if test -x $with_build_time_tools/${ncn_progname}; then
11059 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11061 $as_echo "yes" >&6; }
11062 break
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065 $as_echo "no" >&6; }
11067 done
11070 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11071 for ncn_progname in ar; do
11072 if test -n "$ncn_target_tool_prefix"; then
11073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076 $as_echo_n "checking for $ac_word... " >&6; }
11077 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 if test -n "$AR_FOR_TARGET"; then
11081 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11082 else
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11090 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 break 2
11094 done
11095 done
11096 IFS=$as_save_IFS
11100 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11101 if test -n "$AR_FOR_TARGET"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11103 $as_echo "$AR_FOR_TARGET" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11111 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11113 set dummy ${ncn_progname}; ac_word=$2
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115 $as_echo_n "checking for $ac_word... " >&6; }
11116 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 if test -n "$AR_FOR_TARGET"; then
11120 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11121 else
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11129 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 break 2
11133 done
11134 done
11135 IFS=$as_save_IFS
11139 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11140 if test -n "$AR_FOR_TARGET"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11142 $as_echo "$AR_FOR_TARGET" >&6; }
11143 else
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145 $as_echo "no" >&6; }
11150 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11151 done
11154 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11155 set dummy ar
11156 if test $build = $target ; then
11157 AR_FOR_TARGET="$2"
11158 else
11159 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11161 else
11162 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11165 else
11166 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11172 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11173 if test -n "$with_build_time_tools"; then
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11175 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11176 if test -x $with_build_time_tools/as; then
11177 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11178 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11180 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11181 else
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11185 elif test $build != $host && test $have_gcc_for_target = yes; then
11186 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11187 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11188 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11191 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11192 # Extract the first word of "as", so it can be a program name with args.
11193 set dummy as; ac_word=$2
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195 $as_echo_n "checking for $ac_word... " >&6; }
11196 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 case $AS_FOR_TARGET in
11200 [\\/]* | ?:[\\/]*)
11201 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $gcc_cv_tool_dirs
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11215 done
11216 done
11217 IFS=$as_save_IFS
11220 esac
11222 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11223 if test -n "$AS_FOR_TARGET"; then
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11225 $as_echo "$AS_FOR_TARGET" >&6; }
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11233 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11236 if test -n "$AS_FOR_TARGET"; then
11237 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11238 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11239 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11242 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11243 for ncn_progname in as; do
11244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11245 set dummy ${ncn_progname}; ac_word=$2
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247 $as_echo_n "checking for $ac_word... " >&6; }
11248 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 if test -n "$AS_FOR_TARGET"; then
11252 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11253 else
11254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255 for as_dir in $PATH
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11265 done
11266 done
11267 IFS=$as_save_IFS
11271 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11272 if test -n "$AS_FOR_TARGET"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11274 $as_echo "$AS_FOR_TARGET" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11281 done
11284 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11285 for ncn_progname in as; do
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11287 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11288 if test -x $with_build_time_tools/${ncn_progname}; then
11289 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11291 $as_echo "yes" >&6; }
11292 break
11293 else
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295 $as_echo "no" >&6; }
11297 done
11300 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11301 for ncn_progname in as; do
11302 if test -n "$ncn_target_tool_prefix"; then
11303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11304 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306 $as_echo_n "checking for $ac_word... " >&6; }
11307 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 if test -n "$AS_FOR_TARGET"; then
11311 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11312 else
11313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314 for as_dir in $PATH
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11320 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11322 break 2
11324 done
11325 done
11326 IFS=$as_save_IFS
11330 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11331 if test -n "$AS_FOR_TARGET"; then
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11333 $as_echo "$AS_FOR_TARGET" >&6; }
11334 else
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336 $as_echo "no" >&6; }
11341 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11343 set dummy ${ncn_progname}; ac_word=$2
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 $as_echo_n "checking for $ac_word... " >&6; }
11346 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
11348 else
11349 if test -n "$AS_FOR_TARGET"; then
11350 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11351 else
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11363 done
11364 done
11365 IFS=$as_save_IFS
11369 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11370 if test -n "$AS_FOR_TARGET"; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11372 $as_echo "$AS_FOR_TARGET" >&6; }
11373 else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11380 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11381 done
11384 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11385 set dummy as
11386 if test $build = $target ; then
11387 AS_FOR_TARGET="$2"
11388 else
11389 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11391 else
11392 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11395 else
11396 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11402 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11403 if test -n "$with_build_time_tools"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11405 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11406 if test -x $with_build_time_tools/dlltool; then
11407 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11408 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11410 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11411 else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11415 elif test $build != $host && test $have_gcc_for_target = yes; then
11416 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11417 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11418 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11421 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11422 # Extract the first word of "dlltool", so it can be a program name with args.
11423 set dummy dlltool; ac_word=$2
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; }
11426 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 case $DLLTOOL_FOR_TARGET in
11430 [\\/]* | ?:[\\/]*)
11431 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $gcc_cv_tool_dirs
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2
11445 done
11446 done
11447 IFS=$as_save_IFS
11450 esac
11452 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11453 if test -n "$DLLTOOL_FOR_TARGET"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11455 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11463 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11466 if test -n "$DLLTOOL_FOR_TARGET"; then
11467 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11468 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11469 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11472 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11473 for ncn_progname in dlltool; do
11474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11475 set dummy ${ncn_progname}; ac_word=$2
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 $as_echo_n "checking for $ac_word... " >&6; }
11478 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 if test -n "$DLLTOOL_FOR_TARGET"; then
11482 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11483 else
11484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485 for as_dir in $PATH
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11491 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11495 done
11496 done
11497 IFS=$as_save_IFS
11501 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11502 if test -n "$DLLTOOL_FOR_TARGET"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11504 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507 $as_echo "no" >&6; }
11511 done
11514 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11515 for ncn_progname in dlltool; do
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11517 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11518 if test -x $with_build_time_tools/${ncn_progname}; then
11519 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11522 break
11523 else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11527 done
11530 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11531 for ncn_progname in dlltool; do
11532 if test -n "$ncn_target_tool_prefix"; then
11533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11534 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536 $as_echo_n "checking for $ac_word... " >&6; }
11537 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11538 $as_echo_n "(cached) " >&6
11539 else
11540 if test -n "$DLLTOOL_FOR_TARGET"; then
11541 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11542 else
11543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544 for as_dir in $PATH
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11550 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11554 done
11555 done
11556 IFS=$as_save_IFS
11560 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11561 if test -n "$DLLTOOL_FOR_TARGET"; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11563 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11564 else
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 $as_echo "no" >&6; }
11571 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11573 set dummy ${ncn_progname}; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 if test -n "$DLLTOOL_FOR_TARGET"; then
11580 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11581 else
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11593 done
11594 done
11595 IFS=$as_save_IFS
11599 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11600 if test -n "$DLLTOOL_FOR_TARGET"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11602 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11610 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11611 done
11614 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11615 set dummy dlltool
11616 if test $build = $target ; then
11617 DLLTOOL_FOR_TARGET="$2"
11618 else
11619 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11621 else
11622 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11625 else
11626 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11632 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11633 if test -n "$with_build_time_tools"; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11635 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11636 if test -x $with_build_time_tools/ld; then
11637 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11638 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11640 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11645 elif test $build != $host && test $have_gcc_for_target = yes; then
11646 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11647 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11648 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11651 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11652 # Extract the first word of "ld", so it can be a program name with args.
11653 set dummy ld; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655 $as_echo_n "checking for $ac_word... " >&6; }
11656 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 case $LD_FOR_TARGET in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $gcc_cv_tool_dirs
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11680 esac
11682 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11683 if test -n "$LD_FOR_TARGET"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11685 $as_echo "$LD_FOR_TARGET" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11693 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11696 if test -n "$LD_FOR_TARGET"; then
11697 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11698 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11699 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11702 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11703 for ncn_progname in ld; do
11704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11705 set dummy ${ncn_progname}; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 if test -n "$LD_FOR_TARGET"; then
11712 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11713 else
11714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715 for as_dir in $PATH
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11725 done
11726 done
11727 IFS=$as_save_IFS
11731 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11732 if test -n "$LD_FOR_TARGET"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11734 $as_echo "$LD_FOR_TARGET" >&6; }
11735 else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737 $as_echo "no" >&6; }
11741 done
11744 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11745 for ncn_progname in ld; do
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11747 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11748 if test -x $with_build_time_tools/${ncn_progname}; then
11749 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751 $as_echo "yes" >&6; }
11752 break
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11757 done
11760 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11761 for ncn_progname in ld; do
11762 if test -n "$ncn_target_tool_prefix"; then
11763 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11764 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11770 if test -n "$LD_FOR_TARGET"; then
11771 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11772 else
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 break 2
11784 done
11785 done
11786 IFS=$as_save_IFS
11790 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11791 if test -n "$LD_FOR_TARGET"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11793 $as_echo "$LD_FOR_TARGET" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11801 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11803 set dummy ${ncn_progname}; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 if test -n "$LD_FOR_TARGET"; then
11810 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11811 else
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813 for as_dir in $PATH
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11819 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 break 2
11823 done
11824 done
11825 IFS=$as_save_IFS
11829 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11830 if test -n "$LD_FOR_TARGET"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11832 $as_echo "$LD_FOR_TARGET" >&6; }
11833 else
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11840 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11841 done
11844 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11845 set dummy ld
11846 if test $build = $target ; then
11847 LD_FOR_TARGET="$2"
11848 else
11849 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11851 else
11852 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11855 else
11856 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11862 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11863 if test -n "$with_build_time_tools"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11865 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11866 if test -x $with_build_time_tools/lipo; then
11867 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11868 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11870 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 $as_echo "no" >&6; }
11875 elif test $build != $host && test $have_gcc_for_target = yes; then
11876 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11877 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11878 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11881 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11882 # Extract the first word of "lipo", so it can be a program name with args.
11883 set dummy lipo; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 case $LIPO_FOR_TARGET in
11890 [\\/]* | ?:[\\/]*)
11891 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $gcc_cv_tool_dirs
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11905 done
11906 done
11907 IFS=$as_save_IFS
11910 esac
11912 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11913 if test -n "$LIPO_FOR_TARGET"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11915 $as_echo "$LIPO_FOR_TARGET" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11923 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11926 if test -n "$LIPO_FOR_TARGET"; then
11927 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11928 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11929 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11932 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11933 for ncn_progname in lipo; do
11934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11935 set dummy ${ncn_progname}; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 if test -n "$LIPO_FOR_TARGET"; then
11942 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11943 else
11944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945 for as_dir in $PATH
11947 IFS=$as_save_IFS
11948 test -z "$as_dir" && as_dir=.
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11951 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11953 break 2
11955 done
11956 done
11957 IFS=$as_save_IFS
11961 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11962 if test -n "$LIPO_FOR_TARGET"; then
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11964 $as_echo "$LIPO_FOR_TARGET" >&6; }
11965 else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11971 done
11974 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11975 for ncn_progname in lipo; do
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11977 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11978 if test -x $with_build_time_tools/${ncn_progname}; then
11979 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981 $as_echo "yes" >&6; }
11982 break
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11987 done
11990 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11991 for ncn_progname in lipo; do
11992 if test -n "$ncn_target_tool_prefix"; then
11993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11994 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996 $as_echo_n "checking for $ac_word... " >&6; }
11997 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 if test -n "$LIPO_FOR_TARGET"; then
12001 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12002 else
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12010 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12014 done
12015 done
12016 IFS=$as_save_IFS
12020 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12021 if test -n "$LIPO_FOR_TARGET"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12023 $as_echo "$LIPO_FOR_TARGET" >&6; }
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12031 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12033 set dummy ${ncn_progname}; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 if test -n "$LIPO_FOR_TARGET"; then
12040 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12041 else
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12053 done
12054 done
12055 IFS=$as_save_IFS
12059 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12060 if test -n "$LIPO_FOR_TARGET"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12062 $as_echo "$LIPO_FOR_TARGET" >&6; }
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12070 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12071 done
12074 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12075 set dummy lipo
12076 if test $build = $target ; then
12077 LIPO_FOR_TARGET="$2"
12078 else
12079 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12081 else
12082 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12085 else
12086 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12092 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12093 if test -n "$with_build_time_tools"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12095 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12096 if test -x $with_build_time_tools/nm; then
12097 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12098 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12100 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103 $as_echo "no" >&6; }
12105 elif test $build != $host && test $have_gcc_for_target = yes; then
12106 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12107 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12108 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12111 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12112 # Extract the first word of "nm", so it can be a program name with args.
12113 set dummy nm; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115 $as_echo_n "checking for $ac_word... " >&6; }
12116 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 case $NM_FOR_TARGET in
12120 [\\/]* | ?:[\\/]*)
12121 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $gcc_cv_tool_dirs
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12135 done
12136 done
12137 IFS=$as_save_IFS
12140 esac
12142 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12143 if test -n "$NM_FOR_TARGET"; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12145 $as_echo "$NM_FOR_TARGET" >&6; }
12146 else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148 $as_echo "no" >&6; }
12153 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12156 if test -n "$NM_FOR_TARGET"; then
12157 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12158 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12159 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12162 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12163 for ncn_progname in nm; do
12164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12165 set dummy ${ncn_progname}; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 if test -n "$NM_FOR_TARGET"; then
12172 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12173 else
12174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175 for as_dir in $PATH
12177 IFS=$as_save_IFS
12178 test -z "$as_dir" && as_dir=.
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12181 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12183 break 2
12185 done
12186 done
12187 IFS=$as_save_IFS
12191 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12192 if test -n "$NM_FOR_TARGET"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12194 $as_echo "$NM_FOR_TARGET" >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197 $as_echo "no" >&6; }
12201 done
12204 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12205 for ncn_progname in nm; do
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12207 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12208 if test -x $with_build_time_tools/${ncn_progname}; then
12209 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12211 $as_echo "yes" >&6; }
12212 break
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12217 done
12220 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12221 for ncn_progname in nm; do
12222 if test -n "$ncn_target_tool_prefix"; then
12223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12224 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test -n "$NM_FOR_TARGET"; then
12231 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12232 else
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12244 done
12245 done
12246 IFS=$as_save_IFS
12250 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12251 if test -n "$NM_FOR_TARGET"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12253 $as_echo "$NM_FOR_TARGET" >&6; }
12254 else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12261 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12263 set dummy ${ncn_progname}; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 if test -n "$NM_FOR_TARGET"; then
12270 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12271 else
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12283 done
12284 done
12285 IFS=$as_save_IFS
12289 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12290 if test -n "$NM_FOR_TARGET"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12292 $as_echo "$NM_FOR_TARGET" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12300 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12301 done
12304 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12305 set dummy nm
12306 if test $build = $target ; then
12307 NM_FOR_TARGET="$2"
12308 else
12309 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12311 else
12312 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12315 else
12316 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12322 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12323 if test -n "$with_build_time_tools"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12325 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12326 if test -x $with_build_time_tools/objcopy; then
12327 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12328 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12330 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12335 elif test $build != $host && test $have_gcc_for_target = yes; then
12336 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12337 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12338 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12341 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12342 # Extract the first word of "objcopy", so it can be a program name with args.
12343 set dummy objcopy; ac_word=$2
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345 $as_echo_n "checking for $ac_word... " >&6; }
12346 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 case $OBJCOPY_FOR_TARGET in
12350 [\\/]* | ?:[\\/]*)
12351 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $gcc_cv_tool_dirs
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12361 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12365 done
12366 done
12367 IFS=$as_save_IFS
12370 esac
12372 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12373 if test -n "$OBJCOPY_FOR_TARGET"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12375 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12383 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12386 if test -n "$OBJCOPY_FOR_TARGET"; then
12387 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12388 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12389 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12392 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12393 for ncn_progname in objcopy; do
12394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12395 set dummy ${ncn_progname}; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 if test -n "$OBJCOPY_FOR_TARGET"; then
12402 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12403 else
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12411 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 break 2
12415 done
12416 done
12417 IFS=$as_save_IFS
12421 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12422 if test -n "$OBJCOPY_FOR_TARGET"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12424 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427 $as_echo "no" >&6; }
12431 done
12434 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12435 for ncn_progname in objcopy; do
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12437 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12438 if test -x $with_build_time_tools/${ncn_progname}; then
12439 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12442 break
12443 else
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12447 done
12450 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12451 for ncn_progname in objcopy; do
12452 if test -n "$ncn_target_tool_prefix"; then
12453 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12454 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456 $as_echo_n "checking for $ac_word... " >&6; }
12457 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 if test -n "$OBJCOPY_FOR_TARGET"; then
12461 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12474 done
12475 done
12476 IFS=$as_save_IFS
12480 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12481 if test -n "$OBJCOPY_FOR_TARGET"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12483 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12484 else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12491 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12493 set dummy ${ncn_progname}; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 if test -n "$OBJCOPY_FOR_TARGET"; then
12500 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12501 else
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511 break 2
12513 done
12514 done
12515 IFS=$as_save_IFS
12519 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12520 if test -n "$OBJCOPY_FOR_TARGET"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12522 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12523 else
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12530 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12531 done
12534 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12535 set dummy objcopy
12536 if test $build = $target ; then
12537 OBJCOPY_FOR_TARGET="$2"
12538 else
12539 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12541 else
12542 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12545 else
12546 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12552 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12553 if test -n "$with_build_time_tools"; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12555 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12556 if test -x $with_build_time_tools/objdump; then
12557 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12558 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12560 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12565 elif test $build != $host && test $have_gcc_for_target = yes; then
12566 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12567 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12568 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12571 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12572 # Extract the first word of "objdump", so it can be a program name with args.
12573 set dummy objdump; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575 $as_echo_n "checking for $ac_word... " >&6; }
12576 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 case $OBJDUMP_FOR_TARGET in
12580 [\\/]* | ?:[\\/]*)
12581 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $gcc_cv_tool_dirs
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12593 break 2
12595 done
12596 done
12597 IFS=$as_save_IFS
12600 esac
12602 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12603 if test -n "$OBJDUMP_FOR_TARGET"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12605 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12613 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12616 if test -n "$OBJDUMP_FOR_TARGET"; then
12617 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12618 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12619 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12622 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12623 for ncn_progname in objdump; do
12624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12625 set dummy ${ncn_progname}; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 if test -n "$OBJDUMP_FOR_TARGET"; then
12632 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12633 else
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12641 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643 break 2
12645 done
12646 done
12647 IFS=$as_save_IFS
12651 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12652 if test -n "$OBJDUMP_FOR_TARGET"; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12654 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12655 else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657 $as_echo "no" >&6; }
12661 done
12664 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12665 for ncn_progname in objdump; do
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12667 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12668 if test -x $with_build_time_tools/${ncn_progname}; then
12669 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12671 $as_echo "yes" >&6; }
12672 break
12673 else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12677 done
12680 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12681 for ncn_progname in objdump; do
12682 if test -n "$ncn_target_tool_prefix"; then
12683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12684 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12686 $as_echo_n "checking for $ac_word... " >&6; }
12687 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12688 $as_echo_n "(cached) " >&6
12689 else
12690 if test -n "$OBJDUMP_FOR_TARGET"; then
12691 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12692 else
12693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
12698 for ac_exec_ext in '' $ac_executable_extensions; do
12699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12700 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702 break 2
12704 done
12705 done
12706 IFS=$as_save_IFS
12710 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12711 if test -n "$OBJDUMP_FOR_TARGET"; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12713 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12721 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12723 set dummy ${ncn_progname}; ac_word=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 if test -n "$OBJDUMP_FOR_TARGET"; then
12730 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12731 else
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741 break 2
12743 done
12744 done
12745 IFS=$as_save_IFS
12749 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12750 if test -n "$OBJDUMP_FOR_TARGET"; then
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12752 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755 $as_echo "no" >&6; }
12760 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12761 done
12764 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12765 set dummy objdump
12766 if test $build = $target ; then
12767 OBJDUMP_FOR_TARGET="$2"
12768 else
12769 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12771 else
12772 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12775 else
12776 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12782 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12783 if test -n "$with_build_time_tools"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12785 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12786 if test -x $with_build_time_tools/ranlib; then
12787 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12788 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12790 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793 $as_echo "no" >&6; }
12795 elif test $build != $host && test $have_gcc_for_target = yes; then
12796 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12797 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12798 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12801 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12802 # Extract the first word of "ranlib", so it can be a program name with args.
12803 set dummy ranlib; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 case $RANLIB_FOR_TARGET in
12810 [\\/]* | ?:[\\/]*)
12811 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815 for as_dir in $gcc_cv_tool_dirs
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12821 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 break 2
12825 done
12826 done
12827 IFS=$as_save_IFS
12830 esac
12832 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12833 if test -n "$RANLIB_FOR_TARGET"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12835 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12836 else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12843 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12846 if test -n "$RANLIB_FOR_TARGET"; then
12847 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12848 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12849 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12852 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12853 for ncn_progname in ranlib; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855 set dummy ${ncn_progname}; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 if test -n "$RANLIB_FOR_TARGET"; then
12862 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12863 else
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12871 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 break 2
12875 done
12876 done
12877 IFS=$as_save_IFS
12881 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12882 if test -n "$RANLIB_FOR_TARGET"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12884 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887 $as_echo "no" >&6; }
12891 done
12894 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12895 for ncn_progname in ranlib; do
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12897 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12898 if test -x $with_build_time_tools/${ncn_progname}; then
12899 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901 $as_echo "yes" >&6; }
12902 break
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12907 done
12910 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12911 for ncn_progname in ranlib; do
12912 if test -n "$ncn_target_tool_prefix"; then
12913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12914 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916 $as_echo_n "checking for $ac_word... " >&6; }
12917 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 if test -n "$RANLIB_FOR_TARGET"; then
12921 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12922 else
12923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924 for as_dir in $PATH
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12930 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 break 2
12934 done
12935 done
12936 IFS=$as_save_IFS
12940 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12941 if test -n "$RANLIB_FOR_TARGET"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12943 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12944 else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12951 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12953 set dummy ${ncn_progname}; ac_word=$2
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 if test -n "$RANLIB_FOR_TARGET"; then
12960 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12973 done
12974 done
12975 IFS=$as_save_IFS
12979 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12980 if test -n "$RANLIB_FOR_TARGET"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12982 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12990 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12991 done
12994 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12995 set dummy ranlib
12996 if test $build = $target ; then
12997 RANLIB_FOR_TARGET="$2"
12998 else
12999 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13001 else
13002 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13005 else
13006 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13012 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13013 if test -n "$with_build_time_tools"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13015 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13016 if test -x $with_build_time_tools/readelf; then
13017 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13018 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13020 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023 $as_echo "no" >&6; }
13025 elif test $build != $host && test $have_gcc_for_target = yes; then
13026 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13027 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13028 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13031 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13032 # Extract the first word of "readelf", so it can be a program name with args.
13033 set dummy readelf; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 case $READELF_FOR_TARGET in
13040 [\\/]* | ?:[\\/]*)
13041 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $gcc_cv_tool_dirs
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13051 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13055 done
13056 done
13057 IFS=$as_save_IFS
13060 esac
13062 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13063 if test -n "$READELF_FOR_TARGET"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13065 $as_echo "$READELF_FOR_TARGET" >&6; }
13066 else
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13073 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13076 if test -n "$READELF_FOR_TARGET"; then
13077 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13078 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13079 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13082 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13083 for ncn_progname in readelf; do
13084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13085 set dummy ${ncn_progname}; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 if test -n "$READELF_FOR_TARGET"; then
13092 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13093 else
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13105 done
13106 done
13107 IFS=$as_save_IFS
13111 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13112 if test -n "$READELF_FOR_TARGET"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13114 $as_echo "$READELF_FOR_TARGET" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13121 done
13124 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13125 for ncn_progname in readelf; do
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13127 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13128 if test -x $with_build_time_tools/${ncn_progname}; then
13129 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131 $as_echo "yes" >&6; }
13132 break
13133 else
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13137 done
13140 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13141 for ncn_progname in readelf; do
13142 if test -n "$ncn_target_tool_prefix"; then
13143 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13144 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 if test -n "$READELF_FOR_TARGET"; then
13151 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13152 else
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13164 done
13165 done
13166 IFS=$as_save_IFS
13170 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13171 if test -n "$READELF_FOR_TARGET"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13173 $as_echo "$READELF_FOR_TARGET" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13181 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13183 set dummy ${ncn_progname}; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 if test -n "$READELF_FOR_TARGET"; then
13190 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13191 else
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13209 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13210 if test -n "$READELF_FOR_TARGET"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13212 $as_echo "$READELF_FOR_TARGET" >&6; }
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13220 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13221 done
13224 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13225 set dummy readelf
13226 if test $build = $target ; then
13227 READELF_FOR_TARGET="$2"
13228 else
13229 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13231 else
13232 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13235 else
13236 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13242 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13243 if test -n "$with_build_time_tools"; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13245 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13246 if test -x $with_build_time_tools/strip; then
13247 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13248 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13250 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13255 elif test $build != $host && test $have_gcc_for_target = yes; then
13256 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13257 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13258 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13261 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13262 # Extract the first word of "strip", so it can be a program name with args.
13263 set dummy strip; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 case $STRIP_FOR_TARGET in
13270 [\\/]* | ?:[\\/]*)
13271 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $gcc_cv_tool_dirs
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13285 done
13286 done
13287 IFS=$as_save_IFS
13290 esac
13292 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13293 if test -n "$STRIP_FOR_TARGET"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13295 $as_echo "$STRIP_FOR_TARGET" >&6; }
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298 $as_echo "no" >&6; }
13303 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13306 if test -n "$STRIP_FOR_TARGET"; then
13307 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13308 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13309 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13312 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13313 for ncn_progname in strip; do
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13315 set dummy ${ncn_progname}; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$STRIP_FOR_TARGET"; then
13322 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13335 done
13336 done
13337 IFS=$as_save_IFS
13341 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13342 if test -n "$STRIP_FOR_TARGET"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13344 $as_echo "$STRIP_FOR_TARGET" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13351 done
13354 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13355 for ncn_progname in strip; do
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13357 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13358 if test -x $with_build_time_tools/${ncn_progname}; then
13359 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361 $as_echo "yes" >&6; }
13362 break
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365 $as_echo "no" >&6; }
13367 done
13370 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13371 for ncn_progname in strip; do
13372 if test -n "$ncn_target_tool_prefix"; then
13373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13374 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376 $as_echo_n "checking for $ac_word... " >&6; }
13377 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 if test -n "$STRIP_FOR_TARGET"; then
13381 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13382 else
13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 for as_dir in $PATH
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13390 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13392 break 2
13394 done
13395 done
13396 IFS=$as_save_IFS
13400 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13401 if test -n "$STRIP_FOR_TARGET"; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13403 $as_echo "$STRIP_FOR_TARGET" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13411 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13413 set dummy ${ncn_progname}; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415 $as_echo_n "checking for $ac_word... " >&6; }
13416 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 if test -n "$STRIP_FOR_TARGET"; then
13420 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13421 else
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13429 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13433 done
13434 done
13435 IFS=$as_save_IFS
13439 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13440 if test -n "$STRIP_FOR_TARGET"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13442 $as_echo "$STRIP_FOR_TARGET" >&6; }
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13450 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13451 done
13454 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13455 set dummy strip
13456 if test $build = $target ; then
13457 STRIP_FOR_TARGET="$2"
13458 else
13459 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13461 else
13462 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13465 else
13466 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13472 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13473 if test -n "$with_build_time_tools"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13475 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13476 if test -x $with_build_time_tools/windres; then
13477 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13478 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13480 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13485 elif test $build != $host && test $have_gcc_for_target = yes; then
13486 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13487 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13488 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13491 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13492 # Extract the first word of "windres", so it can be a program name with args.
13493 set dummy windres; ac_word=$2
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495 $as_echo_n "checking for $ac_word... " >&6; }
13496 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13499 case $WINDRES_FOR_TARGET in
13500 [\\/]* | ?:[\\/]*)
13501 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505 for as_dir in $gcc_cv_tool_dirs
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513 break 2
13515 done
13516 done
13517 IFS=$as_save_IFS
13520 esac
13522 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13523 if test -n "$WINDRES_FOR_TARGET"; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13525 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13526 else
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528 $as_echo "no" >&6; }
13533 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13536 if test -n "$WINDRES_FOR_TARGET"; then
13537 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13538 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13539 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13542 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13543 for ncn_progname in windres; do
13544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13545 set dummy ${ncn_progname}; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 if test -n "$WINDRES_FOR_TARGET"; then
13552 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13553 else
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13561 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13563 break 2
13565 done
13566 done
13567 IFS=$as_save_IFS
13571 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13572 if test -n "$WINDRES_FOR_TARGET"; then
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13574 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13575 else
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577 $as_echo "no" >&6; }
13581 done
13584 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13585 for ncn_progname in windres; do
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13587 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13588 if test -x $with_build_time_tools/${ncn_progname}; then
13589 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13592 break
13593 else
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13597 done
13600 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13601 for ncn_progname in windres; do
13602 if test -n "$ncn_target_tool_prefix"; then
13603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13604 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606 $as_echo_n "checking for $ac_word... " >&6; }
13607 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 if test -n "$WINDRES_FOR_TARGET"; then
13611 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13612 else
13613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13620 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13624 done
13625 done
13626 IFS=$as_save_IFS
13630 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13631 if test -n "$WINDRES_FOR_TARGET"; then
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13633 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13634 else
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636 $as_echo "no" >&6; }
13641 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13643 set dummy ${ncn_progname}; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 if test -n "$WINDRES_FOR_TARGET"; then
13650 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13659 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661 break 2
13663 done
13664 done
13665 IFS=$as_save_IFS
13669 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13670 if test -n "$WINDRES_FOR_TARGET"; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13672 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13673 else
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13680 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13681 done
13684 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13685 set dummy windres
13686 if test $build = $target ; then
13687 WINDRES_FOR_TARGET="$2"
13688 else
13689 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13691 else
13692 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13695 else
13696 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13702 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13703 if test -n "$with_build_time_tools"; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13705 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13706 if test -x $with_build_time_tools/windmc; then
13707 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13708 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13710 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13711 else
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713 $as_echo "no" >&6; }
13715 elif test $build != $host && test $have_gcc_for_target = yes; then
13716 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13717 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13718 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13721 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13722 # Extract the first word of "windmc", so it can be a program name with args.
13723 set dummy windmc; ac_word=$2
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13725 $as_echo_n "checking for $ac_word... " >&6; }
13726 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 case $WINDMC_FOR_TARGET in
13730 [\\/]* | ?:[\\/]*)
13731 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $gcc_cv_tool_dirs
13737 IFS=$as_save_IFS
13738 test -z "$as_dir" && as_dir=.
13739 for ac_exec_ext in '' $ac_executable_extensions; do
13740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13741 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13743 break 2
13745 done
13746 done
13747 IFS=$as_save_IFS
13750 esac
13752 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13753 if test -n "$WINDMC_FOR_TARGET"; then
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13755 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13756 else
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13763 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13766 if test -n "$WINDMC_FOR_TARGET"; then
13767 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13768 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13769 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13772 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13773 for ncn_progname in windmc; do
13774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13775 set dummy ${ncn_progname}; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 if test -n "$WINDMC_FOR_TARGET"; then
13782 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13783 else
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13787 IFS=$as_save_IFS
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13791 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793 break 2
13795 done
13796 done
13797 IFS=$as_save_IFS
13801 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13802 if test -n "$WINDMC_FOR_TARGET"; then
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13804 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13805 else
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13811 done
13814 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13815 for ncn_progname in windmc; do
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13817 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13818 if test -x $with_build_time_tools/${ncn_progname}; then
13819 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13821 $as_echo "yes" >&6; }
13822 break
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13827 done
13830 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13831 for ncn_progname in windmc; do
13832 if test -n "$ncn_target_tool_prefix"; then
13833 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13834 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 if test -n "$WINDMC_FOR_TARGET"; then
13841 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13842 else
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13854 done
13855 done
13856 IFS=$as_save_IFS
13860 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13861 if test -n "$WINDMC_FOR_TARGET"; then
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13863 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13864 else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866 $as_echo "no" >&6; }
13871 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13873 set dummy ${ncn_progname}; ac_word=$2
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875 $as_echo_n "checking for $ac_word... " >&6; }
13876 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 if test -n "$WINDMC_FOR_TARGET"; then
13880 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13881 else
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13889 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13891 break 2
13893 done
13894 done
13895 IFS=$as_save_IFS
13899 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13900 if test -n "$WINDMC_FOR_TARGET"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13902 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13903 else
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 $as_echo "no" >&6; }
13910 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13911 done
13914 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13915 set dummy windmc
13916 if test $build = $target ; then
13917 WINDMC_FOR_TARGET="$2"
13918 else
13919 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13921 else
13922 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13925 else
13926 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13930 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13933 $as_echo_n "checking where to find the target ar... " >&6; }
13934 if test "x${build}" != "x${host}" ; then
13935 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
13937 ac_dir=`dirname $AR_FOR_TARGET`
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939 $as_echo "pre-installed in $ac_dir" >&6; }
13940 else
13941 # Canadian cross, just use what we found
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13943 $as_echo "pre-installed" >&6; }
13945 else
13946 ok=yes
13947 case " ${configdirs} " in
13948 *" binutils "*) ;;
13949 *) ok=no ;;
13950 esac
13952 if test $ok = yes; then
13953 # An in-tree tool is available and we can use it
13954 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13956 $as_echo "just compiled" >&6; }
13957 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13958 # We already found the complete path
13959 ac_dir=`dirname $AR_FOR_TARGET`
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13961 $as_echo "pre-installed in $ac_dir" >&6; }
13962 elif test "x$target" = "x$host"; then
13963 # We can use an host tool
13964 AR_FOR_TARGET='$(AR)'
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13966 $as_echo "host tool" >&6; }
13967 else
13968 # We need a cross tool
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970 $as_echo "pre-installed" >&6; }
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13975 $as_echo_n "checking where to find the target as... " >&6; }
13976 if test "x${build}" != "x${host}" ; then
13977 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13978 # We already found the complete path
13979 ac_dir=`dirname $AS_FOR_TARGET`
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13981 $as_echo "pre-installed in $ac_dir" >&6; }
13982 else
13983 # Canadian cross, just use what we found
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13985 $as_echo "pre-installed" >&6; }
13987 else
13988 ok=yes
13989 case " ${configdirs} " in
13990 *" gas "*) ;;
13991 *) ok=no ;;
13992 esac
13994 if test $ok = yes; then
13995 # An in-tree tool is available and we can use it
13996 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13998 $as_echo "just compiled" >&6; }
13999 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14000 # We already found the complete path
14001 ac_dir=`dirname $AS_FOR_TARGET`
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14003 $as_echo "pre-installed in $ac_dir" >&6; }
14004 elif test "x$target" = "x$host"; then
14005 # We can use an host tool
14006 AS_FOR_TARGET='$(AS)'
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14008 $as_echo "host tool" >&6; }
14009 else
14010 # We need a cross tool
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14012 $as_echo "pre-installed" >&6; }
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14017 $as_echo_n "checking where to find the target cc... " >&6; }
14018 if test "x${build}" != "x${host}" ; then
14019 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14020 # We already found the complete path
14021 ac_dir=`dirname $CC_FOR_TARGET`
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14023 $as_echo "pre-installed in $ac_dir" >&6; }
14024 else
14025 # Canadian cross, just use what we found
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14027 $as_echo "pre-installed" >&6; }
14029 else
14030 ok=yes
14031 case " ${configdirs} " in
14032 *" gcc "*) ;;
14033 *) ok=no ;;
14034 esac
14036 if test $ok = yes; then
14037 # An in-tree tool is available and we can use it
14038 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14040 $as_echo "just compiled" >&6; }
14041 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14042 # We already found the complete path
14043 ac_dir=`dirname $CC_FOR_TARGET`
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14045 $as_echo "pre-installed in $ac_dir" >&6; }
14046 elif test "x$target" = "x$host"; then
14047 # We can use an host tool
14048 CC_FOR_TARGET='$(CC)'
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14050 $as_echo "host tool" >&6; }
14051 else
14052 # We need a cross tool
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14054 $as_echo "pre-installed" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14059 $as_echo_n "checking where to find the target c++... " >&6; }
14060 if test "x${build}" != "x${host}" ; then
14061 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14062 # We already found the complete path
14063 ac_dir=`dirname $CXX_FOR_TARGET`
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14065 $as_echo "pre-installed in $ac_dir" >&6; }
14066 else
14067 # Canadian cross, just use what we found
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14069 $as_echo "pre-installed" >&6; }
14071 else
14072 ok=yes
14073 case " ${configdirs} " in
14074 *" gcc "*) ;;
14075 *) ok=no ;;
14076 esac
14077 case ,${enable_languages}, in
14078 *,c++,*) ;;
14079 *) ok=no ;;
14080 esac
14081 if test $ok = yes; then
14082 # An in-tree tool is available and we can use it
14083 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'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14085 $as_echo "just compiled" >&6; }
14086 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
14088 ac_dir=`dirname $CXX_FOR_TARGET`
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090 $as_echo "pre-installed in $ac_dir" >&6; }
14091 elif test "x$target" = "x$host"; then
14092 # We can use an host tool
14093 CXX_FOR_TARGET='$(CXX)'
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14095 $as_echo "host tool" >&6; }
14096 else
14097 # We need a cross tool
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14099 $as_echo "pre-installed" >&6; }
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14104 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14105 if test "x${build}" != "x${host}" ; then
14106 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14107 # We already found the complete path
14108 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14110 $as_echo "pre-installed in $ac_dir" >&6; }
14111 else
14112 # Canadian cross, just use what we found
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14114 $as_echo "pre-installed" >&6; }
14116 else
14117 ok=yes
14118 case " ${configdirs} " in
14119 *" gcc "*) ;;
14120 *) ok=no ;;
14121 esac
14122 case ,${enable_languages}, in
14123 *,c++,*) ;;
14124 *) ok=no ;;
14125 esac
14126 if test $ok = yes; then
14127 # An in-tree tool is available and we can use it
14128 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'
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14130 $as_echo "just compiled" >&6; }
14131 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14132 # We already found the complete path
14133 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14135 $as_echo "pre-installed in $ac_dir" >&6; }
14136 elif test "x$target" = "x$host"; then
14137 # We can use an host tool
14138 RAW_CXX_FOR_TARGET='$(CXX)'
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14140 $as_echo "host tool" >&6; }
14141 else
14142 # We need a cross tool
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14144 $as_echo "pre-installed" >&6; }
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14149 $as_echo_n "checking where to find the target dlltool... " >&6; }
14150 if test "x${build}" != "x${host}" ; then
14151 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14152 # We already found the complete path
14153 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155 $as_echo "pre-installed in $ac_dir" >&6; }
14156 else
14157 # Canadian cross, just use what we found
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14159 $as_echo "pre-installed" >&6; }
14161 else
14162 ok=yes
14163 case " ${configdirs} " in
14164 *" binutils "*) ;;
14165 *) ok=no ;;
14166 esac
14168 if test $ok = yes; then
14169 # An in-tree tool is available and we can use it
14170 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14172 $as_echo "just compiled" >&6; }
14173 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14174 # We already found the complete path
14175 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14177 $as_echo "pre-installed in $ac_dir" >&6; }
14178 elif test "x$target" = "x$host"; then
14179 # We can use an host tool
14180 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14182 $as_echo "host tool" >&6; }
14183 else
14184 # We need a cross tool
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14186 $as_echo "pre-installed" >&6; }
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14191 $as_echo_n "checking where to find the target gcc... " >&6; }
14192 if test "x${build}" != "x${host}" ; then
14193 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14194 # We already found the complete path
14195 ac_dir=`dirname $GCC_FOR_TARGET`
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14197 $as_echo "pre-installed in $ac_dir" >&6; }
14198 else
14199 # Canadian cross, just use what we found
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14201 $as_echo "pre-installed" >&6; }
14203 else
14204 ok=yes
14205 case " ${configdirs} " in
14206 *" gcc "*) ;;
14207 *) ok=no ;;
14208 esac
14210 if test $ok = yes; then
14211 # An in-tree tool is available and we can use it
14212 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14214 $as_echo "just compiled" >&6; }
14215 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14216 # We already found the complete path
14217 ac_dir=`dirname $GCC_FOR_TARGET`
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14219 $as_echo "pre-installed in $ac_dir" >&6; }
14220 elif test "x$target" = "x$host"; then
14221 # We can use an host tool
14222 GCC_FOR_TARGET='$()'
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14224 $as_echo "host tool" >&6; }
14225 else
14226 # We need a cross tool
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14228 $as_echo "pre-installed" >&6; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14233 $as_echo_n "checking where to find the target gcj... " >&6; }
14234 if test "x${build}" != "x${host}" ; then
14235 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14236 # We already found the complete path
14237 ac_dir=`dirname $GCJ_FOR_TARGET`
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14239 $as_echo "pre-installed in $ac_dir" >&6; }
14240 else
14241 # Canadian cross, just use what we found
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14243 $as_echo "pre-installed" >&6; }
14245 else
14246 ok=yes
14247 case " ${configdirs} " in
14248 *" gcc "*) ;;
14249 *) ok=no ;;
14250 esac
14251 case ,${enable_languages}, in
14252 *,java,*) ;;
14253 *) ok=no ;;
14254 esac
14255 if test $ok = yes; then
14256 # An in-tree tool is available and we can use it
14257 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14259 $as_echo "just compiled" >&6; }
14260 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14261 # We already found the complete path
14262 ac_dir=`dirname $GCJ_FOR_TARGET`
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14264 $as_echo "pre-installed in $ac_dir" >&6; }
14265 elif test "x$target" = "x$host"; then
14266 # We can use an host tool
14267 GCJ_FOR_TARGET='$(GCJ)'
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14269 $as_echo "host tool" >&6; }
14270 else
14271 # We need a cross tool
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14273 $as_echo "pre-installed" >&6; }
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14278 $as_echo_n "checking where to find the target gfortran... " >&6; }
14279 if test "x${build}" != "x${host}" ; then
14280 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14281 # We already found the complete path
14282 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14284 $as_echo "pre-installed in $ac_dir" >&6; }
14285 else
14286 # Canadian cross, just use what we found
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14288 $as_echo "pre-installed" >&6; }
14290 else
14291 ok=yes
14292 case " ${configdirs} " in
14293 *" gcc "*) ;;
14294 *) ok=no ;;
14295 esac
14296 case ,${enable_languages}, in
14297 *,fortran,*) ;;
14298 *) ok=no ;;
14299 esac
14300 if test $ok = yes; then
14301 # An in-tree tool is available and we can use it
14302 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14304 $as_echo "just compiled" >&6; }
14305 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14306 # We already found the complete path
14307 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14309 $as_echo "pre-installed in $ac_dir" >&6; }
14310 elif test "x$target" = "x$host"; then
14311 # We can use an host tool
14312 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14314 $as_echo "host tool" >&6; }
14315 else
14316 # We need a cross tool
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14318 $as_echo "pre-installed" >&6; }
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14323 $as_echo_n "checking where to find the target gccgo... " >&6; }
14324 if test "x${build}" != "x${host}" ; then
14325 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14326 # We already found the complete path
14327 ac_dir=`dirname $GOC_FOR_TARGET`
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14329 $as_echo "pre-installed in $ac_dir" >&6; }
14330 else
14331 # Canadian cross, just use what we found
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14333 $as_echo "pre-installed" >&6; }
14335 else
14336 ok=yes
14337 case " ${configdirs} " in
14338 *" gcc "*) ;;
14339 *) ok=no ;;
14340 esac
14341 case ,${enable_languages}, in
14342 *,go,*) ;;
14343 *) ok=no ;;
14344 esac
14345 if test $ok = yes; then
14346 # An in-tree tool is available and we can use it
14347 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14349 $as_echo "just compiled" >&6; }
14350 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14351 # We already found the complete path
14352 ac_dir=`dirname $GOC_FOR_TARGET`
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14354 $as_echo "pre-installed in $ac_dir" >&6; }
14355 elif test "x$target" = "x$host"; then
14356 # We can use an host tool
14357 GOC_FOR_TARGET='$(GOC)'
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14359 $as_echo "host tool" >&6; }
14360 else
14361 # We need a cross tool
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14363 $as_echo "pre-installed" >&6; }
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14368 $as_echo_n "checking where to find the target ld... " >&6; }
14369 if test "x${build}" != "x${host}" ; then
14370 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14371 # We already found the complete path
14372 ac_dir=`dirname $LD_FOR_TARGET`
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14374 $as_echo "pre-installed in $ac_dir" >&6; }
14375 else
14376 # Canadian cross, just use what we found
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14378 $as_echo "pre-installed" >&6; }
14380 else
14381 ok=yes
14382 case " ${configdirs} " in
14383 *" ld "*) ;;
14384 *) ok=no ;;
14385 esac
14387 if test $ok = yes; then
14388 # An in-tree tool is available and we can use it
14389 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14391 $as_echo "just compiled" >&6; }
14392 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14393 # We already found the complete path
14394 ac_dir=`dirname $LD_FOR_TARGET`
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14396 $as_echo "pre-installed in $ac_dir" >&6; }
14397 elif test "x$target" = "x$host"; then
14398 # We can use an host tool
14399 LD_FOR_TARGET='$(LD)'
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14401 $as_echo "host tool" >&6; }
14402 else
14403 # We need a cross tool
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14405 $as_echo "pre-installed" >&6; }
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14410 $as_echo_n "checking where to find the target lipo... " >&6; }
14411 if test "x${build}" != "x${host}" ; then
14412 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14413 # We already found the complete path
14414 ac_dir=`dirname $LIPO_FOR_TARGET`
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14416 $as_echo "pre-installed in $ac_dir" >&6; }
14417 else
14418 # Canadian cross, just use what we found
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14420 $as_echo "pre-installed" >&6; }
14422 else
14423 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14424 # We already found the complete path
14425 ac_dir=`dirname $LIPO_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 LIPO_FOR_TARGET='$(LIPO)'
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; }
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14441 $as_echo_n "checking where to find the target nm... " >&6; }
14442 if test "x${build}" != "x${host}" ; then
14443 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14444 # We already found the complete path
14445 ac_dir=`dirname $NM_FOR_TARGET`
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14447 $as_echo "pre-installed in $ac_dir" >&6; }
14448 else
14449 # Canadian cross, just use what we found
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14451 $as_echo "pre-installed" >&6; }
14453 else
14454 ok=yes
14455 case " ${configdirs} " in
14456 *" binutils "*) ;;
14457 *) ok=no ;;
14458 esac
14460 if test $ok = yes; then
14461 # An in-tree tool is available and we can use it
14462 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14464 $as_echo "just compiled" >&6; }
14465 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14466 # We already found the complete path
14467 ac_dir=`dirname $NM_FOR_TARGET`
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14469 $as_echo "pre-installed in $ac_dir" >&6; }
14470 elif test "x$target" = "x$host"; then
14471 # We can use an host tool
14472 NM_FOR_TARGET='$(NM)'
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14474 $as_echo "host tool" >&6; }
14475 else
14476 # We need a cross tool
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14478 $as_echo "pre-installed" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14483 $as_echo_n "checking where to find the target objcopy... " >&6; }
14484 if test "x${build}" != "x${host}" ; then
14485 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14486 # We already found the complete path
14487 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14489 $as_echo "pre-installed in $ac_dir" >&6; }
14490 else
14491 # Canadian cross, just use what we found
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14493 $as_echo "pre-installed" >&6; }
14495 else
14496 ok=yes
14497 case " ${configdirs} " in
14498 *" binutils "*) ;;
14499 *) ok=no ;;
14500 esac
14502 if test $ok = yes; then
14503 # An in-tree tool is available and we can use it
14504 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14506 $as_echo "just compiled" >&6; }
14507 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14508 # We already found the complete path
14509 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14511 $as_echo "pre-installed in $ac_dir" >&6; }
14512 elif test "x$target" = "x$host"; then
14513 # We can use an host tool
14514 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14516 $as_echo "host tool" >&6; }
14517 else
14518 # We need a cross tool
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14520 $as_echo "pre-installed" >&6; }
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14525 $as_echo_n "checking where to find the target objdump... " >&6; }
14526 if test "x${build}" != "x${host}" ; then
14527 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14528 # We already found the complete path
14529 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14531 $as_echo "pre-installed in $ac_dir" >&6; }
14532 else
14533 # Canadian cross, just use what we found
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14535 $as_echo "pre-installed" >&6; }
14537 else
14538 ok=yes
14539 case " ${configdirs} " in
14540 *" binutils "*) ;;
14541 *) ok=no ;;
14542 esac
14544 if test $ok = yes; then
14545 # An in-tree tool is available and we can use it
14546 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14548 $as_echo "just compiled" >&6; }
14549 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14550 # We already found the complete path
14551 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14553 $as_echo "pre-installed in $ac_dir" >&6; }
14554 elif test "x$target" = "x$host"; then
14555 # We can use an host tool
14556 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14558 $as_echo "host tool" >&6; }
14559 else
14560 # We need a cross tool
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14562 $as_echo "pre-installed" >&6; }
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14567 $as_echo_n "checking where to find the target ranlib... " >&6; }
14568 if test "x${build}" != "x${host}" ; then
14569 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14570 # We already found the complete path
14571 ac_dir=`dirname $RANLIB_FOR_TARGET`
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14573 $as_echo "pre-installed in $ac_dir" >&6; }
14574 else
14575 # Canadian cross, just use what we found
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14577 $as_echo "pre-installed" >&6; }
14579 else
14580 ok=yes
14581 case " ${configdirs} " in
14582 *" binutils "*) ;;
14583 *) ok=no ;;
14584 esac
14586 if test $ok = yes; then
14587 # An in-tree tool is available and we can use it
14588 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14590 $as_echo "just compiled" >&6; }
14591 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14592 # We already found the complete path
14593 ac_dir=`dirname $RANLIB_FOR_TARGET`
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14595 $as_echo "pre-installed in $ac_dir" >&6; }
14596 elif test "x$target" = "x$host"; then
14597 # We can use an host tool
14598 RANLIB_FOR_TARGET='$(RANLIB)'
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14600 $as_echo "host tool" >&6; }
14601 else
14602 # We need a cross tool
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14604 $as_echo "pre-installed" >&6; }
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14609 $as_echo_n "checking where to find the target readelf... " >&6; }
14610 if test "x${build}" != "x${host}" ; then
14611 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14612 # We already found the complete path
14613 ac_dir=`dirname $READELF_FOR_TARGET`
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14615 $as_echo "pre-installed in $ac_dir" >&6; }
14616 else
14617 # Canadian cross, just use what we found
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14619 $as_echo "pre-installed" >&6; }
14621 else
14622 ok=yes
14623 case " ${configdirs} " in
14624 *" binutils "*) ;;
14625 *) ok=no ;;
14626 esac
14628 if test $ok = yes; then
14629 # An in-tree tool is available and we can use it
14630 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14632 $as_echo "just compiled" >&6; }
14633 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14634 # We already found the complete path
14635 ac_dir=`dirname $READELF_FOR_TARGET`
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14637 $as_echo "pre-installed in $ac_dir" >&6; }
14638 elif test "x$target" = "x$host"; then
14639 # We can use an host tool
14640 READELF_FOR_TARGET='$(READELF)'
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14642 $as_echo "host tool" >&6; }
14643 else
14644 # We need a cross tool
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14646 $as_echo "pre-installed" >&6; }
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14651 $as_echo_n "checking where to find the target strip... " >&6; }
14652 if test "x${build}" != "x${host}" ; then
14653 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14654 # We already found the complete path
14655 ac_dir=`dirname $STRIP_FOR_TARGET`
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14657 $as_echo "pre-installed in $ac_dir" >&6; }
14658 else
14659 # Canadian cross, just use what we found
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14661 $as_echo "pre-installed" >&6; }
14663 else
14664 ok=yes
14665 case " ${configdirs} " in
14666 *" binutils "*) ;;
14667 *) ok=no ;;
14668 esac
14670 if test $ok = yes; then
14671 # An in-tree tool is available and we can use it
14672 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14674 $as_echo "just compiled" >&6; }
14675 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14676 # We already found the complete path
14677 ac_dir=`dirname $STRIP_FOR_TARGET`
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14679 $as_echo "pre-installed in $ac_dir" >&6; }
14680 elif test "x$target" = "x$host"; then
14681 # We can use an host tool
14682 STRIP_FOR_TARGET='$(STRIP)'
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14684 $as_echo "host tool" >&6; }
14685 else
14686 # We need a cross tool
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14688 $as_echo "pre-installed" >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14693 $as_echo_n "checking where to find the target windres... " >&6; }
14694 if test "x${build}" != "x${host}" ; then
14695 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14696 # We already found the complete path
14697 ac_dir=`dirname $WINDRES_FOR_TARGET`
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14699 $as_echo "pre-installed in $ac_dir" >&6; }
14700 else
14701 # Canadian cross, just use what we found
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14703 $as_echo "pre-installed" >&6; }
14705 else
14706 ok=yes
14707 case " ${configdirs} " in
14708 *" binutils "*) ;;
14709 *) ok=no ;;
14710 esac
14712 if test $ok = yes; then
14713 # An in-tree tool is available and we can use it
14714 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14716 $as_echo "just compiled" >&6; }
14717 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14718 # We already found the complete path
14719 ac_dir=`dirname $WINDRES_FOR_TARGET`
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14721 $as_echo "pre-installed in $ac_dir" >&6; }
14722 elif test "x$target" = "x$host"; then
14723 # We can use an host tool
14724 WINDRES_FOR_TARGET='$(WINDRES)'
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14726 $as_echo "host tool" >&6; }
14727 else
14728 # We need a cross tool
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14730 $as_echo "pre-installed" >&6; }
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14735 $as_echo_n "checking where to find the target windmc... " >&6; }
14736 if test "x${build}" != "x${host}" ; then
14737 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14738 # We already found the complete path
14739 ac_dir=`dirname $WINDMC_FOR_TARGET`
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14741 $as_echo "pre-installed in $ac_dir" >&6; }
14742 else
14743 # Canadian cross, just use what we found
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14745 $as_echo "pre-installed" >&6; }
14747 else
14748 ok=yes
14749 case " ${configdirs} " in
14750 *" binutils "*) ;;
14751 *) ok=no ;;
14752 esac
14754 if test $ok = yes; then
14755 # An in-tree tool is available and we can use it
14756 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14758 $as_echo "just compiled" >&6; }
14759 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14760 # We already found the complete path
14761 ac_dir=`dirname $WINDMC_FOR_TARGET`
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14763 $as_echo "pre-installed in $ac_dir" >&6; }
14764 elif test "x$target" = "x$host"; then
14765 # We can use an host tool
14766 WINDMC_FOR_TARGET='$(WINDMC)'
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14768 $as_echo "host tool" >&6; }
14769 else
14770 # We need a cross tool
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14772 $as_echo "pre-installed" >&6; }
14780 # Certain tools may need extra flags.
14781 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14782 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14783 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14785 # When building target libraries, except in a Canadian cross, we use
14786 # the same toolchain as the compiler we just built.
14787 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14788 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14789 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14790 if test $host = $build; then
14791 case " $configdirs " in
14792 *" gcc "*)
14793 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14794 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14795 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14797 esac
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14805 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14806 # Check whether --enable-maintainer-mode was given.
14807 if test "${enable_maintainer_mode+set}" = set; then :
14808 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14809 else
14810 USE_MAINTAINER_MODE=no
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14814 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14817 if test "$USE_MAINTAINER_MODE" = yes; then
14818 MAINTAINER_MODE_TRUE=
14819 MAINTAINER_MODE_FALSE='#'
14820 else
14821 MAINTAINER_MODE_TRUE='#'
14822 MAINTAINER_MODE_FALSE=
14824 MAINT=$MAINTAINER_MODE_TRUE
14826 # ---------------------
14827 # GCC bootstrap support
14828 # ---------------------
14830 # Stage specific cflags for build.
14831 stage1_cflags="-g"
14832 case $build in
14833 vax-*-*)
14834 case ${GCC} in
14835 yes) stage1_cflags="-g -Wa,-J" ;;
14836 *) stage1_cflags="-g -J" ;;
14837 esac ;;
14838 esac
14842 # Enable --enable-checking in stage1 of the compiler.
14843 # Check whether --enable-stage1-checking was given.
14844 if test "${enable_stage1_checking+set}" = set; then :
14845 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14846 else
14847 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14848 # For --disable-checking or implicit --enable-checking=release, avoid
14849 # setting --enable-checking=gc in the default stage1 checking for LTO
14850 # bootstraps. See PR62077.
14851 case $BUILD_CONFIG in
14852 *lto*)
14853 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14855 stage1_checking=--enable-checking=yes,types;;
14856 esac
14857 if test "x$enable_checking" = x && \
14858 test -d ${srcdir}/gcc && \
14859 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14860 stage1_checking=--enable-checking=yes,types,extra
14862 else
14863 stage1_checking=--enable-checking=$enable_checking,types
14869 # Enable -Werror in bootstrap stage2 and later.
14870 # Check whether --enable-werror was given.
14871 if test "${enable_werror+set}" = set; then :
14872 enableval=$enable_werror;
14873 else
14874 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14875 enable_werror=yes
14876 else
14877 enable_werror=no
14881 case ${enable_werror} in
14882 yes) stage2_werror_flag="--enable-werror-always" ;;
14883 *) stage2_werror_flag="" ;;
14884 esac
14887 # Enable --enable-host-shared.
14888 # Check whether --enable-host-shared was given.
14889 if test "${enable_host_shared+set}" = set; then :
14890 enableval=$enable_host_shared; host_shared=$enableval
14891 else
14892 host_shared=no
14897 # PR jit/64780: Require the user to explicitly specify
14898 # --enable-host-shared if the jit is enabled, hinting
14899 # that they might want to do a separate configure/build of
14900 # the jit, to avoid users from slowing down the rest of the
14901 # compiler by enabling the jit.
14902 if test ${host_shared} = "no" ; then
14903 case "${enable_languages}" in
14904 *jit*)
14905 as_fn_error "
14906 Enabling language \"jit\" requires --enable-host-shared.
14908 --enable-host-shared typically slows the rest of the compiler down by
14909 a few %, so you must explicitly enable it.
14911 If you want to build both the jit and the regular compiler, it is often
14912 best to do this via two separate configure/builds, in separate
14913 directories, to avoid imposing the performance cost of
14914 --enable-host-shared on the regular compiler." "$LINENO" 5
14918 esac
14921 # Specify what files to not compare during bootstrap.
14923 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14924 case "$target" in
14925 hppa*64*-*-hpux*) ;;
14926 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14927 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14928 esac
14931 ac_config_files="$ac_config_files Makefile"
14933 cat >confcache <<\_ACEOF
14934 # This file is a shell script that caches the results of configure
14935 # tests run on this system so they can be shared between configure
14936 # scripts and configure runs, see configure's option --config-cache.
14937 # It is not useful on other systems. If it contains results you don't
14938 # want to keep, you may remove or edit it.
14940 # config.status only pays attention to the cache file if you give it
14941 # the --recheck option to rerun configure.
14943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14945 # following values.
14947 _ACEOF
14949 # The following way of writing the cache mishandles newlines in values,
14950 # but we know of no workaround that is simple, portable, and efficient.
14951 # So, we kill variables containing newlines.
14952 # Ultrix sh set writes to stderr and can't be redirected directly,
14953 # and sets the high bit in the cache file unless we assign to the vars.
14955 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14956 eval ac_val=\$$ac_var
14957 case $ac_val in #(
14958 *${as_nl}*)
14959 case $ac_var in #(
14960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14962 esac
14963 case $ac_var in #(
14964 _ | IFS | as_nl) ;; #(
14965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14966 *) { eval $ac_var=; unset $ac_var;} ;;
14967 esac ;;
14968 esac
14969 done
14971 (set) 2>&1 |
14972 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14973 *${as_nl}ac_space=\ *)
14974 # `set' does not quote correctly, so add quotes: double-quote
14975 # substitution turns \\\\ into \\, and sed turns \\ into \.
14976 sed -n \
14977 "s/'/'\\\\''/g;
14978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14979 ;; #(
14981 # `set' quotes correctly as required by POSIX, so do not add quotes.
14982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14984 esac |
14985 sort
14987 sed '
14988 /^ac_cv_env_/b end
14989 t clear
14990 :clear
14991 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14992 t end
14993 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14994 :end' >>confcache
14995 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14996 if test -w "$cache_file"; then
14997 test "x$cache_file" != "x/dev/null" &&
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14999 $as_echo "$as_me: updating cache $cache_file" >&6;}
15000 cat confcache >$cache_file
15001 else
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15003 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15006 rm -f confcache
15008 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15009 # Let make expand exec_prefix.
15010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15012 # Transform confdefs.h into DEFS.
15013 # Protect against shell expansion while executing Makefile rules.
15014 # Protect against Makefile macro expansion.
15016 # If the first sed substitution is executed (which looks for macros that
15017 # take arguments), then branch to the quote section. Otherwise,
15018 # look for a macro that doesn't take arguments.
15019 ac_script='
15020 :mline
15021 /\\$/{
15023 s,\\\n,,
15024 b mline
15026 t clear
15027 :clear
15028 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15029 t quote
15030 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15031 t quote
15032 b any
15033 :quote
15034 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15035 s/\[/\\&/g
15036 s/\]/\\&/g
15037 s/\$/$$/g
15039 :any
15042 s/^\n//
15043 s/\n/ /g
15047 DEFS=`sed -n "$ac_script" confdefs.h`
15050 ac_libobjs=
15051 ac_ltlibobjs=
15052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15053 # 1. Remove the extension, and $U if already installed.
15054 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15055 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15056 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15057 # will be set to the directory where LIBOBJS objects are built.
15058 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15059 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15060 done
15061 LIBOBJS=$ac_libobjs
15063 LTLIBOBJS=$ac_ltlibobjs
15067 : ${CONFIG_STATUS=./config.status}
15068 ac_write_fail=0
15069 ac_clean_files_save=$ac_clean_files
15070 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15072 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15073 as_write_fail=0
15074 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15075 #! $SHELL
15076 # Generated by $as_me.
15077 # Run this file to recreate the current configuration.
15078 # Compiler output produced by configure, useful for debugging
15079 # configure, is in config.log if it exists.
15081 debug=false
15082 ac_cs_recheck=false
15083 ac_cs_silent=false
15085 SHELL=\${CONFIG_SHELL-$SHELL}
15086 export SHELL
15087 _ASEOF
15088 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15089 ## -------------------- ##
15090 ## M4sh Initialization. ##
15091 ## -------------------- ##
15093 # Be more Bourne compatible
15094 DUALCASE=1; export DUALCASE # for MKS sh
15095 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15096 emulate sh
15097 NULLCMD=:
15098 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15099 # is contrary to our usage. Disable this feature.
15100 alias -g '${1+"$@"}'='"$@"'
15101 setopt NO_GLOB_SUBST
15102 else
15103 case `(set -o) 2>/dev/null` in #(
15104 *posix*) :
15105 set -o posix ;; #(
15106 *) :
15108 esac
15112 as_nl='
15114 export as_nl
15115 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15116 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15118 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15119 # Prefer a ksh shell builtin over an external printf program on Solaris,
15120 # but without wasting forks for bash or zsh.
15121 if test -z "$BASH_VERSION$ZSH_VERSION" \
15122 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15123 as_echo='print -r --'
15124 as_echo_n='print -rn --'
15125 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15126 as_echo='printf %s\n'
15127 as_echo_n='printf %s'
15128 else
15129 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15130 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15131 as_echo_n='/usr/ucb/echo -n'
15132 else
15133 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15134 as_echo_n_body='eval
15135 arg=$1;
15136 case $arg in #(
15137 *"$as_nl"*)
15138 expr "X$arg" : "X\\(.*\\)$as_nl";
15139 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15140 esac;
15141 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15143 export as_echo_n_body
15144 as_echo_n='sh -c $as_echo_n_body as_echo'
15146 export as_echo_body
15147 as_echo='sh -c $as_echo_body as_echo'
15150 # The user is always right.
15151 if test "${PATH_SEPARATOR+set}" != set; then
15152 PATH_SEPARATOR=:
15153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15155 PATH_SEPARATOR=';'
15160 # IFS
15161 # We need space, tab and new line, in precisely that order. Quoting is
15162 # there to prevent editors from complaining about space-tab.
15163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15164 # splitting by setting IFS to empty value.)
15165 IFS=" "" $as_nl"
15167 # Find who we are. Look in the path if we contain no directory separator.
15168 case $0 in #((
15169 *[\\/]* ) as_myself=$0 ;;
15170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 for as_dir in $PATH
15173 IFS=$as_save_IFS
15174 test -z "$as_dir" && as_dir=.
15175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15176 done
15177 IFS=$as_save_IFS
15180 esac
15181 # We did not find ourselves, most probably we were run as `sh COMMAND'
15182 # in which case we are not to be found in the path.
15183 if test "x$as_myself" = x; then
15184 as_myself=$0
15186 if test ! -f "$as_myself"; then
15187 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15188 exit 1
15191 # Unset variables that we do not need and which cause bugs (e.g. in
15192 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15193 # suppresses any "Segmentation fault" message there. '((' could
15194 # trigger a bug in pdksh 5.2.14.
15195 for as_var in BASH_ENV ENV MAIL MAILPATH
15196 do eval test x\${$as_var+set} = xset \
15197 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15198 done
15199 PS1='$ '
15200 PS2='> '
15201 PS4='+ '
15203 # NLS nuisances.
15204 LC_ALL=C
15205 export LC_ALL
15206 LANGUAGE=C
15207 export LANGUAGE
15209 # CDPATH.
15210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15213 # as_fn_error ERROR [LINENO LOG_FD]
15214 # ---------------------------------
15215 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15216 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15217 # script with status $?, using 1 if that was 0.
15218 as_fn_error ()
15220 as_status=$?; test $as_status -eq 0 && as_status=1
15221 if test "$3"; then
15222 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15223 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15225 $as_echo "$as_me: error: $1" >&2
15226 as_fn_exit $as_status
15227 } # as_fn_error
15230 # as_fn_set_status STATUS
15231 # -----------------------
15232 # Set $? to STATUS, without forking.
15233 as_fn_set_status ()
15235 return $1
15236 } # as_fn_set_status
15238 # as_fn_exit STATUS
15239 # -----------------
15240 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15241 as_fn_exit ()
15243 set +e
15244 as_fn_set_status $1
15245 exit $1
15246 } # as_fn_exit
15248 # as_fn_unset VAR
15249 # ---------------
15250 # Portably unset VAR.
15251 as_fn_unset ()
15253 { eval $1=; unset $1;}
15255 as_unset=as_fn_unset
15256 # as_fn_append VAR VALUE
15257 # ----------------------
15258 # Append the text in VALUE to the end of the definition contained in VAR. Take
15259 # advantage of any shell optimizations that allow amortized linear growth over
15260 # repeated appends, instead of the typical quadratic growth present in naive
15261 # implementations.
15262 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15263 eval 'as_fn_append ()
15265 eval $1+=\$2
15267 else
15268 as_fn_append ()
15270 eval $1=\$$1\$2
15272 fi # as_fn_append
15274 # as_fn_arith ARG...
15275 # ------------------
15276 # Perform arithmetic evaluation on the ARGs, and store the result in the
15277 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15278 # must be portable across $(()) and expr.
15279 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15280 eval 'as_fn_arith ()
15282 as_val=$(( $* ))
15284 else
15285 as_fn_arith ()
15287 as_val=`expr "$@" || test $? -eq 1`
15289 fi # as_fn_arith
15292 if expr a : '\(a\)' >/dev/null 2>&1 &&
15293 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15294 as_expr=expr
15295 else
15296 as_expr=false
15299 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15300 as_basename=basename
15301 else
15302 as_basename=false
15305 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15306 as_dirname=dirname
15307 else
15308 as_dirname=false
15311 as_me=`$as_basename -- "$0" ||
15312 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15313 X"$0" : 'X\(//\)$' \| \
15314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15315 $as_echo X/"$0" |
15316 sed '/^.*\/\([^/][^/]*\)\/*$/{
15317 s//\1/
15320 /^X\/\(\/\/\)$/{
15321 s//\1/
15324 /^X\/\(\/\).*/{
15325 s//\1/
15328 s/.*/./; q'`
15330 # Avoid depending upon Character Ranges.
15331 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15332 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15333 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15334 as_cr_digits='0123456789'
15335 as_cr_alnum=$as_cr_Letters$as_cr_digits
15337 ECHO_C= ECHO_N= ECHO_T=
15338 case `echo -n x` in #(((((
15339 -n*)
15340 case `echo 'xy\c'` in
15341 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15342 xy) ECHO_C='\c';;
15343 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15344 ECHO_T=' ';;
15345 esac;;
15347 ECHO_N='-n';;
15348 esac
15350 rm -f conf$$ conf$$.exe conf$$.file
15351 if test -d conf$$.dir; then
15352 rm -f conf$$.dir/conf$$.file
15353 else
15354 rm -f conf$$.dir
15355 mkdir conf$$.dir 2>/dev/null
15357 if (echo >conf$$.file) 2>/dev/null; then
15358 if ln -s conf$$.file conf$$ 2>/dev/null; then
15359 as_ln_s='ln -s'
15360 # ... but there are two gotchas:
15361 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15362 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15363 # In both cases, we have to default to `cp -p'.
15364 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15365 as_ln_s='cp -p'
15366 elif ln conf$$.file conf$$ 2>/dev/null; then
15367 as_ln_s=ln
15368 else
15369 as_ln_s='cp -p'
15371 else
15372 as_ln_s='cp -p'
15374 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15375 rmdir conf$$.dir 2>/dev/null
15378 # as_fn_mkdir_p
15379 # -------------
15380 # Create "$as_dir" as a directory, including parents if necessary.
15381 as_fn_mkdir_p ()
15384 case $as_dir in #(
15385 -*) as_dir=./$as_dir;;
15386 esac
15387 test -d "$as_dir" || eval $as_mkdir_p || {
15388 as_dirs=
15389 while :; do
15390 case $as_dir in #(
15391 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15392 *) as_qdir=$as_dir;;
15393 esac
15394 as_dirs="'$as_qdir' $as_dirs"
15395 as_dir=`$as_dirname -- "$as_dir" ||
15396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15397 X"$as_dir" : 'X\(//\)[^/]' \| \
15398 X"$as_dir" : 'X\(//\)$' \| \
15399 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15400 $as_echo X"$as_dir" |
15401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15402 s//\1/
15405 /^X\(\/\/\)[^/].*/{
15406 s//\1/
15409 /^X\(\/\/\)$/{
15410 s//\1/
15413 /^X\(\/\).*/{
15414 s//\1/
15417 s/.*/./; q'`
15418 test -d "$as_dir" && break
15419 done
15420 test -z "$as_dirs" || eval "mkdir $as_dirs"
15421 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15424 } # as_fn_mkdir_p
15425 if mkdir -p . 2>/dev/null; then
15426 as_mkdir_p='mkdir -p "$as_dir"'
15427 else
15428 test -d ./-p && rmdir ./-p
15429 as_mkdir_p=false
15432 if test -x / >/dev/null 2>&1; then
15433 as_test_x='test -x'
15434 else
15435 if ls -dL / >/dev/null 2>&1; then
15436 as_ls_L_option=L
15437 else
15438 as_ls_L_option=
15440 as_test_x='
15441 eval sh -c '\''
15442 if test -d "$1"; then
15443 test -d "$1/.";
15444 else
15445 case $1 in #(
15446 -*)set "./$1";;
15447 esac;
15448 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15449 ???[sx]*):;;*)false;;esac;fi
15450 '\'' sh
15453 as_executable_p=$as_test_x
15455 # Sed expression to map a string onto a valid CPP name.
15456 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15458 # Sed expression to map a string onto a valid variable name.
15459 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15462 exec 6>&1
15463 ## ----------------------------------- ##
15464 ## Main body of $CONFIG_STATUS script. ##
15465 ## ----------------------------------- ##
15466 _ASEOF
15467 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15470 # Save the log message, to keep $0 and so on meaningful, and to
15471 # report actual input values of CONFIG_FILES etc. instead of their
15472 # values after options handling.
15473 ac_log="
15474 This file was extended by $as_me, which was
15475 generated by GNU Autoconf 2.64. Invocation command line was
15477 CONFIG_FILES = $CONFIG_FILES
15478 CONFIG_HEADERS = $CONFIG_HEADERS
15479 CONFIG_LINKS = $CONFIG_LINKS
15480 CONFIG_COMMANDS = $CONFIG_COMMANDS
15481 $ $0 $@
15483 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15486 _ACEOF
15488 case $ac_config_files in *"
15489 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15490 esac
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 # Files that config.status was made for.
15496 config_files="$ac_config_files"
15498 _ACEOF
15500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15501 ac_cs_usage="\
15502 \`$as_me' instantiates files and other configuration actions
15503 from templates according to the current configuration. Unless the files
15504 and actions are specified as TAGs, all are instantiated by default.
15506 Usage: $0 [OPTION]... [TAG]...
15508 -h, --help print this help, then exit
15509 -V, --version print version number and configuration settings, then exit
15510 -q, --quiet, --silent
15511 do not print progress messages
15512 -d, --debug don't remove temporary files
15513 --recheck update $as_me by reconfiguring in the same conditions
15514 --file=FILE[:TEMPLATE]
15515 instantiate the configuration file FILE
15517 Configuration files:
15518 $config_files
15520 Report bugs to the package provider."
15522 _ACEOF
15523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15524 ac_cs_version="\\
15525 config.status
15526 configured by $0, generated by GNU Autoconf 2.64,
15527 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15529 Copyright (C) 2009 Free Software Foundation, Inc.
15530 This config.status script is free software; the Free Software Foundation
15531 gives unlimited permission to copy, distribute and modify it."
15533 ac_pwd='$ac_pwd'
15534 srcdir='$srcdir'
15535 INSTALL='$INSTALL'
15536 AWK='$AWK'
15537 test -n "\$AWK" || AWK=awk
15538 _ACEOF
15540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15541 # The default lists apply if the user does not specify any file.
15542 ac_need_defaults=:
15543 while test $# != 0
15545 case $1 in
15546 --*=*)
15547 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15548 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15549 ac_shift=:
15552 ac_option=$1
15553 ac_optarg=$2
15554 ac_shift=shift
15556 esac
15558 case $ac_option in
15559 # Handling of the options.
15560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15561 ac_cs_recheck=: ;;
15562 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15563 $as_echo "$ac_cs_version"; exit ;;
15564 --debug | --debu | --deb | --de | --d | -d )
15565 debug=: ;;
15566 --file | --fil | --fi | --f )
15567 $ac_shift
15568 case $ac_optarg in
15569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15570 esac
15571 as_fn_append CONFIG_FILES " '$ac_optarg'"
15572 ac_need_defaults=false;;
15573 --he | --h | --help | --hel | -h )
15574 $as_echo "$ac_cs_usage"; exit ;;
15575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15576 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15577 ac_cs_silent=: ;;
15579 # This is an error.
15580 -*) as_fn_error "unrecognized option: \`$1'
15581 Try \`$0 --help' for more information." ;;
15583 *) as_fn_append ac_config_targets " $1"
15584 ac_need_defaults=false ;;
15586 esac
15587 shift
15588 done
15590 ac_configure_extra_args=
15592 if $ac_cs_silent; then
15593 exec 6>/dev/null
15594 ac_configure_extra_args="$ac_configure_extra_args --silent"
15597 _ACEOF
15598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15599 if \$ac_cs_recheck; then
15600 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15601 shift
15602 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15603 CONFIG_SHELL='$SHELL'
15604 export CONFIG_SHELL
15605 exec "\$@"
15608 _ACEOF
15609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15610 exec 5>>config.log
15612 echo
15613 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15614 ## Running $as_me. ##
15615 _ASBOX
15616 $as_echo "$ac_log"
15617 } >&5
15619 _ACEOF
15620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15622 # INIT-COMMANDS
15624 extrasub_build="$extrasub_build"
15625 extrasub_host="$extrasub_host"
15626 extrasub_target="$extrasub_target"
15628 _ACEOF
15630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15632 # Handling of arguments.
15633 for ac_config_target in $ac_config_targets
15635 case $ac_config_target in
15636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15638 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15639 esac
15640 done
15643 # If the user did not use the arguments to specify the items to instantiate,
15644 # then the envvar interface is used. Set only those that are not.
15645 # We use the long form for the default assignment because of an extremely
15646 # bizarre bug on SunOS 4.1.3.
15647 if $ac_need_defaults; then
15648 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15651 # Have a temporary directory for convenience. Make it in the build tree
15652 # simply because there is no reason against having it here, and in addition,
15653 # creating and moving files from /tmp can sometimes cause problems.
15654 # Hook for its removal unless debugging.
15655 # Note that there is a small window in which the directory will not be cleaned:
15656 # after its creation but before its name has been assigned to `$tmp'.
15657 $debug ||
15659 tmp=
15660 trap 'exit_status=$?
15661 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15663 trap 'as_fn_exit 1' 1 2 13 15
15665 # Create a (secure) tmp directory for tmp files.
15668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15669 test -n "$tmp" && test -d "$tmp"
15670 } ||
15672 tmp=./conf$$-$RANDOM
15673 (umask 077 && mkdir "$tmp")
15674 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15676 # Set up the scripts for CONFIG_FILES section.
15677 # No need to generate them if there are no CONFIG_FILES.
15678 # This happens for instance with `./config.status config.h'.
15679 if test -n "$CONFIG_FILES"; then
15681 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15682 ac_cs_awk_getline=:
15683 ac_cs_awk_pipe_init=
15684 ac_cs_awk_read_file='
15685 while ((getline aline < (F[key])) > 0)
15686 print(aline)
15687 close(F[key])'
15688 ac_cs_awk_pipe_fini=
15689 else
15690 ac_cs_awk_getline=false
15691 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15692 ac_cs_awk_read_file='
15693 print "|#_!!_#|"
15694 print "cat " F[key] " &&"
15695 '$ac_cs_awk_pipe_init
15696 # The final `:' finishes the AND list.
15697 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15699 ac_cr=`echo X | tr X '\015'`
15700 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15701 # But we know of no other shell where ac_cr would be empty at this
15702 # point, so we can use a bashism as a fallback.
15703 if test "x$ac_cr" = x; then
15704 eval ac_cr=\$\'\\r\'
15706 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15707 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15708 ac_cs_awk_cr='\r'
15709 else
15710 ac_cs_awk_cr=$ac_cr
15713 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15714 _ACEOF
15716 # Create commands to substitute file output variables.
15718 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15719 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15720 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15721 echo "_ACAWK" &&
15722 echo "_ACEOF"
15723 } >conf$$files.sh &&
15724 . ./conf$$files.sh ||
15725 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15726 rm -f conf$$files.sh
15729 echo "cat >conf$$subs.awk <<_ACEOF" &&
15730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15731 echo "_ACEOF"
15732 } >conf$$subs.sh ||
15733 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15734 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15735 ac_delim='%!_!# '
15736 for ac_last_try in false false false false false :; do
15737 . ./conf$$subs.sh ||
15738 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15741 if test $ac_delim_n = $ac_delim_num; then
15742 break
15743 elif $ac_last_try; then
15744 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15745 else
15746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15748 done
15749 rm -f conf$$subs.sh
15751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15752 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15753 _ACEOF
15754 sed -n '
15756 s/^/S["/; s/!.*/"]=/
15759 s/^[^!]*!//
15760 :repl
15761 t repl
15762 s/'"$ac_delim"'$//
15763 t delim
15766 s/\(.\{148\}\).*/\1/
15767 t more1
15768 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15771 b repl
15772 :more1
15773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15776 s/.\{148\}//
15777 t nl
15778 :delim
15780 s/\(.\{148\}\).*/\1/
15781 t more2
15782 s/["\\]/\\&/g; s/^/"/; s/$/"/
15785 :more2
15786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15789 s/.\{148\}//
15790 t delim
15791 ' <conf$$subs.awk | sed '
15792 /^[^""]/{
15794 s/\n//
15796 ' >>$CONFIG_STATUS || ac_write_fail=1
15797 rm -f conf$$subs.awk
15798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15799 _ACAWK
15800 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15801 for (key in S) S_is_set[key] = 1
15802 FS = "\a"
15803 \$ac_cs_awk_pipe_init
15806 line = $ 0
15807 nfields = split(line, field, "@")
15808 substed = 0
15809 len = length(field[1])
15810 for (i = 2; i < nfields; i++) {
15811 key = field[i]
15812 keylen = length(key)
15813 if (S_is_set[key]) {
15814 value = S[key]
15815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15816 len += length(value) + length(field[++i])
15817 substed = 1
15818 } else
15819 len += 1 + keylen
15821 if (nfields == 3 && !substed) {
15822 key = field[2]
15823 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15824 \$ac_cs_awk_read_file
15825 next
15828 print line
15830 \$ac_cs_awk_pipe_fini
15831 _ACAWK
15832 _ACEOF
15833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15834 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15835 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15836 else
15838 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15839 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15840 _ACEOF
15842 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15843 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15844 # trailing colons and then remove the whole line if VPATH becomes empty
15845 # (actually we leave an empty line to preserve line numbers).
15846 if test "x$srcdir" = x.; then
15847 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15848 s/:*\$(srcdir):*/:/
15849 s/:*\${srcdir}:*/:/
15850 s/:*@srcdir@:*/:/
15851 s/^\([^=]*=[ ]*\):*/\1/
15852 s/:*$//
15853 s/^[^=]*=[ ]*$//
15857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15858 fi # test -n "$CONFIG_FILES"
15861 eval set X " :F $CONFIG_FILES "
15862 shift
15863 for ac_tag
15865 case $ac_tag in
15866 :[FHLC]) ac_mode=$ac_tag; continue;;
15867 esac
15868 case $ac_mode$ac_tag in
15869 :[FHL]*:*);;
15870 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15871 :[FH]-) ac_tag=-:-;;
15872 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15873 esac
15874 ac_save_IFS=$IFS
15875 IFS=:
15876 set x $ac_tag
15877 IFS=$ac_save_IFS
15878 shift
15879 ac_file=$1
15880 shift
15882 case $ac_mode in
15883 :L) ac_source=$1;;
15884 :[FH])
15885 ac_file_inputs=
15886 for ac_f
15888 case $ac_f in
15889 -) ac_f="$tmp/stdin";;
15890 *) # Look for the file first in the build tree, then in the source tree
15891 # (if the path is not absolute). The absolute path cannot be DOS-style,
15892 # because $ac_f cannot contain `:'.
15893 test -f "$ac_f" ||
15894 case $ac_f in
15895 [\\/$]*) false;;
15896 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15897 esac ||
15898 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15899 esac
15900 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15901 as_fn_append ac_file_inputs " '$ac_f'"
15902 done
15904 # Let's still pretend it is `configure' which instantiates (i.e., don't
15905 # use $as_me), people would be surprised to read:
15906 # /* config.h. Generated by config.status. */
15907 configure_input='Generated from '`
15908 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15909 `' by configure.'
15910 if test x"$ac_file" != x-; then
15911 configure_input="$ac_file. $configure_input"
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15913 $as_echo "$as_me: creating $ac_file" >&6;}
15915 # Neutralize special characters interpreted by sed in replacement strings.
15916 case $configure_input in #(
15917 *\&* | *\|* | *\\* )
15918 ac_sed_conf_input=`$as_echo "$configure_input" |
15919 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15920 *) ac_sed_conf_input=$configure_input;;
15921 esac
15923 case $ac_tag in
15924 *:-:* | *:-) cat >"$tmp/stdin" \
15925 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15926 esac
15928 esac
15930 ac_dir=`$as_dirname -- "$ac_file" ||
15931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15932 X"$ac_file" : 'X\(//\)[^/]' \| \
15933 X"$ac_file" : 'X\(//\)$' \| \
15934 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15935 $as_echo X"$ac_file" |
15936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15937 s//\1/
15940 /^X\(\/\/\)[^/].*/{
15941 s//\1/
15944 /^X\(\/\/\)$/{
15945 s//\1/
15948 /^X\(\/\).*/{
15949 s//\1/
15952 s/.*/./; q'`
15953 as_dir="$ac_dir"; as_fn_mkdir_p
15954 ac_builddir=.
15956 case "$ac_dir" in
15957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15959 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15960 # A ".." for each directory in $ac_dir_suffix.
15961 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15962 case $ac_top_builddir_sub in
15963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15965 esac ;;
15966 esac
15967 ac_abs_top_builddir=$ac_pwd
15968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15969 # for backward compatibility:
15970 ac_top_builddir=$ac_top_build_prefix
15972 case $srcdir in
15973 .) # We are building in place.
15974 ac_srcdir=.
15975 ac_top_srcdir=$ac_top_builddir_sub
15976 ac_abs_top_srcdir=$ac_pwd ;;
15977 [\\/]* | ?:[\\/]* ) # Absolute name.
15978 ac_srcdir=$srcdir$ac_dir_suffix;
15979 ac_top_srcdir=$srcdir
15980 ac_abs_top_srcdir=$srcdir ;;
15981 *) # Relative name.
15982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15983 ac_top_srcdir=$ac_top_build_prefix$srcdir
15984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15985 esac
15986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15989 case $ac_mode in
15992 # CONFIG_FILE
15995 case $INSTALL in
15996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15997 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15998 esac
15999 _ACEOF
16001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16002 # If the template does not know about datarootdir, expand it.
16003 # FIXME: This hack should be removed a few years after 2.60.
16004 ac_datarootdir_hack=; ac_datarootdir_seen=
16005 ac_sed_dataroot='
16006 /datarootdir/ {
16010 /@datadir@/p
16011 /@docdir@/p
16012 /@infodir@/p
16013 /@localedir@/p
16014 /@mandir@/p'
16015 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16016 *datarootdir*) ac_datarootdir_seen=yes;;
16017 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16019 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16020 _ACEOF
16021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16022 ac_datarootdir_hack='
16023 s&@datadir@&$datadir&g
16024 s&@docdir@&$docdir&g
16025 s&@infodir@&$infodir&g
16026 s&@localedir@&$localedir&g
16027 s&@mandir@&$mandir&g
16028 s&\\\${datarootdir}&$datarootdir&g' ;;
16029 esac
16030 _ACEOF
16032 # Neutralize VPATH when `$srcdir' = `.'.
16033 # Shell code in configure.ac might set extrasub.
16034 # FIXME: do we really want to maintain this feature?
16035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16036 ac_sed_extra="$ac_vpsub
16037 $extrasub
16038 _ACEOF
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16042 s|@configure_input@|$ac_sed_conf_input|;t t
16043 s&@top_builddir@&$ac_top_builddir_sub&;t t
16044 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16045 s&@srcdir@&$ac_srcdir&;t t
16046 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16047 s&@top_srcdir@&$ac_top_srcdir&;t t
16048 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16049 s&@builddir@&$ac_builddir&;t t
16050 s&@abs_builddir@&$ac_abs_builddir&;t t
16051 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16052 s&@INSTALL@&$ac_INSTALL&;t t
16053 $ac_datarootdir_hack
16055 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16056 if $ac_cs_awk_getline; then
16057 $AWK -f "$tmp/subs.awk"
16058 else
16059 $AWK -f "$tmp/subs.awk" | $SHELL
16060 fi >$tmp/out \
16061 || as_fn_error "could not create $ac_file" "$LINENO" 5
16063 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16064 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16065 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16067 which seems to be undefined. Please make sure it is defined." >&5
16068 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16069 which seems to be undefined. Please make sure it is defined." >&2;}
16071 rm -f "$tmp/stdin"
16072 case $ac_file in
16073 -) cat "$tmp/out" && rm -f "$tmp/out";;
16074 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16075 esac \
16076 || as_fn_error "could not create $ac_file" "$LINENO" 5
16081 esac
16084 case $ac_file$ac_mode in
16085 "Makefile":F) sed "$extrasub_build" Makefile |
16086 sed "$extrasub_host" |
16087 sed "$extrasub_target" > mf$$
16088 mv -f mf$$ Makefile ;;
16090 esac
16091 done # for ac_tag
16094 as_fn_exit 0
16095 _ACEOF
16096 ac_clean_files=$ac_clean_files_save
16098 test $ac_write_fail = 0 ||
16099 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16102 # configure is writing to config.log, and then calls config.status.
16103 # config.status does its own redirection, appending to config.log.
16104 # Unfortunately, on DOS this fails, as config.log is still kept open
16105 # by configure, so config.status won't be able to write to it; its
16106 # output is simply discarded. So we exec the FD to /dev/null,
16107 # effectively closing config.log, so it can be properly (re)opened and
16108 # appended to by config.status. When coming back to configure, we
16109 # need to make the FD available again.
16110 if test "$no_create" != yes; then
16111 ac_cs_success=:
16112 ac_config_status_args=
16113 test "$silent" = yes &&
16114 ac_config_status_args="$ac_config_status_args --quiet"
16115 exec 5>/dev/null
16116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16117 exec 5>>config.log
16118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16119 # would make configure fail if this is the last instruction.
16120 $ac_cs_success || as_fn_exit $?
16122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}