[42/46] Add vec_info::replace_stmt
[official-gcc.git] / configure
blobdd9fbe4d3229095304913b7b13387314856a40dc
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 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 READELF_FOR_TARGET
574 RANLIB_FOR_TARGET
575 OBJDUMP_FOR_TARGET
576 OBJCOPY_FOR_TARGET
577 NM_FOR_TARGET
578 LIPO_FOR_TARGET
579 LD_FOR_TARGET
580 DLLTOOL_FOR_TARGET
581 AS_FOR_TARGET
582 AR_FOR_TARGET
583 GOC_FOR_TARGET
584 GFORTRAN_FOR_TARGET
585 GCC_FOR_TARGET
586 CXX_FOR_TARGET
587 CC_FOR_TARGET
588 READELF
589 OBJDUMP
590 OBJCOPY
591 WINDMC
592 WINDRES
593 STRIP
594 RANLIB
596 LIPO
598 DLLTOOL
601 RUNTEST
602 EXPECT
603 MAKEINFO
604 FLEX
607 BISON
608 YACC
609 WINDRES_FOR_BUILD
610 WINDMC_FOR_BUILD
611 RANLIB_FOR_BUILD
612 NM_FOR_BUILD
613 LD_FOR_BUILD
614 LDFLAGS_FOR_BUILD
615 GOC_FOR_BUILD
616 GFORTRAN_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 LDFLAGS_FOR_TARGET
639 CXXFLAGS_FOR_TARGET
640 CFLAGS_FOR_TARGET
641 DEBUG_PREFIX_CFLAGS_FOR_TARGET
642 SYSROOT_CFLAGS_FOR_TARGET
643 get_gcc_base_ver
644 extra_host_zlib_configure_flags
645 extra_host_libiberty_configure_flags
646 stage1_languages
647 host_shared
648 extra_linker_plugin_flags
649 extra_linker_plugin_configure_flags
650 islinc
651 isllibs
652 poststage1_ldflags
653 poststage1_libs
654 stage1_ldflags
655 stage1_libs
656 extra_isl_gmp_configure_flags
657 extra_mpc_mpfr_configure_flags
658 extra_mpc_gmp_configure_flags
659 extra_mpfr_configure_flags
660 gmpinc
661 gmplibs
662 do_compare
663 GNATMAKE
664 GNATBIND
665 ac_ct_CXX
666 CXXFLAGS
668 OBJEXT
669 EXEEXT
670 ac_ct_CC
671 CPPFLAGS
672 LDFLAGS
673 CFLAGS
675 extra_liboffloadmic_configure_flags
676 target_subdir
677 host_subdir
678 build_subdir
679 build_libsubdir
682 LN_S
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 target_noncanonical
696 host_noncanonical
697 build_noncanonical
698 build_os
699 build_vendor
700 build_cpu
701 build
702 TOPLEVEL_CONFIGURE_ARGUMENTS
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_URL
734 PACKAGE_BUGREPORT
735 PACKAGE_STRING
736 PACKAGE_VERSION
737 PACKAGE_TARNAME
738 PACKAGE_NAME
739 PATH_SEPARATOR
740 SHELL'
741 ac_subst_files='serialization_dependencies
742 host_makefile_frag
743 target_makefile_frag
744 alphaieee_frag
745 ospace_frag'
746 ac_user_opts='
747 enable_option_checking
748 with_build_libsubdir
749 with_system_zlib
750 enable_as_accelerator_for
751 enable_offload_targets
752 enable_gold
753 enable_ld
754 enable_compressed_debug_sections
755 enable_libquadmath
756 enable_libquadmath_support
757 enable_libada
758 enable_libssp
759 enable_libstdcxx
760 enable_liboffloadmic
761 enable_bootstrap
762 with_mpc
763 with_mpc_include
764 with_mpc_lib
765 with_mpfr_dir
766 with_mpfr
767 with_mpfr_include
768 with_mpfr_lib
769 with_gmp_dir
770 with_gmp
771 with_gmp_include
772 with_gmp_lib
773 with_stage1_libs
774 with_stage1_ldflags
775 with_boot_libs
776 with_boot_ldflags
777 with_isl
778 with_isl_include
779 with_isl_lib
780 enable_isl_version_check
781 enable_lto
782 enable_linker_plugin_configure_flags
783 enable_linker_plugin_flags
784 enable_host_shared
785 enable_stage1_languages
786 enable_objc_gc
787 with_target_bdw_gc
788 with_target_bdw_gc_include
789 with_target_bdw_gc_lib
790 with_gcc_major_version_only
791 with_build_sysroot
792 with_debug_prefix_map
793 with_build_config
794 enable_vtable_verify
795 enable_serial_configure
796 with_build_time_tools
797 enable_maintainer_mode
798 enable_stage1_checking
799 enable_werror
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 GFORTRAN_FOR_TARGET
832 GOC_FOR_TARGET
833 AR_FOR_TARGET
834 AS_FOR_TARGET
835 DLLTOOL_FOR_TARGET
836 LD_FOR_TARGET
837 LIPO_FOR_TARGET
838 NM_FOR_TARGET
839 OBJCOPY_FOR_TARGET
840 OBJDUMP_FOR_TARGET
841 RANLIB_FOR_TARGET
842 READELF_FOR_TARGET
843 STRIP_FOR_TARGET
844 WINDRES_FOR_TARGET
845 WINDMC_FOR_TARGET'
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
896 ac_prev=
897 ac_dashdash=
898 for ac_option
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
916 ac_dashdash=yes ;;
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
935 --config-cache | -C)
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 esac
1253 done
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error "missing argument to $ac_option"
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1339 /^X\(\/\/\)$/{
1340 s//\1/
1343 /^X\(\/\).*/{
1344 s//\1/
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1352 else
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 case $srcdir in
1374 *" "*)
1375 as_fn_error "path to source, $srcdir, contains spaces"
1377 esac
1378 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1388 # Report the --help message.
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures this package to adapt to many kinds of systems.
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1401 Defaults for the options are specified in brackets.
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1425 For better control, use the options below.
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --libdir=DIR object code libraries [EPREFIX/lib]
1435 --includedir=DIR C header files [PREFIX/include]
1436 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1439 --infodir=DIR info documentation [DATAROOTDIR/info]
1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1441 --mandir=DIR man documentation [DATAROOTDIR/man]
1442 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1443 --htmldir=DIR html documentation [DOCDIR]
1444 --dvidir=DIR dvi documentation [DOCDIR]
1445 --pdfdir=DIR pdf documentation [DOCDIR]
1446 --psdir=DIR ps documentation [DOCDIR]
1447 _ACEOF
1449 cat <<\_ACEOF
1451 Program names:
1452 --program-prefix=PREFIX prepend PREFIX to installed program names
1453 --program-suffix=SUFFIX append SUFFIX to installed program names
1454 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1460 _ACEOF
1463 if test -n "$ac_init_help"; then
1465 cat <<\_ACEOF
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-as-accelerator-for=ARG
1472 build as offload target compiler. Specify offload
1473 host triple by ARG
1474 --enable-offload-targets=LIST
1475 enable offloading to devices from comma-separated
1476 LIST of TARGET[=DIR]. Use optional path to find
1477 offload target compiler during the build
1478 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1479 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1480 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1481 Enable compressed debug sections for gas, gold or ld
1482 by default
1483 --disable-libquadmath do not build libquadmath directory
1484 --disable-libquadmath-support
1485 disable libquadmath support for Fortran
1486 --enable-libada build libada directory
1487 --enable-libssp build libssp directory
1488 --disable-libstdcxx do not build libstdc++-v3 directory
1489 --enable-liboffloadmic=ARG
1490 build liboffloadmic [ARG={no,host,target}]
1491 --enable-bootstrap enable bootstrapping [yes if native build]
1492 --disable-isl-version-check
1493 disable check for isl version
1494 --enable-lto enable link time optimization support
1495 --enable-linker-plugin-configure-flags=FLAGS
1496 additional flags for configuring linker plugins
1497 [none]
1498 --enable-linker-plugin-flags=FLAGS
1499 additional flags for configuring and building linker
1500 plugins [none]
1501 --enable-host-shared build host code as shared libraries
1502 --enable-stage1-languages[=all]
1503 choose additional languages to build during stage1.
1504 Mostly useful for compiler development
1505 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1506 Objective-C runtime
1507 --enable-vtable-verify Enable vtable verification feature
1508 --enable-serial-[{host,target,build}-]configure
1509 force sequential configuration of sub-packages for
1510 the host, target or build machine, or all
1511 sub-packages
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515 --enable-stage1-checking[=all]
1516 choose additional checking for stage1 of the
1517 compiler
1518 --enable-werror enable -Werror in bootstrap stage2 and later
1520 Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-build-libsubdir=DIR Directory where to find libraries for build system
1524 --with-system-zlib use installed libz
1525 --with-mpc=PATH specify prefix directory for installed MPC package.
1526 Equivalent to --with-mpc-include=PATH/include plus
1527 --with-mpc-lib=PATH/lib
1528 --with-mpc-include=PATH specify directory for installed MPC include files
1529 --with-mpc-lib=PATH specify directory for the installed MPC library
1530 --with-mpfr-dir=PATH this option has been REMOVED
1531 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1532 Equivalent to --with-mpfr-include=PATH/include plus
1533 --with-mpfr-lib=PATH/lib
1534 --with-mpfr-include=PATH
1535 specify directory for installed MPFR include files
1536 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1537 --with-gmp-dir=PATH this option has been REMOVED
1538 --with-gmp=PATH specify prefix directory for the installed GMP
1539 package. Equivalent to
1540 --with-gmp-include=PATH/include plus
1541 --with-gmp-lib=PATH/lib
1542 --with-gmp-include=PATH specify directory for installed GMP include files
1543 --with-gmp-lib=PATH specify directory for the installed GMP library
1544 --with-stage1-libs=LIBS libraries for stage1
1545 --with-stage1-ldflags=FLAGS
1546 linker flags for stage1
1547 --with-boot-libs=LIBS libraries for stage2 and later
1548 --with-boot-ldflags=FLAGS
1549 linker flags for stage2 and later
1550 --with-isl=PATH Specify prefix directory for the installed isl
1551 package. Equivalent to
1552 --with-isl-include=PATH/include plus
1553 --with-isl-lib=PATH/lib
1554 --with-isl-include=PATH Specify directory for installed isl include files
1555 --with-isl-lib=PATH Specify the directory for the installed isl library
1556 --with-target-bdw-gc=PATHLIST
1557 specify prefix directory for installed bdw-gc
1558 package. Equivalent to
1559 --with-target-bdw-gc-include=PATH/include plus
1560 --with-target-bdw-gc-lib=PATH/lib
1561 --with-target-bdw-gc-include=PATHLIST
1562 specify directories for installed bdw-gc include
1563 files
1564 --with-target-bdw-gc-lib=PATHLIST
1565 specify directories for installed bdw-gc library
1566 --with-gcc-major-version-only
1567 use only GCC major number in filesystem paths
1568 --with-build-sysroot=SYSROOT
1569 use sysroot as the system root during the build
1570 --with-debug-prefix-map='A=B C=D ...'
1571 map A to B, C to D ... in debug information
1572 --with-build-config='NAME NAME2...'
1573 use config/NAME.mk build configuration
1574 --with-build-time-tools=PATH
1575 use given path to find target tools during the build
1577 Some influential environment variables:
1578 CC C compiler command
1579 CFLAGS C compiler flags
1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581 nonstandard directory <lib dir>
1582 LIBS libraries to pass to the linker, e.g. -l<library>
1583 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1584 you have headers in a nonstandard directory <include dir>
1585 CXX C++ compiler command
1586 CXXFLAGS C++ compiler flags
1587 build_configargs
1588 additional configure arguments for build directories
1589 host_configargs
1590 additional configure arguments for host directories
1591 target_configargs
1592 additional configure arguments for target directories
1593 AR AR for the host
1594 AS AS for the host
1595 DLLTOOL DLLTOOL for the host
1596 LD LD for the host
1597 LIPO LIPO for the host
1598 NM NM for the host
1599 RANLIB RANLIB for the host
1600 STRIP STRIP for the host
1601 WINDRES WINDRES for the host
1602 WINDMC WINDMC for the host
1603 OBJCOPY OBJCOPY for the host
1604 OBJDUMP OBJDUMP for the host
1605 READELF READELF for the host
1606 CC_FOR_TARGET
1607 CC for the target
1608 CXX_FOR_TARGET
1609 CXX for the target
1610 GCC_FOR_TARGET
1611 GCC for the target
1612 GFORTRAN_FOR_TARGET
1613 GFORTRAN for the target
1614 GOC_FOR_TARGET
1615 GOC for the target
1616 AR_FOR_TARGET
1617 AR for the target
1618 AS_FOR_TARGET
1619 AS for the target
1620 DLLTOOL_FOR_TARGET
1621 DLLTOOL for the target
1622 LD_FOR_TARGET
1623 LD for the target
1624 LIPO_FOR_TARGET
1625 LIPO for the target
1626 NM_FOR_TARGET
1627 NM for the target
1628 OBJCOPY_FOR_TARGET
1629 OBJCOPY for the target
1630 OBJDUMP_FOR_TARGET
1631 OBJDUMP for the target
1632 RANLIB_FOR_TARGET
1633 RANLIB for the target
1634 READELF_FOR_TARGET
1635 READELF for the target
1636 STRIP_FOR_TARGET
1637 STRIP for the target
1638 WINDRES_FOR_TARGET
1639 WINDRES for the target
1640 WINDMC_FOR_TARGET
1641 WINDMC for the target
1643 Use these variables to override the choices made by `configure' or to help
1644 it to find libraries and programs with nonstandard names/locations.
1646 Report bugs to the package provider.
1647 _ACEOF
1648 ac_status=$?
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 continue
1657 ac_builddir=.
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1675 case $srcdir in
1676 .) # We are building in place.
1677 ac_srcdir=.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1684 *) # Relative name.
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1699 else
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 fi || ac_status=$?
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1703 done
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708 cat <<\_ACEOF
1709 configure
1710 generated by GNU Autoconf 2.64
1712 Copyright (C) 2009 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1715 _ACEOF
1716 exit
1719 ## ------------------------ ##
1720 ## Autoconf initialization. ##
1721 ## ------------------------ ##
1723 # ac_fn_c_try_compile LINENO
1724 # --------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_compile ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext
1730 if { { ac_try="$ac_compile"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_compile") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest.$ac_objext; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=1
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1759 } # ac_fn_c_try_compile
1761 # ac_fn_cxx_try_compile LINENO
1762 # ----------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_cxx_try_compile ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext
1768 if { { ac_try="$ac_compile"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_cxx_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=1
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 return $ac_retval
1797 } # ac_fn_cxx_try_compile
1799 # ac_fn_cxx_try_link LINENO
1800 # -------------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_link ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 $as_test_x conftest$ac_exeext
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841 return $ac_retval
1843 } # ac_fn_cxx_try_link
1845 # ac_fn_c_try_link LINENO
1846 # -----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_link ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
1872 $as_test_x conftest$ac_exeext
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1879 ac_retval=1
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1889 } # ac_fn_c_try_link
1890 cat >config.log <<_ACEOF
1891 This file contains any messages produced by compilers while
1892 running configure, to aid debugging if configure makes a mistake.
1894 It was created by $as_me, which was
1895 generated by GNU Autoconf 2.64. Invocation command line was
1897 $ $0 $@
1899 _ACEOF
1900 exec 5>>config.log
1902 cat <<_ASUNAME
1903 ## --------- ##
1904 ## Platform. ##
1905 ## --------- ##
1907 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1917 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1918 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1920 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1921 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1922 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924 _ASUNAME
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1929 IFS=$as_save_IFS
1930 test -z "$as_dir" && as_dir=.
1931 $as_echo "PATH: $as_dir"
1932 done
1933 IFS=$as_save_IFS
1935 } >&5
1937 cat >&5 <<_ACEOF
1940 ## ----------- ##
1941 ## Core tests. ##
1942 ## ----------- ##
1944 _ACEOF
1947 # Keep a trace of the command line.
1948 # Strip out --no-create and --no-recursion so they do not pile up.
1949 # Strip out --silent because we don't want to record it for future runs.
1950 # Also quote any args containing shell meta-characters.
1951 # Make two passes to allow for proper duplicate-argument suppression.
1952 ac_configure_args=
1953 ac_configure_args0=
1954 ac_configure_args1=
1955 ac_must_keep_next=false
1956 for ac_pass in 1 2
1958 for ac_arg
1960 case $ac_arg in
1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963 | -silent | --silent | --silen | --sile | --sil)
1964 continue ;;
1965 *\'*)
1966 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 esac
1968 case $ac_pass in
1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1971 as_fn_append ac_configure_args1 " '$ac_arg'"
1972 if test $ac_must_keep_next = true; then
1973 ac_must_keep_next=false # Got value, back to normal.
1974 else
1975 case $ac_arg in
1976 *=* | --config-cache | -C | -disable-* | --disable-* \
1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979 | -with-* | --with-* | -without-* | --without-* | --x)
1980 case "$ac_configure_args0 " in
1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 esac
1984 -* ) ac_must_keep_next=true ;;
1985 esac
1987 as_fn_append ac_configure_args " '$ac_arg'"
1989 esac
1990 done
1991 done
1992 { ac_configure_args0=; unset ac_configure_args0;}
1993 { ac_configure_args1=; unset ac_configure_args1;}
1995 # When interrupted or exit'd, cleanup temporary files, and complete
1996 # config.log. We remove comments because anyway the quotes in there
1997 # would cause problems or look ugly.
1998 # WARNING: Use '\'' to represent an apostrophe within the trap.
1999 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000 trap 'exit_status=$?
2001 # Save into config.log some information that might help in debugging.
2003 echo
2005 cat <<\_ASBOX
2006 ## ---------------- ##
2007 ## Cache variables. ##
2008 ## ---------------- ##
2009 _ASBOX
2010 echo
2011 # The following way of writing the cache mishandles newlines in values,
2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014 eval ac_val=\$$ac_var
2015 case $ac_val in #(
2016 *${as_nl}*)
2017 case $ac_var in #(
2018 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 esac
2021 case $ac_var in #(
2022 _ | IFS | as_nl) ;; #(
2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024 *) { eval $ac_var=; unset $ac_var;} ;;
2025 esac ;;
2026 esac
2027 done
2028 (set) 2>&1 |
2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030 *${as_nl}ac_space=\ *)
2031 sed -n \
2032 "s/'\''/'\''\\\\'\'''\''/g;
2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 ;; #(
2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2038 esac |
2039 sort
2041 echo
2043 cat <<\_ASBOX
2044 ## ----------------- ##
2045 ## Output variables. ##
2046 ## ----------------- ##
2047 _ASBOX
2048 echo
2049 for ac_var in $ac_subst_vars
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2059 if test -n "$ac_subst_files"; then
2060 cat <<\_ASBOX
2061 ## ------------------- ##
2062 ## File substitutions. ##
2063 ## ------------------- ##
2064 _ASBOX
2065 echo
2066 for ac_var in $ac_subst_files
2068 eval ac_val=\$$ac_var
2069 case $ac_val in
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 esac
2072 $as_echo "$ac_var='\''$ac_val'\''"
2073 done | sort
2074 echo
2077 if test -s confdefs.h; then
2078 cat <<\_ASBOX
2079 ## ----------- ##
2080 ## confdefs.h. ##
2081 ## ----------- ##
2082 _ASBOX
2083 echo
2084 cat confdefs.h
2085 echo
2087 test "$ac_signal" != 0 &&
2088 $as_echo "$as_me: caught signal $ac_signal"
2089 $as_echo "$as_me: exit $exit_status"
2090 } >&5
2091 rm -f core *.core core.conftest.* &&
2092 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2093 exit $exit_status
2095 for ac_signal in 1 2 13 15; do
2096 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2097 done
2098 ac_signal=0
2100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2101 rm -f -r conftest* confdefs.h
2103 $as_echo "/* confdefs.h */" > confdefs.h
2105 # Predefined preprocessor variables.
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_NAME "$PACKAGE_NAME"
2109 _ACEOF
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2113 _ACEOF
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2117 _ACEOF
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_STRING "$PACKAGE_STRING"
2121 _ACEOF
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2125 _ACEOF
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_URL "$PACKAGE_URL"
2129 _ACEOF
2132 # Let the site file select an alternate cache file if it wants to.
2133 # Prefer an explicitly selected file to automatically selected ones.
2134 ac_site_file1=NONE
2135 ac_site_file2=NONE
2136 if test -n "$CONFIG_SITE"; then
2137 ac_site_file1=$CONFIG_SITE
2138 elif test "x$prefix" != xNONE; then
2139 ac_site_file1=$prefix/share/config.site
2140 ac_site_file2=$prefix/etc/config.site
2141 else
2142 ac_site_file1=$ac_default_prefix/share/config.site
2143 ac_site_file2=$ac_default_prefix/etc/config.site
2145 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147 test "x$ac_site_file" = xNONE && continue
2148 if test -r "$ac_site_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2150 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2151 sed 's/^/| /' "$ac_site_file" >&5
2152 . "$ac_site_file"
2154 done
2156 if test -r "$cache_file"; then
2157 # Some versions of bash will fail to source /dev/null (special
2158 # files actually), so we avoid doing that.
2159 if test -f "$cache_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2161 $as_echo "$as_me: loading cache $cache_file" >&6;}
2162 case $cache_file in
2163 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2164 *) . "./$cache_file";;
2165 esac
2167 else
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2169 $as_echo "$as_me: creating cache $cache_file" >&6;}
2170 >$cache_file
2173 # Check that the precious variables saved in the cache have kept the same
2174 # value.
2175 ac_cache_corrupted=false
2176 for ac_var in $ac_precious_vars; do
2177 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2178 eval ac_new_set=\$ac_env_${ac_var}_set
2179 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2180 eval ac_new_val=\$ac_env_${ac_var}_value
2181 case $ac_old_set,$ac_new_set in
2182 set,)
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2184 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2185 ac_cache_corrupted=: ;;
2186 ,set)
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2188 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2189 ac_cache_corrupted=: ;;
2190 ,);;
2192 if test "x$ac_old_val" != "x$ac_new_val"; then
2193 # differences in whitespace do not lead to failure.
2194 ac_old_val_w=`echo x $ac_old_val`
2195 ac_new_val_w=`echo x $ac_new_val`
2196 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2198 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2199 ac_cache_corrupted=:
2200 else
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2202 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2203 eval $ac_var=\$ac_old_val
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2206 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2208 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2209 fi;;
2210 esac
2211 # Pass precious variables to config.status.
2212 if test "$ac_new_set" = set; then
2213 case $ac_new_val in
2214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2215 *) ac_arg=$ac_var=$ac_new_val ;;
2216 esac
2217 case " $ac_configure_args " in
2218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2219 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2220 esac
2222 done
2223 if $ac_cache_corrupted; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2227 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2228 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230 ## -------------------- ##
2231 ## Main body of script. ##
2232 ## -------------------- ##
2234 ac_ext=c
2235 ac_cpp='$CPP $CPPFLAGS'
2236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2248 progname=$0
2249 # if PWD already has a value, it is probably wrong.
2250 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2252 # Export original configure arguments for use by sub-configures.
2253 # Quote arguments with shell meta charatcers.
2254 TOPLEVEL_CONFIGURE_ARGUMENTS=
2255 set -- "$progname" "$@"
2256 for ac_arg
2258 case "$ac_arg" in
2259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2261 # if the argument is of the form -foo=baz, quote the baz part only
2262 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2263 *) ;;
2264 esac
2265 # Add the quoted argument to the list.
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2267 done
2268 if test "$silent" = yes; then
2269 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2271 # Remove the initial space we just introduced and, as these will be
2272 # expanded by make, quote '$'.
2273 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2276 # Find the build, host, and target systems.
2277 ac_aux_dir=
2278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 for ac_t in install-sh install.sh shtool; do
2280 if test -f "$ac_dir/$ac_t"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/$ac_t -c"
2283 break 2
2285 done
2286 done
2287 if test -z "$ac_aux_dir"; then
2288 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2305 $as_echo_n "checking build system type... " >&6; }
2306 if test "${ac_cv_build+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
2308 else
2309 ac_build_alias=$build_alias
2310 test "x$ac_build_alias" = x &&
2311 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2312 test "x$ac_build_alias" = x &&
2313 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2314 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2315 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2319 $as_echo "$ac_cv_build" >&6; }
2320 case $ac_cv_build in
2321 *-*-*) ;;
2322 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2323 esac
2324 build=$ac_cv_build
2325 ac_save_IFS=$IFS; IFS='-'
2326 set x $ac_cv_build
2327 shift
2328 build_cpu=$1
2329 build_vendor=$2
2330 shift; shift
2331 # Remember, the first character of IFS is used to create $*,
2332 # except with old shells:
2333 build_os=$*
2334 IFS=$ac_save_IFS
2335 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2338 case ${build_alias} in
2339 "") build_noncanonical=${build} ;;
2340 *) build_noncanonical=${build_alias} ;;
2341 esac
2345 case ${host_alias} in
2346 "") host_noncanonical=${build_noncanonical} ;;
2347 *) host_noncanonical=${host_alias} ;;
2348 esac
2352 case ${target_alias} in
2353 "") target_noncanonical=${host_noncanonical} ;;
2354 *) target_noncanonical=${target_alias} ;;
2355 esac
2360 test "$host_noncanonical" = "$target_noncanonical" &&
2361 test "$program_prefix$program_suffix$program_transform_name" = \
2362 NONENONEs,x,x, &&
2363 program_transform_name=s,y,y,
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2366 $as_echo_n "checking host system type... " >&6; }
2367 if test "${ac_cv_host+set}" = set; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 if test "x$host_alias" = x; then
2371 ac_cv_host=$ac_cv_build
2372 else
2373 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2374 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2379 $as_echo "$ac_cv_host" >&6; }
2380 case $ac_cv_host in
2381 *-*-*) ;;
2382 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2383 esac
2384 host=$ac_cv_host
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_host
2387 shift
2388 host_cpu=$1
2389 host_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 host_os=$*
2394 IFS=$ac_save_IFS
2395 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2399 $as_echo_n "checking target system type... " >&6; }
2400 if test "${ac_cv_target+set}" = set; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 if test "x$target_alias" = x; then
2404 ac_cv_target=$ac_cv_host
2405 else
2406 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2407 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2412 $as_echo "$ac_cv_target" >&6; }
2413 case $ac_cv_target in
2414 *-*-*) ;;
2415 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2416 esac
2417 target=$ac_cv_target
2418 ac_save_IFS=$IFS; IFS='-'
2419 set x $ac_cv_target
2420 shift
2421 target_cpu=$1
2422 target_vendor=$2
2423 shift; shift
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2426 target_os=$*
2427 IFS=$ac_save_IFS
2428 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2431 # The aliases save the names the user supplied, while $host etc.
2432 # will get canonicalized.
2433 test -n "$target_alias" &&
2434 test "$program_prefix$program_suffix$program_transform_name" = \
2435 NONENONEs,x,x, &&
2436 program_prefix=${target_alias}-
2438 test "$program_prefix" != NONE &&
2439 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2440 # Use a double $ so make ignores it.
2441 test "$program_suffix" != NONE &&
2442 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2443 # Double any \ or $.
2444 # By default was `s,x,x', remove it if useless.
2445 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2446 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2450 # Get 'install' or 'install-sh' and its variants.
2451 # Find a good install program. We prefer a C program (faster),
2452 # so one script is as good as another. But avoid the broken or
2453 # incompatible versions:
2454 # SysV /etc/install, /usr/sbin/install
2455 # SunOS /usr/etc/install
2456 # IRIX /sbin/install
2457 # AIX /bin/install
2458 # AmigaOS /C/install, which installs bootblocks on floppy discs
2459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2462 # OS/2's system install, which has a completely different semantic
2463 # ./install, which can be erroneously created by make from ./install.sh.
2464 # Reject install programs that cannot install multiple files.
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2467 if test -z "$INSTALL"; then
2468 if test "${ac_cv_path_install+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 # Account for people who put trailing slashes in PATH elements.
2477 case $as_dir/ in #((
2478 ./ | .// | /[cC]/* | \
2479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2481 /usr/ucb/* ) ;;
2483 # OSF1 and SCO ODT 3.0 have their own names for install.
2484 # Don't use installbsd from OSF since it installs stuff as root
2485 # by default.
2486 for ac_prog in ginstall scoinst install; do
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2489 if test $ac_prog = install &&
2490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2491 # AIX install. It has an incompatible calling convention.
2493 elif test $ac_prog = install &&
2494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # program-specific install script used by HP pwplus--don't use.
2497 else
2498 rm -rf conftest.one conftest.two conftest.dir
2499 echo one > conftest.one
2500 echo two > conftest.two
2501 mkdir conftest.dir
2502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2503 test -s conftest.one && test -s conftest.two &&
2504 test -s conftest.dir/conftest.one &&
2505 test -s conftest.dir/conftest.two
2506 then
2507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2508 break 3
2512 done
2513 done
2515 esac
2517 done
2518 IFS=$as_save_IFS
2520 rm -rf conftest.one conftest.two conftest.dir
2523 if test "${ac_cv_path_install+set}" = set; then
2524 INSTALL=$ac_cv_path_install
2525 else
2526 # As a last resort, use the slow shell script. Don't cache a
2527 # value for INSTALL within a source directory, because that will
2528 # break other packages using the cache if that directory is
2529 # removed, or if the value is a relative name.
2530 INSTALL=$ac_install_sh
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2534 $as_echo "$INSTALL" >&6; }
2536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2537 # It thinks the first close brace ends the variable substitution.
2538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2545 $as_echo_n "checking whether ln works... " >&6; }
2546 if test "${acx_cv_prog_LN+set}" = set; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 rm -f conftestdata_t
2550 echo >conftestdata_f
2551 if ln conftestdata_f conftestdata_t 2>/dev/null
2552 then
2553 acx_cv_prog_LN=ln
2554 else
2555 acx_cv_prog_LN=no
2557 rm -f conftestdata_f conftestdata_t
2560 if test $acx_cv_prog_LN = no; then
2561 LN="cp"
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2563 $as_echo "no, using $LN" >&6; }
2564 else
2565 LN="$acx_cv_prog_LN"
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2567 $as_echo "yes" >&6; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2571 $as_echo_n "checking whether ln -s works... " >&6; }
2572 LN_S=$as_ln_s
2573 if test "$LN_S" = "ln -s"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575 $as_echo "yes" >&6; }
2576 else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2578 $as_echo "no, using $LN_S" >&6; }
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2582 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2583 if test "${ac_cv_path_SED+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2587 for ac_i in 1 2 3 4 5 6 7; do
2588 ac_script="$ac_script$as_nl$ac_script"
2589 done
2590 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2591 { ac_script=; unset ac_script;}
2592 if test -z "$SED"; then
2593 ac_path_SED_found=false
2594 # Loop through the user's path and test for each of PROGNAME-LIST
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_prog in sed gsed; do
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2603 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2604 # Check for GNU ac_path_SED and select it if it is found.
2605 # Check for GNU $ac_path_SED
2606 case `"$ac_path_SED" --version 2>&1` in
2607 *GNU*)
2608 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2610 ac_count=0
2611 $as_echo_n 0123456789 >"conftest.in"
2612 while :
2614 cat "conftest.in" "conftest.in" >"conftest.tmp"
2615 mv "conftest.tmp" "conftest.in"
2616 cp "conftest.in" "conftest.nl"
2617 $as_echo '' >> "conftest.nl"
2618 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2620 as_fn_arith $ac_count + 1 && ac_count=$as_val
2621 if test $ac_count -gt ${ac_path_SED_max-0}; then
2622 # Best one so far, save it but keep looking for a better one
2623 ac_cv_path_SED="$ac_path_SED"
2624 ac_path_SED_max=$ac_count
2626 # 10*(2^10) chars as input seems more than enough
2627 test $ac_count -gt 10 && break
2628 done
2629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2630 esac
2632 $ac_path_SED_found && break 3
2633 done
2634 done
2635 done
2636 IFS=$as_save_IFS
2637 if test -z "$ac_cv_path_SED"; then
2638 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2640 else
2641 ac_cv_path_SED=$SED
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2646 $as_echo "$ac_cv_path_SED" >&6; }
2647 SED="$ac_cv_path_SED"
2648 rm -f conftest.sed
2650 for ac_prog in gawk mawk nawk awk
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if test "${ac_cv_prog_AWK+set}" = set; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 if test -n "$AWK"; then
2660 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_AWK="$ac_prog"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 break 2
2673 done
2674 done
2675 IFS=$as_save_IFS
2679 AWK=$ac_cv_prog_AWK
2680 if test -n "$AWK"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2682 $as_echo "$AWK" >&6; }
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2689 test -n "$AWK" && break
2690 done
2693 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2695 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2696 # a relative path.
2697 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2698 INSTALL="${srcpwd}/install-sh -c"
2701 # Set srcdir to "." if that's what it is.
2702 # This is important for multilib support.
2703 pwd=`${PWDCMD-pwd}`
2704 if test "${pwd}" = "${srcpwd}" ; then
2705 srcdir=.
2708 topsrcdir=$srcpwd
2710 extra_host_args=
2712 ### To add a new directory to the tree, first choose whether it is a target
2713 ### or a host dependent tool. Then put it into the appropriate list
2714 ### (library or tools, host or target), doing a dependency sort.
2716 # Subdirs will be configured in the order listed in build_configdirs,
2717 # configdirs, or target_configdirs; see the serialization section below.
2719 # Dependency sorting is only needed when *configuration* must be done in
2720 # a particular order. In all cases a dependency should be specified in
2721 # the Makefile, whether or not it's implicitly specified here.
2723 # Double entries in build_configdirs, configdirs, or target_configdirs may
2724 # cause circular dependencies and break everything horribly.
2726 # these library is used by various programs built for the build
2727 # environment
2729 build_libs="build-libiberty build-libcpp"
2731 # these tools are built for the build environment
2732 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2734 # these libraries are used by various programs built for the host environment
2736 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2738 # these tools are built for the host environment
2739 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2740 # know that we are building the simulator.
2741 # binutils, gas and ld appear in that order because it makes sense to run
2742 # "make check" in that particular order.
2743 # If --enable-gold is used, "gold" may replace "ld".
2744 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"
2746 # these libraries are built for the target environment, and are built after
2747 # the host libraries and the host tools (which may be a cross compiler)
2748 # Note that libiberty is not a target library.
2749 target_libraries="target-libgcc \
2750 target-libbacktrace \
2751 target-libgloss \
2752 target-newlib \
2753 target-libgomp \
2754 target-liboffloadmic \
2755 target-libhsail-rt \
2756 target-libatomic \
2757 target-libitm \
2758 target-libstdc++-v3 \
2759 target-libsanitizer \
2760 target-libvtv \
2761 target-libssp \
2762 target-libquadmath \
2763 target-libgfortran \
2764 target-libffi \
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 # Enable libgomp by default on hosted POSIX systems, and a few others.
3152 if test x$enable_libgomp = x ; then
3153 case "${target}" in
3154 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3156 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3158 *-*-solaris2* | *-*-hpux11*)
3160 *-*-darwin* | *-*-aix*)
3162 nvptx*-*-*)
3165 noconfigdirs="$noconfigdirs target-libgomp"
3167 esac
3170 # Disable libatomic on unsupported systems.
3171 if test -d ${srcdir}/libatomic; then
3172 if test x$enable_libatomic = x; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3174 $as_echo_n "checking for libatomic support... " >&6; }
3175 if (srcdir=${srcdir}/libatomic; \
3176 . ${srcdir}/configure.tgt; \
3177 test -n "$UNSUPPORTED")
3178 then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 noconfigdirs="$noconfigdirs target-libatomic"
3182 else
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184 $as_echo "yes" >&6; }
3189 # Disable liboffloadmic on unsupported systems.
3190 if test -d ${srcdir}/liboffloadmic; then
3191 if test x$enable_liboffloadmic != xno; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3193 $as_echo_n "checking for liboffloadmic support... " >&6; }
3194 if (srcdir=${srcdir}/liboffloadmic; \
3195 . ${srcdir}/configure.tgt; \
3196 test -n "$UNSUPPORTED")
3197 then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 noconfigdirs="$noconfigdirs target-liboffloadmic"
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3208 # Disable libitm on unsupported systems.
3209 if test -d ${srcdir}/libitm; then
3210 if test x$enable_libitm = x; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3212 $as_echo_n "checking for libitm support... " >&6; }
3213 if (srcdir=${srcdir}/libitm; \
3214 . ${srcdir}/configure.tgt; \
3215 test -n "$UNSUPPORTED")
3216 then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 noconfigdirs="$noconfigdirs target-libitm"
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3227 # Disable libsanitizer on unsupported systems.
3228 if test -d ${srcdir}/libsanitizer; then
3229 if test x$enable_libsanitizer = x; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3231 $as_echo_n "checking for libsanitizer support... " >&6; }
3232 if (srcdir=${srcdir}/libsanitizer; \
3233 . ${srcdir}/configure.tgt; \
3234 test -n "$UNSUPPORTED")
3235 then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238 noconfigdirs="$noconfigdirs target-libsanitizer"
3239 else
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3246 # Disable libvtv on unsupported systems.
3247 if test -d ${srcdir}/libvtv; then
3248 if test x$enable_libvtv = x; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3250 $as_echo_n "checking for libvtv support... " >&6; }
3251 if (srcdir=${srcdir}/libvtv; \
3252 . ${srcdir}/configure.tgt; \
3253 test "$VTV_SUPPORTED" != "yes")
3254 then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 noconfigdirs="$noconfigdirs target-libvtv"
3258 else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3266 # Disable libhsail-rt on unsupported systems.
3267 if test -d ${srcdir}/libhsail-rt; then
3268 if test x$enable_libhsail_rt = x; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3270 $as_echo_n "checking for libhsail-rt support... " >&6; }
3271 if (srcdir=${srcdir}/libhsail-rt; \
3272 . ${srcdir}/configure.tgt; \
3273 test -n "$UNSUPPORTED")
3274 then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 unsupported_languages="$unsupported_languages brig"
3278 # This implicitly disables also target-libhsail-rt as it won't
3279 # get added to the build without BRIG FE.
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3288 # Disable libquadmath for some systems.
3289 case "${target}" in
3290 avr-*-*)
3291 noconfigdirs="$noconfigdirs target-libquadmath"
3293 # libquadmath is unused on AIX and libquadmath build process use of
3294 # LD_LIBRARY_PATH can break AIX bootstrap.
3295 powerpc-*-aix* | rs6000-*-aix*)
3296 noconfigdirs="$noconfigdirs target-libquadmath"
3298 esac
3300 # Disable libssp for some systems.
3301 case "${target}" in
3302 avr-*-*)
3303 # No hosted I/O support.
3304 noconfigdirs="$noconfigdirs target-libssp"
3306 powerpc-*-aix* | rs6000-*-aix*)
3307 noconfigdirs="$noconfigdirs target-libssp"
3309 rl78-*-*)
3310 # libssp uses a misaligned load to trigger a fault, but the RL78
3311 # doesn't fault for those - instead, it gives a build-time error
3312 # for explicit misaligned loads.
3313 noconfigdirs="$noconfigdirs target-libssp"
3315 visium-*-*)
3316 # No hosted I/O support.
3317 noconfigdirs="$noconfigdirs target-libssp"
3319 esac
3321 # Disable libstdc++-v3 for some systems.
3322 # Allow user to override this if they pass --enable-libstdc++-v3
3323 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3324 case "${target}" in
3325 *-*-vxworks*)
3326 # VxWorks uses the Dinkumware C++ library.
3327 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3329 arm*-wince-pe*)
3330 # the C++ libraries don't build on top of CE's C libraries
3331 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3333 avr-*-*)
3334 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3336 ft32-*-*)
3337 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3339 esac
3342 # Disable Fortran for some systems.
3343 case "${target}" in
3344 mmix-*-*)
3345 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3346 unsupported_languages="$unsupported_languages fortran"
3348 esac
3350 # Disable libffi for some systems.
3351 case "${target}" in
3352 powerpc-*-darwin*)
3354 i[3456789]86-*-darwin*)
3356 x86_64-*-darwin[912]*)
3358 *-*-darwin*)
3359 noconfigdirs="$noconfigdirs target-libffi"
3361 *-*-netware*)
3362 noconfigdirs="$noconfigdirs target-libffi"
3364 *-*-phoenix*)
3365 noconfigdirs="$noconfigdirs target-libffi"
3367 *-*-rtems*)
3368 noconfigdirs="$noconfigdirs target-libffi"
3370 *-*-tpf*)
3371 noconfigdirs="$noconfigdirs target-libffi"
3373 *-*-uclinux*)
3374 noconfigdirs="$noconfigdirs target-libffi"
3376 *-*-vxworks*)
3377 noconfigdirs="$noconfigdirs target-libffi"
3379 aarch64*-*-freebsd*)
3380 noconfigdirs="$noconfigdirs target-libffi"
3382 alpha*-*-*vms*)
3383 noconfigdirs="$noconfigdirs target-libffi"
3385 arm*-*-freebsd*)
3386 noconfigdirs="$noconfigdirs target-libffi"
3388 arm-wince-pe)
3389 noconfigdirs="$noconfigdirs target-libffi"
3391 arm*-*-symbianelf*)
3392 noconfigdirs="$noconfigdirs target-libffi"
3394 cris-*-* | crisv32-*-*)
3395 case "${target}" in
3396 *-*-linux*)
3398 *) # See PR46792 regarding target-libffi.
3399 noconfigdirs="$noconfigdirs target-libffi";;
3400 esac
3402 hppa*64*-*-hpux*)
3403 noconfigdirs="$noconfigdirs target-libffi"
3405 hppa*-hp-hpux11*)
3407 hppa*-*-hpux*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3410 ia64*-*-*vms*)
3411 noconfigdirs="$noconfigdirs target-libffi"
3413 i[3456789]86-w64-mingw*)
3414 noconfigdirs="$noconfigdirs target-libffi"
3416 i[3456789]86-*-mingw*)
3417 noconfigdirs="$noconfigdirs target-libffi"
3419 x86_64-*-mingw*)
3420 noconfigdirs="$noconfigdirs target-libffi"
3422 mmix-*-*)
3423 noconfigdirs="$noconfigdirs target-libffi"
3425 powerpc-*-aix*)
3427 rs6000-*-aix*)
3429 ft32-*-*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3432 *-*-lynxos*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3435 esac
3437 # Disable the go frontend on systems where it is known to not work. Please keep
3438 # this in sync with contrib/config-list.mk.
3439 case "${target}" in
3440 *-*-darwin* | *-*-cygwin* | *-*-mingw*)
3441 unsupported_languages="$unsupported_languages go"
3443 esac
3445 # Disable libgo for some systems where it is known to not work.
3446 # For testing, you can easily override this with --enable-libgo.
3447 if test x$enable_libgo = x; then
3448 case "${target}" in
3449 *-*-darwin*)
3450 # PR 46986
3451 noconfigdirs="$noconfigdirs target-libgo"
3453 *-*-cygwin* | *-*-mingw*)
3454 noconfigdirs="$noconfigdirs target-libgo"
3456 esac
3459 # Default libgloss CPU subdirectory.
3460 libgloss_dir="$target_cpu"
3462 case "${target}" in
3463 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3464 libgloss_dir=wince
3466 aarch64*-*-* )
3467 libgloss_dir=aarch64
3469 arm*-*-*)
3470 libgloss_dir=arm
3472 cris-*-* | crisv32-*-*)
3473 libgloss_dir=cris
3475 hppa*-*-*)
3476 libgloss_dir=pa
3478 i[3456789]86-*-*)
3479 libgloss_dir=i386
3481 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3482 libgloss_dir=m68hc11
3484 m68*-*-* | fido-*-*)
3485 libgloss_dir=m68k
3487 mips*-*-*)
3488 libgloss_dir=mips
3490 powerpc*-*-*)
3491 libgloss_dir=rs6000
3493 sparc*-*-*)
3494 libgloss_dir=sparc
3496 esac
3498 # Disable newlib and libgloss for various target OSes.
3499 case "${target}" in
3500 alpha*-dec-osf*)
3501 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3503 i[3456789]86-*-linux*)
3504 # This section makes it possible to build newlib natively on linux.
3505 # If we are using a cross compiler then don't configure newlib.
3506 if test x${is_cross_compiler} != xno ; then
3507 noconfigdirs="$noconfigdirs target-newlib"
3509 noconfigdirs="$noconfigdirs target-libgloss"
3510 # If we are not using a cross compiler, do configure newlib.
3511 # Note however, that newlib will only be configured in this situation
3512 # if the --with-newlib option has been given, because otherwise
3513 # 'target-newlib' will appear in skipdirs.
3515 i[3456789]86-*-rdos*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3519 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3521 sparc-*-sunos4*)
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 *-*-aix*)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 *-*-beos*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 *-*-chorusos)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 *-*-dragonfly*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 *-*-freebsd*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 *-*-lynxos*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 *-*-mingw*)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 *-*-netbsd*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 *-*-netware*)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 *-*-tpf*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 *-*-uclinux*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 *-*-vxworks*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 esac
3565 case "${target}" in
3566 *-*-chorusos)
3568 aarch64-*-darwin*)
3569 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3570 noconfigdirs="$noconfigdirs sim target-rda"
3572 arm-*-darwin*)
3573 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3574 noconfigdirs="$noconfigdirs sim target-rda"
3576 powerpc-*-darwin*)
3577 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3578 noconfigdirs="$noconfigdirs sim target-rda"
3580 i[3456789]86-*-darwin*)
3581 noconfigdirs="$noconfigdirs ld gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
3584 x86_64-*-darwin[912]*)
3585 noconfigdirs="$noconfigdirs ld gas gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3588 *-*-darwin*)
3589 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3590 noconfigdirs="$noconfigdirs sim target-rda"
3592 *-*-dragonfly*)
3594 *-*-freebsd*)
3595 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3596 && test -f /usr/local/include/gmp.h; then
3597 with_gmp=/usr/local
3600 *-*-kaos*)
3601 # Remove unsupported stuff on all kaOS configurations.
3602 noconfigdirs="$noconfigdirs target-libgloss"
3604 *-*-netbsd*)
3606 *-*-netware*)
3608 *-*-phoenix*)
3609 noconfigdirs="$noconfigdirs target-libgloss"
3611 *-*-rtems*)
3612 noconfigdirs="$noconfigdirs target-libgloss"
3614 # The tpf target doesn't support gdb yet.
3615 *-*-tpf*)
3616 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3618 *-*-uclinux*)
3619 noconfigdirs="$noconfigdirs target-rda"
3621 *-*-vxworks*)
3623 alpha*-dec-osf*)
3624 # ld works, but does not support shared libraries.
3625 # gas doesn't generate exception information.
3626 noconfigdirs="$noconfigdirs gas ld"
3628 alpha*-*-*vms*)
3629 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3631 alpha*-*-*)
3632 # newlib is not 64 bit ready
3633 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3635 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3636 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3638 arc*-*-*)
3639 noconfigdirs="$noconfigdirs sim"
3641 arm-*-pe*)
3642 noconfigdirs="$noconfigdirs target-libgloss"
3644 arm-*-riscix*)
3645 noconfigdirs="$noconfigdirs ld target-libgloss"
3647 avr-*-*)
3648 if test x${with_avrlibc} != xno; then
3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 c4x-*-* | tic4x-*-*)
3653 noconfigdirs="$noconfigdirs target-libgloss"
3655 tic54x-*-*)
3656 noconfigdirs="$noconfigdirs target-libgloss gdb"
3658 d10v-*-*)
3659 noconfigdirs="$noconfigdirs target-libgloss"
3661 d30v-*-*)
3662 noconfigdirs="$noconfigdirs gdb"
3664 fr30-*-elf*)
3665 noconfigdirs="$noconfigdirs gdb"
3667 ft32-*-*)
3668 noconfigdirs="$noconfigdirs target-rda gprof"
3670 moxie-*-*)
3671 noconfigdirs="$noconfigdirs"
3673 h8300*-*-*)
3674 noconfigdirs="$noconfigdirs target-libgloss"
3676 h8500-*-*)
3677 noconfigdirs="$noconfigdirs target-libgloss"
3679 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3681 hppa*64*-*-hpux*)
3682 noconfigdirs="$noconfigdirs gdb"
3684 hppa*-*-hpux11*)
3685 noconfigdirs="$noconfigdirs gdb ld"
3687 hppa*64*-*-linux*)
3689 hppa*-*-linux*)
3691 hppa*-*-*elf* | \
3692 hppa*-*-lites* | \
3693 hppa*-*-openbsd* | \
3694 hppa*64*-*-*)
3696 hppa*-*-pro*)
3698 hppa*-*-*)
3699 noconfigdirs="$noconfigdirs ld"
3701 i960-*-*)
3702 noconfigdirs="$noconfigdirs gdb"
3704 ia64*-*-elf*)
3705 # No gdb support yet.
3706 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3708 ia64*-**-hpux*)
3709 # No ld support yet.
3710 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3712 ia64*-*-*vms*)
3713 # No ld support yet.
3714 noconfigdirs="$noconfigdirs libgui itcl ld"
3716 i[3456789]86-w64-mingw*)
3718 i[3456789]86-*-mingw*)
3719 target_configdirs="$target_configdirs target-winsup"
3721 *-*-cygwin*)
3722 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3723 noconfigdirs="$noconfigdirs target-libgloss"
3724 # always build newlib if winsup directory is present.
3725 if test -d "$srcdir/winsup/cygwin"; then
3726 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3727 elif test -d "$srcdir/newlib"; then
3728 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3731 i[3456789]86-*-pe)
3732 noconfigdirs="$noconfigdirs target-libgloss"
3734 i[3456789]86-*-sco3.2v5*)
3735 # The linker does not yet know about weak symbols in COFF,
3736 # and is not configured to handle mixed ELF and COFF.
3737 noconfigdirs="$noconfigdirs ld target-libgloss"
3739 i[3456789]86-*-sco*)
3740 noconfigdirs="$noconfigdirs gprof target-libgloss"
3742 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3743 noconfigdirs="$noconfigdirs target-libgloss"
3745 i[3456789]86-*-sysv4*)
3746 noconfigdirs="$noconfigdirs target-libgloss"
3748 i[3456789]86-*-beos*)
3749 noconfigdirs="$noconfigdirs gdb"
3751 i[3456789]86-*-rdos*)
3752 noconfigdirs="$noconfigdirs gdb"
3754 mmix-*-*)
3755 noconfigdirs="$noconfigdirs gdb"
3757 mt-*-*)
3758 noconfigdirs="$noconfigdirs sim"
3760 nfp-*-*)
3761 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3762 noconfigdirs="$noconfigdirs $target_libraries"
3764 powerpc-*-aix*)
3765 # copied from rs6000-*-* entry
3766 noconfigdirs="$noconfigdirs gprof"
3768 powerpc*-*-winnt* | powerpc*-*-pe*)
3769 target_configdirs="$target_configdirs target-winsup"
3770 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3771 # always build newlib.
3772 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3774 # This is temporary until we can link against shared libraries
3775 powerpcle-*-solaris*)
3776 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3778 powerpc-*-beos*)
3779 noconfigdirs="$noconfigdirs gdb"
3781 rs6000-*-lynxos*)
3782 noconfigdirs="$noconfigdirs gprof"
3784 rs6000-*-aix*)
3785 noconfigdirs="$noconfigdirs gprof"
3787 rs6000-*-*)
3788 noconfigdirs="$noconfigdirs gprof"
3790 m68k-apollo-*)
3791 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3793 microblaze*)
3794 noconfigdirs="$noconfigdirs gprof"
3796 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3797 if test x$with_newlib = xyes; then
3798 noconfigdirs="$noconfigdirs gprof"
3801 mips*-*-irix5*)
3802 noconfigdirs="$noconfigdirs gprof target-libgloss"
3804 mips*-*-irix6*)
3805 noconfigdirs="$noconfigdirs gprof target-libgloss"
3807 mips*-*-bsd*)
3808 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3810 mips*-*-linux*)
3812 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3813 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3814 noconfigdirs="$noconfigdirs ld gas gprof"
3816 mips*-*-*)
3817 noconfigdirs="$noconfigdirs gprof"
3819 nvptx*-*-*)
3820 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3822 sh-*-*)
3823 case "${target}" in
3824 sh*-*-elf)
3827 noconfigdirs="$noconfigdirs target-libgloss" ;;
3828 esac
3830 sparc-*-sunos4*)
3831 if test x${is_cross_compiler} = xno ; then
3832 use_gnu_ld=no
3835 tic6x-*-*)
3836 noconfigdirs="$noconfigdirs sim"
3838 tilepro*-*-* | tilegx*-*-*)
3839 noconfigdirs="$noconfigdirs sim"
3841 v810-*-*)
3842 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3844 vax-*-*)
3845 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3847 wasm32-*-*)
3848 noconfigdirs="$noconfigdirs ld"
3850 esac
3852 # If we aren't building newlib, then don't build libgloss, since libgloss
3853 # depends upon some newlib header files.
3854 case "${noconfigdirs}" in
3855 *target-libgloss*) ;;
3856 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3857 esac
3859 # Work in distributions that contain no compiler tools, like Autoconf.
3860 host_makefile_frag=/dev/null
3861 if test -d ${srcdir}/config ; then
3862 case "${host}" in
3863 i[3456789]86-*-msdosdjgpp*)
3864 host_makefile_frag="config/mh-djgpp"
3866 *-cygwin*)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3869 $as_echo_n "checking to see if cat works as expected... " >&6; }
3870 echo a >cygwin-cat-check
3871 if test `cat cygwin-cat-check` = a ; then
3872 rm cygwin-cat-check
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874 $as_echo "yes" >&6; }
3875 else
3876 rm cygwin-cat-check
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 as_fn_error "The cat command does not ignore carriage return characters.
3880 Please either mount the build directory in binary mode or run the following
3881 commands before running any configure script:
3882 set -o igncr
3883 export SHELLOPTS
3884 " "$LINENO" 5
3887 host_makefile_frag="config/mh-cygwin"
3889 *-mingw*)
3890 host_makefile_frag="config/mh-mingw"
3892 alpha*-linux*)
3893 host_makefile_frag="config/mh-alpha-linux"
3895 hppa*-hp-hpux10*)
3896 host_makefile_frag="config/mh-pa-hpux10"
3898 hppa*-hp-hpux*)
3899 host_makefile_frag="config/mh-pa"
3901 hppa*-*)
3902 host_makefile_frag="config/mh-pa"
3904 *-*-darwin*)
3905 host_makefile_frag="config/mh-darwin"
3907 powerpc-*-aix*)
3908 host_makefile_frag="config/mh-ppc-aix"
3910 rs6000-*-aix*)
3911 host_makefile_frag="config/mh-ppc-aix"
3913 esac
3916 if test "${build}" != "${host}" ; then
3917 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3918 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3919 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3920 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3921 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3922 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3923 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3924 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3925 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3926 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3927 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3928 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3929 else
3930 AR_FOR_BUILD="\$(AR)"
3931 AS_FOR_BUILD="\$(AS)"
3932 CC_FOR_BUILD="\$(CC)"
3933 CXX_FOR_BUILD="\$(CXX)"
3934 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3935 GOC_FOR_BUILD="\$(GOC)"
3936 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3937 LD_FOR_BUILD="\$(LD)"
3938 NM_FOR_BUILD="\$(NM)"
3939 RANLIB_FOR_BUILD="\$(RANLIB)"
3940 WINDRES_FOR_BUILD="\$(WINDRES)"
3941 WINDMC_FOR_BUILD="\$(WINDMC)"
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 if test -n "$ac_tool_prefix"; then
3950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953 $as_echo_n "checking for $ac_word... " >&6; }
3954 if test "${ac_cv_prog_CC+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3971 done
3972 done
3973 IFS=$as_save_IFS
3977 CC=$ac_cv_prog_CC
3978 if test -n "$CC"; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3980 $as_echo "$CC" >&6; }
3981 else
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 $as_echo "no" >&6; }
3988 if test -z "$ac_cv_prog_CC"; then
3989 ac_ct_CC=$CC
3990 # Extract the first word of "gcc", so it can be a program name with args.
3991 set dummy gcc; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_ac_ct_CC="gcc"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4013 IFS=$as_save_IFS
4017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4018 if test -n "$ac_ct_CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020 $as_echo "$ac_ct_CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4026 if test "x$ac_ct_CC" = x; then
4027 CC=""
4028 else
4029 case $cross_compiling:$ac_tool_warned in
4030 yes:)
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4033 ac_tool_warned=yes ;;
4034 esac
4035 CC=$ac_ct_CC
4037 else
4038 CC="$ac_cv_prog_CC"
4041 if test -z "$CC"; then
4042 if test -n "$ac_tool_prefix"; then
4043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4044 set dummy ${ac_tool_prefix}cc; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if test "${ac_cv_prog_CC+set}" = set; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if test -n "$CC"; then
4051 ac_cv_prog_CC="$CC" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4060 ac_cv_prog_CC="${ac_tool_prefix}cc"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4066 IFS=$as_save_IFS
4070 CC=$ac_cv_prog_CC
4071 if test -n "$CC"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4073 $as_echo "$CC" >&6; }
4074 else
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4082 if test -z "$CC"; then
4083 # Extract the first word of "cc", so it can be a program name with args.
4084 set dummy cc; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 ac_prog_rejected=no
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4102 ac_prog_rejected=yes
4103 continue
4105 ac_cv_prog_CC="cc"
4106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4109 done
4110 done
4111 IFS=$as_save_IFS
4113 if test $ac_prog_rejected = yes; then
4114 # We found a bogon in the path, so make sure we never use it.
4115 set dummy $ac_cv_prog_CC
4116 shift
4117 if test $# != 0; then
4118 # We chose a different compiler from the bogus one.
4119 # However, it has the same basename, so the bogon will be chosen
4120 # first if we set CC to just the basename; use the full file name.
4121 shift
4122 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4127 CC=$ac_cv_prog_CC
4128 if test -n "$CC"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130 $as_echo "$CC" >&6; }
4131 else
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4138 if test -z "$CC"; then
4139 if test -n "$ac_tool_prefix"; then
4140 for ac_prog in cl.exe
4142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if test "${ac_cv_prog_CC+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -n "$CC"; then
4150 ac_cv_prog_CC="$CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4163 done
4164 done
4165 IFS=$as_save_IFS
4169 CC=$ac_cv_prog_CC
4170 if test -n "$CC"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4172 $as_echo "$CC" >&6; }
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4179 test -n "$CC" && break
4180 done
4182 if test -z "$CC"; then
4183 ac_ct_CC=$CC
4184 for ac_prog in cl.exe
4186 # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4192 else
4193 if test -n "$ac_ct_CC"; then
4194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_ac_ct_CC="$ac_prog"
4204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4207 done
4208 done
4209 IFS=$as_save_IFS
4213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4214 if test -n "$ac_ct_CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4216 $as_echo "$ac_ct_CC" >&6; }
4217 else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4223 test -n "$ac_ct_CC" && break
4224 done
4226 if test "x$ac_ct_CC" = x; then
4227 CC=""
4228 else
4229 case $cross_compiling:$ac_tool_warned in
4230 yes:)
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233 ac_tool_warned=yes ;;
4234 esac
4235 CC=$ac_ct_CC
4242 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4244 as_fn_error "no acceptable C compiler found in \$PATH
4245 See \`config.log' for more details." "$LINENO" 5; }
4247 # Provide some information about the compiler.
4248 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4249 set X $ac_compile
4250 ac_compiler=$2
4251 for ac_option in --version -v -V -qversion; do
4252 { { ac_try="$ac_compiler $ac_option >&5"
4253 case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 $as_echo "$ac_try_echo"; } >&5
4259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4260 ac_status=$?
4261 if test -s conftest.err; then
4262 sed '10a\
4263 ... rest of stderr output deleted ...
4264 10q' conftest.err >conftest.er1
4265 cat conftest.er1 >&5
4266 rm -f conftest.er1 conftest.err
4268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4269 test $ac_status = 0; }
4270 done
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4276 main ()
4280 return 0;
4282 _ACEOF
4283 ac_clean_files_save=$ac_clean_files
4284 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4285 # Try to create an executable without -o first, disregard a.out.
4286 # It will help us diagnose broken compilers, and finding out an intuition
4287 # of exeext.
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4289 $as_echo_n "checking for C compiler default output file name... " >&6; }
4290 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4292 # The possible output files:
4293 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4295 ac_rmfiles=
4296 for ac_file in $ac_files
4298 case $ac_file in
4299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4300 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4301 esac
4302 done
4303 rm -f $ac_rmfiles
4305 if { { ac_try="$ac_link_default"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_link_default") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; then :
4316 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4317 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4318 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4319 # so that the user can short-circuit this test for compilers unknown to
4320 # Autoconf.
4321 for ac_file in $ac_files ''
4323 test -f "$ac_file" || continue
4324 case $ac_file in
4325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4327 [ab].out )
4328 # We found the default executable, but exeext='' is most
4329 # certainly right.
4330 break;;
4331 *.* )
4332 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4333 then :; else
4334 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4336 # We set ac_cv_exeext here because the later test for it is not
4337 # safe: cross compilers may not add the suffix if given an `-o'
4338 # argument, so we may need to know it at that point already.
4339 # Even if this section looks crufty: it has the advantage of
4340 # actually working.
4341 break;;
4343 break;;
4344 esac
4345 done
4346 test "$ac_cv_exeext" = no && ac_cv_exeext=
4348 else
4349 ac_file=''
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4352 $as_echo "$ac_file" >&6; }
4353 if test -z "$ac_file"; then :
4354 $as_echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4359 { as_fn_set_status 77
4360 as_fn_error "C compiler cannot create executables
4361 See \`config.log' for more details." "$LINENO" 5; }; }
4363 ac_exeext=$ac_cv_exeext
4365 # Check that the compiler produces executables we can run. If not, either
4366 # the compiler is broken, or we cross compile.
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4368 $as_echo_n "checking whether the C compiler works... " >&6; }
4369 # If not cross compiling, check that we can run a simple program.
4370 if test "$cross_compiling" != yes; then
4371 if { ac_try='./$ac_file'
4372 { { case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_try") 2>&5
4379 ac_status=$?
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; }; }; then
4382 cross_compiling=no
4383 else
4384 if test "$cross_compiling" = maybe; then
4385 cross_compiling=yes
4386 else
4387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4389 as_fn_error "cannot run C compiled programs.
4390 If you meant to cross compile, use \`--host'.
4391 See \`config.log' for more details." "$LINENO" 5; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396 $as_echo "yes" >&6; }
4398 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4399 ac_clean_files=$ac_clean_files_save
4400 # Check that the compiler produces executables we can run. If not, either
4401 # the compiler is broken, or we cross compile.
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4403 $as_echo_n "checking whether we are cross compiling... " >&6; }
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4405 $as_echo "$cross_compiling" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4408 $as_echo_n "checking for suffix of executables... " >&6; }
4409 if { { ac_try="$ac_link"
4410 case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413 esac
4414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416 (eval "$ac_link") 2>&5
4417 ac_status=$?
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }; then :
4420 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4421 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4422 # work properly (i.e., refer to `conftest.exe'), while it won't with
4423 # `rm'.
4424 for ac_file in conftest.exe conftest conftest.*; do
4425 test -f "$ac_file" || continue
4426 case $ac_file in
4427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4428 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4429 break;;
4430 * ) break;;
4431 esac
4432 done
4433 else
4434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 as_fn_error "cannot compute suffix of executables: cannot compile and link
4437 See \`config.log' for more details." "$LINENO" 5; }
4439 rm -f conftest$ac_cv_exeext
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4441 $as_echo "$ac_cv_exeext" >&6; }
4443 rm -f conftest.$ac_ext
4444 EXEEXT=$ac_cv_exeext
4445 ac_exeext=$EXEEXT
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4447 $as_echo_n "checking for suffix of object files... " >&6; }
4448 if test "${ac_cv_objext+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4455 main ()
4459 return 0;
4461 _ACEOF
4462 rm -f conftest.o conftest.obj
4463 if { { ac_try="$ac_compile"
4464 case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 $as_echo "$ac_try_echo"; } >&5
4470 (eval "$ac_compile") 2>&5
4471 ac_status=$?
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }; then :
4474 for ac_file in conftest.o conftest.obj conftest.*; do
4475 test -f "$ac_file" || continue;
4476 case $ac_file in
4477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4478 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4479 break;;
4480 esac
4481 done
4482 else
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error "cannot compute suffix of object files: cannot compile
4489 See \`config.log' for more details." "$LINENO" 5; }
4491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4494 $as_echo "$ac_cv_objext" >&6; }
4495 OBJEXT=$ac_cv_objext
4496 ac_objext=$OBJEXT
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4498 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4499 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4506 main ()
4508 #ifndef __GNUC__
4509 choke me
4510 #endif
4513 return 0;
4515 _ACEOF
4516 if ac_fn_c_try_compile "$LINENO"; then :
4517 ac_compiler_gnu=yes
4518 else
4519 ac_compiler_gnu=no
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4527 if test $ac_compiler_gnu = yes; then
4528 GCC=yes
4529 else
4530 GCC=
4532 ac_test_CFLAGS=${CFLAGS+set}
4533 ac_save_CFLAGS=$CFLAGS
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4536 if test "${ac_cv_prog_cc_g+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 ac_save_c_werror_flag=$ac_c_werror_flag
4540 ac_c_werror_flag=yes
4541 ac_cv_prog_cc_g=no
4542 CFLAGS="-g"
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4547 main ()
4551 return 0;
4553 _ACEOF
4554 if ac_fn_c_try_compile "$LINENO"; then :
4555 ac_cv_prog_cc_g=yes
4556 else
4557 CFLAGS=""
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4562 main ()
4566 return 0;
4568 _ACEOF
4569 if ac_fn_c_try_compile "$LINENO"; then :
4571 else
4572 ac_c_werror_flag=$ac_save_c_werror_flag
4573 CFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4582 return 0;
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_prog_cc_g=yes
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 ac_c_werror_flag=$ac_save_c_werror_flag
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4596 $as_echo "$ac_cv_prog_cc_g" >&6; }
4597 if test "$ac_test_CFLAGS" = set; then
4598 CFLAGS=$ac_save_CFLAGS
4599 elif test $ac_cv_prog_cc_g = yes; then
4600 if test "$GCC" = yes; then
4601 CFLAGS="-g -O2"
4602 else
4603 CFLAGS="-g"
4605 else
4606 if test "$GCC" = yes; then
4607 CFLAGS="-O2"
4608 else
4609 CFLAGS=
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4613 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4614 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 ac_cv_prog_cc_c89=no
4618 ac_save_CC=$CC
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <stdarg.h>
4622 #include <stdio.h>
4623 #include <sys/types.h>
4624 #include <sys/stat.h>
4625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4626 struct buf { int x; };
4627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4628 static char *e (p, i)
4629 char **p;
4630 int i;
4632 return p[i];
4634 static char *f (char * (*g) (char **, int), char **p, ...)
4636 char *s;
4637 va_list v;
4638 va_start (v,p);
4639 s = g (p, va_arg (v,int));
4640 va_end (v);
4641 return s;
4644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4645 function prototypes and stuff, but not '\xHH' hex character constants.
4646 These don't provoke an error unfortunately, instead are silently treated
4647 as 'x'. The following induces an error, until -std is added to get
4648 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4649 array size at least. It's necessary to write '\x00'==0 to get something
4650 that's true only with -std. */
4651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4654 inside strings and character constants. */
4655 #define FOO(x) 'x'
4656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4658 int test (int i, double x);
4659 struct s1 {int (*f) (int a);};
4660 struct s2 {int (*f) (double a);};
4661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4662 int argc;
4663 char **argv;
4665 main ()
4667 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4669 return 0;
4671 _ACEOF
4672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4673 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4675 CC="$ac_save_CC $ac_arg"
4676 if ac_fn_c_try_compile "$LINENO"; then :
4677 ac_cv_prog_cc_c89=$ac_arg
4679 rm -f core conftest.err conftest.$ac_objext
4680 test "x$ac_cv_prog_cc_c89" != "xno" && break
4681 done
4682 rm -f conftest.$ac_ext
4683 CC=$ac_save_CC
4686 # AC_CACHE_VAL
4687 case "x$ac_cv_prog_cc_c89" in
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4690 $as_echo "none needed" >&6; } ;;
4691 xno)
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4693 $as_echo "unsupported" >&6; } ;;
4695 CC="$CC $ac_cv_prog_cc_c89"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4697 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4698 esac
4699 if test "x$ac_cv_prog_cc_c89" != xno; then :
4703 ac_ext=c
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709 ac_ext=cpp
4710 ac_cpp='$CXXCPP $CPPFLAGS'
4711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4714 if test -z "$CXX"; then
4715 if test -n "$CCC"; then
4716 CXX=$CCC
4717 else
4718 if test -n "$ac_tool_prefix"; then
4719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4722 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_CXX+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$CXX"; then
4729 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 CXX=$ac_cv_prog_CXX
4749 if test -n "$CXX"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4751 $as_echo "$CXX" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4758 test -n "$CXX" && break
4759 done
4761 if test -z "$CXX"; then
4762 ac_ct_CXX=$CXX
4763 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4765 # Extract the first word of "$ac_prog", so it can be a program name with args.
4766 set dummy $ac_prog; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$ac_ct_CXX"; then
4773 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_ac_ct_CXX="$ac_prog"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4786 done
4787 done
4788 IFS=$as_save_IFS
4792 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4793 if test -n "$ac_ct_CXX"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4795 $as_echo "$ac_ct_CXX" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4802 test -n "$ac_ct_CXX" && break
4803 done
4805 if test "x$ac_ct_CXX" = x; then
4806 CXX="g++"
4807 else
4808 case $cross_compiling:$ac_tool_warned in
4809 yes:)
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4812 ac_tool_warned=yes ;;
4813 esac
4814 CXX=$ac_ct_CXX
4820 # Provide some information about the compiler.
4821 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4822 set X $ac_compile
4823 ac_compiler=$2
4824 for ac_option in --version -v -V -qversion; do
4825 { { ac_try="$ac_compiler $ac_option >&5"
4826 case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4831 $as_echo "$ac_try_echo"; } >&5
4832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4833 ac_status=$?
4834 if test -s conftest.err; then
4835 sed '10a\
4836 ... rest of stderr output deleted ...
4837 10q' conftest.err >conftest.er1
4838 cat conftest.er1 >&5
4839 rm -f conftest.er1 conftest.err
4841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4842 test $ac_status = 0; }
4843 done
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4846 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4847 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4854 main ()
4856 #ifndef __GNUC__
4857 choke me
4858 #endif
4861 return 0;
4863 _ACEOF
4864 if ac_fn_cxx_try_compile "$LINENO"; then :
4865 ac_compiler_gnu=yes
4866 else
4867 ac_compiler_gnu=no
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4874 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4875 if test $ac_compiler_gnu = yes; then
4876 GXX=yes
4877 else
4878 GXX=
4880 ac_test_CXXFLAGS=${CXXFLAGS+set}
4881 ac_save_CXXFLAGS=$CXXFLAGS
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4883 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4884 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4888 ac_cxx_werror_flag=yes
4889 ac_cv_prog_cxx_g=no
4890 CXXFLAGS="-g"
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4895 main ()
4899 return 0;
4901 _ACEOF
4902 if ac_fn_cxx_try_compile "$LINENO"; then :
4903 ac_cv_prog_cxx_g=yes
4904 else
4905 CXXFLAGS=""
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4910 main ()
4914 return 0;
4916 _ACEOF
4917 if ac_fn_cxx_try_compile "$LINENO"; then :
4919 else
4920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4921 CXXFLAGS="-g"
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4926 main ()
4930 return 0;
4932 _ACEOF
4933 if ac_fn_cxx_try_compile "$LINENO"; then :
4934 ac_cv_prog_cxx_g=yes
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4944 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4945 if test "$ac_test_CXXFLAGS" = set; then
4946 CXXFLAGS=$ac_save_CXXFLAGS
4947 elif test $ac_cv_prog_cxx_g = yes; then
4948 if test "$GXX" = yes; then
4949 CXXFLAGS="-g -O2"
4950 else
4951 CXXFLAGS="-g"
4953 else
4954 if test "$GXX" = yes; then
4955 CXXFLAGS="-O2"
4956 else
4957 CXXFLAGS=
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 # We must set the default linker to the linker used by gcc for the correct
4968 # operation of libtool. If LD is not defined and we are using gcc, try to
4969 # set the LD default to the ld used by gcc.
4970 if test -z "$LD"; then
4971 if test "$GCC" = yes; then
4972 case $build in
4973 *-*-mingw*)
4974 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4976 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4977 esac
4978 case $gcc_prog_ld in
4979 # Accept absolute paths.
4980 [\\/]* | [A-Za-z]:[\\/]*)
4981 LD="$gcc_prog_ld" ;;
4982 esac
4986 # Check whether -static-libstdc++ -static-libgcc is supported.
4987 have_static_libs=no
4988 if test "$GCC" = yes; then
4989 saved_LDFLAGS="$LDFLAGS"
4991 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4993 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4994 ac_ext=cpp
4995 ac_cpp='$CXXCPP $CPPFLAGS'
4996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5004 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5005 #error -static-libstdc++ not implemented
5006 #endif
5007 int main() {}
5008 _ACEOF
5009 if ac_fn_cxx_try_link "$LINENO"; then :
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5011 $as_echo "yes" >&6; }; have_static_libs=yes
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5016 rm -f core conftest.err conftest.$ac_objext \
5017 conftest$ac_exeext conftest.$ac_ext
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025 LDFLAGS="$saved_LDFLAGS"
5031 if test -n "$ac_tool_prefix"; then
5032 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test -n "$GNATBIND"; then
5040 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5053 done
5054 done
5055 IFS=$as_save_IFS
5059 GNATBIND=$ac_cv_prog_GNATBIND
5060 if test -n "$GNATBIND"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5062 $as_echo "$GNATBIND" >&6; }
5063 else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5070 if test -z "$ac_cv_prog_GNATBIND"; then
5071 ac_ct_GNATBIND=$GNATBIND
5072 # Extract the first word of "gnatbind", so it can be a program name with args.
5073 set dummy gnatbind; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if test -n "$ac_ct_GNATBIND"; then
5080 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5093 done
5094 done
5095 IFS=$as_save_IFS
5099 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5100 if test -n "$ac_ct_GNATBIND"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5102 $as_echo "$ac_ct_GNATBIND" >&6; }
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5108 if test "x$ac_ct_GNATBIND" = x; then
5109 GNATBIND="no"
5110 else
5111 case $cross_compiling:$ac_tool_warned in
5112 yes:)
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117 GNATBIND=$ac_ct_GNATBIND
5119 else
5120 GNATBIND="$ac_cv_prog_GNATBIND"
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$GNATMAKE"; then
5132 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 GNATMAKE=$ac_cv_prog_GNATMAKE
5152 if test -n "$GNATMAKE"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5154 $as_echo "$GNATMAKE" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5162 if test -z "$ac_cv_prog_GNATMAKE"; then
5163 ac_ct_GNATMAKE=$GNATMAKE
5164 # Extract the first word of "gnatmake", so it can be a program name with args.
5165 set dummy gnatmake; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$ac_ct_GNATMAKE"; then
5172 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5192 if test -n "$ac_ct_GNATMAKE"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5194 $as_echo "$ac_ct_GNATMAKE" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5200 if test "x$ac_ct_GNATMAKE" = x; then
5201 GNATMAKE="no"
5202 else
5203 case $cross_compiling:$ac_tool_warned in
5204 yes:)
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207 ac_tool_warned=yes ;;
5208 esac
5209 GNATMAKE=$ac_ct_GNATMAKE
5211 else
5212 GNATMAKE="$ac_cv_prog_GNATMAKE"
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5216 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5217 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 cat >conftest.adb <<EOF
5221 procedure conftest is begin null; end conftest;
5223 acx_cv_cc_gcc_supports_ada=no
5224 # There is a bug in old released versions of GCC which causes the
5225 # driver to exit successfully when the appropriate language module
5226 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5227 # Therefore we must check for the error message as well as an
5228 # unsuccessful exit.
5229 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5230 # given a .adb file, but produce no object file. So we must check
5231 # if an object file was really produced to guard against this.
5232 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5233 if test x"$errors" = x && test -f conftest.$ac_objext; then
5234 acx_cv_cc_gcc_supports_ada=yes
5236 rm -f conftest.*
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5239 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5241 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5242 have_gnat=yes
5243 else
5244 have_gnat=no
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5248 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5249 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 echo abfoo >t1
5253 echo cdfoo >t2
5254 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5255 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5256 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5258 else
5259 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5262 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5263 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5265 else
5266 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5269 rm t1 t2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5273 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5274 do_compare="$gcc_cv_prog_cmp_skip"
5278 # Check whether --enable-bootstrap was given.
5279 if test "${enable_bootstrap+set}" = set; then :
5280 enableval=$enable_bootstrap;
5281 else
5282 enable_bootstrap=default
5286 # Issue errors and warnings for invalid/strange bootstrap combinations.
5287 if test -r $srcdir/gcc/configure; then
5288 have_compiler=yes
5289 else
5290 have_compiler=no
5293 case "$have_compiler:$host:$target:$enable_bootstrap" in
5294 *:*:*:no) ;;
5296 # Default behavior. Enable bootstrap if we have a compiler
5297 # and we are in a native configuration.
5298 yes:$build:$build:default)
5299 enable_bootstrap=yes ;;
5301 *:*:*:default)
5302 enable_bootstrap=no ;;
5304 # We have a compiler and we are in a native configuration, bootstrap is ok
5305 yes:$build:$build:yes)
5308 # Other configurations, but we have a compiler. Assume the user knows
5309 # what he's doing.
5310 yes:*:*:yes)
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5312 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5315 # No compiler: if they passed --enable-bootstrap explicitly, fail
5316 no:*:*:yes)
5317 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5319 # Fail if wrong command line
5321 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5323 esac
5325 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5326 # C++98 compiler can still start the bootstrap.
5327 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5328 CXX="$CXX -std=gnu++98"
5331 # Used for setting $lt_cv_objdir
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5333 $as_echo_n "checking for objdir... " >&6; }
5334 if test "${lt_cv_objdir+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 rm -f .libs 2>/dev/null
5338 mkdir .libs 2>/dev/null
5339 if test -d .libs; then
5340 lt_cv_objdir=.libs
5341 else
5342 # MS-DOS does not allow filenames that begin with a dot.
5343 lt_cv_objdir=_libs
5345 rmdir .libs 2>/dev/null
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5348 $as_echo "$lt_cv_objdir" >&6; }
5349 objdir=$lt_cv_objdir
5355 cat >>confdefs.h <<_ACEOF
5356 #define LT_OBJDIR "$lt_cv_objdir/"
5357 _ACEOF
5361 # Check for GMP, MPFR and MPC
5362 gmplibs="-lmpc -lmpfr -lgmp"
5363 gmpinc=
5364 have_gmp=no
5366 # Specify a location for mpc
5367 # check for this first so it ends up on the link line before mpfr.
5369 # Check whether --with-mpc was given.
5370 if test "${with_mpc+set}" = set; then :
5371 withval=$with_mpc;
5375 # Check whether --with-mpc-include was given.
5376 if test "${with_mpc_include+set}" = set; then :
5377 withval=$with_mpc_include;
5381 # Check whether --with-mpc-lib was given.
5382 if test "${with_mpc_lib+set}" = set; then :
5383 withval=$with_mpc_lib;
5387 if test "x$with_mpc" != x; then
5388 gmplibs="-L$with_mpc/lib $gmplibs"
5389 gmpinc="-I$with_mpc/include $gmpinc"
5391 if test "x$with_mpc_include" != x; then
5392 gmpinc="-I$with_mpc_include $gmpinc"
5394 if test "x$with_mpc_lib" != x; then
5395 gmplibs="-L$with_mpc_lib $gmplibs"
5397 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5398 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5399 gmpinc='-I$$s/mpc/src '"$gmpinc"
5400 # Do not test the mpc version. Assume that it is sufficient, since
5401 # it is in the source tree, and the library has not been built yet
5402 # but it would be included on the link line in the version check below
5403 # hence making the test fail.
5404 have_gmp=yes
5407 # Specify a location for mpfr
5408 # check for this first so it ends up on the link line before gmp.
5410 # Check whether --with-mpfr-dir was given.
5411 if test "${with_mpfr_dir+set}" = set; then :
5412 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5413 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5418 # Check whether --with-mpfr was given.
5419 if test "${with_mpfr+set}" = set; then :
5420 withval=$with_mpfr;
5424 # Check whether --with-mpfr-include was given.
5425 if test "${with_mpfr_include+set}" = set; then :
5426 withval=$with_mpfr_include;
5430 # Check whether --with-mpfr-lib was given.
5431 if test "${with_mpfr_lib+set}" = set; then :
5432 withval=$with_mpfr_lib;
5436 if test "x$with_mpfr" != x; then
5437 gmplibs="-L$with_mpfr/lib $gmplibs"
5438 gmpinc="-I$with_mpfr/include $gmpinc"
5440 if test "x$with_mpfr_include" != x; then
5441 gmpinc="-I$with_mpfr_include $gmpinc"
5443 if test "x$with_mpfr_lib" != x; then
5444 gmplibs="-L$with_mpfr_lib $gmplibs"
5446 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5447 # MPFR v3.1.0 moved the sources into a src sub-directory.
5448 if ! test -d ${srcdir}/mpfr/src; then
5449 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5451 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5452 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5453 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5454 # Do not test the mpfr version. Assume that it is sufficient, since
5455 # it is in the source tree, and the library has not been built yet
5456 # but it would be included on the link line in the version check below
5457 # hence making the test fail.
5458 have_gmp=yes
5461 # Specify a location for gmp
5463 # Check whether --with-gmp-dir was given.
5464 if test "${with_gmp_dir+set}" = set; then :
5465 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5466 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5471 # Check whether --with-gmp was given.
5472 if test "${with_gmp+set}" = set; then :
5473 withval=$with_gmp;
5477 # Check whether --with-gmp-include was given.
5478 if test "${with_gmp_include+set}" = set; then :
5479 withval=$with_gmp_include;
5483 # Check whether --with-gmp-lib was given.
5484 if test "${with_gmp_lib+set}" = set; then :
5485 withval=$with_gmp_lib;
5490 if test "x$with_gmp" != x; then
5491 gmplibs="-L$with_gmp/lib $gmplibs"
5492 gmpinc="-I$with_gmp/include $gmpinc"
5494 if test "x$with_gmp_include" != x; then
5495 gmpinc="-I$with_gmp_include $gmpinc"
5497 if test "x$with_gmp_lib" != x; then
5498 gmplibs="-L$with_gmp_lib $gmplibs"
5500 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5501 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5502 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5503 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5504 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5505 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5506 # Do not test the gmp version. Assume that it is sufficient, since
5507 # it is in the source tree, and the library has not been built yet
5508 # but it would be included on the link line in the version check below
5509 # hence making the test fail.
5510 have_gmp=yes
5513 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5514 have_gmp=yes
5515 saved_CFLAGS="$CFLAGS"
5516 CFLAGS="$CFLAGS $gmpinc"
5517 # Check for the recommended and required versions of GMP.
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5519 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include "gmp.h"
5525 main ()
5528 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5529 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5530 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5531 choke me
5532 #endif
5535 return 0;
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <gmp.h>
5543 main ()
5546 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5547 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5548 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5549 choke me
5550 #endif
5553 return 0;
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"; then :
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5558 $as_echo "yes" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5561 $as_echo "buggy but acceptable" >&6; }
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }; have_gmp=no
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 # If we have GMP, check the MPFR version.
5571 if test x"$have_gmp" = xyes; then
5572 # Check for the recommended and required versions of MPFR.
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5574 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #include <gmp.h>
5578 #include <mpfr.h>
5580 main ()
5583 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5584 choke me
5585 #endif
5588 return 0;
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <gmp.h>
5595 #include <mpfr.h>
5597 main ()
5600 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5601 choke me
5602 #endif
5605 return 0;
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 $as_echo "yes" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5613 $as_echo "buggy but acceptable" >&6; }
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }; have_gmp=no
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 # Check for the MPC header version.
5624 if test x"$have_gmp" = xyes ; then
5625 # Check for the recommended and required versions of MPC.
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5627 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <mpc.h>
5632 main ()
5635 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5636 choke me
5637 #endif
5640 return 0;
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 #include <mpc.h>
5648 main ()
5651 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5652 choke me
5653 #endif
5656 return 0;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5661 $as_echo "yes" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5664 $as_echo "buggy but acceptable" >&6; }
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667 else
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }; have_gmp=no
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 # Now check the MPFR library.
5675 if test x"$have_gmp" = xyes; then
5676 saved_LIBS="$LIBS"
5677 LIBS="$LIBS $gmplibs"
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5679 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <mpc.h>
5684 main ()
5687 mpfr_t n;
5688 mpfr_t x;
5689 mpc_t c;
5690 int t;
5691 mpfr_init (n);
5692 mpfr_init (x);
5693 mpfr_atan2 (n, n, x, GMP_RNDN);
5694 mpfr_erfc (n, x, GMP_RNDN);
5695 mpfr_subnormalize (x, t, GMP_RNDN);
5696 mpfr_clear(n);
5697 mpfr_clear(x);
5698 mpc_init2 (c, 53);
5699 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5700 mpc_cosh (c, c, MPC_RNDNN);
5701 mpc_pow (c, c, c, MPC_RNDNN);
5702 mpc_acosh (c, c, MPC_RNDNN);
5703 mpc_clear (c);
5706 return 0;
5708 _ACEOF
5709 if ac_fn_c_try_link "$LINENO"; then :
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5711 $as_echo "yes" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }; have_gmp=no
5716 rm -f core conftest.err conftest.$ac_objext \
5717 conftest$ac_exeext conftest.$ac_ext
5718 LIBS="$saved_LIBS"
5721 CFLAGS="$saved_CFLAGS"
5723 # The library versions listed in the error message below should match
5724 # the HARD-minimums enforced above.
5725 if test x$have_gmp != xyes; then
5726 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5727 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5728 their locations. Source code for these libraries can be found at
5729 their respective hosting sites as well as at
5730 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5731 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5732 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5733 make sure that you have installed both the libraries and the header
5734 files. They may be located in separate packages." "$LINENO" 5
5738 # Flags needed for both GMP, MPFR and/or MPC.
5746 # Libraries to use for stage1 or when not bootstrapping.
5748 # Check whether --with-stage1-libs was given.
5749 if test "${with_stage1_libs+set}" = set; then :
5750 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5751 stage1_libs=
5752 else
5753 stage1_libs=$withval
5755 else
5756 stage1_libs=
5761 # Linker flags to use for stage1 or when not bootstrapping.
5763 # Check whether --with-stage1-ldflags was given.
5764 if test "${with_stage1_ldflags+set}" = set; then :
5765 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5766 stage1_ldflags=
5767 else
5768 stage1_ldflags=$withval
5770 else
5771 stage1_ldflags=
5772 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5773 # if supported. But if the user explicitly specified the libraries to use,
5774 # trust that they are doing what they want.
5775 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5776 stage1_ldflags="-static-libstdc++ -static-libgcc"
5782 # Libraries to use for stage2 and later builds.
5784 # Check whether --with-boot-libs was given.
5785 if test "${with_boot_libs+set}" = set; then :
5786 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5787 poststage1_libs=
5788 else
5789 poststage1_libs=$withval
5791 else
5792 poststage1_libs=
5797 # Linker flags to use for stage2 and later builds.
5799 # Check whether --with-boot-ldflags was given.
5800 if test "${with_boot_ldflags+set}" = set; then :
5801 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5802 poststage1_ldflags=
5803 else
5804 poststage1_ldflags=$withval
5806 else
5807 poststage1_ldflags=
5808 # In stages 2 and 3, default to linking libstdc++ and libgcc
5809 # statically. But if the user explicitly specified the libraries to
5810 # use, trust that they are doing what they want.
5811 if test "$poststage1_libs" = ""; then
5812 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5818 # GCC GRAPHITE dependency isl.
5819 # Basic setup is inlined here, actual checks are in config/isl.m4
5822 # Check whether --with-isl was given.
5823 if test "${with_isl+set}" = set; then :
5824 withval=$with_isl;
5828 # Treat --without-isl as a request to disable
5829 # GRAPHITE support and skip all following checks.
5830 if test "x$with_isl" != "xno"; then
5831 # Check for isl
5834 # Check whether --with-isl-include was given.
5835 if test "${with_isl_include+set}" = set; then :
5836 withval=$with_isl_include;
5840 # Check whether --with-isl-lib was given.
5841 if test "${with_isl_lib+set}" = set; then :
5842 withval=$with_isl_lib;
5846 # Check whether --enable-isl-version-check was given.
5847 if test "${enable_isl_version_check+set}" = set; then :
5848 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5849 else
5850 ENABLE_ISL_CHECK=yes
5854 # Initialize isllibs and islinc.
5855 case $with_isl in
5857 isllibs=
5858 islinc=
5860 "" | yes)
5863 isllibs="-L$with_isl/lib"
5864 islinc="-I$with_isl/include"
5866 esac
5867 if test "x${with_isl_include}" != x ; then
5868 islinc="-I$with_isl_include"
5870 if test "x${with_isl_lib}" != x; then
5871 isllibs="-L$with_isl_lib"
5873 if test "x${islinc}" = x && test "x${isllibs}" = x \
5874 && test -d ${srcdir}/isl; then
5875 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5876 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5877 ENABLE_ISL_CHECK=no
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5879 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5882 isllibs="${isllibs} -lisl"
5886 if test "${ENABLE_ISL_CHECK}" = yes ; then
5887 _isl_saved_CFLAGS=$CFLAGS
5888 _isl_saved_LDFLAGS=$LDFLAGS
5889 _isl_saved_LIBS=$LIBS
5891 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5892 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5893 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
5896 $as_echo_n "checking for isl 0.15 or later... " >&6; }
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include <isl/schedule.h>
5901 main ()
5903 isl_options_set_schedule_serialize_sccs (NULL, 0);
5905 return 0;
5907 _ACEOF
5908 if ac_fn_c_try_link "$LINENO"; then :
5909 gcc_cv_isl=yes
5910 else
5911 gcc_cv_isl=no
5913 rm -f core conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5916 $as_echo "$gcc_cv_isl" >&6; }
5918 if test "${gcc_cv_isl}" = no ; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
5920 $as_echo "required isl version is 0.15 or later" >&6; }
5923 CFLAGS=$_isl_saved_CFLAGS
5924 LDFLAGS=$_isl_saved_LDFLAGS
5925 LIBS=$_isl_saved_LIBS
5933 if test "x${with_isl}" = xno; then
5934 graphite_requested=no
5935 elif test "x${with_isl}" != x \
5936 || test "x${with_isl_include}" != x \
5937 || test "x${with_isl_lib}" != x ; then
5938 graphite_requested=yes
5939 else
5940 graphite_requested=no
5945 if test "${gcc_cv_isl}" = no ; then
5946 isllibs=
5947 islinc=
5950 if test "${graphite_requested}" = yes \
5951 && test "x${isllibs}" = x \
5952 && test "x${islinc}" = x ; then
5954 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
5960 # If the isl check failed, disable builds of in-tree variant of isl
5961 if test "x$with_isl" = xno ||
5962 test "x$gcc_cv_isl" = xno; then
5963 noconfigdirs="$noconfigdirs isl"
5964 islinc=
5970 # Check for LTO support.
5971 # Check whether --enable-lto was given.
5972 if test "${enable_lto+set}" = set; then :
5973 enableval=$enable_lto; enable_lto=$enableval
5974 else
5975 enable_lto=yes; default_enable_lto=yes
5982 target_elf=no
5983 case $target in
5984 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5985 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
5986 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
5987 nvptx-*-none)
5988 target_elf=no
5991 target_elf=yes
5993 esac
5995 if test $target_elf = yes; then :
5996 # ELF platforms build the lto-plugin always.
5997 build_lto_plugin=yes
5999 else
6000 if test x"$default_enable_lto" = x"yes" ; then
6001 case $target in
6002 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
6003 # On other non-ELF platforms, LTO has yet to be validated.
6004 *) enable_lto=no ;;
6005 esac
6006 else
6007 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6008 # It would also be nice to check the binutils support, but we don't
6009 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6010 # warn during gcc/ subconfigure; unless you're bootstrapping with
6011 # -flto it won't be needed until after installation anyway.
6012 case $target in
6013 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6014 *) if test x"$enable_lto" = x"yes"; then
6015 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6018 esac
6020 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6021 # Build it unless LTO was explicitly disabled.
6022 case $target in
6023 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6024 *) ;;
6025 esac
6030 # Check whether --enable-linker-plugin-configure-flags was given.
6031 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6032 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6033 else
6034 extra_linker_plugin_configure_flags=
6038 # Check whether --enable-linker-plugin-flags was given.
6039 if test "${enable_linker_plugin_flags+set}" = set; then :
6040 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6041 else
6042 extra_linker_plugin_flags=
6047 # Enable --enable-host-shared.
6048 # Checked early to determine whether jit is an 'all' language
6049 # Check whether --enable-host-shared was given.
6050 if test "${enable_host_shared+set}" = set; then :
6051 enableval=$enable_host_shared; host_shared=$enableval
6052 else
6053 host_shared=no
6058 # By default, C and C++ are the only stage 1 languages.
6059 stage1_languages=,c,
6061 # Target libraries that we bootstrap.
6062 bootstrap_target_libs=,target-libgcc,
6064 # Figure out what language subdirectories are present.
6065 # Look if the user specified --enable-languages="..."; if not, use
6066 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6067 # go away some day.
6068 # NB: embedded tabs in this IF block -- do not untabify
6069 if test -d ${srcdir}/gcc; then
6070 if test x"${enable_languages+set}" != xset; then
6071 if test x"${LANGUAGES+set}" = xset; then
6072 enable_languages="${LANGUAGES}"
6073 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6074 else
6075 enable_languages=default
6077 else
6078 if test x"${enable_languages}" = x ||
6079 test x"${enable_languages}" = xyes;
6080 then
6081 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6082 exit 1
6085 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6087 # 'f95' is the old name for the 'fortran' language. We issue a warning
6088 # and make the substitution.
6089 case ,${enable_languages}, in
6090 *,f95,*)
6091 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6092 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6094 esac
6096 # If bootstrapping, C++ must be enabled.
6097 case ",$enable_languages,:$enable_bootstrap" in
6098 *,c++,*:*) ;;
6099 *:yes)
6100 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6101 enable_languages="${enable_languages},c++"
6102 else
6103 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6106 esac
6108 # First scan to see if an enabled language requires some other language.
6109 # We assume that a given config-lang.in will list all the language
6110 # front ends it requires, even if some are required indirectly.
6111 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6112 case ${lang_frag} in
6113 ..) ;;
6114 # The odd quoting in the next line works around
6115 # an apparent bug in bash 1.12 on linux.
6116 ${srcdir}/gcc/[*]/config-lang.in) ;;
6118 # From the config-lang.in, get $language, $lang_requires, and
6119 # $lang_requires_boot_languages.
6120 language=
6121 lang_requires=
6122 lang_requires_boot_languages=
6123 # set srcdir during sourcing lang_frag to the gcc dir.
6124 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6125 # polutes this shell
6126 saved_srcdir=${srcdir}
6127 srcdir=${srcdir}/gcc . ${lang_frag}
6128 srcdir=${saved_srcdir}
6129 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6130 case ,${enable_languages}, in
6131 *,$other,*) ;;
6132 *,default,*) ;;
6133 *,all,*) ;;
6134 *,$language,*)
6135 echo " \`$other' language required by \`$language'; enabling" 1>&2
6136 enable_languages="${enable_languages},${other}"
6138 esac
6139 done
6140 for other in ${lang_requires_boot_languages} ; do
6141 if test "$other" != "c"; then
6142 case ,${enable_stage1_languages}, in
6143 *,$other,*) ;;
6144 *,default,*) ;;
6145 *,all,*) ;;
6147 case ,${enable_languages}, in
6148 *,$language,*)
6149 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6150 enable_stage1_languages="$enable_stage1_languages,${other}"
6152 esac
6154 esac
6156 done
6158 esac
6159 done
6161 new_enable_languages=,c,
6163 # If LTO is enabled, add the LTO front end.
6164 if test "$enable_lto" = "yes" ; then
6165 case ,${enable_languages}, in
6166 *,lto,*) ;;
6167 *) enable_languages="${enable_languages},lto" ;;
6168 esac
6169 if test "${build_lto_plugin}" = "yes" ; then
6170 configdirs="$configdirs lto-plugin"
6174 # If we're building an offloading compiler, add the LTO front end.
6175 if test x"$enable_as_accelerator_for" != x ; then
6176 case ,${enable_languages}, in
6177 *,lto,*) ;;
6178 *) enable_languages="${enable_languages},lto" ;;
6179 esac
6182 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
6183 potential_languages=,c,
6185 enabled_target_libs=
6186 disabled_target_libs=
6188 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6189 case ${lang_frag} in
6190 ..) ;;
6191 # The odd quoting in the next line works around
6192 # an apparent bug in bash 1.12 on linux.
6193 ${srcdir}/gcc/[*]/config-lang.in) ;;
6195 # From the config-lang.in, get $language, $target_libs,
6196 # $lang_dirs, $boot_language, and $build_by_default
6197 language=
6198 target_libs=
6199 lang_dirs=
6200 subdir_requires=
6201 boot_language=no
6202 build_by_default=yes
6203 # set srcdir during sourcing. See above about save & restore
6204 saved_srcdir=${srcdir}
6205 srcdir=${srcdir}/gcc . ${lang_frag}
6206 srcdir=${saved_srcdir}
6207 if test x${language} = x; then
6208 echo "${lang_frag} doesn't set \$language." 1>&2
6209 exit 1
6212 if test "$language" = "c++"; then
6213 boot_language=yes
6216 add_this_lang=no
6217 # C is always enabled, so no need to add it again
6218 if test "$language" != "c"; then
6219 case ,${enable_languages}, in
6220 *,${language},*)
6221 # Language was explicitly selected; include it
6222 add_this_lang=yes
6224 *,all,*)
6225 # All languages are enabled
6226 add_this_lang=all
6228 *,default,*)
6229 # 'default' was selected, select it if it is a default language
6230 add_this_lang=${build_by_default}
6232 esac
6235 # Disable languages that need other directories if these aren't available.
6236 for i in $subdir_requires; do
6237 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6238 case ${add_this_lang} in
6239 yes)
6240 # Specifically requested language; tell them.
6241 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6243 all)
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6245 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6246 add_this_lang=unsupported
6249 # Silently disable.
6250 add_this_lang=unsupported
6252 esac
6253 done
6255 # Disable Ada if no preexisting GNAT is available.
6256 case ${add_this_lang}:${language}:${have_gnat} in
6257 yes:ada:no)
6258 # Specifically requested language; tell them.
6259 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6261 all:ada:no)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6263 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6264 add_this_lang=unsupported
6266 *:ada:no)
6267 # Silently disable.
6268 add_this_lang=unsupported
6270 esac
6272 # Disable jit if -enable-host-shared not specified
6273 case ${add_this_lang}:${language}:${host_shared} in
6274 yes:jit:no)
6275 # PR jit/64780: explicitly specify --enable-host-shared
6276 as_fn_error "
6277 Enabling language \"jit\" requires --enable-host-shared.
6279 --enable-host-shared typically slows the rest of the compiler down by
6280 a few %, so you must explicitly enable it.
6282 If you want to build both the jit and the regular compiler, it is often
6283 best to do this via two separate configure/builds, in separate
6284 directories, to avoid imposing the performance cost of
6285 --enable-host-shared on the regular compiler." "$LINENO" 5
6287 all:jit:no)
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6289 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6290 add_this_lang=unsupported
6292 *:jit:no)
6293 # Silently disable.
6294 add_this_lang=unsupported
6296 esac
6298 # Disable a language that is unsupported by the target.
6299 case "${add_this_lang}: $unsupported_languages " in
6300 no:*) ;;
6301 unsupported:*) ;;
6302 *:*" $language "*)
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6304 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
6305 add_this_lang=unsupported
6307 esac
6309 case $add_this_lang in
6310 unsupported)
6311 # Remove language-dependent dirs.
6312 disabled_target_libs="$disabled_target_libs $target_libs"
6313 noconfigdirs="$noconfigdirs $lang_dirs"
6316 # Remove language-dependent dirs; still show language as supported.
6317 disabled_target_libs="$disabled_target_libs $target_libs"
6318 noconfigdirs="$noconfigdirs $lang_dirs"
6319 potential_languages="${potential_languages}${language},"
6321 all|yes)
6322 new_enable_languages="${new_enable_languages}${language},"
6323 potential_languages="${potential_languages}${language},"
6324 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6325 enabled_target_libs="$enabled_target_libs $target_libs"
6326 case "${boot_language}:,$enable_stage1_languages," in
6327 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6328 # Add to (comma-separated) list of stage 1 languages.
6329 case ",$stage1_languages," in
6330 *,$language,* | ,yes, | ,all,) ;;
6331 *) stage1_languages="${stage1_languages}${language}," ;;
6332 esac
6333 # We need to bootstrap any supporting libraries.
6334 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6336 esac
6338 esac
6340 esac
6341 done
6343 # Add target libraries which are only needed for disabled languages
6344 # to noconfigdirs.
6345 if test -n "$disabled_target_libs"; then
6346 for dir in $disabled_target_libs; do
6347 case " $enabled_target_libs " in
6348 *" ${dir} "*) ;;
6349 *) noconfigdirs="$noconfigdirs $dir" ;;
6350 esac
6351 done
6354 # Check whether --enable-stage1-languages was given.
6355 if test "${enable_stage1_languages+set}" = set; then :
6356 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6357 ,no,|,,)
6358 # Set it to something that will have no effect in the loop below
6359 enable_stage1_languages=c ;;
6360 ,yes,)
6361 enable_stage1_languages=`echo $new_enable_languages | \
6362 sed -e "s/^,//" -e "s/,$//" ` ;;
6363 *,all,*)
6364 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6365 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6366 esac
6368 # Add "good" languages from enable_stage1_languages to stage1_languages,
6369 # while "bad" languages go in missing_languages. Leave no duplicates.
6370 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6371 case $potential_languages in
6372 *,$i,*)
6373 case $stage1_languages in
6374 *,$i,*) ;;
6375 *) stage1_languages="$stage1_languages$i," ;;
6376 esac ;;
6378 case $missing_languages in
6379 *,$i,*) ;;
6380 *) missing_languages="$missing_languages$i," ;;
6381 esac ;;
6382 esac
6383 done
6387 # Remove leading/trailing commas that were added for simplicity
6388 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6389 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6390 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6391 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6393 if test "x$missing_languages" != x; then
6394 as_fn_error "
6395 The following requested languages could not be built: ${missing_languages}
6396 Supported languages are: ${potential_languages}" "$LINENO" 5
6398 if test "x$new_enable_languages" != "x$enable_languages"; then
6399 echo The following languages will be built: ${new_enable_languages}
6400 enable_languages="$new_enable_languages"
6404 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6407 # Handle --disable-<component> generically.
6408 for dir in $configdirs $build_configdirs $target_configdirs ; do
6409 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6410 varname=`echo $dirname | sed -e s/+/_/g`
6411 if eval test x\${enable_${varname}} "=" xno ; then
6412 noconfigdirs="$noconfigdirs $dir"
6414 done
6416 # Check for Boehm's garbage collector
6417 # Check whether --enable-objc-gc was given.
6418 if test "${enable_objc_gc+set}" = set; then :
6419 enableval=$enable_objc_gc;
6423 # Check whether --with-target-bdw-gc was given.
6424 if test "${with_target_bdw_gc+set}" = set; then :
6425 withval=$with_target_bdw_gc;
6429 # Check whether --with-target-bdw-gc-include was given.
6430 if test "${with_target_bdw_gc_include+set}" = set; then :
6431 withval=$with_target_bdw_gc_include;
6435 # Check whether --with-target-bdw-gc-lib was given.
6436 if test "${with_target_bdw_gc_lib+set}" = set; then :
6437 withval=$with_target_bdw_gc_lib;
6441 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6443 $as_echo_n "checking for bdw garbage collector... " >&6; }
6444 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6446 $as_echo "using bdw-gc in default locations" >&6; }
6447 else
6448 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6449 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6450 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6451 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6454 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6457 esac
6459 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6460 case ,${enable_languages}, in
6461 *,c++,*)
6462 # Disable libitm, libsanitizer if we're not building libstdc++
6463 case "${noconfigdirs}" in
6464 *target-libstdc++-v3*)
6465 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
6467 *) ;;
6468 esac
6471 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6473 esac
6475 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6476 # $build_configdirs and $target_configdirs.
6477 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6479 notsupp=""
6480 for dir in . $skipdirs $noconfigdirs ; do
6481 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6482 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6483 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6484 if test -r $srcdir/$dirname/configure ; then
6485 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6486 true
6487 else
6488 notsupp="$notsupp $dir"
6492 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6493 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6494 if test -r $srcdir/$dirname/configure ; then
6495 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6496 true
6497 else
6498 notsupp="$notsupp $dir"
6502 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6503 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6504 if test -r $srcdir/$dirname/configure ; then
6505 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6506 true
6507 else
6508 notsupp="$notsupp $dir"
6512 done
6514 # Quietly strip out all directories which aren't configurable in this tree.
6515 # This relies on all configurable subdirectories being autoconfiscated, which
6516 # is now the case.
6517 build_configdirs_all="$build_configdirs"
6518 build_configdirs=
6519 for i in ${build_configdirs_all} ; do
6520 j=`echo $i | sed -e s/build-//g`
6521 if test -f ${srcdir}/$j/configure ; then
6522 build_configdirs="${build_configdirs} $i"
6524 done
6526 configdirs_all="$configdirs"
6527 configdirs=
6528 for i in ${configdirs_all} ; do
6529 if test -f ${srcdir}/$i/configure ; then
6530 configdirs="${configdirs} $i"
6532 done
6534 target_configdirs_all="$target_configdirs"
6535 target_configdirs=
6536 for i in ${target_configdirs_all} ; do
6537 j=`echo $i | sed -e s/target-//g`
6538 if test -f ${srcdir}/$j/configure ; then
6539 target_configdirs="${target_configdirs} $i"
6541 done
6543 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6544 # so we have to add it after the preceding checks.
6545 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6546 then
6547 case " $configdirs " in
6548 *" libiberty "*)
6549 # If we can build libiberty, we can also build libiberty-linker-plugin.
6550 configdirs="$configdirs libiberty-linker-plugin"
6551 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6552 --with-libiberty=../libiberty-linker-plugin";;
6554 as_fn_error "libiberty missing" "$LINENO" 5;;
6555 esac
6558 # Sometimes we have special requirements for the host libiberty.
6559 extra_host_libiberty_configure_flags=
6560 extra_host_zlib_configure_flags=
6561 case " $configdirs " in
6562 *" lto-plugin "* | *" libcc1 "*)
6563 # When these are to be built as shared libraries, the same applies to
6564 # libiberty.
6565 extra_host_libiberty_configure_flags=--enable-shared
6567 *" bfd "*)
6568 # When bfd is to be built as a shared library, the same applies to
6569 # zlib.
6570 if test "$enable_shared" = "yes"; then
6571 extra_host_zlib_configure_flags=--enable-host-shared
6574 esac
6578 # Produce a warning message for the subdirs we can't configure.
6579 # This isn't especially interesting in the Cygnus tree, but in the individual
6580 # FSF releases, it's important to let people know when their machine isn't
6581 # supported by the one or two programs in a package.
6583 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6584 # If $appdirs is non-empty, at least one of those directories must still
6585 # be configured, or we error out. (E.g., if the gas release supports a
6586 # specified target in some subdirs but not the gas subdir, we shouldn't
6587 # pretend that all is well.)
6588 if test -n "$appdirs" ; then
6589 for dir in $appdirs ; do
6590 if test -r $dir/Makefile.in ; then
6591 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6592 appdirs=""
6593 break
6595 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6596 appdirs=""
6597 break
6600 done
6601 if test -n "$appdirs" ; then
6602 echo "*** This configuration is not supported by this package." 1>&2
6603 exit 1
6606 # Okay, some application will build, or we don't care to check. Still
6607 # notify of subdirs not getting built.
6608 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6609 echo " ${notsupp}" 1>&2
6610 echo " (Any other directories should still work fine.)" 1>&2
6613 case "$host" in
6614 *msdosdjgpp*)
6615 enable_gdbtk=no ;;
6616 esac
6618 # To find our prefix, in gcc_cv_tool_prefix.
6620 # The user is always right.
6621 if test "${PATH_SEPARATOR+set}" != set; then
6622 echo "#! /bin/sh" >conf$$.sh
6623 echo "exit 0" >>conf$$.sh
6624 chmod +x conf$$.sh
6625 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6626 PATH_SEPARATOR=';'
6627 else
6628 PATH_SEPARATOR=:
6630 rm -f conf$$.sh
6634 get_gcc_base_ver="cat"
6636 # Check whether --with-gcc-major-version-only was given.
6637 if test "${with_gcc_major_version_only+set}" = set; then :
6638 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6639 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
6649 if test "x$exec_prefix" = xNONE; then
6650 if test "x$prefix" = xNONE; then
6651 gcc_cv_tool_prefix=$ac_default_prefix
6652 else
6653 gcc_cv_tool_prefix=$prefix
6655 else
6656 gcc_cv_tool_prefix=$exec_prefix
6659 # If there is no compiler in the tree, use the PATH only. In any
6660 # case, if there is no compiler in the tree nobody should use
6661 # AS_FOR_TARGET and LD_FOR_TARGET.
6662 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6663 if test x$with_gcc_major_version_only = xyes ; then
6664 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6665 else
6666 gcc_version=`cat $srcdir/gcc/BASE-VER`
6668 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6669 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6670 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6671 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6672 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6673 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6674 else
6675 gcc_cv_tool_dirs=
6678 if test x$build = x$target && test -n "$md_exec_prefix"; then
6679 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6684 copy_dirs=
6687 # Check whether --with-build-sysroot was given.
6688 if test "${with_build_sysroot+set}" = set; then :
6689 withval=$with_build_sysroot; if test x"$withval" != x ; then
6690 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6692 else
6693 SYSROOT_CFLAGS_FOR_TARGET=
6699 # Check whether --with-debug-prefix-map was given.
6700 if test "${with_debug_prefix_map+set}" = set; then :
6701 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6702 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6703 for debug_map in $withval; do
6704 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6705 done
6707 else
6708 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6713 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6714 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6715 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6716 # We want to ensure that TARGET libraries (which we know are built with
6717 # gcc) are built with "-O2 -g", so include those options when setting
6718 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6719 if test "x$CFLAGS_FOR_TARGET" = x; then
6720 if test "x${is_cross_compiler}" = xyes; then
6721 CFLAGS_FOR_TARGET="-g -O2"
6722 else
6723 CFLAGS_FOR_TARGET=$CFLAGS
6724 case " $CFLAGS " in
6725 *" -O2 "*) ;;
6726 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6727 esac
6728 case " $CFLAGS " in
6729 *" -g "* | *" -g3 "*) ;;
6730 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6731 esac
6736 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6737 if test "x${is_cross_compiler}" = xyes; then
6738 CXXFLAGS_FOR_TARGET="-g -O2"
6739 else
6740 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6741 case " $CXXFLAGS " in
6742 *" -O2 "*) ;;
6743 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6744 esac
6745 case " $CXXFLAGS " in
6746 *" -g "* | *" -g3 "*) ;;
6747 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6748 esac
6755 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6756 # the named directory are copied to $(tooldir)/sys-include.
6757 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6758 if test x${is_cross_compiler} = xno ; then
6759 echo 1>&2 '***' --with-headers is only supported when cross compiling
6760 exit 1
6762 if test x"${with_headers}" != xyes ; then
6763 x=${gcc_cv_tool_prefix}
6764 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6768 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6769 # the name directories are copied to $(tooldir)/lib. Multiple directories
6770 # are permitted.
6771 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6772 if test x${is_cross_compiler} = xno ; then
6773 echo 1>&2 '***' --with-libs is only supported when cross compiling
6774 exit 1
6776 if test x"${with_libs}" != xyes ; then
6777 # Copy the libraries in reverse order, so that files in the first named
6778 # library override files in subsequent libraries.
6779 x=${gcc_cv_tool_prefix}
6780 for l in ${with_libs}; do
6781 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6782 done
6786 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6788 # This is done by determining whether or not the appropriate directory
6789 # is available, and by checking whether or not specific configurations
6790 # have requested that this magic not happen.
6792 # The command line options always override the explicit settings in
6793 # configure.ac, and the settings in configure.ac override this magic.
6795 # If the default for a toolchain is to use GNU as and ld, and you don't
6796 # want to do that, then you should use the --without-gnu-as and
6797 # --without-gnu-ld options for the configure script. Similarly, if
6798 # the default is to use the included zlib and you don't want to do that,
6799 # you should use the --with-system-zlib option for the configure script.
6801 if test x${use_gnu_as} = x &&
6802 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6803 with_gnu_as=yes
6804 extra_host_args="$extra_host_args --with-gnu-as"
6807 if test x${use_gnu_ld} = x &&
6808 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6809 with_gnu_ld=yes
6810 extra_host_args="$extra_host_args --with-gnu-ld"
6813 if test x${use_included_zlib} = x &&
6814 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6816 else
6817 with_system_zlib=yes
6818 extra_host_args="$extra_host_args --with-system-zlib"
6821 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6822 # can detect this case.
6824 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6825 with_newlib=yes
6826 extra_host_args="$extra_host_args --with-newlib"
6829 # Handle ${copy_dirs}
6830 set fnord ${copy_dirs}
6831 shift
6832 while test $# != 0 ; do
6833 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6835 else
6836 echo Copying $1 to $2
6838 # Use the install script to create the directory and all required
6839 # parent directories.
6840 if test -d $2 ; then
6842 else
6843 echo >config.temp
6844 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6847 # Copy the directory, assuming we have tar.
6848 # FIXME: Should we use B in the second tar? Not all systems support it.
6849 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6851 # It is the responsibility of the user to correctly adjust all
6852 # symlinks. If somebody can figure out how to handle them correctly
6853 # here, feel free to add the code.
6855 echo $1 > $2/COPIED
6857 shift; shift
6858 done
6860 # Determine a target-dependent exec_prefix that the installed
6861 # gcc will search in. Keep this list sorted by triplet, with
6862 # the *-*-osname triplets last.
6863 md_exec_prefix=
6864 case "${target}" in
6865 i[34567]86-pc-msdosdjgpp*)
6866 md_exec_prefix=/dev/env/DJDIR/bin
6868 *-*-hpux* | \
6869 *-*-nto-qnx* | \
6870 *-*-solaris2*)
6871 md_exec_prefix=/usr/ccs/bin
6873 esac
6875 extra_arflags_for_target=
6876 extra_nmflags_for_target=
6877 extra_ranlibflags_for_target=
6878 target_makefile_frag=/dev/null
6879 case "${target}" in
6880 spu-*-*)
6881 target_makefile_frag="config/mt-spu"
6883 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6884 target_makefile_frag="config/mt-sde"
6886 mipsisa*-*-elfoabi*)
6887 target_makefile_frag="config/mt-mips-elfoabi"
6889 mips*-*-*linux* | mips*-*-gnu*)
6890 target_makefile_frag="config/mt-mips-gnu"
6892 nios2-*-elf*)
6893 target_makefile_frag="config/mt-nios2-elf"
6895 *-*-linux-android*)
6896 target_makefile_frag="config/mt-android"
6898 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6899 target_makefile_frag="config/mt-gnu"
6901 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6902 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6903 # commands to handle both 32-bit and 64-bit objects. These flags are
6904 # harmless if we're using GNU nm or ar.
6905 extra_arflags_for_target=" -X32_64"
6906 extra_nmflags_for_target=" -B -X32_64"
6908 esac
6910 alphaieee_frag=/dev/null
6911 case $target in
6912 alpha*-*-*)
6913 # This just makes sure to use the -mieee option to build target libs.
6914 # This should probably be set individually by each library.
6915 alphaieee_frag="config/mt-alphaieee"
6917 esac
6919 # If --enable-target-optspace always use -Os instead of -O2 to build
6920 # the target libraries, similarly if it is not specified, use -Os
6921 # on selected platforms.
6922 ospace_frag=/dev/null
6923 case "${enable_target_optspace}:${target}" in
6924 yes:*)
6925 ospace_frag="config/mt-ospace"
6927 :d30v-*)
6928 ospace_frag="config/mt-d30v"
6930 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6931 ospace_frag="config/mt-ospace"
6933 no:* | :*)
6936 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6938 esac
6940 # Some systems (e.g., one of the i386-aix systems the gas testers are
6941 # using) don't handle "\$" correctly, so don't use it here.
6942 tooldir='${exec_prefix}'/${target_noncanonical}
6943 build_tooldir=${tooldir}
6945 # Create a .gdbinit file which runs the one in srcdir
6946 # and tells GDB to look there for source files.
6948 if test -r ${srcdir}/.gdbinit ; then
6949 case ${srcdir} in
6950 .) ;;
6951 *) cat > ./.gdbinit <<EOF
6952 # ${NO_EDIT}
6953 dir ${srcdir}
6954 dir .
6955 source ${srcdir}/.gdbinit
6958 esac
6961 # Make sure that the compiler is able to generate an executable. If it
6962 # can't, we are probably in trouble. We don't care whether we can run the
6963 # executable--we might be using a cross compiler--we only care whether it
6964 # can be created. At this point the main configure script has set CC.
6965 we_are_ok=no
6966 echo "int main () { return 0; }" > conftest.c
6967 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6968 if test $? = 0 ; then
6969 if test -s conftest || test -s conftest.exe ; then
6970 we_are_ok=yes
6973 case $we_are_ok in
6975 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6976 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6977 rm -f conftest*
6978 exit 1
6980 esac
6981 rm -f conftest*
6983 # Decide which environment variable is used to find dynamic libraries.
6984 case "${host}" in
6985 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6986 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6987 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6988 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6989 esac
6991 # On systems where the dynamic library environment variable is PATH,
6992 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6993 # built executables to PATH.
6994 if test "$RPATH_ENVVAR" = PATH; then
6995 GCC_SHLIB_SUBDIR=/shlib
6996 else
6997 GCC_SHLIB_SUBDIR=
7000 # Adjust the toplevel makefile according to whether bootstrap was selected.
7001 case $enable_bootstrap in
7002 yes)
7003 bootstrap_suffix=bootstrap
7004 BUILD_CONFIG=bootstrap-debug
7007 bootstrap_suffix=no-bootstrap
7008 BUILD_CONFIG=
7010 esac
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7013 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7016 # Check whether --with-build-config was given.
7017 if test "${with_build_config+set}" = set; then :
7018 withval=$with_build_config; case $with_build_config in
7019 yes) with_build_config= ;;
7020 no) with_build_config= BUILD_CONFIG= ;;
7021 esac
7025 if test "x${with_build_config}" != x; then
7026 BUILD_CONFIG=$with_build_config
7027 else
7028 case $BUILD_CONFIG in
7029 bootstrap-debug)
7030 if echo "int f (void) { return 0; }" > conftest.c &&
7031 ${CC} -c conftest.c &&
7032 mv conftest.o conftest.o.g0 &&
7033 ${CC} -c -g conftest.c &&
7034 mv conftest.o conftest.o.g &&
7035 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7037 else
7038 BUILD_CONFIG=
7040 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7042 esac
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7045 $as_echo "$BUILD_CONFIG" >&6; }
7048 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7050 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7051 # Check whether --enable-vtable-verify was given.
7052 if test "${enable_vtable_verify+set}" = set; then :
7053 enableval=$enable_vtable_verify; case "$enableval" in
7054 yes) enable_vtable_verify=yes ;;
7055 no) enable_vtable_verify=no ;;
7056 *) enable_vtable_verify=no;;
7057 esac
7058 else
7059 enable_vtable_verify=no
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7063 $as_echo "$enable_vtable_verify" >&6; }
7065 # Record target_configdirs and the configure arguments for target and
7066 # build configuration in Makefile.
7067 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7068 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7069 bootstrap_fixincludes=no
7071 # If we are building libgomp, bootstrap it.
7072 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7073 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7076 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7077 # or bootstrap-ubsan, bootstrap it.
7078 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7079 case "$BUILD_CONFIG" in
7080 *bootstrap-asan* | *bootstrap-ubsan* )
7081 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7082 bootstrap_fixincludes=yes
7084 esac
7087 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7088 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7089 test "$enable_vtable_verify" != no; then
7090 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7093 # Determine whether gdb needs tk/tcl or not.
7094 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7095 # and in that case we want gdb to be built without tk. Ugh!
7096 # In fact I believe gdb is the *only* package directly dependent on tk,
7097 # so we should be able to put the 'maybe's in unconditionally and
7098 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7099 # 100% sure that that's safe though.
7101 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7102 case "$enable_gdbtk" in
7104 GDB_TK="" ;;
7105 yes)
7106 GDB_TK="${gdb_tk}" ;;
7108 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7109 # distro. Eventually someone will fix this and move Insight, nee
7110 # gdbtk to a separate directory.
7111 if test -d ${srcdir}/gdb/gdbtk ; then
7112 GDB_TK="${gdb_tk}"
7113 else
7114 GDB_TK=""
7117 esac
7118 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7119 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7121 # Strip out unwanted targets.
7123 # While at that, we remove Makefiles if we were started for recursive
7124 # configuration, so that the top-level Makefile reconfigures them,
7125 # like we used to do when configure itself was recursive.
7127 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7128 # but now we're fixing up the Makefile ourselves with the additional
7129 # commands passed to AC_CONFIG_FILES. Use separate variables
7130 # extrasub-{build,host,target} not because there is any reason to split
7131 # the substitutions up that way, but only to remain below the limit of
7132 # 99 commands in a script, for HP-UX sed.
7134 # Do not nest @if/@endif or @unless/@endunless pairs, because
7135 # configure will not warn you at all.
7137 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7138 yes:yes:*\ gold\ *:*,c++,*) ;;
7139 yes:yes:*\ gold\ *:*)
7140 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7142 esac
7144 extrasub_build=
7145 for module in ${build_configdirs} ; do
7146 if test -z "${no_recursion}" \
7147 && test -f ${build_subdir}/${module}/Makefile; then
7148 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7149 rm -f ${build_subdir}/${module}/Makefile
7151 extrasub_build="$extrasub_build
7152 /^@if build-$module\$/d
7153 /^@endif build-$module\$/d
7154 /^@unless build-$module\$/,/^@endunless build-$module\$/d
7155 /^@if build-$module-$bootstrap_suffix\$/d
7156 /^@endif build-$module-$bootstrap_suffix\$/d
7157 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
7158 done
7159 extrasub_host=
7160 for module in ${configdirs} ; do
7161 if test -z "${no_recursion}"; then
7162 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7163 if test -f ${file}; then
7164 echo 1>&2 "*** removing ${file} to force reconfigure"
7165 rm -f ${file}
7167 done
7169 case ${module},${bootstrap_fixincludes} in
7170 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7171 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7172 esac
7173 extrasub_host="$extrasub_host
7174 /^@if $module\$/d
7175 /^@endif $module\$/d
7176 /^@unless $module\$/,/^@endunless $module\$/d
7177 /^@if $module-$host_bootstrap_suffix\$/d
7178 /^@endif $module-$host_bootstrap_suffix\$/d
7179 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
7180 done
7181 extrasub_target=
7182 for module in ${target_configdirs} ; do
7183 if test -z "${no_recursion}" \
7184 && test -f ${target_subdir}/${module}/Makefile; then
7185 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7186 rm -f ${target_subdir}/${module}/Makefile
7189 # We only bootstrap target libraries listed in bootstrap_target_libs.
7190 case $bootstrap_target_libs in
7191 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7192 *) target_bootstrap_suffix=no-bootstrap ;;
7193 esac
7195 extrasub_target="$extrasub_target
7196 /^@if target-$module\$/d
7197 /^@endif target-$module\$/d
7198 /^@unless target-$module\$/,/^@endunless target-$module\$/d
7199 /^@if target-$module-$target_bootstrap_suffix\$/d
7200 /^@endif target-$module-$target_bootstrap_suffix\$/d
7201 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
7202 done
7204 # Do the final fixup along with target modules.
7205 extrasub_target="$extrasub_target
7206 /^@if /,/^@endif /d
7207 /^@unless /d
7208 /^@endunless /d"
7210 # Create the serialization dependencies. This uses a temporary file.
7212 # Check whether --enable-serial-configure was given.
7213 if test "${enable_serial_configure+set}" = set; then :
7214 enableval=$enable_serial_configure;
7218 case ${enable_serial_configure} in
7219 yes)
7220 enable_serial_build_configure=yes
7221 enable_serial_host_configure=yes
7222 enable_serial_target_configure=yes
7224 esac
7226 # These force 'configure's to be done one at a time, to avoid problems
7227 # with contention over a shared config.cache.
7228 rm -f serdep.tmp
7229 echo '# serdep.tmp' > serdep.tmp
7230 olditem=
7231 test "x${enable_serial_build_configure}" = xyes &&
7232 for item in ${build_configdirs} ; do
7233 case ${olditem} in
7234 "") ;;
7235 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7236 esac
7237 olditem=${item}
7238 done
7239 olditem=
7240 test "x${enable_serial_host_configure}" = xyes &&
7241 for item in ${configdirs} ; do
7242 case ${olditem} in
7243 "") ;;
7244 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7245 esac
7246 olditem=${item}
7247 done
7248 olditem=
7249 test "x${enable_serial_target_configure}" = xyes &&
7250 for item in ${target_configdirs} ; do
7251 case ${olditem} in
7252 "") ;;
7253 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7254 esac
7255 olditem=${item}
7256 done
7257 serialization_dependencies=serdep.tmp
7260 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7261 # target, nonopt, and variable assignments. These are the ones we
7262 # might not want to pass down to subconfigures. The exception being
7263 # --cache-file=/dev/null, which is used to turn off the use of cache
7264 # files altogether, and which should be passed on to subconfigures.
7265 # Also strip program-prefix, program-suffix, and program-transform-name,
7266 # so that we can pass down a consistent program-transform-name.
7267 baseargs=
7268 tbaseargs=
7269 keep_next=no
7270 skip_next=no
7271 eval "set -- $ac_configure_args"
7272 for ac_arg
7274 if test X"$skip_next" = X"yes"; then
7275 skip_next=no
7276 continue
7278 if test X"$keep_next" = X"yes"; then
7279 case $ac_arg in
7280 *\'*)
7281 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7282 esac
7283 baseargs="$baseargs '$ac_arg'"
7284 tbaseargs="$tbaseargs '$ac_arg'"
7285 keep_next=no
7286 continue
7289 # Handle separated arguments. Based on the logic generated by
7290 # autoconf 2.59.
7291 case $ac_arg in
7292 *=* | --config-cache | -C | -disable-* | --disable-* \
7293 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7294 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7295 | -with-* | --with-* | -without-* | --without-* | --x)
7296 separate_arg=no
7299 separate_arg=yes
7302 separate_arg=no
7304 esac
7306 skip_targ=no
7307 case $ac_arg in
7309 --with-* | --without-*)
7310 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7312 case $libopt in
7313 *[-_]include)
7314 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7316 *[-_]lib)
7317 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7320 lib=$libopt
7322 esac
7325 case $lib in
7326 mpc | mpfr | gmp | isl)
7327 # If we're processing --with-$lib, --with-$lib-include or
7328 # --with-$lib-lib, for one of the libs above, and target is
7329 # different from host, don't pass the current argument to any
7330 # target library's configure.
7331 if test x$is_cross_compiler = xyes; then
7332 skip_targ=yes
7335 esac
7337 esac
7339 case "$ac_arg" in
7340 --cache-file=/dev/null | \
7341 -cache-file=/dev/null )
7342 # Handled here to avoid the test to skip args below.
7343 baseargs="$baseargs '$ac_arg'"
7344 tbaseargs="$tbaseargs '$ac_arg'"
7345 # Assert: $separate_arg should always be no.
7346 keep_next=$separate_arg
7348 --no*)
7349 continue
7351 --c* | \
7352 --sr* | \
7353 --ho* | \
7354 --bu* | \
7355 --t* | \
7356 --program-* | \
7357 -cache_file* | \
7358 -srcdir* | \
7359 -host* | \
7360 -build* | \
7361 -target* | \
7362 -program-prefix* | \
7363 -program-suffix* | \
7364 -program-transform-name* )
7365 skip_next=$separate_arg
7366 continue
7369 # An option. Add it.
7370 case $ac_arg in
7371 *\'*)
7372 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7373 esac
7374 baseargs="$baseargs '$ac_arg'"
7375 if test X"$skip_targ" = Xno; then
7376 tbaseargs="$tbaseargs '$ac_arg'"
7378 keep_next=$separate_arg
7381 # Either a variable assignment, or a nonopt (triplet). Don't
7382 # pass it down; let the Makefile handle this.
7383 continue
7385 esac
7386 done
7387 # Remove the initial space we just introduced and, as these will be
7388 # expanded by make, quote '$'.
7389 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7391 # Add in --program-transform-name, after --program-prefix and
7392 # --program-suffix have been applied to it. Autoconf has already
7393 # doubled dollar signs and backslashes in program_transform_name; we want
7394 # the backslashes un-doubled, and then the entire thing wrapped in single
7395 # quotes, because this will be expanded first by make and then by the shell.
7396 # Also, because we want to override the logic in subdir configure scripts to
7397 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7398 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7399 ${program_transform_name}
7400 EOF_SED
7401 gcc_transform_name=`cat conftestsed.out`
7402 rm -f conftestsed.out
7403 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7404 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7405 if test "$silent" = yes; then
7406 baseargs="$baseargs --silent"
7407 tbaseargs="$tbaseargs --silent"
7409 baseargs="$baseargs --disable-option-checking"
7410 tbaseargs="$tbaseargs --disable-option-checking"
7412 # Record and document user additions to sub configure arguments.
7417 # For the build-side libraries, we just need to pretend we're native,
7418 # and not use the same cache file. Multilibs are neither needed nor
7419 # desired. We can't even use the same cache file for all build-side
7420 # libraries, as they're compiled differently; some with C, some with
7421 # C++ or with different feature-enabling options.
7422 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7424 # For host modules, accept cache file option, or specification as blank.
7425 case "${cache_file}" in
7426 "") # empty
7427 cache_file_option="" ;;
7428 /* | [A-Za-z]:[\\/]* ) # absolute path
7429 cache_file_option="--cache-file=${cache_file}" ;;
7430 *) # relative path
7431 cache_file_option="--cache-file=../${cache_file}" ;;
7432 esac
7434 # Host dirs don't like to share a cache file either, horribly enough.
7435 # This seems to be due to autoconf 2.5x stupidity.
7436 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7438 target_configargs="$target_configargs ${tbaseargs}"
7440 # Passing a --with-cross-host argument lets the target libraries know
7441 # whether they are being built with a cross-compiler or being built
7442 # native. However, it would be better to use other mechanisms to make the
7443 # sorts of decisions they want to make on this basis. Please consider
7444 # this option to be deprecated. FIXME.
7445 if test x${is_cross_compiler} = xyes ; then
7446 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7449 # Special user-friendly check for native x86_64-linux build, if
7450 # multilib is not explicitly enabled.
7451 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7452 x86_64-*linux*:yes:$build:$build:)
7453 # Make sure we have a development environment that handles 32-bit
7454 dev64=no
7455 echo "int main () { return 0; }" > conftest.c
7456 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7457 if test $? = 0 ; then
7458 if test -s conftest || test -s conftest.exe ; then
7459 dev64=yes
7462 rm -f conftest*
7463 if test x${dev64} != xyes ; then
7464 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
7467 esac
7469 # Default to --enable-multilib.
7470 if test x${enable_multilib} = x ; then
7471 target_configargs="--enable-multilib ${target_configargs}"
7474 # Pass --with-newlib if appropriate. Note that target_configdirs has
7475 # changed from the earlier setting of with_newlib.
7476 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7477 target_configargs="--with-newlib ${target_configargs}"
7480 # Different target subdirs use different values of certain variables
7481 # (notably CXX). Worse, multilibs use *lots* of different values.
7482 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7483 # it doesn't automatically accept command-line overrides of them.
7484 # This means it's not safe for target subdirs to share a cache file,
7485 # which is disgusting, but there you have it. Hopefully this can be
7486 # fixed in future. It's still worthwhile to use a cache file for each
7487 # directory. I think.
7489 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7490 # We need to pass --target, as newer autoconf's requires consistency
7491 # for target_alias and gcc doesn't manage it consistently.
7492 target_configargs="--cache-file=./config.cache ${target_configargs}"
7494 FLAGS_FOR_TARGET=
7495 case " $target_configdirs " in
7496 *" newlib "*)
7497 case " $target_configargs " in
7498 *" --with-newlib "*)
7499 case "$target" in
7500 *-cygwin*)
7501 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7503 esac
7505 # If we're not building GCC, don't discard standard headers.
7506 if test -d ${srcdir}/gcc; then
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7509 if test "${build}" != "${host}"; then
7510 # On Canadian crosses, CC_FOR_TARGET will have already been set
7511 # by `configure', so we won't have an opportunity to add -Bgcc/
7512 # to it. This is right: we don't want to search that directory
7513 # for binaries, but we want the header files in there, so add
7514 # them explicitly.
7515 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7517 # Someone might think of using the pre-installed headers on
7518 # Canadian crosses, in case the installed compiler is not fully
7519 # compatible with the compiler being built. In this case, it
7520 # would be better to flag an error than risking having
7521 # incompatible object files being constructed. We can't
7522 # guarantee that an error will be flagged, but let's hope the
7523 # compiler will do it, when presented with incompatible header
7524 # files.
7528 case "${target}-${is_cross_compiler}" in
7529 i[3456789]86-*-linux*-no)
7530 # Here host == target, so we don't need to build gcc,
7531 # so we don't want to discard standard headers.
7532 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7535 # If we're building newlib, use its generic headers last, but search
7536 # for any libc-related directories first (so make it the last -B
7537 # switch).
7538 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7540 # If we're building libgloss, find the startup file, simulator library
7541 # and linker script.
7542 case " $target_configdirs " in
7543 *" libgloss "*)
7544 # Look for startup file, simulator library and maybe linker script.
7545 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7546 # Look for libnosys.a in case the target needs it.
7547 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7548 # Most targets have the linker script in the source directory.
7549 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7551 esac
7553 esac
7555 esac
7557 esac
7559 case "$target" in
7560 x86_64-*mingw* | *-w64-mingw*)
7561 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7562 # however, use a symlink named 'mingw' in ${prefix} .
7563 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7565 *-mingw*)
7566 # MinGW can't be handled as Cygwin above since it does not use newlib.
7567 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'
7569 esac
7571 # Allow the user to override the flags for
7572 # our build compiler if desired.
7573 if test x"${build}" = x"${host}" ; then
7574 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7575 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7576 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7579 # On Canadian crosses, we'll be searching the right directories for
7580 # the previously-installed cross compiler, so don't bother to add
7581 # flags for directories within the install tree of the compiler
7582 # being built; programs in there won't even run.
7583 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7584 # Search for pre-installed headers if nothing else fits.
7585 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7588 if test "x${use_gnu_ld}" = x &&
7589 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7590 # Arrange for us to find uninstalled linker scripts.
7591 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7594 # Search for other target-specific linker scripts and such.
7595 case "${target}" in
7596 mep*)
7597 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7599 esac
7601 # Makefile fragments.
7602 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7604 eval fragval=\$$frag
7605 if test $fragval != /dev/null; then
7606 eval $frag=${srcdir}/$fragval
7608 done
7614 # Miscellanea: directories, flags, etc.
7623 # Build module lists & subconfigure args.
7627 # Host module lists & subconfigure args.
7632 # Target module lists & subconfigure args.
7636 # Build tools.
7653 # Generate default definitions for YACC, M4, LEX and other programs that run
7654 # on the build machine. These are used if the Makefile can't locate these
7655 # programs in objdir.
7656 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7658 for ac_prog in 'bison -y' byacc yacc
7660 # Extract the first word of "$ac_prog", so it can be a program name with args.
7661 set dummy $ac_prog; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if test "${ac_cv_prog_YACC+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 if test -n "$YACC"; then
7668 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7677 ac_cv_prog_YACC="$ac_prog"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7681 done
7682 done
7683 IFS=$as_save_IFS
7687 YACC=$ac_cv_prog_YACC
7688 if test -n "$YACC"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7690 $as_echo "$YACC" >&6; }
7691 else
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7697 test -n "$YACC" && break
7698 done
7699 test -n "$YACC" || YACC="$MISSING bison -y"
7701 case " $build_configdirs " in
7702 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7703 esac
7705 for ac_prog in bison
7707 # Extract the first word of "$ac_prog", so it can be a program name with args.
7708 set dummy $ac_prog; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if test "${ac_cv_prog_BISON+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -n "$BISON"; then
7715 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7724 ac_cv_prog_BISON="$ac_prog"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7728 done
7729 done
7730 IFS=$as_save_IFS
7734 BISON=$ac_cv_prog_BISON
7735 if test -n "$BISON"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7737 $as_echo "$BISON" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7744 test -n "$BISON" && break
7745 done
7746 test -n "$BISON" || BISON="$MISSING bison"
7748 case " $build_configdirs " in
7749 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7750 esac
7752 for ac_prog in gm4 gnum4 m4
7754 # Extract the first word of "$ac_prog", so it can be a program name with args.
7755 set dummy $ac_prog; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if test "${ac_cv_prog_M4+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 if test -n "$M4"; then
7762 ac_cv_prog_M4="$M4" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_prog_M4="$ac_prog"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7775 done
7776 done
7777 IFS=$as_save_IFS
7781 M4=$ac_cv_prog_M4
7782 if test -n "$M4"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7784 $as_echo "$M4" >&6; }
7785 else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7791 test -n "$M4" && break
7792 done
7793 test -n "$M4" || M4="$MISSING m4"
7795 case " $build_configdirs " in
7796 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7797 esac
7799 for ac_prog in flex lex
7801 # Extract the first word of "$ac_prog", so it can be a program name with args.
7802 set dummy $ac_prog; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if test "${ac_cv_prog_LEX+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$LEX"; then
7809 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_prog_LEX="$ac_prog"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7822 done
7823 done
7824 IFS=$as_save_IFS
7828 LEX=$ac_cv_prog_LEX
7829 if test -n "$LEX"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7831 $as_echo "$LEX" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7838 test -n "$LEX" && break
7839 done
7840 test -n "$LEX" || LEX="$MISSING flex"
7842 case " $build_configdirs " in
7843 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7844 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7845 esac
7847 for ac_prog in flex
7849 # Extract the first word of "$ac_prog", so it can be a program name with args.
7850 set dummy $ac_prog; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if test "${ac_cv_prog_FLEX+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$FLEX"; then
7857 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_prog_FLEX="$ac_prog"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7870 done
7871 done
7872 IFS=$as_save_IFS
7876 FLEX=$ac_cv_prog_FLEX
7877 if test -n "$FLEX"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7879 $as_echo "$FLEX" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7886 test -n "$FLEX" && break
7887 done
7888 test -n "$FLEX" || FLEX="$MISSING flex"
7890 case " $build_configdirs " in
7891 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7892 esac
7894 for ac_prog in makeinfo
7896 # Extract the first word of "$ac_prog", so it can be a program name with args.
7897 set dummy $ac_prog; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 if test -n "$MAKEINFO"; then
7904 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7905 else
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 for as_dir in $PATH
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7913 ac_cv_prog_MAKEINFO="$ac_prog"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7917 done
7918 done
7919 IFS=$as_save_IFS
7923 MAKEINFO=$ac_cv_prog_MAKEINFO
7924 if test -n "$MAKEINFO"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7926 $as_echo "$MAKEINFO" >&6; }
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7933 test -n "$MAKEINFO" && break
7934 done
7935 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7937 case " $build_configdirs " in
7938 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7941 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7942 # higher, else we use the "missing" dummy.
7943 if ${MAKEINFO} --version \
7944 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7946 else
7947 MAKEINFO="$MISSING makeinfo"
7951 esac
7953 # FIXME: expect and dejagnu may become build tools?
7955 for ac_prog in expect
7957 # Extract the first word of "$ac_prog", so it can be a program name with args.
7958 set dummy $ac_prog; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 if test -n "$EXPECT"; then
7965 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7974 ac_cv_prog_EXPECT="$ac_prog"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7978 done
7979 done
7980 IFS=$as_save_IFS
7984 EXPECT=$ac_cv_prog_EXPECT
7985 if test -n "$EXPECT"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7987 $as_echo "$EXPECT" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7994 test -n "$EXPECT" && break
7995 done
7996 test -n "$EXPECT" || EXPECT="expect"
7998 case " $configdirs " in
7999 *" expect "*)
8000 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8002 esac
8004 for ac_prog in runtest
8006 # Extract the first word of "$ac_prog", so it can be a program name with args.
8007 set dummy $ac_prog; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 if test -n "$RUNTEST"; then
8014 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_prog_RUNTEST="$ac_prog"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8027 done
8028 done
8029 IFS=$as_save_IFS
8033 RUNTEST=$ac_cv_prog_RUNTEST
8034 if test -n "$RUNTEST"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8036 $as_echo "$RUNTEST" >&6; }
8037 else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8043 test -n "$RUNTEST" && break
8044 done
8045 test -n "$RUNTEST" || RUNTEST="runtest"
8047 case " $configdirs " in
8048 *" dejagnu "*)
8049 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8051 esac
8054 # Host tools.
8055 ncn_tool_prefix=
8056 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8057 ncn_target_tool_prefix=
8058 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8062 if test -n "$AR"; then
8063 ac_cv_prog_AR=$AR
8064 elif test -n "$ac_cv_prog_AR"; then
8065 AR=$ac_cv_prog_AR
8068 if test -n "$ac_cv_prog_AR"; then
8069 for ncn_progname in ar; do
8070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8071 set dummy ${ncn_progname}; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_AR+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 if test -n "$AR"; then
8078 ac_cv_prog_AR="$AR" # Let the user override the test.
8079 else
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $PATH
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_AR="${ncn_progname}"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8091 done
8092 done
8093 IFS=$as_save_IFS
8097 AR=$ac_cv_prog_AR
8098 if test -n "$AR"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8100 $as_echo "$AR" >&6; }
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8107 done
8110 for ncn_progname in ar; do
8111 if test -n "$ncn_tool_prefix"; then
8112 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8113 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_AR+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 if test -n "$AR"; then
8120 ac_cv_prog_AR="$AR" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 break 2
8133 done
8134 done
8135 IFS=$as_save_IFS
8139 AR=$ac_cv_prog_AR
8140 if test -n "$AR"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8142 $as_echo "$AR" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8150 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8152 set dummy ${ncn_progname}; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_AR+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 if test -n "$AR"; then
8159 ac_cv_prog_AR="$AR" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_AR="${ncn_progname}"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8172 done
8173 done
8174 IFS=$as_save_IFS
8178 AR=$ac_cv_prog_AR
8179 if test -n "$AR"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8181 $as_echo "$AR" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8189 test -n "$ac_cv_prog_AR" && break
8190 done
8192 if test -z "$ac_cv_prog_AR" ; then
8193 set dummy ar
8194 if test $build = $host ; then
8195 AR="$2"
8196 else
8197 AR="${ncn_tool_prefix}$2"
8203 if test -n "$AS"; then
8204 ac_cv_prog_AS=$AS
8205 elif test -n "$ac_cv_prog_AS"; then
8206 AS=$ac_cv_prog_AS
8209 if test -n "$ac_cv_prog_AS"; then
8210 for ncn_progname in as; do
8211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8212 set dummy ${ncn_progname}; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_AS+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 if test -n "$AS"; then
8219 ac_cv_prog_AS="$AS" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_AS="${ncn_progname}"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8232 done
8233 done
8234 IFS=$as_save_IFS
8238 AS=$ac_cv_prog_AS
8239 if test -n "$AS"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8241 $as_echo "$AS" >&6; }
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8248 done
8251 for ncn_progname in as; do
8252 if test -n "$ncn_tool_prefix"; then
8253 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8254 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 $as_echo_n "checking for $ac_word... " >&6; }
8257 if test "${ac_cv_prog_AS+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 if test -n "$AS"; then
8261 ac_cv_prog_AS="$AS" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8266 IFS=$as_save_IFS
8267 test -z "$as_dir" && as_dir=.
8268 for ac_exec_ext in '' $ac_executable_extensions; do
8269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8270 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8272 break 2
8274 done
8275 done
8276 IFS=$as_save_IFS
8280 AS=$ac_cv_prog_AS
8281 if test -n "$AS"; then
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8283 $as_echo "$AS" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 $as_echo "no" >&6; }
8291 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8293 set dummy ${ncn_progname}; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if test "${ac_cv_prog_AS+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 if test -n "$AS"; then
8300 ac_cv_prog_AS="$AS" # Let the user override the test.
8301 else
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_prog_AS="${ncn_progname}"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8313 done
8314 done
8315 IFS=$as_save_IFS
8319 AS=$ac_cv_prog_AS
8320 if test -n "$AS"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8322 $as_echo "$AS" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8330 test -n "$ac_cv_prog_AS" && break
8331 done
8333 if test -z "$ac_cv_prog_AS" ; then
8334 set dummy as
8335 if test $build = $host ; then
8336 AS="$2"
8337 else
8338 AS="${ncn_tool_prefix}$2"
8344 if test -n "$DLLTOOL"; then
8345 ac_cv_prog_DLLTOOL=$DLLTOOL
8346 elif test -n "$ac_cv_prog_DLLTOOL"; then
8347 DLLTOOL=$ac_cv_prog_DLLTOOL
8350 if test -n "$ac_cv_prog_DLLTOOL"; then
8351 for ncn_progname in dlltool; do
8352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8353 set dummy ${ncn_progname}; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test -n "$DLLTOOL"; then
8360 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_prog_DLLTOOL="${ncn_progname}"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8373 done
8374 done
8375 IFS=$as_save_IFS
8379 DLLTOOL=$ac_cv_prog_DLLTOOL
8380 if test -n "$DLLTOOL"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8382 $as_echo "$DLLTOOL" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8389 done
8392 for ncn_progname in dlltool; do
8393 if test -n "$ncn_tool_prefix"; then
8394 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8395 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 if test -n "$DLLTOOL"; then
8402 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8415 done
8416 done
8417 IFS=$as_save_IFS
8421 DLLTOOL=$ac_cv_prog_DLLTOOL
8422 if test -n "$DLLTOOL"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8424 $as_echo "$DLLTOOL" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8432 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8434 set dummy ${ncn_progname}; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 if test -n "$DLLTOOL"; then
8441 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_prog_DLLTOOL="${ncn_progname}"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8454 done
8455 done
8456 IFS=$as_save_IFS
8460 DLLTOOL=$ac_cv_prog_DLLTOOL
8461 if test -n "$DLLTOOL"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8463 $as_echo "$DLLTOOL" >&6; }
8464 else
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8471 test -n "$ac_cv_prog_DLLTOOL" && break
8472 done
8474 if test -z "$ac_cv_prog_DLLTOOL" ; then
8475 set dummy dlltool
8476 if test $build = $host ; then
8477 DLLTOOL="$2"
8478 else
8479 DLLTOOL="${ncn_tool_prefix}$2"
8485 if test -n "$LD"; then
8486 ac_cv_prog_LD=$LD
8487 elif test -n "$ac_cv_prog_LD"; then
8488 LD=$ac_cv_prog_LD
8491 if test -n "$ac_cv_prog_LD"; then
8492 for ncn_progname in ld; do
8493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8494 set dummy ${ncn_progname}; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_prog_LD+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 if test -n "$LD"; then
8501 ac_cv_prog_LD="$LD" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510 ac_cv_prog_LD="${ncn_progname}"
8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512 break 2
8514 done
8515 done
8516 IFS=$as_save_IFS
8520 LD=$ac_cv_prog_LD
8521 if test -n "$LD"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8523 $as_echo "$LD" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8530 done
8533 for ncn_progname in ld; do
8534 if test -n "$ncn_tool_prefix"; then
8535 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8536 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_prog_LD+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 if test -n "$LD"; then
8543 ac_cv_prog_LD="$LD" # Let the user override the test.
8544 else
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 for as_dir in $PATH
8548 IFS=$as_save_IFS
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 break 2
8556 done
8557 done
8558 IFS=$as_save_IFS
8562 LD=$ac_cv_prog_LD
8563 if test -n "$LD"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8565 $as_echo "$LD" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8573 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8575 set dummy ${ncn_progname}; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if test "${ac_cv_prog_LD+set}" = set; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 if test -n "$LD"; then
8582 ac_cv_prog_LD="$LD" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_prog_LD="${ncn_progname}"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8595 done
8596 done
8597 IFS=$as_save_IFS
8601 LD=$ac_cv_prog_LD
8602 if test -n "$LD"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8604 $as_echo "$LD" >&6; }
8605 else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8612 test -n "$ac_cv_prog_LD" && break
8613 done
8615 if test -z "$ac_cv_prog_LD" ; then
8616 set dummy ld
8617 if test $build = $host ; then
8618 LD="$2"
8619 else
8620 LD="${ncn_tool_prefix}$2"
8626 if test -n "$LIPO"; then
8627 ac_cv_prog_LIPO=$LIPO
8628 elif test -n "$ac_cv_prog_LIPO"; then
8629 LIPO=$ac_cv_prog_LIPO
8632 if test -n "$ac_cv_prog_LIPO"; then
8633 for ncn_progname in lipo; do
8634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8635 set dummy ${ncn_progname}; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if test "${ac_cv_prog_LIPO+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 if test -n "$LIPO"; then
8642 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_prog_LIPO="${ncn_progname}"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8655 done
8656 done
8657 IFS=$as_save_IFS
8661 LIPO=$ac_cv_prog_LIPO
8662 if test -n "$LIPO"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8664 $as_echo "$LIPO" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8671 done
8674 for ncn_progname in lipo; do
8675 if test -n "$ncn_tool_prefix"; then
8676 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8677 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if test "${ac_cv_prog_LIPO+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 if test -n "$LIPO"; then
8684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8697 done
8698 done
8699 IFS=$as_save_IFS
8703 LIPO=$ac_cv_prog_LIPO
8704 if test -n "$LIPO"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8706 $as_echo "$LIPO" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8714 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8716 set dummy ${ncn_progname}; ac_word=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if test "${ac_cv_prog_LIPO+set}" = set; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 if test -n "$LIPO"; then
8723 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8724 else
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8728 IFS=$as_save_IFS
8729 test -z "$as_dir" && as_dir=.
8730 for ac_exec_ext in '' $ac_executable_extensions; do
8731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8732 ac_cv_prog_LIPO="${ncn_progname}"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8734 break 2
8736 done
8737 done
8738 IFS=$as_save_IFS
8742 LIPO=$ac_cv_prog_LIPO
8743 if test -n "$LIPO"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8745 $as_echo "$LIPO" >&6; }
8746 else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8753 test -n "$ac_cv_prog_LIPO" && break
8754 done
8756 if test -z "$ac_cv_prog_LIPO" ; then
8757 set dummy lipo
8758 if test $build = $host ; then
8759 LIPO="$2"
8760 else
8761 LIPO="${ncn_tool_prefix}$2"
8767 if test -n "$NM"; then
8768 ac_cv_prog_NM=$NM
8769 elif test -n "$ac_cv_prog_NM"; then
8770 NM=$ac_cv_prog_NM
8773 if test -n "$ac_cv_prog_NM"; then
8774 for ncn_progname in nm; do
8775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8776 set dummy ${ncn_progname}; ac_word=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if test "${ac_cv_prog_NM+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 if test -n "$NM"; then
8783 ac_cv_prog_NM="$NM" # Let the user override the test.
8784 else
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_prog_NM="${ncn_progname}"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8802 NM=$ac_cv_prog_NM
8803 if test -n "$NM"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8805 $as_echo "$NM" >&6; }
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808 $as_echo "no" >&6; }
8812 done
8815 for ncn_progname in nm; do
8816 if test -n "$ncn_tool_prefix"; then
8817 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8818 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if test "${ac_cv_prog_NM+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$NM"; then
8825 ac_cv_prog_NM="$NM" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8834 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8838 done
8839 done
8840 IFS=$as_save_IFS
8844 NM=$ac_cv_prog_NM
8845 if test -n "$NM"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8847 $as_echo "$NM" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8855 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8857 set dummy ${ncn_progname}; ac_word=$2
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8859 $as_echo_n "checking for $ac_word... " >&6; }
8860 if test "${ac_cv_prog_NM+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 if test -n "$NM"; then
8864 ac_cv_prog_NM="$NM" # Let the user override the test.
8865 else
8866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 for as_dir in $PATH
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8873 ac_cv_prog_NM="${ncn_progname}"
8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8877 done
8878 done
8879 IFS=$as_save_IFS
8883 NM=$ac_cv_prog_NM
8884 if test -n "$NM"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8886 $as_echo "$NM" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8894 test -n "$ac_cv_prog_NM" && break
8895 done
8897 if test -z "$ac_cv_prog_NM" ; then
8898 set dummy nm
8899 if test $build = $host ; then
8900 NM="$2"
8901 else
8902 NM="${ncn_tool_prefix}$2"
8908 if test -n "$RANLIB"; then
8909 ac_cv_prog_RANLIB=$RANLIB
8910 elif test -n "$ac_cv_prog_RANLIB"; then
8911 RANLIB=$ac_cv_prog_RANLIB
8914 if test -n "$ac_cv_prog_RANLIB"; then
8915 for ncn_progname in ranlib; do
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8917 set dummy ${ncn_progname}; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8933 ac_cv_prog_RANLIB="${ncn_progname}"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8937 done
8938 done
8939 IFS=$as_save_IFS
8943 RANLIB=$ac_cv_prog_RANLIB
8944 if test -n "$RANLIB"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8946 $as_echo "$RANLIB" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8953 done
8956 for ncn_progname in ranlib; do
8957 if test -n "$ncn_tool_prefix"; then
8958 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8959 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8964 else
8965 if test -n "$RANLIB"; then
8966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8967 else
8968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8969 for as_dir in $PATH
8971 IFS=$as_save_IFS
8972 test -z "$as_dir" && as_dir=.
8973 for ac_exec_ext in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 break 2
8979 done
8980 done
8981 IFS=$as_save_IFS
8985 RANLIB=$ac_cv_prog_RANLIB
8986 if test -n "$RANLIB"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8988 $as_echo "$RANLIB" >&6; }
8989 else
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8996 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8998 set dummy ${ncn_progname}; ac_word=$2
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000 $as_echo_n "checking for $ac_word... " >&6; }
9001 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 if test -n "$RANLIB"; then
9005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9014 ac_cv_prog_RANLIB="${ncn_progname}"
9015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9018 done
9019 done
9020 IFS=$as_save_IFS
9024 RANLIB=$ac_cv_prog_RANLIB
9025 if test -n "$RANLIB"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9027 $as_echo "$RANLIB" >&6; }
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9035 test -n "$ac_cv_prog_RANLIB" && break
9036 done
9038 if test -z "$ac_cv_prog_RANLIB" ; then
9039 RANLIB="true"
9044 if test -n "$STRIP"; then
9045 ac_cv_prog_STRIP=$STRIP
9046 elif test -n "$ac_cv_prog_STRIP"; then
9047 STRIP=$ac_cv_prog_STRIP
9050 if test -n "$ac_cv_prog_STRIP"; then
9051 for ncn_progname in strip; do
9052 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9053 set dummy ${ncn_progname}; ac_word=$2
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055 $as_echo_n "checking for $ac_word... " >&6; }
9056 if test "${ac_cv_prog_STRIP+set}" = set; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 if test -n "$STRIP"; then
9060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9061 else
9062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9063 for as_dir in $PATH
9065 IFS=$as_save_IFS
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9069 ac_cv_prog_STRIP="${ncn_progname}"
9070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 break 2
9073 done
9074 done
9075 IFS=$as_save_IFS
9079 STRIP=$ac_cv_prog_STRIP
9080 if test -n "$STRIP"; then
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9082 $as_echo "$STRIP" >&6; }
9083 else
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 $as_echo "no" >&6; }
9089 done
9092 for ncn_progname in strip; do
9093 if test -n "$ncn_tool_prefix"; then
9094 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9095 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9097 $as_echo_n "checking for $ac_word... " >&6; }
9098 if test "${ac_cv_prog_STRIP+set}" = set; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 if test -n "$STRIP"; then
9102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9103 else
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9105 for as_dir in $PATH
9107 IFS=$as_save_IFS
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9111 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9113 break 2
9115 done
9116 done
9117 IFS=$as_save_IFS
9121 STRIP=$ac_cv_prog_STRIP
9122 if test -n "$STRIP"; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9124 $as_echo "$STRIP" >&6; }
9125 else
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 $as_echo "no" >&6; }
9132 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9134 set dummy ${ncn_progname}; ac_word=$2
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136 $as_echo_n "checking for $ac_word... " >&6; }
9137 if test "${ac_cv_prog_STRIP+set}" = set; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 if test -n "$STRIP"; then
9141 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9142 else
9143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144 for as_dir in $PATH
9146 IFS=$as_save_IFS
9147 test -z "$as_dir" && as_dir=.
9148 for ac_exec_ext in '' $ac_executable_extensions; do
9149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9150 ac_cv_prog_STRIP="${ncn_progname}"
9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9152 break 2
9154 done
9155 done
9156 IFS=$as_save_IFS
9160 STRIP=$ac_cv_prog_STRIP
9161 if test -n "$STRIP"; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9163 $as_echo "$STRIP" >&6; }
9164 else
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 $as_echo "no" >&6; }
9171 test -n "$ac_cv_prog_STRIP" && break
9172 done
9174 if test -z "$ac_cv_prog_STRIP" ; then
9175 STRIP="true"
9180 if test -n "$WINDRES"; then
9181 ac_cv_prog_WINDRES=$WINDRES
9182 elif test -n "$ac_cv_prog_WINDRES"; then
9183 WINDRES=$ac_cv_prog_WINDRES
9186 if test -n "$ac_cv_prog_WINDRES"; then
9187 for ncn_progname in windres; do
9188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9189 set dummy ${ncn_progname}; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 if test -n "$WINDRES"; then
9196 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9197 else
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9205 ac_cv_prog_WINDRES="${ncn_progname}"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 break 2
9209 done
9210 done
9211 IFS=$as_save_IFS
9215 WINDRES=$ac_cv_prog_WINDRES
9216 if test -n "$WINDRES"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9218 $as_echo "$WINDRES" >&6; }
9219 else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9225 done
9228 for ncn_progname in windres; do
9229 if test -n "$ncn_tool_prefix"; then
9230 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9231 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9233 $as_echo_n "checking for $ac_word... " >&6; }
9234 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9236 else
9237 if test -n "$WINDRES"; then
9238 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9239 else
9240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 for as_dir in $PATH
9243 IFS=$as_save_IFS
9244 test -z "$as_dir" && as_dir=.
9245 for ac_exec_ext in '' $ac_executable_extensions; do
9246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9247 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249 break 2
9251 done
9252 done
9253 IFS=$as_save_IFS
9257 WINDRES=$ac_cv_prog_WINDRES
9258 if test -n "$WINDRES"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9260 $as_echo "$WINDRES" >&6; }
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9268 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9270 set dummy ${ncn_progname}; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 if test -n "$WINDRES"; then
9277 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9278 else
9279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 for as_dir in $PATH
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
9284 for ac_exec_ext in '' $ac_executable_extensions; do
9285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9286 ac_cv_prog_WINDRES="${ncn_progname}"
9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 break 2
9290 done
9291 done
9292 IFS=$as_save_IFS
9296 WINDRES=$ac_cv_prog_WINDRES
9297 if test -n "$WINDRES"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9299 $as_echo "$WINDRES" >&6; }
9300 else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302 $as_echo "no" >&6; }
9307 test -n "$ac_cv_prog_WINDRES" && break
9308 done
9310 if test -z "$ac_cv_prog_WINDRES" ; then
9311 set dummy windres
9312 if test $build = $host ; then
9313 WINDRES="$2"
9314 else
9315 WINDRES="${ncn_tool_prefix}$2"
9321 if test -n "$WINDMC"; then
9322 ac_cv_prog_WINDMC=$WINDMC
9323 elif test -n "$ac_cv_prog_WINDMC"; then
9324 WINDMC=$ac_cv_prog_WINDMC
9327 if test -n "$ac_cv_prog_WINDMC"; then
9328 for ncn_progname in windmc; do
9329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9330 set dummy ${ncn_progname}; ac_word=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9335 else
9336 if test -n "$WINDMC"; then
9337 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9338 else
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_WINDMC="${ncn_progname}"
9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9350 done
9351 done
9352 IFS=$as_save_IFS
9356 WINDMC=$ac_cv_prog_WINDMC
9357 if test -n "$WINDMC"; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9359 $as_echo "$WINDMC" >&6; }
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; }
9366 done
9369 for ncn_progname in windmc; do
9370 if test -n "$ncn_tool_prefix"; then
9371 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9372 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 if test -n "$WINDMC"; then
9379 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9392 done
9393 done
9394 IFS=$as_save_IFS
9398 WINDMC=$ac_cv_prog_WINDMC
9399 if test -n "$WINDMC"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9401 $as_echo "$WINDMC" >&6; }
9402 else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9409 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9411 set dummy ${ncn_progname}; ac_word=$2
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 $as_echo_n "checking for $ac_word... " >&6; }
9414 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 if test -n "$WINDMC"; then
9418 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9419 else
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9427 ac_cv_prog_WINDMC="${ncn_progname}"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9431 done
9432 done
9433 IFS=$as_save_IFS
9437 WINDMC=$ac_cv_prog_WINDMC
9438 if test -n "$WINDMC"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9440 $as_echo "$WINDMC" >&6; }
9441 else
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9448 test -n "$ac_cv_prog_WINDMC" && break
9449 done
9451 if test -z "$ac_cv_prog_WINDMC" ; then
9452 set dummy windmc
9453 if test $build = $host ; then
9454 WINDMC="$2"
9455 else
9456 WINDMC="${ncn_tool_prefix}$2"
9462 if test -n "$OBJCOPY"; then
9463 ac_cv_prog_OBJCOPY=$OBJCOPY
9464 elif test -n "$ac_cv_prog_OBJCOPY"; then
9465 OBJCOPY=$ac_cv_prog_OBJCOPY
9468 if test -n "$ac_cv_prog_OBJCOPY"; then
9469 for ncn_progname in objcopy; do
9470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9471 set dummy ${ncn_progname}; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 if test -n "$OBJCOPY"; then
9478 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9479 else
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 for as_dir in $PATH
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_prog_OBJCOPY="${ncn_progname}"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9491 done
9492 done
9493 IFS=$as_save_IFS
9497 OBJCOPY=$ac_cv_prog_OBJCOPY
9498 if test -n "$OBJCOPY"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9500 $as_echo "$OBJCOPY" >&6; }
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9507 done
9510 for ncn_progname in objcopy; do
9511 if test -n "$ncn_tool_prefix"; then
9512 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9513 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 if test -n "$OBJCOPY"; then
9520 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9521 else
9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523 for as_dir in $PATH
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
9527 for ac_exec_ext in '' $ac_executable_extensions; do
9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9529 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9531 break 2
9533 done
9534 done
9535 IFS=$as_save_IFS
9539 OBJCOPY=$ac_cv_prog_OBJCOPY
9540 if test -n "$OBJCOPY"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9542 $as_echo "$OBJCOPY" >&6; }
9543 else
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9545 $as_echo "no" >&6; }
9550 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9552 set dummy ${ncn_progname}; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 if test -n "$OBJCOPY"; then
9559 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9560 else
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 for as_dir in $PATH
9564 IFS=$as_save_IFS
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568 ac_cv_prog_OBJCOPY="${ncn_progname}"
9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9570 break 2
9572 done
9573 done
9574 IFS=$as_save_IFS
9578 OBJCOPY=$ac_cv_prog_OBJCOPY
9579 if test -n "$OBJCOPY"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9581 $as_echo "$OBJCOPY" >&6; }
9582 else
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9589 test -n "$ac_cv_prog_OBJCOPY" && break
9590 done
9592 if test -z "$ac_cv_prog_OBJCOPY" ; then
9593 set dummy objcopy
9594 if test $build = $host ; then
9595 OBJCOPY="$2"
9596 else
9597 OBJCOPY="${ncn_tool_prefix}$2"
9603 if test -n "$OBJDUMP"; then
9604 ac_cv_prog_OBJDUMP=$OBJDUMP
9605 elif test -n "$ac_cv_prog_OBJDUMP"; then
9606 OBJDUMP=$ac_cv_prog_OBJDUMP
9609 if test -n "$ac_cv_prog_OBJDUMP"; then
9610 for ncn_progname in objdump; do
9611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9612 set dummy ${ncn_progname}; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 if test -n "$OBJDUMP"; then
9619 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9620 else
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 for as_dir in $PATH
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628 ac_cv_prog_OBJDUMP="${ncn_progname}"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630 break 2
9632 done
9633 done
9634 IFS=$as_save_IFS
9638 OBJDUMP=$ac_cv_prog_OBJDUMP
9639 if test -n "$OBJDUMP"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9641 $as_echo "$OBJDUMP" >&6; }
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9648 done
9651 for ncn_progname in objdump; do
9652 if test -n "$ncn_tool_prefix"; then
9653 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9654 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 if test -n "$OBJDUMP"; then
9661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9662 else
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9666 IFS=$as_save_IFS
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9670 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 break 2
9674 done
9675 done
9676 IFS=$as_save_IFS
9680 OBJDUMP=$ac_cv_prog_OBJDUMP
9681 if test -n "$OBJDUMP"; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9683 $as_echo "$OBJDUMP" >&6; }
9684 else
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686 $as_echo "no" >&6; }
9691 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9692 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9693 set dummy ${ncn_progname}; ac_word=$2
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695 $as_echo_n "checking for $ac_word... " >&6; }
9696 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9697 $as_echo_n "(cached) " >&6
9698 else
9699 if test -n "$OBJDUMP"; then
9700 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9701 else
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 for as_dir in $PATH
9705 IFS=$as_save_IFS
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9709 ac_cv_prog_OBJDUMP="${ncn_progname}"
9710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9711 break 2
9713 done
9714 done
9715 IFS=$as_save_IFS
9719 OBJDUMP=$ac_cv_prog_OBJDUMP
9720 if test -n "$OBJDUMP"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9722 $as_echo "$OBJDUMP" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9730 test -n "$ac_cv_prog_OBJDUMP" && break
9731 done
9733 if test -z "$ac_cv_prog_OBJDUMP" ; then
9734 set dummy objdump
9735 if test $build = $host ; then
9736 OBJDUMP="$2"
9737 else
9738 OBJDUMP="${ncn_tool_prefix}$2"
9744 if test -n "$READELF"; then
9745 ac_cv_prog_READELF=$READELF
9746 elif test -n "$ac_cv_prog_READELF"; then
9747 READELF=$ac_cv_prog_READELF
9750 if test -n "$ac_cv_prog_READELF"; then
9751 for ncn_progname in readelf; do
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753 set dummy ${ncn_progname}; ac_word=$2
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755 $as_echo_n "checking for $ac_word... " >&6; }
9756 if test "${ac_cv_prog_READELF+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 if test -n "$READELF"; then
9760 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9761 else
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763 for as_dir in $PATH
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9769 ac_cv_prog_READELF="${ncn_progname}"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9771 break 2
9773 done
9774 done
9775 IFS=$as_save_IFS
9779 READELF=$ac_cv_prog_READELF
9780 if test -n "$READELF"; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9782 $as_echo "$READELF" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785 $as_echo "no" >&6; }
9789 done
9792 for ncn_progname in readelf; do
9793 if test -n "$ncn_tool_prefix"; then
9794 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9795 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_READELF+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 if test -n "$READELF"; then
9802 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9807 IFS=$as_save_IFS
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 break 2
9815 done
9816 done
9817 IFS=$as_save_IFS
9821 READELF=$ac_cv_prog_READELF
9822 if test -n "$READELF"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9824 $as_echo "$READELF" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9832 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9834 set dummy ${ncn_progname}; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if test "${ac_cv_prog_READELF+set}" = set; then :
9838 $as_echo_n "(cached) " >&6
9839 else
9840 if test -n "$READELF"; then
9841 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9842 else
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_prog_READELF="${ncn_progname}"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9860 READELF=$ac_cv_prog_READELF
9861 if test -n "$READELF"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9863 $as_echo "$READELF" >&6; }
9864 else
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9871 test -n "$ac_cv_prog_READELF" && break
9872 done
9874 if test -z "$ac_cv_prog_READELF" ; then
9875 set dummy readelf
9876 if test $build = $host ; then
9877 READELF="$2"
9878 else
9879 READELF="${ncn_tool_prefix}$2"
9888 # Target tools.
9890 # Check whether --with-build-time-tools was given.
9891 if test "${with_build_time_tools+set}" = set; then :
9892 withval=$with_build_time_tools; case x"$withval" in
9893 x/*) ;;
9895 with_build_time_tools=
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9897 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9899 esac
9900 else
9901 with_build_time_tools=
9907 if test -n "$CC_FOR_TARGET"; then
9908 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9909 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9910 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9913 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9914 for ncn_progname in cc gcc; do
9915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9916 set dummy ${ncn_progname}; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 if test -n "$CC_FOR_TARGET"; then
9923 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9924 else
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9926 for as_dir in $PATH
9928 IFS=$as_save_IFS
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9932 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9934 break 2
9936 done
9937 done
9938 IFS=$as_save_IFS
9942 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9943 if test -n "$CC_FOR_TARGET"; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9945 $as_echo "$CC_FOR_TARGET" >&6; }
9946 else
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9952 done
9955 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9956 for ncn_progname in cc gcc; do
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9958 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9959 if test -x $with_build_time_tools/${ncn_progname}; then
9960 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9962 $as_echo "yes" >&6; }
9963 break
9964 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 $as_echo "no" >&6; }
9968 done
9971 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9972 for ncn_progname in cc gcc; do
9973 if test -n "$ncn_target_tool_prefix"; then
9974 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9975 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 if test -n "$CC_FOR_TARGET"; then
9982 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9983 else
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9997 IFS=$as_save_IFS
10001 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10002 if test -n "$CC_FOR_TARGET"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10004 $as_echo "$CC_FOR_TARGET" >&6; }
10005 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10012 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10014 set dummy ${ncn_progname}; ac_word=$2
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016 $as_echo_n "checking for $ac_word... " >&6; }
10017 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 if test -n "$CC_FOR_TARGET"; then
10021 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10022 else
10023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024 for as_dir in $PATH
10026 IFS=$as_save_IFS
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10030 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 break 2
10034 done
10035 done
10036 IFS=$as_save_IFS
10040 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10041 if test -n "$CC_FOR_TARGET"; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10043 $as_echo "$CC_FOR_TARGET" >&6; }
10044 else
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10051 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10052 done
10055 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10056 set dummy cc gcc
10057 if test $build = $target ; then
10058 CC_FOR_TARGET="$2"
10059 else
10060 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10062 else
10063 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10068 if test -n "$CXX_FOR_TARGET"; then
10069 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10070 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10071 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10074 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10075 for ncn_progname in c++ g++ cxx gxx; do
10076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10077 set dummy ${ncn_progname}; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 if test -n "$CXX_FOR_TARGET"; then
10084 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10085 else
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10093 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 break 2
10097 done
10098 done
10099 IFS=$as_save_IFS
10103 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10104 if test -n "$CXX_FOR_TARGET"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10106 $as_echo "$CXX_FOR_TARGET" >&6; }
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10113 done
10116 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10117 for ncn_progname in c++ g++ cxx gxx; do
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10119 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10120 if test -x $with_build_time_tools/${ncn_progname}; then
10121 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10123 $as_echo "yes" >&6; }
10124 break
10125 else
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10129 done
10132 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10133 for ncn_progname in c++ g++ cxx gxx; do
10134 if test -n "$ncn_target_tool_prefix"; then
10135 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10136 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10140 $as_echo_n "(cached) " >&6
10141 else
10142 if test -n "$CXX_FOR_TARGET"; then
10143 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10144 else
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10152 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10156 done
10157 done
10158 IFS=$as_save_IFS
10162 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10163 if test -n "$CXX_FOR_TARGET"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10165 $as_echo "$CXX_FOR_TARGET" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10173 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10175 set dummy ${ncn_progname}; ac_word=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 if test -n "$CXX_FOR_TARGET"; then
10182 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10183 else
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10191 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10195 done
10196 done
10197 IFS=$as_save_IFS
10201 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10202 if test -n "$CXX_FOR_TARGET"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10204 $as_echo "$CXX_FOR_TARGET" >&6; }
10205 else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10212 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10213 done
10216 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10217 set dummy c++ g++ cxx gxx
10218 if test $build = $target ; then
10219 CXX_FOR_TARGET="$2"
10220 else
10221 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10223 else
10224 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10229 if test -n "$GCC_FOR_TARGET"; then
10230 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10231 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10232 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10235 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10236 for ncn_progname in gcc; do
10237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10238 set dummy ${ncn_progname}; ac_word=$2
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240 $as_echo_n "checking for $ac_word... " >&6; }
10241 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 if test -n "$GCC_FOR_TARGET"; then
10245 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10246 else
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10250 IFS=$as_save_IFS
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10256 break 2
10258 done
10259 done
10260 IFS=$as_save_IFS
10264 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10265 if test -n "$GCC_FOR_TARGET"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10267 $as_echo "$GCC_FOR_TARGET" >&6; }
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10274 done
10277 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10278 for ncn_progname in gcc; do
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10280 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10281 if test -x $with_build_time_tools/${ncn_progname}; then
10282 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10284 $as_echo "yes" >&6; }
10285 break
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10290 done
10293 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10294 for ncn_progname in gcc; do
10295 if test -n "$ncn_target_tool_prefix"; then
10296 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10297 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 if test -n "$GCC_FOR_TARGET"; then
10304 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10313 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10317 done
10318 done
10319 IFS=$as_save_IFS
10323 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10324 if test -n "$GCC_FOR_TARGET"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10326 $as_echo "$GCC_FOR_TARGET" >&6; }
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10334 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10336 set dummy ${ncn_progname}; ac_word=$2
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338 $as_echo_n "checking for $ac_word... " >&6; }
10339 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10340 $as_echo_n "(cached) " >&6
10341 else
10342 if test -n "$GCC_FOR_TARGET"; then
10343 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10344 else
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10352 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10356 done
10357 done
10358 IFS=$as_save_IFS
10362 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10363 if test -n "$GCC_FOR_TARGET"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10365 $as_echo "$GCC_FOR_TARGET" >&6; }
10366 else
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368 $as_echo "no" >&6; }
10373 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10374 done
10377 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10378 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10379 else
10380 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10385 if test -n "$GFORTRAN_FOR_TARGET"; then
10386 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10387 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10388 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10391 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10392 for ncn_progname in gfortran; do
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_GFORTRAN_FOR_TARGET+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 if test -n "$GFORTRAN_FOR_TARGET"; then
10401 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_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 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10421 if test -n "$GFORTRAN_FOR_TARGET"; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10423 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10424 else
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }
10430 done
10433 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10434 for ncn_progname in gfortran; do
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10436 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10437 if test -x $with_build_time_tools/${ncn_progname}; then
10438 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10440 $as_echo "yes" >&6; }
10441 break
10442 else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10446 done
10449 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10450 for ncn_progname in gfortran; do
10451 if test -n "$ncn_target_tool_prefix"; then
10452 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10453 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 $as_echo_n "checking for $ac_word... " >&6; }
10456 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 if test -n "$GFORTRAN_FOR_TARGET"; then
10460 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10461 else
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463 for as_dir in $PATH
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 break 2
10473 done
10474 done
10475 IFS=$as_save_IFS
10479 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10480 if test -n "$GFORTRAN_FOR_TARGET"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10482 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10483 else
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 $as_echo "no" >&6; }
10490 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10492 set dummy ${ncn_progname}; ac_word=$2
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494 $as_echo_n "checking for $ac_word... " >&6; }
10495 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 if test -n "$GFORTRAN_FOR_TARGET"; then
10499 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10500 else
10501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10508 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10512 done
10513 done
10514 IFS=$as_save_IFS
10518 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10519 if test -n "$GFORTRAN_FOR_TARGET"; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10521 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10522 else
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524 $as_echo "no" >&6; }
10529 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10530 done
10533 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10534 set dummy gfortran
10535 if test $build = $target ; then
10536 GFORTRAN_FOR_TARGET="$2"
10537 else
10538 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10540 else
10541 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10546 if test -n "$GOC_FOR_TARGET"; then
10547 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10548 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10549 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10552 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10553 for ncn_progname in gccgo; do
10554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10555 set dummy ${ncn_progname}; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 if test -n "$GOC_FOR_TARGET"; then
10562 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10563 else
10564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10565 for as_dir in $PATH
10567 IFS=$as_save_IFS
10568 test -z "$as_dir" && as_dir=.
10569 for ac_exec_ext in '' $ac_executable_extensions; do
10570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10571 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10573 break 2
10575 done
10576 done
10577 IFS=$as_save_IFS
10581 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10582 if test -n "$GOC_FOR_TARGET"; then
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10584 $as_echo "$GOC_FOR_TARGET" >&6; }
10585 else
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10587 $as_echo "no" >&6; }
10591 done
10594 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10595 for ncn_progname in gccgo; do
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10597 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10598 if test -x $with_build_time_tools/${ncn_progname}; then
10599 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10601 $as_echo "yes" >&6; }
10602 break
10603 else
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10607 done
10610 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10611 for ncn_progname in gccgo; do
10612 if test -n "$ncn_target_tool_prefix"; then
10613 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10614 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10618 $as_echo_n "(cached) " >&6
10619 else
10620 if test -n "$GOC_FOR_TARGET"; then
10621 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10622 else
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10626 IFS=$as_save_IFS
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10632 break 2
10634 done
10635 done
10636 IFS=$as_save_IFS
10640 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10641 if test -n "$GOC_FOR_TARGET"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10643 $as_echo "$GOC_FOR_TARGET" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10651 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10653 set dummy ${ncn_progname}; ac_word=$2
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10655 $as_echo_n "checking for $ac_word... " >&6; }
10656 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 if test -n "$GOC_FOR_TARGET"; then
10660 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10661 else
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10665 IFS=$as_save_IFS
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10669 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10671 break 2
10673 done
10674 done
10675 IFS=$as_save_IFS
10679 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10680 if test -n "$GOC_FOR_TARGET"; then
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10682 $as_echo "$GOC_FOR_TARGET" >&6; }
10683 else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10690 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10691 done
10694 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10695 set dummy gccgo
10696 if test $build = $target ; then
10697 GOC_FOR_TARGET="$2"
10698 else
10699 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10701 else
10702 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10707 cat > conftest.c << \EOF
10708 #ifdef __GNUC__
10709 gcc_yay;
10710 #endif
10712 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10713 have_gcc_for_target=yes
10714 else
10715 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10716 have_gcc_for_target=no
10718 rm conftest.c
10723 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10724 if test -n "$with_build_time_tools"; then
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10726 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10727 if test -x $with_build_time_tools/ar; then
10728 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10729 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10731 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10736 elif test $build != $host && test $have_gcc_for_target = yes; then
10737 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10738 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10739 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10742 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10743 # Extract the first word of "ar", so it can be a program name with args.
10744 set dummy ar; ac_word=$2
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746 $as_echo_n "checking for $ac_word... " >&6; }
10747 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 case $AR_FOR_TARGET in
10751 [\\/]* | ?:[\\/]*)
10752 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $gcc_cv_tool_dirs
10758 IFS=$as_save_IFS
10759 test -z "$as_dir" && as_dir=.
10760 for ac_exec_ext in '' $ac_executable_extensions; do
10761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10762 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 break 2
10766 done
10767 done
10768 IFS=$as_save_IFS
10771 esac
10773 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10774 if test -n "$AR_FOR_TARGET"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10776 $as_echo "$AR_FOR_TARGET" >&6; }
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10784 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10787 if test -n "$AR_FOR_TARGET"; then
10788 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10789 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10790 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10793 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10794 for ncn_progname in ar; do
10795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10796 set dummy ${ncn_progname}; ac_word=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 if test -n "$AR_FOR_TARGET"; then
10803 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10804 else
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10816 done
10817 done
10818 IFS=$as_save_IFS
10822 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10823 if test -n "$AR_FOR_TARGET"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10825 $as_echo "$AR_FOR_TARGET" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10832 done
10835 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10836 for ncn_progname in ar; do
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10838 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10839 if test -x $with_build_time_tools/${ncn_progname}; then
10840 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10842 $as_echo "yes" >&6; }
10843 break
10844 else
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846 $as_echo "no" >&6; }
10848 done
10851 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10852 for ncn_progname in ar; do
10853 if test -n "$ncn_target_tool_prefix"; then
10854 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10855 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10857 $as_echo_n "checking for $ac_word... " >&6; }
10858 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 if test -n "$AR_FOR_TARGET"; then
10862 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10863 else
10864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10865 for as_dir in $PATH
10867 IFS=$as_save_IFS
10868 test -z "$as_dir" && as_dir=.
10869 for ac_exec_ext in '' $ac_executable_extensions; do
10870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10871 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10873 break 2
10875 done
10876 done
10877 IFS=$as_save_IFS
10881 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10882 if test -n "$AR_FOR_TARGET"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10884 $as_echo "$AR_FOR_TARGET" >&6; }
10885 else
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10887 $as_echo "no" >&6; }
10892 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10894 set dummy ${ncn_progname}; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 if test -n "$AR_FOR_TARGET"; then
10901 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10902 else
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10906 IFS=$as_save_IFS
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10910 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10912 break 2
10914 done
10915 done
10916 IFS=$as_save_IFS
10920 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10921 if test -n "$AR_FOR_TARGET"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10923 $as_echo "$AR_FOR_TARGET" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10931 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10932 done
10935 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10936 set dummy ar
10937 if test $build = $target ; then
10938 AR_FOR_TARGET="$2"
10939 else
10940 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10942 else
10943 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10946 else
10947 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10953 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10954 if test -n "$with_build_time_tools"; then
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10956 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10957 if test -x $with_build_time_tools/as; then
10958 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10959 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10961 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10964 $as_echo "no" >&6; }
10966 elif test $build != $host && test $have_gcc_for_target = yes; then
10967 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10968 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10969 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10972 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10973 # Extract the first word of "as", so it can be a program name with args.
10974 set dummy as; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 case $AS_FOR_TARGET in
10981 [\\/]* | ?:[\\/]*)
10982 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $gcc_cv_tool_dirs
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10992 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10996 done
10997 done
10998 IFS=$as_save_IFS
11001 esac
11003 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11004 if test -n "$AS_FOR_TARGET"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11006 $as_echo "$AS_FOR_TARGET" >&6; }
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11014 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11017 if test -n "$AS_FOR_TARGET"; then
11018 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11019 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11020 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11023 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11024 for ncn_progname in as; do
11025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11026 set dummy ${ncn_progname}; ac_word=$2
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028 $as_echo_n "checking for $ac_word... " >&6; }
11029 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 if test -n "$AS_FOR_TARGET"; then
11033 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11034 else
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11038 IFS=$as_save_IFS
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044 break 2
11046 done
11047 done
11048 IFS=$as_save_IFS
11052 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11053 if test -n "$AS_FOR_TARGET"; then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11055 $as_echo "$AS_FOR_TARGET" >&6; }
11056 else
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11062 done
11065 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11066 for ncn_progname in as; do
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11068 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11069 if test -x $with_build_time_tools/${ncn_progname}; then
11070 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11072 $as_echo "yes" >&6; }
11073 break
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11078 done
11081 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11082 for ncn_progname in as; do
11083 if test -n "$ncn_target_tool_prefix"; then
11084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087 $as_echo_n "checking for $ac_word... " >&6; }
11088 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 if test -n "$AS_FOR_TARGET"; then
11092 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11093 else
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11097 IFS=$as_save_IFS
11098 test -z "$as_dir" && as_dir=.
11099 for ac_exec_ext in '' $ac_executable_extensions; do
11100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11101 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11103 break 2
11105 done
11106 done
11107 IFS=$as_save_IFS
11111 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11112 if test -n "$AS_FOR_TARGET"; then
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11114 $as_echo "$AS_FOR_TARGET" >&6; }
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11122 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11124 set dummy ${ncn_progname}; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 if test -n "$AS_FOR_TARGET"; then
11131 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11132 else
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
11138 for ac_exec_ext in '' $ac_executable_extensions; do
11139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142 break 2
11144 done
11145 done
11146 IFS=$as_save_IFS
11150 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11151 if test -n "$AS_FOR_TARGET"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11153 $as_echo "$AS_FOR_TARGET" >&6; }
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11161 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11162 done
11165 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11166 set dummy as
11167 if test $build = $target ; then
11168 AS_FOR_TARGET="$2"
11169 else
11170 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11172 else
11173 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11176 else
11177 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11183 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11184 if test -n "$with_build_time_tools"; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11186 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11187 if test -x $with_build_time_tools/dlltool; then
11188 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11189 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11191 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; }
11196 elif test $build != $host && test $have_gcc_for_target = yes; then
11197 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11198 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11199 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11202 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11203 # Extract the first word of "dlltool", so it can be a program name with args.
11204 set dummy dlltool; ac_word=$2
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11206 $as_echo_n "checking for $ac_word... " >&6; }
11207 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 case $DLLTOOL_FOR_TARGET in
11211 [\\/]* | ?:[\\/]*)
11212 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216 for as_dir in $gcc_cv_tool_dirs
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11222 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11226 done
11227 done
11228 IFS=$as_save_IFS
11231 esac
11233 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11234 if test -n "$DLLTOOL_FOR_TARGET"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11236 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11237 else
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11244 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11247 if test -n "$DLLTOOL_FOR_TARGET"; then
11248 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11249 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11250 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11253 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11254 for ncn_progname in dlltool; do
11255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11256 set dummy ${ncn_progname}; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 if test -n "$DLLTOOL_FOR_TARGET"; then
11263 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11268 IFS=$as_save_IFS
11269 test -z "$as_dir" && as_dir=.
11270 for ac_exec_ext in '' $ac_executable_extensions; do
11271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11272 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274 break 2
11276 done
11277 done
11278 IFS=$as_save_IFS
11282 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11283 if test -n "$DLLTOOL_FOR_TARGET"; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11285 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11286 else
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11292 done
11295 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11296 for ncn_progname in dlltool; do
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11298 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11299 if test -x $with_build_time_tools/${ncn_progname}; then
11300 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11303 break
11304 else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11308 done
11311 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11312 for ncn_progname in dlltool; do
11313 if test -n "$ncn_target_tool_prefix"; then
11314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11315 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 if test -n "$DLLTOOL_FOR_TARGET"; then
11322 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11323 else
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11335 done
11336 done
11337 IFS=$as_save_IFS
11341 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11342 if test -n "$DLLTOOL_FOR_TARGET"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11344 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11352 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354 set dummy ${ncn_progname}; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 if test -n "$DLLTOOL_FOR_TARGET"; then
11361 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11362 else
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11366 IFS=$as_save_IFS
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11370 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11372 break 2
11374 done
11375 done
11376 IFS=$as_save_IFS
11380 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11381 if test -n "$DLLTOOL_FOR_TARGET"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11383 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11391 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11392 done
11395 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11396 set dummy dlltool
11397 if test $build = $target ; then
11398 DLLTOOL_FOR_TARGET="$2"
11399 else
11400 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11402 else
11403 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11406 else
11407 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11413 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11414 if test -n "$with_build_time_tools"; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11416 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11417 if test -x $with_build_time_tools/ld; then
11418 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11419 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11421 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11422 else
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11424 $as_echo "no" >&6; }
11426 elif test $build != $host && test $have_gcc_for_target = yes; then
11427 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11428 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11429 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11432 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11433 # Extract the first word of "ld", so it can be a program name with args.
11434 set dummy ld; ac_word=$2
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11436 $as_echo_n "checking for $ac_word... " >&6; }
11437 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 case $LD_FOR_TARGET in
11441 [\\/]* | ?:[\\/]*)
11442 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $gcc_cv_tool_dirs
11448 IFS=$as_save_IFS
11449 test -z "$as_dir" && as_dir=.
11450 for ac_exec_ext in '' $ac_executable_extensions; do
11451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11452 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454 break 2
11456 done
11457 done
11458 IFS=$as_save_IFS
11461 esac
11463 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11464 if test -n "$LD_FOR_TARGET"; then
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11466 $as_echo "$LD_FOR_TARGET" >&6; }
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11469 $as_echo "no" >&6; }
11474 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11477 if test -n "$LD_FOR_TARGET"; then
11478 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11479 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11480 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11483 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11484 for ncn_progname in ld; do
11485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11486 set dummy ${ncn_progname}; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 if test -n "$LD_FOR_TARGET"; then
11493 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11494 else
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11506 done
11507 done
11508 IFS=$as_save_IFS
11512 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11513 if test -n "$LD_FOR_TARGET"; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11515 $as_echo "$LD_FOR_TARGET" >&6; }
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11522 done
11525 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11526 for ncn_progname in ld; do
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11528 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11529 if test -x $with_build_time_tools/${ncn_progname}; then
11530 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11532 $as_echo "yes" >&6; }
11533 break
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11538 done
11541 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11542 for ncn_progname in ld; do
11543 if test -n "$ncn_target_tool_prefix"; then
11544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 if test -n "$LD_FOR_TARGET"; then
11552 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11553 else
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11561 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11565 done
11566 done
11567 IFS=$as_save_IFS
11571 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11572 if test -n "$LD_FOR_TARGET"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11574 $as_echo "$LD_FOR_TARGET" >&6; }
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11582 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11584 set dummy ${ncn_progname}; ac_word=$2
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11586 $as_echo_n "checking for $ac_word... " >&6; }
11587 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 if test -n "$LD_FOR_TARGET"; then
11591 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11592 else
11593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594 for as_dir in $PATH
11596 IFS=$as_save_IFS
11597 test -z "$as_dir" && as_dir=.
11598 for ac_exec_ext in '' $ac_executable_extensions; do
11599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11600 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 break 2
11604 done
11605 done
11606 IFS=$as_save_IFS
11610 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11611 if test -n "$LD_FOR_TARGET"; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11613 $as_echo "$LD_FOR_TARGET" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11621 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11622 done
11625 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11626 set dummy ld
11627 if test $build = $target ; then
11628 LD_FOR_TARGET="$2"
11629 else
11630 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11632 else
11633 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11636 else
11637 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11643 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11644 if test -n "$with_build_time_tools"; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11646 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11647 if test -x $with_build_time_tools/lipo; then
11648 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11649 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11651 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11656 elif test $build != $host && test $have_gcc_for_target = yes; then
11657 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11658 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11659 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11662 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11663 # Extract the first word of "lipo", so it can be a program name with args.
11664 set dummy lipo; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 case $LIPO_FOR_TARGET in
11671 [\\/]* | ?:[\\/]*)
11672 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $gcc_cv_tool_dirs
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684 break 2
11686 done
11687 done
11688 IFS=$as_save_IFS
11691 esac
11693 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11694 if test -n "$LIPO_FOR_TARGET"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11696 $as_echo "$LIPO_FOR_TARGET" >&6; }
11697 else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11704 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11707 if test -n "$LIPO_FOR_TARGET"; then
11708 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11709 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11710 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11713 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11714 for ncn_progname in lipo; do
11715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11716 set dummy ${ncn_progname}; ac_word=$2
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 $as_echo_n "checking for $ac_word... " >&6; }
11719 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 if test -n "$LIPO_FOR_TARGET"; then
11723 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11724 else
11725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11726 for as_dir in $PATH
11728 IFS=$as_save_IFS
11729 test -z "$as_dir" && as_dir=.
11730 for ac_exec_ext in '' $ac_executable_extensions; do
11731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11732 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 break 2
11736 done
11737 done
11738 IFS=$as_save_IFS
11742 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11743 if test -n "$LIPO_FOR_TARGET"; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11745 $as_echo "$LIPO_FOR_TARGET" >&6; }
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11748 $as_echo "no" >&6; }
11752 done
11755 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11756 for ncn_progname in lipo; do
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11758 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11759 if test -x $with_build_time_tools/${ncn_progname}; then
11760 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 $as_echo "yes" >&6; }
11763 break
11764 else
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11768 done
11771 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11772 for ncn_progname in lipo; do
11773 if test -n "$ncn_target_tool_prefix"; then
11774 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11775 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11777 $as_echo_n "checking for $ac_word... " >&6; }
11778 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11779 $as_echo_n "(cached) " >&6
11780 else
11781 if test -n "$LIPO_FOR_TARGET"; then
11782 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11783 else
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11791 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11795 done
11796 done
11797 IFS=$as_save_IFS
11801 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11802 if test -n "$LIPO_FOR_TARGET"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11804 $as_echo "$LIPO_FOR_TARGET" >&6; }
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11812 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11814 set dummy ${ncn_progname}; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 if test -n "$LIPO_FOR_TARGET"; then
11821 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11822 else
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11826 IFS=$as_save_IFS
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11830 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 break 2
11834 done
11835 done
11836 IFS=$as_save_IFS
11840 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11841 if test -n "$LIPO_FOR_TARGET"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11843 $as_echo "$LIPO_FOR_TARGET" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11851 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11852 done
11855 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11856 set dummy lipo
11857 if test $build = $target ; then
11858 LIPO_FOR_TARGET="$2"
11859 else
11860 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11862 else
11863 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11866 else
11867 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11873 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11874 if test -n "$with_build_time_tools"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11876 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11877 if test -x $with_build_time_tools/nm; then
11878 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11879 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11881 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11886 elif test $build != $host && test $have_gcc_for_target = yes; then
11887 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11888 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11889 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11892 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11893 # Extract the first word of "nm", so it can be a program name with args.
11894 set dummy nm; ac_word=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 case $NM_FOR_TARGET in
11901 [\\/]* | ?:[\\/]*)
11902 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $gcc_cv_tool_dirs
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11921 esac
11923 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11924 if test -n "$NM_FOR_TARGET"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11926 $as_echo "$NM_FOR_TARGET" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11934 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11937 if test -n "$NM_FOR_TARGET"; then
11938 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11939 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11940 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11943 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11944 for ncn_progname in nm; do
11945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11946 set dummy ${ncn_progname}; ac_word=$2
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11948 $as_echo_n "checking for $ac_word... " >&6; }
11949 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if test -n "$NM_FOR_TARGET"; then
11953 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11954 else
11955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956 for as_dir in $PATH
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11966 done
11967 done
11968 IFS=$as_save_IFS
11972 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11973 if test -n "$NM_FOR_TARGET"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11975 $as_echo "$NM_FOR_TARGET" >&6; }
11976 else
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11982 done
11985 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11986 for ncn_progname in nm; do
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11988 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11989 if test -x $with_build_time_tools/${ncn_progname}; then
11990 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; }
11993 break
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
11998 done
12001 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12002 for ncn_progname in nm; do
12003 if test -n "$ncn_target_tool_prefix"; then
12004 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12005 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12007 $as_echo_n "checking for $ac_word... " >&6; }
12008 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 if test -n "$NM_FOR_TARGET"; then
12012 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12013 else
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12017 IFS=$as_save_IFS
12018 test -z "$as_dir" && as_dir=.
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12021 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 break 2
12025 done
12026 done
12027 IFS=$as_save_IFS
12031 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12032 if test -n "$NM_FOR_TARGET"; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12034 $as_echo "$NM_FOR_TARGET" >&6; }
12035 else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037 $as_echo "no" >&6; }
12042 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12044 set dummy ${ncn_progname}; ac_word=$2
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12046 $as_echo_n "checking for $ac_word... " >&6; }
12047 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12048 $as_echo_n "(cached) " >&6
12049 else
12050 if test -n "$NM_FOR_TARGET"; then
12051 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12052 else
12053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12054 for as_dir in $PATH
12056 IFS=$as_save_IFS
12057 test -z "$as_dir" && as_dir=.
12058 for ac_exec_ext in '' $ac_executable_extensions; do
12059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12060 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12062 break 2
12064 done
12065 done
12066 IFS=$as_save_IFS
12070 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12071 if test -n "$NM_FOR_TARGET"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12073 $as_echo "$NM_FOR_TARGET" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12081 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12082 done
12085 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12086 set dummy nm
12087 if test $build = $target ; then
12088 NM_FOR_TARGET="$2"
12089 else
12090 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12092 else
12093 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12096 else
12097 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12103 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12104 if test -n "$with_build_time_tools"; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12106 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12107 if test -x $with_build_time_tools/objcopy; then
12108 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12109 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12111 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12116 elif test $build != $host && test $have_gcc_for_target = yes; then
12117 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12118 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12119 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12122 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12123 # Extract the first word of "objcopy", so it can be a program name with args.
12124 set dummy objcopy; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 case $OBJCOPY_FOR_TARGET in
12131 [\\/]* | ?:[\\/]*)
12132 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $gcc_cv_tool_dirs
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12146 done
12147 done
12148 IFS=$as_save_IFS
12151 esac
12153 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12154 if test -n "$OBJCOPY_FOR_TARGET"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12156 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12164 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12167 if test -n "$OBJCOPY_FOR_TARGET"; then
12168 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12169 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12170 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12173 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12174 for ncn_progname in objcopy; do
12175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12176 set dummy ${ncn_progname}; ac_word=$2
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12178 $as_echo_n "checking for $ac_word... " >&6; }
12179 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 if test -n "$OBJCOPY_FOR_TARGET"; then
12183 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12184 else
12185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12186 for as_dir in $PATH
12188 IFS=$as_save_IFS
12189 test -z "$as_dir" && as_dir=.
12190 for ac_exec_ext in '' $ac_executable_extensions; do
12191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12192 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12194 break 2
12196 done
12197 done
12198 IFS=$as_save_IFS
12202 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12203 if test -n "$OBJCOPY_FOR_TARGET"; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12205 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12206 else
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 $as_echo "no" >&6; }
12212 done
12215 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12216 for ncn_progname in objcopy; do
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12218 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12219 if test -x $with_build_time_tools/${ncn_progname}; then
12220 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12222 $as_echo "yes" >&6; }
12223 break
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12228 done
12231 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12232 for ncn_progname in objcopy; do
12233 if test -n "$ncn_target_tool_prefix"; then
12234 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12235 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 if test -n "$OBJCOPY_FOR_TARGET"; then
12242 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12243 else
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12251 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 break 2
12255 done
12256 done
12257 IFS=$as_save_IFS
12261 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12262 if test -n "$OBJCOPY_FOR_TARGET"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12264 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12272 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12273 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12274 set dummy ${ncn_progname}; ac_word=$2
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276 $as_echo_n "checking for $ac_word... " >&6; }
12277 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12279 else
12280 if test -n "$OBJCOPY_FOR_TARGET"; then
12281 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12282 else
12283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12290 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 break 2
12294 done
12295 done
12296 IFS=$as_save_IFS
12300 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12301 if test -n "$OBJCOPY_FOR_TARGET"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12303 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12311 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12312 done
12315 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12316 set dummy objcopy
12317 if test $build = $target ; then
12318 OBJCOPY_FOR_TARGET="$2"
12319 else
12320 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12322 else
12323 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12326 else
12327 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12333 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12334 if test -n "$with_build_time_tools"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12336 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12337 if test -x $with_build_time_tools/objdump; then
12338 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12339 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12341 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12342 else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12346 elif test $build != $host && test $have_gcc_for_target = yes; then
12347 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12348 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12349 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12352 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12353 # Extract the first word of "objdump", so it can be a program name with args.
12354 set dummy objdump; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 case $OBJDUMP_FOR_TARGET in
12361 [\\/]* | ?:[\\/]*)
12362 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $gcc_cv_tool_dirs
12368 IFS=$as_save_IFS
12369 test -z "$as_dir" && as_dir=.
12370 for ac_exec_ext in '' $ac_executable_extensions; do
12371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12372 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12374 break 2
12376 done
12377 done
12378 IFS=$as_save_IFS
12381 esac
12383 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12384 if test -n "$OBJDUMP_FOR_TARGET"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12386 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12394 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12397 if test -n "$OBJDUMP_FOR_TARGET"; then
12398 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12399 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12400 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12403 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12404 for ncn_progname in objdump; do
12405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12406 set dummy ${ncn_progname}; ac_word=$2
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12408 $as_echo_n "checking for $ac_word... " >&6; }
12409 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12411 else
12412 if test -n "$OBJDUMP_FOR_TARGET"; then
12413 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12414 else
12415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12416 for as_dir in $PATH
12418 IFS=$as_save_IFS
12419 test -z "$as_dir" && as_dir=.
12420 for ac_exec_ext in '' $ac_executable_extensions; do
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12424 break 2
12426 done
12427 done
12428 IFS=$as_save_IFS
12432 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12433 if test -n "$OBJDUMP_FOR_TARGET"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12435 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12442 done
12445 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12446 for ncn_progname in objdump; do
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12448 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12449 if test -x $with_build_time_tools/${ncn_progname}; then
12450 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12452 $as_echo "yes" >&6; }
12453 break
12454 else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456 $as_echo "no" >&6; }
12458 done
12461 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12462 for ncn_progname in objdump; do
12463 if test -n "$ncn_target_tool_prefix"; then
12464 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12465 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 if test -n "$OBJDUMP_FOR_TARGET"; then
12472 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12473 else
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12481 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 break 2
12485 done
12486 done
12487 IFS=$as_save_IFS
12491 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12492 if test -n "$OBJDUMP_FOR_TARGET"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12494 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12502 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12504 set dummy ${ncn_progname}; ac_word=$2
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506 $as_echo_n "checking for $ac_word... " >&6; }
12507 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 if test -n "$OBJDUMP_FOR_TARGET"; then
12511 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12512 else
12513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 for as_dir in $PATH
12516 IFS=$as_save_IFS
12517 test -z "$as_dir" && as_dir=.
12518 for ac_exec_ext in '' $ac_executable_extensions; do
12519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12520 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12522 break 2
12524 done
12525 done
12526 IFS=$as_save_IFS
12530 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12531 if test -n "$OBJDUMP_FOR_TARGET"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12533 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12541 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12542 done
12545 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12546 set dummy objdump
12547 if test $build = $target ; then
12548 OBJDUMP_FOR_TARGET="$2"
12549 else
12550 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12552 else
12553 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12556 else
12557 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12563 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12564 if test -n "$with_build_time_tools"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12566 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12567 if test -x $with_build_time_tools/ranlib; then
12568 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12569 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12571 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12572 else
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12576 elif test $build != $host && test $have_gcc_for_target = yes; then
12577 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12578 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12579 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12582 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12583 # Extract the first word of "ranlib", so it can be a program name with args.
12584 set dummy ranlib; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 case $RANLIB_FOR_TARGET in
12591 [\\/]* | ?:[\\/]*)
12592 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $gcc_cv_tool_dirs
12598 IFS=$as_save_IFS
12599 test -z "$as_dir" && as_dir=.
12600 for ac_exec_ext in '' $ac_executable_extensions; do
12601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12602 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604 break 2
12606 done
12607 done
12608 IFS=$as_save_IFS
12611 esac
12613 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12614 if test -n "$RANLIB_FOR_TARGET"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12616 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12624 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12627 if test -n "$RANLIB_FOR_TARGET"; then
12628 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12629 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12630 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12633 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12634 for ncn_progname in ranlib; do
12635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12636 set dummy ${ncn_progname}; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 if test -n "$RANLIB_FOR_TARGET"; then
12643 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12644 else
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12656 done
12657 done
12658 IFS=$as_save_IFS
12662 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12663 if test -n "$RANLIB_FOR_TARGET"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12665 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12666 else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12672 done
12675 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12676 for ncn_progname in ranlib; do
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12678 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12679 if test -x $with_build_time_tools/${ncn_progname}; then
12680 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12682 $as_echo "yes" >&6; }
12683 break
12684 else
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12688 done
12691 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12692 for ncn_progname in ranlib; do
12693 if test -n "$ncn_target_tool_prefix"; then
12694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12695 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697 $as_echo_n "checking for $ac_word... " >&6; }
12698 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 if test -n "$RANLIB_FOR_TARGET"; then
12702 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12703 else
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12707 IFS=$as_save_IFS
12708 test -z "$as_dir" && as_dir=.
12709 for ac_exec_ext in '' $ac_executable_extensions; do
12710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12711 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713 break 2
12715 done
12716 done
12717 IFS=$as_save_IFS
12721 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12722 if test -n "$RANLIB_FOR_TARGET"; then
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12724 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12732 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12734 set dummy ${ncn_progname}; ac_word=$2
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12736 $as_echo_n "checking for $ac_word... " >&6; }
12737 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 if test -n "$RANLIB_FOR_TARGET"; then
12741 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12742 else
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12746 IFS=$as_save_IFS
12747 test -z "$as_dir" && as_dir=.
12748 for ac_exec_ext in '' $ac_executable_extensions; do
12749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12750 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12752 break 2
12754 done
12755 done
12756 IFS=$as_save_IFS
12760 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12761 if test -n "$RANLIB_FOR_TARGET"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12763 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12771 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12772 done
12775 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12776 set dummy ranlib
12777 if test $build = $target ; then
12778 RANLIB_FOR_TARGET="$2"
12779 else
12780 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12782 else
12783 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12786 else
12787 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12793 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12794 if test -n "$with_build_time_tools"; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12796 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12797 if test -x $with_build_time_tools/readelf; then
12798 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12799 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12801 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12802 else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12806 elif test $build != $host && test $have_gcc_for_target = yes; then
12807 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12808 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12809 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12812 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12813 # Extract the first word of "readelf", so it can be a program name with args.
12814 set dummy readelf; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12816 $as_echo_n "checking for $ac_word... " >&6; }
12817 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 case $READELF_FOR_TARGET in
12821 [\\/]* | ?:[\\/]*)
12822 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $gcc_cv_tool_dirs
12828 IFS=$as_save_IFS
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12832 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12834 break 2
12836 done
12837 done
12838 IFS=$as_save_IFS
12841 esac
12843 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12844 if test -n "$READELF_FOR_TARGET"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12846 $as_echo "$READELF_FOR_TARGET" >&6; }
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12854 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12857 if test -n "$READELF_FOR_TARGET"; then
12858 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12859 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12860 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12863 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12864 for ncn_progname in readelf; do
12865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12866 set dummy ${ncn_progname}; ac_word=$2
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12868 $as_echo_n "checking for $ac_word... " >&6; }
12869 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12870 $as_echo_n "(cached) " >&6
12871 else
12872 if test -n "$READELF_FOR_TARGET"; then
12873 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12874 else
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876 for as_dir in $PATH
12878 IFS=$as_save_IFS
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12882 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 break 2
12886 done
12887 done
12888 IFS=$as_save_IFS
12892 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12893 if test -n "$READELF_FOR_TARGET"; then
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12895 $as_echo "$READELF_FOR_TARGET" >&6; }
12896 else
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898 $as_echo "no" >&6; }
12902 done
12905 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12906 for ncn_progname in readelf; do
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12908 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12909 if test -x $with_build_time_tools/${ncn_progname}; then
12910 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12912 $as_echo "yes" >&6; }
12913 break
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12918 done
12921 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12922 for ncn_progname in readelf; do
12923 if test -n "$ncn_target_tool_prefix"; then
12924 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12925 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 if test -n "$READELF_FOR_TARGET"; then
12932 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12933 else
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12937 IFS=$as_save_IFS
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12941 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 break 2
12945 done
12946 done
12947 IFS=$as_save_IFS
12951 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12952 if test -n "$READELF_FOR_TARGET"; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12954 $as_echo "$READELF_FOR_TARGET" >&6; }
12955 else
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12962 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12964 set dummy ${ncn_progname}; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 if test -n "$READELF_FOR_TARGET"; then
12971 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12972 else
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12976 IFS=$as_save_IFS
12977 test -z "$as_dir" && as_dir=.
12978 for ac_exec_ext in '' $ac_executable_extensions; do
12979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12980 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982 break 2
12984 done
12985 done
12986 IFS=$as_save_IFS
12990 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12991 if test -n "$READELF_FOR_TARGET"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12993 $as_echo "$READELF_FOR_TARGET" >&6; }
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
13001 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13002 done
13005 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13006 set dummy readelf
13007 if test $build = $target ; then
13008 READELF_FOR_TARGET="$2"
13009 else
13010 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13012 else
13013 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13016 else
13017 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13023 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13024 if test -n "$with_build_time_tools"; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13026 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13027 if test -x $with_build_time_tools/strip; then
13028 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13029 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13031 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13036 elif test $build != $host && test $have_gcc_for_target = yes; then
13037 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13038 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13039 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13042 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13043 # Extract the first word of "strip", so it can be a program name with args.
13044 set dummy strip; ac_word=$2
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046 $as_echo_n "checking for $ac_word... " >&6; }
13047 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13049 else
13050 case $STRIP_FOR_TARGET in
13051 [\\/]* | ?:[\\/]*)
13052 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $gcc_cv_tool_dirs
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13062 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13066 done
13067 done
13068 IFS=$as_save_IFS
13071 esac
13073 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13074 if test -n "$STRIP_FOR_TARGET"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13076 $as_echo "$STRIP_FOR_TARGET" >&6; }
13077 else
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13084 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13087 if test -n "$STRIP_FOR_TARGET"; then
13088 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13089 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13090 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13093 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13094 for ncn_progname in strip; do
13095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13096 set dummy ${ncn_progname}; ac_word=$2
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13098 $as_echo_n "checking for $ac_word... " >&6; }
13099 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102 if test -n "$STRIP_FOR_TARGET"; then
13103 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13104 else
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13108 IFS=$as_save_IFS
13109 test -z "$as_dir" && as_dir=.
13110 for ac_exec_ext in '' $ac_executable_extensions; do
13111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 break 2
13116 done
13117 done
13118 IFS=$as_save_IFS
13122 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13123 if test -n "$STRIP_FOR_TARGET"; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13125 $as_echo "$STRIP_FOR_TARGET" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13132 done
13135 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13136 for ncn_progname in strip; do
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13138 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13139 if test -x $with_build_time_tools/${ncn_progname}; then
13140 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13142 $as_echo "yes" >&6; }
13143 break
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146 $as_echo "no" >&6; }
13148 done
13151 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13152 for ncn_progname in strip; do
13153 if test -n "$ncn_target_tool_prefix"; then
13154 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13155 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13157 $as_echo_n "checking for $ac_word... " >&6; }
13158 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 if test -n "$STRIP_FOR_TARGET"; then
13162 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13163 else
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13171 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13175 done
13176 done
13177 IFS=$as_save_IFS
13181 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13182 if test -n "$STRIP_FOR_TARGET"; then
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13184 $as_echo "$STRIP_FOR_TARGET" >&6; }
13185 else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13192 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13194 set dummy ${ncn_progname}; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 if test -n "$STRIP_FOR_TARGET"; then
13201 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13202 else
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13206 IFS=$as_save_IFS
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13210 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13212 break 2
13214 done
13215 done
13216 IFS=$as_save_IFS
13220 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13221 if test -n "$STRIP_FOR_TARGET"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13223 $as_echo "$STRIP_FOR_TARGET" >&6; }
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13231 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13232 done
13235 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13236 set dummy strip
13237 if test $build = $target ; then
13238 STRIP_FOR_TARGET="$2"
13239 else
13240 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13242 else
13243 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13246 else
13247 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13253 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13254 if test -n "$with_build_time_tools"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13256 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13257 if test -x $with_build_time_tools/windres; then
13258 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13259 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13261 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13266 elif test $build != $host && test $have_gcc_for_target = yes; then
13267 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13268 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13269 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13272 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13273 # Extract the first word of "windres", so it can be a program name with args.
13274 set dummy windres; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 case $WINDRES_FOR_TARGET in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $gcc_cv_tool_dirs
13288 IFS=$as_save_IFS
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13294 break 2
13296 done
13297 done
13298 IFS=$as_save_IFS
13301 esac
13303 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13304 if test -n "$WINDRES_FOR_TARGET"; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13306 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13307 else
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13314 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13317 if test -n "$WINDRES_FOR_TARGET"; then
13318 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13319 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13320 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13323 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13324 for ncn_progname in windres; do
13325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13326 set dummy ${ncn_progname}; ac_word=$2
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13328 $as_echo_n "checking for $ac_word... " >&6; }
13329 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13331 else
13332 if test -n "$WINDRES_FOR_TARGET"; then
13333 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13334 else
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13342 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 break 2
13346 done
13347 done
13348 IFS=$as_save_IFS
13352 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13353 if test -n "$WINDRES_FOR_TARGET"; then
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13355 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13356 else
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 $as_echo "no" >&6; }
13362 done
13365 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13366 for ncn_progname in windres; do
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13368 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13369 if test -x $with_build_time_tools/${ncn_progname}; then
13370 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13372 $as_echo "yes" >&6; }
13373 break
13374 else
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13376 $as_echo "no" >&6; }
13378 done
13381 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13382 for ncn_progname in windres; do
13383 if test -n "$ncn_target_tool_prefix"; then
13384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13387 $as_echo_n "checking for $ac_word... " >&6; }
13388 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 if test -n "$WINDRES_FOR_TARGET"; then
13392 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13393 else
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13401 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 break 2
13405 done
13406 done
13407 IFS=$as_save_IFS
13411 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13412 if test -n "$WINDRES_FOR_TARGET"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13414 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13422 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13424 set dummy ${ncn_progname}; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13426 $as_echo_n "checking for $ac_word... " >&6; }
13427 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13429 else
13430 if test -n "$WINDRES_FOR_TARGET"; then
13431 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13432 else
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13436 IFS=$as_save_IFS
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13440 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13442 break 2
13444 done
13445 done
13446 IFS=$as_save_IFS
13450 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13451 if test -n "$WINDRES_FOR_TARGET"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13453 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13461 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13462 done
13465 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13466 set dummy windres
13467 if test $build = $target ; then
13468 WINDRES_FOR_TARGET="$2"
13469 else
13470 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13472 else
13473 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13476 else
13477 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13483 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13484 if test -n "$with_build_time_tools"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13486 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13487 if test -x $with_build_time_tools/windmc; then
13488 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13489 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13491 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13496 elif test $build != $host && test $have_gcc_for_target = yes; then
13497 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13498 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13499 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13502 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13503 # Extract the first word of "windmc", so it can be a program name with args.
13504 set dummy windmc; ac_word=$2
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13506 $as_echo_n "checking for $ac_word... " >&6; }
13507 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 case $WINDMC_FOR_TARGET in
13511 [\\/]* | ?:[\\/]*)
13512 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516 for as_dir in $gcc_cv_tool_dirs
13518 IFS=$as_save_IFS
13519 test -z "$as_dir" && as_dir=.
13520 for ac_exec_ext in '' $ac_executable_extensions; do
13521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13522 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524 break 2
13526 done
13527 done
13528 IFS=$as_save_IFS
13531 esac
13533 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13534 if test -n "$WINDMC_FOR_TARGET"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13536 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13537 else
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539 $as_echo "no" >&6; }
13544 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13547 if test -n "$WINDMC_FOR_TARGET"; then
13548 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13549 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13550 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13553 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13554 for ncn_progname in windmc; do
13555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13556 set dummy ${ncn_progname}; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558 $as_echo_n "checking for $ac_word... " >&6; }
13559 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 if test -n "$WINDMC_FOR_TARGET"; then
13563 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13564 else
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13574 break 2
13576 done
13577 done
13578 IFS=$as_save_IFS
13582 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13583 if test -n "$WINDMC_FOR_TARGET"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13585 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13592 done
13595 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13596 for ncn_progname in windmc; do
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13598 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13599 if test -x $with_build_time_tools/${ncn_progname}; then
13600 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602 $as_echo "yes" >&6; }
13603 break
13604 else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606 $as_echo "no" >&6; }
13608 done
13611 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13612 for ncn_progname in windmc; do
13613 if test -n "$ncn_target_tool_prefix"; then
13614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13615 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13620 else
13621 if test -n "$WINDMC_FOR_TARGET"; then
13622 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13623 else
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13633 break 2
13635 done
13636 done
13637 IFS=$as_save_IFS
13641 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13642 if test -n "$WINDMC_FOR_TARGET"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13644 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13652 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13654 set dummy ${ncn_progname}; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 if test -n "$WINDMC_FOR_TARGET"; then
13661 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13662 else
13663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13664 for as_dir in $PATH
13666 IFS=$as_save_IFS
13667 test -z "$as_dir" && as_dir=.
13668 for ac_exec_ext in '' $ac_executable_extensions; do
13669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13670 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13672 break 2
13674 done
13675 done
13676 IFS=$as_save_IFS
13680 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13681 if test -n "$WINDMC_FOR_TARGET"; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13683 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13684 else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13691 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13692 done
13695 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13696 set dummy windmc
13697 if test $build = $target ; then
13698 WINDMC_FOR_TARGET="$2"
13699 else
13700 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13702 else
13703 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13706 else
13707 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13711 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13714 $as_echo_n "checking where to find the target ar... " >&6; }
13715 if test "x${build}" != "x${host}" ; then
13716 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13717 # We already found the complete path
13718 ac_dir=`dirname $AR_FOR_TARGET`
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13720 $as_echo "pre-installed in $ac_dir" >&6; }
13721 else
13722 # Canadian cross, just use what we found
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13724 $as_echo "pre-installed" >&6; }
13726 else
13727 ok=yes
13728 case " ${configdirs} " in
13729 *" binutils "*) ;;
13730 *) ok=no ;;
13731 esac
13733 if test $ok = yes; then
13734 # An in-tree tool is available and we can use it
13735 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13737 $as_echo "just compiled" >&6; }
13738 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13739 # We already found the complete path
13740 ac_dir=`dirname $AR_FOR_TARGET`
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13742 $as_echo "pre-installed in $ac_dir" >&6; }
13743 elif test "x$target" = "x$host"; then
13744 # We can use an host tool
13745 AR_FOR_TARGET='$(AR)'
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13747 $as_echo "host tool" >&6; }
13748 else
13749 # We need a cross tool
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13751 $as_echo "pre-installed" >&6; }
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13756 $as_echo_n "checking where to find the target as... " >&6; }
13757 if test "x${build}" != "x${host}" ; then
13758 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13759 # We already found the complete path
13760 ac_dir=`dirname $AS_FOR_TARGET`
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13762 $as_echo "pre-installed in $ac_dir" >&6; }
13763 else
13764 # Canadian cross, just use what we found
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13766 $as_echo "pre-installed" >&6; }
13768 else
13769 ok=yes
13770 case " ${configdirs} " in
13771 *" gas "*) ;;
13772 *) ok=no ;;
13773 esac
13775 if test $ok = yes; then
13776 # An in-tree tool is available and we can use it
13777 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13779 $as_echo "just compiled" >&6; }
13780 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13781 # We already found the complete path
13782 ac_dir=`dirname $AS_FOR_TARGET`
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13784 $as_echo "pre-installed in $ac_dir" >&6; }
13785 elif test "x$target" = "x$host"; then
13786 # We can use an host tool
13787 AS_FOR_TARGET='$(AS)'
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13789 $as_echo "host tool" >&6; }
13790 else
13791 # We need a cross tool
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13793 $as_echo "pre-installed" >&6; }
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13798 $as_echo_n "checking where to find the target cc... " >&6; }
13799 if test "x${build}" != "x${host}" ; then
13800 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13801 # We already found the complete path
13802 ac_dir=`dirname $CC_FOR_TARGET`
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13804 $as_echo "pre-installed in $ac_dir" >&6; }
13805 else
13806 # Canadian cross, just use what we found
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13808 $as_echo "pre-installed" >&6; }
13810 else
13811 ok=yes
13812 case " ${configdirs} " in
13813 *" gcc "*) ;;
13814 *) ok=no ;;
13815 esac
13817 if test $ok = yes; then
13818 # An in-tree tool is available and we can use it
13819 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13821 $as_echo "just compiled" >&6; }
13822 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13823 # We already found the complete path
13824 ac_dir=`dirname $CC_FOR_TARGET`
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13826 $as_echo "pre-installed in $ac_dir" >&6; }
13827 elif test "x$target" = "x$host"; then
13828 # We can use an host tool
13829 CC_FOR_TARGET='$(CC)'
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13831 $as_echo "host tool" >&6; }
13832 else
13833 # We need a cross tool
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13835 $as_echo "pre-installed" >&6; }
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13840 $as_echo_n "checking where to find the target c++... " >&6; }
13841 if test "x${build}" != "x${host}" ; then
13842 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13843 # We already found the complete path
13844 ac_dir=`dirname $CXX_FOR_TARGET`
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13846 $as_echo "pre-installed in $ac_dir" >&6; }
13847 else
13848 # Canadian cross, just use what we found
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13850 $as_echo "pre-installed" >&6; }
13852 else
13853 ok=yes
13854 case " ${configdirs} " in
13855 *" gcc "*) ;;
13856 *) ok=no ;;
13857 esac
13858 case ,${enable_languages}, in
13859 *,c++,*) ;;
13860 *) ok=no ;;
13861 esac
13862 if test $ok = yes; then
13863 # An in-tree tool is available and we can use it
13864 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'
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13866 $as_echo "just compiled" >&6; }
13867 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13868 # We already found the complete path
13869 ac_dir=`dirname $CXX_FOR_TARGET`
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13871 $as_echo "pre-installed in $ac_dir" >&6; }
13872 elif test "x$target" = "x$host"; then
13873 # We can use an host tool
13874 CXX_FOR_TARGET='$(CXX)'
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13876 $as_echo "host tool" >&6; }
13877 else
13878 # We need a cross tool
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13880 $as_echo "pre-installed" >&6; }
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13885 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13886 if test "x${build}" != "x${host}" ; then
13887 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13888 # We already found the complete path
13889 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13891 $as_echo "pre-installed in $ac_dir" >&6; }
13892 else
13893 # Canadian cross, just use what we found
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13895 $as_echo "pre-installed" >&6; }
13897 else
13898 ok=yes
13899 case " ${configdirs} " in
13900 *" gcc "*) ;;
13901 *) ok=no ;;
13902 esac
13903 case ,${enable_languages}, in
13904 *,c++,*) ;;
13905 *) ok=no ;;
13906 esac
13907 if test $ok = yes; then
13908 # An in-tree tool is available and we can use it
13909 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'
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13911 $as_echo "just compiled" >&6; }
13912 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13913 # We already found the complete path
13914 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13916 $as_echo "pre-installed in $ac_dir" >&6; }
13917 elif test "x$target" = "x$host"; then
13918 # We can use an host tool
13919 RAW_CXX_FOR_TARGET='$(CXX)'
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13921 $as_echo "host tool" >&6; }
13922 else
13923 # We need a cross tool
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13925 $as_echo "pre-installed" >&6; }
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13930 $as_echo_n "checking where to find the target dlltool... " >&6; }
13931 if test "x${build}" != "x${host}" ; then
13932 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13933 # We already found the complete path
13934 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13936 $as_echo "pre-installed in $ac_dir" >&6; }
13937 else
13938 # Canadian cross, just use what we found
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13940 $as_echo "pre-installed" >&6; }
13942 else
13943 ok=yes
13944 case " ${configdirs} " in
13945 *" binutils "*) ;;
13946 *) ok=no ;;
13947 esac
13949 if test $ok = yes; then
13950 # An in-tree tool is available and we can use it
13951 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13953 $as_echo "just compiled" >&6; }
13954 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13955 # We already found the complete path
13956 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13958 $as_echo "pre-installed in $ac_dir" >&6; }
13959 elif test "x$target" = "x$host"; then
13960 # We can use an host tool
13961 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13963 $as_echo "host tool" >&6; }
13964 else
13965 # We need a cross tool
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13967 $as_echo "pre-installed" >&6; }
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13972 $as_echo_n "checking where to find the target gcc... " >&6; }
13973 if test "x${build}" != "x${host}" ; then
13974 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13975 # We already found the complete path
13976 ac_dir=`dirname $GCC_FOR_TARGET`
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13978 $as_echo "pre-installed in $ac_dir" >&6; }
13979 else
13980 # Canadian cross, just use what we found
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13982 $as_echo "pre-installed" >&6; }
13984 else
13985 ok=yes
13986 case " ${configdirs} " in
13987 *" gcc "*) ;;
13988 *) ok=no ;;
13989 esac
13991 if test $ok = yes; then
13992 # An in-tree tool is available and we can use it
13993 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13995 $as_echo "just compiled" >&6; }
13996 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13997 # We already found the complete path
13998 ac_dir=`dirname $GCC_FOR_TARGET`
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14000 $as_echo "pre-installed in $ac_dir" >&6; }
14001 elif test "x$target" = "x$host"; then
14002 # We can use an host tool
14003 GCC_FOR_TARGET='$()'
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14005 $as_echo "host tool" >&6; }
14006 else
14007 # We need a cross tool
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14009 $as_echo "pre-installed" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14014 $as_echo_n "checking where to find the target gfortran... " >&6; }
14015 if test "x${build}" != "x${host}" ; then
14016 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14017 # We already found the complete path
14018 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14020 $as_echo "pre-installed in $ac_dir" >&6; }
14021 else
14022 # Canadian cross, just use what we found
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14024 $as_echo "pre-installed" >&6; }
14026 else
14027 ok=yes
14028 case " ${configdirs} " in
14029 *" gcc "*) ;;
14030 *) ok=no ;;
14031 esac
14032 case ,${enable_languages}, in
14033 *,fortran,*) ;;
14034 *) ok=no ;;
14035 esac
14036 if test $ok = yes; then
14037 # An in-tree tool is available and we can use it
14038 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -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$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14042 # We already found the complete path
14043 ac_dir=`dirname $GFORTRAN_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 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
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 gccgo" >&5
14059 $as_echo_n "checking where to find the target gccgo... " >&6; }
14060 if test "x${build}" != "x${host}" ; then
14061 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14062 # We already found the complete path
14063 ac_dir=`dirname $GOC_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 *,go,*) ;;
14079 *) ok=no ;;
14080 esac
14081 if test $ok = yes; then
14082 # An in-tree tool is available and we can use it
14083 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14085 $as_echo "just compiled" >&6; }
14086 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
14088 ac_dir=`dirname $GOC_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 GOC_FOR_TARGET='$(GOC)'
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 ld" >&5
14104 $as_echo_n "checking where to find the target ld... " >&6; }
14105 if test "x${build}" != "x${host}" ; then
14106 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14107 # We already found the complete path
14108 ac_dir=`dirname $LD_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 *" ld "*) ;;
14120 *) ok=no ;;
14121 esac
14123 if test $ok = yes; then
14124 # An in-tree tool is available and we can use it
14125 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14127 $as_echo "just compiled" >&6; }
14128 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
14130 ac_dir=`dirname $LD_FOR_TARGET`
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132 $as_echo "pre-installed in $ac_dir" >&6; }
14133 elif test "x$target" = "x$host"; then
14134 # We can use an host tool
14135 LD_FOR_TARGET='$(LD)'
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14137 $as_echo "host tool" >&6; }
14138 else
14139 # We need a cross tool
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14141 $as_echo "pre-installed" >&6; }
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14146 $as_echo_n "checking where to find the target lipo... " >&6; }
14147 if test "x${build}" != "x${host}" ; then
14148 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14149 # We already found the complete path
14150 ac_dir=`dirname $LIPO_FOR_TARGET`
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14152 $as_echo "pre-installed in $ac_dir" >&6; }
14153 else
14154 # Canadian cross, just use what we found
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14156 $as_echo "pre-installed" >&6; }
14158 else
14159 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14160 # We already found the complete path
14161 ac_dir=`dirname $LIPO_FOR_TARGET`
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14163 $as_echo "pre-installed in $ac_dir" >&6; }
14164 elif test "x$target" = "x$host"; then
14165 # We can use an host tool
14166 LIPO_FOR_TARGET='$(LIPO)'
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14168 $as_echo "host tool" >&6; }
14169 else
14170 # We need a cross tool
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14172 $as_echo "pre-installed" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14177 $as_echo_n "checking where to find the target nm... " >&6; }
14178 if test "x${build}" != "x${host}" ; then
14179 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14180 # We already found the complete path
14181 ac_dir=`dirname $NM_FOR_TARGET`
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14183 $as_echo "pre-installed in $ac_dir" >&6; }
14184 else
14185 # Canadian cross, just use what we found
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14187 $as_echo "pre-installed" >&6; }
14189 else
14190 ok=yes
14191 case " ${configdirs} " in
14192 *" binutils "*) ;;
14193 *) ok=no ;;
14194 esac
14196 if test $ok = yes; then
14197 # An in-tree tool is available and we can use it
14198 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14200 $as_echo "just compiled" >&6; }
14201 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14202 # We already found the complete path
14203 ac_dir=`dirname $NM_FOR_TARGET`
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14205 $as_echo "pre-installed in $ac_dir" >&6; }
14206 elif test "x$target" = "x$host"; then
14207 # We can use an host tool
14208 NM_FOR_TARGET='$(NM)'
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14210 $as_echo "host tool" >&6; }
14211 else
14212 # We need a cross tool
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14214 $as_echo "pre-installed" >&6; }
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14219 $as_echo_n "checking where to find the target objcopy... " >&6; }
14220 if test "x${build}" != "x${host}" ; then
14221 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14222 # We already found the complete path
14223 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14225 $as_echo "pre-installed in $ac_dir" >&6; }
14226 else
14227 # Canadian cross, just use what we found
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14229 $as_echo "pre-installed" >&6; }
14231 else
14232 ok=yes
14233 case " ${configdirs} " in
14234 *" binutils "*) ;;
14235 *) ok=no ;;
14236 esac
14238 if test $ok = yes; then
14239 # An in-tree tool is available and we can use it
14240 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14242 $as_echo "just compiled" >&6; }
14243 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14244 # We already found the complete path
14245 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14247 $as_echo "pre-installed in $ac_dir" >&6; }
14248 elif test "x$target" = "x$host"; then
14249 # We can use an host tool
14250 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14252 $as_echo "host tool" >&6; }
14253 else
14254 # We need a cross tool
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14256 $as_echo "pre-installed" >&6; }
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14261 $as_echo_n "checking where to find the target objdump... " >&6; }
14262 if test "x${build}" != "x${host}" ; then
14263 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14264 # We already found the complete path
14265 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14267 $as_echo "pre-installed in $ac_dir" >&6; }
14268 else
14269 # Canadian cross, just use what we found
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14271 $as_echo "pre-installed" >&6; }
14273 else
14274 ok=yes
14275 case " ${configdirs} " in
14276 *" binutils "*) ;;
14277 *) ok=no ;;
14278 esac
14280 if test $ok = yes; then
14281 # An in-tree tool is available and we can use it
14282 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14284 $as_echo "just compiled" >&6; }
14285 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14286 # We already found the complete path
14287 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14289 $as_echo "pre-installed in $ac_dir" >&6; }
14290 elif test "x$target" = "x$host"; then
14291 # We can use an host tool
14292 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14294 $as_echo "host tool" >&6; }
14295 else
14296 # We need a cross tool
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14298 $as_echo "pre-installed" >&6; }
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14303 $as_echo_n "checking where to find the target ranlib... " >&6; }
14304 if test "x${build}" != "x${host}" ; then
14305 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14306 # We already found the complete path
14307 ac_dir=`dirname $RANLIB_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 else
14311 # Canadian cross, just use what we found
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14313 $as_echo "pre-installed" >&6; }
14315 else
14316 ok=yes
14317 case " ${configdirs} " in
14318 *" binutils "*) ;;
14319 *) ok=no ;;
14320 esac
14322 if test $ok = yes; then
14323 # An in-tree tool is available and we can use it
14324 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14326 $as_echo "just compiled" >&6; }
14327 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14328 # We already found the complete path
14329 ac_dir=`dirname $RANLIB_FOR_TARGET`
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14331 $as_echo "pre-installed in $ac_dir" >&6; }
14332 elif test "x$target" = "x$host"; then
14333 # We can use an host tool
14334 RANLIB_FOR_TARGET='$(RANLIB)'
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14336 $as_echo "host tool" >&6; }
14337 else
14338 # We need a cross tool
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14340 $as_echo "pre-installed" >&6; }
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14345 $as_echo_n "checking where to find the target readelf... " >&6; }
14346 if test "x${build}" != "x${host}" ; then
14347 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14348 # We already found the complete path
14349 ac_dir=`dirname $READELF_FOR_TARGET`
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14351 $as_echo "pre-installed in $ac_dir" >&6; }
14352 else
14353 # Canadian cross, just use what we found
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14355 $as_echo "pre-installed" >&6; }
14357 else
14358 ok=yes
14359 case " ${configdirs} " in
14360 *" binutils "*) ;;
14361 *) ok=no ;;
14362 esac
14364 if test $ok = yes; then
14365 # An in-tree tool is available and we can use it
14366 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14368 $as_echo "just compiled" >&6; }
14369 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14370 # We already found the complete path
14371 ac_dir=`dirname $READELF_FOR_TARGET`
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14373 $as_echo "pre-installed in $ac_dir" >&6; }
14374 elif test "x$target" = "x$host"; then
14375 # We can use an host tool
14376 READELF_FOR_TARGET='$(READELF)'
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14378 $as_echo "host tool" >&6; }
14379 else
14380 # We need a cross tool
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14382 $as_echo "pre-installed" >&6; }
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14387 $as_echo_n "checking where to find the target strip... " >&6; }
14388 if test "x${build}" != "x${host}" ; then
14389 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14390 # We already found the complete path
14391 ac_dir=`dirname $STRIP_FOR_TARGET`
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14393 $as_echo "pre-installed in $ac_dir" >&6; }
14394 else
14395 # Canadian cross, just use what we found
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14397 $as_echo "pre-installed" >&6; }
14399 else
14400 ok=yes
14401 case " ${configdirs} " in
14402 *" binutils "*) ;;
14403 *) ok=no ;;
14404 esac
14406 if test $ok = yes; then
14407 # An in-tree tool is available and we can use it
14408 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14410 $as_echo "just compiled" >&6; }
14411 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14412 # We already found the complete path
14413 ac_dir=`dirname $STRIP_FOR_TARGET`
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14415 $as_echo "pre-installed in $ac_dir" >&6; }
14416 elif test "x$target" = "x$host"; then
14417 # We can use an host tool
14418 STRIP_FOR_TARGET='$(STRIP)'
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14420 $as_echo "host tool" >&6; }
14421 else
14422 # We need a cross tool
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14424 $as_echo "pre-installed" >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14429 $as_echo_n "checking where to find the target windres... " >&6; }
14430 if test "x${build}" != "x${host}" ; then
14431 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14432 # We already found the complete path
14433 ac_dir=`dirname $WINDRES_FOR_TARGET`
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14435 $as_echo "pre-installed in $ac_dir" >&6; }
14436 else
14437 # Canadian cross, just use what we found
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14439 $as_echo "pre-installed" >&6; }
14441 else
14442 ok=yes
14443 case " ${configdirs} " in
14444 *" binutils "*) ;;
14445 *) ok=no ;;
14446 esac
14448 if test $ok = yes; then
14449 # An in-tree tool is available and we can use it
14450 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14452 $as_echo "just compiled" >&6; }
14453 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14454 # We already found the complete path
14455 ac_dir=`dirname $WINDRES_FOR_TARGET`
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14457 $as_echo "pre-installed in $ac_dir" >&6; }
14458 elif test "x$target" = "x$host"; then
14459 # We can use an host tool
14460 WINDRES_FOR_TARGET='$(WINDRES)'
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14462 $as_echo "host tool" >&6; }
14463 else
14464 # We need a cross tool
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14466 $as_echo "pre-installed" >&6; }
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14471 $as_echo_n "checking where to find the target windmc... " >&6; }
14472 if test "x${build}" != "x${host}" ; then
14473 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14474 # We already found the complete path
14475 ac_dir=`dirname $WINDMC_FOR_TARGET`
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14477 $as_echo "pre-installed in $ac_dir" >&6; }
14478 else
14479 # Canadian cross, just use what we found
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14481 $as_echo "pre-installed" >&6; }
14483 else
14484 ok=yes
14485 case " ${configdirs} " in
14486 *" binutils "*) ;;
14487 *) ok=no ;;
14488 esac
14490 if test $ok = yes; then
14491 # An in-tree tool is available and we can use it
14492 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14494 $as_echo "just compiled" >&6; }
14495 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14496 # We already found the complete path
14497 ac_dir=`dirname $WINDMC_FOR_TARGET`
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14499 $as_echo "pre-installed in $ac_dir" >&6; }
14500 elif test "x$target" = "x$host"; then
14501 # We can use an host tool
14502 WINDMC_FOR_TARGET='$(WINDMC)'
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14504 $as_echo "host tool" >&6; }
14505 else
14506 # We need a cross tool
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14508 $as_echo "pre-installed" >&6; }
14516 # Certain tools may need extra flags.
14517 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14518 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14519 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14521 # When building target libraries, except in a Canadian cross, we use
14522 # the same toolchain as the compiler we just built.
14523 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14524 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14525 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14526 if test $host = $build; then
14527 case " $configdirs " in
14528 *" gcc "*)
14529 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14530 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14531 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14533 esac
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14541 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14542 # Check whether --enable-maintainer-mode was given.
14543 if test "${enable_maintainer_mode+set}" = set; then :
14544 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14545 else
14546 USE_MAINTAINER_MODE=no
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14550 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14553 if test "$USE_MAINTAINER_MODE" = yes; then
14554 MAINTAINER_MODE_TRUE=
14555 MAINTAINER_MODE_FALSE='#'
14556 else
14557 MAINTAINER_MODE_TRUE='#'
14558 MAINTAINER_MODE_FALSE=
14560 MAINT=$MAINTAINER_MODE_TRUE
14562 # ---------------------
14563 # GCC bootstrap support
14564 # ---------------------
14566 # Stage specific cflags for build.
14567 stage1_cflags="-g"
14568 case $build in
14569 vax-*-*)
14570 case ${GCC} in
14571 yes) stage1_cflags="-g -Wa,-J" ;;
14572 *) stage1_cflags="-g -J" ;;
14573 esac ;;
14574 esac
14578 # Enable --enable-checking in stage1 of the compiler.
14579 # Check whether --enable-stage1-checking was given.
14580 if test "${enable_stage1_checking+set}" = set; then :
14581 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14582 else
14583 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14584 # For --disable-checking or implicit --enable-checking=release, avoid
14585 # setting --enable-checking=gc in the default stage1 checking for LTO
14586 # bootstraps. See PR62077.
14587 case $BUILD_CONFIG in
14588 *lto*)
14589 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14591 stage1_checking=--enable-checking=yes,types;;
14592 esac
14593 if test "x$enable_checking" = x && \
14594 test -d ${srcdir}/gcc && \
14595 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14596 stage1_checking=--enable-checking=yes,types,extra
14598 else
14599 stage1_checking=--enable-checking=$enable_checking,types
14605 # Enable -Werror in bootstrap stage2 and later.
14606 # Check whether --enable-werror was given.
14607 if test "${enable_werror+set}" = set; then :
14608 enableval=$enable_werror;
14609 case ${enable_werror} in
14610 yes) stage2_werror_flag="--enable-werror-always" ;;
14611 *) stage2_werror_flag="" ;;
14612 esac
14614 else
14616 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14617 case $BUILD_CONFIG in
14618 bootstrap-debug)
14619 stage2_werror_flag="--enable-werror-always" ;;
14621 stage2_werror_flag="--enable-werror-always" ;;
14622 esac
14630 # Specify what files to not compare during bootstrap.
14632 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14633 case "$target" in
14634 hppa*64*-*-hpux*) ;;
14635 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/* | gcc/function-tests.o" ;;
14636 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14637 esac
14640 ac_config_files="$ac_config_files Makefile"
14642 cat >confcache <<\_ACEOF
14643 # This file is a shell script that caches the results of configure
14644 # tests run on this system so they can be shared between configure
14645 # scripts and configure runs, see configure's option --config-cache.
14646 # It is not useful on other systems. If it contains results you don't
14647 # want to keep, you may remove or edit it.
14649 # config.status only pays attention to the cache file if you give it
14650 # the --recheck option to rerun configure.
14652 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14654 # following values.
14656 _ACEOF
14658 # The following way of writing the cache mishandles newlines in values,
14659 # but we know of no workaround that is simple, portable, and efficient.
14660 # So, we kill variables containing newlines.
14661 # Ultrix sh set writes to stderr and can't be redirected directly,
14662 # and sets the high bit in the cache file unless we assign to the vars.
14664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14665 eval ac_val=\$$ac_var
14666 case $ac_val in #(
14667 *${as_nl}*)
14668 case $ac_var in #(
14669 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14670 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14671 esac
14672 case $ac_var in #(
14673 _ | IFS | as_nl) ;; #(
14674 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14675 *) { eval $ac_var=; unset $ac_var;} ;;
14676 esac ;;
14677 esac
14678 done
14680 (set) 2>&1 |
14681 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14682 *${as_nl}ac_space=\ *)
14683 # `set' does not quote correctly, so add quotes: double-quote
14684 # substitution turns \\\\ into \\, and sed turns \\ into \.
14685 sed -n \
14686 "s/'/'\\\\''/g;
14687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14688 ;; #(
14690 # `set' quotes correctly as required by POSIX, so do not add quotes.
14691 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14693 esac |
14694 sort
14696 sed '
14697 /^ac_cv_env_/b end
14698 t clear
14699 :clear
14700 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14701 t end
14702 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14703 :end' >>confcache
14704 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14705 if test -w "$cache_file"; then
14706 test "x$cache_file" != "x/dev/null" &&
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14708 $as_echo "$as_me: updating cache $cache_file" >&6;}
14709 cat confcache >$cache_file
14710 else
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14712 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14715 rm -f confcache
14717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14718 # Let make expand exec_prefix.
14719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14721 # Transform confdefs.h into DEFS.
14722 # Protect against shell expansion while executing Makefile rules.
14723 # Protect against Makefile macro expansion.
14725 # If the first sed substitution is executed (which looks for macros that
14726 # take arguments), then branch to the quote section. Otherwise,
14727 # look for a macro that doesn't take arguments.
14728 ac_script='
14729 :mline
14730 /\\$/{
14732 s,\\\n,,
14733 b mline
14735 t clear
14736 :clear
14737 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14738 t quote
14739 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14740 t quote
14741 b any
14742 :quote
14743 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14744 s/\[/\\&/g
14745 s/\]/\\&/g
14746 s/\$/$$/g
14748 :any
14751 s/^\n//
14752 s/\n/ /g
14756 DEFS=`sed -n "$ac_script" confdefs.h`
14759 ac_libobjs=
14760 ac_ltlibobjs=
14761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14762 # 1. Remove the extension, and $U if already installed.
14763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14764 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14766 # will be set to the directory where LIBOBJS objects are built.
14767 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14768 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14769 done
14770 LIBOBJS=$ac_libobjs
14772 LTLIBOBJS=$ac_ltlibobjs
14776 : ${CONFIG_STATUS=./config.status}
14777 ac_write_fail=0
14778 ac_clean_files_save=$ac_clean_files
14779 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14781 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14782 as_write_fail=0
14783 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14784 #! $SHELL
14785 # Generated by $as_me.
14786 # Run this file to recreate the current configuration.
14787 # Compiler output produced by configure, useful for debugging
14788 # configure, is in config.log if it exists.
14790 debug=false
14791 ac_cs_recheck=false
14792 ac_cs_silent=false
14794 SHELL=\${CONFIG_SHELL-$SHELL}
14795 export SHELL
14796 _ASEOF
14797 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14798 ## -------------------- ##
14799 ## M4sh Initialization. ##
14800 ## -------------------- ##
14802 # Be more Bourne compatible
14803 DUALCASE=1; export DUALCASE # for MKS sh
14804 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14805 emulate sh
14806 NULLCMD=:
14807 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14808 # is contrary to our usage. Disable this feature.
14809 alias -g '${1+"$@"}'='"$@"'
14810 setopt NO_GLOB_SUBST
14811 else
14812 case `(set -o) 2>/dev/null` in #(
14813 *posix*) :
14814 set -o posix ;; #(
14815 *) :
14817 esac
14821 as_nl='
14823 export as_nl
14824 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14825 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14828 # Prefer a ksh shell builtin over an external printf program on Solaris,
14829 # but without wasting forks for bash or zsh.
14830 if test -z "$BASH_VERSION$ZSH_VERSION" \
14831 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14832 as_echo='print -r --'
14833 as_echo_n='print -rn --'
14834 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14835 as_echo='printf %s\n'
14836 as_echo_n='printf %s'
14837 else
14838 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14839 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14840 as_echo_n='/usr/ucb/echo -n'
14841 else
14842 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14843 as_echo_n_body='eval
14844 arg=$1;
14845 case $arg in #(
14846 *"$as_nl"*)
14847 expr "X$arg" : "X\\(.*\\)$as_nl";
14848 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14849 esac;
14850 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14852 export as_echo_n_body
14853 as_echo_n='sh -c $as_echo_n_body as_echo'
14855 export as_echo_body
14856 as_echo='sh -c $as_echo_body as_echo'
14859 # The user is always right.
14860 if test "${PATH_SEPARATOR+set}" != set; then
14861 PATH_SEPARATOR=:
14862 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14863 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14864 PATH_SEPARATOR=';'
14869 # IFS
14870 # We need space, tab and new line, in precisely that order. Quoting is
14871 # there to prevent editors from complaining about space-tab.
14872 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14873 # splitting by setting IFS to empty value.)
14874 IFS=" "" $as_nl"
14876 # Find who we are. Look in the path if we contain no directory separator.
14877 case $0 in #((
14878 *[\\/]* ) as_myself=$0 ;;
14879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14880 for as_dir in $PATH
14882 IFS=$as_save_IFS
14883 test -z "$as_dir" && as_dir=.
14884 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14885 done
14886 IFS=$as_save_IFS
14889 esac
14890 # We did not find ourselves, most probably we were run as `sh COMMAND'
14891 # in which case we are not to be found in the path.
14892 if test "x$as_myself" = x; then
14893 as_myself=$0
14895 if test ! -f "$as_myself"; then
14896 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14897 exit 1
14900 # Unset variables that we do not need and which cause bugs (e.g. in
14901 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14902 # suppresses any "Segmentation fault" message there. '((' could
14903 # trigger a bug in pdksh 5.2.14.
14904 for as_var in BASH_ENV ENV MAIL MAILPATH
14905 do eval test x\${$as_var+set} = xset \
14906 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14907 done
14908 PS1='$ '
14909 PS2='> '
14910 PS4='+ '
14912 # NLS nuisances.
14913 LC_ALL=C
14914 export LC_ALL
14915 LANGUAGE=C
14916 export LANGUAGE
14918 # CDPATH.
14919 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14922 # as_fn_error ERROR [LINENO LOG_FD]
14923 # ---------------------------------
14924 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14925 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14926 # script with status $?, using 1 if that was 0.
14927 as_fn_error ()
14929 as_status=$?; test $as_status -eq 0 && as_status=1
14930 if test "$3"; then
14931 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14932 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14934 $as_echo "$as_me: error: $1" >&2
14935 as_fn_exit $as_status
14936 } # as_fn_error
14939 # as_fn_set_status STATUS
14940 # -----------------------
14941 # Set $? to STATUS, without forking.
14942 as_fn_set_status ()
14944 return $1
14945 } # as_fn_set_status
14947 # as_fn_exit STATUS
14948 # -----------------
14949 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14950 as_fn_exit ()
14952 set +e
14953 as_fn_set_status $1
14954 exit $1
14955 } # as_fn_exit
14957 # as_fn_unset VAR
14958 # ---------------
14959 # Portably unset VAR.
14960 as_fn_unset ()
14962 { eval $1=; unset $1;}
14964 as_unset=as_fn_unset
14965 # as_fn_append VAR VALUE
14966 # ----------------------
14967 # Append the text in VALUE to the end of the definition contained in VAR. Take
14968 # advantage of any shell optimizations that allow amortized linear growth over
14969 # repeated appends, instead of the typical quadratic growth present in naive
14970 # implementations.
14971 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14972 eval 'as_fn_append ()
14974 eval $1+=\$2
14976 else
14977 as_fn_append ()
14979 eval $1=\$$1\$2
14981 fi # as_fn_append
14983 # as_fn_arith ARG...
14984 # ------------------
14985 # Perform arithmetic evaluation on the ARGs, and store the result in the
14986 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14987 # must be portable across $(()) and expr.
14988 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14989 eval 'as_fn_arith ()
14991 as_val=$(( $* ))
14993 else
14994 as_fn_arith ()
14996 as_val=`expr "$@" || test $? -eq 1`
14998 fi # as_fn_arith
15001 if expr a : '\(a\)' >/dev/null 2>&1 &&
15002 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15003 as_expr=expr
15004 else
15005 as_expr=false
15008 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15009 as_basename=basename
15010 else
15011 as_basename=false
15014 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15015 as_dirname=dirname
15016 else
15017 as_dirname=false
15020 as_me=`$as_basename -- "$0" ||
15021 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15022 X"$0" : 'X\(//\)$' \| \
15023 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15024 $as_echo X/"$0" |
15025 sed '/^.*\/\([^/][^/]*\)\/*$/{
15026 s//\1/
15029 /^X\/\(\/\/\)$/{
15030 s//\1/
15033 /^X\/\(\/\).*/{
15034 s//\1/
15037 s/.*/./; q'`
15039 # Avoid depending upon Character Ranges.
15040 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15041 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15042 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15043 as_cr_digits='0123456789'
15044 as_cr_alnum=$as_cr_Letters$as_cr_digits
15046 ECHO_C= ECHO_N= ECHO_T=
15047 case `echo -n x` in #(((((
15048 -n*)
15049 case `echo 'xy\c'` in
15050 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15051 xy) ECHO_C='\c';;
15052 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15053 ECHO_T=' ';;
15054 esac;;
15056 ECHO_N='-n';;
15057 esac
15059 rm -f conf$$ conf$$.exe conf$$.file
15060 if test -d conf$$.dir; then
15061 rm -f conf$$.dir/conf$$.file
15062 else
15063 rm -f conf$$.dir
15064 mkdir conf$$.dir 2>/dev/null
15066 if (echo >conf$$.file) 2>/dev/null; then
15067 if ln -s conf$$.file conf$$ 2>/dev/null; then
15068 as_ln_s='ln -s'
15069 # ... but there are two gotchas:
15070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15072 # In both cases, we have to default to `cp -p'.
15073 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15074 as_ln_s='cp -p'
15075 elif ln conf$$.file conf$$ 2>/dev/null; then
15076 as_ln_s=ln
15077 else
15078 as_ln_s='cp -p'
15080 else
15081 as_ln_s='cp -p'
15083 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15084 rmdir conf$$.dir 2>/dev/null
15087 # as_fn_mkdir_p
15088 # -------------
15089 # Create "$as_dir" as a directory, including parents if necessary.
15090 as_fn_mkdir_p ()
15093 case $as_dir in #(
15094 -*) as_dir=./$as_dir;;
15095 esac
15096 test -d "$as_dir" || eval $as_mkdir_p || {
15097 as_dirs=
15098 while :; do
15099 case $as_dir in #(
15100 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15101 *) as_qdir=$as_dir;;
15102 esac
15103 as_dirs="'$as_qdir' $as_dirs"
15104 as_dir=`$as_dirname -- "$as_dir" ||
15105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15106 X"$as_dir" : 'X\(//\)[^/]' \| \
15107 X"$as_dir" : 'X\(//\)$' \| \
15108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15109 $as_echo X"$as_dir" |
15110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15111 s//\1/
15114 /^X\(\/\/\)[^/].*/{
15115 s//\1/
15118 /^X\(\/\/\)$/{
15119 s//\1/
15122 /^X\(\/\).*/{
15123 s//\1/
15126 s/.*/./; q'`
15127 test -d "$as_dir" && break
15128 done
15129 test -z "$as_dirs" || eval "mkdir $as_dirs"
15130 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15133 } # as_fn_mkdir_p
15134 if mkdir -p . 2>/dev/null; then
15135 as_mkdir_p='mkdir -p "$as_dir"'
15136 else
15137 test -d ./-p && rmdir ./-p
15138 as_mkdir_p=false
15141 if test -x / >/dev/null 2>&1; then
15142 as_test_x='test -x'
15143 else
15144 if ls -dL / >/dev/null 2>&1; then
15145 as_ls_L_option=L
15146 else
15147 as_ls_L_option=
15149 as_test_x='
15150 eval sh -c '\''
15151 if test -d "$1"; then
15152 test -d "$1/.";
15153 else
15154 case $1 in #(
15155 -*)set "./$1";;
15156 esac;
15157 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15158 ???[sx]*):;;*)false;;esac;fi
15159 '\'' sh
15162 as_executable_p=$as_test_x
15164 # Sed expression to map a string onto a valid CPP name.
15165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15167 # Sed expression to map a string onto a valid variable name.
15168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15171 exec 6>&1
15172 ## ----------------------------------- ##
15173 ## Main body of $CONFIG_STATUS script. ##
15174 ## ----------------------------------- ##
15175 _ASEOF
15176 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179 # Save the log message, to keep $0 and so on meaningful, and to
15180 # report actual input values of CONFIG_FILES etc. instead of their
15181 # values after options handling.
15182 ac_log="
15183 This file was extended by $as_me, which was
15184 generated by GNU Autoconf 2.64. Invocation command line was
15186 CONFIG_FILES = $CONFIG_FILES
15187 CONFIG_HEADERS = $CONFIG_HEADERS
15188 CONFIG_LINKS = $CONFIG_LINKS
15189 CONFIG_COMMANDS = $CONFIG_COMMANDS
15190 $ $0 $@
15192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15195 _ACEOF
15197 case $ac_config_files in *"
15198 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15199 esac
15203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15204 # Files that config.status was made for.
15205 config_files="$ac_config_files"
15207 _ACEOF
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15210 ac_cs_usage="\
15211 \`$as_me' instantiates files and other configuration actions
15212 from templates according to the current configuration. Unless the files
15213 and actions are specified as TAGs, all are instantiated by default.
15215 Usage: $0 [OPTION]... [TAG]...
15217 -h, --help print this help, then exit
15218 -V, --version print version number and configuration settings, then exit
15219 -q, --quiet, --silent
15220 do not print progress messages
15221 -d, --debug don't remove temporary files
15222 --recheck update $as_me by reconfiguring in the same conditions
15223 --file=FILE[:TEMPLATE]
15224 instantiate the configuration file FILE
15226 Configuration files:
15227 $config_files
15229 Report bugs to the package provider."
15231 _ACEOF
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 ac_cs_version="\\
15234 config.status
15235 configured by $0, generated by GNU Autoconf 2.64,
15236 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15238 Copyright (C) 2009 Free Software Foundation, Inc.
15239 This config.status script is free software; the Free Software Foundation
15240 gives unlimited permission to copy, distribute and modify it."
15242 ac_pwd='$ac_pwd'
15243 srcdir='$srcdir'
15244 INSTALL='$INSTALL'
15245 AWK='$AWK'
15246 test -n "\$AWK" || AWK=awk
15247 _ACEOF
15249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250 # The default lists apply if the user does not specify any file.
15251 ac_need_defaults=:
15252 while test $# != 0
15254 case $1 in
15255 --*=*)
15256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15257 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15258 ac_shift=:
15261 ac_option=$1
15262 ac_optarg=$2
15263 ac_shift=shift
15265 esac
15267 case $ac_option in
15268 # Handling of the options.
15269 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15270 ac_cs_recheck=: ;;
15271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15272 $as_echo "$ac_cs_version"; exit ;;
15273 --debug | --debu | --deb | --de | --d | -d )
15274 debug=: ;;
15275 --file | --fil | --fi | --f )
15276 $ac_shift
15277 case $ac_optarg in
15278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15279 esac
15280 as_fn_append CONFIG_FILES " '$ac_optarg'"
15281 ac_need_defaults=false;;
15282 --he | --h | --help | --hel | -h )
15283 $as_echo "$ac_cs_usage"; exit ;;
15284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15285 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15286 ac_cs_silent=: ;;
15288 # This is an error.
15289 -*) as_fn_error "unrecognized option: \`$1'
15290 Try \`$0 --help' for more information." ;;
15292 *) as_fn_append ac_config_targets " $1"
15293 ac_need_defaults=false ;;
15295 esac
15296 shift
15297 done
15299 ac_configure_extra_args=
15301 if $ac_cs_silent; then
15302 exec 6>/dev/null
15303 ac_configure_extra_args="$ac_configure_extra_args --silent"
15306 _ACEOF
15307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15308 if \$ac_cs_recheck; then
15309 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15310 shift
15311 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15312 CONFIG_SHELL='$SHELL'
15313 export CONFIG_SHELL
15314 exec "\$@"
15317 _ACEOF
15318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15319 exec 5>>config.log
15321 echo
15322 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15323 ## Running $as_me. ##
15324 _ASBOX
15325 $as_echo "$ac_log"
15326 } >&5
15328 _ACEOF
15329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15331 # INIT-COMMANDS
15333 extrasub_build="$extrasub_build"
15334 extrasub_host="$extrasub_host"
15335 extrasub_target="$extrasub_target"
15337 _ACEOF
15339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15341 # Handling of arguments.
15342 for ac_config_target in $ac_config_targets
15344 case $ac_config_target in
15345 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15347 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15348 esac
15349 done
15352 # If the user did not use the arguments to specify the items to instantiate,
15353 # then the envvar interface is used. Set only those that are not.
15354 # We use the long form for the default assignment because of an extremely
15355 # bizarre bug on SunOS 4.1.3.
15356 if $ac_need_defaults; then
15357 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15360 # Have a temporary directory for convenience. Make it in the build tree
15361 # simply because there is no reason against having it here, and in addition,
15362 # creating and moving files from /tmp can sometimes cause problems.
15363 # Hook for its removal unless debugging.
15364 # Note that there is a small window in which the directory will not be cleaned:
15365 # after its creation but before its name has been assigned to `$tmp'.
15366 $debug ||
15368 tmp=
15369 trap 'exit_status=$?
15370 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15372 trap 'as_fn_exit 1' 1 2 13 15
15374 # Create a (secure) tmp directory for tmp files.
15377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15378 test -n "$tmp" && test -d "$tmp"
15379 } ||
15381 tmp=./conf$$-$RANDOM
15382 (umask 077 && mkdir "$tmp")
15383 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15385 # Set up the scripts for CONFIG_FILES section.
15386 # No need to generate them if there are no CONFIG_FILES.
15387 # This happens for instance with `./config.status config.h'.
15388 if test -n "$CONFIG_FILES"; then
15390 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15391 ac_cs_awk_getline=:
15392 ac_cs_awk_pipe_init=
15393 ac_cs_awk_read_file='
15394 while ((getline aline < (F[key])) > 0)
15395 print(aline)
15396 close(F[key])'
15397 ac_cs_awk_pipe_fini=
15398 else
15399 ac_cs_awk_getline=false
15400 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15401 ac_cs_awk_read_file='
15402 print "|#_!!_#|"
15403 print "cat " F[key] " &&"
15404 '$ac_cs_awk_pipe_init
15405 # The final `:' finishes the AND list.
15406 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15408 ac_cr=`echo X | tr X '\015'`
15409 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15410 # But we know of no other shell where ac_cr would be empty at this
15411 # point, so we can use a bashism as a fallback.
15412 if test "x$ac_cr" = x; then
15413 eval ac_cr=\$\'\\r\'
15415 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15416 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15417 ac_cs_awk_cr='\r'
15418 else
15419 ac_cs_awk_cr=$ac_cr
15422 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15423 _ACEOF
15425 # Create commands to substitute file output variables.
15427 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15428 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15429 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15430 echo "_ACAWK" &&
15431 echo "_ACEOF"
15432 } >conf$$files.sh &&
15433 . ./conf$$files.sh ||
15434 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15435 rm -f conf$$files.sh
15438 echo "cat >conf$$subs.awk <<_ACEOF" &&
15439 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15440 echo "_ACEOF"
15441 } >conf$$subs.sh ||
15442 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15443 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15444 ac_delim='%!_!# '
15445 for ac_last_try in false false false false false :; do
15446 . ./conf$$subs.sh ||
15447 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15449 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15450 if test $ac_delim_n = $ac_delim_num; then
15451 break
15452 elif $ac_last_try; then
15453 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15454 else
15455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15457 done
15458 rm -f conf$$subs.sh
15460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15461 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15462 _ACEOF
15463 sed -n '
15465 s/^/S["/; s/!.*/"]=/
15468 s/^[^!]*!//
15469 :repl
15470 t repl
15471 s/'"$ac_delim"'$//
15472 t delim
15475 s/\(.\{148\}\).*/\1/
15476 t more1
15477 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15480 b repl
15481 :more1
15482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15485 s/.\{148\}//
15486 t nl
15487 :delim
15489 s/\(.\{148\}\).*/\1/
15490 t more2
15491 s/["\\]/\\&/g; s/^/"/; s/$/"/
15494 :more2
15495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15498 s/.\{148\}//
15499 t delim
15500 ' <conf$$subs.awk | sed '
15501 /^[^""]/{
15503 s/\n//
15505 ' >>$CONFIG_STATUS || ac_write_fail=1
15506 rm -f conf$$subs.awk
15507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15508 _ACAWK
15509 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15510 for (key in S) S_is_set[key] = 1
15511 FS = "\a"
15512 \$ac_cs_awk_pipe_init
15515 line = $ 0
15516 nfields = split(line, field, "@")
15517 substed = 0
15518 len = length(field[1])
15519 for (i = 2; i < nfields; i++) {
15520 key = field[i]
15521 keylen = length(key)
15522 if (S_is_set[key]) {
15523 value = S[key]
15524 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15525 len += length(value) + length(field[++i])
15526 substed = 1
15527 } else
15528 len += 1 + keylen
15530 if (nfields == 3 && !substed) {
15531 key = field[2]
15532 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15533 \$ac_cs_awk_read_file
15534 next
15537 print line
15539 \$ac_cs_awk_pipe_fini
15540 _ACAWK
15541 _ACEOF
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15544 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15545 else
15547 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15548 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15549 _ACEOF
15551 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15552 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15553 # trailing colons and then remove the whole line if VPATH becomes empty
15554 # (actually we leave an empty line to preserve line numbers).
15555 if test "x$srcdir" = x.; then
15556 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15557 s/:*\$(srcdir):*/:/
15558 s/:*\${srcdir}:*/:/
15559 s/:*@srcdir@:*/:/
15560 s/^\([^=]*=[ ]*\):*/\1/
15561 s/:*$//
15562 s/^[^=]*=[ ]*$//
15566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15567 fi # test -n "$CONFIG_FILES"
15570 eval set X " :F $CONFIG_FILES "
15571 shift
15572 for ac_tag
15574 case $ac_tag in
15575 :[FHLC]) ac_mode=$ac_tag; continue;;
15576 esac
15577 case $ac_mode$ac_tag in
15578 :[FHL]*:*);;
15579 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15580 :[FH]-) ac_tag=-:-;;
15581 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15582 esac
15583 ac_save_IFS=$IFS
15584 IFS=:
15585 set x $ac_tag
15586 IFS=$ac_save_IFS
15587 shift
15588 ac_file=$1
15589 shift
15591 case $ac_mode in
15592 :L) ac_source=$1;;
15593 :[FH])
15594 ac_file_inputs=
15595 for ac_f
15597 case $ac_f in
15598 -) ac_f="$tmp/stdin";;
15599 *) # Look for the file first in the build tree, then in the source tree
15600 # (if the path is not absolute). The absolute path cannot be DOS-style,
15601 # because $ac_f cannot contain `:'.
15602 test -f "$ac_f" ||
15603 case $ac_f in
15604 [\\/$]*) false;;
15605 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15606 esac ||
15607 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15608 esac
15609 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15610 as_fn_append ac_file_inputs " '$ac_f'"
15611 done
15613 # Let's still pretend it is `configure' which instantiates (i.e., don't
15614 # use $as_me), people would be surprised to read:
15615 # /* config.h. Generated by config.status. */
15616 configure_input='Generated from '`
15617 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15618 `' by configure.'
15619 if test x"$ac_file" != x-; then
15620 configure_input="$ac_file. $configure_input"
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15622 $as_echo "$as_me: creating $ac_file" >&6;}
15624 # Neutralize special characters interpreted by sed in replacement strings.
15625 case $configure_input in #(
15626 *\&* | *\|* | *\\* )
15627 ac_sed_conf_input=`$as_echo "$configure_input" |
15628 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15629 *) ac_sed_conf_input=$configure_input;;
15630 esac
15632 case $ac_tag in
15633 *:-:* | *:-) cat >"$tmp/stdin" \
15634 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15635 esac
15637 esac
15639 ac_dir=`$as_dirname -- "$ac_file" ||
15640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15641 X"$ac_file" : 'X\(//\)[^/]' \| \
15642 X"$ac_file" : 'X\(//\)$' \| \
15643 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15644 $as_echo X"$ac_file" |
15645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15646 s//\1/
15649 /^X\(\/\/\)[^/].*/{
15650 s//\1/
15653 /^X\(\/\/\)$/{
15654 s//\1/
15657 /^X\(\/\).*/{
15658 s//\1/
15661 s/.*/./; q'`
15662 as_dir="$ac_dir"; as_fn_mkdir_p
15663 ac_builddir=.
15665 case "$ac_dir" in
15666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15669 # A ".." for each directory in $ac_dir_suffix.
15670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15671 case $ac_top_builddir_sub in
15672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15674 esac ;;
15675 esac
15676 ac_abs_top_builddir=$ac_pwd
15677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15678 # for backward compatibility:
15679 ac_top_builddir=$ac_top_build_prefix
15681 case $srcdir in
15682 .) # We are building in place.
15683 ac_srcdir=.
15684 ac_top_srcdir=$ac_top_builddir_sub
15685 ac_abs_top_srcdir=$ac_pwd ;;
15686 [\\/]* | ?:[\\/]* ) # Absolute name.
15687 ac_srcdir=$srcdir$ac_dir_suffix;
15688 ac_top_srcdir=$srcdir
15689 ac_abs_top_srcdir=$srcdir ;;
15690 *) # Relative name.
15691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15692 ac_top_srcdir=$ac_top_build_prefix$srcdir
15693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15694 esac
15695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15698 case $ac_mode in
15701 # CONFIG_FILE
15704 case $INSTALL in
15705 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15706 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15707 esac
15708 _ACEOF
15710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15711 # If the template does not know about datarootdir, expand it.
15712 # FIXME: This hack should be removed a few years after 2.60.
15713 ac_datarootdir_hack=; ac_datarootdir_seen=
15714 ac_sed_dataroot='
15715 /datarootdir/ {
15719 /@datadir@/p
15720 /@docdir@/p
15721 /@infodir@/p
15722 /@localedir@/p
15723 /@mandir@/p'
15724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15725 *datarootdir*) ac_datarootdir_seen=yes;;
15726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15729 _ACEOF
15730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15731 ac_datarootdir_hack='
15732 s&@datadir@&$datadir&g
15733 s&@docdir@&$docdir&g
15734 s&@infodir@&$infodir&g
15735 s&@localedir@&$localedir&g
15736 s&@mandir@&$mandir&g
15737 s&\\\${datarootdir}&$datarootdir&g' ;;
15738 esac
15739 _ACEOF
15741 # Neutralize VPATH when `$srcdir' = `.'.
15742 # Shell code in configure.ac might set extrasub.
15743 # FIXME: do we really want to maintain this feature?
15744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15745 ac_sed_extra="$ac_vpsub
15746 $extrasub
15747 _ACEOF
15748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15751 s|@configure_input@|$ac_sed_conf_input|;t t
15752 s&@top_builddir@&$ac_top_builddir_sub&;t t
15753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15754 s&@srcdir@&$ac_srcdir&;t t
15755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15756 s&@top_srcdir@&$ac_top_srcdir&;t t
15757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15758 s&@builddir@&$ac_builddir&;t t
15759 s&@abs_builddir@&$ac_abs_builddir&;t t
15760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15761 s&@INSTALL@&$ac_INSTALL&;t t
15762 $ac_datarootdir_hack
15764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15765 if $ac_cs_awk_getline; then
15766 $AWK -f "$tmp/subs.awk"
15767 else
15768 $AWK -f "$tmp/subs.awk" | $SHELL
15769 fi >$tmp/out \
15770 || as_fn_error "could not create $ac_file" "$LINENO" 5
15772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15773 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15774 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15776 which seems to be undefined. Please make sure it is defined." >&5
15777 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15778 which seems to be undefined. Please make sure it is defined." >&2;}
15780 rm -f "$tmp/stdin"
15781 case $ac_file in
15782 -) cat "$tmp/out" && rm -f "$tmp/out";;
15783 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15784 esac \
15785 || as_fn_error "could not create $ac_file" "$LINENO" 5
15790 esac
15793 case $ac_file$ac_mode in
15794 "Makefile":F) sed "$extrasub_build" Makefile |
15795 sed "$extrasub_host" |
15796 sed "$extrasub_target" > mf$$
15797 mv -f mf$$ Makefile ;;
15799 esac
15800 done # for ac_tag
15803 as_fn_exit 0
15804 _ACEOF
15805 ac_clean_files=$ac_clean_files_save
15807 test $ac_write_fail = 0 ||
15808 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15811 # configure is writing to config.log, and then calls config.status.
15812 # config.status does its own redirection, appending to config.log.
15813 # Unfortunately, on DOS this fails, as config.log is still kept open
15814 # by configure, so config.status won't be able to write to it; its
15815 # output is simply discarded. So we exec the FD to /dev/null,
15816 # effectively closing config.log, so it can be properly (re)opened and
15817 # appended to by config.status. When coming back to configure, we
15818 # need to make the FD available again.
15819 if test "$no_create" != yes; then
15820 ac_cs_success=:
15821 ac_config_status_args=
15822 test "$silent" = yes &&
15823 ac_config_status_args="$ac_config_status_args --quiet"
15824 exec 5>/dev/null
15825 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15826 exec 5>>config.log
15827 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15828 # would make configure fail if this is the last instruction.
15829 $ac_cs_success || as_fn_exit $?
15831 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15833 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}