* testsuite/26_numerics/headers/cmath/hypot.cc: XFAIL on AIX.
[official-gcc.git] / configure
blobfb79e7381cd9ba393c3d6283769a0efac489d674
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCC_FOR_TARGET
587 CXX_FOR_TARGET
588 CC_FOR_TARGET
589 READELF
590 OBJDUMP
591 OBJCOPY
592 WINDMC
593 WINDRES
594 STRIP
595 RANLIB
597 LIPO
599 DLLTOOL
602 RUNTEST
603 EXPECT
604 MAKEINFO
605 FLEX
608 BISON
609 YACC
610 WINDRES_FOR_BUILD
611 WINDMC_FOR_BUILD
612 RANLIB_FOR_BUILD
613 NM_FOR_BUILD
614 LD_FOR_BUILD
615 LDFLAGS_FOR_BUILD
616 GOC_FOR_BUILD
617 GFORTRAN_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 extra_host_zlib_configure_flags
645 extra_host_libiberty_configure_flags
646 stage1_languages
647 extra_linker_plugin_flags
648 extra_linker_plugin_configure_flags
649 islinc
650 isllibs
651 islver
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_stage1_languages
785 enable_objc_gc
786 with_target_bdw_gc
787 with_target_bdw_gc_include
788 with_target_bdw_gc_lib
789 with_build_sysroot
790 with_debug_prefix_map
791 with_build_config
792 enable_vtable_verify
793 enable_serial_configure
794 with_build_time_tools
795 enable_maintainer_mode
796 enable_stage1_checking
797 enable_werror
798 enable_host_shared
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
809 CXXFLAGS
811 build_configargs
812 host_configargs
813 target_configargs
816 DLLTOOL
818 LIPO
820 RANLIB
821 STRIP
822 WINDRES
823 WINDMC
824 OBJCOPY
825 OBJDUMP
826 READELF
827 CC_FOR_TARGET
828 CXX_FOR_TARGET
829 GCC_FOR_TARGET
830 GFORTRAN_FOR_TARGET
831 GOC_FOR_TARGET
832 AR_FOR_TARGET
833 AS_FOR_TARGET
834 DLLTOOL_FOR_TARGET
835 LD_FOR_TARGET
836 LIPO_FOR_TARGET
837 NM_FOR_TARGET
838 OBJCOPY_FOR_TARGET
839 OBJDUMP_FOR_TARGET
840 RANLIB_FOR_TARGET
841 READELF_FOR_TARGET
842 STRIP_FOR_TARGET
843 WINDRES_FOR_TARGET
844 WINDMC_FOR_TARGET'
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
895 ac_prev=
896 ac_dashdash=
897 for ac_option
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
911 # Accept the important Cygnus configure options, so we can diagnose typos.
913 case $ac_dashdash$ac_option in
915 ac_dashdash=yes ;;
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 bindir=$ac_optarg ;;
922 -build | --build | --buil | --bui | --bu)
923 ac_prev=build_alias ;;
924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925 build_alias=$ac_optarg ;;
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932 cache_file=$ac_optarg ;;
934 --config-cache | -C)
935 cache_file=config.cache ;;
937 -datadir | --datadir | --datadi | --datad)
938 ac_prev=datadir ;;
939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
940 datadir=$ac_optarg ;;
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
949 -disable-* | --disable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=\$ac_optarg ;;
1195 -without-* | --without-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220 x_includes=$ac_optarg ;;
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227 x_libraries=$ac_optarg ;;
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information."
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1241 export $ac_envvar ;;
1244 # FIXME: should be removed in autoconf 3.0.
1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 esac
1252 done
1254 if test -n "$ac_prev"; then
1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256 as_fn_error "missing argument to $ac_option"
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309 test "$silent" = yes && exec 6>/dev/null
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1338 /^X\(\/\/\)$/{
1339 s//\1/
1342 /^X\(\/\).*/{
1343 s//\1/
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1351 else
1352 ac_srcdir_defaulted=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1376 esac
1377 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1402 Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 [PREFIX]
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1446 _ACEOF
1448 cat <<\_ACEOF
1450 Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1464 cat <<\_ACEOF
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
1487 --disable-libstdcxx do not build libstdc++-v3 directory
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
1490 --enable-bootstrap enable bootstrapping [yes if native build]
1491 --disable-isl-version-check
1492 disable check for isl version
1493 --enable-lto enable link time optimization support
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
1505 --enable-vtable-verify Enable vtable verification feature
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1516 --enable-werror enable -Werror in bootstrap stage2 and later
1517 --enable-host-shared build host code as shared libraries
1519 Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
1523 --with-system-zlib use installed libz
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1533 --with-mpfr-include=PATH
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
1543 --with-stage1-libs=LIBS libraries for stage1
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
1549 --with-isl=PATH Specify prefix directory for the installed isl
1550 package. Equivalent to
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1562 files
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
1565 --with-build-sysroot=SYSROOT
1566 use sysroot as the system root during the build
1567 --with-debug-prefix-map='A=B C=D ...'
1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
1571 --with-build-time-tools=PATH
1572 use given path to find target tools during the build
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1584 build_configargs
1585 additional configure arguments for build directories
1586 host_configargs
1587 additional configure arguments for host directories
1588 target_configargs
1589 additional configure arguments for target directories
1590 AR AR for the host
1591 AS AS for the host
1592 DLLTOOL DLLTOOL for the host
1593 LD LD for the host
1594 LIPO LIPO for the host
1595 NM NM for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
1599 WINDMC WINDMC for the host
1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
1602 READELF READELF for the host
1603 CC_FOR_TARGET
1604 CC for the target
1605 CXX_FOR_TARGET
1606 CXX for the target
1607 GCC_FOR_TARGET
1608 GCC for the target
1609 GFORTRAN_FOR_TARGET
1610 GFORTRAN for the target
1611 GOC_FOR_TARGET
1612 GOC for the target
1613 AR_FOR_TARGET
1614 AR for the target
1615 AS_FOR_TARGET
1616 AS for the target
1617 DLLTOOL_FOR_TARGET
1618 DLLTOOL for the target
1619 LD_FOR_TARGET
1620 LD for the target
1621 LIPO_FOR_TARGET
1622 LIPO for the target
1623 NM_FOR_TARGET
1624 NM for the target
1625 OBJCOPY_FOR_TARGET
1626 OBJCOPY for the target
1627 OBJDUMP_FOR_TARGET
1628 OBJDUMP for the target
1629 RANLIB_FOR_TARGET
1630 RANLIB for the target
1631 READELF_FOR_TARGET
1632 READELF for the target
1633 STRIP_FOR_TARGET
1634 STRIP for the target
1635 WINDRES_FOR_TARGET
1636 WINDRES for the target
1637 WINDMC_FOR_TARGET
1638 WINDMC for the target
1640 Use these variables to override the choices made by `configure' or to help
1641 it to find libraries and programs with nonstandard names/locations.
1643 Report bugs to the package provider.
1644 _ACEOF
1645 ac_status=$?
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
1654 ac_builddir=.
1656 case "$ac_dir" in
1657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666 esac
1667 ac_abs_top_builddir=$ac_pwd
1668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669 # for backward compatibility:
1670 ac_top_builddir=$ac_top_build_prefix
1672 case $srcdir in
1673 .) # We are building in place.
1674 ac_srcdir=.
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1678 ac_srcdir=$srcdir$ac_dir_suffix;
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 esac
1686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1696 else
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1700 done
1703 test -n "$ac_init_help" && exit $ac_status
1704 if $ac_init_version; then
1705 cat <<\_ACEOF
1706 configure
1707 generated by GNU Autoconf 2.64
1709 Copyright (C) 2009 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713 exit
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1751 ac_retval=1
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1756 } # ac_fn_c_try_compile
1758 # ac_fn_cxx_try_compile LINENO
1759 # ----------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_cxx_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=1
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1794 } # ac_fn_cxx_try_compile
1796 # ac_fn_cxx_try_link LINENO
1797 # -------------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_link ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_retval=1
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1840 } # ac_fn_cxx_try_link
1842 # ac_fn_c_try_link LINENO
1843 # -----------------------
1844 # Try to link conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_link ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872 else
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1876 ac_retval=1
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1886 } # ac_fn_c_try_link
1887 cat >config.log <<_ACEOF
1888 This file contains any messages produced by compilers while
1889 running configure, to aid debugging if configure makes a mistake.
1891 It was created by $as_me, which was
1892 generated by GNU Autoconf 2.64. Invocation command line was
1894 $ $0 $@
1896 _ACEOF
1897 exec 5>>config.log
1899 cat <<_ASUNAME
1900 ## --------- ##
1901 ## Platform. ##
1902 ## --------- ##
1904 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1913 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1916 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1917 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1921 _ASUNAME
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 $as_echo "PATH: $as_dir"
1929 done
1930 IFS=$as_save_IFS
1932 } >&5
1934 cat >&5 <<_ACEOF
1937 ## ----------- ##
1938 ## Core tests. ##
1939 ## ----------- ##
1941 _ACEOF
1944 # Keep a trace of the command line.
1945 # Strip out --no-create and --no-recursion so they do not pile up.
1946 # Strip out --silent because we don't want to record it for future runs.
1947 # Also quote any args containing shell meta-characters.
1948 # Make two passes to allow for proper duplicate-argument suppression.
1949 ac_configure_args=
1950 ac_configure_args0=
1951 ac_configure_args1=
1952 ac_must_keep_next=false
1953 for ac_pass in 1 2
1955 for ac_arg
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1964 esac
1965 case $ac_pass in
1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1984 as_fn_append ac_configure_args " '$ac_arg'"
1986 esac
1987 done
1988 done
1989 { ac_configure_args0=; unset ac_configure_args0;}
1990 { ac_configure_args1=; unset ac_configure_args1;}
1992 # When interrupted or exit'd, cleanup temporary files, and complete
1993 # config.log. We remove comments because anyway the quotes in there
1994 # would cause problems or look ugly.
1995 # WARNING: Use '\'' to represent an apostrophe within the trap.
1996 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1997 trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
2000 echo
2002 cat <<\_ASBOX
2003 ## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##
2006 _ASBOX
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
2025 (set) 2>&1 |
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
2028 sed -n \
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2035 esac |
2036 sort
2038 echo
2040 cat <<\_ASBOX
2041 ## ----------------- ##
2042 ## Output variables. ##
2043 ## ----------------- ##
2044 _ASBOX
2045 echo
2046 for ac_var in $ac_subst_vars
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
2053 done | sort
2054 echo
2056 if test -n "$ac_subst_files"; then
2057 cat <<\_ASBOX
2058 ## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##
2061 _ASBOX
2062 echo
2063 for ac_var in $ac_subst_files
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
2070 done | sort
2071 echo
2074 if test -s confdefs.h; then
2075 cat <<\_ASBOX
2076 ## ----------- ##
2077 ## confdefs.h. ##
2078 ## ----------- ##
2079 _ASBOX
2080 echo
2081 cat confdefs.h
2082 echo
2084 test "$ac_signal" != 0 &&
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
2087 } >&5
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2090 exit $exit_status
2092 for ac_signal in 1 2 13 15; do
2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 done
2095 ac_signal=0
2097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2098 rm -f -r conftest* confdefs.h
2100 $as_echo "/* confdefs.h */" > confdefs.h
2102 # Predefined preprocessor variables.
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_NAME "$PACKAGE_NAME"
2106 _ACEOF
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110 _ACEOF
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2114 _ACEOF
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_STRING "$PACKAGE_STRING"
2118 _ACEOF
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122 _ACEOF
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_URL "$PACKAGE_URL"
2126 _ACEOF
2129 # Let the site file select an alternate cache file if it wants to.
2130 # Prefer an explicitly selected file to automatically selected ones.
2131 ac_site_file1=NONE
2132 ac_site_file2=NONE
2133 if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135 elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138 else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
2142 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2144 test "x$ac_site_file" = xNONE && continue
2145 if test -r "$ac_site_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148 sed 's/^/| /' "$ac_site_file" >&5
2149 . "$ac_site_file"
2151 done
2153 if test -r "$cache_file"; then
2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158 $as_echo "$as_me: loading cache $cache_file" >&6;}
2159 case $cache_file in
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
2162 esac
2164 else
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166 $as_echo "$as_me: creating cache $cache_file" >&6;}
2167 >$cache_file
2170 # Check that the precious variables saved in the cache have kept the same
2171 # value.
2172 ac_cache_corrupted=false
2173 for ac_var in $ac_precious_vars; do
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
2178 case $ac_old_set,$ac_new_set in
2179 set,)
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2182 ac_cache_corrupted=: ;;
2183 ,set)
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2186 ac_cache_corrupted=: ;;
2187 ,);;
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2217 esac
2219 done
2220 if $ac_cache_corrupted; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2227 ## -------------------- ##
2228 ## Main body of script. ##
2229 ## -------------------- ##
2231 ac_ext=c
2232 ac_cpp='$CPP $CPPFLAGS'
2233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 progname=$0
2246 # if PWD already has a value, it is probably wrong.
2247 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2249 # Export original configure arguments for use by sub-configures.
2250 # Quote arguments with shell meta charatcers.
2251 TOPLEVEL_CONFIGURE_ARGUMENTS=
2252 set -- "$progname" "$@"
2253 for ac_arg
2255 case "$ac_arg" in
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2260 *) ;;
2261 esac
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264 done
2265 if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2268 # Remove the initial space we just introduced and, as these will be
2269 # expanded by make, quote '$'.
2270 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2273 # Find the build, host, and target systems.
2274 ac_aux_dir=
2275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2282 done
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297 # Make sure we can run config.sub.
2298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302 $as_echo_n "checking build system type... " >&6; }
2303 if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 ac_build_alias=$build_alias
2307 test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309 test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316 $as_echo "$ac_cv_build" >&6; }
2317 case $ac_cv_build in
2318 *-*-*) ;;
2319 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320 esac
2321 build=$ac_cv_build
2322 ac_save_IFS=$IFS; IFS='-'
2323 set x $ac_cv_build
2324 shift
2325 build_cpu=$1
2326 build_vendor=$2
2327 shift; shift
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2330 build_os=$*
2331 IFS=$ac_save_IFS
2332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
2338 esac
2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
2345 esac
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
2352 esac
2357 test "$host_noncanonical" = "$target_noncanonical" &&
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
2360 program_transform_name=s,y,y,
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363 $as_echo_n "checking host system type... " >&6; }
2364 if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2369 else
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376 $as_echo "$ac_cv_host" >&6; }
2377 case $ac_cv_host in
2378 *-*-*) ;;
2379 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2380 esac
2381 host=$ac_cv_host
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_host
2384 shift
2385 host_cpu=$1
2386 host_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 host_os=$*
2391 IFS=$ac_save_IFS
2392 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396 $as_echo_n "checking target system type... " >&6; }
2397 if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2402 else
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409 $as_echo "$ac_cv_target" >&6; }
2410 case $ac_cv_target in
2411 *-*-*) ;;
2412 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413 esac
2414 target=$ac_cv_target
2415 ac_save_IFS=$IFS; IFS='-'
2416 set x $ac_cv_target
2417 shift
2418 target_cpu=$1
2419 target_vendor=$2
2420 shift; shift
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2423 target_os=$*
2424 IFS=$ac_save_IFS
2425 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2428 # The aliases save the names the user supplied, while $host etc.
2429 # will get canonicalized.
2430 test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
2433 program_prefix=${target_alias}-
2435 test "$program_prefix" != NONE &&
2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2437 # Use a double $ so make ignores it.
2438 test "$program_suffix" != NONE &&
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440 # Double any \ or $.
2441 # By default was `s,x,x', remove it if useless.
2442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447 # Get 'install' or 'install-sh' and its variants.
2448 # Find a good install program. We prefer a C program (faster),
2449 # so one script is as good as another. But avoid the broken or
2450 # incompatible versions:
2451 # SysV /etc/install, /usr/sbin/install
2452 # SunOS /usr/etc/install
2453 # IRIX /sbin/install
2454 # AIX /bin/install
2455 # AmigaOS /C/install, which installs bootblocks on floppy discs
2456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2459 # OS/2's system install, which has a completely different semantic
2460 # ./install, which can be erroneously created by make from ./install.sh.
2461 # Reject install programs that cannot install multiple files.
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2464 if test -z "$INSTALL"; then
2465 if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 # Account for people who put trailing slashes in PATH elements.
2474 case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2478 /usr/ucb/* ) ;;
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2486 if test $ac_prog = install &&
2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # AIX install. It has an incompatible calling convention.
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2494 else
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2509 done
2510 done
2512 esac
2514 done
2515 IFS=$as_save_IFS
2517 rm -rf conftest.one conftest.two conftest.dir
2520 if test "${ac_cv_path_install+set}" = set; then
2521 INSTALL=$ac_cv_path_install
2522 else
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
2525 # break other packages using the cache if that directory is
2526 # removed, or if the value is a relative name.
2527 INSTALL=$ac_install_sh
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531 $as_echo "$INSTALL" >&6; }
2533 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534 # It thinks the first close brace ends the variable substitution.
2535 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2537 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2539 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542 $as_echo_n "checking whether ln works... " >&6; }
2543 if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
2545 else
2546 rm -f conftestdata_t
2547 echo >conftestdata_f
2548 if ln conftestdata_f conftestdata_t 2>/dev/null
2549 then
2550 acx_cv_prog_LN=ln
2551 else
2552 acx_cv_prog_LN=no
2554 rm -f conftestdata_f conftestdata_t
2557 if test $acx_cv_prog_LN = no; then
2558 LN="cp"
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560 $as_echo "no, using $LN" >&6; }
2561 else
2562 LN="$acx_cv_prog_LN"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564 $as_echo "yes" >&6; }
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568 $as_echo_n "checking whether ln -s works... " >&6; }
2569 LN_S=$as_ln_s
2570 if test "$LN_S" = "ln -s"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572 $as_echo "yes" >&6; }
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575 $as_echo "no, using $LN_S" >&6; }
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580 if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2586 done
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601 # Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603 case `"$ac_path_SED" --version 2>&1` in
2604 *GNU*)
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2607 ac_count=0
2608 $as_echo_n 0123456789 >"conftest.in"
2609 while :
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2625 done
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2627 esac
2629 $ac_path_SED_found && break 3
2630 done
2631 done
2632 done
2633 IFS=$as_save_IFS
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2637 else
2638 ac_cv_path_SED=$SED
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643 $as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2645 rm -f conftest.sed
2647 for ac_prog in gawk mawk nawk awk
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2670 done
2671 done
2672 IFS=$as_save_IFS
2676 AWK=$ac_cv_prog_AWK
2677 if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2686 test -n "$AWK" && break
2687 done
2690 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2692 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693 # a relative path.
2694 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2698 # Set srcdir to "." if that's what it is.
2699 # This is important for multilib support.
2700 pwd=`${PWDCMD-pwd}`
2701 if test "${pwd}" = "${srcpwd}" ; then
2702 srcdir=.
2705 topsrcdir=$srcpwd
2707 extra_host_args=
2709 ### To add a new directory to the tree, first choose whether it is a target
2710 ### or a host dependent tool. Then put it into the appropriate list
2711 ### (library or tools, host or target), doing a dependency sort.
2713 # Subdirs will be configured in the order listed in build_configdirs,
2714 # configdirs, or target_configdirs; see the serialization section below.
2716 # Dependency sorting is only needed when *configuration* must be done in
2717 # a particular order. In all cases a dependency should be specified in
2718 # the Makefile, whether or not it's implicitly specified here.
2720 # Double entries in build_configdirs, configdirs, or target_configdirs may
2721 # cause circular dependencies and break everything horribly.
2723 # these library is used by various programs built for the build
2724 # environment
2726 build_libs="build-libiberty build-libcpp"
2728 # these tools are built for the build environment
2729 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2731 # these libraries are used by various programs built for the host environment
2733 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
2735 # these tools are built for the host environment
2736 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737 # know that we are building the simulator.
2738 # binutils, gas and ld appear in that order because it makes sense to run
2739 # "make check" in that particular order.
2740 # If --enable-gold is used, "gold" may replace "ld".
2741 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"
2743 # these libraries are built for the target environment, and are built after
2744 # the host libraries and the host tools (which may be a cross compiler)
2745 # Note that libiberty is not a target library.
2746 target_libraries="target-libgcc \
2747 target-libbacktrace \
2748 target-libgloss \
2749 target-newlib \
2750 target-libgomp \
2751 target-libcilkrts \
2752 target-liboffloadmic \
2753 target-libatomic \
2754 target-libitm \
2755 target-libstdc++-v3 \
2756 target-libsanitizer \
2757 target-libvtv \
2758 target-libmpx \
2759 target-libssp \
2760 target-libquadmath \
2761 target-libgfortran \
2762 target-libffi \
2763 target-libobjc \
2764 target-libada \
2765 target-libgo"
2767 # these tools are built using the target libraries, and are intended to
2768 # run only in the target environment
2770 # note: any program that *uses* libraries that are in the "target_libraries"
2771 # list belongs in this list.
2773 target_tools="target-rda"
2775 ################################################################################
2777 ## All tools belong in one of the four categories, and are assigned above
2778 ## We assign ${configdirs} this way to remove all embedded newlines. This
2779 ## is important because configure will choke if they ever get through.
2780 ## ${configdirs} is directories we build using the host tools.
2781 ## ${target_configdirs} is directories we build using the target tools.
2782 configdirs=`echo ${host_libs} ${host_tools}`
2783 target_configdirs=`echo ${target_libraries} ${target_tools}`
2784 build_configdirs=`echo ${build_libs} ${build_tools}`
2788 ################################################################################
2790 srcname="gnu development package"
2792 # This gets set non-empty for some net releases of packages.
2793 appdirs=""
2795 # Define is_cross_compiler to save on calls to 'test'.
2796 is_cross_compiler=
2797 if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
2799 else
2800 is_cross_compiler=yes
2803 # Find the build and target subdir names.
2805 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806 # have matching libraries, they should use host libraries: Makefile.tpl
2807 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808 # However, they still use the build modules, because the corresponding
2809 # host modules (e.g. bison) are only built for the host when bootstrap
2810 # finishes. So:
2811 # - build_subdir is where we find build modules, and never changes.
2812 # - build_libsubdir is where we find build libraries, and can be overridden.
2814 # Prefix 'build-' so this never conflicts with target_subdir.
2815 build_subdir="build-${build_noncanonical}"
2817 # Check whether --with-build-libsubdir was given.
2818 if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
2820 else
2821 build_libsubdir="$build_subdir"
2824 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825 if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828 else
2829 host_subdir=.
2831 # No prefix.
2832 target_subdir=${target_noncanonical}
2834 # Be sure to cover against remnants of an in-tree build.
2835 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840 # Skipdirs are removed silently.
2841 skipdirs=
2842 # Noconfigdirs are removed loudly.
2843 noconfigdirs=""
2845 use_gnu_ld=
2846 # Make sure we don't let GNU ld be added if we didn't want it.
2847 if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
2849 noconfigdirs="$noconfigdirs ld gold"
2852 use_gnu_as=
2853 # Make sure we don't let GNU as be added if we didn't want it.
2854 if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
2859 use_included_zlib=
2861 # Check whether --with-system-zlib was given.
2862 if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2866 # Make sure we don't let ZLIB be added if we didn't want it.
2867 if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2872 # some tools are so dependent upon X11 that if we're not building with X,
2873 # it's not even worth trying to configure, much less build, that tool.
2875 case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2878 skipdirs="${skipdirs} tk itcl libgui"
2879 # We won't be able to build gdbtk without X.
2880 enable_gdbtk=no
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883 esac
2885 # Some are only suitable for cross toolchains.
2886 # Remove these if host=target.
2887 cross_only="target-libgloss target-newlib target-opcodes"
2889 case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
2891 esac
2893 # If both --with-headers and --with-libs are specified, default to
2894 # --without-newlib.
2895 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2902 # Recognize --with-newlib/--without-newlib.
2903 case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906 esac
2908 # Check whether --enable-as-accelerator-for was given.
2909 if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2914 # Check whether --enable-offload-targets was given.
2915 if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2921 else
2922 enable_offload_targets=
2926 # Handle --enable-gold, --enable-ld.
2927 # --disable-gold [--enable-ld]
2928 # Build only ld. Default option.
2929 # --enable-gold [--enable-ld]
2930 # Build both gold and ld. Install gold as "ld.gold", install ld
2931 # as "ld.bfd" and "ld".
2932 # --enable-gold=default [--enable-ld]
2933 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2934 # install ld as "ld.bfd".
2935 # --enable-gold[=default] --disable-ld
2936 # Build only gold, which is then installed as both "ld.gold" and "ld".
2937 # --enable-gold --enable-ld=default
2938 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939 # and ld.bfd).
2940 # In other words, ld is default
2941 # --enable-gold=default --enable-ld=default
2942 # Error.
2944 default_ld=
2945 # Check whether --enable-gold was given.
2946 if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
2948 else
2949 ENABLE_GOLD=no
2952 case "${ENABLE_GOLD}" in
2953 yes|default)
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2965 is_elf=yes
2967 esac
2968 esac
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
2972 case "${target}" in
2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2979 ENABLE_GOLD=yes
2981 esac
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2989 esac
2991 # Check whether --enable-ld was given.
2992 if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994 else
2995 ENABLE_LD=yes
2999 case "${ENABLE_LD}" in
3000 default)
3001 if test x${default_ld} != x; then
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005 yes)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3017 esac
3019 # PR gas/19109
3020 # Decide the default method for compressing debug sections.
3021 # Provide a configure time option to override our default.
3022 # Check whether --enable-compressed_debug_sections was given.
3023 if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3029 else
3030 enable_compressed_debug_sections=
3034 # Configure extra directories which are host specific
3036 case "${host}" in
3037 *-cygwin*)
3038 configdirs="$configdirs libtermcap" ;;
3039 esac
3041 # A target can indicate whether a language isn't supported for some reason.
3042 # Only spaces may be used in this macro; not newlines or tabs.
3043 unsupported_languages=
3045 # Remove more programs from consideration, based on the host or
3046 # target this usually means that a port of the program doesn't
3047 # exist yet.
3049 case "${host}" in
3050 i[3456789]86-*-msdosdjgpp*)
3051 noconfigdirs="$noconfigdirs tcl tk itcl"
3053 esac
3056 # Check whether --enable-libquadmath was given.
3057 if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3059 else
3060 ENABLE_LIBQUADMATH=yes
3063 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3068 # Check whether --enable-libquadmath-support was given.
3069 if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3071 else
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3075 enable_libquadmath_support=
3076 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3081 # Check whether --enable-libada was given.
3082 if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3084 else
3085 ENABLE_LIBADA=yes
3088 if test "${ENABLE_LIBADA}" != "yes" ; then
3089 noconfigdirs="$noconfigdirs gnattools"
3092 # Check whether --enable-libssp was given.
3093 if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3095 else
3096 ENABLE_LIBSSP=yes
3100 # Check whether --enable-libstdcxx was given.
3101 if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3103 else
3104 ENABLE_LIBSTDCXX=default
3107 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3111 # If this is accelerator compiler and its target is intelmic we enable
3112 # target liboffloadmic by default. If this is compiler with offloading
3113 # for intelmic we enable host liboffloadmic by default. Otherwise
3114 # liboffloadmic is disabled by default.
3115 # Check whether --enable-liboffloadmic was given.
3116 if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3118 no | host | target)
3119 enable_liboffloadmic=$enableval ;;
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3122 esac
3123 else
3124 if test x"$enable_as_accelerator_for" != x; then
3125 case "${target}" in
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3131 enable_liboffloadmic=no
3133 esac
3134 else
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3141 enable_liboffloadmic=no
3143 esac
3149 # Enable libgomp by default on hosted POSIX systems, and a few others.
3150 if test x$enable_libgomp = x ; then
3151 case "${target}" in
3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3156 *-*-solaris2* | *-*-hpux11*)
3158 *-*-darwin* | *-*-aix*)
3160 nvptx*-*-*)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3165 esac
3168 # Disable libatomic on unsupported systems.
3169 if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172 $as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182 $as_echo "yes" >&6; }
3187 # Disable libcilkrts on unsupported systems.
3188 if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191 $as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3206 # Disable liboffloadmic on unsupported systems.
3207 if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210 $as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220 $as_echo "yes" >&6; }
3225 # Disable libitm on unsupported systems.
3226 if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3229 $as_echo_n "checking for libitm support... " >&6; }
3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libitm"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239 $as_echo "yes" >&6; }
3244 # Disable libsanitizer on unsupported systems.
3245 if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248 $as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3263 # Disable libvtv on unsupported systems.
3264 if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267 $as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
3270 test "$VTV_SUPPORTED" != "yes")
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277 $as_echo "yes" >&6; }
3283 # Enable libmpx on supported systems by request.
3284 if test -d ${srcdir}/libmpx; then
3285 if test x$enable_libmpx = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287 $as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3304 # Disable libquadmath for some systems.
3305 case "${target}" in
3306 avr-*-*)
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3314 esac
3316 # Disable libssp for some systems.
3317 case "${target}" in
3318 avr-*-*)
3319 # No hosted I/O support.
3320 noconfigdirs="$noconfigdirs target-libssp"
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
3325 rl78-*-*)
3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
3329 noconfigdirs="$noconfigdirs target-libssp"
3331 visium-*-*)
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3335 esac
3337 # Disable libstdc++-v3 for some systems.
3338 # Allow user to override this if they pass --enable-libstdc++-v3
3339 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3340 case "${target}" in
3341 *-*-vxworks*)
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3355 esac
3358 # Disable Fortran for some systems.
3359 case "${target}" in
3360 mmix-*-*)
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3364 esac
3366 # Disable libffi for some systems.
3367 case "${target}" in
3368 powerpc-*-darwin*)
3370 i[3456789]86-*-darwin*)
3372 x86_64-*-darwin[912]*)
3374 *-*-darwin*)
3375 noconfigdirs="$noconfigdirs target-libffi"
3377 *-*-netware*)
3378 noconfigdirs="$noconfigdirs target-libffi"
3380 *-*-phoenix*)
3381 noconfigdirs="$noconfigdirs target-libffi"
3383 *-*-rtems*)
3384 noconfigdirs="$noconfigdirs target-libffi"
3386 *-*-tpf*)
3387 noconfigdirs="$noconfigdirs target-libffi"
3389 *-*-uclinux*)
3390 noconfigdirs="$noconfigdirs target-libffi"
3392 *-*-vxworks*)
3393 noconfigdirs="$noconfigdirs target-libffi"
3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3398 alpha*-*-*vms*)
3399 noconfigdirs="$noconfigdirs target-libffi"
3401 arm*-*-freebsd*)
3402 noconfigdirs="$noconfigdirs target-libffi"
3404 arm-wince-pe)
3405 noconfigdirs="$noconfigdirs target-libffi"
3407 arm*-*-symbianelf*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3410 cris-*-* | crisv32-*-*)
3411 case "${target}" in
3412 *-*-linux*)
3414 *) # See PR46792 regarding target-libffi.
3415 noconfigdirs="$noconfigdirs target-libffi";;
3416 esac
3418 hppa*64*-*-hpux*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3421 hppa*-hp-hpux11*)
3423 hppa*-*-hpux*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3426 ia64*-*-*vms*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3429 i[3456789]86-w64-mingw*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3432 i[3456789]86-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3435 x86_64-*-mingw*)
3436 noconfigdirs="$noconfigdirs target-libffi"
3438 mmix-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3441 powerpc-*-aix*)
3442 # copied from rs6000-*-* entry
3443 noconfigdirs="$noconfigdirs target-libffi"
3445 rs6000-*-aix*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3448 ft32-*-*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3451 *-*-lynxos*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3454 esac
3456 # Disable the go frontend on systems where it is known to not work. Please keep
3457 # this in sync with contrib/config-list.mk.
3458 case "${target}" in
3459 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3462 esac
3464 # Disable libgo for some systems where it is known to not work.
3465 # For testing, you can easily override this with --enable-libgo.
3466 if test x$enable_libgo = x; then
3467 case "${target}" in
3468 *-*-darwin*)
3469 # PR 46986
3470 noconfigdirs="$noconfigdirs target-libgo"
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3475 *-*-aix*)
3476 noconfigdirs="$noconfigdirs target-libgo"
3478 esac
3481 # Default libgloss CPU subdirectory.
3482 libgloss_dir="$target_cpu"
3484 case "${target}" in
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3486 libgloss_dir=wince
3488 aarch64*-*-* )
3489 libgloss_dir=aarch64
3491 arm*-*-*)
3492 libgloss_dir=arm
3494 cris-*-* | crisv32-*-*)
3495 libgloss_dir=cris
3497 hppa*-*-*)
3498 libgloss_dir=pa
3500 i[3456789]86-*-*)
3501 libgloss_dir=i386
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3506 m68*-*-* | fido-*-*)
3507 libgloss_dir=m68k
3509 mips*-*-*)
3510 libgloss_dir=mips
3512 powerpc*-*-*)
3513 libgloss_dir=rs6000
3515 sparc*-*-*)
3516 libgloss_dir=sparc
3518 esac
3520 # Disable newlib and libgloss for various target OSes.
3521 case "${target}" in
3522 alpha*-dec-osf*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3543 sparc-*-sunos4*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3546 *-*-aix*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3549 *-*-beos*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3552 *-*-chorusos)
3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3555 *-*-dragonfly*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3558 *-*-freebsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 *-*-lynxos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 *-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 *-*-netbsd*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3573 *-*-netware*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3576 *-*-tpf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3579 *-*-uclinux*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3582 *-*-vxworks*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 esac
3587 case "${target}" in
3588 *-*-chorusos)
3590 aarch64-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3594 arm-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3598 powerpc-*-darwin*)
3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3600 noconfigdirs="$noconfigdirs sim target-rda"
3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3606 x86_64-*-darwin[912]*)
3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3610 *-*-darwin*)
3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
3614 *-*-dragonfly*)
3616 *-*-freebsd*)
3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3619 with_gmp=/usr/local
3622 *-*-kaos*)
3623 # Remove unsupported stuff on all kaOS configurations.
3624 noconfigdirs="$noconfigdirs target-libgloss"
3626 *-*-netbsd*)
3628 *-*-netware*)
3630 *-*-phoenix*)
3631 noconfigdirs="$noconfigdirs target-libgloss"
3633 *-*-rtems*)
3634 noconfigdirs="$noconfigdirs target-libgloss"
3635 # this is not caught below because this stanza matches earlier
3636 case $target in
3637 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3638 esac
3640 # The tpf target doesn't support gdb yet.
3641 *-*-tpf*)
3642 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3644 *-*-uclinux*)
3645 noconfigdirs="$noconfigdirs target-rda"
3647 *-*-vxworks*)
3649 alpha*-dec-osf*)
3650 # ld works, but does not support shared libraries.
3651 # gas doesn't generate exception information.
3652 noconfigdirs="$noconfigdirs gas ld"
3654 alpha*-*-*vms*)
3655 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3657 alpha*-*-*)
3658 # newlib is not 64 bit ready
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3662 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3664 arc*-*-*)
3665 noconfigdirs="$noconfigdirs sim"
3667 arm-*-pe*)
3668 noconfigdirs="$noconfigdirs target-libgloss"
3670 arm-*-riscix*)
3671 noconfigdirs="$noconfigdirs ld target-libgloss"
3673 avr-*-*)
3674 if test x${with_avrlibc} != xno; then
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 c4x-*-* | tic4x-*-*)
3679 noconfigdirs="$noconfigdirs target-libgloss"
3681 tic54x-*-*)
3682 noconfigdirs="$noconfigdirs target-libgloss gdb"
3684 d10v-*-*)
3685 noconfigdirs="$noconfigdirs target-libgloss"
3687 d30v-*-*)
3688 noconfigdirs="$noconfigdirs gdb"
3690 fr30-*-elf*)
3691 noconfigdirs="$noconfigdirs gdb"
3693 ft32-*-*)
3694 noconfigdirs="$noconfigdirs target-rda gprof"
3696 moxie-*-*)
3697 noconfigdirs="$noconfigdirs"
3699 h8300*-*-*)
3700 noconfigdirs="$noconfigdirs target-libgloss"
3702 h8500-*-*)
3703 noconfigdirs="$noconfigdirs target-libgloss"
3705 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3707 hppa*64*-*-hpux*)
3708 noconfigdirs="$noconfigdirs gdb"
3710 hppa*-*-hpux11*)
3711 noconfigdirs="$noconfigdirs gdb ld"
3713 hppa*64*-*-linux*)
3715 hppa*-*-linux*)
3717 hppa*-*-*elf* | \
3718 hppa*-*-lites* | \
3719 hppa*-*-openbsd* | \
3720 hppa*64*-*-*)
3722 hppa*-*-pro*)
3724 hppa*-*-*)
3725 noconfigdirs="$noconfigdirs ld"
3727 i960-*-*)
3728 noconfigdirs="$noconfigdirs gdb"
3730 ia64*-*-elf*)
3731 # No gdb support yet.
3732 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3734 ia64*-**-hpux*)
3735 # No ld support yet.
3736 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3738 ia64*-*-*vms*)
3739 # No ld support yet.
3740 noconfigdirs="$noconfigdirs libgui itcl ld"
3742 i[3456789]86-w64-mingw*)
3744 i[3456789]86-*-mingw*)
3745 target_configdirs="$target_configdirs target-winsup"
3747 *-*-cygwin*)
3748 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3749 noconfigdirs="$noconfigdirs target-libgloss"
3750 # always build newlib if winsup directory is present.
3751 if test -d "$srcdir/winsup/cygwin"; then
3752 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3753 elif test -d "$srcdir/newlib"; then
3754 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3757 i[3456789]86-*-pe)
3758 noconfigdirs="$noconfigdirs target-libgloss"
3760 i[3456789]86-*-sco3.2v5*)
3761 # The linker does not yet know about weak symbols in COFF,
3762 # and is not configured to handle mixed ELF and COFF.
3763 noconfigdirs="$noconfigdirs ld target-libgloss"
3765 i[3456789]86-*-sco*)
3766 noconfigdirs="$noconfigdirs gprof target-libgloss"
3768 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3769 noconfigdirs="$noconfigdirs target-libgloss"
3771 i[3456789]86-*-sysv4*)
3772 noconfigdirs="$noconfigdirs target-libgloss"
3774 i[3456789]86-*-beos*)
3775 noconfigdirs="$noconfigdirs gdb"
3777 i[3456789]86-*-rdos*)
3778 noconfigdirs="$noconfigdirs gdb"
3780 mmix-*-*)
3781 noconfigdirs="$noconfigdirs gdb"
3783 mt-*-*)
3784 noconfigdirs="$noconfigdirs sim"
3786 powerpc-*-aix*)
3787 # copied from rs6000-*-* entry
3788 noconfigdirs="$noconfigdirs gprof"
3790 powerpc*-*-winnt* | powerpc*-*-pe*)
3791 target_configdirs="$target_configdirs target-winsup"
3792 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3793 # always build newlib.
3794 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3796 # This is temporary until we can link against shared libraries
3797 powerpcle-*-solaris*)
3798 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3800 powerpc-*-beos*)
3801 noconfigdirs="$noconfigdirs gdb"
3803 rs6000-*-lynxos*)
3804 noconfigdirs="$noconfigdirs gprof"
3806 rs6000-*-aix*)
3807 noconfigdirs="$noconfigdirs gprof"
3809 rs6000-*-*)
3810 noconfigdirs="$noconfigdirs gprof"
3812 m68k-apollo-*)
3813 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3815 microblaze*)
3816 noconfigdirs="$noconfigdirs gprof"
3818 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3819 if test x$with_newlib = xyes; then
3820 noconfigdirs="$noconfigdirs gprof"
3823 mips*-*-irix5*)
3824 noconfigdirs="$noconfigdirs gprof target-libgloss"
3826 mips*-*-irix6*)
3827 noconfigdirs="$noconfigdirs gprof target-libgloss"
3829 mips*-*-bsd*)
3830 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3832 mips*-*-linux*)
3834 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3835 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3836 noconfigdirs="$noconfigdirs ld gas gprof"
3838 mips*-*-*)
3839 noconfigdirs="$noconfigdirs gprof"
3841 nvptx*-*-*)
3842 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3844 or1k*-*-*)
3845 noconfigdirs="$noconfigdirs gdb"
3847 sh-*-*)
3848 case "${target}" in
3849 sh*-*-elf)
3852 noconfigdirs="$noconfigdirs target-libgloss" ;;
3853 esac
3855 sparc-*-sunos4*)
3856 if test x${is_cross_compiler} = xno ; then
3857 use_gnu_ld=no
3860 tic6x-*-*)
3861 noconfigdirs="$noconfigdirs sim"
3863 tilepro*-*-* | tilegx*-*-*)
3864 noconfigdirs="$noconfigdirs sim"
3866 v810-*-*)
3867 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3869 vax-*-*)
3870 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3872 esac
3874 # If we aren't building newlib, then don't build libgloss, since libgloss
3875 # depends upon some newlib header files.
3876 case "${noconfigdirs}" in
3877 *target-libgloss*) ;;
3878 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3879 esac
3881 # Work in distributions that contain no compiler tools, like Autoconf.
3882 host_makefile_frag=/dev/null
3883 if test -d ${srcdir}/config ; then
3884 case "${host}" in
3885 i[3456789]86-*-msdosdjgpp*)
3886 host_makefile_frag="config/mh-djgpp"
3888 *-cygwin*)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3891 $as_echo_n "checking to see if cat works as expected... " >&6; }
3892 echo a >cygwin-cat-check
3893 if test `cat cygwin-cat-check` = a ; then
3894 rm cygwin-cat-check
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 $as_echo "yes" >&6; }
3897 else
3898 rm cygwin-cat-check
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 as_fn_error "The cat command does not ignore carriage return characters.
3902 Please either mount the build directory in binary mode or run the following
3903 commands before running any configure script:
3904 set -o igncr
3905 export SHELLOPTS
3906 " "$LINENO" 5
3909 host_makefile_frag="config/mh-cygwin"
3911 *-mingw*)
3912 host_makefile_frag="config/mh-mingw"
3914 alpha*-linux*)
3915 host_makefile_frag="config/mh-alpha-linux"
3917 hppa*-hp-hpux10*)
3918 host_makefile_frag="config/mh-pa-hpux10"
3920 hppa*-hp-hpux*)
3921 host_makefile_frag="config/mh-pa"
3923 hppa*-*)
3924 host_makefile_frag="config/mh-pa"
3926 *-*-darwin*)
3927 host_makefile_frag="config/mh-darwin"
3929 powerpc-*-aix*)
3930 host_makefile_frag="config/mh-ppc-aix"
3932 rs6000-*-aix*)
3933 host_makefile_frag="config/mh-ppc-aix"
3935 esac
3938 if test "${build}" != "${host}" ; then
3939 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3940 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3941 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3942 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3943 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3944 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3945 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3946 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3947 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3948 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3949 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3950 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3951 else
3952 AR_FOR_BUILD="\$(AR)"
3953 AS_FOR_BUILD="\$(AS)"
3954 CC_FOR_BUILD="\$(CC)"
3955 CXX_FOR_BUILD="\$(CXX)"
3956 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3957 GOC_FOR_BUILD="\$(GOC)"
3958 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3959 LD_FOR_BUILD="\$(LD)"
3960 NM_FOR_BUILD="\$(NM)"
3961 RANLIB_FOR_BUILD="\$(RANLIB)"
3962 WINDRES_FOR_BUILD="\$(WINDRES)"
3963 WINDMC_FOR_BUILD="\$(WINDMC)"
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if test "${ac_cv_prog_CC+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3993 done
3994 done
3995 IFS=$as_save_IFS
3999 CC=$ac_cv_prog_CC
4000 if test -n "$CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 $as_echo "$CC" >&6; }
4003 else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4010 if test -z "$ac_cv_prog_CC"; then
4011 ac_ct_CC=$CC
4012 # Extract the first word of "gcc", so it can be a program name with args.
4013 set dummy gcc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_ac_ct_CC="gcc"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4033 done
4034 done
4035 IFS=$as_save_IFS
4039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040 if test -n "$ac_ct_CC"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042 $as_echo "$ac_ct_CC" >&6; }
4043 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4048 if test "x$ac_ct_CC" = x; then
4049 CC=""
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052 yes:)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055 ac_tool_warned=yes ;;
4056 esac
4057 CC=$ac_ct_CC
4059 else
4060 CC="$ac_cv_prog_CC"
4063 if test -z "$CC"; then
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4066 set dummy ${ac_tool_prefix}cc; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if test "${ac_cv_prog_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4082 ac_cv_prog_CC="${ac_tool_prefix}cc"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4086 done
4087 done
4088 IFS=$as_save_IFS
4092 CC=$ac_cv_prog_CC
4093 if test -n "$CC"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095 $as_echo "$CC" >&6; }
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4104 if test -z "$CC"; then
4105 # Extract the first word of "cc", so it can be a program name with args.
4106 set dummy cc; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if test "${ac_cv_prog_CC+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114 else
4115 ac_prog_rejected=no
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4124 ac_prog_rejected=yes
4125 continue
4127 ac_cv_prog_CC="cc"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4131 done
4132 done
4133 IFS=$as_save_IFS
4135 if test $ac_prog_rejected = yes; then
4136 # We found a bogon in the path, so make sure we never use it.
4137 set dummy $ac_cv_prog_CC
4138 shift
4139 if test $# != 0; then
4140 # We chose a different compiler from the bogus one.
4141 # However, it has the same basename, so the bogon will be chosen
4142 # first if we set CC to just the basename; use the full file name.
4143 shift
4144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4149 CC=$ac_cv_prog_CC
4150 if test -n "$CC"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152 $as_echo "$CC" >&6; }
4153 else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4160 if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
4162 for ac_prog in cl.exe
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4187 IFS=$as_save_IFS
4191 CC=$ac_cv_prog_CC
4192 if test -n "$CC"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 $as_echo "$CC" >&6; }
4195 else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4201 test -n "$CC" && break
4202 done
4204 if test -z "$CC"; then
4205 ac_ct_CC=$CC
4206 for ac_prog in cl.exe
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if test -n "$ac_ct_CC"; then
4216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_ac_ct_CC="$ac_prog"
4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4229 done
4230 done
4231 IFS=$as_save_IFS
4235 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4236 if test -n "$ac_ct_CC"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4238 $as_echo "$ac_ct_CC" >&6; }
4239 else
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4245 test -n "$ac_ct_CC" && break
4246 done
4248 if test "x$ac_ct_CC" = x; then
4249 CC=""
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252 yes:)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4256 esac
4257 CC=$ac_ct_CC
4264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266 as_fn_error "no acceptable C compiler found in \$PATH
4267 See \`config.log' for more details." "$LINENO" 5; }
4269 # Provide some information about the compiler.
4270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4271 set X $ac_compile
4272 ac_compiler=$2
4273 for ac_option in --version -v -V -qversion; do
4274 { { ac_try="$ac_compiler $ac_option >&5"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4282 ac_status=$?
4283 if test -s conftest.err; then
4284 sed '10a\
4285 ... rest of stderr output deleted ...
4286 10q' conftest.err >conftest.er1
4287 cat conftest.er1 >&5
4288 rm -f conftest.er1 conftest.err
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292 done
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4298 main ()
4302 return 0;
4304 _ACEOF
4305 ac_clean_files_save=$ac_clean_files
4306 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4307 # Try to create an executable without -o first, disregard a.out.
4308 # It will help us diagnose broken compilers, and finding out an intuition
4309 # of exeext.
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311 $as_echo_n "checking for C compiler default output file name... " >&6; }
4312 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4314 # The possible output files:
4315 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4317 ac_rmfiles=
4318 for ac_file in $ac_files
4320 case $ac_file in
4321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4323 esac
4324 done
4325 rm -f $ac_rmfiles
4327 if { { ac_try="$ac_link_default"
4328 case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_link_default") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; then :
4338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4339 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4340 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4341 # so that the user can short-circuit this test for compilers unknown to
4342 # Autoconf.
4343 for ac_file in $ac_files ''
4345 test -f "$ac_file" || continue
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4349 [ab].out )
4350 # We found the default executable, but exeext='' is most
4351 # certainly right.
4352 break;;
4353 *.* )
4354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4355 then :; else
4356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4358 # We set ac_cv_exeext here because the later test for it is not
4359 # safe: cross compilers may not add the suffix if given an `-o'
4360 # argument, so we may need to know it at that point already.
4361 # Even if this section looks crufty: it has the advantage of
4362 # actually working.
4363 break;;
4365 break;;
4366 esac
4367 done
4368 test "$ac_cv_exeext" = no && ac_cv_exeext=
4370 else
4371 ac_file=''
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4374 $as_echo "$ac_file" >&6; }
4375 if test -z "$ac_file"; then :
4376 $as_echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381 { as_fn_set_status 77
4382 as_fn_error "C compiler cannot create executables
4383 See \`config.log' for more details." "$LINENO" 5; }; }
4385 ac_exeext=$ac_cv_exeext
4387 # Check that the compiler produces executables we can run. If not, either
4388 # the compiler is broken, or we cross compile.
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4390 $as_echo_n "checking whether the C compiler works... " >&6; }
4391 # If not cross compiling, check that we can run a simple program.
4392 if test "$cross_compiling" != yes; then
4393 if { ac_try='./$ac_file'
4394 { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
4401 ac_status=$?
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
4404 cross_compiling=no
4405 else
4406 if test "$cross_compiling" = maybe; then
4407 cross_compiling=yes
4408 else
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error "cannot run C compiled programs.
4412 If you meant to cross compile, use \`--host'.
4413 See \`config.log' for more details." "$LINENO" 5; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418 $as_echo "yes" >&6; }
4420 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4421 ac_clean_files=$ac_clean_files_save
4422 # Check that the compiler produces executables we can run. If not, either
4423 # the compiler is broken, or we cross compile.
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4425 $as_echo_n "checking whether we are cross compiling... " >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4427 $as_echo "$cross_compiling" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430 $as_echo_n "checking for suffix of executables... " >&6; }
4431 if { { ac_try="$ac_link"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link") 2>&5
4439 ac_status=$?
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4444 # work properly (i.e., refer to `conftest.exe'), while it won't with
4445 # `rm'.
4446 for ac_file in conftest.exe conftest conftest.*; do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4451 break;;
4452 * ) break;;
4453 esac
4454 done
4455 else
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error "cannot compute suffix of executables: cannot compile and link
4459 See \`config.log' for more details." "$LINENO" 5; }
4461 rm -f conftest$ac_cv_exeext
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463 $as_echo "$ac_cv_exeext" >&6; }
4465 rm -f conftest.$ac_ext
4466 EXEEXT=$ac_cv_exeext
4467 ac_exeext=$EXEEXT
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4469 $as_echo_n "checking for suffix of object files... " >&6; }
4470 if test "${ac_cv_objext+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4477 main ()
4481 return 0;
4483 _ACEOF
4484 rm -f conftest.o conftest.obj
4485 if { { ac_try="$ac_compile"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491 $as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_compile") 2>&5
4493 ac_status=$?
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 for ac_file in conftest.o conftest.obj conftest.*; do
4497 test -f "$ac_file" || continue;
4498 case $ac_file in
4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4501 break;;
4502 esac
4503 done
4504 else
4505 $as_echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510 as_fn_error "cannot compute suffix of object files: cannot compile
4511 See \`config.log' for more details." "$LINENO" 5; }
4513 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4516 $as_echo "$ac_cv_objext" >&6; }
4517 OBJEXT=$ac_cv_objext
4518 ac_objext=$OBJEXT
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4521 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4528 main ()
4530 #ifndef __GNUC__
4531 choke me
4532 #endif
4535 return 0;
4537 _ACEOF
4538 if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_compiler_gnu=yes
4540 else
4541 ac_compiler_gnu=no
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4548 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550 GCC=yes
4551 else
4552 GCC=
4554 ac_test_CFLAGS=${CFLAGS+set}
4555 ac_save_CFLAGS=$CFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4557 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cc_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4563 ac_cv_prog_cc_g=no
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4569 main ()
4573 return 0;
4575 _ACEOF
4576 if ac_fn_c_try_compile "$LINENO"; then :
4577 ac_cv_prog_cc_g=yes
4578 else
4579 CFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4584 main ()
4588 return 0;
4590 _ACEOF
4591 if ac_fn_c_try_compile "$LINENO"; then :
4593 else
4594 ac_c_werror_flag=$ac_save_c_werror_flag
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4600 main ()
4604 return 0;
4606 _ACEOF
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_cv_prog_cc_g=yes
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_c_werror_flag=$ac_save_c_werror_flag
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4618 $as_echo "$ac_cv_prog_cc_g" >&6; }
4619 if test "$ac_test_CFLAGS" = set; then
4620 CFLAGS=$ac_save_CFLAGS
4621 elif test $ac_cv_prog_cc_g = yes; then
4622 if test "$GCC" = yes; then
4623 CFLAGS="-g -O2"
4624 else
4625 CFLAGS="-g"
4627 else
4628 if test "$GCC" = yes; then
4629 CFLAGS="-O2"
4630 else
4631 CFLAGS=
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4635 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4636 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 ac_cv_prog_cc_c89=no
4640 ac_save_CC=$CC
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <stdarg.h>
4644 #include <stdio.h>
4645 #include <sys/types.h>
4646 #include <sys/stat.h>
4647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4648 struct buf { int x; };
4649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4650 static char *e (p, i)
4651 char **p;
4652 int i;
4654 return p[i];
4656 static char *f (char * (*g) (char **, int), char **p, ...)
4658 char *s;
4659 va_list v;
4660 va_start (v,p);
4661 s = g (p, va_arg (v,int));
4662 va_end (v);
4663 return s;
4666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4667 function prototypes and stuff, but not '\xHH' hex character constants.
4668 These don't provoke an error unfortunately, instead are silently treated
4669 as 'x'. The following induces an error, until -std is added to get
4670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4671 array size at least. It's necessary to write '\x00'==0 to get something
4672 that's true only with -std. */
4673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4676 inside strings and character constants. */
4677 #define FOO(x) 'x'
4678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4680 int test (int i, double x);
4681 struct s1 {int (*f) (int a);};
4682 struct s2 {int (*f) (double a);};
4683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4684 int argc;
4685 char **argv;
4687 main ()
4689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4691 return 0;
4693 _ACEOF
4694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4697 CC="$ac_save_CC $ac_arg"
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_c89=$ac_arg
4701 rm -f core conftest.err conftest.$ac_objext
4702 test "x$ac_cv_prog_cc_c89" != "xno" && break
4703 done
4704 rm -f conftest.$ac_ext
4705 CC=$ac_save_CC
4708 # AC_CACHE_VAL
4709 case "x$ac_cv_prog_cc_c89" in
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4712 $as_echo "none needed" >&6; } ;;
4713 xno)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4715 $as_echo "unsupported" >&6; } ;;
4717 CC="$CC $ac_cv_prog_cc_c89"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4719 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4720 esac
4721 if test "x$ac_cv_prog_cc_c89" != xno; then :
4725 ac_ext=c
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 ac_ext=cpp
4732 ac_cpp='$CXXCPP $CPPFLAGS'
4733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4736 if test -z "$CXX"; then
4737 if test -n "$CCC"; then
4738 CXX=$CCC
4739 else
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_CXX+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$CXX"; then
4751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4764 done
4765 done
4766 IFS=$as_save_IFS
4770 CXX=$ac_cv_prog_CXX
4771 if test -n "$CXX"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4773 $as_echo "$CXX" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4780 test -n "$CXX" && break
4781 done
4783 if test -z "$CXX"; then
4784 ac_ct_CXX=$CXX
4785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$ac_ct_CXX"; then
4795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_CXX="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4815 if test -n "$ac_ct_CXX"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4817 $as_echo "$ac_ct_CXX" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$ac_ct_CXX" && break
4825 done
4827 if test "x$ac_ct_CXX" = x; then
4828 CXX="g++"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 CXX=$ac_ct_CXX
4842 # Provide some information about the compiler.
4843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4844 set X $ac_compile
4845 ac_compiler=$2
4846 for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853 $as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4855 ac_status=$?
4856 if test -s conftest.err; then
4857 sed '10a\
4858 ... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
4861 rm -f conftest.er1 conftest.err
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865 done
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4868 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4876 main ()
4878 #ifndef __GNUC__
4879 choke me
4880 #endif
4883 return 0;
4885 _ACEOF
4886 if ac_fn_cxx_try_compile "$LINENO"; then :
4887 ac_compiler_gnu=yes
4888 else
4889 ac_compiler_gnu=no
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4896 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4897 if test $ac_compiler_gnu = yes; then
4898 GXX=yes
4899 else
4900 GXX=
4902 ac_test_CXXFLAGS=${CXXFLAGS+set}
4903 ac_save_CXXFLAGS=$CXXFLAGS
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4905 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4906 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4910 ac_cxx_werror_flag=yes
4911 ac_cv_prog_cxx_g=no
4912 CXXFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4917 main ()
4921 return 0;
4923 _ACEOF
4924 if ac_fn_cxx_try_compile "$LINENO"; then :
4925 ac_cv_prog_cxx_g=yes
4926 else
4927 CXXFLAGS=""
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4932 main ()
4936 return 0;
4938 _ACEOF
4939 if ac_fn_cxx_try_compile "$LINENO"; then :
4941 else
4942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4943 CXXFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4948 main ()
4952 return 0;
4954 _ACEOF
4955 if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_cv_prog_cxx_g=yes
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4966 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4967 if test "$ac_test_CXXFLAGS" = set; then
4968 CXXFLAGS=$ac_save_CXXFLAGS
4969 elif test $ac_cv_prog_cxx_g = yes; then
4970 if test "$GXX" = yes; then
4971 CXXFLAGS="-g -O2"
4972 else
4973 CXXFLAGS="-g"
4975 else
4976 if test "$GXX" = yes; then
4977 CXXFLAGS="-O2"
4978 else
4979 CXXFLAGS=
4982 ac_ext=c
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4989 # We must set the default linker to the linker used by gcc for the correct
4990 # operation of libtool. If LD is not defined and we are using gcc, try to
4991 # set the LD default to the ld used by gcc.
4992 if test -z "$LD"; then
4993 if test "$GCC" = yes; then
4994 case $build in
4995 *-*-mingw*)
4996 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4998 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4999 esac
5000 case $gcc_prog_ld in
5001 # Accept absolute paths.
5002 [\\/]* | [A-Za-z]:[\\/]*)
5003 LD="$gcc_prog_ld" ;;
5004 esac
5008 # Check whether -static-libstdc++ -static-libgcc is supported.
5009 have_static_libs=no
5010 if test "$GCC" = yes; then
5011 saved_LDFLAGS="$LDFLAGS"
5013 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5015 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5016 ac_ext=cpp
5017 ac_cpp='$CXXCPP $CPPFLAGS'
5018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5026 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5027 #error -static-libstdc++ not implemented
5028 #endif
5029 int main() {}
5030 _ACEOF
5031 if ac_fn_cxx_try_link "$LINENO"; then :
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033 $as_echo "yes" >&6; }; have_static_libs=yes
5034 else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036 $as_echo "no" >&6; }
5038 rm -f core conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047 LDFLAGS="$saved_LDFLAGS"
5053 if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5055 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$GNATBIND"; then
5062 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5081 GNATBIND=$ac_cv_prog_GNATBIND
5082 if test -n "$GNATBIND"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5084 $as_echo "$GNATBIND" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5092 if test -z "$ac_cv_prog_GNATBIND"; then
5093 ac_ct_GNATBIND=$GNATBIND
5094 # Extract the first word of "gnatbind", so it can be a program name with args.
5095 set dummy gnatbind; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$ac_ct_GNATBIND"; then
5102 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5115 done
5116 done
5117 IFS=$as_save_IFS
5121 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5122 if test -n "$ac_ct_GNATBIND"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5124 $as_echo "$ac_ct_GNATBIND" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5130 if test "x$ac_ct_GNATBIND" = x; then
5131 GNATBIND="no"
5132 else
5133 case $cross_compiling:$ac_tool_warned in
5134 yes:)
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5138 esac
5139 GNATBIND=$ac_ct_GNATBIND
5141 else
5142 GNATBIND="$ac_cv_prog_GNATBIND"
5145 if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 if test -n "$GNATMAKE"; then
5154 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5173 GNATMAKE=$ac_cv_prog_GNATMAKE
5174 if test -n "$GNATMAKE"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5176 $as_echo "$GNATMAKE" >&6; }
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5184 if test -z "$ac_cv_prog_GNATMAKE"; then
5185 ac_ct_GNATMAKE=$GNATMAKE
5186 # Extract the first word of "gnatmake", so it can be a program name with args.
5187 set dummy gnatmake; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if test -n "$ac_ct_GNATMAKE"; then
5194 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5213 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5214 if test -n "$ac_ct_GNATMAKE"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5216 $as_echo "$ac_ct_GNATMAKE" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5222 if test "x$ac_ct_GNATMAKE" = x; then
5223 GNATMAKE="no"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231 GNATMAKE=$ac_ct_GNATMAKE
5233 else
5234 GNATMAKE="$ac_cv_prog_GNATMAKE"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5238 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5239 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat >conftest.adb <<EOF
5243 procedure conftest is begin null; end conftest;
5245 acx_cv_cc_gcc_supports_ada=no
5246 # There is a bug in old released versions of GCC which causes the
5247 # driver to exit successfully when the appropriate language module
5248 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5249 # Therefore we must check for the error message as well as an
5250 # unsuccessful exit.
5251 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5252 # given a .adb file, but produce no object file. So we must check
5253 # if an object file was really produced to guard against this.
5254 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5255 if test x"$errors" = x && test -f conftest.$ac_objext; then
5256 acx_cv_cc_gcc_supports_ada=yes
5258 rm -f conftest.*
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5261 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5263 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5264 have_gnat=yes
5265 else
5266 have_gnat=no
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5270 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5271 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 echo abfoo >t1
5275 echo cdfoo >t2
5276 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5277 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5278 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5280 else
5281 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5284 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5285 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5287 else
5288 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5291 rm t1 t2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5295 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5296 do_compare="$gcc_cv_prog_cmp_skip"
5300 # Check whether --enable-bootstrap was given.
5301 if test "${enable_bootstrap+set}" = set; then :
5302 enableval=$enable_bootstrap;
5303 else
5304 enable_bootstrap=default
5308 # Issue errors and warnings for invalid/strange bootstrap combinations.
5309 if test -r $srcdir/gcc/configure; then
5310 have_compiler=yes
5311 else
5312 have_compiler=no
5315 case "$have_compiler:$host:$target:$enable_bootstrap" in
5316 *:*:*:no) ;;
5318 # Default behavior. Enable bootstrap if we have a compiler
5319 # and we are in a native configuration.
5320 yes:$build:$build:default)
5321 enable_bootstrap=yes ;;
5323 *:*:*:default)
5324 enable_bootstrap=no ;;
5326 # We have a compiler and we are in a native configuration, bootstrap is ok
5327 yes:$build:$build:yes)
5330 # Other configurations, but we have a compiler. Assume the user knows
5331 # what he's doing.
5332 yes:*:*:yes)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5334 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5337 # No compiler: if they passed --enable-bootstrap explicitly, fail
5338 no:*:*:yes)
5339 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5341 # Fail if wrong command line
5343 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5345 esac
5347 # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5348 # C++98 compiler can still start the bootstrap.
5349 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5350 CXX="$CXX -std=gnu++98"
5353 # Used for setting $lt_cv_objdir
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5355 $as_echo_n "checking for objdir... " >&6; }
5356 if test "${lt_cv_objdir+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 rm -f .libs 2>/dev/null
5360 mkdir .libs 2>/dev/null
5361 if test -d .libs; then
5362 lt_cv_objdir=.libs
5363 else
5364 # MS-DOS does not allow filenames that begin with a dot.
5365 lt_cv_objdir=_libs
5367 rmdir .libs 2>/dev/null
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5370 $as_echo "$lt_cv_objdir" >&6; }
5371 objdir=$lt_cv_objdir
5377 cat >>confdefs.h <<_ACEOF
5378 #define LT_OBJDIR "$lt_cv_objdir/"
5379 _ACEOF
5383 # Check for GMP, MPFR and MPC
5384 gmplibs="-lmpc -lmpfr -lgmp"
5385 gmpinc=
5386 have_gmp=no
5388 # Specify a location for mpc
5389 # check for this first so it ends up on the link line before mpfr.
5391 # Check whether --with-mpc was given.
5392 if test "${with_mpc+set}" = set; then :
5393 withval=$with_mpc;
5397 # Check whether --with-mpc-include was given.
5398 if test "${with_mpc_include+set}" = set; then :
5399 withval=$with_mpc_include;
5403 # Check whether --with-mpc-lib was given.
5404 if test "${with_mpc_lib+set}" = set; then :
5405 withval=$with_mpc_lib;
5409 if test "x$with_mpc" != x; then
5410 gmplibs="-L$with_mpc/lib $gmplibs"
5411 gmpinc="-I$with_mpc/include $gmpinc"
5413 if test "x$with_mpc_include" != x; then
5414 gmpinc="-I$with_mpc_include $gmpinc"
5416 if test "x$with_mpc_lib" != x; then
5417 gmplibs="-L$with_mpc_lib $gmplibs"
5419 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5420 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5421 gmpinc='-I$$s/mpc/src '"$gmpinc"
5422 # Do not test the mpc version. Assume that it is sufficient, since
5423 # it is in the source tree, and the library has not been built yet
5424 # but it would be included on the link line in the version check below
5425 # hence making the test fail.
5426 have_gmp=yes
5429 # Specify a location for mpfr
5430 # check for this first so it ends up on the link line before gmp.
5432 # Check whether --with-mpfr-dir was given.
5433 if test "${with_mpfr_dir+set}" = set; then :
5434 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5435 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5440 # Check whether --with-mpfr was given.
5441 if test "${with_mpfr+set}" = set; then :
5442 withval=$with_mpfr;
5446 # Check whether --with-mpfr-include was given.
5447 if test "${with_mpfr_include+set}" = set; then :
5448 withval=$with_mpfr_include;
5452 # Check whether --with-mpfr-lib was given.
5453 if test "${with_mpfr_lib+set}" = set; then :
5454 withval=$with_mpfr_lib;
5458 if test "x$with_mpfr" != x; then
5459 gmplibs="-L$with_mpfr/lib $gmplibs"
5460 gmpinc="-I$with_mpfr/include $gmpinc"
5462 if test "x$with_mpfr_include" != x; then
5463 gmpinc="-I$with_mpfr_include $gmpinc"
5465 if test "x$with_mpfr_lib" != x; then
5466 gmplibs="-L$with_mpfr_lib $gmplibs"
5468 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5469 # MPFR v3.1.0 moved the sources into a src sub-directory.
5470 if ! test -d ${srcdir}/mpfr/src; then
5471 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5473 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5474 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5475 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5476 # Do not test the mpfr version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5483 # Specify a location for gmp
5485 # Check whether --with-gmp-dir was given.
5486 if test "${with_gmp_dir+set}" = set; then :
5487 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5488 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5493 # Check whether --with-gmp was given.
5494 if test "${with_gmp+set}" = set; then :
5495 withval=$with_gmp;
5499 # Check whether --with-gmp-include was given.
5500 if test "${with_gmp_include+set}" = set; then :
5501 withval=$with_gmp_include;
5505 # Check whether --with-gmp-lib was given.
5506 if test "${with_gmp_lib+set}" = set; then :
5507 withval=$with_gmp_lib;
5512 if test "x$with_gmp" != x; then
5513 gmplibs="-L$with_gmp/lib $gmplibs"
5514 gmpinc="-I$with_gmp/include $gmpinc"
5516 if test "x$with_gmp_include" != x; then
5517 gmpinc="-I$with_gmp_include $gmpinc"
5519 if test "x$with_gmp_lib" != x; then
5520 gmplibs="-L$with_gmp_lib $gmplibs"
5522 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5523 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5524 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5525 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5526 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5527 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5528 # Do not test the gmp version. Assume that it is sufficient, since
5529 # it is in the source tree, and the library has not been built yet
5530 # but it would be included on the link line in the version check below
5531 # hence making the test fail.
5532 have_gmp=yes
5535 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5536 have_gmp=yes
5537 saved_CFLAGS="$CFLAGS"
5538 CFLAGS="$CFLAGS $gmpinc"
5539 # Check for the recommended and required versions of GMP.
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5541 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include "gmp.h"
5547 main ()
5550 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5551 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5552 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5553 choke me
5554 #endif
5557 return 0;
5559 _ACEOF
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #include <gmp.h>
5565 main ()
5568 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5569 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5570 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5571 choke me
5572 #endif
5575 return 0;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5581 else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5583 $as_echo "buggy but acceptable" >&6; }
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }; have_gmp=no
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 # If we have GMP, check the MPFR version.
5593 if test x"$have_gmp" = xyes; then
5594 # Check for the recommended and required versions of MPFR.
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5596 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <gmp.h>
5600 #include <mpfr.h>
5602 main ()
5605 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5606 choke me
5607 #endif
5610 return 0;
5612 _ACEOF
5613 if ac_fn_c_try_compile "$LINENO"; then :
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <gmp.h>
5617 #include <mpfr.h>
5619 main ()
5622 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5623 choke me
5624 #endif
5627 return 0;
5629 _ACEOF
5630 if ac_fn_c_try_compile "$LINENO"; then :
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632 $as_echo "yes" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5635 $as_echo "buggy but acceptable" >&6; }
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }; have_gmp=no
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 # Check for the MPC header version.
5646 if test x"$have_gmp" = xyes ; then
5647 # Check for the recommended and required versions of MPC.
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5649 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <mpc.h>
5654 main ()
5657 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5658 choke me
5659 #endif
5662 return 0;
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <mpc.h>
5670 main ()
5673 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5674 choke me
5675 #endif
5678 return 0;
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5683 $as_echo "yes" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5686 $as_echo "buggy but acceptable" >&6; }
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }; have_gmp=no
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 # Now check the MPFR library.
5697 if test x"$have_gmp" = xyes; then
5698 saved_LIBS="$LIBS"
5699 LIBS="$LIBS $gmplibs"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5701 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <mpc.h>
5706 main ()
5709 mpfr_t n;
5710 mpfr_t x;
5711 mpc_t c;
5712 int t;
5713 mpfr_init (n);
5714 mpfr_init (x);
5715 mpfr_atan2 (n, n, x, GMP_RNDN);
5716 mpfr_erfc (n, x, GMP_RNDN);
5717 mpfr_subnormalize (x, t, GMP_RNDN);
5718 mpfr_clear(n);
5719 mpfr_clear(x);
5720 mpc_init2 (c, 53);
5721 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5722 mpc_cosh (c, c, MPC_RNDNN);
5723 mpc_pow (c, c, c, MPC_RNDNN);
5724 mpc_acosh (c, c, MPC_RNDNN);
5725 mpc_clear (c);
5728 return 0;
5730 _ACEOF
5731 if ac_fn_c_try_link "$LINENO"; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 $as_echo "yes" >&6; }
5734 else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }; have_gmp=no
5738 rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
5740 LIBS="$saved_LIBS"
5743 CFLAGS="$saved_CFLAGS"
5745 # The library versions listed in the error message below should match
5746 # the HARD-minimums enforced above.
5747 if test x$have_gmp != xyes; then
5748 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5749 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5750 their locations. Source code for these libraries can be found at
5751 their respective hosting sites as well as at
5752 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5753 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5754 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5755 make sure that you have installed both the libraries and the header
5756 files. They may be located in separate packages." "$LINENO" 5
5760 # Flags needed for both GMP, MPFR and/or MPC.
5768 # Libraries to use for stage1 or when not bootstrapping.
5770 # Check whether --with-stage1-libs was given.
5771 if test "${with_stage1_libs+set}" = set; then :
5772 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5773 stage1_libs=
5774 else
5775 stage1_libs=$withval
5777 else
5778 stage1_libs=
5783 # Linker flags to use for stage1 or when not bootstrapping.
5785 # Check whether --with-stage1-ldflags was given.
5786 if test "${with_stage1_ldflags+set}" = set; then :
5787 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5788 stage1_ldflags=
5789 else
5790 stage1_ldflags=$withval
5792 else
5793 stage1_ldflags=
5794 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5795 # if supported. But if the user explicitly specified the libraries to use,
5796 # trust that they are doing what they want.
5797 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5798 stage1_ldflags="-static-libstdc++ -static-libgcc"
5804 # Libraries to use for stage2 and later builds.
5806 # Check whether --with-boot-libs was given.
5807 if test "${with_boot_libs+set}" = set; then :
5808 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5809 poststage1_libs=
5810 else
5811 poststage1_libs=$withval
5813 else
5814 poststage1_libs=
5819 # Linker flags to use for stage2 and later builds.
5821 # Check whether --with-boot-ldflags was given.
5822 if test "${with_boot_ldflags+set}" = set; then :
5823 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5824 poststage1_ldflags=
5825 else
5826 poststage1_ldflags=$withval
5828 else
5829 poststage1_ldflags=
5830 # In stages 2 and 3, default to linking libstdc++ and libgcc
5831 # statically. But if the user explicitly specified the libraries to
5832 # use, trust that they are doing what they want.
5833 if test "$poststage1_libs" = ""; then
5834 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5840 # GCC GRAPHITE dependency isl.
5841 # Basic setup is inlined here, actual checks are in config/isl.m4
5844 # Check whether --with-isl was given.
5845 if test "${with_isl+set}" = set; then :
5846 withval=$with_isl;
5850 # Treat --without-isl as a request to disable
5851 # GRAPHITE support and skip all following checks.
5852 if test "x$with_isl" != "xno"; then
5853 # Check for isl
5856 # Check whether --with-isl-include was given.
5857 if test "${with_isl_include+set}" = set; then :
5858 withval=$with_isl_include;
5862 # Check whether --with-isl-lib was given.
5863 if test "${with_isl_lib+set}" = set; then :
5864 withval=$with_isl_lib;
5868 # Check whether --enable-isl-version-check was given.
5869 if test "${enable_isl_version_check+set}" = set; then :
5870 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5871 else
5872 ENABLE_ISL_CHECK=yes
5876 # Initialize isllibs and islinc.
5877 case $with_isl in
5879 isllibs=
5880 islinc=
5882 "" | yes)
5885 isllibs="-L$with_isl/lib"
5886 islinc="-I$with_isl/include"
5888 esac
5889 if test "x${with_isl_include}" != x ; then
5890 islinc="-I$with_isl_include"
5892 if test "x${with_isl_lib}" != x; then
5893 isllibs="-L$with_isl_lib"
5895 if test "x${islinc}" = x && test "x${isllibs}" = x \
5896 && test -d ${srcdir}/isl; then
5897 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5898 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5899 ENABLE_ISL_CHECK=no
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5901 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
5904 isllibs="${isllibs} -lisl"
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5918 $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 #include <isl/ctx.h>
5923 main ()
5925 isl_ctx_get_max_operations (isl_ctx_alloc ());
5927 return 0;
5929 _ACEOF
5930 if ac_fn_c_try_link "$LINENO"; then :
5931 gcc_cv_isl=yes
5932 else
5933 gcc_cv_isl=no
5935 rm -f core conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5938 $as_echo "$gcc_cv_isl" >&6; }
5940 if test "${gcc_cv_isl}" = no ; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5942 $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5946 $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949 #include <isl/schedule.h>
5951 main ()
5953 isl_options_set_schedule_serialize_sccs (NULL, 0);
5955 return 0;
5957 _ACEOF
5958 if ac_fn_c_try_link "$LINENO"; then :
5959 ac_has_isl_options_set_schedule_serialize_sccs=yes
5960 else
5961 ac_has_isl_options_set_schedule_serialize_sccs=no
5963 rm -f core conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5966 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5968 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5969 islver="0.15"
5973 CFLAGS=$_isl_saved_CFLAGS
5974 LDFLAGS=$_isl_saved_LDFLAGS
5975 LIBS=$_isl_saved_LIBS
5983 if test "x${with_isl}" = xno; then
5984 graphite_requested=no
5985 elif test "x${with_isl}" != x \
5986 || test "x${with_isl_include}" != x \
5987 || test "x${with_isl_lib}" != x ; then
5988 graphite_requested=yes
5989 else
5990 graphite_requested=no
5995 if test "${gcc_cv_isl}" = no ; then
5996 isllibs=
5997 islinc=
6000 if test "${graphite_requested}" = yes \
6001 && test "x${isllibs}" = x \
6002 && test "x${islinc}" = x ; then
6004 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
6010 # If the isl check failed, disable builds of in-tree variant of isl
6011 if test "x$with_isl" = xno ||
6012 test "x$gcc_cv_isl" = xno; then
6013 noconfigdirs="$noconfigdirs isl"
6014 islinc=
6020 # Check for LTO support.
6021 # Check whether --enable-lto was given.
6022 if test "${enable_lto+set}" = set; then :
6023 enableval=$enable_lto; enable_lto=$enableval
6024 else
6025 enable_lto=yes; default_enable_lto=yes
6032 target_elf=no
6033 case $target in
6034 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6035 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6036 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
6037 nvptx-*-none)
6038 target_elf=no
6041 target_elf=yes
6043 esac
6045 if test $target_elf = yes; then :
6046 # ELF platforms build the lto-plugin always.
6047 build_lto_plugin=yes
6049 else
6050 if test x"$default_enable_lto" = x"yes" ; then
6051 case $target in
6052 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
6053 # On other non-ELF platforms, LTO has yet to be validated.
6054 *) enable_lto=no ;;
6055 esac
6056 else
6057 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6058 # It would also be nice to check the binutils support, but we don't
6059 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6060 # warn during gcc/ subconfigure; unless you're bootstrapping with
6061 # -flto it won't be needed until after installation anyway.
6062 case $target in
6063 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
6064 *) if test x"$enable_lto" = x"yes"; then
6065 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6068 esac
6070 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6071 # Build it unless LTO was explicitly disabled.
6072 case $target in
6073 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6074 *) ;;
6075 esac
6080 # Check whether --enable-linker-plugin-configure-flags was given.
6081 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6082 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6083 else
6084 extra_linker_plugin_configure_flags=
6088 # Check whether --enable-linker-plugin-flags was given.
6089 if test "${enable_linker_plugin_flags+set}" = set; then :
6090 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6091 else
6092 extra_linker_plugin_flags=
6098 # By default, C and C++ are the only stage 1 languages.
6099 stage1_languages=,c,
6101 # Target libraries that we bootstrap.
6102 bootstrap_target_libs=,target-libgcc,
6104 # Figure out what language subdirectories are present.
6105 # Look if the user specified --enable-languages="..."; if not, use
6106 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6107 # go away some day.
6108 # NB: embedded tabs in this IF block -- do not untabify
6109 if test -d ${srcdir}/gcc; then
6110 if test x"${enable_languages+set}" != xset; then
6111 if test x"${LANGUAGES+set}" = xset; then
6112 enable_languages="${LANGUAGES}"
6113 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6114 else
6115 enable_languages=all
6117 else
6118 if test x"${enable_languages}" = x ||
6119 test x"${enable_languages}" = xyes;
6120 then
6121 echo configure.ac: --enable-languages needs at least one language argument 1>&2
6122 exit 1
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6127 # 'f95' is the old name for the 'fortran' language. We issue a warning
6128 # and make the substitution.
6129 case ,${enable_languages}, in
6130 *,f95,*)
6131 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6132 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6134 esac
6136 # If bootstrapping, C++ must be enabled.
6137 case ",$enable_languages,:$enable_bootstrap" in
6138 *,c++,*:*) ;;
6139 *:yes)
6140 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6141 enable_languages="${enable_languages},c++"
6142 else
6143 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6146 esac
6148 # First scan to see if an enabled language requires some other language.
6149 # We assume that a given config-lang.in will list all the language
6150 # front ends it requires, even if some are required indirectly.
6151 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6152 case ${lang_frag} in
6153 ..) ;;
6154 # The odd quoting in the next line works around
6155 # an apparent bug in bash 1.12 on linux.
6156 ${srcdir}/gcc/[*]/config-lang.in) ;;
6158 # From the config-lang.in, get $language, $lang_requires, and
6159 # $lang_requires_boot_languages.
6160 language=
6161 lang_requires=
6162 lang_requires_boot_languages=
6163 . ${lang_frag}
6164 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6165 case ,${enable_languages}, in
6166 *,$other,*) ;;
6167 *,all,*) ;;
6168 *,$language,*)
6169 echo " \`$other' language required by \`$language'; enabling" 1>&2
6170 enable_languages="${enable_languages},${other}"
6172 esac
6173 done
6174 for other in ${lang_requires_boot_languages} ; do
6175 if test "$other" != "c"; then
6176 case ,${enable_stage1_languages}, in
6177 *,$other,*) ;;
6178 *,all,*) ;;
6180 case ,${enable_languages}, in
6181 *,$language,*)
6182 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6183 enable_stage1_languages="$enable_stage1_languages,${other}"
6185 esac
6187 esac
6189 done
6191 esac
6192 done
6194 new_enable_languages=,c,
6196 # If LTO is enabled, add the LTO front end.
6197 if test "$enable_lto" = "yes" ; then
6198 case ,${enable_languages}, in
6199 *,lto,*) ;;
6200 *) enable_languages="${enable_languages},lto" ;;
6201 esac
6202 if test "${build_lto_plugin}" = "yes" ; then
6203 configdirs="$configdirs lto-plugin"
6207 # If we're building an offloading compiler, add the LTO front end.
6208 if test x"$enable_as_accelerator_for" != x ; then
6209 case ,${enable_languages}, in
6210 *,lto,*) ;;
6211 *) enable_languages="${enable_languages},lto" ;;
6212 esac
6215 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6216 potential_languages=,c,
6218 enabled_target_libs=
6219 disabled_target_libs=
6221 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6222 case ${lang_frag} in
6223 ..) ;;
6224 # The odd quoting in the next line works around
6225 # an apparent bug in bash 1.12 on linux.
6226 ${srcdir}/gcc/[*]/config-lang.in) ;;
6228 # From the config-lang.in, get $language, $target_libs,
6229 # $lang_dirs, $boot_language, and $build_by_default
6230 language=
6231 target_libs=
6232 lang_dirs=
6233 subdir_requires=
6234 boot_language=no
6235 build_by_default=yes
6236 . ${lang_frag}
6237 if test x${language} = x; then
6238 echo "${lang_frag} doesn't set \$language." 1>&2
6239 exit 1
6242 if test "$language" = "c++"; then
6243 boot_language=yes
6246 add_this_lang=no
6247 case ,${enable_languages}, in
6248 *,${language},*)
6249 # Language was explicitly selected; include it
6250 # unless it is C, which is enabled by default.
6251 if test "$language" != "c"; then
6252 add_this_lang=yes
6255 *,all,*)
6256 # 'all' was selected, select it if it is a default language
6257 if test "$language" != "c"; then
6258 add_this_lang=${build_by_default}
6261 esac
6263 # Disable languages that need other directories if these aren't available.
6264 for i in $subdir_requires; do
6265 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6266 case ,${enable_languages}, in
6267 *,${language},*)
6268 # Specifically requested language; tell them.
6269 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6272 # Silently disable.
6273 add_this_lang=unsupported
6275 esac
6276 done
6278 # Disable Ada if no preexisting GNAT is available.
6279 case ,${enable_languages},:${language}:${have_gnat} in
6280 *,${language},*:ada:no)
6281 # Specifically requested language; tell them.
6282 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6284 *:ada:no)
6285 # Silently disable.
6286 add_this_lang=unsupported
6288 esac
6290 # Disable a language that is unsupported by the target.
6291 case " $unsupported_languages " in
6292 *" $language "*)
6293 add_this_lang=unsupported
6295 esac
6297 case $add_this_lang in
6298 unsupported)
6299 # Remove language-dependent dirs.
6300 disabled_target_libs="$disabled_target_libs $target_libs"
6301 noconfigdirs="$noconfigdirs $lang_dirs"
6304 # Remove language-dependent dirs; still show language as supported.
6305 disabled_target_libs="$disabled_target_libs $target_libs"
6306 noconfigdirs="$noconfigdirs $lang_dirs"
6307 potential_languages="${potential_languages}${language},"
6309 yes)
6310 new_enable_languages="${new_enable_languages}${language},"
6311 potential_languages="${potential_languages}${language},"
6312 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6313 enabled_target_libs="$enabled_target_libs $target_libs"
6314 case "${boot_language}:,$enable_stage1_languages," in
6315 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6316 # Add to (comma-separated) list of stage 1 languages.
6317 case ",$stage1_languages," in
6318 *,$language,* | ,yes, | ,all,) ;;
6319 *) stage1_languages="${stage1_languages}${language}," ;;
6320 esac
6321 # We need to bootstrap any supporting libraries.
6322 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6324 esac
6326 esac
6328 esac
6329 done
6331 # Add target libraries which are only needed for disabled languages
6332 # to noconfigdirs.
6333 if test -n "$disabled_target_libs"; then
6334 for dir in $disabled_target_libs; do
6335 case " $enabled_target_libs " in
6336 *" ${dir} "*) ;;
6337 *) noconfigdirs="$noconfigdirs $dir" ;;
6338 esac
6339 done
6342 # Check whether --enable-stage1-languages was given.
6343 if test "${enable_stage1_languages+set}" = set; then :
6344 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6345 ,no,|,,)
6346 # Set it to something that will have no effect in the loop below
6347 enable_stage1_languages=c ;;
6348 ,yes,)
6349 enable_stage1_languages=`echo $new_enable_languages | \
6350 sed -e "s/^,//" -e "s/,$//" ` ;;
6351 *,all,*)
6352 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6353 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6354 esac
6356 # Add "good" languages from enable_stage1_languages to stage1_languages,
6357 # while "bad" languages go in missing_languages. Leave no duplicates.
6358 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6359 case $potential_languages in
6360 *,$i,*)
6361 case $stage1_languages in
6362 *,$i,*) ;;
6363 *) stage1_languages="$stage1_languages$i," ;;
6364 esac ;;
6366 case $missing_languages in
6367 *,$i,*) ;;
6368 *) missing_languages="$missing_languages$i," ;;
6369 esac ;;
6370 esac
6371 done
6375 # Remove leading/trailing commas that were added for simplicity
6376 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6377 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6378 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6379 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6381 if test "x$missing_languages" != x; then
6382 as_fn_error "
6383 The following requested languages could not be built: ${missing_languages}
6384 Supported languages are: ${potential_languages}" "$LINENO" 5
6386 if test "x$new_enable_languages" != "x$enable_languages"; then
6387 echo The following languages will be built: ${new_enable_languages}
6388 enable_languages="$new_enable_languages"
6392 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6395 # Handle --disable-<component> generically.
6396 for dir in $configdirs $build_configdirs $target_configdirs ; do
6397 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6398 varname=`echo $dirname | sed -e s/+/_/g`
6399 if eval test x\${enable_${varname}} "=" xno ; then
6400 noconfigdirs="$noconfigdirs $dir"
6402 done
6404 # Check for Boehm's garbage collector
6405 # Check whether --enable-objc-gc was given.
6406 if test "${enable_objc_gc+set}" = set; then :
6407 enableval=$enable_objc_gc;
6411 # Check whether --with-target-bdw-gc was given.
6412 if test "${with_target_bdw_gc+set}" = set; then :
6413 withval=$with_target_bdw_gc;
6417 # Check whether --with-target-bdw-gc-include was given.
6418 if test "${with_target_bdw_gc_include+set}" = set; then :
6419 withval=$with_target_bdw_gc_include;
6423 # Check whether --with-target-bdw-gc-lib was given.
6424 if test "${with_target_bdw_gc_lib+set}" = set; then :
6425 withval=$with_target_bdw_gc_lib;
6429 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6431 $as_echo_n "checking for bdw garbage collector... " >&6; }
6432 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6434 $as_echo "using bdw-gc in default locations" >&6; }
6435 else
6436 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6437 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6438 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6439 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6442 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6445 esac
6447 # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
6448 case ,${enable_languages}, in
6449 *,c++,*)
6450 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6451 case "${noconfigdirs}" in
6452 *target-libstdc++-v3*)
6453 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6455 *) ;;
6456 esac
6459 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
6461 esac
6463 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464 # $build_configdirs and $target_configdirs.
6465 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6467 notsupp=""
6468 for dir in . $skipdirs $noconfigdirs ; do
6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6500 done
6502 # Quietly strip out all directories which aren't configurable in this tree.
6503 # This relies on all configurable subdirectories being autoconfiscated, which
6504 # is now the case.
6505 build_configdirs_all="$build_configdirs"
6506 build_configdirs=
6507 for i in ${build_configdirs_all} ; do
6508 j=`echo $i | sed -e s/build-//g`
6509 if test -f ${srcdir}/$j/configure ; then
6510 build_configdirs="${build_configdirs} $i"
6512 done
6514 configdirs_all="$configdirs"
6515 configdirs=
6516 for i in ${configdirs_all} ; do
6517 if test -f ${srcdir}/$i/configure ; then
6518 configdirs="${configdirs} $i"
6520 done
6522 target_configdirs_all="$target_configdirs"
6523 target_configdirs=
6524 for i in ${target_configdirs_all} ; do
6525 j=`echo $i | sed -e s/target-//g`
6526 if test -f ${srcdir}/$j/configure ; then
6527 target_configdirs="${target_configdirs} $i"
6529 done
6531 # libiberty-linker-plugin is special: it doesn't have its own source directory,
6532 # so we have to add it after the preceding checks.
6533 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6534 then
6535 case " $configdirs " in
6536 *" libiberty "*)
6537 # If we can build libiberty, we can also build libiberty-linker-plugin.
6538 configdirs="$configdirs libiberty-linker-plugin"
6539 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6540 --with-libiberty=../libiberty-linker-plugin";;
6542 as_fn_error "libiberty missing" "$LINENO" 5;;
6543 esac
6546 # Sometimes we have special requirements for the host libiberty.
6547 extra_host_libiberty_configure_flags=
6548 extra_host_zlib_configure_flags=
6549 case " $configdirs " in
6550 *" lto-plugin "* | *" libcc1 "*)
6551 # When these are to be built as shared libraries, the same applies to
6552 # libiberty.
6553 extra_host_libiberty_configure_flags=--enable-shared
6555 *" bfd "*)
6556 # When bfd is to be built as a shared library, the same applies to
6557 # zlib.
6558 if test "$enable_shared" = "yes"; then
6559 extra_host_zlib_configure_flags=--enable-host-shared
6562 esac
6566 # Produce a warning message for the subdirs we can't configure.
6567 # This isn't especially interesting in the Cygnus tree, but in the individual
6568 # FSF releases, it's important to let people know when their machine isn't
6569 # supported by the one or two programs in a package.
6571 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6572 # If $appdirs is non-empty, at least one of those directories must still
6573 # be configured, or we error out. (E.g., if the gas release supports a
6574 # specified target in some subdirs but not the gas subdir, we shouldn't
6575 # pretend that all is well.)
6576 if test -n "$appdirs" ; then
6577 for dir in $appdirs ; do
6578 if test -r $dir/Makefile.in ; then
6579 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6580 appdirs=""
6581 break
6583 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6584 appdirs=""
6585 break
6588 done
6589 if test -n "$appdirs" ; then
6590 echo "*** This configuration is not supported by this package." 1>&2
6591 exit 1
6594 # Okay, some application will build, or we don't care to check. Still
6595 # notify of subdirs not getting built.
6596 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6597 echo " ${notsupp}" 1>&2
6598 echo " (Any other directories should still work fine.)" 1>&2
6601 case "$host" in
6602 *msdosdjgpp*)
6603 enable_gdbtk=no ;;
6604 esac
6606 # To find our prefix, in gcc_cv_tool_prefix.
6608 # The user is always right.
6609 if test "${PATH_SEPARATOR+set}" != set; then
6610 echo "#! /bin/sh" >conf$$.sh
6611 echo "exit 0" >>conf$$.sh
6612 chmod +x conf$$.sh
6613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6614 PATH_SEPARATOR=';'
6615 else
6616 PATH_SEPARATOR=:
6618 rm -f conf$$.sh
6623 if test "x$exec_prefix" = xNONE; then
6624 if test "x$prefix" = xNONE; then
6625 gcc_cv_tool_prefix=$ac_default_prefix
6626 else
6627 gcc_cv_tool_prefix=$prefix
6629 else
6630 gcc_cv_tool_prefix=$exec_prefix
6633 # If there is no compiler in the tree, use the PATH only. In any
6634 # case, if there is no compiler in the tree nobody should use
6635 # AS_FOR_TARGET and LD_FOR_TARGET.
6636 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6637 gcc_version=`cat $srcdir/gcc/BASE-VER`
6638 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6639 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6640 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6641 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6643 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6644 else
6645 gcc_cv_tool_dirs=
6648 if test x$build = x$target && test -n "$md_exec_prefix"; then
6649 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6654 copy_dirs=
6657 # Check whether --with-build-sysroot was given.
6658 if test "${with_build_sysroot+set}" = set; then :
6659 withval=$with_build_sysroot; if test x"$withval" != x ; then
6660 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6662 else
6663 SYSROOT_CFLAGS_FOR_TARGET=
6669 # Check whether --with-debug-prefix-map was given.
6670 if test "${with_debug_prefix_map+set}" = set; then :
6671 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6672 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6673 for debug_map in $withval; do
6674 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6675 done
6677 else
6678 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6683 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6684 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6685 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6686 # We want to ensure that TARGET libraries (which we know are built with
6687 # gcc) are built with "-O2 -g", so include those options when setting
6688 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6689 if test "x$CFLAGS_FOR_TARGET" = x; then
6690 if test "x${is_cross_compiler}" = xyes; then
6691 CFLAGS_FOR_TARGET="-g -O2"
6692 else
6693 CFLAGS_FOR_TARGET=$CFLAGS
6694 case " $CFLAGS " in
6695 *" -O2 "*) ;;
6696 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6697 esac
6698 case " $CFLAGS " in
6699 *" -g "* | *" -g3 "*) ;;
6700 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6701 esac
6706 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6707 if test "x${is_cross_compiler}" = xyes; then
6708 CXXFLAGS_FOR_TARGET="-g -O2"
6709 else
6710 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6711 case " $CXXFLAGS " in
6712 *" -O2 "*) ;;
6713 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6714 esac
6715 case " $CXXFLAGS " in
6716 *" -g "* | *" -g3 "*) ;;
6717 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6718 esac
6725 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6726 # the named directory are copied to $(tooldir)/sys-include.
6727 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6728 if test x${is_cross_compiler} = xno ; then
6729 echo 1>&2 '***' --with-headers is only supported when cross compiling
6730 exit 1
6732 if test x"${with_headers}" != xyes ; then
6733 x=${gcc_cv_tool_prefix}
6734 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6738 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6739 # the name directories are copied to $(tooldir)/lib. Multiple directories
6740 # are permitted.
6741 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6742 if test x${is_cross_compiler} = xno ; then
6743 echo 1>&2 '***' --with-libs is only supported when cross compiling
6744 exit 1
6746 if test x"${with_libs}" != xyes ; then
6747 # Copy the libraries in reverse order, so that files in the first named
6748 # library override files in subsequent libraries.
6749 x=${gcc_cv_tool_prefix}
6750 for l in ${with_libs}; do
6751 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6752 done
6756 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6758 # This is done by determining whether or not the appropriate directory
6759 # is available, and by checking whether or not specific configurations
6760 # have requested that this magic not happen.
6762 # The command line options always override the explicit settings in
6763 # configure.ac, and the settings in configure.ac override this magic.
6765 # If the default for a toolchain is to use GNU as and ld, and you don't
6766 # want to do that, then you should use the --without-gnu-as and
6767 # --without-gnu-ld options for the configure script. Similarly, if
6768 # the default is to use the included zlib and you don't want to do that,
6769 # you should use the --with-system-zlib option for the configure script.
6771 if test x${use_gnu_as} = x &&
6772 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6773 with_gnu_as=yes
6774 extra_host_args="$extra_host_args --with-gnu-as"
6777 if test x${use_gnu_ld} = x &&
6778 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6779 with_gnu_ld=yes
6780 extra_host_args="$extra_host_args --with-gnu-ld"
6783 if test x${use_included_zlib} = x &&
6784 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6786 else
6787 with_system_zlib=yes
6788 extra_host_args="$extra_host_args --with-system-zlib"
6791 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6792 # can detect this case.
6794 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6795 with_newlib=yes
6796 extra_host_args="$extra_host_args --with-newlib"
6799 # Handle ${copy_dirs}
6800 set fnord ${copy_dirs}
6801 shift
6802 while test $# != 0 ; do
6803 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6805 else
6806 echo Copying $1 to $2
6808 # Use the install script to create the directory and all required
6809 # parent directories.
6810 if test -d $2 ; then
6812 else
6813 echo >config.temp
6814 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6817 # Copy the directory, assuming we have tar.
6818 # FIXME: Should we use B in the second tar? Not all systems support it.
6819 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6821 # It is the responsibility of the user to correctly adjust all
6822 # symlinks. If somebody can figure out how to handle them correctly
6823 # here, feel free to add the code.
6825 echo $1 > $2/COPIED
6827 shift; shift
6828 done
6830 # Determine a target-dependent exec_prefix that the installed
6831 # gcc will search in. Keep this list sorted by triplet, with
6832 # the *-*-osname triplets last.
6833 md_exec_prefix=
6834 case "${target}" in
6835 i[34567]86-pc-msdosdjgpp*)
6836 md_exec_prefix=/dev/env/DJDIR/bin
6838 *-*-hpux* | \
6839 *-*-nto-qnx* | \
6840 *-*-solaris2*)
6841 md_exec_prefix=/usr/ccs/bin
6843 esac
6845 extra_arflags_for_target=
6846 extra_nmflags_for_target=
6847 extra_ranlibflags_for_target=
6848 target_makefile_frag=/dev/null
6849 case "${target}" in
6850 spu-*-*)
6851 target_makefile_frag="config/mt-spu"
6853 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
6854 target_makefile_frag="config/mt-sde"
6856 mipsisa*-*-elfoabi*)
6857 target_makefile_frag="config/mt-mips-elfoabi"
6859 mips*-*-*linux* | mips*-*-gnu*)
6860 target_makefile_frag="config/mt-mips-gnu"
6862 nios2-*-elf*)
6863 target_makefile_frag="config/mt-nios2-elf"
6865 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6866 target_makefile_frag="config/mt-gnu"
6868 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6869 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6870 # commands to handle both 32-bit and 64-bit objects. These flags are
6871 # harmless if we're using GNU nm or ar.
6872 extra_arflags_for_target=" -X32_64"
6873 extra_nmflags_for_target=" -B -X32_64"
6875 esac
6877 alphaieee_frag=/dev/null
6878 case $target in
6879 alpha*-*-*)
6880 # This just makes sure to use the -mieee option to build target libs.
6881 # This should probably be set individually by each library.
6882 alphaieee_frag="config/mt-alphaieee"
6884 esac
6886 # If --enable-target-optspace always use -Os instead of -O2 to build
6887 # the target libraries, similarly if it is not specified, use -Os
6888 # on selected platforms.
6889 ospace_frag=/dev/null
6890 case "${enable_target_optspace}:${target}" in
6891 yes:*)
6892 ospace_frag="config/mt-ospace"
6894 :d30v-*)
6895 ospace_frag="config/mt-d30v"
6897 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
6898 ospace_frag="config/mt-ospace"
6900 no:* | :*)
6903 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6905 esac
6907 # Some systems (e.g., one of the i386-aix systems the gas testers are
6908 # using) don't handle "\$" correctly, so don't use it here.
6909 tooldir='${exec_prefix}'/${target_noncanonical}
6910 build_tooldir=${tooldir}
6912 # Create a .gdbinit file which runs the one in srcdir
6913 # and tells GDB to look there for source files.
6915 if test -r ${srcdir}/.gdbinit ; then
6916 case ${srcdir} in
6917 .) ;;
6918 *) cat > ./.gdbinit <<EOF
6919 # ${NO_EDIT}
6920 dir ${srcdir}
6921 dir .
6922 source ${srcdir}/.gdbinit
6925 esac
6928 # Make sure that the compiler is able to generate an executable. If it
6929 # can't, we are probably in trouble. We don't care whether we can run the
6930 # executable--we might be using a cross compiler--we only care whether it
6931 # can be created. At this point the main configure script has set CC.
6932 we_are_ok=no
6933 echo "int main () { return 0; }" > conftest.c
6934 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6935 if test $? = 0 ; then
6936 if test -s conftest || test -s conftest.exe ; then
6937 we_are_ok=yes
6940 case $we_are_ok in
6942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6944 rm -f conftest*
6945 exit 1
6947 esac
6948 rm -f conftest*
6950 # Decide which environment variable is used to find dynamic libraries.
6951 case "${host}" in
6952 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6953 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6954 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6955 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6956 esac
6958 # On systems where the dynamic library environment variable is PATH,
6959 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6960 # built executables to PATH.
6961 if test "$RPATH_ENVVAR" = PATH; then
6962 GCC_SHLIB_SUBDIR=/shlib
6963 else
6964 GCC_SHLIB_SUBDIR=
6967 # Adjust the toplevel makefile according to whether bootstrap was selected.
6968 case $enable_bootstrap in
6969 yes)
6970 bootstrap_suffix=bootstrap
6971 BUILD_CONFIG=bootstrap-debug
6974 bootstrap_suffix=no-bootstrap
6975 BUILD_CONFIG=
6977 esac
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6980 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6983 # Check whether --with-build-config was given.
6984 if test "${with_build_config+set}" = set; then :
6985 withval=$with_build_config; case $with_build_config in
6986 yes) with_build_config= ;;
6987 no) with_build_config= BUILD_CONFIG= ;;
6988 esac
6992 if test "x${with_build_config}" != x; then
6993 BUILD_CONFIG=$with_build_config
6994 else
6995 case $BUILD_CONFIG in
6996 bootstrap-debug)
6997 if echo "int f (void) { return 0; }" > conftest.c &&
6998 ${CC} -c conftest.c &&
6999 mv conftest.o conftest.o.g0 &&
7000 ${CC} -c -g conftest.c &&
7001 mv conftest.o conftest.o.g &&
7002 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7004 else
7005 BUILD_CONFIG=
7007 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7009 esac
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7012 $as_echo "$BUILD_CONFIG" >&6; }
7015 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7017 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7018 # Check whether --enable-vtable-verify was given.
7019 if test "${enable_vtable_verify+set}" = set; then :
7020 enableval=$enable_vtable_verify; case "$enableval" in
7021 yes) enable_vtable_verify=yes ;;
7022 no) enable_vtable_verify=no ;;
7023 *) enable_vtable_verify=no;;
7024 esac
7025 else
7026 enable_vtable_verify=no
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7030 $as_echo "$enable_vtable_verify" >&6; }
7032 # Record target_configdirs and the configure arguments for target and
7033 # build configuration in Makefile.
7034 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7035 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7036 bootstrap_fixincludes=no
7038 # If we are building libgomp, bootstrap it.
7039 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7040 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7043 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7044 # or bootstrap-ubsan, bootstrap it.
7045 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7046 case "$BUILD_CONFIG" in
7047 *bootstrap-asan* | *bootstrap-ubsan* )
7048 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7049 bootstrap_fixincludes=yes
7051 esac
7054 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7055 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7056 test "$enable_vtable_verify" != no; then
7057 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7060 # If we are building libmpx, bootstrap it.
7061 if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7062 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7065 # Determine whether gdb needs tk/tcl or not.
7066 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7067 # and in that case we want gdb to be built without tk. Ugh!
7068 # In fact I believe gdb is the *only* package directly dependent on tk,
7069 # so we should be able to put the 'maybe's in unconditionally and
7070 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7071 # 100% sure that that's safe though.
7073 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7074 case "$enable_gdbtk" in
7076 GDB_TK="" ;;
7077 yes)
7078 GDB_TK="${gdb_tk}" ;;
7080 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7081 # distro. Eventually someone will fix this and move Insight, nee
7082 # gdbtk to a separate directory.
7083 if test -d ${srcdir}/gdb/gdbtk ; then
7084 GDB_TK="${gdb_tk}"
7085 else
7086 GDB_TK=""
7089 esac
7090 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7091 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7093 # Strip out unwanted targets.
7095 # While at that, we remove Makefiles if we were started for recursive
7096 # configuration, so that the top-level Makefile reconfigures them,
7097 # like we used to do when configure itself was recursive.
7099 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7100 # but now we're fixing up the Makefile ourselves with the additional
7101 # commands passed to AC_CONFIG_FILES. Use separate variables
7102 # extrasub-{build,host,target} not because there is any reason to split
7103 # the substitutions up that way, but only to remain below the limit of
7104 # 99 commands in a script, for HP-UX sed.
7105 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7107 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7108 yes:yes:*\ gold\ *:*,c++,*) ;;
7109 yes:yes:*\ gold\ *:*)
7110 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7112 esac
7114 extrasub_build=
7115 for module in ${build_configdirs} ; do
7116 if test -z "${no_recursion}" \
7117 && test -f ${build_subdir}/${module}/Makefile; then
7118 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7119 rm -f ${build_subdir}/${module}/Makefile
7121 extrasub_build="$extrasub_build
7122 /^@if build-$module\$/d
7123 /^@endif build-$module\$/d
7124 /^@if build-$module-$bootstrap_suffix\$/d
7125 /^@endif build-$module-$bootstrap_suffix\$/d"
7126 done
7127 extrasub_host=
7128 for module in ${configdirs} ; do
7129 if test -z "${no_recursion}"; then
7130 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7131 if test -f ${file}; then
7132 echo 1>&2 "*** removing ${file} to force reconfigure"
7133 rm -f ${file}
7135 done
7137 case ${module},${bootstrap_fixincludes} in
7138 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7139 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7140 esac
7141 extrasub_host="$extrasub_host
7142 /^@if $module\$/d
7143 /^@endif $module\$/d
7144 /^@if $module-$host_bootstrap_suffix\$/d
7145 /^@endif $module-$host_bootstrap_suffix\$/d"
7146 done
7147 extrasub_target=
7148 for module in ${target_configdirs} ; do
7149 if test -z "${no_recursion}" \
7150 && test -f ${target_subdir}/${module}/Makefile; then
7151 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7152 rm -f ${target_subdir}/${module}/Makefile
7155 # We only bootstrap target libraries listed in bootstrap_target_libs.
7156 case $bootstrap_target_libs in
7157 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7158 *) target_bootstrap_suffix=no-bootstrap ;;
7159 esac
7161 extrasub_target="$extrasub_target
7162 /^@if target-$module\$/d
7163 /^@endif target-$module\$/d
7164 /^@if target-$module-$target_bootstrap_suffix\$/d
7165 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7166 done
7168 # Do the final fixup along with target modules.
7169 extrasub_target="$extrasub_target
7170 /^@if /,/^@endif /d"
7172 # Create the serialization dependencies. This uses a temporary file.
7174 # Check whether --enable-serial-configure was given.
7175 if test "${enable_serial_configure+set}" = set; then :
7176 enableval=$enable_serial_configure;
7180 case ${enable_serial_configure} in
7181 yes)
7182 enable_serial_build_configure=yes
7183 enable_serial_host_configure=yes
7184 enable_serial_target_configure=yes
7186 esac
7188 # These force 'configure's to be done one at a time, to avoid problems
7189 # with contention over a shared config.cache.
7190 rm -f serdep.tmp
7191 echo '# serdep.tmp' > serdep.tmp
7192 olditem=
7193 test "x${enable_serial_build_configure}" = xyes &&
7194 for item in ${build_configdirs} ; do
7195 case ${olditem} in
7196 "") ;;
7197 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7198 esac
7199 olditem=${item}
7200 done
7201 olditem=
7202 test "x${enable_serial_host_configure}" = xyes &&
7203 for item in ${configdirs} ; do
7204 case ${olditem} in
7205 "") ;;
7206 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7207 esac
7208 olditem=${item}
7209 done
7210 olditem=
7211 test "x${enable_serial_target_configure}" = xyes &&
7212 for item in ${target_configdirs} ; do
7213 case ${olditem} in
7214 "") ;;
7215 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7216 esac
7217 olditem=${item}
7218 done
7219 serialization_dependencies=serdep.tmp
7222 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7223 # target, nonopt, and variable assignments. These are the ones we
7224 # might not want to pass down to subconfigures. The exception being
7225 # --cache-file=/dev/null, which is used to turn off the use of cache
7226 # files altogether, and which should be passed on to subconfigures.
7227 # Also strip program-prefix, program-suffix, and program-transform-name,
7228 # so that we can pass down a consistent program-transform-name.
7229 baseargs=
7230 tbaseargs=
7231 keep_next=no
7232 skip_next=no
7233 eval "set -- $ac_configure_args"
7234 for ac_arg
7236 if test X"$skip_next" = X"yes"; then
7237 skip_next=no
7238 continue
7240 if test X"$keep_next" = X"yes"; then
7241 case $ac_arg in
7242 *\'*)
7243 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7244 esac
7245 baseargs="$baseargs '$ac_arg'"
7246 tbaseargs="$tbaseargs '$ac_arg'"
7247 keep_next=no
7248 continue
7251 # Handle separated arguments. Based on the logic generated by
7252 # autoconf 2.59.
7253 case $ac_arg in
7254 *=* | --config-cache | -C | -disable-* | --disable-* \
7255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7257 | -with-* | --with-* | -without-* | --without-* | --x)
7258 separate_arg=no
7261 separate_arg=yes
7264 separate_arg=no
7266 esac
7268 skip_targ=no
7269 case $ac_arg in
7271 --with-* | --without-*)
7272 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7274 case $libopt in
7275 *[-_]include)
7276 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7278 *[-_]lib)
7279 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7282 lib=$libopt
7284 esac
7287 case $lib in
7288 mpc | mpfr | gmp | isl)
7289 # If we're processing --with-$lib, --with-$lib-include or
7290 # --with-$lib-lib, for one of the libs above, and target is
7291 # different from host, don't pass the current argument to any
7292 # target library's configure.
7293 if test x$is_cross_compiler = xyes; then
7294 skip_targ=yes
7297 esac
7299 esac
7301 case "$ac_arg" in
7302 --cache-file=/dev/null | \
7303 -cache-file=/dev/null )
7304 # Handled here to avoid the test to skip args below.
7305 baseargs="$baseargs '$ac_arg'"
7306 tbaseargs="$tbaseargs '$ac_arg'"
7307 # Assert: $separate_arg should always be no.
7308 keep_next=$separate_arg
7310 --no*)
7311 continue
7313 --c* | \
7314 --sr* | \
7315 --ho* | \
7316 --bu* | \
7317 --t* | \
7318 --program-* | \
7319 -cache_file* | \
7320 -srcdir* | \
7321 -host* | \
7322 -build* | \
7323 -target* | \
7324 -program-prefix* | \
7325 -program-suffix* | \
7326 -program-transform-name* )
7327 skip_next=$separate_arg
7328 continue
7331 # An option. Add it.
7332 case $ac_arg in
7333 *\'*)
7334 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7335 esac
7336 baseargs="$baseargs '$ac_arg'"
7337 if test X"$skip_targ" = Xno; then
7338 tbaseargs="$tbaseargs '$ac_arg'"
7340 keep_next=$separate_arg
7343 # Either a variable assignment, or a nonopt (triplet). Don't
7344 # pass it down; let the Makefile handle this.
7345 continue
7347 esac
7348 done
7349 # Remove the initial space we just introduced and, as these will be
7350 # expanded by make, quote '$'.
7351 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7353 # Add in --program-transform-name, after --program-prefix and
7354 # --program-suffix have been applied to it. Autoconf has already
7355 # doubled dollar signs and backslashes in program_transform_name; we want
7356 # the backslashes un-doubled, and then the entire thing wrapped in single
7357 # quotes, because this will be expanded first by make and then by the shell.
7358 # Also, because we want to override the logic in subdir configure scripts to
7359 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7360 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7361 ${program_transform_name}
7362 EOF_SED
7363 gcc_transform_name=`cat conftestsed.out`
7364 rm -f conftestsed.out
7365 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7366 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7367 if test "$silent" = yes; then
7368 baseargs="$baseargs --silent"
7369 tbaseargs="$tbaseargs --silent"
7371 baseargs="$baseargs --disable-option-checking"
7372 tbaseargs="$tbaseargs --disable-option-checking"
7374 # Record and document user additions to sub configure arguments.
7379 # For the build-side libraries, we just need to pretend we're native,
7380 # and not use the same cache file. Multilibs are neither needed nor
7381 # desired. We can't even use the same cache file for all build-side
7382 # libraries, as they're compiled differently; some with C, some with
7383 # C++ or with different feature-enabling options.
7384 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
7386 # For host modules, accept cache file option, or specification as blank.
7387 case "${cache_file}" in
7388 "") # empty
7389 cache_file_option="" ;;
7390 /* | [A-Za-z]:[\\/]* ) # absolute path
7391 cache_file_option="--cache-file=${cache_file}" ;;
7392 *) # relative path
7393 cache_file_option="--cache-file=../${cache_file}" ;;
7394 esac
7396 # Host dirs don't like to share a cache file either, horribly enough.
7397 # This seems to be due to autoconf 2.5x stupidity.
7398 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7400 target_configargs="$target_configargs ${tbaseargs}"
7402 # Passing a --with-cross-host argument lets the target libraries know
7403 # whether they are being built with a cross-compiler or being built
7404 # native. However, it would be better to use other mechanisms to make the
7405 # sorts of decisions they want to make on this basis. Please consider
7406 # this option to be deprecated. FIXME.
7407 if test x${is_cross_compiler} = xyes ; then
7408 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7411 # Special user-friendly check for native x86_64-linux build, if
7412 # multilib is not explicitly enabled.
7413 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7414 x86_64-*linux*:yes:$build:$build:)
7415 # Make sure we have a development environment that handles 32-bit
7416 dev64=no
7417 echo "int main () { return 0; }" > conftest.c
7418 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7419 if test $? = 0 ; then
7420 if test -s conftest || test -s conftest.exe ; then
7421 dev64=yes
7424 rm -f conftest*
7425 if test x${dev64} != xyes ; then
7426 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
7429 esac
7431 # Default to --enable-multilib.
7432 if test x${enable_multilib} = x ; then
7433 target_configargs="--enable-multilib ${target_configargs}"
7436 # Pass --with-newlib if appropriate. Note that target_configdirs has
7437 # changed from the earlier setting of with_newlib.
7438 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7439 target_configargs="--with-newlib ${target_configargs}"
7442 # Different target subdirs use different values of certain variables
7443 # (notably CXX). Worse, multilibs use *lots* of different values.
7444 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7445 # it doesn't automatically accept command-line overrides of them.
7446 # This means it's not safe for target subdirs to share a cache file,
7447 # which is disgusting, but there you have it. Hopefully this can be
7448 # fixed in future. It's still worthwhile to use a cache file for each
7449 # directory. I think.
7451 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7452 # We need to pass --target, as newer autoconf's requires consistency
7453 # for target_alias and gcc doesn't manage it consistently.
7454 target_configargs="--cache-file=./config.cache ${target_configargs}"
7456 FLAGS_FOR_TARGET=
7457 case " $target_configdirs " in
7458 *" newlib "*)
7459 case " $target_configargs " in
7460 *" --with-newlib "*)
7461 case "$target" in
7462 *-cygwin*)
7463 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7465 esac
7467 # If we're not building GCC, don't discard standard headers.
7468 if test -d ${srcdir}/gcc; then
7469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7471 if test "${build}" != "${host}"; then
7472 # On Canadian crosses, CC_FOR_TARGET will have already been set
7473 # by `configure', so we won't have an opportunity to add -Bgcc/
7474 # to it. This is right: we don't want to search that directory
7475 # for binaries, but we want the header files in there, so add
7476 # them explicitly.
7477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7479 # Someone might think of using the pre-installed headers on
7480 # Canadian crosses, in case the installed compiler is not fully
7481 # compatible with the compiler being built. In this case, it
7482 # would be better to flag an error than risking having
7483 # incompatible object files being constructed. We can't
7484 # guarantee that an error will be flagged, but let's hope the
7485 # compiler will do it, when presented with incompatible header
7486 # files.
7490 case "${target}-${is_cross_compiler}" in
7491 i[3456789]86-*-linux*-no)
7492 # Here host == target, so we don't need to build gcc,
7493 # so we don't want to discard standard headers.
7494 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7497 # If we're building newlib, use its generic headers last, but search
7498 # for any libc-related directories first (so make it the last -B
7499 # switch).
7500 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7502 # If we're building libgloss, find the startup file, simulator library
7503 # and linker script.
7504 case " $target_configdirs " in
7505 *" libgloss "*)
7506 # Look for startup file, simulator library and maybe linker script.
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7508 # Look for libnosys.a in case the target needs it.
7509 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7510 # Most targets have the linker script in the source directory.
7511 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7513 esac
7515 esac
7517 esac
7519 esac
7521 case "$target" in
7522 x86_64-*mingw* | *-w64-mingw*)
7523 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7524 # however, use a symlink named 'mingw' in ${prefix} .
7525 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7527 *-mingw*)
7528 # MinGW can't be handled as Cygwin above since it does not use newlib.
7529 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'
7531 esac
7533 # Allow the user to override the flags for
7534 # our build compiler if desired.
7535 if test x"${build}" = x"${host}" ; then
7536 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7537 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7538 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7541 # On Canadian crosses, we'll be searching the right directories for
7542 # the previously-installed cross compiler, so don't bother to add
7543 # flags for directories within the install tree of the compiler
7544 # being built; programs in there won't even run.
7545 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7546 # Search for pre-installed headers if nothing else fits.
7547 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7550 if test "x${use_gnu_ld}" = x &&
7551 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7552 # Arrange for us to find uninstalled linker scripts.
7553 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7556 # Search for other target-specific linker scripts and such.
7557 case "${target}" in
7558 mep*)
7559 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7561 esac
7563 # Makefile fragments.
7564 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7566 eval fragval=\$$frag
7567 if test $fragval != /dev/null; then
7568 eval $frag=${srcdir}/$fragval
7570 done
7576 # Miscellanea: directories, flags, etc.
7585 # Build module lists & subconfigure args.
7589 # Host module lists & subconfigure args.
7594 # Target module lists & subconfigure args.
7598 # Build tools.
7615 # Generate default definitions for YACC, M4, LEX and other programs that run
7616 # on the build machine. These are used if the Makefile can't locate these
7617 # programs in objdir.
7618 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7620 for ac_prog in 'bison -y' byacc yacc
7622 # Extract the first word of "$ac_prog", so it can be a program name with args.
7623 set dummy $ac_prog; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if test "${ac_cv_prog_YACC+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7628 else
7629 if test -n "$YACC"; then
7630 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7631 else
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633 for as_dir in $PATH
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_prog_YACC="$ac_prog"
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7643 done
7644 done
7645 IFS=$as_save_IFS
7649 YACC=$ac_cv_prog_YACC
7650 if test -n "$YACC"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7652 $as_echo "$YACC" >&6; }
7653 else
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7659 test -n "$YACC" && break
7660 done
7661 test -n "$YACC" || YACC="$MISSING bison -y"
7663 case " $build_configdirs " in
7664 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7665 esac
7667 for ac_prog in bison
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_BISON+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$BISON"; then
7677 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_BISON="$ac_prog"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7690 done
7691 done
7692 IFS=$as_save_IFS
7696 BISON=$ac_cv_prog_BISON
7697 if test -n "$BISON"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7699 $as_echo "$BISON" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7706 test -n "$BISON" && break
7707 done
7708 test -n "$BISON" || BISON="$MISSING bison"
7710 case " $build_configdirs " in
7711 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7712 esac
7714 for ac_prog in gm4 gnum4 m4
7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
7717 set dummy $ac_prog; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if test "${ac_cv_prog_M4+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 if test -n "$M4"; then
7724 ac_cv_prog_M4="$M4" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_prog_M4="$ac_prog"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7743 M4=$ac_cv_prog_M4
7744 if test -n "$M4"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7746 $as_echo "$M4" >&6; }
7747 else
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7753 test -n "$M4" && break
7754 done
7755 test -n "$M4" || M4="$MISSING m4"
7757 case " $build_configdirs " in
7758 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7759 esac
7761 for ac_prog in flex lex
7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
7764 set dummy $ac_prog; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if test "${ac_cv_prog_LEX+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 if test -n "$LEX"; then
7771 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780 ac_cv_prog_LEX="$ac_prog"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7784 done
7785 done
7786 IFS=$as_save_IFS
7790 LEX=$ac_cv_prog_LEX
7791 if test -n "$LEX"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7793 $as_echo "$LEX" >&6; }
7794 else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7800 test -n "$LEX" && break
7801 done
7802 test -n "$LEX" || LEX="$MISSING flex"
7804 case " $build_configdirs " in
7805 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7806 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7807 esac
7809 for ac_prog in flex
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_FLEX+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$FLEX"; then
7819 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_FLEX="$ac_prog"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7838 FLEX=$ac_cv_prog_FLEX
7839 if test -n "$FLEX"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7841 $as_echo "$FLEX" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7848 test -n "$FLEX" && break
7849 done
7850 test -n "$FLEX" || FLEX="$MISSING flex"
7852 case " $build_configdirs " in
7853 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7854 esac
7856 for ac_prog in makeinfo
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$MAKEINFO"; then
7866 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_MAKEINFO="$ac_prog"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7879 done
7880 done
7881 IFS=$as_save_IFS
7885 MAKEINFO=$ac_cv_prog_MAKEINFO
7886 if test -n "$MAKEINFO"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7888 $as_echo "$MAKEINFO" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7895 test -n "$MAKEINFO" && break
7896 done
7897 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7899 case " $build_configdirs " in
7900 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7903 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7904 # higher, else we use the "missing" dummy.
7905 if ${MAKEINFO} --version \
7906 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7908 else
7909 MAKEINFO="$MISSING makeinfo"
7913 esac
7915 # FIXME: expect and dejagnu may become build tools?
7917 for ac_prog in expect
7919 # Extract the first word of "$ac_prog", so it can be a program name with args.
7920 set dummy $ac_prog; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$EXPECT"; then
7927 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_EXPECT="$ac_prog"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7942 IFS=$as_save_IFS
7946 EXPECT=$ac_cv_prog_EXPECT
7947 if test -n "$EXPECT"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7949 $as_echo "$EXPECT" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7956 test -n "$EXPECT" && break
7957 done
7958 test -n "$EXPECT" || EXPECT="expect"
7960 case " $configdirs " in
7961 *" expect "*)
7962 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7964 esac
7966 for ac_prog in runtest
7968 # Extract the first word of "$ac_prog", so it can be a program name with args.
7969 set dummy $ac_prog; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 if test -n "$RUNTEST"; then
7976 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_prog_RUNTEST="$ac_prog"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987 break 2
7989 done
7990 done
7991 IFS=$as_save_IFS
7995 RUNTEST=$ac_cv_prog_RUNTEST
7996 if test -n "$RUNTEST"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7998 $as_echo "$RUNTEST" >&6; }
7999 else
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8005 test -n "$RUNTEST" && break
8006 done
8007 test -n "$RUNTEST" || RUNTEST="runtest"
8009 case " $configdirs " in
8010 *" dejagnu "*)
8011 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8013 esac
8016 # Host tools.
8017 ncn_tool_prefix=
8018 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8019 ncn_target_tool_prefix=
8020 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8024 if test -n "$AR"; then
8025 ac_cv_prog_AR=$AR
8026 elif test -n "$ac_cv_prog_AR"; then
8027 AR=$ac_cv_prog_AR
8030 if test -n "$ac_cv_prog_AR"; then
8031 for ncn_progname in ar; do
8032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8033 set dummy ${ncn_progname}; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_AR+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 if test -n "$AR"; then
8040 ac_cv_prog_AR="$AR" # Let the user override the test.
8041 else
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_AR="${ncn_progname}"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8053 done
8054 done
8055 IFS=$as_save_IFS
8059 AR=$ac_cv_prog_AR
8060 if test -n "$AR"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8062 $as_echo "$AR" >&6; }
8063 else
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8069 done
8072 for ncn_progname in ar; do
8073 if test -n "$ncn_tool_prefix"; then
8074 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8075 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_AR+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 if test -n "$AR"; then
8082 ac_cv_prog_AR="$AR" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8095 done
8096 done
8097 IFS=$as_save_IFS
8101 AR=$ac_cv_prog_AR
8102 if test -n "$AR"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8104 $as_echo "$AR" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8112 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8114 set dummy ${ncn_progname}; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if test "${ac_cv_prog_AR+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 if test -n "$AR"; then
8121 ac_cv_prog_AR="$AR" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8130 ac_cv_prog_AR="${ncn_progname}"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8134 done
8135 done
8136 IFS=$as_save_IFS
8140 AR=$ac_cv_prog_AR
8141 if test -n "$AR"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8143 $as_echo "$AR" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8151 test -n "$ac_cv_prog_AR" && break
8152 done
8154 if test -z "$ac_cv_prog_AR" ; then
8155 set dummy ar
8156 if test $build = $host ; then
8157 AR="$2"
8158 else
8159 AR="${ncn_tool_prefix}$2"
8165 if test -n "$AS"; then
8166 ac_cv_prog_AS=$AS
8167 elif test -n "$ac_cv_prog_AS"; then
8168 AS=$ac_cv_prog_AS
8171 if test -n "$ac_cv_prog_AS"; then
8172 for ncn_progname in as; do
8173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8174 set dummy ${ncn_progname}; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_AS+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 if test -n "$AS"; then
8181 ac_cv_prog_AS="$AS" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_AS="${ncn_progname}"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192 break 2
8194 done
8195 done
8196 IFS=$as_save_IFS
8200 AS=$ac_cv_prog_AS
8201 if test -n "$AS"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8203 $as_echo "$AS" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8210 done
8213 for ncn_progname in as; do
8214 if test -n "$ncn_tool_prefix"; then
8215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8216 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_prog_AS+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if test -n "$AS"; then
8223 ac_cv_prog_AS="$AS" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8242 AS=$ac_cv_prog_AS
8243 if test -n "$AS"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8245 $as_echo "$AS" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8253 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8255 set dummy ${ncn_progname}; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if test "${ac_cv_prog_AS+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 if test -n "$AS"; then
8262 ac_cv_prog_AS="$AS" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_prog_AS="${ncn_progname}"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 break 2
8275 done
8276 done
8277 IFS=$as_save_IFS
8281 AS=$ac_cv_prog_AS
8282 if test -n "$AS"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8284 $as_echo "$AS" >&6; }
8285 else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8292 test -n "$ac_cv_prog_AS" && break
8293 done
8295 if test -z "$ac_cv_prog_AS" ; then
8296 set dummy as
8297 if test $build = $host ; then
8298 AS="$2"
8299 else
8300 AS="${ncn_tool_prefix}$2"
8306 if test -n "$DLLTOOL"; then
8307 ac_cv_prog_DLLTOOL=$DLLTOOL
8308 elif test -n "$ac_cv_prog_DLLTOOL"; then
8309 DLLTOOL=$ac_cv_prog_DLLTOOL
8312 if test -n "$ac_cv_prog_DLLTOOL"; then
8313 for ncn_progname in dlltool; do
8314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8315 set dummy ${ncn_progname}; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$DLLTOOL"; then
8322 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_DLLTOOL="${ncn_progname}"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8341 DLLTOOL=$ac_cv_prog_DLLTOOL
8342 if test -n "$DLLTOOL"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8344 $as_echo "$DLLTOOL" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8351 done
8354 for ncn_progname in dlltool; do
8355 if test -n "$ncn_tool_prefix"; then
8356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8357 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 if test -n "$DLLTOOL"; then
8364 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375 break 2
8377 done
8378 done
8379 IFS=$as_save_IFS
8383 DLLTOOL=$ac_cv_prog_DLLTOOL
8384 if test -n "$DLLTOOL"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8386 $as_echo "$DLLTOOL" >&6; }
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8394 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8396 set dummy ${ncn_progname}; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 if test -n "$DLLTOOL"; then
8403 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412 ac_cv_prog_DLLTOOL="${ncn_progname}"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 break 2
8416 done
8417 done
8418 IFS=$as_save_IFS
8422 DLLTOOL=$ac_cv_prog_DLLTOOL
8423 if test -n "$DLLTOOL"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8425 $as_echo "$DLLTOOL" >&6; }
8426 else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8433 test -n "$ac_cv_prog_DLLTOOL" && break
8434 done
8436 if test -z "$ac_cv_prog_DLLTOOL" ; then
8437 set dummy dlltool
8438 if test $build = $host ; then
8439 DLLTOOL="$2"
8440 else
8441 DLLTOOL="${ncn_tool_prefix}$2"
8447 if test -n "$LD"; then
8448 ac_cv_prog_LD=$LD
8449 elif test -n "$ac_cv_prog_LD"; then
8450 LD=$ac_cv_prog_LD
8453 if test -n "$ac_cv_prog_LD"; then
8454 for ncn_progname in ld; do
8455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8456 set dummy ${ncn_progname}; ac_word=$2
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458 $as_echo_n "checking for $ac_word... " >&6; }
8459 if test "${ac_cv_prog_LD+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 if test -n "$LD"; then
8463 ac_cv_prog_LD="$LD" # Let the user override the test.
8464 else
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8472 ac_cv_prog_LD="${ncn_progname}"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8476 done
8477 done
8478 IFS=$as_save_IFS
8482 LD=$ac_cv_prog_LD
8483 if test -n "$LD"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8485 $as_echo "$LD" >&6; }
8486 else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8492 done
8495 for ncn_progname in ld; do
8496 if test -n "$ncn_tool_prefix"; then
8497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8498 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_prog_LD+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 if test -n "$LD"; then
8505 ac_cv_prog_LD="$LD" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8516 break 2
8518 done
8519 done
8520 IFS=$as_save_IFS
8524 LD=$ac_cv_prog_LD
8525 if test -n "$LD"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8527 $as_echo "$LD" >&6; }
8528 else
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8535 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8537 set dummy ${ncn_progname}; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if test "${ac_cv_prog_LD+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 if test -n "$LD"; then
8544 ac_cv_prog_LD="$LD" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8553 ac_cv_prog_LD="${ncn_progname}"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8557 done
8558 done
8559 IFS=$as_save_IFS
8563 LD=$ac_cv_prog_LD
8564 if test -n "$LD"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8566 $as_echo "$LD" >&6; }
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8574 test -n "$ac_cv_prog_LD" && break
8575 done
8577 if test -z "$ac_cv_prog_LD" ; then
8578 set dummy ld
8579 if test $build = $host ; then
8580 LD="$2"
8581 else
8582 LD="${ncn_tool_prefix}$2"
8588 if test -n "$LIPO"; then
8589 ac_cv_prog_LIPO=$LIPO
8590 elif test -n "$ac_cv_prog_LIPO"; then
8591 LIPO=$ac_cv_prog_LIPO
8594 if test -n "$ac_cv_prog_LIPO"; then
8595 for ncn_progname in lipo; do
8596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597 set dummy ${ncn_progname}; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if test "${ac_cv_prog_LIPO+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 if test -n "$LIPO"; then
8604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_prog_LIPO="${ncn_progname}"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8617 done
8618 done
8619 IFS=$as_save_IFS
8623 LIPO=$ac_cv_prog_LIPO
8624 if test -n "$LIPO"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8626 $as_echo "$LIPO" >&6; }
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8633 done
8636 for ncn_progname in lipo; do
8637 if test -n "$ncn_tool_prefix"; then
8638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8639 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if test "${ac_cv_prog_LIPO+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 if test -n "$LIPO"; then
8646 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8659 done
8660 done
8661 IFS=$as_save_IFS
8665 LIPO=$ac_cv_prog_LIPO
8666 if test -n "$LIPO"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8668 $as_echo "$LIPO" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8676 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8678 set dummy ${ncn_progname}; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if test "${ac_cv_prog_LIPO+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 if test -n "$LIPO"; then
8685 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694 ac_cv_prog_LIPO="${ncn_progname}"
8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 break 2
8698 done
8699 done
8700 IFS=$as_save_IFS
8704 LIPO=$ac_cv_prog_LIPO
8705 if test -n "$LIPO"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8707 $as_echo "$LIPO" >&6; }
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8715 test -n "$ac_cv_prog_LIPO" && break
8716 done
8718 if test -z "$ac_cv_prog_LIPO" ; then
8719 set dummy lipo
8720 if test $build = $host ; then
8721 LIPO="$2"
8722 else
8723 LIPO="${ncn_tool_prefix}$2"
8729 if test -n "$NM"; then
8730 ac_cv_prog_NM=$NM
8731 elif test -n "$ac_cv_prog_NM"; then
8732 NM=$ac_cv_prog_NM
8735 if test -n "$ac_cv_prog_NM"; then
8736 for ncn_progname in nm; do
8737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8738 set dummy ${ncn_progname}; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if test "${ac_cv_prog_NM+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
8743 else
8744 if test -n "$NM"; then
8745 ac_cv_prog_NM="$NM" # Let the user override the test.
8746 else
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8754 ac_cv_prog_NM="${ncn_progname}"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8758 done
8759 done
8760 IFS=$as_save_IFS
8764 NM=$ac_cv_prog_NM
8765 if test -n "$NM"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8767 $as_echo "$NM" >&6; }
8768 else
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8774 done
8777 for ncn_progname in nm; do
8778 if test -n "$ncn_tool_prefix"; then
8779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8780 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if test "${ac_cv_prog_NM+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 if test -n "$NM"; then
8787 ac_cv_prog_NM="$NM" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8800 done
8801 done
8802 IFS=$as_save_IFS
8806 NM=$ac_cv_prog_NM
8807 if test -n "$NM"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8809 $as_echo "$NM" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8817 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8819 set dummy ${ncn_progname}; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if test "${ac_cv_prog_NM+set}" = set; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 if test -n "$NM"; then
8826 ac_cv_prog_NM="$NM" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8835 ac_cv_prog_NM="${ncn_progname}"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8839 done
8840 done
8841 IFS=$as_save_IFS
8845 NM=$ac_cv_prog_NM
8846 if test -n "$NM"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8848 $as_echo "$NM" >&6; }
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8856 test -n "$ac_cv_prog_NM" && break
8857 done
8859 if test -z "$ac_cv_prog_NM" ; then
8860 set dummy nm
8861 if test $build = $host ; then
8862 NM="$2"
8863 else
8864 NM="${ncn_tool_prefix}$2"
8870 if test -n "$RANLIB"; then
8871 ac_cv_prog_RANLIB=$RANLIB
8872 elif test -n "$ac_cv_prog_RANLIB"; then
8873 RANLIB=$ac_cv_prog_RANLIB
8876 if test -n "$ac_cv_prog_RANLIB"; then
8877 for ncn_progname in ranlib; do
8878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879 set dummy ${ncn_progname}; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 if test -n "$RANLIB"; then
8886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895 ac_cv_prog_RANLIB="${ncn_progname}"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8899 done
8900 done
8901 IFS=$as_save_IFS
8905 RANLIB=$ac_cv_prog_RANLIB
8906 if test -n "$RANLIB"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8908 $as_echo "$RANLIB" >&6; }
8909 else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8915 done
8918 for ncn_progname in ranlib; do
8919 if test -n "$ncn_tool_prefix"; then
8920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8921 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923 $as_echo_n "checking for $ac_word... " >&6; }
8924 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 if test -n "$RANLIB"; then
8928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8929 else
8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 for as_dir in $PATH
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8937 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939 break 2
8941 done
8942 done
8943 IFS=$as_save_IFS
8947 RANLIB=$ac_cv_prog_RANLIB
8948 if test -n "$RANLIB"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8950 $as_echo "$RANLIB" >&6; }
8951 else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8958 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8960 set dummy ${ncn_progname}; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 if test -n "$RANLIB"; then
8967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8968 else
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970 for as_dir in $PATH
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8976 ac_cv_prog_RANLIB="${ncn_progname}"
8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8978 break 2
8980 done
8981 done
8982 IFS=$as_save_IFS
8986 RANLIB=$ac_cv_prog_RANLIB
8987 if test -n "$RANLIB"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8989 $as_echo "$RANLIB" >&6; }
8990 else
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8997 test -n "$ac_cv_prog_RANLIB" && break
8998 done
9000 if test -z "$ac_cv_prog_RANLIB" ; then
9001 RANLIB="true"
9006 if test -n "$STRIP"; then
9007 ac_cv_prog_STRIP=$STRIP
9008 elif test -n "$ac_cv_prog_STRIP"; then
9009 STRIP=$ac_cv_prog_STRIP
9012 if test -n "$ac_cv_prog_STRIP"; then
9013 for ncn_progname in strip; do
9014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9015 set dummy ${ncn_progname}; ac_word=$2
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 $as_echo_n "checking for $ac_word... " >&6; }
9018 if test "${ac_cv_prog_STRIP+set}" = set; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 if test -n "$STRIP"; then
9022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9023 else
9024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025 for as_dir in $PATH
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9031 ac_cv_prog_STRIP="${ncn_progname}"
9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9033 break 2
9035 done
9036 done
9037 IFS=$as_save_IFS
9041 STRIP=$ac_cv_prog_STRIP
9042 if test -n "$STRIP"; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9044 $as_echo "$STRIP" >&6; }
9045 else
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 $as_echo "no" >&6; }
9051 done
9054 for ncn_progname in strip; do
9055 if test -n "$ncn_tool_prefix"; then
9056 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9057 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if test "${ac_cv_prog_STRIP+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 if test -n "$STRIP"; then
9064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9065 else
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9073 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 break 2
9077 done
9078 done
9079 IFS=$as_save_IFS
9083 STRIP=$ac_cv_prog_STRIP
9084 if test -n "$STRIP"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9086 $as_echo "$STRIP" >&6; }
9087 else
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9094 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9096 set dummy ${ncn_progname}; ac_word=$2
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098 $as_echo_n "checking for $ac_word... " >&6; }
9099 if test "${ac_cv_prog_STRIP+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 if test -n "$STRIP"; then
9103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9104 else
9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 for as_dir in $PATH
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9112 ac_cv_prog_STRIP="${ncn_progname}"
9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 break 2
9116 done
9117 done
9118 IFS=$as_save_IFS
9122 STRIP=$ac_cv_prog_STRIP
9123 if test -n "$STRIP"; then
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9125 $as_echo "$STRIP" >&6; }
9126 else
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128 $as_echo "no" >&6; }
9133 test -n "$ac_cv_prog_STRIP" && break
9134 done
9136 if test -z "$ac_cv_prog_STRIP" ; then
9137 STRIP="true"
9142 if test -n "$WINDRES"; then
9143 ac_cv_prog_WINDRES=$WINDRES
9144 elif test -n "$ac_cv_prog_WINDRES"; then
9145 WINDRES=$ac_cv_prog_WINDRES
9148 if test -n "$ac_cv_prog_WINDRES"; then
9149 for ncn_progname in windres; do
9150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9151 set dummy ${ncn_progname}; ac_word=$2
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153 $as_echo_n "checking for $ac_word... " >&6; }
9154 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 if test -n "$WINDRES"; then
9158 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9159 else
9160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 for as_dir in $PATH
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9167 ac_cv_prog_WINDRES="${ncn_progname}"
9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 break 2
9171 done
9172 done
9173 IFS=$as_save_IFS
9177 WINDRES=$ac_cv_prog_WINDRES
9178 if test -n "$WINDRES"; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9180 $as_echo "$WINDRES" >&6; }
9181 else
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183 $as_echo "no" >&6; }
9187 done
9190 for ncn_progname in windres; do
9191 if test -n "$ncn_tool_prefix"; then
9192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9193 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 if test -n "$WINDRES"; then
9200 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9201 else
9202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 for as_dir in $PATH
9205 IFS=$as_save_IFS
9206 test -z "$as_dir" && as_dir=.
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9209 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9211 break 2
9213 done
9214 done
9215 IFS=$as_save_IFS
9219 WINDRES=$ac_cv_prog_WINDRES
9220 if test -n "$WINDRES"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9222 $as_echo "$WINDRES" >&6; }
9223 else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225 $as_echo "no" >&6; }
9230 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9232 set dummy ${ncn_progname}; ac_word=$2
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 $as_echo_n "checking for $ac_word... " >&6; }
9235 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 if test -n "$WINDRES"; then
9239 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9240 else
9241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242 for as_dir in $PATH
9244 IFS=$as_save_IFS
9245 test -z "$as_dir" && as_dir=.
9246 for ac_exec_ext in '' $ac_executable_extensions; do
9247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9248 ac_cv_prog_WINDRES="${ncn_progname}"
9249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9250 break 2
9252 done
9253 done
9254 IFS=$as_save_IFS
9258 WINDRES=$ac_cv_prog_WINDRES
9259 if test -n "$WINDRES"; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9261 $as_echo "$WINDRES" >&6; }
9262 else
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264 $as_echo "no" >&6; }
9269 test -n "$ac_cv_prog_WINDRES" && break
9270 done
9272 if test -z "$ac_cv_prog_WINDRES" ; then
9273 set dummy windres
9274 if test $build = $host ; then
9275 WINDRES="$2"
9276 else
9277 WINDRES="${ncn_tool_prefix}$2"
9283 if test -n "$WINDMC"; then
9284 ac_cv_prog_WINDMC=$WINDMC
9285 elif test -n "$ac_cv_prog_WINDMC"; then
9286 WINDMC=$ac_cv_prog_WINDMC
9289 if test -n "$ac_cv_prog_WINDMC"; then
9290 for ncn_progname in windmc; do
9291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292 set dummy ${ncn_progname}; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 if test -n "$WINDMC"; then
9299 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9300 else
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9308 ac_cv_prog_WINDMC="${ncn_progname}"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9310 break 2
9312 done
9313 done
9314 IFS=$as_save_IFS
9318 WINDMC=$ac_cv_prog_WINDMC
9319 if test -n "$WINDMC"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9321 $as_echo "$WINDMC" >&6; }
9322 else
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324 $as_echo "no" >&6; }
9328 done
9331 for ncn_progname in windmc; do
9332 if test -n "$ncn_tool_prefix"; then
9333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9334 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 if test -n "$WINDMC"; then
9341 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9342 else
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344 for as_dir in $PATH
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9350 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9352 break 2
9354 done
9355 done
9356 IFS=$as_save_IFS
9360 WINDMC=$ac_cv_prog_WINDMC
9361 if test -n "$WINDMC"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9363 $as_echo "$WINDMC" >&6; }
9364 else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9371 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373 set dummy ${ncn_progname}; ac_word=$2
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 $as_echo_n "checking for $ac_word... " >&6; }
9376 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 if test -n "$WINDMC"; then
9380 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9381 else
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $PATH
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_prog_WINDMC="${ncn_progname}"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9393 done
9394 done
9395 IFS=$as_save_IFS
9399 WINDMC=$ac_cv_prog_WINDMC
9400 if test -n "$WINDMC"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9402 $as_echo "$WINDMC" >&6; }
9403 else
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9410 test -n "$ac_cv_prog_WINDMC" && break
9411 done
9413 if test -z "$ac_cv_prog_WINDMC" ; then
9414 set dummy windmc
9415 if test $build = $host ; then
9416 WINDMC="$2"
9417 else
9418 WINDMC="${ncn_tool_prefix}$2"
9424 if test -n "$OBJCOPY"; then
9425 ac_cv_prog_OBJCOPY=$OBJCOPY
9426 elif test -n "$ac_cv_prog_OBJCOPY"; then
9427 OBJCOPY=$ac_cv_prog_OBJCOPY
9430 if test -n "$ac_cv_prog_OBJCOPY"; then
9431 for ncn_progname in objcopy; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433 set dummy ${ncn_progname}; ac_word=$2
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435 $as_echo_n "checking for $ac_word... " >&6; }
9436 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 if test -n "$OBJCOPY"; then
9440 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9441 else
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443 for as_dir in $PATH
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_prog_OBJCOPY="${ncn_progname}"
9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 break 2
9453 done
9454 done
9455 IFS=$as_save_IFS
9459 OBJCOPY=$ac_cv_prog_OBJCOPY
9460 if test -n "$OBJCOPY"; then
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9462 $as_echo "$OBJCOPY" >&6; }
9463 else
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9469 done
9472 for ncn_progname in objcopy; do
9473 if test -n "$ncn_tool_prefix"; then
9474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9475 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 if test -n "$OBJCOPY"; then
9482 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9483 else
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9491 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 break 2
9495 done
9496 done
9497 IFS=$as_save_IFS
9501 OBJCOPY=$ac_cv_prog_OBJCOPY
9502 if test -n "$OBJCOPY"; then
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9504 $as_echo "$OBJCOPY" >&6; }
9505 else
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507 $as_echo "no" >&6; }
9512 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9514 set dummy ${ncn_progname}; ac_word=$2
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516 $as_echo_n "checking for $ac_word... " >&6; }
9517 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 if test -n "$OBJCOPY"; then
9521 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9522 else
9523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524 for as_dir in $PATH
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9530 ac_cv_prog_OBJCOPY="${ncn_progname}"
9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 break 2
9534 done
9535 done
9536 IFS=$as_save_IFS
9540 OBJCOPY=$ac_cv_prog_OBJCOPY
9541 if test -n "$OBJCOPY"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9543 $as_echo "$OBJCOPY" >&6; }
9544 else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546 $as_echo "no" >&6; }
9551 test -n "$ac_cv_prog_OBJCOPY" && break
9552 done
9554 if test -z "$ac_cv_prog_OBJCOPY" ; then
9555 set dummy objcopy
9556 if test $build = $host ; then
9557 OBJCOPY="$2"
9558 else
9559 OBJCOPY="${ncn_tool_prefix}$2"
9565 if test -n "$OBJDUMP"; then
9566 ac_cv_prog_OBJDUMP=$OBJDUMP
9567 elif test -n "$ac_cv_prog_OBJDUMP"; then
9568 OBJDUMP=$ac_cv_prog_OBJDUMP
9571 if test -n "$ac_cv_prog_OBJDUMP"; then
9572 for ncn_progname in objdump; do
9573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9574 set dummy ${ncn_progname}; ac_word=$2
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576 $as_echo_n "checking for $ac_word... " >&6; }
9577 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 if test -n "$OBJDUMP"; then
9581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9582 else
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9590 ac_cv_prog_OBJDUMP="${ncn_progname}"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9594 done
9595 done
9596 IFS=$as_save_IFS
9600 OBJDUMP=$ac_cv_prog_OBJDUMP
9601 if test -n "$OBJDUMP"; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9603 $as_echo "$OBJDUMP" >&6; }
9604 else
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9610 done
9613 for ncn_progname in objdump; do
9614 if test -n "$ncn_tool_prefix"; then
9615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9616 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; }
9619 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 if test -n "$OBJDUMP"; then
9623 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9624 else
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9636 done
9637 done
9638 IFS=$as_save_IFS
9642 OBJDUMP=$ac_cv_prog_OBJDUMP
9643 if test -n "$OBJDUMP"; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9645 $as_echo "$OBJDUMP" >&6; }
9646 else
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648 $as_echo "no" >&6; }
9653 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655 set dummy ${ncn_progname}; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 if test -n "$OBJDUMP"; then
9662 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9663 else
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $PATH
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9671 ac_cv_prog_OBJDUMP="${ncn_progname}"
9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9673 break 2
9675 done
9676 done
9677 IFS=$as_save_IFS
9681 OBJDUMP=$ac_cv_prog_OBJDUMP
9682 if test -n "$OBJDUMP"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9684 $as_echo "$OBJDUMP" >&6; }
9685 else
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9692 test -n "$ac_cv_prog_OBJDUMP" && break
9693 done
9695 if test -z "$ac_cv_prog_OBJDUMP" ; then
9696 set dummy objdump
9697 if test $build = $host ; then
9698 OBJDUMP="$2"
9699 else
9700 OBJDUMP="${ncn_tool_prefix}$2"
9706 if test -n "$READELF"; then
9707 ac_cv_prog_READELF=$READELF
9708 elif test -n "$ac_cv_prog_READELF"; then
9709 READELF=$ac_cv_prog_READELF
9712 if test -n "$ac_cv_prog_READELF"; then
9713 for ncn_progname in readelf; do
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715 set dummy ${ncn_progname}; ac_word=$2
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717 $as_echo_n "checking for $ac_word... " >&6; }
9718 if test "${ac_cv_prog_READELF+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 if test -n "$READELF"; then
9722 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9723 else
9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 for as_dir in $PATH
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_prog_READELF="${ncn_progname}"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9735 done
9736 done
9737 IFS=$as_save_IFS
9741 READELF=$ac_cv_prog_READELF
9742 if test -n "$READELF"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9744 $as_echo "$READELF" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9751 done
9754 for ncn_progname in readelf; do
9755 if test -n "$ncn_tool_prefix"; then
9756 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9757 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if test "${ac_cv_prog_READELF+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 if test -n "$READELF"; then
9764 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9765 else
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9777 done
9778 done
9779 IFS=$as_save_IFS
9783 READELF=$ac_cv_prog_READELF
9784 if test -n "$READELF"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9786 $as_echo "$READELF" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9794 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9796 set dummy ${ncn_progname}; ac_word=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if test "${ac_cv_prog_READELF+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 if test -n "$READELF"; then
9803 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9804 else
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $PATH
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_prog_READELF="${ncn_progname}"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9816 done
9817 done
9818 IFS=$as_save_IFS
9822 READELF=$ac_cv_prog_READELF
9823 if test -n "$READELF"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9825 $as_echo "$READELF" >&6; }
9826 else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9833 test -n "$ac_cv_prog_READELF" && break
9834 done
9836 if test -z "$ac_cv_prog_READELF" ; then
9837 set dummy readelf
9838 if test $build = $host ; then
9839 READELF="$2"
9840 else
9841 READELF="${ncn_tool_prefix}$2"
9850 # Target tools.
9852 # Check whether --with-build-time-tools was given.
9853 if test "${with_build_time_tools+set}" = set; then :
9854 withval=$with_build_time_tools; case x"$withval" in
9855 x/*) ;;
9857 with_build_time_tools=
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9859 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9861 esac
9862 else
9863 with_build_time_tools=
9869 if test -n "$CC_FOR_TARGET"; then
9870 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9871 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9872 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9875 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9876 for ncn_progname in cc gcc; do
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878 set dummy ${ncn_progname}; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 if test -n "$CC_FOR_TARGET"; then
9885 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9886 else
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 for as_dir in $PATH
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 break 2
9898 done
9899 done
9900 IFS=$as_save_IFS
9904 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9905 if test -n "$CC_FOR_TARGET"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9907 $as_echo "$CC_FOR_TARGET" >&6; }
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9914 done
9917 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9918 for ncn_progname in cc gcc; do
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9920 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9921 if test -x $with_build_time_tools/${ncn_progname}; then
9922 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; }
9925 break
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9930 done
9933 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9934 for ncn_progname in cc gcc; do
9935 if test -n "$ncn_target_tool_prefix"; then
9936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9937 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 if test -n "$CC_FOR_TARGET"; then
9944 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9945 else
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9953 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9957 done
9958 done
9959 IFS=$as_save_IFS
9963 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9964 if test -n "$CC_FOR_TARGET"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9966 $as_echo "$CC_FOR_TARGET" >&6; }
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9974 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9976 set dummy ${ncn_progname}; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 if test -n "$CC_FOR_TARGET"; then
9983 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9984 else
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9996 done
9997 done
9998 IFS=$as_save_IFS
10002 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10003 if test -n "$CC_FOR_TARGET"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10005 $as_echo "$CC_FOR_TARGET" >&6; }
10006 else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10013 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10014 done
10017 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10018 set dummy cc gcc
10019 if test $build = $target ; then
10020 CC_FOR_TARGET="$2"
10021 else
10022 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10024 else
10025 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10030 if test -n "$CXX_FOR_TARGET"; then
10031 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10032 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10033 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10036 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10037 for ncn_progname in c++ g++ cxx gxx; do
10038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10039 set dummy ${ncn_progname}; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 if test -n "$CXX_FOR_TARGET"; then
10046 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10047 else
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10059 done
10060 done
10061 IFS=$as_save_IFS
10065 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10066 if test -n "$CXX_FOR_TARGET"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10068 $as_echo "$CXX_FOR_TARGET" >&6; }
10069 else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10075 done
10078 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10079 for ncn_progname in c++ g++ cxx gxx; do
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10081 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10082 if test -x $with_build_time_tools/${ncn_progname}; then
10083 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10085 $as_echo "yes" >&6; }
10086 break
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10091 done
10094 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10095 for ncn_progname in c++ g++ cxx gxx; do
10096 if test -n "$ncn_target_tool_prefix"; then
10097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10098 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100 $as_echo_n "checking for $ac_word... " >&6; }
10101 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 if test -n "$CXX_FOR_TARGET"; then
10105 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10106 else
10107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108 for as_dir in $PATH
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10114 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10116 break 2
10118 done
10119 done
10120 IFS=$as_save_IFS
10124 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10125 if test -n "$CXX_FOR_TARGET"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10127 $as_echo "$CXX_FOR_TARGET" >&6; }
10128 else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10135 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10137 set dummy ${ncn_progname}; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 if test -n "$CXX_FOR_TARGET"; then
10144 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10153 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10157 done
10158 done
10159 IFS=$as_save_IFS
10163 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10164 if test -n "$CXX_FOR_TARGET"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10166 $as_echo "$CXX_FOR_TARGET" >&6; }
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10174 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10175 done
10178 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10179 set dummy c++ g++ cxx gxx
10180 if test $build = $target ; then
10181 CXX_FOR_TARGET="$2"
10182 else
10183 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10185 else
10186 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10191 if test -n "$GCC_FOR_TARGET"; then
10192 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10193 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10194 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10197 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10198 for ncn_progname in gcc; do
10199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10200 set dummy ${ncn_progname}; ac_word=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206 if test -n "$GCC_FOR_TARGET"; then
10207 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10208 else
10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210 for as_dir in $PATH
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10216 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 break 2
10220 done
10221 done
10222 IFS=$as_save_IFS
10226 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10227 if test -n "$GCC_FOR_TARGET"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10229 $as_echo "$GCC_FOR_TARGET" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10236 done
10239 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10240 for ncn_progname in gcc; do
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10242 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10243 if test -x $with_build_time_tools/${ncn_progname}; then
10244 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10246 $as_echo "yes" >&6; }
10247 break
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10252 done
10255 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10256 for ncn_progname in gcc; do
10257 if test -n "$ncn_target_tool_prefix"; then
10258 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10259 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 if test -n "$GCC_FOR_TARGET"; then
10266 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10267 else
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10275 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10279 done
10280 done
10281 IFS=$as_save_IFS
10285 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10286 if test -n "$GCC_FOR_TARGET"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10288 $as_echo "$GCC_FOR_TARGET" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10296 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10298 set dummy ${ncn_progname}; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 if test -n "$GCC_FOR_TARGET"; then
10305 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10306 else
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10314 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 break 2
10318 done
10319 done
10320 IFS=$as_save_IFS
10324 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10325 if test -n "$GCC_FOR_TARGET"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10327 $as_echo "$GCC_FOR_TARGET" >&6; }
10328 else
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10335 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10336 done
10339 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10340 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10341 else
10342 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10347 if test -n "$GFORTRAN_FOR_TARGET"; then
10348 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10349 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10353 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10354 for ncn_progname in gfortran; do
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10356 set dummy ${ncn_progname}; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 if test -n "$GFORTRAN_FOR_TARGET"; then
10363 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10364 else
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10376 done
10377 done
10378 IFS=$as_save_IFS
10382 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10383 if test -n "$GFORTRAN_FOR_TARGET"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10385 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10386 else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10392 done
10395 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10396 for ncn_progname in gfortran; do
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10398 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10399 if test -x $with_build_time_tools/${ncn_progname}; then
10400 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10402 $as_echo "yes" >&6; }
10403 break
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10408 done
10411 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10412 for ncn_progname in gfortran; do
10413 if test -n "$ncn_target_tool_prefix"; then
10414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10415 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 if test -n "$GFORTRAN_FOR_TARGET"; then
10422 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10423 else
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10431 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10435 done
10436 done
10437 IFS=$as_save_IFS
10441 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10442 if test -n "$GFORTRAN_FOR_TARGET"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10444 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10445 else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10452 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454 set dummy ${ncn_progname}; ac_word=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 if test -n "$GFORTRAN_FOR_TARGET"; then
10461 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10462 else
10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10470 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472 break 2
10474 done
10475 done
10476 IFS=$as_save_IFS
10480 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10481 if test -n "$GFORTRAN_FOR_TARGET"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10483 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10491 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10492 done
10495 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10496 set dummy gfortran
10497 if test $build = $target ; then
10498 GFORTRAN_FOR_TARGET="$2"
10499 else
10500 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10502 else
10503 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10508 if test -n "$GOC_FOR_TARGET"; then
10509 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10510 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10514 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10515 for ncn_progname in gccgo; do
10516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10517 set dummy ${ncn_progname}; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 if test -n "$GOC_FOR_TARGET"; then
10524 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10525 else
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10537 done
10538 done
10539 IFS=$as_save_IFS
10543 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10544 if test -n "$GOC_FOR_TARGET"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10546 $as_echo "$GOC_FOR_TARGET" >&6; }
10547 else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10553 done
10556 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10557 for ncn_progname in gccgo; do
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10559 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10560 if test -x $with_build_time_tools/${ncn_progname}; then
10561 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563 $as_echo "yes" >&6; }
10564 break
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10569 done
10572 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10573 for ncn_progname in gccgo; do
10574 if test -n "$ncn_target_tool_prefix"; then
10575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10576 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578 $as_echo_n "checking for $ac_word... " >&6; }
10579 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 if test -n "$GOC_FOR_TARGET"; then
10583 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10584 else
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10596 done
10597 done
10598 IFS=$as_save_IFS
10602 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10603 if test -n "$GOC_FOR_TARGET"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10605 $as_echo "$GOC_FOR_TARGET" >&6; }
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10613 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10615 set dummy ${ncn_progname}; ac_word=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 if test -n "$GOC_FOR_TARGET"; then
10622 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10623 else
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10635 done
10636 done
10637 IFS=$as_save_IFS
10641 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10642 if test -n "$GOC_FOR_TARGET"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10644 $as_echo "$GOC_FOR_TARGET" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10652 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10653 done
10656 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10657 set dummy gccgo
10658 if test $build = $target ; then
10659 GOC_FOR_TARGET="$2"
10660 else
10661 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10663 else
10664 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10669 cat > conftest.c << \EOF
10670 #ifdef __GNUC__
10671 gcc_yay;
10672 #endif
10674 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10675 have_gcc_for_target=yes
10676 else
10677 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10678 have_gcc_for_target=no
10680 rm conftest.c
10685 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10688 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10689 if test -x $with_build_time_tools/ar; then
10690 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10691 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10693 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10700 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10701 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10704 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10705 # Extract the first word of "ar", so it can be a program name with args.
10706 set dummy ar; ac_word=$2
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708 $as_echo_n "checking for $ac_word... " >&6; }
10709 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 case $AR_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
10714 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $gcc_cv_tool_dirs
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10728 done
10729 done
10730 IFS=$as_save_IFS
10733 esac
10735 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10736 if test -n "$AR_FOR_TARGET"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10738 $as_echo "$AR_FOR_TARGET" >&6; }
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10746 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10749 if test -n "$AR_FOR_TARGET"; then
10750 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10751 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10752 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10755 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10756 for ncn_progname in ar; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758 set dummy ${ncn_progname}; ac_word=$2
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760 $as_echo_n "checking for $ac_word... " >&6; }
10761 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 if test -n "$AR_FOR_TARGET"; then
10765 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10766 else
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10784 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10785 if test -n "$AR_FOR_TARGET"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10787 $as_echo "$AR_FOR_TARGET" >&6; }
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10794 done
10797 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10798 for ncn_progname in ar; do
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804 $as_echo "yes" >&6; }
10805 break
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10810 done
10813 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10814 for ncn_progname in ar; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10817 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 if test -n "$AR_FOR_TARGET"; then
10824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10825 else
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10837 done
10838 done
10839 IFS=$as_save_IFS
10843 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10844 if test -n "$AR_FOR_TARGET"; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10846 $as_echo "$AR_FOR_TARGET" >&6; }
10847 else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10854 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10856 set dummy ${ncn_progname}; ac_word=$2
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 $as_echo_n "checking for $ac_word... " >&6; }
10859 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 if test -n "$AR_FOR_TARGET"; then
10863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10864 else
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 for as_dir in $PATH
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10876 done
10877 done
10878 IFS=$as_save_IFS
10882 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10883 if test -n "$AR_FOR_TARGET"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10885 $as_echo "$AR_FOR_TARGET" >&6; }
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10893 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10894 done
10897 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10898 set dummy ar
10899 if test $build = $target ; then
10900 AR_FOR_TARGET="$2"
10901 else
10902 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10904 else
10905 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10908 else
10909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10915 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10916 if test -n "$with_build_time_tools"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10918 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10919 if test -x $with_build_time_tools/as; then
10920 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10921 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10923 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10928 elif test $build != $host && test $have_gcc_for_target = yes; then
10929 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10930 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10931 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10934 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10935 # Extract the first word of "as", so it can be a program name with args.
10936 set dummy as; ac_word=$2
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938 $as_echo_n "checking for $ac_word... " >&6; }
10939 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 case $AS_FOR_TARGET in
10943 [\\/]* | ?:[\\/]*)
10944 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $gcc_cv_tool_dirs
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10958 done
10959 done
10960 IFS=$as_save_IFS
10963 esac
10965 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10966 if test -n "$AS_FOR_TARGET"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10968 $as_echo "$AS_FOR_TARGET" >&6; }
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10976 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10979 if test -n "$AS_FOR_TARGET"; then
10980 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10981 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10982 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10985 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10986 for ncn_progname in as; do
10987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10988 set dummy ${ncn_progname}; ac_word=$2
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990 $as_echo_n "checking for $ac_word... " >&6; }
10991 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 if test -n "$AS_FOR_TARGET"; then
10995 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10996 else
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11008 done
11009 done
11010 IFS=$as_save_IFS
11014 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11015 if test -n "$AS_FOR_TARGET"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11017 $as_echo "$AS_FOR_TARGET" >&6; }
11018 else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 $as_echo "no" >&6; }
11024 done
11027 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11028 for ncn_progname in as; do
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11030 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11031 if test -x $with_build_time_tools/${ncn_progname}; then
11032 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11034 $as_echo "yes" >&6; }
11035 break
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11040 done
11043 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11044 for ncn_progname in as; do
11045 if test -n "$ncn_target_tool_prefix"; then
11046 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11047 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049 $as_echo_n "checking for $ac_word... " >&6; }
11050 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053 if test -n "$AS_FOR_TARGET"; then
11054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11055 else
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11073 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11074 if test -n "$AS_FOR_TARGET"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11076 $as_echo "$AS_FOR_TARGET" >&6; }
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11084 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086 set dummy ${ncn_progname}; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 if test -n "$AS_FOR_TARGET"; then
11093 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11094 else
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11106 done
11107 done
11108 IFS=$as_save_IFS
11112 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11113 if test -n "$AS_FOR_TARGET"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11115 $as_echo "$AS_FOR_TARGET" >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11123 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11124 done
11127 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11128 set dummy as
11129 if test $build = $target ; then
11130 AS_FOR_TARGET="$2"
11131 else
11132 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11134 else
11135 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11138 else
11139 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11145 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11146 if test -n "$with_build_time_tools"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11148 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11149 if test -x $with_build_time_tools/dlltool; then
11150 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11151 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11153 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11158 elif test $build != $host && test $have_gcc_for_target = yes; then
11159 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11160 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11161 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11164 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11165 # Extract the first word of "dlltool", so it can be a program name with args.
11166 set dummy dlltool; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 case $DLLTOOL_FOR_TARGET in
11173 [\\/]* | ?:[\\/]*)
11174 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $gcc_cv_tool_dirs
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186 break 2
11188 done
11189 done
11190 IFS=$as_save_IFS
11193 esac
11195 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11196 if test -n "$DLLTOOL_FOR_TARGET"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11198 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11206 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11209 if test -n "$DLLTOOL_FOR_TARGET"; then
11210 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11211 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11215 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11216 for ncn_progname in dlltool; do
11217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11218 set dummy ${ncn_progname}; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 if test -n "$DLLTOOL_FOR_TARGET"; then
11225 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11226 else
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11234 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236 break 2
11238 done
11239 done
11240 IFS=$as_save_IFS
11244 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11245 if test -n "$DLLTOOL_FOR_TARGET"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11247 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11254 done
11257 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11258 for ncn_progname in dlltool; do
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11260 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11261 if test -x $with_build_time_tools/${ncn_progname}; then
11262 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264 $as_echo "yes" >&6; }
11265 break
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11270 done
11273 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11274 for ncn_progname in dlltool; do
11275 if test -n "$ncn_target_tool_prefix"; then
11276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11277 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279 $as_echo_n "checking for $ac_word... " >&6; }
11280 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 if test -n "$DLLTOOL_FOR_TARGET"; then
11284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11285 else
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 break 2
11297 done
11298 done
11299 IFS=$as_save_IFS
11303 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11304 if test -n "$DLLTOOL_FOR_TARGET"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11306 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11314 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316 set dummy ${ncn_progname}; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318 $as_echo_n "checking for $ac_word... " >&6; }
11319 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11322 if test -n "$DLLTOOL_FOR_TARGET"; then
11323 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11324 else
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11332 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 break 2
11336 done
11337 done
11338 IFS=$as_save_IFS
11342 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11343 if test -n "$DLLTOOL_FOR_TARGET"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11345 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11353 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11354 done
11357 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11358 set dummy dlltool
11359 if test $build = $target ; then
11360 DLLTOOL_FOR_TARGET="$2"
11361 else
11362 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11364 else
11365 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11368 else
11369 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11375 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11376 if test -n "$with_build_time_tools"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11378 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11379 if test -x $with_build_time_tools/ld; then
11380 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11381 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11383 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11388 elif test $build != $host && test $have_gcc_for_target = yes; then
11389 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11390 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11391 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11394 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11395 # Extract the first word of "ld", so it can be a program name with args.
11396 set dummy ld; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 case $LD_FOR_TARGET in
11403 [\\/]* | ?:[\\/]*)
11404 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $gcc_cv_tool_dirs
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 break 2
11418 done
11419 done
11420 IFS=$as_save_IFS
11423 esac
11425 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11426 if test -n "$LD_FOR_TARGET"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11428 $as_echo "$LD_FOR_TARGET" >&6; }
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11436 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11439 if test -n "$LD_FOR_TARGET"; then
11440 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11441 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11442 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11445 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11446 for ncn_progname in ld; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448 set dummy ${ncn_progname}; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 if test -n "$LD_FOR_TARGET"; then
11455 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11456 else
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11464 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 break 2
11468 done
11469 done
11470 IFS=$as_save_IFS
11474 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11475 if test -n "$LD_FOR_TARGET"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11477 $as_echo "$LD_FOR_TARGET" >&6; }
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11484 done
11487 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11488 for ncn_progname in ld; do
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11490 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11491 if test -x $with_build_time_tools/${ncn_progname}; then
11492 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494 $as_echo "yes" >&6; }
11495 break
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11500 done
11503 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11504 for ncn_progname in ld; do
11505 if test -n "$ncn_target_tool_prefix"; then
11506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11507 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509 $as_echo_n "checking for $ac_word... " >&6; }
11510 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 if test -n "$LD_FOR_TARGET"; then
11514 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11515 else
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11527 done
11528 done
11529 IFS=$as_save_IFS
11533 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11534 if test -n "$LD_FOR_TARGET"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11536 $as_echo "$LD_FOR_TARGET" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11544 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11546 set dummy ${ncn_progname}; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 if test -n "$LD_FOR_TARGET"; then
11553 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11554 else
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11566 done
11567 done
11568 IFS=$as_save_IFS
11572 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11573 if test -n "$LD_FOR_TARGET"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11575 $as_echo "$LD_FOR_TARGET" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11583 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11584 done
11587 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11588 set dummy ld
11589 if test $build = $target ; then
11590 LD_FOR_TARGET="$2"
11591 else
11592 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11594 else
11595 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11598 else
11599 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11605 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11606 if test -n "$with_build_time_tools"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11608 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11609 if test -x $with_build_time_tools/lipo; then
11610 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11611 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11613 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11618 elif test $build != $host && test $have_gcc_for_target = yes; then
11619 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11620 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11621 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11624 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11625 # Extract the first word of "lipo", so it can be a program name with args.
11626 set dummy lipo; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 case $LIPO_FOR_TARGET in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $gcc_cv_tool_dirs
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11644 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646 break 2
11648 done
11649 done
11650 IFS=$as_save_IFS
11653 esac
11655 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11656 if test -n "$LIPO_FOR_TARGET"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11658 $as_echo "$LIPO_FOR_TARGET" >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11666 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11669 if test -n "$LIPO_FOR_TARGET"; then
11670 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11671 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11675 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11676 for ncn_progname in lipo; do
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678 set dummy ${ncn_progname}; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 if test -n "$LIPO_FOR_TARGET"; then
11685 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11686 else
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11694 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11698 done
11699 done
11700 IFS=$as_save_IFS
11704 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11705 if test -n "$LIPO_FOR_TARGET"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11707 $as_echo "$LIPO_FOR_TARGET" >&6; }
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11714 done
11717 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11718 for ncn_progname in lipo; do
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11720 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11721 if test -x $with_build_time_tools/${ncn_progname}; then
11722 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724 $as_echo "yes" >&6; }
11725 break
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11730 done
11733 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11734 for ncn_progname in lipo; do
11735 if test -n "$ncn_target_tool_prefix"; then
11736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11737 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test -n "$LIPO_FOR_TARGET"; then
11744 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11757 done
11758 done
11759 IFS=$as_save_IFS
11763 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11764 if test -n "$LIPO_FOR_TARGET"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11766 $as_echo "$LIPO_FOR_TARGET" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11774 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11776 set dummy ${ncn_progname}; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 if test -n "$LIPO_FOR_TARGET"; then
11783 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11784 else
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11792 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11796 done
11797 done
11798 IFS=$as_save_IFS
11802 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11803 if test -n "$LIPO_FOR_TARGET"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11805 $as_echo "$LIPO_FOR_TARGET" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11814 done
11817 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11818 set dummy lipo
11819 if test $build = $target ; then
11820 LIPO_FOR_TARGET="$2"
11821 else
11822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11824 else
11825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11828 else
11829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11835 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11836 if test -n "$with_build_time_tools"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11838 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11839 if test -x $with_build_time_tools/nm; then
11840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11843 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11848 elif test $build != $host && test $have_gcc_for_target = yes; then
11849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11854 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11855 # Extract the first word of "nm", so it can be a program name with args.
11856 set dummy nm; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 case $NM_FOR_TARGET in
11863 [\\/]* | ?:[\\/]*)
11864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $gcc_cv_tool_dirs
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11878 done
11879 done
11880 IFS=$as_save_IFS
11883 esac
11885 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11886 if test -n "$NM_FOR_TARGET"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11888 $as_echo "$NM_FOR_TARGET" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11896 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11899 if test -n "$NM_FOR_TARGET"; then
11900 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11901 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11902 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11905 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11906 for ncn_progname in nm; do
11907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908 set dummy ${ncn_progname}; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
11913 else
11914 if test -n "$NM_FOR_TARGET"; then
11915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11916 else
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11924 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11928 done
11929 done
11930 IFS=$as_save_IFS
11934 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11935 if test -n "$NM_FOR_TARGET"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11937 $as_echo "$NM_FOR_TARGET" >&6; }
11938 else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11944 done
11947 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11948 for ncn_progname in nm; do
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11950 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11951 if test -x $with_build_time_tools/${ncn_progname}; then
11952 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954 $as_echo "yes" >&6; }
11955 break
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11960 done
11963 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11964 for ncn_progname in nm; do
11965 if test -n "$ncn_target_tool_prefix"; then
11966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11967 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 if test -n "$NM_FOR_TARGET"; then
11974 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11975 else
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11983 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11989 IFS=$as_save_IFS
11993 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11994 if test -n "$NM_FOR_TARGET"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11996 $as_echo "$NM_FOR_TARGET" >&6; }
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12004 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12006 set dummy ${ncn_progname}; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 if test -n "$NM_FOR_TARGET"; then
12013 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12014 else
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12022 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12026 done
12027 done
12028 IFS=$as_save_IFS
12032 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12033 if test -n "$NM_FOR_TARGET"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12035 $as_echo "$NM_FOR_TARGET" >&6; }
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12043 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12044 done
12047 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12048 set dummy nm
12049 if test $build = $target ; then
12050 NM_FOR_TARGET="$2"
12051 else
12052 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12054 else
12055 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12058 else
12059 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12065 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12066 if test -n "$with_build_time_tools"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12068 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12069 if test -x $with_build_time_tools/objcopy; then
12070 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12071 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12073 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12078 elif test $build != $host && test $have_gcc_for_target = yes; then
12079 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12080 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12081 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12084 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12085 # Extract the first word of "objcopy", so it can be a program name with args.
12086 set dummy objcopy; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 case $OBJCOPY_FOR_TARGET in
12093 [\\/]* | ?:[\\/]*)
12094 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $gcc_cv_tool_dirs
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12108 done
12109 done
12110 IFS=$as_save_IFS
12113 esac
12115 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12116 if test -n "$OBJCOPY_FOR_TARGET"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12118 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12126 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12129 if test -n "$OBJCOPY_FOR_TARGET"; then
12130 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12131 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12132 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12135 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12136 for ncn_progname in objcopy; do
12137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12138 set dummy ${ncn_progname}; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 if test -n "$OBJCOPY_FOR_TARGET"; then
12145 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12154 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12158 done
12159 done
12160 IFS=$as_save_IFS
12164 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12165 if test -n "$OBJCOPY_FOR_TARGET"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12167 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12174 done
12177 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12178 for ncn_progname in objcopy; do
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12180 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12181 if test -x $with_build_time_tools/${ncn_progname}; then
12182 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184 $as_echo "yes" >&6; }
12185 break
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12190 done
12193 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12194 for ncn_progname in objcopy; do
12195 if test -n "$ncn_target_tool_prefix"; then
12196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12197 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 if test -n "$OBJCOPY_FOR_TARGET"; then
12204 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12205 else
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12213 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12217 done
12218 done
12219 IFS=$as_save_IFS
12223 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12224 if test -n "$OBJCOPY_FOR_TARGET"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12226 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12227 else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12234 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12236 set dummy ${ncn_progname}; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test -n "$OBJCOPY_FOR_TARGET"; then
12243 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12256 done
12257 done
12258 IFS=$as_save_IFS
12262 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12263 if test -n "$OBJCOPY_FOR_TARGET"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12265 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12273 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12274 done
12277 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12278 set dummy objcopy
12279 if test $build = $target ; then
12280 OBJCOPY_FOR_TARGET="$2"
12281 else
12282 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12284 else
12285 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12288 else
12289 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12295 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12296 if test -n "$with_build_time_tools"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12298 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12299 if test -x $with_build_time_tools/objdump; then
12300 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12301 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12303 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12308 elif test $build != $host && test $have_gcc_for_target = yes; then
12309 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12310 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12311 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12314 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12315 # Extract the first word of "objdump", so it can be a program name with args.
12316 set dummy objdump; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 case $OBJDUMP_FOR_TARGET in
12323 [\\/]* | ?:[\\/]*)
12324 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $gcc_cv_tool_dirs
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12338 done
12339 done
12340 IFS=$as_save_IFS
12343 esac
12345 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12346 if test -n "$OBJDUMP_FOR_TARGET"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12348 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12356 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12359 if test -n "$OBJDUMP_FOR_TARGET"; then
12360 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12361 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12362 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12365 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12366 for ncn_progname in objdump; do
12367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12368 set dummy ${ncn_progname}; ac_word=$2
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370 $as_echo_n "checking for $ac_word... " >&6; }
12371 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 if test -n "$OBJDUMP_FOR_TARGET"; then
12375 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12376 else
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12388 done
12389 done
12390 IFS=$as_save_IFS
12394 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12395 if test -n "$OBJDUMP_FOR_TARGET"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12397 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12404 done
12407 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12408 for ncn_progname in objdump; do
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12410 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12411 if test -x $with_build_time_tools/${ncn_progname}; then
12412 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414 $as_echo "yes" >&6; }
12415 break
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12420 done
12423 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12424 for ncn_progname in objdump; do
12425 if test -n "$ncn_target_tool_prefix"; then
12426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12427 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 if test -n "$OBJDUMP_FOR_TARGET"; then
12434 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12435 else
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12447 done
12448 done
12449 IFS=$as_save_IFS
12453 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12454 if test -n "$OBJDUMP_FOR_TARGET"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12456 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12464 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12466 set dummy ${ncn_progname}; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test -n "$OBJDUMP_FOR_TARGET"; then
12473 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12474 else
12475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476 for as_dir in $PATH
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12482 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 break 2
12486 done
12487 done
12488 IFS=$as_save_IFS
12492 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12493 if test -n "$OBJDUMP_FOR_TARGET"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12495 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12503 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12504 done
12507 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12508 set dummy objdump
12509 if test $build = $target ; then
12510 OBJDUMP_FOR_TARGET="$2"
12511 else
12512 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12514 else
12515 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12518 else
12519 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12525 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12526 if test -n "$with_build_time_tools"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12528 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/ranlib; then
12530 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12531 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12533 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12538 elif test $build != $host && test $have_gcc_for_target = yes; then
12539 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12540 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12541 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12544 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12545 # Extract the first word of "ranlib", so it can be a program name with args.
12546 set dummy ranlib; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 case $RANLIB_FOR_TARGET in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $gcc_cv_tool_dirs
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12568 done
12569 done
12570 IFS=$as_save_IFS
12573 esac
12575 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12576 if test -n "$RANLIB_FOR_TARGET"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12578 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12586 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12589 if test -n "$RANLIB_FOR_TARGET"; then
12590 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12591 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12592 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12595 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12596 for ncn_progname in ranlib; do
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598 set dummy ${ncn_progname}; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if test -n "$RANLIB_FOR_TARGET"; then
12605 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12606 else
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12618 done
12619 done
12620 IFS=$as_save_IFS
12624 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12625 if test -n "$RANLIB_FOR_TARGET"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12627 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12634 done
12637 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12638 for ncn_progname in ranlib; do
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12640 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12641 if test -x $with_build_time_tools/${ncn_progname}; then
12642 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644 $as_echo "yes" >&6; }
12645 break
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12650 done
12653 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12654 for ncn_progname in ranlib; do
12655 if test -n "$ncn_target_tool_prefix"; then
12656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12657 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 if test -n "$RANLIB_FOR_TARGET"; then
12664 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12665 else
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12673 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12677 done
12678 done
12679 IFS=$as_save_IFS
12683 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12684 if test -n "$RANLIB_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12686 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12694 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12696 set dummy ${ncn_progname}; ac_word=$2
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698 $as_echo_n "checking for $ac_word... " >&6; }
12699 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test -n "$RANLIB_FOR_TARGET"; then
12703 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12704 else
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12716 done
12717 done
12718 IFS=$as_save_IFS
12722 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12723 if test -n "$RANLIB_FOR_TARGET"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12725 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12726 else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12733 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12734 done
12737 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12738 set dummy ranlib
12739 if test $build = $target ; then
12740 RANLIB_FOR_TARGET="$2"
12741 else
12742 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12744 else
12745 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12748 else
12749 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12755 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12756 if test -n "$with_build_time_tools"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12758 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12759 if test -x $with_build_time_tools/readelf; then
12760 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12761 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12763 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12768 elif test $build != $host && test $have_gcc_for_target = yes; then
12769 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12770 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12771 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12774 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12775 # Extract the first word of "readelf", so it can be a program name with args.
12776 set dummy readelf; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 case $READELF_FOR_TARGET in
12783 [\\/]* | ?:[\\/]*)
12784 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $gcc_cv_tool_dirs
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12794 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12798 done
12799 done
12800 IFS=$as_save_IFS
12803 esac
12805 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12806 if test -n "$READELF_FOR_TARGET"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12808 $as_echo "$READELF_FOR_TARGET" >&6; }
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12816 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12819 if test -n "$READELF_FOR_TARGET"; then
12820 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12821 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12822 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12825 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12826 for ncn_progname in readelf; do
12827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12828 set dummy ${ncn_progname}; ac_word=$2
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830 $as_echo_n "checking for $ac_word... " >&6; }
12831 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 if test -n "$READELF_FOR_TARGET"; then
12835 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12836 else
12837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838 for as_dir in $PATH
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12844 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12848 done
12849 done
12850 IFS=$as_save_IFS
12854 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12855 if test -n "$READELF_FOR_TARGET"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12857 $as_echo "$READELF_FOR_TARGET" >&6; }
12858 else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12864 done
12867 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12868 for ncn_progname in readelf; do
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12870 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12871 if test -x $with_build_time_tools/${ncn_progname}; then
12872 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874 $as_echo "yes" >&6; }
12875 break
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12880 done
12883 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12884 for ncn_progname in readelf; do
12885 if test -n "$ncn_target_tool_prefix"; then
12886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12887 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889 $as_echo_n "checking for $ac_word... " >&6; }
12890 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 if test -n "$READELF_FOR_TARGET"; then
12894 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12895 else
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 break 2
12907 done
12908 done
12909 IFS=$as_save_IFS
12913 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12914 if test -n "$READELF_FOR_TARGET"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12916 $as_echo "$READELF_FOR_TARGET" >&6; }
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12924 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12926 set dummy ${ncn_progname}; ac_word=$2
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928 $as_echo_n "checking for $ac_word... " >&6; }
12929 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 if test -n "$READELF_FOR_TARGET"; then
12933 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12934 else
12935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 break 2
12946 done
12947 done
12948 IFS=$as_save_IFS
12952 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12953 if test -n "$READELF_FOR_TARGET"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12955 $as_echo "$READELF_FOR_TARGET" >&6; }
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12963 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12964 done
12967 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12968 set dummy readelf
12969 if test $build = $target ; then
12970 READELF_FOR_TARGET="$2"
12971 else
12972 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12974 else
12975 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12978 else
12979 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12985 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12986 if test -n "$with_build_time_tools"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12988 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12989 if test -x $with_build_time_tools/strip; then
12990 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12991 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12993 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12998 elif test $build != $host && test $have_gcc_for_target = yes; then
12999 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13000 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13001 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13004 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13005 # Extract the first word of "strip", so it can be a program name with args.
13006 set dummy strip; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 case $STRIP_FOR_TARGET in
13013 [\\/]* | ?:[\\/]*)
13014 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $gcc_cv_tool_dirs
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13024 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 break 2
13028 done
13029 done
13030 IFS=$as_save_IFS
13033 esac
13035 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13036 if test -n "$STRIP_FOR_TARGET"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13038 $as_echo "$STRIP_FOR_TARGET" >&6; }
13039 else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13046 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13049 if test -n "$STRIP_FOR_TARGET"; then
13050 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13051 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13052 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13055 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13056 for ncn_progname in strip; do
13057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13058 set dummy ${ncn_progname}; ac_word=$2
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060 $as_echo_n "checking for $ac_word... " >&6; }
13061 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 if test -n "$STRIP_FOR_TARGET"; then
13065 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13066 else
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13074 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076 break 2
13078 done
13079 done
13080 IFS=$as_save_IFS
13084 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13085 if test -n "$STRIP_FOR_TARGET"; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13087 $as_echo "$STRIP_FOR_TARGET" >&6; }
13088 else
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13094 done
13097 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13098 for ncn_progname in strip; do
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13100 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13101 if test -x $with_build_time_tools/${ncn_progname}; then
13102 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; }
13105 break
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13110 done
13113 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13114 for ncn_progname in strip; do
13115 if test -n "$ncn_target_tool_prefix"; then
13116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13117 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119 $as_echo_n "checking for $ac_word... " >&6; }
13120 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 if test -n "$STRIP_FOR_TARGET"; then
13124 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13125 else
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13137 done
13138 done
13139 IFS=$as_save_IFS
13143 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13144 if test -n "$STRIP_FOR_TARGET"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13146 $as_echo "$STRIP_FOR_TARGET" >&6; }
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13154 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13156 set dummy ${ncn_progname}; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158 $as_echo_n "checking for $ac_word... " >&6; }
13159 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 if test -n "$STRIP_FOR_TARGET"; then
13163 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13176 done
13177 done
13178 IFS=$as_save_IFS
13182 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13183 if test -n "$STRIP_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13185 $as_echo "$STRIP_FOR_TARGET" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13193 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13194 done
13197 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13198 set dummy strip
13199 if test $build = $target ; then
13200 STRIP_FOR_TARGET="$2"
13201 else
13202 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13204 else
13205 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13208 else
13209 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13215 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13216 if test -n "$with_build_time_tools"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13218 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13219 if test -x $with_build_time_tools/windres; then
13220 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13221 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13223 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13228 elif test $build != $host && test $have_gcc_for_target = yes; then
13229 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13230 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13231 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13234 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13235 # Extract the first word of "windres", so it can be a program name with args.
13236 set dummy windres; ac_word=$2
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238 $as_echo_n "checking for $ac_word... " >&6; }
13239 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13241 else
13242 case $WINDRES_FOR_TARGET in
13243 [\\/]* | ?:[\\/]*)
13244 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248 for as_dir in $gcc_cv_tool_dirs
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13254 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 break 2
13258 done
13259 done
13260 IFS=$as_save_IFS
13263 esac
13265 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13266 if test -n "$WINDRES_FOR_TARGET"; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13268 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13269 else
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 $as_echo "no" >&6; }
13276 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13279 if test -n "$WINDRES_FOR_TARGET"; then
13280 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13281 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13282 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13285 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13286 for ncn_progname in windres; do
13287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13288 set dummy ${ncn_progname}; ac_word=$2
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290 $as_echo_n "checking for $ac_word... " >&6; }
13291 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 if test -n "$WINDRES_FOR_TARGET"; then
13295 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13296 else
13297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298 for as_dir in $PATH
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
13303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13304 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13308 done
13309 done
13310 IFS=$as_save_IFS
13314 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13315 if test -n "$WINDRES_FOR_TARGET"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13317 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13318 else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320 $as_echo "no" >&6; }
13324 done
13327 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13328 for ncn_progname in windres; do
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13330 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13331 if test -x $with_build_time_tools/${ncn_progname}; then
13332 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334 $as_echo "yes" >&6; }
13335 break
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13340 done
13343 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13344 for ncn_progname in windres; do
13345 if test -n "$ncn_target_tool_prefix"; then
13346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13347 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13349 $as_echo_n "checking for $ac_word... " >&6; }
13350 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13351 $as_echo_n "(cached) " >&6
13352 else
13353 if test -n "$WINDRES_FOR_TARGET"; then
13354 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13355 else
13356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13357 for as_dir in $PATH
13359 IFS=$as_save_IFS
13360 test -z "$as_dir" && as_dir=.
13361 for ac_exec_ext in '' $ac_executable_extensions; do
13362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13363 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13365 break 2
13367 done
13368 done
13369 IFS=$as_save_IFS
13373 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13374 if test -n "$WINDRES_FOR_TARGET"; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13376 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13377 else
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13384 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13386 set dummy ${ncn_progname}; ac_word=$2
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13388 $as_echo_n "checking for $ac_word... " >&6; }
13389 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 if test -n "$WINDRES_FOR_TARGET"; then
13393 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13394 else
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13402 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13404 break 2
13406 done
13407 done
13408 IFS=$as_save_IFS
13412 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13413 if test -n "$WINDRES_FOR_TARGET"; then
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13415 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13416 else
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418 $as_echo "no" >&6; }
13423 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13424 done
13427 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13428 set dummy windres
13429 if test $build = $target ; then
13430 WINDRES_FOR_TARGET="$2"
13431 else
13432 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13434 else
13435 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13438 else
13439 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13445 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13446 if test -n "$with_build_time_tools"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13448 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13449 if test -x $with_build_time_tools/windmc; then
13450 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13451 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13453 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13458 elif test $build != $host && test $have_gcc_for_target = yes; then
13459 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13460 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13461 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13464 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13465 # Extract the first word of "windmc", so it can be a program name with args.
13466 set dummy windmc; ac_word=$2
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468 $as_echo_n "checking for $ac_word... " >&6; }
13469 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 case $WINDMC_FOR_TARGET in
13473 [\\/]* | ?:[\\/]*)
13474 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $gcc_cv_tool_dirs
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13486 break 2
13488 done
13489 done
13490 IFS=$as_save_IFS
13493 esac
13495 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13496 if test -n "$WINDMC_FOR_TARGET"; then
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13498 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13499 else
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501 $as_echo "no" >&6; }
13506 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13509 if test -n "$WINDMC_FOR_TARGET"; then
13510 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13511 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13512 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13515 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13516 for ncn_progname in windmc; do
13517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13518 set dummy ${ncn_progname}; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520 $as_echo_n "checking for $ac_word... " >&6; }
13521 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13522 $as_echo_n "(cached) " >&6
13523 else
13524 if test -n "$WINDMC_FOR_TARGET"; then
13525 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13526 else
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13534 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13538 done
13539 done
13540 IFS=$as_save_IFS
13544 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13545 if test -n "$WINDMC_FOR_TARGET"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13547 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13548 else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13554 done
13557 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13558 for ncn_progname in windmc; do
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13560 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13561 if test -x $with_build_time_tools/${ncn_progname}; then
13562 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13564 $as_echo "yes" >&6; }
13565 break
13566 else
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568 $as_echo "no" >&6; }
13570 done
13573 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13574 for ncn_progname in windmc; do
13575 if test -n "$ncn_target_tool_prefix"; then
13576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13577 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579 $as_echo_n "checking for $ac_word... " >&6; }
13580 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 if test -n "$WINDMC_FOR_TARGET"; then
13584 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13585 else
13586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 for as_dir in $PATH
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13593 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13595 break 2
13597 done
13598 done
13599 IFS=$as_save_IFS
13603 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13604 if test -n "$WINDMC_FOR_TARGET"; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13606 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609 $as_echo "no" >&6; }
13614 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13616 set dummy ${ncn_progname}; ac_word=$2
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618 $as_echo_n "checking for $ac_word... " >&6; }
13619 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13622 if test -n "$WINDMC_FOR_TARGET"; then
13623 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13624 else
13625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626 for as_dir in $PATH
13628 IFS=$as_save_IFS
13629 test -z "$as_dir" && as_dir=.
13630 for ac_exec_ext in '' $ac_executable_extensions; do
13631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13632 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634 break 2
13636 done
13637 done
13638 IFS=$as_save_IFS
13642 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13643 if test -n "$WINDMC_FOR_TARGET"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13645 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13646 else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13653 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13654 done
13657 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13658 set dummy windmc
13659 if test $build = $target ; then
13660 WINDMC_FOR_TARGET="$2"
13661 else
13662 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13664 else
13665 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13668 else
13669 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13673 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13676 $as_echo_n "checking where to find the target ar... " >&6; }
13677 if test "x${build}" != "x${host}" ; then
13678 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13679 # We already found the complete path
13680 ac_dir=`dirname $AR_FOR_TARGET`
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13682 $as_echo "pre-installed in $ac_dir" >&6; }
13683 else
13684 # Canadian cross, just use what we found
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13686 $as_echo "pre-installed" >&6; }
13688 else
13689 ok=yes
13690 case " ${configdirs} " in
13691 *" binutils "*) ;;
13692 *) ok=no ;;
13693 esac
13695 if test $ok = yes; then
13696 # An in-tree tool is available and we can use it
13697 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13699 $as_echo "just compiled" >&6; }
13700 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13701 # We already found the complete path
13702 ac_dir=`dirname $AR_FOR_TARGET`
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13704 $as_echo "pre-installed in $ac_dir" >&6; }
13705 elif test "x$target" = "x$host"; then
13706 # We can use an host tool
13707 AR_FOR_TARGET='$(AR)'
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13709 $as_echo "host tool" >&6; }
13710 else
13711 # We need a cross tool
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13713 $as_echo "pre-installed" >&6; }
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13718 $as_echo_n "checking where to find the target as... " >&6; }
13719 if test "x${build}" != "x${host}" ; then
13720 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13721 # We already found the complete path
13722 ac_dir=`dirname $AS_FOR_TARGET`
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13724 $as_echo "pre-installed in $ac_dir" >&6; }
13725 else
13726 # Canadian cross, just use what we found
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13728 $as_echo "pre-installed" >&6; }
13730 else
13731 ok=yes
13732 case " ${configdirs} " in
13733 *" gas "*) ;;
13734 *) ok=no ;;
13735 esac
13737 if test $ok = yes; then
13738 # An in-tree tool is available and we can use it
13739 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13741 $as_echo "just compiled" >&6; }
13742 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
13744 ac_dir=`dirname $AS_FOR_TARGET`
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746 $as_echo "pre-installed in $ac_dir" >&6; }
13747 elif test "x$target" = "x$host"; then
13748 # We can use an host tool
13749 AS_FOR_TARGET='$(AS)'
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13751 $as_echo "host tool" >&6; }
13752 else
13753 # We need a cross tool
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755 $as_echo "pre-installed" >&6; }
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13760 $as_echo_n "checking where to find the target cc... " >&6; }
13761 if test "x${build}" != "x${host}" ; then
13762 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13763 # We already found the complete path
13764 ac_dir=`dirname $CC_FOR_TARGET`
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13766 $as_echo "pre-installed in $ac_dir" >&6; }
13767 else
13768 # Canadian cross, just use what we found
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13770 $as_echo "pre-installed" >&6; }
13772 else
13773 ok=yes
13774 case " ${configdirs} " in
13775 *" gcc "*) ;;
13776 *) ok=no ;;
13777 esac
13779 if test $ok = yes; then
13780 # An in-tree tool is available and we can use it
13781 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13783 $as_echo "just compiled" >&6; }
13784 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
13786 ac_dir=`dirname $CC_FOR_TARGET`
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788 $as_echo "pre-installed in $ac_dir" >&6; }
13789 elif test "x$target" = "x$host"; then
13790 # We can use an host tool
13791 CC_FOR_TARGET='$(CC)'
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13793 $as_echo "host tool" >&6; }
13794 else
13795 # We need a cross tool
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797 $as_echo "pre-installed" >&6; }
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13802 $as_echo_n "checking where to find the target c++... " >&6; }
13803 if test "x${build}" != "x${host}" ; then
13804 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
13806 ac_dir=`dirname $CXX_FOR_TARGET`
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808 $as_echo "pre-installed in $ac_dir" >&6; }
13809 else
13810 # Canadian cross, just use what we found
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812 $as_echo "pre-installed" >&6; }
13814 else
13815 ok=yes
13816 case " ${configdirs} " in
13817 *" gcc "*) ;;
13818 *) ok=no ;;
13819 esac
13820 case ,${enable_languages}, in
13821 *,c++,*) ;;
13822 *) ok=no ;;
13823 esac
13824 if test $ok = yes; then
13825 # An in-tree tool is available and we can use it
13826 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'
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13828 $as_echo "just compiled" >&6; }
13829 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13830 # We already found the complete path
13831 ac_dir=`dirname $CXX_FOR_TARGET`
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13833 $as_echo "pre-installed in $ac_dir" >&6; }
13834 elif test "x$target" = "x$host"; then
13835 # We can use an host tool
13836 CXX_FOR_TARGET='$(CXX)'
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13838 $as_echo "host tool" >&6; }
13839 else
13840 # We need a cross tool
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13842 $as_echo "pre-installed" >&6; }
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13847 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13848 if test "x${build}" != "x${host}" ; then
13849 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13850 # We already found the complete path
13851 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13853 $as_echo "pre-installed in $ac_dir" >&6; }
13854 else
13855 # Canadian cross, just use what we found
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13857 $as_echo "pre-installed" >&6; }
13859 else
13860 ok=yes
13861 case " ${configdirs} " in
13862 *" gcc "*) ;;
13863 *) ok=no ;;
13864 esac
13865 case ,${enable_languages}, in
13866 *,c++,*) ;;
13867 *) ok=no ;;
13868 esac
13869 if test $ok = yes; then
13870 # An in-tree tool is available and we can use it
13871 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'
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13873 $as_echo "just compiled" >&6; }
13874 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
13876 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878 $as_echo "pre-installed in $ac_dir" >&6; }
13879 elif test "x$target" = "x$host"; then
13880 # We can use an host tool
13881 RAW_CXX_FOR_TARGET='$(CXX)'
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13883 $as_echo "host tool" >&6; }
13884 else
13885 # We need a cross tool
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13887 $as_echo "pre-installed" >&6; }
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13892 $as_echo_n "checking where to find the target dlltool... " >&6; }
13893 if test "x${build}" != "x${host}" ; then
13894 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13895 # We already found the complete path
13896 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13898 $as_echo "pre-installed in $ac_dir" >&6; }
13899 else
13900 # Canadian cross, just use what we found
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13902 $as_echo "pre-installed" >&6; }
13904 else
13905 ok=yes
13906 case " ${configdirs} " in
13907 *" binutils "*) ;;
13908 *) ok=no ;;
13909 esac
13911 if test $ok = yes; then
13912 # An in-tree tool is available and we can use it
13913 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13915 $as_echo "just compiled" >&6; }
13916 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
13918 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920 $as_echo "pre-installed in $ac_dir" >&6; }
13921 elif test "x$target" = "x$host"; then
13922 # We can use an host tool
13923 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13925 $as_echo "host tool" >&6; }
13926 else
13927 # We need a cross tool
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929 $as_echo "pre-installed" >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13934 $as_echo_n "checking where to find the target gcc... " >&6; }
13935 if test "x${build}" != "x${host}" ; then
13936 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $GCC_FOR_TARGET`
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940 $as_echo "pre-installed in $ac_dir" >&6; }
13941 else
13942 # Canadian cross, just use what we found
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13944 $as_echo "pre-installed" >&6; }
13946 else
13947 ok=yes
13948 case " ${configdirs} " in
13949 *" gcc "*) ;;
13950 *) ok=no ;;
13951 esac
13953 if test $ok = yes; then
13954 # An in-tree tool is available and we can use it
13955 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13957 $as_echo "just compiled" >&6; }
13958 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
13960 ac_dir=`dirname $GCC_FOR_TARGET`
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962 $as_echo "pre-installed in $ac_dir" >&6; }
13963 elif test "x$target" = "x$host"; then
13964 # We can use an host tool
13965 GCC_FOR_TARGET='$()'
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13967 $as_echo "host tool" >&6; }
13968 else
13969 # We need a cross tool
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971 $as_echo "pre-installed" >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13976 $as_echo_n "checking where to find the target gfortran... " >&6; }
13977 if test "x${build}" != "x${host}" ; then
13978 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
13980 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982 $as_echo "pre-installed in $ac_dir" >&6; }
13983 else
13984 # Canadian cross, just use what we found
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13986 $as_echo "pre-installed" >&6; }
13988 else
13989 ok=yes
13990 case " ${configdirs} " in
13991 *" gcc "*) ;;
13992 *) ok=no ;;
13993 esac
13994 case ,${enable_languages}, in
13995 *,fortran,*) ;;
13996 *) ok=no ;;
13997 esac
13998 if test $ok = yes; then
13999 # An in-tree tool is available and we can use it
14000 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14002 $as_echo "just compiled" >&6; }
14003 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
14005 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007 $as_echo "pre-installed in $ac_dir" >&6; }
14008 elif test "x$target" = "x$host"; then
14009 # We can use an host tool
14010 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14012 $as_echo "host tool" >&6; }
14013 else
14014 # We need a cross tool
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016 $as_echo "pre-installed" >&6; }
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14021 $as_echo_n "checking where to find the target gccgo... " >&6; }
14022 if test "x${build}" != "x${host}" ; then
14023 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
14025 ac_dir=`dirname $GOC_FOR_TARGET`
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027 $as_echo "pre-installed in $ac_dir" >&6; }
14028 else
14029 # Canadian cross, just use what we found
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14031 $as_echo "pre-installed" >&6; }
14033 else
14034 ok=yes
14035 case " ${configdirs} " in
14036 *" gcc "*) ;;
14037 *) ok=no ;;
14038 esac
14039 case ,${enable_languages}, in
14040 *,go,*) ;;
14041 *) ok=no ;;
14042 esac
14043 if test $ok = yes; then
14044 # An in-tree tool is available and we can use it
14045 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14047 $as_echo "just compiled" >&6; }
14048 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14049 # We already found the complete path
14050 ac_dir=`dirname $GOC_FOR_TARGET`
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14052 $as_echo "pre-installed in $ac_dir" >&6; }
14053 elif test "x$target" = "x$host"; then
14054 # We can use an host tool
14055 GOC_FOR_TARGET='$(GOC)'
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14057 $as_echo "host tool" >&6; }
14058 else
14059 # We need a cross tool
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14061 $as_echo "pre-installed" >&6; }
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14066 $as_echo_n "checking where to find the target ld... " >&6; }
14067 if test "x${build}" != "x${host}" ; then
14068 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14069 # We already found the complete path
14070 ac_dir=`dirname $LD_FOR_TARGET`
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14072 $as_echo "pre-installed in $ac_dir" >&6; }
14073 else
14074 # Canadian cross, just use what we found
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14076 $as_echo "pre-installed" >&6; }
14078 else
14079 ok=yes
14080 case " ${configdirs} " in
14081 *" ld "*) ;;
14082 *) ok=no ;;
14083 esac
14085 if test $ok = yes; then
14086 # An in-tree tool is available and we can use it
14087 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14089 $as_echo "just compiled" >&6; }
14090 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14091 # We already found the complete path
14092 ac_dir=`dirname $LD_FOR_TARGET`
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14094 $as_echo "pre-installed in $ac_dir" >&6; }
14095 elif test "x$target" = "x$host"; then
14096 # We can use an host tool
14097 LD_FOR_TARGET='$(LD)'
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14099 $as_echo "host tool" >&6; }
14100 else
14101 # We need a cross tool
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14103 $as_echo "pre-installed" >&6; }
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14108 $as_echo_n "checking where to find the target lipo... " >&6; }
14109 if test "x${build}" != "x${host}" ; then
14110 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14111 # We already found the complete path
14112 ac_dir=`dirname $LIPO_FOR_TARGET`
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14114 $as_echo "pre-installed in $ac_dir" >&6; }
14115 else
14116 # Canadian cross, just use what we found
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14118 $as_echo "pre-installed" >&6; }
14120 else
14121 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14122 # We already found the complete path
14123 ac_dir=`dirname $LIPO_FOR_TARGET`
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14125 $as_echo "pre-installed in $ac_dir" >&6; }
14126 elif test "x$target" = "x$host"; then
14127 # We can use an host tool
14128 LIPO_FOR_TARGET='$(LIPO)'
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14130 $as_echo "host tool" >&6; }
14131 else
14132 # We need a cross tool
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14134 $as_echo "pre-installed" >&6; }
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14139 $as_echo_n "checking where to find the target nm... " >&6; }
14140 if test "x${build}" != "x${host}" ; then
14141 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14142 # We already found the complete path
14143 ac_dir=`dirname $NM_FOR_TARGET`
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14145 $as_echo "pre-installed in $ac_dir" >&6; }
14146 else
14147 # Canadian cross, just use what we found
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149 $as_echo "pre-installed" >&6; }
14151 else
14152 ok=yes
14153 case " ${configdirs} " in
14154 *" binutils "*) ;;
14155 *) ok=no ;;
14156 esac
14158 if test $ok = yes; then
14159 # An in-tree tool is available and we can use it
14160 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14162 $as_echo "just compiled" >&6; }
14163 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14164 # We already found the complete path
14165 ac_dir=`dirname $NM_FOR_TARGET`
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14167 $as_echo "pre-installed in $ac_dir" >&6; }
14168 elif test "x$target" = "x$host"; then
14169 # We can use an host tool
14170 NM_FOR_TARGET='$(NM)'
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14172 $as_echo "host tool" >&6; }
14173 else
14174 # We need a cross tool
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176 $as_echo "pre-installed" >&6; }
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14181 $as_echo_n "checking where to find the target objcopy... " >&6; }
14182 if test "x${build}" != "x${host}" ; then
14183 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14184 # We already found the complete path
14185 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14187 $as_echo "pre-installed in $ac_dir" >&6; }
14188 else
14189 # Canadian cross, just use what we found
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14191 $as_echo "pre-installed" >&6; }
14193 else
14194 ok=yes
14195 case " ${configdirs} " in
14196 *" binutils "*) ;;
14197 *) ok=no ;;
14198 esac
14200 if test $ok = yes; then
14201 # An in-tree tool is available and we can use it
14202 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14204 $as_echo "just compiled" >&6; }
14205 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14206 # We already found the complete path
14207 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14209 $as_echo "pre-installed in $ac_dir" >&6; }
14210 elif test "x$target" = "x$host"; then
14211 # We can use an host tool
14212 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14214 $as_echo "host tool" >&6; }
14215 else
14216 # We need a cross tool
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218 $as_echo "pre-installed" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14223 $as_echo_n "checking where to find the target objdump... " >&6; }
14224 if test "x${build}" != "x${host}" ; then
14225 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14226 # We already found the complete path
14227 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14229 $as_echo "pre-installed in $ac_dir" >&6; }
14230 else
14231 # Canadian cross, just use what we found
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14233 $as_echo "pre-installed" >&6; }
14235 else
14236 ok=yes
14237 case " ${configdirs} " in
14238 *" binutils "*) ;;
14239 *) ok=no ;;
14240 esac
14242 if test $ok = yes; then
14243 # An in-tree tool is available and we can use it
14244 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14246 $as_echo "just compiled" >&6; }
14247 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14248 # We already found the complete path
14249 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14251 $as_echo "pre-installed in $ac_dir" >&6; }
14252 elif test "x$target" = "x$host"; then
14253 # We can use an host tool
14254 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14256 $as_echo "host tool" >&6; }
14257 else
14258 # We need a cross tool
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260 $as_echo "pre-installed" >&6; }
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14265 $as_echo_n "checking where to find the target ranlib... " >&6; }
14266 if test "x${build}" != "x${host}" ; then
14267 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14268 # We already found the complete path
14269 ac_dir=`dirname $RANLIB_FOR_TARGET`
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14271 $as_echo "pre-installed in $ac_dir" >&6; }
14272 else
14273 # Canadian cross, just use what we found
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275 $as_echo "pre-installed" >&6; }
14277 else
14278 ok=yes
14279 case " ${configdirs} " in
14280 *" binutils "*) ;;
14281 *) ok=no ;;
14282 esac
14284 if test $ok = yes; then
14285 # An in-tree tool is available and we can use it
14286 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14288 $as_echo "just compiled" >&6; }
14289 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14290 # We already found the complete path
14291 ac_dir=`dirname $RANLIB_FOR_TARGET`
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14293 $as_echo "pre-installed in $ac_dir" >&6; }
14294 elif test "x$target" = "x$host"; then
14295 # We can use an host tool
14296 RANLIB_FOR_TARGET='$(RANLIB)'
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14298 $as_echo "host tool" >&6; }
14299 else
14300 # We need a cross tool
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302 $as_echo "pre-installed" >&6; }
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14307 $as_echo_n "checking where to find the target readelf... " >&6; }
14308 if test "x${build}" != "x${host}" ; then
14309 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14310 # We already found the complete path
14311 ac_dir=`dirname $READELF_FOR_TARGET`
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14313 $as_echo "pre-installed in $ac_dir" >&6; }
14314 else
14315 # Canadian cross, just use what we found
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14317 $as_echo "pre-installed" >&6; }
14319 else
14320 ok=yes
14321 case " ${configdirs} " in
14322 *" binutils "*) ;;
14323 *) ok=no ;;
14324 esac
14326 if test $ok = yes; then
14327 # An in-tree tool is available and we can use it
14328 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14330 $as_echo "just compiled" >&6; }
14331 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14332 # We already found the complete path
14333 ac_dir=`dirname $READELF_FOR_TARGET`
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14335 $as_echo "pre-installed in $ac_dir" >&6; }
14336 elif test "x$target" = "x$host"; then
14337 # We can use an host tool
14338 READELF_FOR_TARGET='$(READELF)'
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14340 $as_echo "host tool" >&6; }
14341 else
14342 # We need a cross tool
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344 $as_echo "pre-installed" >&6; }
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14349 $as_echo_n "checking where to find the target strip... " >&6; }
14350 if test "x${build}" != "x${host}" ; then
14351 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14352 # We already found the complete path
14353 ac_dir=`dirname $STRIP_FOR_TARGET`
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14355 $as_echo "pre-installed in $ac_dir" >&6; }
14356 else
14357 # Canadian cross, just use what we found
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14359 $as_echo "pre-installed" >&6; }
14361 else
14362 ok=yes
14363 case " ${configdirs} " in
14364 *" binutils "*) ;;
14365 *) ok=no ;;
14366 esac
14368 if test $ok = yes; then
14369 # An in-tree tool is available and we can use it
14370 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14372 $as_echo "just compiled" >&6; }
14373 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14374 # We already found the complete path
14375 ac_dir=`dirname $STRIP_FOR_TARGET`
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14377 $as_echo "pre-installed in $ac_dir" >&6; }
14378 elif test "x$target" = "x$host"; then
14379 # We can use an host tool
14380 STRIP_FOR_TARGET='$(STRIP)'
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14382 $as_echo "host tool" >&6; }
14383 else
14384 # We need a cross tool
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386 $as_echo "pre-installed" >&6; }
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14391 $as_echo_n "checking where to find the target windres... " >&6; }
14392 if test "x${build}" != "x${host}" ; then
14393 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14394 # We already found the complete path
14395 ac_dir=`dirname $WINDRES_FOR_TARGET`
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14397 $as_echo "pre-installed in $ac_dir" >&6; }
14398 else
14399 # Canadian cross, just use what we found
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14401 $as_echo "pre-installed" >&6; }
14403 else
14404 ok=yes
14405 case " ${configdirs} " in
14406 *" binutils "*) ;;
14407 *) ok=no ;;
14408 esac
14410 if test $ok = yes; then
14411 # An in-tree tool is available and we can use it
14412 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14414 $as_echo "just compiled" >&6; }
14415 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14416 # We already found the complete path
14417 ac_dir=`dirname $WINDRES_FOR_TARGET`
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14419 $as_echo "pre-installed in $ac_dir" >&6; }
14420 elif test "x$target" = "x$host"; then
14421 # We can use an host tool
14422 WINDRES_FOR_TARGET='$(WINDRES)'
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14424 $as_echo "host tool" >&6; }
14425 else
14426 # We need a cross tool
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14428 $as_echo "pre-installed" >&6; }
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14433 $as_echo_n "checking where to find the target windmc... " >&6; }
14434 if test "x${build}" != "x${host}" ; then
14435 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14436 # We already found the complete path
14437 ac_dir=`dirname $WINDMC_FOR_TARGET`
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14439 $as_echo "pre-installed in $ac_dir" >&6; }
14440 else
14441 # Canadian cross, just use what we found
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14443 $as_echo "pre-installed" >&6; }
14445 else
14446 ok=yes
14447 case " ${configdirs} " in
14448 *" binutils "*) ;;
14449 *) ok=no ;;
14450 esac
14452 if test $ok = yes; then
14453 # An in-tree tool is available and we can use it
14454 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14456 $as_echo "just compiled" >&6; }
14457 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14458 # We already found the complete path
14459 ac_dir=`dirname $WINDMC_FOR_TARGET`
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14461 $as_echo "pre-installed in $ac_dir" >&6; }
14462 elif test "x$target" = "x$host"; then
14463 # We can use an host tool
14464 WINDMC_FOR_TARGET='$(WINDMC)'
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14466 $as_echo "host tool" >&6; }
14467 else
14468 # We need a cross tool
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14470 $as_echo "pre-installed" >&6; }
14478 # Certain tools may need extra flags.
14479 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14480 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14481 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14483 # When building target libraries, except in a Canadian cross, we use
14484 # the same toolchain as the compiler we just built.
14485 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14486 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14487 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14488 if test $host = $build; then
14489 case " $configdirs " in
14490 *" gcc "*)
14491 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14492 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14493 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14495 esac
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14503 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14504 # Check whether --enable-maintainer-mode was given.
14505 if test "${enable_maintainer_mode+set}" = set; then :
14506 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14507 else
14508 USE_MAINTAINER_MODE=no
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14512 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14515 if test "$USE_MAINTAINER_MODE" = yes; then
14516 MAINTAINER_MODE_TRUE=
14517 MAINTAINER_MODE_FALSE='#'
14518 else
14519 MAINTAINER_MODE_TRUE='#'
14520 MAINTAINER_MODE_FALSE=
14522 MAINT=$MAINTAINER_MODE_TRUE
14524 # ---------------------
14525 # GCC bootstrap support
14526 # ---------------------
14528 # Stage specific cflags for build.
14529 stage1_cflags="-g"
14530 case $build in
14531 vax-*-*)
14532 case ${GCC} in
14533 yes) stage1_cflags="-g -Wa,-J" ;;
14534 *) stage1_cflags="-g -J" ;;
14535 esac ;;
14536 esac
14540 # Enable --enable-checking in stage1 of the compiler.
14541 # Check whether --enable-stage1-checking was given.
14542 if test "${enable_stage1_checking+set}" = set; then :
14543 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14544 else
14545 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14546 # For --disable-checking or implicit --enable-checking=release, avoid
14547 # setting --enable-checking=gc in the default stage1 checking for LTO
14548 # bootstraps. See PR62077.
14549 case $BUILD_CONFIG in
14550 *lto*)
14551 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14553 stage1_checking=--enable-checking=yes,types;;
14554 esac
14555 if test "x$enable_checking" = x && \
14556 test -d ${srcdir}/gcc && \
14557 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14558 stage1_checking=--enable-checking=yes,types,extra
14560 else
14561 stage1_checking=--enable-checking=$enable_checking,types
14567 # Enable -Werror in bootstrap stage2 and later.
14568 # Check whether --enable-werror was given.
14569 if test "${enable_werror+set}" = set; then :
14570 enableval=$enable_werror;
14571 else
14572 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14573 enable_werror=yes
14574 else
14575 enable_werror=no
14579 case ${enable_werror} in
14580 yes) stage2_werror_flag="--enable-werror-always" ;;
14581 *) stage2_werror_flag="" ;;
14582 esac
14585 # Enable --enable-host-shared.
14586 # Check whether --enable-host-shared was given.
14587 if test "${enable_host_shared+set}" = set; then :
14588 enableval=$enable_host_shared; host_shared=$enableval
14589 else
14590 host_shared=no
14595 # PR jit/64780: Require the user to explicitly specify
14596 # --enable-host-shared if the jit is enabled, hinting
14597 # that they might want to do a separate configure/build of
14598 # the jit, to avoid users from slowing down the rest of the
14599 # compiler by enabling the jit.
14600 if test ${host_shared} = "no" ; then
14601 case "${enable_languages}" in
14602 *jit*)
14603 as_fn_error "
14604 Enabling language \"jit\" requires --enable-host-shared.
14606 --enable-host-shared typically slows the rest of the compiler down by
14607 a few %, so you must explicitly enable it.
14609 If you want to build both the jit and the regular compiler, it is often
14610 best to do this via two separate configure/builds, in separate
14611 directories, to avoid imposing the performance cost of
14612 --enable-host-shared on the regular compiler." "$LINENO" 5
14616 esac
14619 # Specify what files to not compare during bootstrap.
14621 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14622 case "$target" in
14623 hppa*64*-*-hpux*) ;;
14624 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14625 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14626 esac
14629 ac_config_files="$ac_config_files Makefile"
14631 cat >confcache <<\_ACEOF
14632 # This file is a shell script that caches the results of configure
14633 # tests run on this system so they can be shared between configure
14634 # scripts and configure runs, see configure's option --config-cache.
14635 # It is not useful on other systems. If it contains results you don't
14636 # want to keep, you may remove or edit it.
14638 # config.status only pays attention to the cache file if you give it
14639 # the --recheck option to rerun configure.
14641 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14642 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14643 # following values.
14645 _ACEOF
14647 # The following way of writing the cache mishandles newlines in values,
14648 # but we know of no workaround that is simple, portable, and efficient.
14649 # So, we kill variables containing newlines.
14650 # Ultrix sh set writes to stderr and can't be redirected directly,
14651 # and sets the high bit in the cache file unless we assign to the vars.
14653 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14654 eval ac_val=\$$ac_var
14655 case $ac_val in #(
14656 *${as_nl}*)
14657 case $ac_var in #(
14658 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14659 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14660 esac
14661 case $ac_var in #(
14662 _ | IFS | as_nl) ;; #(
14663 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14664 *) { eval $ac_var=; unset $ac_var;} ;;
14665 esac ;;
14666 esac
14667 done
14669 (set) 2>&1 |
14670 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14671 *${as_nl}ac_space=\ *)
14672 # `set' does not quote correctly, so add quotes: double-quote
14673 # substitution turns \\\\ into \\, and sed turns \\ into \.
14674 sed -n \
14675 "s/'/'\\\\''/g;
14676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14677 ;; #(
14679 # `set' quotes correctly as required by POSIX, so do not add quotes.
14680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14682 esac |
14683 sort
14685 sed '
14686 /^ac_cv_env_/b end
14687 t clear
14688 :clear
14689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14690 t end
14691 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14692 :end' >>confcache
14693 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14694 if test -w "$cache_file"; then
14695 test "x$cache_file" != "x/dev/null" &&
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14697 $as_echo "$as_me: updating cache $cache_file" >&6;}
14698 cat confcache >$cache_file
14699 else
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14701 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14704 rm -f confcache
14706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14707 # Let make expand exec_prefix.
14708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14710 # Transform confdefs.h into DEFS.
14711 # Protect against shell expansion while executing Makefile rules.
14712 # Protect against Makefile macro expansion.
14714 # If the first sed substitution is executed (which looks for macros that
14715 # take arguments), then branch to the quote section. Otherwise,
14716 # look for a macro that doesn't take arguments.
14717 ac_script='
14718 :mline
14719 /\\$/{
14721 s,\\\n,,
14722 b mline
14724 t clear
14725 :clear
14726 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14727 t quote
14728 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14729 t quote
14730 b any
14731 :quote
14732 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14733 s/\[/\\&/g
14734 s/\]/\\&/g
14735 s/\$/$$/g
14737 :any
14740 s/^\n//
14741 s/\n/ /g
14745 DEFS=`sed -n "$ac_script" confdefs.h`
14748 ac_libobjs=
14749 ac_ltlibobjs=
14750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14751 # 1. Remove the extension, and $U if already installed.
14752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14755 # will be set to the directory where LIBOBJS objects are built.
14756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14758 done
14759 LIBOBJS=$ac_libobjs
14761 LTLIBOBJS=$ac_ltlibobjs
14765 : ${CONFIG_STATUS=./config.status}
14766 ac_write_fail=0
14767 ac_clean_files_save=$ac_clean_files
14768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14771 as_write_fail=0
14772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14773 #! $SHELL
14774 # Generated by $as_me.
14775 # Run this file to recreate the current configuration.
14776 # Compiler output produced by configure, useful for debugging
14777 # configure, is in config.log if it exists.
14779 debug=false
14780 ac_cs_recheck=false
14781 ac_cs_silent=false
14783 SHELL=\${CONFIG_SHELL-$SHELL}
14784 export SHELL
14785 _ASEOF
14786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14787 ## -------------------- ##
14788 ## M4sh Initialization. ##
14789 ## -------------------- ##
14791 # Be more Bourne compatible
14792 DUALCASE=1; export DUALCASE # for MKS sh
14793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14794 emulate sh
14795 NULLCMD=:
14796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14797 # is contrary to our usage. Disable this feature.
14798 alias -g '${1+"$@"}'='"$@"'
14799 setopt NO_GLOB_SUBST
14800 else
14801 case `(set -o) 2>/dev/null` in #(
14802 *posix*) :
14803 set -o posix ;; #(
14804 *) :
14806 esac
14810 as_nl='
14812 export as_nl
14813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14817 # Prefer a ksh shell builtin over an external printf program on Solaris,
14818 # but without wasting forks for bash or zsh.
14819 if test -z "$BASH_VERSION$ZSH_VERSION" \
14820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14821 as_echo='print -r --'
14822 as_echo_n='print -rn --'
14823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14824 as_echo='printf %s\n'
14825 as_echo_n='printf %s'
14826 else
14827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14829 as_echo_n='/usr/ucb/echo -n'
14830 else
14831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14832 as_echo_n_body='eval
14833 arg=$1;
14834 case $arg in #(
14835 *"$as_nl"*)
14836 expr "X$arg" : "X\\(.*\\)$as_nl";
14837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14838 esac;
14839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14841 export as_echo_n_body
14842 as_echo_n='sh -c $as_echo_n_body as_echo'
14844 export as_echo_body
14845 as_echo='sh -c $as_echo_body as_echo'
14848 # The user is always right.
14849 if test "${PATH_SEPARATOR+set}" != set; then
14850 PATH_SEPARATOR=:
14851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14853 PATH_SEPARATOR=';'
14858 # IFS
14859 # We need space, tab and new line, in precisely that order. Quoting is
14860 # there to prevent editors from complaining about space-tab.
14861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14862 # splitting by setting IFS to empty value.)
14863 IFS=" "" $as_nl"
14865 # Find who we are. Look in the path if we contain no directory separator.
14866 case $0 in #((
14867 *[\\/]* ) as_myself=$0 ;;
14868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14869 for as_dir in $PATH
14871 IFS=$as_save_IFS
14872 test -z "$as_dir" && as_dir=.
14873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14874 done
14875 IFS=$as_save_IFS
14878 esac
14879 # We did not find ourselves, most probably we were run as `sh COMMAND'
14880 # in which case we are not to be found in the path.
14881 if test "x$as_myself" = x; then
14882 as_myself=$0
14884 if test ! -f "$as_myself"; then
14885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14886 exit 1
14889 # Unset variables that we do not need and which cause bugs (e.g. in
14890 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14891 # suppresses any "Segmentation fault" message there. '((' could
14892 # trigger a bug in pdksh 5.2.14.
14893 for as_var in BASH_ENV ENV MAIL MAILPATH
14894 do eval test x\${$as_var+set} = xset \
14895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14896 done
14897 PS1='$ '
14898 PS2='> '
14899 PS4='+ '
14901 # NLS nuisances.
14902 LC_ALL=C
14903 export LC_ALL
14904 LANGUAGE=C
14905 export LANGUAGE
14907 # CDPATH.
14908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14911 # as_fn_error ERROR [LINENO LOG_FD]
14912 # ---------------------------------
14913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14915 # script with status $?, using 1 if that was 0.
14916 as_fn_error ()
14918 as_status=$?; test $as_status -eq 0 && as_status=1
14919 if test "$3"; then
14920 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14923 $as_echo "$as_me: error: $1" >&2
14924 as_fn_exit $as_status
14925 } # as_fn_error
14928 # as_fn_set_status STATUS
14929 # -----------------------
14930 # Set $? to STATUS, without forking.
14931 as_fn_set_status ()
14933 return $1
14934 } # as_fn_set_status
14936 # as_fn_exit STATUS
14937 # -----------------
14938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14939 as_fn_exit ()
14941 set +e
14942 as_fn_set_status $1
14943 exit $1
14944 } # as_fn_exit
14946 # as_fn_unset VAR
14947 # ---------------
14948 # Portably unset VAR.
14949 as_fn_unset ()
14951 { eval $1=; unset $1;}
14953 as_unset=as_fn_unset
14954 # as_fn_append VAR VALUE
14955 # ----------------------
14956 # Append the text in VALUE to the end of the definition contained in VAR. Take
14957 # advantage of any shell optimizations that allow amortized linear growth over
14958 # repeated appends, instead of the typical quadratic growth present in naive
14959 # implementations.
14960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14961 eval 'as_fn_append ()
14963 eval $1+=\$2
14965 else
14966 as_fn_append ()
14968 eval $1=\$$1\$2
14970 fi # as_fn_append
14972 # as_fn_arith ARG...
14973 # ------------------
14974 # Perform arithmetic evaluation on the ARGs, and store the result in the
14975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14976 # must be portable across $(()) and expr.
14977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14978 eval 'as_fn_arith ()
14980 as_val=$(( $* ))
14982 else
14983 as_fn_arith ()
14985 as_val=`expr "$@" || test $? -eq 1`
14987 fi # as_fn_arith
14990 if expr a : '\(a\)' >/dev/null 2>&1 &&
14991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14992 as_expr=expr
14993 else
14994 as_expr=false
14997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14998 as_basename=basename
14999 else
15000 as_basename=false
15003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15004 as_dirname=dirname
15005 else
15006 as_dirname=false
15009 as_me=`$as_basename -- "$0" ||
15010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15011 X"$0" : 'X\(//\)$' \| \
15012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15013 $as_echo X/"$0" |
15014 sed '/^.*\/\([^/][^/]*\)\/*$/{
15015 s//\1/
15018 /^X\/\(\/\/\)$/{
15019 s//\1/
15022 /^X\/\(\/\).*/{
15023 s//\1/
15026 s/.*/./; q'`
15028 # Avoid depending upon Character Ranges.
15029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15032 as_cr_digits='0123456789'
15033 as_cr_alnum=$as_cr_Letters$as_cr_digits
15035 ECHO_C= ECHO_N= ECHO_T=
15036 case `echo -n x` in #(((((
15037 -n*)
15038 case `echo 'xy\c'` in
15039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15040 xy) ECHO_C='\c';;
15041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15042 ECHO_T=' ';;
15043 esac;;
15045 ECHO_N='-n';;
15046 esac
15048 rm -f conf$$ conf$$.exe conf$$.file
15049 if test -d conf$$.dir; then
15050 rm -f conf$$.dir/conf$$.file
15051 else
15052 rm -f conf$$.dir
15053 mkdir conf$$.dir 2>/dev/null
15055 if (echo >conf$$.file) 2>/dev/null; then
15056 if ln -s conf$$.file conf$$ 2>/dev/null; then
15057 as_ln_s='ln -s'
15058 # ... but there are two gotchas:
15059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15061 # In both cases, we have to default to `cp -p'.
15062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15063 as_ln_s='cp -p'
15064 elif ln conf$$.file conf$$ 2>/dev/null; then
15065 as_ln_s=ln
15066 else
15067 as_ln_s='cp -p'
15069 else
15070 as_ln_s='cp -p'
15072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15073 rmdir conf$$.dir 2>/dev/null
15076 # as_fn_mkdir_p
15077 # -------------
15078 # Create "$as_dir" as a directory, including parents if necessary.
15079 as_fn_mkdir_p ()
15082 case $as_dir in #(
15083 -*) as_dir=./$as_dir;;
15084 esac
15085 test -d "$as_dir" || eval $as_mkdir_p || {
15086 as_dirs=
15087 while :; do
15088 case $as_dir in #(
15089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15090 *) as_qdir=$as_dir;;
15091 esac
15092 as_dirs="'$as_qdir' $as_dirs"
15093 as_dir=`$as_dirname -- "$as_dir" ||
15094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15095 X"$as_dir" : 'X\(//\)[^/]' \| \
15096 X"$as_dir" : 'X\(//\)$' \| \
15097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15098 $as_echo X"$as_dir" |
15099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15100 s//\1/
15103 /^X\(\/\/\)[^/].*/{
15104 s//\1/
15107 /^X\(\/\/\)$/{
15108 s//\1/
15111 /^X\(\/\).*/{
15112 s//\1/
15115 s/.*/./; q'`
15116 test -d "$as_dir" && break
15117 done
15118 test -z "$as_dirs" || eval "mkdir $as_dirs"
15119 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15122 } # as_fn_mkdir_p
15123 if mkdir -p . 2>/dev/null; then
15124 as_mkdir_p='mkdir -p "$as_dir"'
15125 else
15126 test -d ./-p && rmdir ./-p
15127 as_mkdir_p=false
15130 if test -x / >/dev/null 2>&1; then
15131 as_test_x='test -x'
15132 else
15133 if ls -dL / >/dev/null 2>&1; then
15134 as_ls_L_option=L
15135 else
15136 as_ls_L_option=
15138 as_test_x='
15139 eval sh -c '\''
15140 if test -d "$1"; then
15141 test -d "$1/.";
15142 else
15143 case $1 in #(
15144 -*)set "./$1";;
15145 esac;
15146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15147 ???[sx]*):;;*)false;;esac;fi
15148 '\'' sh
15151 as_executable_p=$as_test_x
15153 # Sed expression to map a string onto a valid CPP name.
15154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15156 # Sed expression to map a string onto a valid variable name.
15157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15160 exec 6>&1
15161 ## ----------------------------------- ##
15162 ## Main body of $CONFIG_STATUS script. ##
15163 ## ----------------------------------- ##
15164 _ASEOF
15165 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 # Save the log message, to keep $0 and so on meaningful, and to
15169 # report actual input values of CONFIG_FILES etc. instead of their
15170 # values after options handling.
15171 ac_log="
15172 This file was extended by $as_me, which was
15173 generated by GNU Autoconf 2.64. Invocation command line was
15175 CONFIG_FILES = $CONFIG_FILES
15176 CONFIG_HEADERS = $CONFIG_HEADERS
15177 CONFIG_LINKS = $CONFIG_LINKS
15178 CONFIG_COMMANDS = $CONFIG_COMMANDS
15179 $ $0 $@
15181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15184 _ACEOF
15186 case $ac_config_files in *"
15187 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15188 esac
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 # Files that config.status was made for.
15194 config_files="$ac_config_files"
15196 _ACEOF
15198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15199 ac_cs_usage="\
15200 \`$as_me' instantiates files and other configuration actions
15201 from templates according to the current configuration. Unless the files
15202 and actions are specified as TAGs, all are instantiated by default.
15204 Usage: $0 [OPTION]... [TAG]...
15206 -h, --help print this help, then exit
15207 -V, --version print version number and configuration settings, then exit
15208 -q, --quiet, --silent
15209 do not print progress messages
15210 -d, --debug don't remove temporary files
15211 --recheck update $as_me by reconfiguring in the same conditions
15212 --file=FILE[:TEMPLATE]
15213 instantiate the configuration file FILE
15215 Configuration files:
15216 $config_files
15218 Report bugs to the package provider."
15220 _ACEOF
15221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15222 ac_cs_version="\\
15223 config.status
15224 configured by $0, generated by GNU Autoconf 2.64,
15225 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15227 Copyright (C) 2009 Free Software Foundation, Inc.
15228 This config.status script is free software; the Free Software Foundation
15229 gives unlimited permission to copy, distribute and modify it."
15231 ac_pwd='$ac_pwd'
15232 srcdir='$srcdir'
15233 INSTALL='$INSTALL'
15234 AWK='$AWK'
15235 test -n "\$AWK" || AWK=awk
15236 _ACEOF
15238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15239 # The default lists apply if the user does not specify any file.
15240 ac_need_defaults=:
15241 while test $# != 0
15243 case $1 in
15244 --*=*)
15245 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15246 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15247 ac_shift=:
15250 ac_option=$1
15251 ac_optarg=$2
15252 ac_shift=shift
15254 esac
15256 case $ac_option in
15257 # Handling of the options.
15258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15259 ac_cs_recheck=: ;;
15260 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15261 $as_echo "$ac_cs_version"; exit ;;
15262 --debug | --debu | --deb | --de | --d | -d )
15263 debug=: ;;
15264 --file | --fil | --fi | --f )
15265 $ac_shift
15266 case $ac_optarg in
15267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15268 esac
15269 as_fn_append CONFIG_FILES " '$ac_optarg'"
15270 ac_need_defaults=false;;
15271 --he | --h | --help | --hel | -h )
15272 $as_echo "$ac_cs_usage"; exit ;;
15273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15274 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15275 ac_cs_silent=: ;;
15277 # This is an error.
15278 -*) as_fn_error "unrecognized option: \`$1'
15279 Try \`$0 --help' for more information." ;;
15281 *) as_fn_append ac_config_targets " $1"
15282 ac_need_defaults=false ;;
15284 esac
15285 shift
15286 done
15288 ac_configure_extra_args=
15290 if $ac_cs_silent; then
15291 exec 6>/dev/null
15292 ac_configure_extra_args="$ac_configure_extra_args --silent"
15295 _ACEOF
15296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15297 if \$ac_cs_recheck; then
15298 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15299 shift
15300 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15301 CONFIG_SHELL='$SHELL'
15302 export CONFIG_SHELL
15303 exec "\$@"
15306 _ACEOF
15307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308 exec 5>>config.log
15310 echo
15311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15312 ## Running $as_me. ##
15313 _ASBOX
15314 $as_echo "$ac_log"
15315 } >&5
15317 _ACEOF
15318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15320 # INIT-COMMANDS
15322 extrasub_build="$extrasub_build"
15323 extrasub_host="$extrasub_host"
15324 extrasub_target="$extrasub_target"
15326 _ACEOF
15328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15330 # Handling of arguments.
15331 for ac_config_target in $ac_config_targets
15333 case $ac_config_target in
15334 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15336 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15337 esac
15338 done
15341 # If the user did not use the arguments to specify the items to instantiate,
15342 # then the envvar interface is used. Set only those that are not.
15343 # We use the long form for the default assignment because of an extremely
15344 # bizarre bug on SunOS 4.1.3.
15345 if $ac_need_defaults; then
15346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15349 # Have a temporary directory for convenience. Make it in the build tree
15350 # simply because there is no reason against having it here, and in addition,
15351 # creating and moving files from /tmp can sometimes cause problems.
15352 # Hook for its removal unless debugging.
15353 # Note that there is a small window in which the directory will not be cleaned:
15354 # after its creation but before its name has been assigned to `$tmp'.
15355 $debug ||
15357 tmp=
15358 trap 'exit_status=$?
15359 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15361 trap 'as_fn_exit 1' 1 2 13 15
15363 # Create a (secure) tmp directory for tmp files.
15366 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15367 test -n "$tmp" && test -d "$tmp"
15368 } ||
15370 tmp=./conf$$-$RANDOM
15371 (umask 077 && mkdir "$tmp")
15372 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15374 # Set up the scripts for CONFIG_FILES section.
15375 # No need to generate them if there are no CONFIG_FILES.
15376 # This happens for instance with `./config.status config.h'.
15377 if test -n "$CONFIG_FILES"; then
15379 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15380 ac_cs_awk_getline=:
15381 ac_cs_awk_pipe_init=
15382 ac_cs_awk_read_file='
15383 while ((getline aline < (F[key])) > 0)
15384 print(aline)
15385 close(F[key])'
15386 ac_cs_awk_pipe_fini=
15387 else
15388 ac_cs_awk_getline=false
15389 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15390 ac_cs_awk_read_file='
15391 print "|#_!!_#|"
15392 print "cat " F[key] " &&"
15393 '$ac_cs_awk_pipe_init
15394 # The final `:' finishes the AND list.
15395 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15397 ac_cr=`echo X | tr X '\015'`
15398 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15399 # But we know of no other shell where ac_cr would be empty at this
15400 # point, so we can use a bashism as a fallback.
15401 if test "x$ac_cr" = x; then
15402 eval ac_cr=\$\'\\r\'
15404 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15405 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15406 ac_cs_awk_cr='\r'
15407 else
15408 ac_cs_awk_cr=$ac_cr
15411 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15412 _ACEOF
15414 # Create commands to substitute file output variables.
15416 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15417 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15418 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15419 echo "_ACAWK" &&
15420 echo "_ACEOF"
15421 } >conf$$files.sh &&
15422 . ./conf$$files.sh ||
15423 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15424 rm -f conf$$files.sh
15427 echo "cat >conf$$subs.awk <<_ACEOF" &&
15428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15429 echo "_ACEOF"
15430 } >conf$$subs.sh ||
15431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15432 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15433 ac_delim='%!_!# '
15434 for ac_last_try in false false false false false :; do
15435 . ./conf$$subs.sh ||
15436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15438 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15439 if test $ac_delim_n = $ac_delim_num; then
15440 break
15441 elif $ac_last_try; then
15442 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15443 else
15444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15446 done
15447 rm -f conf$$subs.sh
15449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15450 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15451 _ACEOF
15452 sed -n '
15454 s/^/S["/; s/!.*/"]=/
15457 s/^[^!]*!//
15458 :repl
15459 t repl
15460 s/'"$ac_delim"'$//
15461 t delim
15464 s/\(.\{148\}\).*/\1/
15465 t more1
15466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15469 b repl
15470 :more1
15471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15474 s/.\{148\}//
15475 t nl
15476 :delim
15478 s/\(.\{148\}\).*/\1/
15479 t more2
15480 s/["\\]/\\&/g; s/^/"/; s/$/"/
15483 :more2
15484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15487 s/.\{148\}//
15488 t delim
15489 ' <conf$$subs.awk | sed '
15490 /^[^""]/{
15492 s/\n//
15494 ' >>$CONFIG_STATUS || ac_write_fail=1
15495 rm -f conf$$subs.awk
15496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497 _ACAWK
15498 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15499 for (key in S) S_is_set[key] = 1
15500 FS = "\a"
15501 \$ac_cs_awk_pipe_init
15504 line = $ 0
15505 nfields = split(line, field, "@")
15506 substed = 0
15507 len = length(field[1])
15508 for (i = 2; i < nfields; i++) {
15509 key = field[i]
15510 keylen = length(key)
15511 if (S_is_set[key]) {
15512 value = S[key]
15513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15514 len += length(value) + length(field[++i])
15515 substed = 1
15516 } else
15517 len += 1 + keylen
15519 if (nfields == 3 && !substed) {
15520 key = field[2]
15521 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15522 \$ac_cs_awk_read_file
15523 next
15526 print line
15528 \$ac_cs_awk_pipe_fini
15529 _ACAWK
15530 _ACEOF
15531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15532 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15533 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15534 else
15536 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15537 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15538 _ACEOF
15540 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15541 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15542 # trailing colons and then remove the whole line if VPATH becomes empty
15543 # (actually we leave an empty line to preserve line numbers).
15544 if test "x$srcdir" = x.; then
15545 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15546 s/:*\$(srcdir):*/:/
15547 s/:*\${srcdir}:*/:/
15548 s/:*@srcdir@:*/:/
15549 s/^\([^=]*=[ ]*\):*/\1/
15550 s/:*$//
15551 s/^[^=]*=[ ]*$//
15555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556 fi # test -n "$CONFIG_FILES"
15559 eval set X " :F $CONFIG_FILES "
15560 shift
15561 for ac_tag
15563 case $ac_tag in
15564 :[FHLC]) ac_mode=$ac_tag; continue;;
15565 esac
15566 case $ac_mode$ac_tag in
15567 :[FHL]*:*);;
15568 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15569 :[FH]-) ac_tag=-:-;;
15570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15571 esac
15572 ac_save_IFS=$IFS
15573 IFS=:
15574 set x $ac_tag
15575 IFS=$ac_save_IFS
15576 shift
15577 ac_file=$1
15578 shift
15580 case $ac_mode in
15581 :L) ac_source=$1;;
15582 :[FH])
15583 ac_file_inputs=
15584 for ac_f
15586 case $ac_f in
15587 -) ac_f="$tmp/stdin";;
15588 *) # Look for the file first in the build tree, then in the source tree
15589 # (if the path is not absolute). The absolute path cannot be DOS-style,
15590 # because $ac_f cannot contain `:'.
15591 test -f "$ac_f" ||
15592 case $ac_f in
15593 [\\/$]*) false;;
15594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15595 esac ||
15596 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15597 esac
15598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15599 as_fn_append ac_file_inputs " '$ac_f'"
15600 done
15602 # Let's still pretend it is `configure' which instantiates (i.e., don't
15603 # use $as_me), people would be surprised to read:
15604 # /* config.h. Generated by config.status. */
15605 configure_input='Generated from '`
15606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15607 `' by configure.'
15608 if test x"$ac_file" != x-; then
15609 configure_input="$ac_file. $configure_input"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15611 $as_echo "$as_me: creating $ac_file" >&6;}
15613 # Neutralize special characters interpreted by sed in replacement strings.
15614 case $configure_input in #(
15615 *\&* | *\|* | *\\* )
15616 ac_sed_conf_input=`$as_echo "$configure_input" |
15617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15618 *) ac_sed_conf_input=$configure_input;;
15619 esac
15621 case $ac_tag in
15622 *:-:* | *:-) cat >"$tmp/stdin" \
15623 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15624 esac
15626 esac
15628 ac_dir=`$as_dirname -- "$ac_file" ||
15629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15630 X"$ac_file" : 'X\(//\)[^/]' \| \
15631 X"$ac_file" : 'X\(//\)$' \| \
15632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15633 $as_echo X"$ac_file" |
15634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15635 s//\1/
15638 /^X\(\/\/\)[^/].*/{
15639 s//\1/
15642 /^X\(\/\/\)$/{
15643 s//\1/
15646 /^X\(\/\).*/{
15647 s//\1/
15650 s/.*/./; q'`
15651 as_dir="$ac_dir"; as_fn_mkdir_p
15652 ac_builddir=.
15654 case "$ac_dir" in
15655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15658 # A ".." for each directory in $ac_dir_suffix.
15659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15660 case $ac_top_builddir_sub in
15661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15663 esac ;;
15664 esac
15665 ac_abs_top_builddir=$ac_pwd
15666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15667 # for backward compatibility:
15668 ac_top_builddir=$ac_top_build_prefix
15670 case $srcdir in
15671 .) # We are building in place.
15672 ac_srcdir=.
15673 ac_top_srcdir=$ac_top_builddir_sub
15674 ac_abs_top_srcdir=$ac_pwd ;;
15675 [\\/]* | ?:[\\/]* ) # Absolute name.
15676 ac_srcdir=$srcdir$ac_dir_suffix;
15677 ac_top_srcdir=$srcdir
15678 ac_abs_top_srcdir=$srcdir ;;
15679 *) # Relative name.
15680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15681 ac_top_srcdir=$ac_top_build_prefix$srcdir
15682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15683 esac
15684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15687 case $ac_mode in
15690 # CONFIG_FILE
15693 case $INSTALL in
15694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15696 esac
15697 _ACEOF
15699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15700 # If the template does not know about datarootdir, expand it.
15701 # FIXME: This hack should be removed a few years after 2.60.
15702 ac_datarootdir_hack=; ac_datarootdir_seen=
15703 ac_sed_dataroot='
15704 /datarootdir/ {
15708 /@datadir@/p
15709 /@docdir@/p
15710 /@infodir@/p
15711 /@localedir@/p
15712 /@mandir@/p'
15713 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15714 *datarootdir*) ac_datarootdir_seen=yes;;
15715 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15717 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15718 _ACEOF
15719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15720 ac_datarootdir_hack='
15721 s&@datadir@&$datadir&g
15722 s&@docdir@&$docdir&g
15723 s&@infodir@&$infodir&g
15724 s&@localedir@&$localedir&g
15725 s&@mandir@&$mandir&g
15726 s&\\\${datarootdir}&$datarootdir&g' ;;
15727 esac
15728 _ACEOF
15730 # Neutralize VPATH when `$srcdir' = `.'.
15731 # Shell code in configure.ac might set extrasub.
15732 # FIXME: do we really want to maintain this feature?
15733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734 ac_sed_extra="$ac_vpsub
15735 $extrasub
15736 _ACEOF
15737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15740 s|@configure_input@|$ac_sed_conf_input|;t t
15741 s&@top_builddir@&$ac_top_builddir_sub&;t t
15742 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15743 s&@srcdir@&$ac_srcdir&;t t
15744 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15745 s&@top_srcdir@&$ac_top_srcdir&;t t
15746 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15747 s&@builddir@&$ac_builddir&;t t
15748 s&@abs_builddir@&$ac_abs_builddir&;t t
15749 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15750 s&@INSTALL@&$ac_INSTALL&;t t
15751 $ac_datarootdir_hack
15753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15754 if $ac_cs_awk_getline; then
15755 $AWK -f "$tmp/subs.awk"
15756 else
15757 $AWK -f "$tmp/subs.awk" | $SHELL
15758 fi >$tmp/out \
15759 || as_fn_error "could not create $ac_file" "$LINENO" 5
15761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15762 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15765 which seems to be undefined. Please make sure it is defined." >&5
15766 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15767 which seems to be undefined. Please make sure it is defined." >&2;}
15769 rm -f "$tmp/stdin"
15770 case $ac_file in
15771 -) cat "$tmp/out" && rm -f "$tmp/out";;
15772 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15773 esac \
15774 || as_fn_error "could not create $ac_file" "$LINENO" 5
15779 esac
15782 case $ac_file$ac_mode in
15783 "Makefile":F) sed "$extrasub_build" Makefile |
15784 sed "$extrasub_host" |
15785 sed "$extrasub_target" > mf$$
15786 mv -f mf$$ Makefile ;;
15788 esac
15789 done # for ac_tag
15792 as_fn_exit 0
15793 _ACEOF
15794 ac_clean_files=$ac_clean_files_save
15796 test $ac_write_fail = 0 ||
15797 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15800 # configure is writing to config.log, and then calls config.status.
15801 # config.status does its own redirection, appending to config.log.
15802 # Unfortunately, on DOS this fails, as config.log is still kept open
15803 # by configure, so config.status won't be able to write to it; its
15804 # output is simply discarded. So we exec the FD to /dev/null,
15805 # effectively closing config.log, so it can be properly (re)opened and
15806 # appended to by config.status. When coming back to configure, we
15807 # need to make the FD available again.
15808 if test "$no_create" != yes; then
15809 ac_cs_success=:
15810 ac_config_status_args=
15811 test "$silent" = yes &&
15812 ac_config_status_args="$ac_config_status_args --quiet"
15813 exec 5>/dev/null
15814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15815 exec 5>>config.log
15816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15817 # would make configure fail if this is the last instruction.
15818 $ac_cs_success || as_fn_exit $?
15820 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15822 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}