S390: Add target descriptions for vector register sets
[binutils-gdb.git] / configure
blobd075cf36b9c161970def726b4c31b30ec7132d57
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 host_shared
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 READELF_FOR_TARGET
575 RANLIB_FOR_TARGET
576 OBJDUMP_FOR_TARGET
577 OBJCOPY_FOR_TARGET
578 NM_FOR_TARGET
579 LIPO_FOR_TARGET
580 LD_FOR_TARGET
581 DLLTOOL_FOR_TARGET
582 AS_FOR_TARGET
583 AR_FOR_TARGET
584 GOC_FOR_TARGET
585 GFORTRAN_FOR_TARGET
586 GCJ_FOR_TARGET
587 GCC_FOR_TARGET
588 CXX_FOR_TARGET
589 CC_FOR_TARGET
590 READELF
591 OBJDUMP
592 OBJCOPY
593 WINDMC
594 WINDRES
595 STRIP
596 RANLIB
598 LIPO
600 DLLTOOL
603 RUNTEST
604 EXPECT
605 MAKEINFO
606 FLEX
609 BISON
610 YACC
611 WINDRES_FOR_BUILD
612 WINDMC_FOR_BUILD
613 RANLIB_FOR_BUILD
614 NM_FOR_BUILD
615 LD_FOR_BUILD
616 LDFLAGS_FOR_BUILD
617 GOC_FOR_BUILD
618 GFORTRAN_FOR_BUILD
619 GCJ_FOR_BUILD
620 DLLTOOL_FOR_BUILD
621 CXX_FOR_BUILD
622 CXXFLAGS_FOR_BUILD
623 CFLAGS_FOR_BUILD
624 CC_FOR_BUILD
625 AS_FOR_BUILD
626 AR_FOR_BUILD
627 target_configdirs
628 configdirs
629 build_configdirs
630 INSTALL_GDB_TK
631 GDB_TK
632 CONFIGURE_GDB_TK
633 build_tooldir
634 tooldir
635 GCC_SHLIB_SUBDIR
636 RPATH_ENVVAR
637 target_configargs
638 host_configargs
639 build_configargs
640 BUILD_CONFIG
641 LDFLAGS_FOR_TARGET
642 CXXFLAGS_FOR_TARGET
643 CFLAGS_FOR_TARGET
644 DEBUG_PREFIX_CFLAGS_FOR_TARGET
645 SYSROOT_CFLAGS_FOR_TARGET
646 stage1_languages
647 extra_host_libiberty_configure_flags
648 clooginc
649 clooglibs
650 islinc
651 poststage1_ldflags
652 poststage1_libs
653 stage1_ldflags
654 stage1_libs
655 extra_isl_gmp_configure_flags
656 extra_mpc_mpfr_configure_flags
657 extra_mpc_gmp_configure_flags
658 extra_mpfr_configure_flags
659 gmpinc
660 gmplibs
661 do_compare
662 GNATMAKE
663 GNATBIND
664 ac_ct_CXX
665 CXXFLAGS
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 EXTRA_CONFIGARGS_LIBJAVA
675 target_subdir
676 host_subdir
677 build_subdir
678 build_libsubdir
681 LN_S
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 target_noncanonical
695 host_noncanonical
696 build_noncanonical
697 build_os
698 build_vendor
699 build_cpu
700 build
701 TOPLEVEL_CONFIGURE_ARGUMENTS
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files='serialization_dependencies
741 host_makefile_frag
742 target_makefile_frag
743 alphaieee_frag
744 ospace_frag'
745 ac_user_opts='
746 enable_option_checking
747 with_build_libsubdir
748 enable_gold
749 enable_ld
750 enable_libquadmath
751 enable_libquadmath_support
752 enable_libada
753 enable_libssp
754 enable_libstdcxx
755 enable_static_libjava
756 enable_bootstrap
757 with_mpc
758 with_mpc_include
759 with_mpc_lib
760 with_mpfr_dir
761 with_mpfr
762 with_mpfr_include
763 with_mpfr_lib
764 with_gmp_dir
765 with_gmp
766 with_gmp_include
767 with_gmp_lib
768 with_host_libstdcxx
769 with_stage1_libs
770 with_stage1_ldflags
771 with_boot_libs
772 with_boot_ldflags
773 with_cloog
774 with_isl
775 with_isl_include
776 with_isl_lib
777 enable_isl_version_check
778 with_cloog_include
779 with_cloog_lib
780 enable_cloog_version_check
781 enable_lto
782 enable_stage1_languages
783 enable_objc_gc
784 with_build_sysroot
785 with_debug_prefix_map
786 with_build_config
787 enable_vtable_verify
788 enable_serial_configure
789 with_build_time_tools
790 enable_maintainer_mode
791 enable_stage1_checking
792 enable_werror
793 enable_host_shared
795 ac_precious_vars='build_alias
796 host_alias
797 target_alias
799 CFLAGS
800 LDFLAGS
801 LIBS
802 CPPFLAGS
804 CXXFLAGS
806 build_configargs
807 host_configargs
808 target_configargs
811 DLLTOOL
813 LIPO
815 RANLIB
816 STRIP
817 WINDRES
818 WINDMC
819 OBJCOPY
820 OBJDUMP
821 READELF
822 CC_FOR_TARGET
823 CXX_FOR_TARGET
824 GCC_FOR_TARGET
825 GCJ_FOR_TARGET
826 GFORTRAN_FOR_TARGET
827 GOC_FOR_TARGET
828 AR_FOR_TARGET
829 AS_FOR_TARGET
830 DLLTOOL_FOR_TARGET
831 LD_FOR_TARGET
832 LIPO_FOR_TARGET
833 NM_FOR_TARGET
834 OBJCOPY_FOR_TARGET
835 OBJDUMP_FOR_TARGET
836 RANLIB_FOR_TARGET
837 READELF_FOR_TARGET
838 STRIP_FOR_TARGET
839 WINDRES_FOR_TARGET
840 WINDMC_FOR_TARGET'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 case $srcdir in
1369 *" "*)
1370 as_fn_error "path to source, $srcdir, contains spaces"
1372 esac
1373 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1388 cat <<_ACEOF
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1398 Configuration:
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1413 [PREFIX]
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1444 cat <<\_ACEOF
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 --target=TARGET configure for building compilers for TARGET [HOST]
1455 _ACEOF
1458 if test -n "$ac_init_help"; then
1460 cat <<\_ACEOF
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1467 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1468 --disable-libquadmath do not build libquadmath directory
1469 --disable-libquadmath-support
1470 disable libquadmath support for Fortran
1471 --enable-libada build libada directory
1472 --enable-libssp build libssp directory
1473 --disable-libstdcxx do not build libstdc++-v3 directory
1474 --enable-static-libjava[=ARG]
1475 build static libjava [default=no]
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --disable-isl-version-check
1478 disable check for ISL version
1479 --disable-cloog-version-check
1480 disable check for CLooG version
1481 --enable-lto enable link time optimization support
1482 --enable-stage1-languages[=all]
1483 choose additional languages to build during stage1.
1484 Mostly useful for compiler development
1485 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1486 Objective-C runtime
1487 --enable-vtable-verify Enable vtable verification feature
1488 --enable-serial-[{host,target,build}-]configure
1489 force sequential configuration of sub-packages for
1490 the host, target or build machine, or all
1491 sub-packages
1492 --enable-maintainer-mode
1493 enable make rules and dependencies not useful (and
1494 sometimes confusing) to the casual installer
1495 --enable-stage1-checking[=all]
1496 choose additional checking for stage1 of the
1497 compiler
1498 --enable-werror enable -Werror in bootstrap stage2 and later
1499 --enable-host-shared build host code as shared libraries
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-build-libsubdir=DIR Directory where to find libraries for build system
1505 --with-mpc=PATH specify prefix directory for installed MPC package.
1506 Equivalent to --with-mpc-include=PATH/include plus
1507 --with-mpc-lib=PATH/lib
1508 --with-mpc-include=PATH specify directory for installed MPC include files
1509 --with-mpc-lib=PATH specify directory for the installed MPC library
1510 --with-mpfr-dir=PATH this option has been REMOVED
1511 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1512 Equivalent to --with-mpfr-include=PATH/include plus
1513 --with-mpfr-lib=PATH/lib
1514 --with-mpfr-include=PATH
1515 specify directory for installed MPFR include files
1516 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1517 --with-gmp-dir=PATH this option has been REMOVED
1518 --with-gmp=PATH specify prefix directory for the installed GMP
1519 package. Equivalent to
1520 --with-gmp-include=PATH/include plus
1521 --with-gmp-lib=PATH/lib
1522 --with-gmp-include=PATH specify directory for installed GMP include files
1523 --with-gmp-lib=PATH specify directory for the installed GMP library
1524 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1525 linking with PPL
1526 --with-stage1-libs=LIBS libraries for stage1
1527 --with-stage1-ldflags=FLAGS
1528 linker flags for stage1
1529 --with-boot-libs=LIBS libraries for stage2 and later
1530 --with-boot-ldflags=FLAGS
1531 linker flags for stage2 and later
1532 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1533 package. Equivalent to
1534 --with-cloog-include=PATH/include plus
1535 --with-cloog-lib=PATH/lib
1536 --with-isl=PATH Specify prefix directory for the installed ISL
1537 package. Equivalent to
1538 --with-isl-include=PATH/include plus
1539 --with-isl-lib=PATH/lib
1540 --with-isl-include=PATH Specify directory for installed ISL include files
1541 --with-isl-lib=PATH Specify the directory for the installed ISL library
1542 --with-cloog-include=PATH
1543 Specify directory for installed CLooG include files
1544 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1545 library
1546 --with-build-sysroot=SYSROOT
1547 use sysroot as the system root during the build
1548 --with-debug-prefix-map='A=B C=D ...'
1549 map A to B, C to D ... in debug information
1550 --with-build-config='NAME NAME2...'
1551 use config/NAME.mk build configuration
1552 --with-build-time-tools=PATH
1553 use given path to find target tools during the build
1555 Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1563 CXX C++ compiler command
1564 CXXFLAGS C++ compiler flags
1565 build_configargs
1566 additional configure arguments for build directories
1567 host_configargs
1568 additional configure arguments for host directories
1569 target_configargs
1570 additional configure arguments for target directories
1571 AR AR for the host
1572 AS AS for the host
1573 DLLTOOL DLLTOOL for the host
1574 LD LD for the host
1575 LIPO LIPO for the host
1576 NM NM for the host
1577 RANLIB RANLIB for the host
1578 STRIP STRIP for the host
1579 WINDRES WINDRES for the host
1580 WINDMC WINDMC for the host
1581 OBJCOPY OBJCOPY for the host
1582 OBJDUMP OBJDUMP for the host
1583 READELF READELF for the host
1584 CC_FOR_TARGET
1585 CC for the target
1586 CXX_FOR_TARGET
1587 CXX for the target
1588 GCC_FOR_TARGET
1589 GCC for the target
1590 GCJ_FOR_TARGET
1591 GCJ for the target
1592 GFORTRAN_FOR_TARGET
1593 GFORTRAN for the target
1594 GOC_FOR_TARGET
1595 GOC for the target
1596 AR_FOR_TARGET
1597 AR for the target
1598 AS_FOR_TARGET
1599 AS for the target
1600 DLLTOOL_FOR_TARGET
1601 DLLTOOL for the target
1602 LD_FOR_TARGET
1603 LD for the target
1604 LIPO_FOR_TARGET
1605 LIPO for the target
1606 NM_FOR_TARGET
1607 NM for the target
1608 OBJCOPY_FOR_TARGET
1609 OBJCOPY for the target
1610 OBJDUMP_FOR_TARGET
1611 OBJDUMP for the target
1612 RANLIB_FOR_TARGET
1613 RANLIB for the target
1614 READELF_FOR_TARGET
1615 READELF for the target
1616 STRIP_FOR_TARGET
1617 STRIP for the target
1618 WINDRES_FOR_TARGET
1619 WINDRES for the target
1620 WINDMC_FOR_TARGET
1621 WINDMC for the target
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to the package provider.
1627 _ACEOF
1628 ac_status=$?
1631 if test "$ac_init_help" = "recursive"; then
1632 # If there are subdirs, report their specific --help.
1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1634 test -d "$ac_dir" ||
1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 continue
1637 ac_builddir=.
1639 case "$ac_dir" in
1640 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1643 # A ".." for each directory in $ac_dir_suffix.
1644 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1645 case $ac_top_builddir_sub in
1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1648 esac ;;
1649 esac
1650 ac_abs_top_builddir=$ac_pwd
1651 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1652 # for backward compatibility:
1653 ac_top_builddir=$ac_top_build_prefix
1655 case $srcdir in
1656 .) # We are building in place.
1657 ac_srcdir=.
1658 ac_top_srcdir=$ac_top_builddir_sub
1659 ac_abs_top_srcdir=$ac_pwd ;;
1660 [\\/]* | ?:[\\/]* ) # Absolute name.
1661 ac_srcdir=$srcdir$ac_dir_suffix;
1662 ac_top_srcdir=$srcdir
1663 ac_abs_top_srcdir=$srcdir ;;
1664 *) # Relative name.
1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1666 ac_top_srcdir=$ac_top_build_prefix$srcdir
1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 esac
1669 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671 cd "$ac_dir" || { ac_status=$?; continue; }
1672 # Check for guested configure.
1673 if test -f "$ac_srcdir/configure.gnu"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1676 elif test -f "$ac_srcdir/configure"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure" --help=recursive
1679 else
1680 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 fi || ac_status=$?
1682 cd "$ac_pwd" || { ac_status=$?; break; }
1683 done
1686 test -n "$ac_init_help" && exit $ac_status
1687 if $ac_init_version; then
1688 cat <<\_ACEOF
1689 configure
1690 generated by GNU Autoconf 2.64
1692 Copyright (C) 2009 Free Software Foundation, Inc.
1693 This configure script is free software; the Free Software Foundation
1694 gives unlimited permission to copy, distribute and modify it.
1695 _ACEOF
1696 exit
1699 ## ------------------------ ##
1700 ## Autoconf initialization. ##
1701 ## ------------------------ ##
1703 # ac_fn_c_try_compile LINENO
1704 # --------------------------
1705 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_compile ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1734 ac_retval=1
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 return $ac_retval
1739 } # ac_fn_c_try_compile
1741 # ac_fn_cxx_try_compile LINENO
1742 # ----------------------------
1743 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1744 ac_fn_cxx_try_compile ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext
1748 if { { ac_try="$ac_compile"
1749 case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_compile") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_cxx_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest.$ac_objext; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1772 ac_retval=1
1774 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 return $ac_retval
1777 } # ac_fn_cxx_try_compile
1779 # ac_fn_cxx_try_link LINENO
1780 # -------------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_cxx_try_link ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_cxx_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 $as_test_x conftest$ac_exeext
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1823 } # ac_fn_cxx_try_link
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_c_try_link ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext conftest$ac_exeext
1832 if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 $as_test_x conftest$ac_exeext
1853 }; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1859 ac_retval=1
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1869 } # ac_fn_c_try_link
1871 # ac_fn_c_try_run LINENO
1872 # ----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874 # that executables *can* be run.
1875 ac_fn_c_try_run ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>&5
1886 ac_status=$?
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1889 { { case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_try") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; }; }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: program exited with status $ac_status" >&5
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=$ac_status
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909 return $ac_retval
1911 } # ac_fn_c_try_run
1912 cat >config.log <<_ACEOF
1913 This file contains any messages produced by compilers while
1914 running configure, to aid debugging if configure makes a mistake.
1916 It was created by $as_me, which was
1917 generated by GNU Autoconf 2.64. Invocation command line was
1919 $ $0 $@
1921 _ACEOF
1922 exec 5>>config.log
1924 cat <<_ASUNAME
1925 ## --------- ##
1926 ## Platform. ##
1927 ## --------- ##
1929 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1935 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1938 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1939 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1940 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1941 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1942 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1943 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1944 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1946 _ASUNAME
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1951 IFS=$as_save_IFS
1952 test -z "$as_dir" && as_dir=.
1953 $as_echo "PATH: $as_dir"
1954 done
1955 IFS=$as_save_IFS
1957 } >&5
1959 cat >&5 <<_ACEOF
1962 ## ----------- ##
1963 ## Core tests. ##
1964 ## ----------- ##
1966 _ACEOF
1969 # Keep a trace of the command line.
1970 # Strip out --no-create and --no-recursion so they do not pile up.
1971 # Strip out --silent because we don't want to record it for future runs.
1972 # Also quote any args containing shell meta-characters.
1973 # Make two passes to allow for proper duplicate-argument suppression.
1974 ac_configure_args=
1975 ac_configure_args0=
1976 ac_configure_args1=
1977 ac_must_keep_next=false
1978 for ac_pass in 1 2
1980 for ac_arg
1982 case $ac_arg in
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1986 continue ;;
1987 *\'*)
1988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 esac
1990 case $ac_pass in
1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1993 as_fn_append ac_configure_args1 " '$ac_arg'"
1994 if test $ac_must_keep_next = true; then
1995 ac_must_keep_next=false # Got value, back to normal.
1996 else
1997 case $ac_arg in
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004 esac
2006 -* ) ac_must_keep_next=true ;;
2007 esac
2009 as_fn_append ac_configure_args " '$ac_arg'"
2011 esac
2012 done
2013 done
2014 { ac_configure_args0=; unset ac_configure_args0;}
2015 { ac_configure_args1=; unset ac_configure_args1;}
2017 # When interrupted or exit'd, cleanup temporary files, and complete
2018 # config.log. We remove comments because anyway the quotes in there
2019 # would cause problems or look ugly.
2020 # WARNING: Use '\'' to represent an apostrophe within the trap.
2021 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022 trap 'exit_status=$?
2023 # Save into config.log some information that might help in debugging.
2025 echo
2027 cat <<\_ASBOX
2028 ## ---------------- ##
2029 ## Cache variables. ##
2030 ## ---------------- ##
2031 _ASBOX
2032 echo
2033 # The following way of writing the cache mishandles newlines in values,
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in #(
2038 *${as_nl}*)
2039 case $ac_var in #(
2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042 esac
2043 case $ac_var in #(
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2047 esac ;;
2048 esac
2049 done
2050 (set) 2>&1 |
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
2053 sed -n \
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056 ;; #(
2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2060 esac |
2061 sort
2063 echo
2065 cat <<\_ASBOX
2066 ## ----------------- ##
2067 ## Output variables. ##
2068 ## ----------------- ##
2069 _ASBOX
2070 echo
2071 for ac_var in $ac_subst_vars
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2081 if test -n "$ac_subst_files"; then
2082 cat <<\_ASBOX
2083 ## ------------------- ##
2084 ## File substitutions. ##
2085 ## ------------------- ##
2086 _ASBOX
2087 echo
2088 for ac_var in $ac_subst_files
2090 eval ac_val=\$$ac_var
2091 case $ac_val in
2092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093 esac
2094 $as_echo "$ac_var='\''$ac_val'\''"
2095 done | sort
2096 echo
2099 if test -s confdefs.h; then
2100 cat <<\_ASBOX
2101 ## ----------- ##
2102 ## confdefs.h. ##
2103 ## ----------- ##
2104 _ASBOX
2105 echo
2106 cat confdefs.h
2107 echo
2109 test "$ac_signal" != 0 &&
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
2112 } >&5
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2115 exit $exit_status
2117 for ac_signal in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2119 done
2120 ac_signal=0
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest* confdefs.h
2125 $as_echo "/* confdefs.h */" > confdefs.h
2127 # Predefined preprocessor variables.
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2131 _ACEOF
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135 _ACEOF
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2139 _ACEOF
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2143 _ACEOF
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147 _ACEOF
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_URL "$PACKAGE_URL"
2151 _ACEOF
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2156 ac_site_file1=NONE
2157 ac_site_file2=NONE
2158 if test -n "$CONFIG_SITE"; then
2159 ac_site_file1=$CONFIG_SITE
2160 elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2163 else
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169 test "x$ac_site_file" = xNONE && continue
2170 if test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2174 . "$ac_site_file"
2176 done
2178 if test -r "$cache_file"; then
2179 # Some versions of bash will fail to source /dev/null (special
2180 # files actually), so we avoid doing that.
2181 if test -f "$cache_file"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2184 case $cache_file in
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
2187 esac
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2192 >$cache_file
2195 # Check that the precious variables saved in the cache have kept the same
2196 # value.
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200 eval ac_new_set=\$ac_env_${ac_var}_set
2201 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202 eval ac_new_val=\$ac_env_${ac_var}_value
2203 case $ac_old_set,$ac_new_set in
2204 set,)
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2208 ,set)
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2212 ,);;
2214 if test "x$ac_old_val" != "x$ac_new_val"; then
2215 # differences in whitespace do not lead to failure.
2216 ac_old_val_w=`echo x $ac_old_val`
2217 ac_new_val_w=`echo x $ac_new_val`
2218 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221 ac_cache_corrupted=:
2222 else
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225 eval $ac_var=\$ac_old_val
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2228 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2231 fi;;
2232 esac
2233 # Pass precious variables to config.status.
2234 if test "$ac_new_set" = set; then
2235 case $ac_new_val in
2236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 *) ac_arg=$ac_var=$ac_new_val ;;
2238 esac
2239 case " $ac_configure_args " in
2240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2241 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2242 esac
2244 done
2245 if $ac_cache_corrupted; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2256 ac_ext=c
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270 progname=$0
2271 # if PWD already has a value, it is probably wrong.
2272 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2274 # Export original configure arguments for use by sub-configures.
2275 # Quote arguments with shell meta charatcers.
2276 TOPLEVEL_CONFIGURE_ARGUMENTS=
2277 set -- "$progname" "$@"
2278 for ac_arg
2280 case "$ac_arg" in
2281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2283 # if the argument is of the form -foo=baz, quote the baz part only
2284 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2285 *) ;;
2286 esac
2287 # Add the quoted argument to the list.
2288 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2289 done
2290 if test "$silent" = yes; then
2291 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2293 # Remove the initial space we just introduced and, as these will be
2294 # expanded by make, quote '$'.
2295 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2298 # Find the build, host, and target systems.
2299 ac_aux_dir=
2300 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 for ac_t in install-sh install.sh shtool; do
2302 if test -f "$ac_dir/$ac_t"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/$ac_t -c"
2305 break 2
2307 done
2308 done
2309 if test -z "$ac_aux_dir"; then
2310 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2313 # These three variables are undocumented and unsupported,
2314 # and are intended to be withdrawn in a future Autoconf release.
2315 # They can cause serious problems if a builder's source tree is in a directory
2316 # whose full name contains unusual characters.
2317 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2318 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2319 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322 # Make sure we can run config.sub.
2323 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2324 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2327 $as_echo_n "checking build system type... " >&6; }
2328 if test "${ac_cv_build+set}" = set; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 ac_build_alias=$build_alias
2332 test "x$ac_build_alias" = x &&
2333 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2334 test "x$ac_build_alias" = x &&
2335 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2336 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2337 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2341 $as_echo "$ac_cv_build" >&6; }
2342 case $ac_cv_build in
2343 *-*-*) ;;
2344 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2345 esac
2346 build=$ac_cv_build
2347 ac_save_IFS=$IFS; IFS='-'
2348 set x $ac_cv_build
2349 shift
2350 build_cpu=$1
2351 build_vendor=$2
2352 shift; shift
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2355 build_os=$*
2356 IFS=$ac_save_IFS
2357 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2360 case ${build_alias} in
2361 "") build_noncanonical=${build} ;;
2362 *) build_noncanonical=${build_alias} ;;
2363 esac
2367 case ${host_alias} in
2368 "") host_noncanonical=${build_noncanonical} ;;
2369 *) host_noncanonical=${host_alias} ;;
2370 esac
2374 case ${target_alias} in
2375 "") target_noncanonical=${host_noncanonical} ;;
2376 *) target_noncanonical=${target_alias} ;;
2377 esac
2382 test "$host_noncanonical" = "$target_noncanonical" &&
2383 test "$program_prefix$program_suffix$program_transform_name" = \
2384 NONENONEs,x,x, &&
2385 program_transform_name=s,y,y,
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2388 $as_echo_n "checking host system type... " >&6; }
2389 if test "${ac_cv_host+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 if test "x$host_alias" = x; then
2393 ac_cv_host=$ac_cv_build
2394 else
2395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2396 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2401 $as_echo "$ac_cv_host" >&6; }
2402 case $ac_cv_host in
2403 *-*-*) ;;
2404 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2405 esac
2406 host=$ac_cv_host
2407 ac_save_IFS=$IFS; IFS='-'
2408 set x $ac_cv_host
2409 shift
2410 host_cpu=$1
2411 host_vendor=$2
2412 shift; shift
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2415 host_os=$*
2416 IFS=$ac_save_IFS
2417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2421 $as_echo_n "checking target system type... " >&6; }
2422 if test "${ac_cv_target+set}" = set; then :
2423 $as_echo_n "(cached) " >&6
2424 else
2425 if test "x$target_alias" = x; then
2426 ac_cv_target=$ac_cv_host
2427 else
2428 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2429 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2434 $as_echo "$ac_cv_target" >&6; }
2435 case $ac_cv_target in
2436 *-*-*) ;;
2437 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2438 esac
2439 target=$ac_cv_target
2440 ac_save_IFS=$IFS; IFS='-'
2441 set x $ac_cv_target
2442 shift
2443 target_cpu=$1
2444 target_vendor=$2
2445 shift; shift
2446 # Remember, the first character of IFS is used to create $*,
2447 # except with old shells:
2448 target_os=$*
2449 IFS=$ac_save_IFS
2450 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2453 # The aliases save the names the user supplied, while $host etc.
2454 # will get canonicalized.
2455 test -n "$target_alias" &&
2456 test "$program_prefix$program_suffix$program_transform_name" = \
2457 NONENONEs,x,x, &&
2458 program_prefix=${target_alias}-
2460 test "$program_prefix" != NONE &&
2461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2462 # Use a double $ so make ignores it.
2463 test "$program_suffix" != NONE &&
2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465 # Double any \ or $.
2466 # By default was `s,x,x', remove it if useless.
2467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2472 # Get 'install' or 'install-sh' and its variants.
2473 # Find a good install program. We prefer a C program (faster),
2474 # so one script is as good as another. But avoid the broken or
2475 # incompatible versions:
2476 # SysV /etc/install, /usr/sbin/install
2477 # SunOS /usr/etc/install
2478 # IRIX /sbin/install
2479 # AIX /bin/install
2480 # AmigaOS /C/install, which installs bootblocks on floppy discs
2481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2484 # OS/2's system install, which has a completely different semantic
2485 # ./install, which can be erroneously created by make from ./install.sh.
2486 # Reject install programs that cannot install multiple files.
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2489 if test -z "$INSTALL"; then
2490 if test "${ac_cv_path_install+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 # Account for people who put trailing slashes in PATH elements.
2499 case $as_dir/ in #((
2500 ./ | .// | /[cC]/* | \
2501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2502 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2503 /usr/ucb/* ) ;;
2505 # OSF1 and SCO ODT 3.0 have their own names for install.
2506 # Don't use installbsd from OSF since it installs stuff as root
2507 # by default.
2508 for ac_prog in ginstall scoinst install; do
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2511 if test $ac_prog = install &&
2512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2513 # AIX install. It has an incompatible calling convention.
2515 elif test $ac_prog = install &&
2516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # program-specific install script used by HP pwplus--don't use.
2519 else
2520 rm -rf conftest.one conftest.two conftest.dir
2521 echo one > conftest.one
2522 echo two > conftest.two
2523 mkdir conftest.dir
2524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2525 test -s conftest.one && test -s conftest.two &&
2526 test -s conftest.dir/conftest.one &&
2527 test -s conftest.dir/conftest.two
2528 then
2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530 break 3
2534 done
2535 done
2537 esac
2539 done
2540 IFS=$as_save_IFS
2542 rm -rf conftest.one conftest.two conftest.dir
2545 if test "${ac_cv_path_install+set}" = set; then
2546 INSTALL=$ac_cv_path_install
2547 else
2548 # As a last resort, use the slow shell script. Don't cache a
2549 # value for INSTALL within a source directory, because that will
2550 # break other packages using the cache if that directory is
2551 # removed, or if the value is a relative name.
2552 INSTALL=$ac_install_sh
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2556 $as_echo "$INSTALL" >&6; }
2558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2559 # It thinks the first close brace ends the variable substitution.
2560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2567 $as_echo_n "checking whether ln works... " >&6; }
2568 if test "${acx_cv_prog_LN+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 rm -f conftestdata_t
2572 echo >conftestdata_f
2573 if ln conftestdata_f conftestdata_t 2>/dev/null
2574 then
2575 acx_cv_prog_LN=ln
2576 else
2577 acx_cv_prog_LN=no
2579 rm -f conftestdata_f conftestdata_t
2582 if test $acx_cv_prog_LN = no; then
2583 LN="cp"
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2585 $as_echo "no, using $LN" >&6; }
2586 else
2587 LN="$acx_cv_prog_LN"
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589 $as_echo "yes" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2593 $as_echo_n "checking whether ln -s works... " >&6; }
2594 LN_S=$as_ln_s
2595 if test "$LN_S" = "ln -s"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2600 $as_echo "no, using $LN_S" >&6; }
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2604 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2605 if test "${ac_cv_path_SED+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2609 for ac_i in 1 2 3 4 5 6 7; do
2610 ac_script="$ac_script$as_nl$ac_script"
2611 done
2612 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2613 { ac_script=; unset ac_script;}
2614 if test -z "$SED"; then
2615 ac_path_SED_found=false
2616 # Loop through the user's path and test for each of PROGNAME-LIST
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_prog in sed gsed; do
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2625 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2626 # Check for GNU ac_path_SED and select it if it is found.
2627 # Check for GNU $ac_path_SED
2628 case `"$ac_path_SED" --version 2>&1` in
2629 *GNU*)
2630 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2632 ac_count=0
2633 $as_echo_n 0123456789 >"conftest.in"
2634 while :
2636 cat "conftest.in" "conftest.in" >"conftest.tmp"
2637 mv "conftest.tmp" "conftest.in"
2638 cp "conftest.in" "conftest.nl"
2639 $as_echo '' >> "conftest.nl"
2640 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2642 as_fn_arith $ac_count + 1 && ac_count=$as_val
2643 if test $ac_count -gt ${ac_path_SED_max-0}; then
2644 # Best one so far, save it but keep looking for a better one
2645 ac_cv_path_SED="$ac_path_SED"
2646 ac_path_SED_max=$ac_count
2648 # 10*(2^10) chars as input seems more than enough
2649 test $ac_count -gt 10 && break
2650 done
2651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2652 esac
2654 $ac_path_SED_found && break 3
2655 done
2656 done
2657 done
2658 IFS=$as_save_IFS
2659 if test -z "$ac_cv_path_SED"; then
2660 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2662 else
2663 ac_cv_path_SED=$SED
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2668 $as_echo "$ac_cv_path_SED" >&6; }
2669 SED="$ac_cv_path_SED"
2670 rm -f conftest.sed
2672 for ac_prog in gawk mawk nawk awk
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675 set dummy $ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_AWK+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2697 IFS=$as_save_IFS
2701 AWK=$ac_cv_prog_AWK
2702 if test -n "$AWK"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2704 $as_echo "$AWK" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2711 test -n "$AWK" && break
2712 done
2715 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2717 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2718 # a relative path.
2719 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2720 INSTALL="${srcpwd}/install-sh -c"
2723 # Set srcdir to "." if that's what it is.
2724 # This is important for multilib support.
2725 pwd=`${PWDCMD-pwd}`
2726 if test "${pwd}" = "${srcpwd}" ; then
2727 srcdir=.
2730 topsrcdir=$srcpwd
2732 extra_host_args=
2734 ### To add a new directory to the tree, first choose whether it is a target
2735 ### or a host dependent tool. Then put it into the appropriate list
2736 ### (library or tools, host or target), doing a dependency sort.
2738 # Subdirs will be configured in the order listed in build_configdirs,
2739 # configdirs, or target_configdirs; see the serialization section below.
2741 # Dependency sorting is only needed when *configuration* must be done in
2742 # a particular order. In all cases a dependency should be specified in
2743 # the Makefile, whether or not it's implicitly specified here.
2745 # Double entries in build_configdirs, configdirs, or target_configdirs may
2746 # cause circular dependencies and break everything horribly.
2748 # these library is used by various programs built for the build
2749 # environment
2751 build_libs="build-libiberty"
2753 # these tools are built for the build environment
2754 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2756 # these libraries are used by various programs built for the host environment
2758 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2760 # these tools are built for the host environment
2761 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2762 # know that we are building the simulator.
2763 # binutils, gas and ld appear in that order because it makes sense to run
2764 # "make check" in that particular order.
2765 # If --enable-gold is used, "gold" may replace "ld".
2766 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2768 # libgcj represents the runtime libraries only used by gcj.
2769 libgcj="target-libffi \
2770 target-zlib \
2771 target-libjava"
2773 # these libraries are built for the target environment, and are built after
2774 # the host libraries and the host tools (which may be a cross compiler)
2775 # Note that libiberty is not a target library.
2776 target_libraries="target-libgcc \
2777 target-libbacktrace \
2778 target-libgloss \
2779 target-newlib \
2780 target-libgomp \
2781 target-libcilkrts \
2782 target-libatomic \
2783 target-libitm \
2784 target-libstdc++-v3 \
2785 target-libsanitizer \
2786 target-libvtv \
2787 target-libssp \
2788 target-libquadmath \
2789 target-libgfortran \
2790 target-boehm-gc \
2791 ${libgcj} \
2792 target-libobjc \
2793 target-libada \
2794 target-libgo"
2796 # these tools are built using the target libraries, and are intended to
2797 # run only in the target environment
2799 # note: any program that *uses* libraries that are in the "target_libraries"
2800 # list belongs in this list.
2802 target_tools="target-rda"
2804 ################################################################################
2806 ## All tools belong in one of the four categories, and are assigned above
2807 ## We assign ${configdirs} this way to remove all embedded newlines. This
2808 ## is important because configure will choke if they ever get through.
2809 ## ${configdirs} is directories we build using the host tools.
2810 ## ${target_configdirs} is directories we build using the target tools.
2811 configdirs=`echo ${host_libs} ${host_tools}`
2812 target_configdirs=`echo ${target_libraries} ${target_tools}`
2813 build_configdirs=`echo ${build_libs} ${build_tools}`
2817 ################################################################################
2819 srcname="gnu development package"
2821 # This gets set non-empty for some net releases of packages.
2822 appdirs=""
2824 # Define is_cross_compiler to save on calls to 'test'.
2825 is_cross_compiler=
2826 if test x"${host}" = x"${target}" ; then
2827 is_cross_compiler=no
2828 else
2829 is_cross_compiler=yes
2832 # Find the build and target subdir names.
2834 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2835 # have matching libraries, they should use host libraries: Makefile.tpl
2836 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2837 # However, they still use the build modules, because the corresponding
2838 # host modules (e.g. bison) are only built for the host when bootstrap
2839 # finishes. So:
2840 # - build_subdir is where we find build modules, and never changes.
2841 # - build_libsubdir is where we find build libraries, and can be overridden.
2843 # Prefix 'build-' so this never conflicts with target_subdir.
2844 build_subdir="build-${build_noncanonical}"
2846 # Check whether --with-build-libsubdir was given.
2847 if test "${with_build_libsubdir+set}" = set; then :
2848 withval=$with_build_libsubdir; build_libsubdir="$withval"
2849 else
2850 build_libsubdir="$build_subdir"
2853 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2854 if ( test $srcdir = . && test -d gcc ) \
2855 || test -d $srcdir/../host-${host_noncanonical}; then
2856 host_subdir="host-${host_noncanonical}"
2857 else
2858 host_subdir=.
2860 # No prefix.
2861 target_subdir=${target_noncanonical}
2863 # Be sure to cover against remnants of an in-tree build.
2864 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2865 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2866 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2869 # Skipdirs are removed silently.
2870 skipdirs=
2871 # Noconfigdirs are removed loudly.
2872 noconfigdirs=""
2874 use_gnu_ld=
2875 # Make sure we don't let GNU ld be added if we didn't want it.
2876 if test x$with_gnu_ld = xno ; then
2877 use_gnu_ld=no
2878 noconfigdirs="$noconfigdirs ld gold"
2881 use_gnu_as=
2882 # Make sure we don't let GNU as be added if we didn't want it.
2883 if test x$with_gnu_as = xno ; then
2884 use_gnu_as=no
2885 noconfigdirs="$noconfigdirs gas"
2888 use_included_zlib=
2889 # Make sure we don't let ZLIB be added if we didn't want it.
2890 if test x$with_system_zlib = xyes ; then
2891 use_included_zlib=no
2892 noconfigdirs="$noconfigdirs zlib"
2895 # some tools are so dependent upon X11 that if we're not building with X,
2896 # it's not even worth trying to configure, much less build, that tool.
2898 case ${with_x} in
2899 yes | "") ;; # the default value for this tree is that X11 is available
2901 skipdirs="${skipdirs} tk itcl libgui"
2902 # We won't be able to build gdbtk without X.
2903 enable_gdbtk=no
2905 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2906 esac
2908 # Some are only suitable for cross toolchains.
2909 # Remove these if host=target.
2910 cross_only="target-libgloss target-newlib target-opcodes"
2912 case $is_cross_compiler in
2913 no) skipdirs="${skipdirs} ${cross_only}" ;;
2914 esac
2916 # If both --with-headers and --with-libs are specified, default to
2917 # --without-newlib.
2918 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2919 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2920 if test x"${with_newlib}" = x ; then
2921 with_newlib=no
2925 # Recognize --with-newlib/--without-newlib.
2926 case ${with_newlib} in
2927 no) skipdirs="${skipdirs} target-newlib" ;;
2928 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2929 esac
2931 # Handle --enable-gold, --enable-ld.
2932 # --disable-gold [--enable-ld]
2933 # Build only ld. Default option.
2934 # --enable-gold [--enable-ld]
2935 # Build both gold and ld. Install gold as "ld.gold", install ld
2936 # as "ld.bfd" and "ld".
2937 # --enable-gold=default [--enable-ld]
2938 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2939 # install ld as "ld.bfd".
2940 # --enable-gold[=default] --disable-ld
2941 # Build only gold, which is then installed as both "ld.gold" and "ld".
2942 # --enable-gold --enable-ld=default
2943 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2944 # and ld.bfd).
2945 # In other words, ld is default
2946 # --enable-gold=default --enable-ld=default
2947 # Error.
2949 default_ld=
2950 # Check whether --enable-gold was given.
2951 if test "${enable_gold+set}" = set; then :
2952 enableval=$enable_gold; ENABLE_GOLD=$enableval
2953 else
2954 ENABLE_GOLD=no
2957 case "${ENABLE_GOLD}" in
2958 yes|default)
2959 # Check for ELF target.
2960 is_elf=no
2961 case "${target}" in
2962 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2963 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2964 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2965 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
2966 case "${target}" in
2967 *-*-linux*aout* | *-*-linux*oldld*)
2970 is_elf=yes
2972 esac
2973 esac
2975 if test "$is_elf" = "yes"; then
2976 # Check for target supported by gold.
2977 case "${target}" in
2978 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
2979 | aarch64*-*-* | tilegx*-*-*)
2980 configdirs="$configdirs gold"
2981 if test x${ENABLE_GOLD} = xdefault; then
2982 default_ld=gold
2984 ENABLE_GOLD=yes
2986 esac
2992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2994 esac
2996 # Check whether --enable-ld was given.
2997 if test "${enable_ld+set}" = set; then :
2998 enableval=$enable_ld; ENABLE_LD=$enableval
2999 else
3000 ENABLE_LD=yes
3004 case "${ENABLE_LD}" in
3005 default)
3006 if test x${default_ld} != x; then
3007 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3010 yes)
3013 if test x${ENABLE_GOLD} != xyes; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3015 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3017 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3020 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3022 esac
3024 # Configure extra directories which are host specific
3026 case "${host}" in
3027 *-cygwin*)
3028 configdirs="$configdirs libtermcap" ;;
3029 esac
3031 # A target can indicate whether a language isn't supported for some reason.
3032 # Only spaces may be used in this macro; not newlines or tabs.
3033 unsupported_languages=
3035 # Remove more programs from consideration, based on the host or
3036 # target this usually means that a port of the program doesn't
3037 # exist yet.
3039 case "${host}" in
3040 i[3456789]86-*-msdosdjgpp*)
3041 noconfigdirs="$noconfigdirs tcl tk itcl"
3043 esac
3046 # Check whether --enable-libquadmath was given.
3047 if test "${enable_libquadmath+set}" = set; then :
3048 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3049 else
3050 ENABLE_LIBQUADMATH=yes
3053 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3054 noconfigdirs="$noconfigdirs target-libquadmath"
3058 # Check whether --enable-libquadmath-support was given.
3059 if test "${enable_libquadmath_support+set}" = set; then :
3060 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3061 else
3062 ENABLE_LIBQUADMATH_SUPPORT=yes
3065 enable_libquadmath_support=
3066 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3067 enable_libquadmath_support=no
3071 # Check whether --enable-libada was given.
3072 if test "${enable_libada+set}" = set; then :
3073 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3074 else
3075 ENABLE_LIBADA=yes
3078 if test "${ENABLE_LIBADA}" != "yes" ; then
3079 noconfigdirs="$noconfigdirs gnattools"
3082 # Check whether --enable-libssp was given.
3083 if test "${enable_libssp+set}" = set; then :
3084 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3085 else
3086 ENABLE_LIBSSP=yes
3090 # Check whether --enable-libstdcxx was given.
3091 if test "${enable_libstdcxx+set}" = set; then :
3092 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3093 else
3094 ENABLE_LIBSTDCXX=default
3097 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3098 noconfigdirs="$noconfigdirs libstdc++-v3"
3101 # Save it here so that, even in case of --enable-libgcj, if the Java
3102 # front-end isn't enabled, we still get libgcj disabled.
3103 libgcj_saved=$libgcj
3104 case $enable_libgcj in
3105 yes)
3106 # If we reset it here, it won't get added to noconfigdirs in the
3107 # target-specific build rules, so it will be forcibly enabled
3108 # (unless the Java language itself isn't enabled).
3109 libgcj=
3112 # Make sure we get it printed in the list of not supported target libs.
3113 # Don't disable libffi, though, other languages use it.
3114 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3115 # Clear libgcj_saved so that even if java is enabled libffi won't be
3116 # built.
3117 libgcj_saved=
3119 esac
3121 # Check whether --enable-static-libjava was given.
3122 if test "${enable_static_libjava+set}" = set; then :
3123 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3124 else
3125 ENABLE_STATIC_LIBJAVA=no
3128 enable_static_libjava=
3129 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3130 enable_static_libjava=yes
3133 if test x$enable_static_libjava != xyes ; then
3134 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3138 # Disable libgomp on non POSIX hosted systems.
3139 if test x$enable_libgomp = x ; then
3140 # Enable libgomp by default on hosted POSIX systems.
3141 case "${target}" in
3142 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3144 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3146 *-*-solaris2* | *-*-hpux11*)
3148 *-*-darwin* | *-*-aix*)
3151 noconfigdirs="$noconfigdirs target-libgomp"
3153 esac
3156 # Disable libatomic on unsupported systems.
3157 if test -d ${srcdir}/libatomic; then
3158 if test x$enable_libatomic = x; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3160 $as_echo_n "checking for libatomic support... " >&6; }
3161 if (srcdir=${srcdir}/libatomic; \
3162 . ${srcdir}/configure.tgt; \
3163 test -n "$UNSUPPORTED")
3164 then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 noconfigdirs="$noconfigdirs target-libatomic"
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170 $as_echo "yes" >&6; }
3175 # Disable libcilkrts on unsupported systems.
3176 if test -d ${srcdir}/libcilkrts; then
3177 if test x$enable_libcilkrts = x; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3179 $as_echo_n "checking for libcilkrts support... " >&6; }
3180 if (srcdir=${srcdir}/libcilkrts; \
3181 . ${srcdir}/configure.tgt; \
3182 test -n "$UNSUPPORTED")
3183 then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 noconfigdirs="$noconfigdirs target-libcilkrts"
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189 $as_echo "yes" >&6; }
3194 # Disable libitm on unsupported systems.
3195 if test -d ${srcdir}/libitm; then
3196 if test x$enable_libitm = x; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3198 $as_echo_n "checking for libitm support... " >&6; }
3199 if (srcdir=${srcdir}/libitm; \
3200 . ${srcdir}/configure.tgt; \
3201 test -n "$UNSUPPORTED")
3202 then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 noconfigdirs="$noconfigdirs target-libitm"
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3208 $as_echo "yes" >&6; }
3213 # Disable libsanitizer on unsupported systems.
3214 if test -d ${srcdir}/libsanitizer; then
3215 if test x$enable_libsanitizer = x; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3217 $as_echo_n "checking for libsanitizer support... " >&6; }
3218 if (srcdir=${srcdir}/libsanitizer; \
3219 . ${srcdir}/configure.tgt; \
3220 test -n "$UNSUPPORTED")
3221 then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 noconfigdirs="$noconfigdirs target-libsanitizer"
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3232 # Disable libvtv on unsupported systems.
3233 if test -d ${srcdir}/libvtv; then
3234 if test x$enable_libvtv = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3236 $as_echo_n "checking for libvtv support... " >&6; }
3237 if (srcdir=${srcdir}/libvtv; \
3238 . ${srcdir}/configure.tgt; \
3239 test "$VTV_SUPPORTED" != "yes")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 noconfigdirs="$noconfigdirs target-libvtv"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246 $as_echo "yes" >&6; }
3251 # Disable libquadmath for some systems.
3252 case "${target}" in
3253 avr-*-*)
3254 noconfigdirs="$noconfigdirs target-libquadmath"
3256 # libquadmath is unused on AIX and libquadmath build process use of
3257 # LD_LIBRARY_PATH can break AIX bootstrap.
3258 powerpc-*-aix* | rs6000-*-aix*)
3259 noconfigdirs="$noconfigdirs target-libquadmath"
3261 esac
3263 # Disable libssp for some systems.
3264 case "${target}" in
3265 avr-*-*)
3266 # No hosted I/O support.
3267 noconfigdirs="$noconfigdirs target-libssp"
3269 powerpc-*-aix* | rs6000-*-aix*)
3270 noconfigdirs="$noconfigdirs target-libssp"
3272 rl78-*-*)
3273 # libssp uses a misaligned load to trigger a fault, but the RL78
3274 # doesn't fault for those - instead, it gives a build-time error
3275 # for explicit misaligned loads.
3276 noconfigdirs="$noconfigdirs target-libssp"
3278 esac
3280 # Disable libstdc++-v3 for some systems.
3281 # Allow user to override this if they pass --enable-libstdc++-v3
3282 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3283 case "${target}" in
3284 *-*-vxworks*)
3285 # VxWorks uses the Dinkumware C++ library.
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3288 arm*-wince-pe*)
3289 # the C++ libraries don't build on top of CE's C libraries
3290 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3292 avr-*-*)
3293 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3295 esac
3298 # Disable Fortran for some systems.
3299 case "${target}" in
3300 mmix-*-*)
3301 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3302 unsupported_languages="$unsupported_languages fortran"
3304 esac
3306 # Disable Java if libffi is not supported.
3307 case "${target}" in
3308 aarch64-*-*)
3310 alpha*-*-*)
3312 arm*-*-*)
3314 cris-*-*)
3316 frv-*-*)
3318 hppa*-*-linux*)
3320 hppa*-*-hpux*)
3322 i?86-*-*)
3324 ia64*-*-*)
3326 m32r*-*-*)
3328 m68k-*-*)
3330 mips*-*-rtems*)
3332 mips*-*-linux*)
3334 powerpc*-*-linux*)
3336 powerpc-*-darwin*)
3338 powerpc-*-aix* | rs6000-*-aix*)
3340 powerpc-*-freebsd*)
3342 powerpc64-*-freebsd*)
3344 powerpc*-*-rtems*)
3346 s390-*-* | s390x-*-*)
3348 sh-*-* | sh[34]*-*-*)
3350 sh64-*-* | sh5*-*-*)
3352 sparc*-*-*)
3354 x86_64-*-*)
3356 *-*-*)
3357 unsupported_languages="$unsupported_languages java"
3359 esac
3361 # Disable Java, libgcj or related libraries for some systems.
3362 case "${target}" in
3363 powerpc-*-darwin*)
3365 i[3456789]86-*-darwin*)
3367 x86_64-*-darwin[912]*)
3369 *-*-darwin*)
3370 noconfigdirs="$noconfigdirs ${libgcj}"
3372 *-*-netware*)
3373 noconfigdirs="$noconfigdirs ${libgcj}"
3375 *-*-rtems*)
3376 noconfigdirs="$noconfigdirs ${libgcj}"
3378 *-*-tpf*)
3379 noconfigdirs="$noconfigdirs ${libgcj}"
3381 *-*-uclinux*)
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3384 *-*-vxworks*)
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3387 alpha*-*-*vms*)
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3390 arm-wince-pe)
3391 noconfigdirs="$noconfigdirs ${libgcj}"
3393 arm*-*-symbianelf*)
3394 noconfigdirs="$noconfigdirs ${libgcj}"
3396 bfin-*-*)
3397 noconfigdirs="$noconfigdirs target-boehm-gc"
3399 cris-*-* | crisv32-*-*)
3400 unsupported_languages="$unsupported_languages java"
3401 case "${target}" in
3402 *-*-linux*)
3404 *) # See PR46792 regarding target-libffi.
3405 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3406 esac
3408 hppa*64*-*-linux*)
3409 # In this case, it's because the hppa64-linux target is for
3410 # the kernel only at this point and has no libc, and thus no
3411 # headers, crt*.o, etc., all of which are needed by these.
3412 unsupported_languages="$unsupported_languages java"
3414 hppa*64*-*-hpux*)
3415 noconfigdirs="$noconfigdirs ${libgcj}"
3417 hppa*-hp-hpux11*)
3419 hppa*-*-hpux*)
3420 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3421 # build on HP-UX 10.20.
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3424 ia64*-*-*vms*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3427 i[3456789]86-w64-mingw*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3430 i[3456789]86-*-mingw*)
3431 noconfigdirs="$noconfigdirs ${libgcj}"
3433 x86_64-*-mingw*)
3434 noconfigdirs="$noconfigdirs ${libgcj}"
3436 mmix-*-*)
3437 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3439 powerpc-*-aix*)
3440 # copied from rs6000-*-* entry
3441 noconfigdirs="$noconfigdirs ${libgcj}"
3443 rs6000-*-aix*)
3444 noconfigdirs="$noconfigdirs ${libgcj}"
3446 ft32-*-*)
3447 noconfigdirs="$noconfigdirs ${libgcj}"
3449 *-*-lynxos*)
3450 noconfigdirs="$noconfigdirs ${libgcj}"
3452 esac
3454 # Disable libgo for some systems where it is known to not work.
3455 # For testing, you can easily override this with --enable-libgo.
3456 if test x$enable_libgo = x; then
3457 case "${target}" in
3458 *-*-darwin*)
3459 # PR 46986
3460 noconfigdirs="$noconfigdirs target-libgo"
3462 *-*-cygwin* | *-*-mingw*)
3463 noconfigdirs="$noconfigdirs target-libgo"
3465 *-*-aix*)
3466 noconfigdirs="$noconfigdirs target-libgo"
3468 esac
3471 # Default libgloss CPU subdirectory.
3472 libgloss_dir="$target_cpu"
3474 case "${target}" in
3475 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3476 libgloss_dir=wince
3478 aarch64*-*-* )
3479 libgloss_dir=aarch64
3481 arm*-*-*)
3482 libgloss_dir=arm
3484 cris-*-* | crisv32-*-*)
3485 libgloss_dir=cris
3487 hppa*-*-*)
3488 libgloss_dir=pa
3490 i[3456789]86-*-*)
3491 libgloss_dir=i386
3493 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3494 libgloss_dir=m68hc11
3496 m68*-*-* | fido-*-*)
3497 libgloss_dir=m68k
3499 mips*-*-*)
3500 libgloss_dir=mips
3502 powerpc*-*-*)
3503 libgloss_dir=rs6000
3505 sparc*-*-*)
3506 libgloss_dir=sparc
3508 esac
3510 # Disable newlib and libgloss for various target OSes.
3511 case "${target}" in
3512 alpha*-dec-osf*)
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3515 i[3456789]86-*-linux*)
3516 # This section makes it possible to build newlib natively on linux.
3517 # If we are using a cross compiler then don't configure newlib.
3518 if test x${is_cross_compiler} != xno ; then
3519 noconfigdirs="$noconfigdirs target-newlib"
3521 noconfigdirs="$noconfigdirs target-libgloss"
3522 # If we are not using a cross compiler, do configure newlib.
3523 # Note however, that newlib will only be configured in this situation
3524 # if the --with-newlib option has been given, because otherwise
3525 # 'target-newlib' will appear in skipdirs.
3527 i[3456789]86-*-rdos*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3530 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 sparc-*-sunos4*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3536 *-*-aix*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 *-*-beos*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 *-*-chorusos)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 *-*-dragonfly*)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 *-*-freebsd*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3554 *-*-lynxos*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 *-*-mingw*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 *-*-netbsd*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 *-*-netware*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 *-*-tpf*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 *-*-uclinux*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 *-*-vxworks*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 esac
3577 case "${target}" in
3578 *-*-chorusos)
3580 powerpc-*-darwin*)
3581 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
3584 i[3456789]86-*-darwin*)
3585 noconfigdirs="$noconfigdirs ld gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3588 x86_64-*-darwin[912]*)
3589 noconfigdirs="$noconfigdirs ld gas gprof"
3590 noconfigdirs="$noconfigdirs sim target-rda"
3592 *-*-darwin*)
3593 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3594 noconfigdirs="$noconfigdirs sim target-rda"
3596 *-*-dragonfly*)
3598 *-*-freebsd*)
3599 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3600 && test -f /usr/local/include/gmp.h; then
3601 with_gmp=/usr/local
3604 *-*-kaos*)
3605 # Remove unsupported stuff on all kaOS configurations.
3606 noconfigdirs="$noconfigdirs target-libgloss"
3608 *-*-netbsd*)
3610 *-*-netware*)
3612 *-*-rtems*)
3613 noconfigdirs="$noconfigdirs target-libgloss"
3614 # this is not caught below because this stanza matches earlier
3615 case $target in
3616 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3617 esac
3619 # The tpf target doesn't support gdb yet.
3620 *-*-tpf*)
3621 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3623 *-*-uclinux*)
3624 noconfigdirs="$noconfigdirs target-rda"
3626 *-*-vxworks*)
3628 alpha*-dec-osf*)
3629 # ld works, but does not support shared libraries.
3630 # gas doesn't generate exception information.
3631 noconfigdirs="$noconfigdirs gas ld"
3633 alpha*-*-*vms*)
3634 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3636 alpha*-*-*)
3637 # newlib is not 64 bit ready
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3641 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3643 arc-*-*|arceb-*-*)
3644 noconfigdirs="$noconfigdirs target-libgloss"
3646 arm-*-pe*)
3647 noconfigdirs="$noconfigdirs target-libgloss"
3649 arm-*-riscix*)
3650 noconfigdirs="$noconfigdirs ld target-libgloss"
3652 avr-*-rtems*)
3654 avr-*-*)
3655 if test x${with_avrlibc} != xno; then
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3659 c4x-*-* | tic4x-*-*)
3660 noconfigdirs="$noconfigdirs target-libgloss"
3662 tic54x-*-*)
3663 noconfigdirs="$noconfigdirs target-libgloss gdb"
3665 d10v-*-*)
3666 noconfigdirs="$noconfigdirs target-libgloss"
3668 d30v-*-*)
3669 noconfigdirs="$noconfigdirs gdb"
3671 fr30-*-elf*)
3672 noconfigdirs="$noconfigdirs gdb"
3674 ft32-*-*)
3675 noconfigdirs="$noconfigdirs target-rda gprof"
3677 moxie-*-*)
3678 noconfigdirs="$noconfigdirs"
3680 h8300*-*-*)
3681 noconfigdirs="$noconfigdirs target-libgloss"
3683 h8500-*-*)
3684 noconfigdirs="$noconfigdirs target-libgloss"
3686 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3688 hppa*64*-*-linux*)
3690 hppa*-*-linux*)
3692 hppa*-*-*elf* | \
3693 hppa*-*-lites* | \
3694 hppa*-*-openbsd* | \
3695 hppa*64*-*-*)
3697 hppa*-hp-hpux11*)
3698 noconfigdirs="$noconfigdirs ld"
3700 hppa*-*-pro*)
3702 hppa*-*-*)
3703 noconfigdirs="$noconfigdirs ld"
3705 i960-*-*)
3706 noconfigdirs="$noconfigdirs gdb"
3708 ia64*-*-elf*)
3709 # No gdb support yet.
3710 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3712 ia64*-**-hpux*)
3713 # No ld support yet.
3714 noconfigdirs="$noconfigdirs libgui itcl ld"
3716 ia64*-*-*vms*)
3717 # No ld support yet.
3718 noconfigdirs="$noconfigdirs libgui itcl ld"
3720 i[3456789]86-w64-mingw*)
3722 i[3456789]86-*-mingw*)
3723 target_configdirs="$target_configdirs target-winsup"
3725 *-*-cygwin*)
3726 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3727 noconfigdirs="$noconfigdirs target-libgloss"
3728 # always build newlib if winsup directory is present.
3729 if test -d "$srcdir/winsup/cygwin"; then
3730 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3731 elif test -d "$srcdir/newlib"; then
3732 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3735 i[3456789]86-*-pe)
3736 noconfigdirs="$noconfigdirs target-libgloss"
3738 i[3456789]86-*-sco3.2v5*)
3739 # The linker does not yet know about weak symbols in COFF,
3740 # and is not configured to handle mixed ELF and COFF.
3741 noconfigdirs="$noconfigdirs ld target-libgloss"
3743 i[3456789]86-*-sco*)
3744 noconfigdirs="$noconfigdirs gprof target-libgloss"
3746 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3747 noconfigdirs="$noconfigdirs target-libgloss"
3749 i[3456789]86-*-sysv4*)
3750 noconfigdirs="$noconfigdirs target-libgloss"
3752 i[3456789]86-*-beos*)
3753 noconfigdirs="$noconfigdirs gdb"
3755 i[3456789]86-*-rdos*)
3756 noconfigdirs="$noconfigdirs gdb"
3758 mmix-*-*)
3759 noconfigdirs="$noconfigdirs gdb"
3761 mt-*-*)
3762 noconfigdirs="$noconfigdirs sim"
3764 powerpc-*-aix*)
3765 # copied from rs6000-*-* entry
3766 noconfigdirs="$noconfigdirs gprof"
3768 powerpc*-*-winnt* | powerpc*-*-pe*)
3769 target_configdirs="$target_configdirs target-winsup"
3770 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3771 # always build newlib.
3772 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3774 # This is temporary until we can link against shared libraries
3775 powerpcle-*-solaris*)
3776 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3778 powerpc-*-beos*)
3779 noconfigdirs="$noconfigdirs gdb"
3781 rs6000-*-lynxos*)
3782 noconfigdirs="$noconfigdirs gprof"
3784 rs6000-*-aix*)
3785 noconfigdirs="$noconfigdirs gprof"
3787 rs6000-*-*)
3788 noconfigdirs="$noconfigdirs gprof"
3790 m68k-apollo-*)
3791 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3793 microblaze*)
3794 noconfigdirs="$noconfigdirs gprof"
3796 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3797 if test x$with_newlib = xyes; then
3798 noconfigdirs="$noconfigdirs gprof"
3801 mips*-*-irix5*)
3802 noconfigdirs="$noconfigdirs gprof target-libgloss"
3804 mips*-*-irix6*)
3805 noconfigdirs="$noconfigdirs gprof target-libgloss"
3807 mips*-*-bsd*)
3808 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3810 mips*-*-linux*)
3812 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3813 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3814 noconfigdirs="$noconfigdirs ld gas gprof"
3816 mips*-*-*)
3817 noconfigdirs="$noconfigdirs gprof"
3819 nds32*-*-*)
3820 noconfigdirs="$noconfigdirs gdb"
3822 or1k*-*-*)
3823 noconfigdirs="$noconfigdirs gdb"
3825 sh-*-* | sh64-*-*)
3826 case "${target}" in
3827 sh*-*-elf)
3830 noconfigdirs="$noconfigdirs target-libgloss" ;;
3831 esac
3833 sparc-*-sunos4*)
3834 if test x${is_cross_compiler} = xno ; then
3835 use_gnu_ld=no
3838 tic6x-*-*)
3839 noconfigdirs="$noconfigdirs sim"
3841 tilepro*-*-* | tilegx*-*-*)
3842 noconfigdirs="$noconfigdirs sim"
3844 v810-*-*)
3845 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3847 vax-*-*)
3848 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3850 esac
3852 # If we aren't building newlib, then don't build libgloss, since libgloss
3853 # depends upon some newlib header files.
3854 case "${noconfigdirs}" in
3855 *target-libgloss*) ;;
3856 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3857 esac
3859 # Work in distributions that contain no compiler tools, like Autoconf.
3860 host_makefile_frag=/dev/null
3861 if test -d ${srcdir}/config ; then
3862 case "${host}" in
3863 i[3456789]86-*-msdosdjgpp*)
3864 host_makefile_frag="config/mh-djgpp"
3866 *-cygwin*)
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3869 $as_echo_n "checking to see if cat works as expected... " >&6; }
3870 echo a >cygwin-cat-check
3871 if test `cat cygwin-cat-check` = a ; then
3872 rm cygwin-cat-check
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874 $as_echo "yes" >&6; }
3875 else
3876 rm cygwin-cat-check
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3879 as_fn_error "The cat command does not ignore carriage return characters.
3880 Please either mount the build directory in binary mode or run the following
3881 commands before running any configure script:
3882 set -o igncr
3883 export SHELLOPTS
3884 " "$LINENO" 5
3887 host_makefile_frag="config/mh-cygwin"
3889 *-mingw*)
3890 host_makefile_frag="config/mh-mingw"
3892 hppa*-hp-hpux10*)
3893 host_makefile_frag="config/mh-pa-hpux10"
3895 hppa*-hp-hpux*)
3896 host_makefile_frag="config/mh-pa"
3898 hppa*-*)
3899 host_makefile_frag="config/mh-pa"
3901 *-*-darwin*)
3902 host_makefile_frag="config/mh-darwin"
3904 powerpc-*-aix*)
3905 host_makefile_frag="config/mh-ppc-aix"
3907 rs6000-*-aix*)
3908 host_makefile_frag="config/mh-ppc-aix"
3910 esac
3913 if test "${build}" != "${host}" ; then
3914 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3915 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3916 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3917 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3918 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3919 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3920 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3921 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3922 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3923 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3924 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3925 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3926 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3927 else
3928 AR_FOR_BUILD="\$(AR)"
3929 AS_FOR_BUILD="\$(AS)"
3930 CC_FOR_BUILD="\$(CC)"
3931 CXX_FOR_BUILD="\$(CXX)"
3932 GCJ_FOR_BUILD="\$(GCJ)"
3933 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3934 GOC_FOR_BUILD="\$(GOC)"
3935 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3936 LD_FOR_BUILD="\$(LD)"
3937 NM_FOR_BUILD="\$(NM)"
3938 RANLIB_FOR_BUILD="\$(RANLIB)"
3939 WINDRES_FOR_BUILD="\$(WINDRES)"
3940 WINDMC_FOR_BUILD="\$(WINDMC)"
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if test "${ac_cv_prog_CC+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3970 done
3971 done
3972 IFS=$as_save_IFS
3976 CC=$ac_cv_prog_CC
3977 if test -n "$CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979 $as_echo "$CC" >&6; }
3980 else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3987 if test -z "$ac_cv_prog_CC"; then
3988 ac_ct_CC=$CC
3989 # Extract the first word of "gcc", so it can be a program name with args.
3990 set dummy gcc; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -n "$ac_ct_CC"; then
3997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_ac_ct_CC="gcc"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4010 done
4011 done
4012 IFS=$as_save_IFS
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4019 $as_echo "$ac_ct_CC" >&6; }
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4025 if test "x$ac_ct_CC" = x; then
4026 CC=""
4027 else
4028 case $cross_compiling:$ac_tool_warned in
4029 yes:)
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032 ac_tool_warned=yes ;;
4033 esac
4034 CC=$ac_ct_CC
4036 else
4037 CC="$ac_cv_prog_CC"
4040 if test -z "$CC"; then
4041 if test -n "$ac_tool_prefix"; then
4042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4043 set dummy ${ac_tool_prefix}cc; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if test "${ac_cv_prog_CC+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059 ac_cv_prog_CC="${ac_tool_prefix}cc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4063 done
4064 done
4065 IFS=$as_save_IFS
4069 CC=$ac_cv_prog_CC
4070 if test -n "$CC"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4072 $as_echo "$CC" >&6; }
4073 else
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4081 if test -z "$CC"; then
4082 # Extract the first word of "cc", so it can be a program name with args.
4083 set dummy cc; ac_word=$2
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if test "${ac_cv_prog_CC+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4091 else
4092 ac_prog_rejected=no
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4101 ac_prog_rejected=yes
4102 continue
4104 ac_cv_prog_CC="cc"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 break 2
4108 done
4109 done
4110 IFS=$as_save_IFS
4112 if test $ac_prog_rejected = yes; then
4113 # We found a bogon in the path, so make sure we never use it.
4114 set dummy $ac_cv_prog_CC
4115 shift
4116 if test $# != 0; then
4117 # We chose a different compiler from the bogus one.
4118 # However, it has the same basename, so the bogon will be chosen
4119 # first if we set CC to just the basename; use the full file name.
4120 shift
4121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4126 CC=$ac_cv_prog_CC
4127 if test -n "$CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 $as_echo "$CC" >&6; }
4130 else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4137 if test -z "$CC"; then
4138 if test -n "$ac_tool_prefix"; then
4139 for ac_prog in cl.exe
4141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if test "${ac_cv_prog_CC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC="$CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4162 done
4163 done
4164 IFS=$as_save_IFS
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4178 test -n "$CC" && break
4179 done
4181 if test -z "$CC"; then
4182 ac_ct_CC=$CC
4183 for ac_prog in cl.exe
4185 # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -n "$ac_ct_CC"; then
4193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_ac_ct_CC="$ac_prog"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4206 done
4207 done
4208 IFS=$as_save_IFS
4212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4213 if test -n "$ac_ct_CC"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4215 $as_echo "$ac_ct_CC" >&6; }
4216 else
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4222 test -n "$ac_ct_CC" && break
4223 done
4225 if test "x$ac_ct_CC" = x; then
4226 CC=""
4227 else
4228 case $cross_compiling:$ac_tool_warned in
4229 yes:)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232 ac_tool_warned=yes ;;
4233 esac
4234 CC=$ac_ct_CC
4241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243 as_fn_error "no acceptable C compiler found in \$PATH
4244 See \`config.log' for more details." "$LINENO" 5; }
4246 # Provide some information about the compiler.
4247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4248 set X $ac_compile
4249 ac_compiler=$2
4250 for ac_option in --version -v -V -qversion; do
4251 { { ac_try="$ac_compiler $ac_option >&5"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4259 ac_status=$?
4260 if test -s conftest.err; then
4261 sed '10a\
4262 ... rest of stderr output deleted ...
4263 10q' conftest.err >conftest.er1
4264 cat conftest.er1 >&5
4265 rm -f conftest.er1 conftest.err
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; }
4269 done
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4275 main ()
4279 return 0;
4281 _ACEOF
4282 ac_clean_files_save=$ac_clean_files
4283 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4284 # Try to create an executable without -o first, disregard a.out.
4285 # It will help us diagnose broken compilers, and finding out an intuition
4286 # of exeext.
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4288 $as_echo_n "checking for C compiler default output file name... " >&6; }
4289 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4291 # The possible output files:
4292 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4294 ac_rmfiles=
4295 for ac_file in $ac_files
4297 case $ac_file in
4298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4300 esac
4301 done
4302 rm -f $ac_rmfiles
4304 if { { ac_try="$ac_link_default"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_link_default") 2>&5
4312 ac_status=$?
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }; then :
4315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4318 # so that the user can short-circuit this test for compilers unknown to
4319 # Autoconf.
4320 for ac_file in $ac_files ''
4322 test -f "$ac_file" || continue
4323 case $ac_file in
4324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4326 [ab].out )
4327 # We found the default executable, but exeext='' is most
4328 # certainly right.
4329 break;;
4330 *.* )
4331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4332 then :; else
4333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4335 # We set ac_cv_exeext here because the later test for it is not
4336 # safe: cross compilers may not add the suffix if given an `-o'
4337 # argument, so we may need to know it at that point already.
4338 # Even if this section looks crufty: it has the advantage of
4339 # actually working.
4340 break;;
4342 break;;
4343 esac
4344 done
4345 test "$ac_cv_exeext" = no && ac_cv_exeext=
4347 else
4348 ac_file=''
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4351 $as_echo "$ac_file" >&6; }
4352 if test -z "$ac_file"; then :
4353 $as_echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4358 { as_fn_set_status 77
4359 as_fn_error "C compiler cannot create executables
4360 See \`config.log' for more details." "$LINENO" 5; }; }
4362 ac_exeext=$ac_cv_exeext
4364 # Check that the compiler produces executables we can run. If not, either
4365 # the compiler is broken, or we cross compile.
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4367 $as_echo_n "checking whether the C compiler works... " >&6; }
4368 # If not cross compiling, check that we can run a simple program.
4369 if test "$cross_compiling" != yes; then
4370 if { ac_try='./$ac_file'
4371 { { case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374 esac
4375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4376 $as_echo "$ac_try_echo"; } >&5
4377 (eval "$ac_try") 2>&5
4378 ac_status=$?
4379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4380 test $ac_status = 0; }; }; then
4381 cross_compiling=no
4382 else
4383 if test "$cross_compiling" = maybe; then
4384 cross_compiling=yes
4385 else
4386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error "cannot run C compiled programs.
4389 If you meant to cross compile, use \`--host'.
4390 See \`config.log' for more details." "$LINENO" 5; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4395 $as_echo "yes" >&6; }
4397 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4398 ac_clean_files=$ac_clean_files_save
4399 # Check that the compiler produces executables we can run. If not, either
4400 # the compiler is broken, or we cross compile.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4402 $as_echo_n "checking whether we are cross compiling... " >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4404 $as_echo "$cross_compiling" >&6; }
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4407 $as_echo_n "checking for suffix of executables... " >&6; }
4408 if { { ac_try="$ac_link"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_link") 2>&5
4416 ac_status=$?
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }; then :
4419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4420 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4421 # work properly (i.e., refer to `conftest.exe'), while it won't with
4422 # `rm'.
4423 for ac_file in conftest.exe conftest conftest.*; do
4424 test -f "$ac_file" || continue
4425 case $ac_file in
4426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4428 break;;
4429 * ) break;;
4430 esac
4431 done
4432 else
4433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error "cannot compute suffix of executables: cannot compile and link
4436 See \`config.log' for more details." "$LINENO" 5; }
4438 rm -f conftest$ac_cv_exeext
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4440 $as_echo "$ac_cv_exeext" >&6; }
4442 rm -f conftest.$ac_ext
4443 EXEEXT=$ac_cv_exeext
4444 ac_exeext=$EXEEXT
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4446 $as_echo_n "checking for suffix of object files... " >&6; }
4447 if test "${ac_cv_objext+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4454 main ()
4458 return 0;
4460 _ACEOF
4461 rm -f conftest.o conftest.obj
4462 if { { ac_try="$ac_compile"
4463 case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4466 esac
4467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4468 $as_echo "$ac_try_echo"; } >&5
4469 (eval "$ac_compile") 2>&5
4470 ac_status=$?
4471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4472 test $ac_status = 0; }; then :
4473 for ac_file in conftest.o conftest.obj conftest.*; do
4474 test -f "$ac_file" || continue;
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4478 break;;
4479 esac
4480 done
4481 else
4482 $as_echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error "cannot compute suffix of object files: cannot compile
4488 See \`config.log' for more details." "$LINENO" 5; }
4490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4493 $as_echo "$ac_cv_objext" >&6; }
4494 OBJEXT=$ac_cv_objext
4495 ac_objext=$OBJEXT
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4497 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4498 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4505 main ()
4507 #ifndef __GNUC__
4508 choke me
4509 #endif
4512 return 0;
4514 _ACEOF
4515 if ac_fn_c_try_compile "$LINENO"; then :
4516 ac_compiler_gnu=yes
4517 else
4518 ac_compiler_gnu=no
4520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4525 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4526 if test $ac_compiler_gnu = yes; then
4527 GCC=yes
4528 else
4529 GCC=
4531 ac_test_CFLAGS=${CFLAGS+set}
4532 ac_save_CFLAGS=$CFLAGS
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4534 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4535 if test "${ac_cv_prog_cc_g+set}" = set; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 ac_save_c_werror_flag=$ac_c_werror_flag
4539 ac_c_werror_flag=yes
4540 ac_cv_prog_cc_g=no
4541 CFLAGS="-g"
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4546 main ()
4550 return 0;
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"; then :
4554 ac_cv_prog_cc_g=yes
4555 else
4556 CFLAGS=""
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4561 main ()
4565 return 0;
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"; then :
4570 else
4571 ac_c_werror_flag=$ac_save_c_werror_flag
4572 CFLAGS="-g"
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4577 main ()
4581 return 0;
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_prog_cc_g=yes
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 ac_c_werror_flag=$ac_save_c_werror_flag
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4595 $as_echo "$ac_cv_prog_cc_g" >&6; }
4596 if test "$ac_test_CFLAGS" = set; then
4597 CFLAGS=$ac_save_CFLAGS
4598 elif test $ac_cv_prog_cc_g = yes; then
4599 if test "$GCC" = yes; then
4600 CFLAGS="-g -O2"
4601 else
4602 CFLAGS="-g"
4604 else
4605 if test "$GCC" = yes; then
4606 CFLAGS="-O2"
4607 else
4608 CFLAGS=
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4612 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4613 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 ac_cv_prog_cc_c89=no
4617 ac_save_CC=$CC
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #include <stdarg.h>
4621 #include <stdio.h>
4622 #include <sys/types.h>
4623 #include <sys/stat.h>
4624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4625 struct buf { int x; };
4626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4627 static char *e (p, i)
4628 char **p;
4629 int i;
4631 return p[i];
4633 static char *f (char * (*g) (char **, int), char **p, ...)
4635 char *s;
4636 va_list v;
4637 va_start (v,p);
4638 s = g (p, va_arg (v,int));
4639 va_end (v);
4640 return s;
4643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4644 function prototypes and stuff, but not '\xHH' hex character constants.
4645 These don't provoke an error unfortunately, instead are silently treated
4646 as 'x'. The following induces an error, until -std is added to get
4647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4648 array size at least. It's necessary to write '\x00'==0 to get something
4649 that's true only with -std. */
4650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4653 inside strings and character constants. */
4654 #define FOO(x) 'x'
4655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4657 int test (int i, double x);
4658 struct s1 {int (*f) (int a);};
4659 struct s2 {int (*f) (double a);};
4660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4661 int argc;
4662 char **argv;
4664 main ()
4666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4668 return 0;
4670 _ACEOF
4671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4674 CC="$ac_save_CC $ac_arg"
4675 if ac_fn_c_try_compile "$LINENO"; then :
4676 ac_cv_prog_cc_c89=$ac_arg
4678 rm -f core conftest.err conftest.$ac_objext
4679 test "x$ac_cv_prog_cc_c89" != "xno" && break
4680 done
4681 rm -f conftest.$ac_ext
4682 CC=$ac_save_CC
4685 # AC_CACHE_VAL
4686 case "x$ac_cv_prog_cc_c89" in
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4689 $as_echo "none needed" >&6; } ;;
4690 xno)
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4692 $as_echo "unsupported" >&6; } ;;
4694 CC="$CC $ac_cv_prog_cc_c89"
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4696 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4697 esac
4698 if test "x$ac_cv_prog_cc_c89" != xno; then :
4702 ac_ext=c
4703 ac_cpp='$CPP $CPPFLAGS'
4704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708 ac_ext=cpp
4709 ac_cpp='$CXXCPP $CPPFLAGS'
4710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4713 if test -z "$CXX"; then
4714 if test -n "$CCC"; then
4715 CXX=$CCC
4716 else
4717 if test -n "$ac_tool_prefix"; then
4718 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_prog_CXX+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 if test -n "$CXX"; then
4728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4747 CXX=$ac_cv_prog_CXX
4748 if test -n "$CXX"; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4750 $as_echo "$CXX" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4757 test -n "$CXX" && break
4758 done
4760 if test -z "$CXX"; then
4761 ac_ct_CXX=$CXX
4762 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4764 # Extract the first word of "$ac_prog", so it can be a program name with args.
4765 set dummy $ac_prog; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -n "$ac_ct_CXX"; then
4772 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_prog_ac_ct_CXX="$ac_prog"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4785 done
4786 done
4787 IFS=$as_save_IFS
4791 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4792 if test -n "$ac_ct_CXX"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4794 $as_echo "$ac_ct_CXX" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4801 test -n "$ac_ct_CXX" && break
4802 done
4804 if test "x$ac_ct_CXX" = x; then
4805 CXX="g++"
4806 else
4807 case $cross_compiling:$ac_tool_warned in
4808 yes:)
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811 ac_tool_warned=yes ;;
4812 esac
4813 CXX=$ac_ct_CXX
4819 # Provide some information about the compiler.
4820 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4821 set X $ac_compile
4822 ac_compiler=$2
4823 for ac_option in --version -v -V -qversion; do
4824 { { ac_try="$ac_compiler $ac_option >&5"
4825 case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828 esac
4829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4830 $as_echo "$ac_try_echo"; } >&5
4831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4832 ac_status=$?
4833 if test -s conftest.err; then
4834 sed '10a\
4835 ... rest of stderr output deleted ...
4836 10q' conftest.err >conftest.er1
4837 cat conftest.er1 >&5
4838 rm -f conftest.er1 conftest.err
4840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841 test $ac_status = 0; }
4842 done
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4845 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4846 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4853 main ()
4855 #ifndef __GNUC__
4856 choke me
4857 #endif
4860 return 0;
4862 _ACEOF
4863 if ac_fn_cxx_try_compile "$LINENO"; then :
4864 ac_compiler_gnu=yes
4865 else
4866 ac_compiler_gnu=no
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4873 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4874 if test $ac_compiler_gnu = yes; then
4875 GXX=yes
4876 else
4877 GXX=
4879 ac_test_CXXFLAGS=${CXXFLAGS+set}
4880 ac_save_CXXFLAGS=$CXXFLAGS
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4882 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4883 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4887 ac_cxx_werror_flag=yes
4888 ac_cv_prog_cxx_g=no
4889 CXXFLAGS="-g"
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4894 main ()
4898 return 0;
4900 _ACEOF
4901 if ac_fn_cxx_try_compile "$LINENO"; then :
4902 ac_cv_prog_cxx_g=yes
4903 else
4904 CXXFLAGS=""
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4909 main ()
4913 return 0;
4915 _ACEOF
4916 if ac_fn_cxx_try_compile "$LINENO"; then :
4918 else
4919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4920 CXXFLAGS="-g"
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4925 main ()
4929 return 0;
4931 _ACEOF
4932 if ac_fn_cxx_try_compile "$LINENO"; then :
4933 ac_cv_prog_cxx_g=yes
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4943 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4944 if test "$ac_test_CXXFLAGS" = set; then
4945 CXXFLAGS=$ac_save_CXXFLAGS
4946 elif test $ac_cv_prog_cxx_g = yes; then
4947 if test "$GXX" = yes; then
4948 CXXFLAGS="-g -O2"
4949 else
4950 CXXFLAGS="-g"
4952 else
4953 if test "$GXX" = yes; then
4954 CXXFLAGS="-O2"
4955 else
4956 CXXFLAGS=
4959 ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 # We must set the default linker to the linker used by gcc for the correct
4967 # operation of libtool. If LD is not defined and we are using gcc, try to
4968 # set the LD default to the ld used by gcc.
4969 if test -z "$LD"; then
4970 if test "$GCC" = yes; then
4971 case $build in
4972 *-*-mingw*)
4973 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4975 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4976 esac
4977 case $gcc_prog_ld in
4978 # Accept absolute paths.
4979 [\\/]* | [A-Za-z]:[\\/]*)
4980 LD="$gcc_prog_ld" ;;
4981 esac
4985 # Check whether -static-libstdc++ -static-libgcc is supported.
4986 have_static_libs=no
4987 if test "$GCC" = yes; then
4988 saved_LDFLAGS="$LDFLAGS"
4990 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4992 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4993 ac_ext=cpp
4994 ac_cpp='$CXXCPP $CPPFLAGS'
4995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5003 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5004 #error -static-libstdc++ not implemented
5005 #endif
5006 int main() {}
5007 _ACEOF
5008 if ac_fn_cxx_try_link "$LINENO"; then :
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5010 $as_echo "yes" >&6; }; have_static_libs=yes
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5015 rm -f core conftest.err conftest.$ac_objext \
5016 conftest$ac_exeext conftest.$ac_ext
5017 ac_ext=c
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024 LDFLAGS="$saved_LDFLAGS"
5030 if test -n "$ac_tool_prefix"; then
5031 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5032 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$GNATBIND"; then
5039 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 GNATBIND=$ac_cv_prog_GNATBIND
5059 if test -n "$GNATBIND"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5061 $as_echo "$GNATBIND" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5069 if test -z "$ac_cv_prog_GNATBIND"; then
5070 ac_ct_GNATBIND=$GNATBIND
5071 # Extract the first word of "gnatbind", so it can be a program name with args.
5072 set dummy gnatbind; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$ac_ct_GNATBIND"; then
5079 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5094 IFS=$as_save_IFS
5098 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5099 if test -n "$ac_ct_GNATBIND"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5101 $as_echo "$ac_ct_GNATBIND" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5107 if test "x$ac_ct_GNATBIND" = x; then
5108 GNATBIND="no"
5109 else
5110 case $cross_compiling:$ac_tool_warned in
5111 yes:)
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5114 ac_tool_warned=yes ;;
5115 esac
5116 GNATBIND=$ac_ct_GNATBIND
5118 else
5119 GNATBIND="$ac_cv_prog_GNATBIND"
5122 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5124 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$GNATMAKE"; then
5131 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5144 done
5145 done
5146 IFS=$as_save_IFS
5150 GNATMAKE=$ac_cv_prog_GNATMAKE
5151 if test -n "$GNATMAKE"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5153 $as_echo "$GNATMAKE" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5161 if test -z "$ac_cv_prog_GNATMAKE"; then
5162 ac_ct_GNATMAKE=$GNATMAKE
5163 # Extract the first word of "gnatmake", so it can be a program name with args.
5164 set dummy gnatmake; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$ac_ct_GNATMAKE"; then
5171 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5186 IFS=$as_save_IFS
5190 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5191 if test -n "$ac_ct_GNATMAKE"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5193 $as_echo "$ac_ct_GNATMAKE" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5199 if test "x$ac_ct_GNATMAKE" = x; then
5200 GNATMAKE="no"
5201 else
5202 case $cross_compiling:$ac_tool_warned in
5203 yes:)
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5207 esac
5208 GNATMAKE=$ac_ct_GNATMAKE
5210 else
5211 GNATMAKE="$ac_cv_prog_GNATMAKE"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5215 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5216 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 cat >conftest.adb <<EOF
5220 procedure conftest is begin null; end conftest;
5222 acx_cv_cc_gcc_supports_ada=no
5223 # There is a bug in old released versions of GCC which causes the
5224 # driver to exit successfully when the appropriate language module
5225 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5226 # Therefore we must check for the error message as well as an
5227 # unsuccessful exit.
5228 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5229 # given a .adb file, but produce no object file. So we must check
5230 # if an object file was really produced to guard against this.
5231 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5232 if test x"$errors" = x && test -f conftest.$ac_objext; then
5233 acx_cv_cc_gcc_supports_ada=yes
5235 rm -f conftest.*
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5238 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5240 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5241 have_gnat=yes
5242 else
5243 have_gnat=no
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5247 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5248 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 echo abfoo >t1
5252 echo cdfoo >t2
5253 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5254 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5255 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5257 else
5258 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5261 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5262 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5264 else
5265 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5268 rm t1 t2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5272 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5273 do_compare="$gcc_cv_prog_cmp_skip"
5277 # Check whether --enable-bootstrap was given.
5278 if test "${enable_bootstrap+set}" = set; then :
5279 enableval=$enable_bootstrap;
5280 else
5281 enable_bootstrap=default
5285 # Issue errors and warnings for invalid/strange bootstrap combinations.
5286 if test -r $srcdir/gcc/configure; then
5287 have_compiler=yes
5288 else
5289 have_compiler=no
5292 case "$have_compiler:$host:$target:$enable_bootstrap" in
5293 *:*:*:no) ;;
5295 # Default behavior. Enable bootstrap if we have a compiler
5296 # and we are in a native configuration.
5297 yes:$build:$build:default)
5298 enable_bootstrap=yes ;;
5300 *:*:*:default)
5301 enable_bootstrap=no ;;
5303 # We have a compiler and we are in a native configuration, bootstrap is ok
5304 yes:$build:$build:yes)
5307 # Other configurations, but we have a compiler. Assume the user knows
5308 # what he's doing.
5309 yes:*:*:yes)
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5311 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5314 # No compiler: if they passed --enable-bootstrap explicitly, fail
5315 no:*:*:yes)
5316 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5318 # Fail if wrong command line
5320 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5322 esac
5324 # Used for setting $lt_cv_objdir
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5326 $as_echo_n "checking for objdir... " >&6; }
5327 if test "${lt_cv_objdir+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 rm -f .libs 2>/dev/null
5331 mkdir .libs 2>/dev/null
5332 if test -d .libs; then
5333 lt_cv_objdir=.libs
5334 else
5335 # MS-DOS does not allow filenames that begin with a dot.
5336 lt_cv_objdir=_libs
5338 rmdir .libs 2>/dev/null
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5341 $as_echo "$lt_cv_objdir" >&6; }
5342 objdir=$lt_cv_objdir
5348 cat >>confdefs.h <<_ACEOF
5349 #define LT_OBJDIR "$lt_cv_objdir/"
5350 _ACEOF
5354 # Check for GMP, MPFR and MPC
5355 gmplibs="-lmpc -lmpfr -lgmp"
5356 gmpinc=
5357 have_gmp=no
5359 # Specify a location for mpc
5360 # check for this first so it ends up on the link line before mpfr.
5362 # Check whether --with-mpc was given.
5363 if test "${with_mpc+set}" = set; then :
5364 withval=$with_mpc;
5368 # Check whether --with-mpc-include was given.
5369 if test "${with_mpc_include+set}" = set; then :
5370 withval=$with_mpc_include;
5374 # Check whether --with-mpc-lib was given.
5375 if test "${with_mpc_lib+set}" = set; then :
5376 withval=$with_mpc_lib;
5380 if test "x$with_mpc" != x; then
5381 gmplibs="-L$with_mpc/lib $gmplibs"
5382 gmpinc="-I$with_mpc/include $gmpinc"
5384 if test "x$with_mpc_include" != x; then
5385 gmpinc="-I$with_mpc_include $gmpinc"
5387 if test "x$with_mpc_lib" != x; then
5388 gmplibs="-L$with_mpc_lib $gmplibs"
5390 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5391 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5392 gmpinc='-I$$s/mpc/src '"$gmpinc"
5393 # Do not test the mpc version. Assume that it is sufficient, since
5394 # it is in the source tree, and the library has not been built yet
5395 # but it would be included on the link line in the version check below
5396 # hence making the test fail.
5397 have_gmp=yes
5400 # Specify a location for mpfr
5401 # check for this first so it ends up on the link line before gmp.
5403 # Check whether --with-mpfr-dir was given.
5404 if test "${with_mpfr_dir+set}" = set; then :
5405 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5406 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5411 # Check whether --with-mpfr was given.
5412 if test "${with_mpfr+set}" = set; then :
5413 withval=$with_mpfr;
5417 # Check whether --with-mpfr-include was given.
5418 if test "${with_mpfr_include+set}" = set; then :
5419 withval=$with_mpfr_include;
5423 # Check whether --with-mpfr-lib was given.
5424 if test "${with_mpfr_lib+set}" = set; then :
5425 withval=$with_mpfr_lib;
5429 if test "x$with_mpfr" != x; then
5430 gmplibs="-L$with_mpfr/lib $gmplibs"
5431 gmpinc="-I$with_mpfr/include $gmpinc"
5433 if test "x$with_mpfr_include" != x; then
5434 gmpinc="-I$with_mpfr_include $gmpinc"
5436 if test "x$with_mpfr_lib" != x; then
5437 gmplibs="-L$with_mpfr_lib $gmplibs"
5439 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5440 # MPFR v3.1.0 moved the sources into a src sub-directory.
5441 if test -d ${srcdir}/mpfr/src; then
5442 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5443 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5444 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5445 else
5446 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5447 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5448 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5450 # Do not test the mpfr version. Assume that it is sufficient, since
5451 # it is in the source tree, and the library has not been built yet
5452 # but it would be included on the link line in the version check below
5453 # hence making the test fail.
5454 have_gmp=yes
5457 # Specify a location for gmp
5459 # Check whether --with-gmp-dir was given.
5460 if test "${with_gmp_dir+set}" = set; then :
5461 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5462 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5467 # Check whether --with-gmp was given.
5468 if test "${with_gmp+set}" = set; then :
5469 withval=$with_gmp;
5473 # Check whether --with-gmp-include was given.
5474 if test "${with_gmp_include+set}" = set; then :
5475 withval=$with_gmp_include;
5479 # Check whether --with-gmp-lib was given.
5480 if test "${with_gmp_lib+set}" = set; then :
5481 withval=$with_gmp_lib;
5486 if test "x$with_gmp" != x; then
5487 gmplibs="-L$with_gmp/lib $gmplibs"
5488 gmpinc="-I$with_gmp/include $gmpinc"
5490 if test "x$with_gmp_include" != x; then
5491 gmpinc="-I$with_gmp_include $gmpinc"
5493 if test "x$with_gmp_lib" != x; then
5494 gmplibs="-L$with_gmp_lib $gmplibs"
5496 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5497 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5498 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5499 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5500 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5501 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5502 # Do not test the gmp version. Assume that it is sufficient, since
5503 # it is in the source tree, and the library has not been built yet
5504 # but it would be included on the link line in the version check below
5505 # hence making the test fail.
5506 have_gmp=yes
5509 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5510 have_gmp=yes
5511 saved_CFLAGS="$CFLAGS"
5512 CFLAGS="$CFLAGS $gmpinc"
5513 # Check for the recommended and required versions of GMP.
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5515 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519 #include "gmp.h"
5521 main ()
5524 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5525 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5526 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5527 choke me
5528 #endif
5531 return 0;
5533 _ACEOF
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #include <gmp.h>
5539 main ()
5542 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5543 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5544 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5545 choke me
5546 #endif
5549 return 0;
5551 _ACEOF
5552 if ac_fn_c_try_compile "$LINENO"; then :
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5554 $as_echo "yes" >&6; }
5555 else
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5557 $as_echo "buggy but acceptable" >&6; }
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }; have_gmp=no
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 # If we have GMP, check the MPFR version.
5567 if test x"$have_gmp" = xyes; then
5568 # Check for the recommended and required versions of MPFR.
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5570 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <gmp.h>
5574 #include <mpfr.h>
5576 main ()
5579 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5580 choke me
5581 #endif
5584 return 0;
5586 _ACEOF
5587 if ac_fn_c_try_compile "$LINENO"; then :
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #include <gmp.h>
5591 #include <mpfr.h>
5593 main ()
5596 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5597 choke me
5598 #endif
5601 return 0;
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606 $as_echo "yes" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5609 $as_echo "buggy but acceptable" >&6; }
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }; have_gmp=no
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 # Check for the MPC header version.
5620 if test x"$have_gmp" = xyes ; then
5621 # Check for the recommended and required versions of MPC.
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5623 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 #include <mpc.h>
5628 main ()
5631 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5632 choke me
5633 #endif
5636 return 0;
5638 _ACEOF
5639 if ac_fn_c_try_compile "$LINENO"; then :
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #include <mpc.h>
5644 main ()
5647 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5648 choke me
5649 #endif
5652 return 0;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5660 $as_echo "buggy but acceptable" >&6; }
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }; have_gmp=no
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 # Now check the MPFR library.
5671 if test x"$have_gmp" = xyes; then
5672 saved_LIBS="$LIBS"
5673 LIBS="$LIBS $gmplibs"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5675 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #include <mpc.h>
5680 main ()
5683 mpfr_t n;
5684 mpfr_t x;
5685 mpc_t c;
5686 int t;
5687 mpfr_init (n);
5688 mpfr_init (x);
5689 mpfr_atan2 (n, n, x, GMP_RNDN);
5690 mpfr_erfc (n, x, GMP_RNDN);
5691 mpfr_subnormalize (x, t, GMP_RNDN);
5692 mpfr_clear(n);
5693 mpfr_clear(x);
5694 mpc_init2 (c, 53);
5695 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5696 mpc_cosh (c, c, MPC_RNDNN);
5697 mpc_pow (c, c, c, MPC_RNDNN);
5698 mpc_acosh (c, c, MPC_RNDNN);
5699 mpc_clear (c);
5702 return 0;
5704 _ACEOF
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5707 $as_echo "yes" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }; have_gmp=no
5712 rm -f core conftest.err conftest.$ac_objext \
5713 conftest$ac_exeext conftest.$ac_ext
5714 LIBS="$saved_LIBS"
5717 CFLAGS="$saved_CFLAGS"
5719 # The library versions listed in the error message below should match
5720 # the HARD-minimums enforced above.
5721 if test x$have_gmp != xyes; then
5722 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5723 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5724 their locations. Source code for these libraries can be found at
5725 their respective hosting sites as well as at
5726 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5727 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5728 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5729 make sure that you have installed both the libraries and the header
5730 files. They may be located in separate packages." "$LINENO" 5
5734 # Flags needed for both GMP, MPFR and/or MPC.
5742 # Allow host libstdc++ to be specified for static linking with PPL.
5744 # Check whether --with-host-libstdcxx was given.
5745 if test "${with_host_libstdcxx+set}" = set; then :
5746 withval=$with_host_libstdcxx;
5750 case $with_host_libstdcxx in
5751 no|yes)
5752 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5754 esac
5756 # Libraries to use for stage1 or when not bootstrapping.
5758 # Check whether --with-stage1-libs was given.
5759 if test "${with_stage1_libs+set}" = set; then :
5760 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5761 stage1_libs=
5762 else
5763 stage1_libs=$withval
5765 else
5766 stage1_libs=$with_host_libstdcxx
5771 # Linker flags to use for stage1 or when not bootstrapping.
5773 # Check whether --with-stage1-ldflags was given.
5774 if test "${with_stage1_ldflags+set}" = set; then :
5775 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5776 stage1_ldflags=
5777 else
5778 stage1_ldflags=$withval
5780 else
5781 stage1_ldflags=
5782 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5783 # if supported. But if the user explicitly specified the libraries to use,
5784 # trust that they are doing what they want.
5785 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5786 stage1_ldflags="-static-libstdc++ -static-libgcc"
5792 # Libraries to use for stage2 and later builds. This defaults to the
5793 # argument passed to --with-host-libstdcxx.
5795 # Check whether --with-boot-libs was given.
5796 if test "${with_boot_libs+set}" = set; then :
5797 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5798 poststage1_libs=
5799 else
5800 poststage1_libs=$withval
5802 else
5803 poststage1_libs=$with_host_libstdcxx
5808 # Linker flags to use for stage2 and later builds.
5810 # Check whether --with-boot-ldflags was given.
5811 if test "${with_boot_ldflags+set}" = set; then :
5812 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5813 poststage1_ldflags=
5814 else
5815 poststage1_ldflags=$withval
5817 else
5818 poststage1_ldflags=
5819 # In stages 2 and 3, default to linking libstdc++ and libgcc
5820 # statically. But if the user explicitly specified the libraries to
5821 # use, trust that they are doing what they want.
5822 if test "$poststage1_libs" = ""; then
5823 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5829 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5830 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5831 # config/isl.m4
5834 # Check whether --with-cloog was given.
5835 if test "${with_cloog+set}" = set; then :
5836 withval=$with_cloog;
5840 # Check whether --with-isl was given.
5841 if test "${with_isl+set}" = set; then :
5842 withval=$with_isl;
5846 # Treat either --without-cloog or --without-isl as a request to disable
5847 # GRAPHITE support and skip all following checks.
5848 if test "x$with_isl" != "xno" &&
5849 test "x$with_cloog" != "xno"; then
5850 # Check for ISL
5853 # Check whether --with-isl-include was given.
5854 if test "${with_isl_include+set}" = set; then :
5855 withval=$with_isl_include;
5859 # Check whether --with-isl-lib was given.
5860 if test "${with_isl_lib+set}" = set; then :
5861 withval=$with_isl_lib;
5865 # Check whether --enable-isl-version-check was given.
5866 if test "${enable_isl_version_check+set}" = set; then :
5867 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5868 else
5869 ENABLE_ISL_CHECK=yes
5873 # Initialize isllibs and islinc.
5874 case $with_isl in
5876 isllibs=
5877 islinc=
5879 "" | yes)
5882 isllibs="-L$with_isl/lib"
5883 islinc="-I$with_isl/include"
5885 esac
5886 if test "x${with_isl_include}" != x ; then
5887 islinc="-I$with_isl_include"
5889 if test "x${with_isl_lib}" != x; then
5890 isllibs="-L$with_isl_lib"
5892 if test "x${islinc}" = x && test "x${isllibs}" = x \
5893 && test -d ${srcdir}/isl; then
5894 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5895 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5896 ENABLE_ISL_CHECK=no
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5898 $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
5903 if test "${ENABLE_ISL_CHECK}" = yes ; then
5904 _isl_saved_CFLAGS=$CFLAGS
5905 _isl_saved_LDFLAGS=$LDFLAGS
5906 _isl_saved_LIBS=$LIBS
5908 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5909 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5910 LIBS="${_isl_saved_LIBS} -lisl"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5913 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5914 if test "$cross_compiling" = yes; then :
5915 gcc_cv_isl=yes
5916 else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 #include <isl/version.h>
5920 #include <string.h>
5922 main ()
5924 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5925 return 1;
5928 return 0;
5930 _ACEOF
5931 if ac_fn_c_try_run "$LINENO"; then :
5932 gcc_cv_isl=yes
5933 else
5934 gcc_cv_isl=no
5936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5937 conftest.$ac_objext conftest.beam conftest.$ac_ext
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5941 $as_echo "$gcc_cv_isl" >&6; }
5943 CFLAGS=$_isl_saved_CFLAGS
5944 LDFLAGS=$_isl_saved_LDFLAGS
5945 LIBS=$_isl_saved_LIBS
5949 if test "${gcc_cv_isl}" = no ; then
5951 if test "${ENABLE_ISL_CHECK}" = yes ; then
5952 _isl_saved_CFLAGS=$CFLAGS
5953 _isl_saved_LDFLAGS=$LDFLAGS
5954 _isl_saved_LIBS=$LIBS
5956 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5957 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5958 LIBS="${_isl_saved_LIBS} -lisl"
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5961 $as_echo_n "checking for version 0.11 of ISL... " >&6; }
5962 if test "$cross_compiling" = yes; then :
5963 gcc_cv_isl=yes
5964 else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include <isl/version.h>
5968 #include <string.h>
5970 main ()
5972 if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5973 return 1;
5976 return 0;
5978 _ACEOF
5979 if ac_fn_c_try_run "$LINENO"; then :
5980 gcc_cv_isl=yes
5981 else
5982 gcc_cv_isl=no
5984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5985 conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5989 $as_echo "$gcc_cv_isl" >&6; }
5991 CFLAGS=$_isl_saved_CFLAGS
5992 LDFLAGS=$_isl_saved_LDFLAGS
5993 LIBS=$_isl_saved_LIBS
5997 if test "${gcc_cv_isl}" = no ; then
5999 if test "${ENABLE_ISL_CHECK}" = yes ; then
6000 _isl_saved_CFLAGS=$CFLAGS
6001 _isl_saved_LDFLAGS=$LDFLAGS
6002 _isl_saved_LIBS=$LIBS
6004 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
6005 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
6006 LIBS="${_isl_saved_LIBS} -lisl"
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
6009 $as_echo_n "checking for version 0.12 of ISL... " >&6; }
6010 if test "$cross_compiling" = yes; then :
6011 gcc_cv_isl=yes
6012 else
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015 #include <isl/version.h>
6016 #include <string.h>
6018 main ()
6020 if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
6021 return 1;
6024 return 0;
6026 _ACEOF
6027 if ac_fn_c_try_run "$LINENO"; then :
6028 gcc_cv_isl=yes
6029 else
6030 gcc_cv_isl=no
6032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6033 conftest.$ac_objext conftest.beam conftest.$ac_ext
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6037 $as_echo "$gcc_cv_isl" >&6; }
6039 CFLAGS=$_isl_saved_CFLAGS
6040 LDFLAGS=$_isl_saved_LDFLAGS
6041 LIBS=$_isl_saved_LIBS
6051 if test "x${with_isl}" = xno; then
6052 graphite_requested=no
6053 elif test "x${with_isl}" != x \
6054 || test "x${with_isl_include}" != x \
6055 || test "x${with_isl_lib}" != x ; then
6056 graphite_requested=yes
6057 else
6058 graphite_requested=no
6063 if test "${gcc_cv_isl}" = no ; then
6064 isllibs=
6065 islinc=
6068 if test "${graphite_requested}" = yes \
6069 && test "x${isllibs}" = x \
6070 && test "x${islinc}" = x ; then
6072 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6077 if test "x$gcc_cv_isl" != "xno"; then
6078 # Check for CLOOG
6081 # Check whether --with-cloog-include was given.
6082 if test "${with_cloog_include+set}" = set; then :
6083 withval=$with_cloog_include;
6087 # Check whether --with-cloog-lib was given.
6088 if test "${with_cloog_lib+set}" = set; then :
6089 withval=$with_cloog_lib;
6093 # Check whether --enable-cloog-version-check was given.
6094 if test "${enable_cloog_version_check+set}" = set; then :
6095 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6096 else
6097 ENABLE_CLOOG_CHECK=yes
6101 # Initialize clooglibs and clooginc.
6102 case $with_cloog in
6104 clooglibs=
6105 clooginc=
6107 "" | yes)
6110 clooglibs="-L$with_cloog/lib"
6111 clooginc="-I$with_cloog/include"
6113 esac
6114 if test "x${with_cloog_include}" != x ; then
6115 clooginc="-I$with_cloog_include"
6117 if test "x${with_cloog_lib}" != x; then
6118 clooglibs="-L$with_cloog_lib"
6120 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
6121 && test -d ${srcdir}/cloog; then
6122 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6123 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
6124 ENABLE_CLOOG_CHECK=no
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6126 $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
6129 clooginc="-DCLOOG_INT_GMP ${clooginc}"
6130 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
6136 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6137 _cloog_saved_CFLAGS=$CFLAGS
6138 _cloog_saved_LDFLAGS=$LDFLAGS
6140 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6141 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6144 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 #include "cloog/version.h"
6149 main ()
6151 #if CLOOG_VERSION_MAJOR != 0 \
6152 || CLOOG_VERSION_MINOR != 17 \
6153 || CLOOG_VERSION_REVISION < 0
6154 choke me
6155 #endif
6157 return 0;
6159 _ACEOF
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 gcc_cv_cloog=yes
6162 else
6163 gcc_cv_cloog=no
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6167 $as_echo "$gcc_cv_cloog" >&6; }
6169 CFLAGS=$_cloog_saved_CFLAGS
6170 LDFLAGS=$_cloog_saved_LDFLAGS
6174 if test "${gcc_cv_cloog}" = no ; then
6178 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6179 _cloog_saved_CFLAGS=$CFLAGS
6180 _cloog_saved_LDFLAGS=$LDFLAGS
6182 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6183 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6186 $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 #include "cloog/version.h"
6191 main ()
6193 #if CLOOG_VERSION_MAJOR != 0 \
6194 || CLOOG_VERSION_MINOR != 18 \
6195 || CLOOG_VERSION_REVISION < 0
6196 choke me
6197 #endif
6199 return 0;
6201 _ACEOF
6202 if ac_fn_c_try_compile "$LINENO"; then :
6203 gcc_cv_cloog=yes
6204 else
6205 gcc_cv_cloog=no
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6209 $as_echo "$gcc_cv_cloog" >&6; }
6211 CFLAGS=$_cloog_saved_CFLAGS
6212 LDFLAGS=$_cloog_saved_LDFLAGS
6222 if test "x${with_cloog}" = xno; then
6223 graphite_requested=no
6224 elif test "x${with_cloog}" != x \
6225 || test "x${with_cloog_include}" != x \
6226 || test "x${with_cloog_lib}" != x ; then
6227 graphite_requested=yes
6228 else
6229 graphite_requested=no
6234 if test "${gcc_cv_cloog}" = no ; then
6235 clooglibs=
6236 clooginc=
6239 if test "${graphite_requested}" = yes \
6240 && test "x${clooglibs}" = x \
6241 && test "x${clooginc}" = x ; then
6243 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6250 # If either the ISL or the CLooG check failed, disable builds of in-tree
6251 # variants of both
6252 if test "x$with_isl" = xno ||
6253 test "x$with_cloog" = xno ||
6254 test "x$gcc_cv_cloog" = xno ||
6255 test "x$gcc_cv_isl" = xno; then
6256 noconfigdirs="$noconfigdirs cloog isl"
6257 islinc=
6258 clooginc=
6259 clooglibs=
6267 # Check for LTO support.
6268 # Check whether --enable-lto was given.
6269 if test "${enable_lto+set}" = set; then :
6270 enableval=$enable_lto; enable_lto=$enableval
6271 else
6272 enable_lto=yes; default_enable_lto=yes
6279 target_elf=no
6280 case $target in
6281 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6282 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6283 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6284 target_elf=no
6287 target_elf=yes
6289 esac
6291 if test $target_elf = yes; then :
6292 # ELF platforms build the lto-plugin always.
6293 build_lto_plugin=yes
6295 else
6296 if test x"$default_enable_lto" = x"yes" ; then
6297 case $target in
6298 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6299 # On other non-ELF platforms, LTO has yet to be validated.
6300 *) enable_lto=no ;;
6301 esac
6302 else
6303 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6304 # It would also be nice to check the binutils support, but we don't
6305 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6306 # warn during gcc/ subconfigure; unless you're bootstrapping with
6307 # -flto it won't be needed until after installation anyway.
6308 case $target in
6309 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6310 *) if test x"$enable_lto" = x"yes"; then
6311 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6314 esac
6316 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6317 # Build it unless LTO was explicitly disabled.
6318 case $target in
6319 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6320 *) ;;
6321 esac
6327 # By default, C and C++ are the only stage 1 languages.
6328 stage1_languages=,c,
6330 # Target libraries that we bootstrap.
6331 bootstrap_target_libs=,target-libgcc,
6333 # Figure out what language subdirectories are present.
6334 # Look if the user specified --enable-languages="..."; if not, use
6335 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6336 # go away some day.
6337 # NB: embedded tabs in this IF block -- do not untabify
6338 if test -d ${srcdir}/gcc; then
6339 if test x"${enable_languages+set}" != xset; then
6340 if test x"${LANGUAGES+set}" = xset; then
6341 enable_languages="${LANGUAGES}"
6342 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6343 else
6344 enable_languages=all
6346 else
6347 if test x"${enable_languages}" = x ||
6348 test x"${enable_languages}" = xyes;
6349 then
6350 echo configure.in: --enable-languages needs at least one language argument 1>&2
6351 exit 1
6354 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6356 # 'f95' is the old name for the 'fortran' language. We issue a warning
6357 # and make the substitution.
6358 case ,${enable_languages}, in
6359 *,f95,*)
6360 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6361 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6363 esac
6365 # If bootstrapping, C++ must be enabled.
6366 case ",$enable_languages,:$enable_bootstrap" in
6367 *,c++,*:*) ;;
6368 *:yes)
6369 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6370 enable_languages="${enable_languages},c++"
6371 else
6372 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6375 esac
6377 # First scan to see if an enabled language requires some other language.
6378 # We assume that a given config-lang.in will list all the language
6379 # front ends it requires, even if some are required indirectly.
6380 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6381 case ${lang_frag} in
6382 ..) ;;
6383 # The odd quoting in the next line works around
6384 # an apparent bug in bash 1.12 on linux.
6385 ${srcdir}/gcc/[*]/config-lang.in) ;;
6387 # From the config-lang.in, get $language, $lang_requires, and
6388 # $lang_requires_boot_languages.
6389 language=
6390 lang_requires=
6391 lang_requires_boot_languages=
6392 . ${lang_frag}
6393 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6394 case ,${enable_languages}, in
6395 *,$other,*) ;;
6396 *,all,*) ;;
6397 *,$language,*)
6398 echo " \`$other' language required by \`$language'; enabling" 1>&2
6399 enable_languages="${enable_languages},${other}"
6401 esac
6402 done
6403 for other in ${lang_requires_boot_languages} ; do
6404 if test "$other" != "c"; then
6405 case ,${enable_stage1_languages}, in
6406 *,$other,*) ;;
6407 *,all,*) ;;
6409 case ,${enable_languages}, in
6410 *,$language,*)
6411 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6412 enable_stage1_languages="$enable_stage1_languages,${other}"
6414 esac
6416 esac
6418 done
6420 esac
6421 done
6423 new_enable_languages=,c,
6425 # If LTO is enabled, add the LTO front end.
6426 extra_host_libiberty_configure_flags=
6427 if test "$enable_lto" = "yes" ; then
6428 case ,${enable_languages}, in
6429 *,lto,*) ;;
6430 *) enable_languages="${enable_languages},lto" ;;
6431 esac
6432 if test "${build_lto_plugin}" = "yes" ; then
6433 configdirs="$configdirs lto-plugin"
6434 extra_host_libiberty_configure_flags=--enable-shared
6439 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6440 potential_languages=,c,
6442 enabled_target_libs=
6443 disabled_target_libs=
6445 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6446 case ${lang_frag} in
6447 ..) ;;
6448 # The odd quoting in the next line works around
6449 # an apparent bug in bash 1.12 on linux.
6450 ${srcdir}/gcc/[*]/config-lang.in) ;;
6452 # From the config-lang.in, get $language, $target_libs,
6453 # $lang_dirs, $boot_language, and $build_by_default
6454 language=
6455 target_libs=
6456 lang_dirs=
6457 subdir_requires=
6458 boot_language=no
6459 build_by_default=yes
6460 . ${lang_frag}
6461 if test x${language} = x; then
6462 echo "${lang_frag} doesn't set \$language." 1>&2
6463 exit 1
6466 if test "$language" = "c++"; then
6467 boot_language=yes
6470 add_this_lang=no
6471 case ,${enable_languages}, in
6472 *,${language},*)
6473 # Language was explicitly selected; include it
6474 # unless it is C, which is enabled by default.
6475 if test "$language" != "c"; then
6476 add_this_lang=yes
6479 *,all,*)
6480 # 'all' was selected, select it if it is a default language
6481 if test "$language" != "c"; then
6482 add_this_lang=${build_by_default}
6485 esac
6487 # Disable languages that need other directories if these aren't available.
6488 for i in $subdir_requires; do
6489 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6490 case ,${enable_languages}, in
6491 *,${language},*)
6492 # Specifically requested language; tell them.
6493 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6496 # Silently disable.
6497 add_this_lang=unsupported
6499 esac
6500 done
6502 # Disable Ada if no preexisting GNAT is available.
6503 case ,${enable_languages},:${language}:${have_gnat} in
6504 *,${language},*:ada:no)
6505 # Specifically requested language; tell them.
6506 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6508 *:ada:no)
6509 # Silently disable.
6510 add_this_lang=unsupported
6512 esac
6514 # Disable a language that is unsupported by the target.
6515 case " $unsupported_languages " in
6516 *" $language "*)
6517 add_this_lang=unsupported
6519 esac
6521 case $add_this_lang in
6522 unsupported)
6523 # Remove language-dependent dirs.
6524 disabled_target_libs="$disabled_target_libs $target_libs"
6525 noconfigdirs="$noconfigdirs $lang_dirs"
6528 # Remove language-dependent dirs; still show language as supported.
6529 disabled_target_libs="$disabled_target_libs $target_libs"
6530 noconfigdirs="$noconfigdirs $lang_dirs"
6531 potential_languages="${potential_languages}${language},"
6533 yes)
6534 new_enable_languages="${new_enable_languages}${language},"
6535 potential_languages="${potential_languages}${language},"
6536 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6537 enabled_target_libs="$enabled_target_libs $target_libs"
6538 case "${boot_language}:,$enable_stage1_languages," in
6539 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6540 # Add to (comma-separated) list of stage 1 languages.
6541 case ",$stage1_languages," in
6542 *,$language,* | ,yes, | ,all,) ;;
6543 *) stage1_languages="${stage1_languages}${language}," ;;
6544 esac
6545 # We need to bootstrap any supporting libraries.
6546 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6548 esac
6550 esac
6552 esac
6553 done
6555 # Add target libraries which are only needed for disabled languages
6556 # to noconfigdirs.
6557 if test -n "$disabled_target_libs"; then
6558 for dir in $disabled_target_libs; do
6559 case " $enabled_target_libs " in
6560 *" ${dir} "*) ;;
6561 *) noconfigdirs="$noconfigdirs $dir" ;;
6562 esac
6563 done
6566 # Check whether --enable-stage1-languages was given.
6567 if test "${enable_stage1_languages+set}" = set; then :
6568 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6569 ,no,|,,)
6570 # Set it to something that will have no effect in the loop below
6571 enable_stage1_languages=c ;;
6572 ,yes,)
6573 enable_stage1_languages=`echo $new_enable_languages | \
6574 sed -e "s/^,//" -e "s/,$//" ` ;;
6575 *,all,*)
6576 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6577 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6578 esac
6580 # Add "good" languages from enable_stage1_languages to stage1_languages,
6581 # while "bad" languages go in missing_languages. Leave no duplicates.
6582 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6583 case $potential_languages in
6584 *,$i,*)
6585 case $stage1_languages in
6586 *,$i,*) ;;
6587 *) stage1_languages="$stage1_languages$i," ;;
6588 esac ;;
6590 case $missing_languages in
6591 *,$i,*) ;;
6592 *) missing_languages="$missing_languages$i," ;;
6593 esac ;;
6594 esac
6595 done
6599 # Remove leading/trailing commas that were added for simplicity
6600 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6601 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6602 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6603 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6605 if test "x$missing_languages" != x; then
6606 as_fn_error "
6607 The following requested languages could not be built: ${missing_languages}
6608 Supported languages are: ${potential_languages}" "$LINENO" 5
6610 if test "x$new_enable_languages" != "x$enable_languages"; then
6611 echo The following languages will be built: ${new_enable_languages}
6612 enable_languages="$new_enable_languages"
6616 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6619 # Handle --disable-<component> generically.
6620 for dir in $configdirs $build_configdirs $target_configdirs ; do
6621 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6622 varname=`echo $dirname | sed -e s/+/_/g`
6623 if eval test x\${enable_${varname}} "=" xno ; then
6624 noconfigdirs="$noconfigdirs $dir"
6626 done
6628 # Check for Boehm's garbage collector
6629 # Check whether --enable-objc-gc was given.
6630 if test "${enable_objc_gc+set}" = set; then :
6631 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6632 *,objc,*:*:yes:*target-boehm-gc*)
6633 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6635 esac
6639 # Make sure we only build Boehm's garbage collector if required.
6640 case ,${enable_languages},:${enable_objc_gc} in
6641 *,objc,*:yes)
6642 # Keep target-boehm-gc if requested for Objective-C.
6645 # Otherwise remove target-boehm-gc depending on target-libjava.
6646 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6647 noconfigdirs="$noconfigdirs target-boehm-gc"
6650 esac
6652 # Disable libitm, libsanitizer, libvtv if we're not building C++
6653 case ,${enable_languages}, in
6654 *,c++,*) ;;
6656 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv"
6658 esac
6660 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6661 # $build_configdirs and $target_configdirs.
6662 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6664 notsupp=""
6665 for dir in . $skipdirs $noconfigdirs ; do
6666 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6667 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6668 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6669 if test -r $srcdir/$dirname/configure ; then
6670 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6671 true
6672 else
6673 notsupp="$notsupp $dir"
6677 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6678 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6679 if test -r $srcdir/$dirname/configure ; then
6680 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6681 true
6682 else
6683 notsupp="$notsupp $dir"
6687 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6688 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6689 if test -r $srcdir/$dirname/configure ; then
6690 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6691 true
6692 else
6693 notsupp="$notsupp $dir"
6697 done
6699 # Quietly strip out all directories which aren't configurable in this tree.
6700 # This relies on all configurable subdirectories being autoconfiscated, which
6701 # is now the case.
6702 build_configdirs_all="$build_configdirs"
6703 build_configdirs=
6704 for i in ${build_configdirs_all} ; do
6705 j=`echo $i | sed -e s/build-//g`
6706 if test -f ${srcdir}/$j/configure ; then
6707 build_configdirs="${build_configdirs} $i"
6709 done
6711 configdirs_all="$configdirs"
6712 configdirs=
6713 for i in ${configdirs_all} ; do
6714 if test -f ${srcdir}/$i/configure ; then
6715 configdirs="${configdirs} $i"
6717 done
6719 target_configdirs_all="$target_configdirs"
6720 target_configdirs=
6721 for i in ${target_configdirs_all} ; do
6722 j=`echo $i | sed -e s/target-//g`
6723 if test -f ${srcdir}/$j/configure ; then
6724 target_configdirs="${target_configdirs} $i"
6726 done
6728 # Produce a warning message for the subdirs we can't configure.
6729 # This isn't especially interesting in the Cygnus tree, but in the individual
6730 # FSF releases, it's important to let people know when their machine isn't
6731 # supported by the one or two programs in a package.
6733 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6734 # If $appdirs is non-empty, at least one of those directories must still
6735 # be configured, or we error out. (E.g., if the gas release supports a
6736 # specified target in some subdirs but not the gas subdir, we shouldn't
6737 # pretend that all is well.)
6738 if test -n "$appdirs" ; then
6739 for dir in $appdirs ; do
6740 if test -r $dir/Makefile.in ; then
6741 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6742 appdirs=""
6743 break
6745 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6746 appdirs=""
6747 break
6750 done
6751 if test -n "$appdirs" ; then
6752 echo "*** This configuration is not supported by this package." 1>&2
6753 exit 1
6756 # Okay, some application will build, or we don't care to check. Still
6757 # notify of subdirs not getting built.
6758 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6759 echo " ${notsupp}" 1>&2
6760 echo " (Any other directories should still work fine.)" 1>&2
6763 case "$host" in
6764 *msdosdjgpp*)
6765 enable_gdbtk=no ;;
6766 esac
6768 # To find our prefix, in gcc_cv_tool_prefix.
6770 # The user is always right.
6771 if test "${PATH_SEPARATOR+set}" != set; then
6772 echo "#! /bin/sh" >conf$$.sh
6773 echo "exit 0" >>conf$$.sh
6774 chmod +x conf$$.sh
6775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6776 PATH_SEPARATOR=';'
6777 else
6778 PATH_SEPARATOR=:
6780 rm -f conf$$.sh
6785 if test "x$exec_prefix" = xNONE; then
6786 if test "x$prefix" = xNONE; then
6787 gcc_cv_tool_prefix=$ac_default_prefix
6788 else
6789 gcc_cv_tool_prefix=$prefix
6791 else
6792 gcc_cv_tool_prefix=$exec_prefix
6795 # If there is no compiler in the tree, use the PATH only. In any
6796 # case, if there is no compiler in the tree nobody should use
6797 # AS_FOR_TARGET and LD_FOR_TARGET.
6798 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6799 gcc_version=`cat $srcdir/gcc/BASE-VER`
6800 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6801 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6802 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6803 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6804 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6805 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6806 else
6807 gcc_cv_tool_dirs=
6810 if test x$build = x$target && test -n "$md_exec_prefix"; then
6811 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6816 copy_dirs=
6819 # Check whether --with-build-sysroot was given.
6820 if test "${with_build_sysroot+set}" = set; then :
6821 withval=$with_build_sysroot; if test x"$withval" != x ; then
6822 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6824 else
6825 SYSROOT_CFLAGS_FOR_TARGET=
6831 # Check whether --with-debug-prefix-map was given.
6832 if test "${with_debug_prefix_map+set}" = set; then :
6833 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6834 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6835 for debug_map in $withval; do
6836 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6837 done
6839 else
6840 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6845 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6846 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6847 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6848 # We want to ensure that TARGET libraries (which we know are built with
6849 # gcc) are built with "-O2 -g", so include those options when setting
6850 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6851 if test "x$CFLAGS_FOR_TARGET" = x; then
6852 CFLAGS_FOR_TARGET=$CFLAGS
6853 case " $CFLAGS " in
6854 *" -O2 "*) ;;
6855 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6856 esac
6857 case " $CFLAGS " in
6858 *" -g "* | *" -g3 "*) ;;
6859 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6860 esac
6864 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6865 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6866 case " $CXXFLAGS " in
6867 *" -O2 "*) ;;
6868 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6869 esac
6870 case " $CXXFLAGS " in
6871 *" -g "* | *" -g3 "*) ;;
6872 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6873 esac
6879 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6880 # the named directory are copied to $(tooldir)/sys-include.
6881 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6882 if test x${is_cross_compiler} = xno ; then
6883 echo 1>&2 '***' --with-headers is only supported when cross compiling
6884 exit 1
6886 if test x"${with_headers}" != xyes ; then
6887 x=${gcc_cv_tool_prefix}
6888 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6892 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6893 # the name directories are copied to $(tooldir)/lib. Multiple directories
6894 # are permitted.
6895 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6896 if test x${is_cross_compiler} = xno ; then
6897 echo 1>&2 '***' --with-libs is only supported when cross compiling
6898 exit 1
6900 if test x"${with_libs}" != xyes ; then
6901 # Copy the libraries in reverse order, so that files in the first named
6902 # library override files in subsequent libraries.
6903 x=${gcc_cv_tool_prefix}
6904 for l in ${with_libs}; do
6905 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6906 done
6910 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6912 # This is done by determining whether or not the appropriate directory
6913 # is available, and by checking whether or not specific configurations
6914 # have requested that this magic not happen.
6916 # The command line options always override the explicit settings in
6917 # configure.in, and the settings in configure.in override this magic.
6919 # If the default for a toolchain is to use GNU as and ld, and you don't
6920 # want to do that, then you should use the --without-gnu-as and
6921 # --without-gnu-ld options for the configure script. Similarly, if
6922 # the default is to use the included zlib and you don't want to do that,
6923 # you should use the --with-system-zlib option for the configure script.
6925 if test x${use_gnu_as} = x &&
6926 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6927 with_gnu_as=yes
6928 extra_host_args="$extra_host_args --with-gnu-as"
6931 if test x${use_gnu_ld} = x &&
6932 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6933 with_gnu_ld=yes
6934 extra_host_args="$extra_host_args --with-gnu-ld"
6937 if test x${use_included_zlib} = x &&
6938 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6940 else
6941 with_system_zlib=yes
6942 extra_host_args="$extra_host_args --with-system-zlib"
6945 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6946 # can detect this case.
6948 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6949 with_newlib=yes
6950 extra_host_args="$extra_host_args --with-newlib"
6953 # Handle ${copy_dirs}
6954 set fnord ${copy_dirs}
6955 shift
6956 while test $# != 0 ; do
6957 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6959 else
6960 echo Copying $1 to $2
6962 # Use the install script to create the directory and all required
6963 # parent directories.
6964 if test -d $2 ; then
6966 else
6967 echo >config.temp
6968 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6971 # Copy the directory, assuming we have tar.
6972 # FIXME: Should we use B in the second tar? Not all systems support it.
6973 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6975 # It is the responsibility of the user to correctly adjust all
6976 # symlinks. If somebody can figure out how to handle them correctly
6977 # here, feel free to add the code.
6979 echo $1 > $2/COPIED
6981 shift; shift
6982 done
6984 # Determine a target-dependent exec_prefix that the installed
6985 # gcc will search in. Keep this list sorted by triplet, with
6986 # the *-*-osname triplets last.
6987 md_exec_prefix=
6988 case "${target}" in
6989 i[34567]86-pc-msdosdjgpp*)
6990 md_exec_prefix=/dev/env/DJDIR/bin
6992 *-*-hpux* | \
6993 *-*-nto-qnx* | \
6994 *-*-solaris2*)
6995 md_exec_prefix=/usr/ccs/bin
6997 esac
6999 extra_arflags_for_target=
7000 extra_nmflags_for_target=
7001 extra_ranlibflags_for_target=
7002 target_makefile_frag=/dev/null
7003 case "${target}" in
7004 spu-*-*)
7005 target_makefile_frag="config/mt-spu"
7007 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
7008 target_makefile_frag="config/mt-sde"
7010 mipsisa*-*-elfoabi*)
7011 target_makefile_frag="config/mt-mips-elfoabi"
7013 mips*-*-*linux* | mips*-*-gnu*)
7014 target_makefile_frag="config/mt-mips-gnu"
7016 nios2-*-elf*)
7017 target_makefile_frag="config/mt-nios2-elf"
7019 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
7020 target_makefile_frag="config/mt-gnu"
7022 *-*-aix4.[3456789]* | *-*-aix[56789].*)
7023 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
7024 # commands to handle both 32-bit and 64-bit objects. These flags are
7025 # harmless if we're using GNU nm or ar.
7026 extra_arflags_for_target=" -X32_64"
7027 extra_nmflags_for_target=" -B -X32_64"
7029 esac
7031 alphaieee_frag=/dev/null
7032 case $target in
7033 alpha*-*-*)
7034 # This just makes sure to use the -mieee option to build target libs.
7035 # This should probably be set individually by each library.
7036 alphaieee_frag="config/mt-alphaieee"
7038 esac
7040 # If --enable-target-optspace always use -Os instead of -O2 to build
7041 # the target libraries, similarly if it is not specified, use -Os
7042 # on selected platforms.
7043 ospace_frag=/dev/null
7044 case "${enable_target_optspace}:${target}" in
7045 yes:*)
7046 ospace_frag="config/mt-ospace"
7048 :d30v-*)
7049 ospace_frag="config/mt-d30v"
7051 :m32r-* | :d10v-* | :fr30-*)
7052 ospace_frag="config/mt-ospace"
7054 no:* | :*)
7057 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7059 esac
7061 # Some systems (e.g., one of the i386-aix systems the gas testers are
7062 # using) don't handle "\$" correctly, so don't use it here.
7063 tooldir='${exec_prefix}'/${target_noncanonical}
7064 build_tooldir=${tooldir}
7066 # Create a .gdbinit file which runs the one in srcdir
7067 # and tells GDB to look there for source files.
7069 if test -r ${srcdir}/.gdbinit ; then
7070 case ${srcdir} in
7071 .) ;;
7072 *) cat > ./.gdbinit <<EOF
7073 # ${NO_EDIT}
7074 dir ${srcdir}
7075 dir .
7076 source ${srcdir}/.gdbinit
7079 esac
7082 # Make sure that the compiler is able to generate an executable. If it
7083 # can't, we are probably in trouble. We don't care whether we can run the
7084 # executable--we might be using a cross compiler--we only care whether it
7085 # can be created. At this point the main configure script has set CC.
7086 we_are_ok=no
7087 echo "int main () { return 0; }" > conftest.c
7088 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7089 if test $? = 0 ; then
7090 if test -s conftest || test -s conftest.exe ; then
7091 we_are_ok=yes
7094 case $we_are_ok in
7096 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7097 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7098 rm -f conftest*
7099 exit 1
7101 esac
7102 rm -f conftest*
7104 # Decide which environment variable is used to find dynamic libraries.
7105 case "${host}" in
7106 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7107 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7108 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7109 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7110 esac
7112 # On systems where the dynamic library environment variable is PATH,
7113 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7114 # built executables to PATH.
7115 if test "$RPATH_ENVVAR" = PATH; then
7116 GCC_SHLIB_SUBDIR=/shlib
7117 else
7118 GCC_SHLIB_SUBDIR=
7121 # Adjust the toplevel makefile according to whether bootstrap was selected.
7122 case $enable_bootstrap in
7123 yes)
7124 bootstrap_suffix=bootstrap
7125 BUILD_CONFIG=bootstrap-debug
7128 bootstrap_suffix=no-bootstrap
7129 BUILD_CONFIG=
7131 esac
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7134 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7137 # Check whether --with-build-config was given.
7138 if test "${with_build_config+set}" = set; then :
7139 withval=$with_build_config; case $with_build_config in
7140 yes) with_build_config= ;;
7141 no) with_build_config= BUILD_CONFIG= ;;
7142 esac
7146 if test "x${with_build_config}" != x; then
7147 BUILD_CONFIG=$with_build_config
7148 else
7149 case $BUILD_CONFIG in
7150 bootstrap-debug)
7151 if echo "int f (void) { return 0; }" > conftest.c &&
7152 ${CC} -c conftest.c &&
7153 mv conftest.o conftest.o.g0 &&
7154 ${CC} -c -g conftest.c &&
7155 mv conftest.o conftest.o.g &&
7156 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7158 else
7159 BUILD_CONFIG=
7161 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7163 esac
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7166 $as_echo "$BUILD_CONFIG" >&6; }
7169 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7171 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
7172 # Check whether --enable-vtable-verify was given.
7173 if test "${enable_vtable_verify+set}" = set; then :
7174 enableval=$enable_vtable_verify; case "$enableval" in
7175 yes) enable_vtable_verify=yes ;;
7176 no) enable_vtable_verify=no ;;
7177 *) enable_vtable_verify=no;;
7178 esac
7179 else
7180 enable_vtable_verify=no
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7184 $as_echo "$enable_vtable_verify" >&6; }
7186 # Record target_configdirs and the configure arguments for target and
7187 # build configuration in Makefile.
7188 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7189 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7190 bootstrap_fixincludes=no
7192 # If we are building libgomp, bootstrap it.
7193 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7194 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7197 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7198 # or bootstrap-ubsan, bootstrap it.
7199 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7200 case "$BUILD_CONFIG" in
7201 *bootstrap-asan* | *bootstrap-ubsan* )
7202 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7203 bootstrap_fixincludes=yes
7205 esac
7208 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
7209 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7210 test "$enable_vtable_verify" != no; then
7211 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7214 # Determine whether gdb needs tk/tcl or not.
7215 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7216 # and in that case we want gdb to be built without tk. Ugh!
7217 # In fact I believe gdb is the *only* package directly dependent on tk,
7218 # so we should be able to put the 'maybe's in unconditionally and
7219 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7220 # 100% sure that that's safe though.
7222 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7223 case "$enable_gdbtk" in
7225 GDB_TK="" ;;
7226 yes)
7227 GDB_TK="${gdb_tk}" ;;
7229 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7230 # distro. Eventually someone will fix this and move Insight, nee
7231 # gdbtk to a separate directory.
7232 if test -d ${srcdir}/gdb/gdbtk ; then
7233 GDB_TK="${gdb_tk}"
7234 else
7235 GDB_TK=""
7238 esac
7239 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7240 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7242 # Strip out unwanted targets.
7244 # While at that, we remove Makefiles if we were started for recursive
7245 # configuration, so that the top-level Makefile reconfigures them,
7246 # like we used to do when configure itself was recursive.
7248 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7249 # but now we're fixing up the Makefile ourselves with the additional
7250 # commands passed to AC_CONFIG_FILES. Use separate variables
7251 # extrasub-{build,host,target} not because there is any reason to split
7252 # the substitutions up that way, but only to remain below the limit of
7253 # 99 commands in a script, for HP-UX sed.
7254 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7256 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7257 yes:yes:*\ gold\ *:*,c++,*) ;;
7258 yes:yes:*\ gold\ *:*)
7259 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7261 esac
7263 extrasub_build=
7264 for module in ${build_configdirs} ; do
7265 if test -z "${no_recursion}" \
7266 && test -f ${build_subdir}/${module}/Makefile; then
7267 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7268 rm -f ${build_subdir}/${module}/Makefile
7270 extrasub_build="$extrasub_build
7271 /^@if build-$module\$/d
7272 /^@endif build-$module\$/d
7273 /^@if build-$module-$bootstrap_suffix\$/d
7274 /^@endif build-$module-$bootstrap_suffix\$/d"
7275 done
7276 extrasub_host=
7277 for module in ${configdirs} ; do
7278 if test -z "${no_recursion}"; then
7279 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7280 if test -f ${file}; then
7281 echo 1>&2 "*** removing ${file} to force reconfigure"
7282 rm -f ${file}
7284 done
7286 case ${module},${bootstrap_fixincludes} in
7287 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7288 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7289 esac
7290 extrasub_host="$extrasub_host
7291 /^@if $module\$/d
7292 /^@endif $module\$/d
7293 /^@if $module-$host_bootstrap_suffix\$/d
7294 /^@endif $module-$host_bootstrap_suffix\$/d"
7295 done
7296 extrasub_target=
7297 for module in ${target_configdirs} ; do
7298 if test -z "${no_recursion}" \
7299 && test -f ${target_subdir}/${module}/Makefile; then
7300 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7301 rm -f ${target_subdir}/${module}/Makefile
7304 # We only bootstrap target libraries listed in bootstrap_target_libs.
7305 case $bootstrap_target_libs in
7306 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7307 *) target_bootstrap_suffix=no-bootstrap ;;
7308 esac
7310 extrasub_target="$extrasub_target
7311 /^@if target-$module\$/d
7312 /^@endif target-$module\$/d
7313 /^@if target-$module-$target_bootstrap_suffix\$/d
7314 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7315 done
7317 # Do the final fixup along with target modules.
7318 extrasub_target="$extrasub_target
7319 /^@if /,/^@endif /d"
7321 # Create the serialization dependencies. This uses a temporary file.
7323 # Check whether --enable-serial-configure was given.
7324 if test "${enable_serial_configure+set}" = set; then :
7325 enableval=$enable_serial_configure;
7329 case ${enable_serial_configure} in
7330 yes)
7331 enable_serial_build_configure=yes
7332 enable_serial_host_configure=yes
7333 enable_serial_target_configure=yes
7335 esac
7337 # These force 'configure's to be done one at a time, to avoid problems
7338 # with contention over a shared config.cache.
7339 rm -f serdep.tmp
7340 echo '# serdep.tmp' > serdep.tmp
7341 olditem=
7342 test "x${enable_serial_build_configure}" = xyes &&
7343 for item in ${build_configdirs} ; do
7344 case ${olditem} in
7345 "") ;;
7346 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7347 esac
7348 olditem=${item}
7349 done
7350 olditem=
7351 test "x${enable_serial_host_configure}" = xyes &&
7352 for item in ${configdirs} ; do
7353 case ${olditem} in
7354 "") ;;
7355 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7356 esac
7357 olditem=${item}
7358 done
7359 olditem=
7360 test "x${enable_serial_target_configure}" = xyes &&
7361 for item in ${target_configdirs} ; do
7362 case ${olditem} in
7363 "") ;;
7364 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7365 esac
7366 olditem=${item}
7367 done
7368 serialization_dependencies=serdep.tmp
7371 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7372 # target, nonopt, and variable assignments. These are the ones we
7373 # might not want to pass down to subconfigures. The exception being
7374 # --cache-file=/dev/null, which is used to turn off the use of cache
7375 # files altogether, and which should be passed on to subconfigures.
7376 # Also strip program-prefix, program-suffix, and program-transform-name,
7377 # so that we can pass down a consistent program-transform-name.
7378 baseargs=
7379 tbaseargs=
7380 keep_next=no
7381 skip_next=no
7382 eval "set -- $ac_configure_args"
7383 for ac_arg
7385 if test X"$skip_next" = X"yes"; then
7386 skip_next=no
7387 continue
7389 if test X"$keep_next" = X"yes"; then
7390 case $ac_arg in
7391 *\'*)
7392 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7393 esac
7394 baseargs="$baseargs '$ac_arg'"
7395 tbaseargs="$tbaseargs '$ac_arg'"
7396 keep_next=no
7397 continue
7400 # Handle separated arguments. Based on the logic generated by
7401 # autoconf 2.59.
7402 case $ac_arg in
7403 *=* | --config-cache | -C | -disable-* | --disable-* \
7404 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7405 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7406 | -with-* | --with-* | -without-* | --without-* | --x)
7407 separate_arg=no
7410 separate_arg=yes
7413 separate_arg=no
7415 esac
7417 skip_targ=no
7418 case $ac_arg in
7420 --with-* | --without-*)
7421 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7423 case $libopt in
7424 *[-_]include)
7425 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7427 *[-_]lib)
7428 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7431 lib=$libopt
7433 esac
7436 case $lib in
7437 mpc | mpfr | gmp | cloog)
7438 # If we're processing --with-$lib, --with-$lib-include or
7439 # --with-$lib-lib, for one of the libs above, and target is
7440 # different from host, don't pass the current argument to any
7441 # target library's configure.
7442 if test x$is_cross_compiler = xyes; then
7443 skip_targ=yes
7446 esac
7448 esac
7450 case "$ac_arg" in
7451 --cache-file=/dev/null | \
7452 -cache-file=/dev/null )
7453 # Handled here to avoid the test to skip args below.
7454 baseargs="$baseargs '$ac_arg'"
7455 tbaseargs="$tbaseargs '$ac_arg'"
7456 # Assert: $separate_arg should always be no.
7457 keep_next=$separate_arg
7459 --no*)
7460 continue
7462 --c* | \
7463 --sr* | \
7464 --ho* | \
7465 --bu* | \
7466 --t* | \
7467 --program-* | \
7468 -cache_file* | \
7469 -srcdir* | \
7470 -host* | \
7471 -build* | \
7472 -target* | \
7473 -program-prefix* | \
7474 -program-suffix* | \
7475 -program-transform-name* )
7476 skip_next=$separate_arg
7477 continue
7480 # An option. Add it.
7481 case $ac_arg in
7482 *\'*)
7483 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7484 esac
7485 baseargs="$baseargs '$ac_arg'"
7486 if test X"$skip_targ" = Xno; then
7487 tbaseargs="$tbaseargs '$ac_arg'"
7489 keep_next=$separate_arg
7492 # Either a variable assignment, or a nonopt (triplet). Don't
7493 # pass it down; let the Makefile handle this.
7494 continue
7496 esac
7497 done
7498 # Remove the initial space we just introduced and, as these will be
7499 # expanded by make, quote '$'.
7500 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7502 # Add in --program-transform-name, after --program-prefix and
7503 # --program-suffix have been applied to it. Autoconf has already
7504 # doubled dollar signs and backslashes in program_transform_name; we want
7505 # the backslashes un-doubled, and then the entire thing wrapped in single
7506 # quotes, because this will be expanded first by make and then by the shell.
7507 # Also, because we want to override the logic in subdir configure scripts to
7508 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7509 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7510 ${program_transform_name}
7511 EOF_SED
7512 gcc_transform_name=`cat conftestsed.out`
7513 rm -f conftestsed.out
7514 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7515 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7516 if test "$silent" = yes; then
7517 baseargs="$baseargs --silent"
7518 tbaseargs="$tbaseargs --silent"
7520 baseargs="$baseargs --disable-option-checking"
7521 tbaseargs="$tbaseargs --disable-option-checking"
7523 # Record and document user additions to sub configure arguments.
7528 # For the build-side libraries, we just need to pretend we're native,
7529 # and not use the same cache file. Multilibs are neither needed nor
7530 # desired.
7531 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7533 # For host modules, accept cache file option, or specification as blank.
7534 case "${cache_file}" in
7535 "") # empty
7536 cache_file_option="" ;;
7537 /* | [A-Za-z]:[\\/]* ) # absolute path
7538 cache_file_option="--cache-file=${cache_file}" ;;
7539 *) # relative path
7540 cache_file_option="--cache-file=../${cache_file}" ;;
7541 esac
7543 # Host dirs don't like to share a cache file either, horribly enough.
7544 # This seems to be due to autoconf 2.5x stupidity.
7545 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7547 target_configargs="$target_configargs ${tbaseargs}"
7549 # Passing a --with-cross-host argument lets the target libraries know
7550 # whether they are being built with a cross-compiler or being built
7551 # native. However, it would be better to use other mechanisms to make the
7552 # sorts of decisions they want to make on this basis. Please consider
7553 # this option to be deprecated. FIXME.
7554 if test x${is_cross_compiler} = xyes ; then
7555 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7558 # Special user-friendly check for native x86_64-linux build, if
7559 # multilib is not explicitly enabled.
7560 case "$target:$have_compiler:$host:$target:$enable_multilib" in
7561 x86_64-*linux*:yes:$build:$build:)
7562 # Make sure we have a developement environment that handles 32-bit
7563 dev64=no
7564 echo "int main () { return 0; }" > conftest.c
7565 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7566 if test $? = 0 ; then
7567 if test -s conftest || test -s conftest.exe ; then
7568 dev64=yes
7571 rm -f conftest*
7572 if test x${dev64} != xyes ; then
7573 as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
7576 esac
7578 # Default to --enable-multilib.
7579 if test x${enable_multilib} = x ; then
7580 target_configargs="--enable-multilib ${target_configargs}"
7583 # Pass --with-newlib if appropriate. Note that target_configdirs has
7584 # changed from the earlier setting of with_newlib.
7585 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7586 target_configargs="--with-newlib ${target_configargs}"
7589 # Different target subdirs use different values of certain variables
7590 # (notably CXX). Worse, multilibs use *lots* of different values.
7591 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7592 # it doesn't automatically accept command-line overrides of them.
7593 # This means it's not safe for target subdirs to share a cache file,
7594 # which is disgusting, but there you have it. Hopefully this can be
7595 # fixed in future. It's still worthwhile to use a cache file for each
7596 # directory. I think.
7598 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7599 # We need to pass --target, as newer autoconf's requires consistency
7600 # for target_alias and gcc doesn't manage it consistently.
7601 target_configargs="--cache-file=./config.cache ${target_configargs}"
7603 FLAGS_FOR_TARGET=
7604 case " $target_configdirs " in
7605 *" newlib "*)
7606 case " $target_configargs " in
7607 *" --with-newlib "*)
7608 case "$target" in
7609 *-cygwin*)
7610 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
7612 esac
7614 # If we're not building GCC, don't discard standard headers.
7615 if test -d ${srcdir}/gcc; then
7616 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7618 if test "${build}" != "${host}"; then
7619 # On Canadian crosses, CC_FOR_TARGET will have already been set
7620 # by `configure', so we won't have an opportunity to add -Bgcc/
7621 # to it. This is right: we don't want to search that directory
7622 # for binaries, but we want the header files in there, so add
7623 # them explicitly.
7624 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7626 # Someone might think of using the pre-installed headers on
7627 # Canadian crosses, in case the installed compiler is not fully
7628 # compatible with the compiler being built. In this case, it
7629 # would be better to flag an error than risking having
7630 # incompatible object files being constructed. We can't
7631 # guarantee that an error will be flagged, but let's hope the
7632 # compiler will do it, when presented with incompatible header
7633 # files.
7637 case "${target}-${is_cross_compiler}" in
7638 i[3456789]86-*-linux*-no)
7639 # Here host == target, so we don't need to build gcc,
7640 # so we don't want to discard standard headers.
7641 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7644 # If we're building newlib, use its generic headers last, but search
7645 # for any libc-related directories first (so make it the last -B
7646 # switch).
7647 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7649 # If we're building libgloss, find the startup file, simulator library
7650 # and linker script.
7651 case " $target_configdirs " in
7652 *" libgloss "*)
7653 # Look for startup file, simulator library and maybe linker script.
7654 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7655 # Look for libnosys.a in case the target needs it.
7656 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7657 # Most targets have the linker script in the source directory.
7658 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7660 esac
7662 esac
7664 esac
7666 esac
7668 case "$target" in
7669 x86_64-*mingw* | *-w64-mingw*)
7670 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7671 # however, use a symlink named 'mingw' in ${prefix} .
7672 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7674 *-mingw*)
7675 # MinGW can't be handled as Cygwin above since it does not use newlib.
7676 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'
7678 esac
7680 # Allow the user to override the flags for
7681 # our build compiler if desired.
7682 if test x"${build}" = x"${host}" ; then
7683 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7684 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7685 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7688 # On Canadian crosses, we'll be searching the right directories for
7689 # the previously-installed cross compiler, so don't bother to add
7690 # flags for directories within the install tree of the compiler
7691 # being built; programs in there won't even run.
7692 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7693 # Search for pre-installed headers if nothing else fits.
7694 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7697 if test "x${use_gnu_ld}" = x &&
7698 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7699 # Arrange for us to find uninstalled linker scripts.
7700 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7703 # Search for other target-specific linker scripts and such.
7704 case "${target}" in
7705 mep*)
7706 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7708 esac
7710 # Makefile fragments.
7711 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7713 eval fragval=\$$frag
7714 if test $fragval != /dev/null; then
7715 eval $frag=${srcdir}/$fragval
7717 done
7723 # Miscellanea: directories, flags, etc.
7732 # Build module lists & subconfigure args.
7736 # Host module lists & subconfigure args.
7741 # Target module lists & subconfigure args.
7745 # Build tools.
7763 # Generate default definitions for YACC, M4, LEX and other programs that run
7764 # on the build machine. These are used if the Makefile can't locate these
7765 # programs in objdir.
7766 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7768 for ac_prog in 'bison -y' byacc yacc
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771 set dummy $ac_prog; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if test "${ac_cv_prog_YACC+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$YACC"; then
7778 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_YACC="$ac_prog"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7791 done
7792 done
7793 IFS=$as_save_IFS
7797 YACC=$ac_cv_prog_YACC
7798 if test -n "$YACC"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7800 $as_echo "$YACC" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7807 test -n "$YACC" && break
7808 done
7809 test -n "$YACC" || YACC="$MISSING bison -y"
7811 case " $build_configdirs " in
7812 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7813 esac
7815 for ac_prog in bison
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if test "${ac_cv_prog_BISON+set}" = set; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$BISON"; then
7825 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834 ac_cv_prog_BISON="$ac_prog"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7838 done
7839 done
7840 IFS=$as_save_IFS
7844 BISON=$ac_cv_prog_BISON
7845 if test -n "$BISON"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7847 $as_echo "$BISON" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7854 test -n "$BISON" && break
7855 done
7856 test -n "$BISON" || BISON="$MISSING bison"
7858 case " $build_configdirs " in
7859 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7860 esac
7862 for ac_prog in gm4 gnum4 m4
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if test "${ac_cv_prog_M4+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 if test -n "$M4"; then
7872 ac_cv_prog_M4="$M4" # Let the user override the test.
7873 else
7874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875 for as_dir in $PATH
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7881 ac_cv_prog_M4="$ac_prog"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 break 2
7885 done
7886 done
7887 IFS=$as_save_IFS
7891 M4=$ac_cv_prog_M4
7892 if test -n "$M4"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7894 $as_echo "$M4" >&6; }
7895 else
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7901 test -n "$M4" && break
7902 done
7903 test -n "$M4" || M4="$MISSING m4"
7905 case " $build_configdirs " in
7906 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7907 esac
7909 for ac_prog in flex lex
7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
7912 set dummy $ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_LEX+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 if test -n "$LEX"; then
7919 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_LEX="$ac_prog"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7932 done
7933 done
7934 IFS=$as_save_IFS
7938 LEX=$ac_cv_prog_LEX
7939 if test -n "$LEX"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7941 $as_echo "$LEX" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7948 test -n "$LEX" && break
7949 done
7950 test -n "$LEX" || LEX="$MISSING flex"
7952 case " $build_configdirs " in
7953 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7954 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7955 esac
7957 for ac_prog in flex
7959 # Extract the first word of "$ac_prog", so it can be a program name with args.
7960 set dummy $ac_prog; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_FLEX+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test -n "$FLEX"; then
7967 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_FLEX="$ac_prog"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7980 done
7981 done
7982 IFS=$as_save_IFS
7986 FLEX=$ac_cv_prog_FLEX
7987 if test -n "$FLEX"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7989 $as_echo "$FLEX" >&6; }
7990 else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7996 test -n "$FLEX" && break
7997 done
7998 test -n "$FLEX" || FLEX="$MISSING flex"
8000 case " $build_configdirs " in
8001 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8002 esac
8004 for ac_prog in makeinfo
8006 # Extract the first word of "$ac_prog", so it can be a program name with args.
8007 set dummy $ac_prog; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 if test -n "$MAKEINFO"; then
8014 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_prog_MAKEINFO="$ac_prog"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8027 done
8028 done
8029 IFS=$as_save_IFS
8033 MAKEINFO=$ac_cv_prog_MAKEINFO
8034 if test -n "$MAKEINFO"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8036 $as_echo "$MAKEINFO" >&6; }
8037 else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8043 test -n "$MAKEINFO" && break
8044 done
8045 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8047 case " $build_configdirs " in
8048 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8051 # For an installed makeinfo, we require it to be from texinfo 4.7 or
8052 # higher, else we use the "missing" dummy.
8053 if ${MAKEINFO} --version \
8054 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
8056 else
8057 MAKEINFO="$MISSING makeinfo"
8061 esac
8063 # FIXME: expect and dejagnu may become build tools?
8065 for ac_prog in expect
8067 # Extract the first word of "$ac_prog", so it can be a program name with args.
8068 set dummy $ac_prog; ac_word=$2
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070 $as_echo_n "checking for $ac_word... " >&6; }
8071 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8073 else
8074 if test -n "$EXPECT"; then
8075 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_prog_EXPECT="$ac_prog"
8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 break 2
8088 done
8089 done
8090 IFS=$as_save_IFS
8094 EXPECT=$ac_cv_prog_EXPECT
8095 if test -n "$EXPECT"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8097 $as_echo "$EXPECT" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8104 test -n "$EXPECT" && break
8105 done
8106 test -n "$EXPECT" || EXPECT="expect"
8108 case " $configdirs " in
8109 *" expect "*)
8110 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8112 esac
8114 for ac_prog in runtest
8116 # Extract the first word of "$ac_prog", so it can be a program name with args.
8117 set dummy $ac_prog; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 if test -n "$RUNTEST"; then
8124 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8125 else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8133 ac_cv_prog_RUNTEST="$ac_prog"
8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8137 done
8138 done
8139 IFS=$as_save_IFS
8143 RUNTEST=$ac_cv_prog_RUNTEST
8144 if test -n "$RUNTEST"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8146 $as_echo "$RUNTEST" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8153 test -n "$RUNTEST" && break
8154 done
8155 test -n "$RUNTEST" || RUNTEST="runtest"
8157 case " $configdirs " in
8158 *" dejagnu "*)
8159 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8161 esac
8164 # Host tools.
8165 ncn_tool_prefix=
8166 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8167 ncn_target_tool_prefix=
8168 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8172 if test -n "$AR"; then
8173 ac_cv_prog_AR=$AR
8174 elif test -n "$ac_cv_prog_AR"; then
8175 AR=$ac_cv_prog_AR
8178 if test -n "$ac_cv_prog_AR"; then
8179 for ncn_progname in ar; do
8180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8181 set dummy ${ncn_progname}; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if test "${ac_cv_prog_AR+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 if test -n "$AR"; then
8188 ac_cv_prog_AR="$AR" # Let the user override the test.
8189 else
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8197 ac_cv_prog_AR="${ncn_progname}"
8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8201 done
8202 done
8203 IFS=$as_save_IFS
8207 AR=$ac_cv_prog_AR
8208 if test -n "$AR"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8210 $as_echo "$AR" >&6; }
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8217 done
8220 for ncn_progname in ar; do
8221 if test -n "$ncn_tool_prefix"; then
8222 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8223 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_AR+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 if test -n "$AR"; then
8230 ac_cv_prog_AR="$AR" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8245 IFS=$as_save_IFS
8249 AR=$ac_cv_prog_AR
8250 if test -n "$AR"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8252 $as_echo "$AR" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8260 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8262 set dummy ${ncn_progname}; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if test "${ac_cv_prog_AR+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 if test -n "$AR"; then
8269 ac_cv_prog_AR="$AR" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_prog_AR="${ncn_progname}"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8282 done
8283 done
8284 IFS=$as_save_IFS
8288 AR=$ac_cv_prog_AR
8289 if test -n "$AR"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8291 $as_echo "$AR" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8299 test -n "$ac_cv_prog_AR" && break
8300 done
8302 if test -z "$ac_cv_prog_AR" ; then
8303 set dummy ar
8304 if test $build = $host ; then
8305 AR="$2"
8306 else
8307 AR="${ncn_tool_prefix}$2"
8313 if test -n "$AS"; then
8314 ac_cv_prog_AS=$AS
8315 elif test -n "$ac_cv_prog_AS"; then
8316 AS=$ac_cv_prog_AS
8319 if test -n "$ac_cv_prog_AS"; then
8320 for ncn_progname in as; do
8321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8322 set dummy ${ncn_progname}; ac_word=$2
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324 $as_echo_n "checking for $ac_word... " >&6; }
8325 if test "${ac_cv_prog_AS+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 if test -n "$AS"; then
8329 ac_cv_prog_AS="$AS" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8338 ac_cv_prog_AS="${ncn_progname}"
8339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 break 2
8342 done
8343 done
8344 IFS=$as_save_IFS
8348 AS=$ac_cv_prog_AS
8349 if test -n "$AS"; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8351 $as_echo "$AS" >&6; }
8352 else
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8358 done
8361 for ncn_progname in as; do
8362 if test -n "$ncn_tool_prefix"; then
8363 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8364 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if test "${ac_cv_prog_AS+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$AS"; then
8371 ac_cv_prog_AS="$AS" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8380 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8384 done
8385 done
8386 IFS=$as_save_IFS
8390 AS=$ac_cv_prog_AS
8391 if test -n "$AS"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8393 $as_echo "$AS" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8401 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8403 set dummy ${ncn_progname}; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_prog_AS+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 if test -n "$AS"; then
8410 ac_cv_prog_AS="$AS" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_prog_AS="${ncn_progname}"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8423 done
8424 done
8425 IFS=$as_save_IFS
8429 AS=$ac_cv_prog_AS
8430 if test -n "$AS"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8432 $as_echo "$AS" >&6; }
8433 else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8440 test -n "$ac_cv_prog_AS" && break
8441 done
8443 if test -z "$ac_cv_prog_AS" ; then
8444 set dummy as
8445 if test $build = $host ; then
8446 AS="$2"
8447 else
8448 AS="${ncn_tool_prefix}$2"
8454 if test -n "$DLLTOOL"; then
8455 ac_cv_prog_DLLTOOL=$DLLTOOL
8456 elif test -n "$ac_cv_prog_DLLTOOL"; then
8457 DLLTOOL=$ac_cv_prog_DLLTOOL
8460 if test -n "$ac_cv_prog_DLLTOOL"; then
8461 for ncn_progname in dlltool; do
8462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8463 set dummy ${ncn_progname}; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
8468 else
8469 if test -n "$DLLTOOL"; then
8470 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8471 else
8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8473 for as_dir in $PATH
8475 IFS=$as_save_IFS
8476 test -z "$as_dir" && as_dir=.
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8479 ac_cv_prog_DLLTOOL="${ncn_progname}"
8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 break 2
8483 done
8484 done
8485 IFS=$as_save_IFS
8489 DLLTOOL=$ac_cv_prog_DLLTOOL
8490 if test -n "$DLLTOOL"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8492 $as_echo "$DLLTOOL" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8499 done
8502 for ncn_progname in dlltool; do
8503 if test -n "$ncn_tool_prefix"; then
8504 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8505 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$DLLTOOL"; then
8512 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8525 done
8526 done
8527 IFS=$as_save_IFS
8531 DLLTOOL=$ac_cv_prog_DLLTOOL
8532 if test -n "$DLLTOOL"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8534 $as_echo "$DLLTOOL" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8542 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8544 set dummy ${ncn_progname}; ac_word=$2
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 $as_echo_n "checking for $ac_word... " >&6; }
8547 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 if test -n "$DLLTOOL"; then
8551 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8552 else
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in $PATH
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560 ac_cv_prog_DLLTOOL="${ncn_progname}"
8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 break 2
8564 done
8565 done
8566 IFS=$as_save_IFS
8570 DLLTOOL=$ac_cv_prog_DLLTOOL
8571 if test -n "$DLLTOOL"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8573 $as_echo "$DLLTOOL" >&6; }
8574 else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8581 test -n "$ac_cv_prog_DLLTOOL" && break
8582 done
8584 if test -z "$ac_cv_prog_DLLTOOL" ; then
8585 set dummy dlltool
8586 if test $build = $host ; then
8587 DLLTOOL="$2"
8588 else
8589 DLLTOOL="${ncn_tool_prefix}$2"
8595 if test -n "$LD"; then
8596 ac_cv_prog_LD=$LD
8597 elif test -n "$ac_cv_prog_LD"; then
8598 LD=$ac_cv_prog_LD
8601 if test -n "$ac_cv_prog_LD"; then
8602 for ncn_progname in ld; do
8603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8604 set dummy ${ncn_progname}; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if test "${ac_cv_prog_LD+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 if test -n "$LD"; then
8611 ac_cv_prog_LD="$LD" # Let the user override the test.
8612 else
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8620 ac_cv_prog_LD="${ncn_progname}"
8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8624 done
8625 done
8626 IFS=$as_save_IFS
8630 LD=$ac_cv_prog_LD
8631 if test -n "$LD"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8633 $as_echo "$LD" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8640 done
8643 for ncn_progname in ld; do
8644 if test -n "$ncn_tool_prefix"; then
8645 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8646 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if test "${ac_cv_prog_LD+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 if test -n "$LD"; then
8653 ac_cv_prog_LD="$LD" # Let the user override the test.
8654 else
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8666 done
8667 done
8668 IFS=$as_save_IFS
8672 LD=$ac_cv_prog_LD
8673 if test -n "$LD"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8675 $as_echo "$LD" >&6; }
8676 else
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8683 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8685 set dummy ${ncn_progname}; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if test "${ac_cv_prog_LD+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
8690 else
8691 if test -n "$LD"; then
8692 ac_cv_prog_LD="$LD" # Let the user override the test.
8693 else
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701 ac_cv_prog_LD="${ncn_progname}"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8705 done
8706 done
8707 IFS=$as_save_IFS
8711 LD=$ac_cv_prog_LD
8712 if test -n "$LD"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8714 $as_echo "$LD" >&6; }
8715 else
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8722 test -n "$ac_cv_prog_LD" && break
8723 done
8725 if test -z "$ac_cv_prog_LD" ; then
8726 set dummy ld
8727 if test $build = $host ; then
8728 LD="$2"
8729 else
8730 LD="${ncn_tool_prefix}$2"
8736 if test -n "$LIPO"; then
8737 ac_cv_prog_LIPO=$LIPO
8738 elif test -n "$ac_cv_prog_LIPO"; then
8739 LIPO=$ac_cv_prog_LIPO
8742 if test -n "$ac_cv_prog_LIPO"; then
8743 for ncn_progname in lipo; do
8744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8745 set dummy ${ncn_progname}; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if test "${ac_cv_prog_LIPO+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 if test -n "$LIPO"; then
8752 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8761 ac_cv_prog_LIPO="${ncn_progname}"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8765 done
8766 done
8767 IFS=$as_save_IFS
8771 LIPO=$ac_cv_prog_LIPO
8772 if test -n "$LIPO"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8774 $as_echo "$LIPO" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8781 done
8784 for ncn_progname in lipo; do
8785 if test -n "$ncn_tool_prefix"; then
8786 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8787 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if test "${ac_cv_prog_LIPO+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 if test -n "$LIPO"; then
8794 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8813 LIPO=$ac_cv_prog_LIPO
8814 if test -n "$LIPO"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8816 $as_echo "$LIPO" >&6; }
8817 else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8824 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8826 set dummy ${ncn_progname}; ac_word=$2
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828 $as_echo_n "checking for $ac_word... " >&6; }
8829 if test "${ac_cv_prog_LIPO+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 if test -n "$LIPO"; then
8833 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8834 else
8835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836 for as_dir in $PATH
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8842 ac_cv_prog_LIPO="${ncn_progname}"
8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8844 break 2
8846 done
8847 done
8848 IFS=$as_save_IFS
8852 LIPO=$ac_cv_prog_LIPO
8853 if test -n "$LIPO"; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8855 $as_echo "$LIPO" >&6; }
8856 else
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858 $as_echo "no" >&6; }
8863 test -n "$ac_cv_prog_LIPO" && break
8864 done
8866 if test -z "$ac_cv_prog_LIPO" ; then
8867 set dummy lipo
8868 if test $build = $host ; then
8869 LIPO="$2"
8870 else
8871 LIPO="${ncn_tool_prefix}$2"
8877 if test -n "$NM"; then
8878 ac_cv_prog_NM=$NM
8879 elif test -n "$ac_cv_prog_NM"; then
8880 NM=$ac_cv_prog_NM
8883 if test -n "$ac_cv_prog_NM"; then
8884 for ncn_progname in nm; do
8885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8886 set dummy ${ncn_progname}; ac_word=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if test "${ac_cv_prog_NM+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 if test -n "$NM"; then
8893 ac_cv_prog_NM="$NM" # Let the user override the test.
8894 else
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902 ac_cv_prog_NM="${ncn_progname}"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8906 done
8907 done
8908 IFS=$as_save_IFS
8912 NM=$ac_cv_prog_NM
8913 if test -n "$NM"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8915 $as_echo "$NM" >&6; }
8916 else
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8922 done
8925 for ncn_progname in nm; do
8926 if test -n "$ncn_tool_prefix"; then
8927 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8928 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if test "${ac_cv_prog_NM+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 if test -n "$NM"; then
8935 ac_cv_prog_NM="$NM" # Let the user override the test.
8936 else
8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8944 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 break 2
8948 done
8949 done
8950 IFS=$as_save_IFS
8954 NM=$ac_cv_prog_NM
8955 if test -n "$NM"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8957 $as_echo "$NM" >&6; }
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8965 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8967 set dummy ${ncn_progname}; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if test "${ac_cv_prog_NM+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 if test -n "$NM"; then
8974 ac_cv_prog_NM="$NM" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983 ac_cv_prog_NM="${ncn_progname}"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8987 done
8988 done
8989 IFS=$as_save_IFS
8993 NM=$ac_cv_prog_NM
8994 if test -n "$NM"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8996 $as_echo "$NM" >&6; }
8997 else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9004 test -n "$ac_cv_prog_NM" && break
9005 done
9007 if test -z "$ac_cv_prog_NM" ; then
9008 set dummy nm
9009 if test $build = $host ; then
9010 NM="$2"
9011 else
9012 NM="${ncn_tool_prefix}$2"
9018 if test -n "$RANLIB"; then
9019 ac_cv_prog_RANLIB=$RANLIB
9020 elif test -n "$ac_cv_prog_RANLIB"; then
9021 RANLIB=$ac_cv_prog_RANLIB
9024 if test -n "$ac_cv_prog_RANLIB"; then
9025 for ncn_progname in ranlib; do
9026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9027 set dummy ${ncn_progname}; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 if test -n "$RANLIB"; then
9034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043 ac_cv_prog_RANLIB="${ncn_progname}"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9047 done
9048 done
9049 IFS=$as_save_IFS
9053 RANLIB=$ac_cv_prog_RANLIB
9054 if test -n "$RANLIB"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9056 $as_echo "$RANLIB" >&6; }
9057 else
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9063 done
9066 for ncn_progname in ranlib; do
9067 if test -n "$ncn_tool_prefix"; then
9068 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9069 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 if test -n "$RANLIB"; then
9076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9077 else
9078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 for as_dir in $PATH
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9089 done
9090 done
9091 IFS=$as_save_IFS
9095 RANLIB=$ac_cv_prog_RANLIB
9096 if test -n "$RANLIB"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9098 $as_echo "$RANLIB" >&6; }
9099 else
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9106 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9108 set dummy ${ncn_progname}; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 if test -n "$RANLIB"; then
9115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9116 else
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in $PATH
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124 ac_cv_prog_RANLIB="${ncn_progname}"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9128 done
9129 done
9130 IFS=$as_save_IFS
9134 RANLIB=$ac_cv_prog_RANLIB
9135 if test -n "$RANLIB"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9137 $as_echo "$RANLIB" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9145 test -n "$ac_cv_prog_RANLIB" && break
9146 done
9148 if test -z "$ac_cv_prog_RANLIB" ; then
9149 RANLIB="true"
9154 if test -n "$STRIP"; then
9155 ac_cv_prog_STRIP=$STRIP
9156 elif test -n "$ac_cv_prog_STRIP"; then
9157 STRIP=$ac_cv_prog_STRIP
9160 if test -n "$ac_cv_prog_STRIP"; then
9161 for ncn_progname in strip; do
9162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9163 set dummy ${ncn_progname}; ac_word=$2
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9165 $as_echo_n "checking for $ac_word... " >&6; }
9166 if test "${ac_cv_prog_STRIP+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 if test -n "$STRIP"; then
9170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9171 else
9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 for as_dir in $PATH
9175 IFS=$as_save_IFS
9176 test -z "$as_dir" && as_dir=.
9177 for ac_exec_ext in '' $ac_executable_extensions; do
9178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9179 ac_cv_prog_STRIP="${ncn_progname}"
9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9181 break 2
9183 done
9184 done
9185 IFS=$as_save_IFS
9189 STRIP=$ac_cv_prog_STRIP
9190 if test -n "$STRIP"; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9192 $as_echo "$STRIP" >&6; }
9193 else
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9195 $as_echo "no" >&6; }
9199 done
9202 for ncn_progname in strip; do
9203 if test -n "$ncn_tool_prefix"; then
9204 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9205 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 $as_echo_n "checking for $ac_word... " >&6; }
9208 if test "${ac_cv_prog_STRIP+set}" = set; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 if test -n "$STRIP"; then
9212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9213 else
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 for as_dir in $PATH
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 break 2
9225 done
9226 done
9227 IFS=$as_save_IFS
9231 STRIP=$ac_cv_prog_STRIP
9232 if test -n "$STRIP"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9234 $as_echo "$STRIP" >&6; }
9235 else
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237 $as_echo "no" >&6; }
9242 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9244 set dummy ${ncn_progname}; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 $as_echo_n "checking for $ac_word... " >&6; }
9247 if test "${ac_cv_prog_STRIP+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 if test -n "$STRIP"; then
9251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9252 else
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 for as_dir in $PATH
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260 ac_cv_prog_STRIP="${ncn_progname}"
9261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 break 2
9264 done
9265 done
9266 IFS=$as_save_IFS
9270 STRIP=$ac_cv_prog_STRIP
9271 if test -n "$STRIP"; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9273 $as_echo "$STRIP" >&6; }
9274 else
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9281 test -n "$ac_cv_prog_STRIP" && break
9282 done
9284 if test -z "$ac_cv_prog_STRIP" ; then
9285 STRIP="true"
9290 if test -n "$WINDRES"; then
9291 ac_cv_prog_WINDRES=$WINDRES
9292 elif test -n "$ac_cv_prog_WINDRES"; then
9293 WINDRES=$ac_cv_prog_WINDRES
9296 if test -n "$ac_cv_prog_WINDRES"; then
9297 for ncn_progname in windres; do
9298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9299 set dummy ${ncn_progname}; ac_word=$2
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9301 $as_echo_n "checking for $ac_word... " >&6; }
9302 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 if test -n "$WINDRES"; then
9306 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9307 else
9308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309 for as_dir in $PATH
9311 IFS=$as_save_IFS
9312 test -z "$as_dir" && as_dir=.
9313 for ac_exec_ext in '' $ac_executable_extensions; do
9314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9315 ac_cv_prog_WINDRES="${ncn_progname}"
9316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9317 break 2
9319 done
9320 done
9321 IFS=$as_save_IFS
9325 WINDRES=$ac_cv_prog_WINDRES
9326 if test -n "$WINDRES"; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9328 $as_echo "$WINDRES" >&6; }
9329 else
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 $as_echo "no" >&6; }
9335 done
9338 for ncn_progname in windres; do
9339 if test -n "$ncn_tool_prefix"; then
9340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9341 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
9346 else
9347 if test -n "$WINDRES"; then
9348 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9349 else
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9353 IFS=$as_save_IFS
9354 test -z "$as_dir" && as_dir=.
9355 for ac_exec_ext in '' $ac_executable_extensions; do
9356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9357 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359 break 2
9361 done
9362 done
9363 IFS=$as_save_IFS
9367 WINDRES=$ac_cv_prog_WINDRES
9368 if test -n "$WINDRES"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9370 $as_echo "$WINDRES" >&6; }
9371 else
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; }
9378 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9380 set dummy ${ncn_progname}; ac_word=$2
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382 $as_echo_n "checking for $ac_word... " >&6; }
9383 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9385 else
9386 if test -n "$WINDRES"; then
9387 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9388 else
9389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9396 ac_cv_prog_WINDRES="${ncn_progname}"
9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 break 2
9400 done
9401 done
9402 IFS=$as_save_IFS
9406 WINDRES=$ac_cv_prog_WINDRES
9407 if test -n "$WINDRES"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9409 $as_echo "$WINDRES" >&6; }
9410 else
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 $as_echo "no" >&6; }
9417 test -n "$ac_cv_prog_WINDRES" && break
9418 done
9420 if test -z "$ac_cv_prog_WINDRES" ; then
9421 set dummy windres
9422 if test $build = $host ; then
9423 WINDRES="$2"
9424 else
9425 WINDRES="${ncn_tool_prefix}$2"
9431 if test -n "$WINDMC"; then
9432 ac_cv_prog_WINDMC=$WINDMC
9433 elif test -n "$ac_cv_prog_WINDMC"; then
9434 WINDMC=$ac_cv_prog_WINDMC
9437 if test -n "$ac_cv_prog_WINDMC"; then
9438 for ncn_progname in windmc; do
9439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9440 set dummy ${ncn_progname}; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 if test -n "$WINDMC"; then
9447 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9448 else
9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9450 for as_dir in $PATH
9452 IFS=$as_save_IFS
9453 test -z "$as_dir" && as_dir=.
9454 for ac_exec_ext in '' $ac_executable_extensions; do
9455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9456 ac_cv_prog_WINDMC="${ncn_progname}"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9458 break 2
9460 done
9461 done
9462 IFS=$as_save_IFS
9466 WINDMC=$ac_cv_prog_WINDMC
9467 if test -n "$WINDMC"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9469 $as_echo "$WINDMC" >&6; }
9470 else
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9476 done
9479 for ncn_progname in windmc; do
9480 if test -n "$ncn_tool_prefix"; then
9481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9482 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9484 $as_echo_n "checking for $ac_word... " >&6; }
9485 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 if test -n "$WINDMC"; then
9489 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9490 else
9491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492 for as_dir in $PATH
9494 IFS=$as_save_IFS
9495 test -z "$as_dir" && as_dir=.
9496 for ac_exec_ext in '' $ac_executable_extensions; do
9497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9498 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9500 break 2
9502 done
9503 done
9504 IFS=$as_save_IFS
9508 WINDMC=$ac_cv_prog_WINDMC
9509 if test -n "$WINDMC"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9511 $as_echo "$WINDMC" >&6; }
9512 else
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9514 $as_echo "no" >&6; }
9519 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9521 set dummy ${ncn_progname}; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 if test -n "$WINDMC"; then
9528 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9529 else
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 for as_dir in $PATH
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9537 ac_cv_prog_WINDMC="${ncn_progname}"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9539 break 2
9541 done
9542 done
9543 IFS=$as_save_IFS
9547 WINDMC=$ac_cv_prog_WINDMC
9548 if test -n "$WINDMC"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9550 $as_echo "$WINDMC" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9558 test -n "$ac_cv_prog_WINDMC" && break
9559 done
9561 if test -z "$ac_cv_prog_WINDMC" ; then
9562 set dummy windmc
9563 if test $build = $host ; then
9564 WINDMC="$2"
9565 else
9566 WINDMC="${ncn_tool_prefix}$2"
9572 if test -n "$OBJCOPY"; then
9573 ac_cv_prog_OBJCOPY=$OBJCOPY
9574 elif test -n "$ac_cv_prog_OBJCOPY"; then
9575 OBJCOPY=$ac_cv_prog_OBJCOPY
9578 if test -n "$ac_cv_prog_OBJCOPY"; then
9579 for ncn_progname in objcopy; do
9580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9581 set dummy ${ncn_progname}; ac_word=$2
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583 $as_echo_n "checking for $ac_word... " >&6; }
9584 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 if test -n "$OBJCOPY"; then
9588 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9589 else
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 for as_dir in $PATH
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
9595 for ac_exec_ext in '' $ac_executable_extensions; do
9596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9597 ac_cv_prog_OBJCOPY="${ncn_progname}"
9598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 break 2
9601 done
9602 done
9603 IFS=$as_save_IFS
9607 OBJCOPY=$ac_cv_prog_OBJCOPY
9608 if test -n "$OBJCOPY"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9610 $as_echo "$OBJCOPY" >&6; }
9611 else
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9617 done
9620 for ncn_progname in objcopy; do
9621 if test -n "$ncn_tool_prefix"; then
9622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9623 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 if test -n "$OBJCOPY"; then
9630 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9631 else
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9635 IFS=$as_save_IFS
9636 test -z "$as_dir" && as_dir=.
9637 for ac_exec_ext in '' $ac_executable_extensions; do
9638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9639 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641 break 2
9643 done
9644 done
9645 IFS=$as_save_IFS
9649 OBJCOPY=$ac_cv_prog_OBJCOPY
9650 if test -n "$OBJCOPY"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9652 $as_echo "$OBJCOPY" >&6; }
9653 else
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9660 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9662 set dummy ${ncn_progname}; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9667 else
9668 if test -n "$OBJCOPY"; then
9669 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9670 else
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9674 IFS=$as_save_IFS
9675 test -z "$as_dir" && as_dir=.
9676 for ac_exec_ext in '' $ac_executable_extensions; do
9677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9678 ac_cv_prog_OBJCOPY="${ncn_progname}"
9679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680 break 2
9682 done
9683 done
9684 IFS=$as_save_IFS
9688 OBJCOPY=$ac_cv_prog_OBJCOPY
9689 if test -n "$OBJCOPY"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9691 $as_echo "$OBJCOPY" >&6; }
9692 else
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9699 test -n "$ac_cv_prog_OBJCOPY" && break
9700 done
9702 if test -z "$ac_cv_prog_OBJCOPY" ; then
9703 set dummy objcopy
9704 if test $build = $host ; then
9705 OBJCOPY="$2"
9706 else
9707 OBJCOPY="${ncn_tool_prefix}$2"
9713 if test -n "$OBJDUMP"; then
9714 ac_cv_prog_OBJDUMP=$OBJDUMP
9715 elif test -n "$ac_cv_prog_OBJDUMP"; then
9716 OBJDUMP=$ac_cv_prog_OBJDUMP
9719 if test -n "$ac_cv_prog_OBJDUMP"; then
9720 for ncn_progname in objdump; do
9721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9722 set dummy ${ncn_progname}; ac_word=$2
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9727 else
9728 if test -n "$OBJDUMP"; then
9729 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9730 else
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 for as_dir in $PATH
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738 ac_cv_prog_OBJDUMP="${ncn_progname}"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9742 done
9743 done
9744 IFS=$as_save_IFS
9748 OBJDUMP=$ac_cv_prog_OBJDUMP
9749 if test -n "$OBJDUMP"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9751 $as_echo "$OBJDUMP" >&6; }
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9758 done
9761 for ncn_progname in objdump; do
9762 if test -n "$ncn_tool_prefix"; then
9763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9764 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 $as_echo_n "checking for $ac_word... " >&6; }
9767 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 if test -n "$OBJDUMP"; then
9771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9772 else
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9774 for as_dir in $PATH
9776 IFS=$as_save_IFS
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9780 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9782 break 2
9784 done
9785 done
9786 IFS=$as_save_IFS
9790 OBJDUMP=$ac_cv_prog_OBJDUMP
9791 if test -n "$OBJDUMP"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9793 $as_echo "$OBJDUMP" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9801 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9803 set dummy ${ncn_progname}; ac_word=$2
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805 $as_echo_n "checking for $ac_word... " >&6; }
9806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 if test -n "$OBJDUMP"; then
9810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9811 else
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9819 ac_cv_prog_OBJDUMP="${ncn_progname}"
9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 break 2
9823 done
9824 done
9825 IFS=$as_save_IFS
9829 OBJDUMP=$ac_cv_prog_OBJDUMP
9830 if test -n "$OBJDUMP"; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9832 $as_echo "$OBJDUMP" >&6; }
9833 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 $as_echo "no" >&6; }
9840 test -n "$ac_cv_prog_OBJDUMP" && break
9841 done
9843 if test -z "$ac_cv_prog_OBJDUMP" ; then
9844 set dummy objdump
9845 if test $build = $host ; then
9846 OBJDUMP="$2"
9847 else
9848 OBJDUMP="${ncn_tool_prefix}$2"
9854 if test -n "$READELF"; then
9855 ac_cv_prog_READELF=$READELF
9856 elif test -n "$ac_cv_prog_READELF"; then
9857 READELF=$ac_cv_prog_READELF
9860 if test -n "$ac_cv_prog_READELF"; then
9861 for ncn_progname in readelf; do
9862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9863 set dummy ${ncn_progname}; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if test "${ac_cv_prog_READELF+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 if test -n "$READELF"; then
9870 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9871 else
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 for as_dir in $PATH
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_prog_READELF="${ncn_progname}"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9883 done
9884 done
9885 IFS=$as_save_IFS
9889 READELF=$ac_cv_prog_READELF
9890 if test -n "$READELF"; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9892 $as_echo "$READELF" >&6; }
9893 else
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9899 done
9902 for ncn_progname in readelf; do
9903 if test -n "$ncn_tool_prefix"; then
9904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9905 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if test "${ac_cv_prog_READELF+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 if test -n "$READELF"; then
9912 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9913 else
9914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9921 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923 break 2
9925 done
9926 done
9927 IFS=$as_save_IFS
9931 READELF=$ac_cv_prog_READELF
9932 if test -n "$READELF"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9934 $as_echo "$READELF" >&6; }
9935 else
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9942 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9944 set dummy ${ncn_progname}; ac_word=$2
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9946 $as_echo_n "checking for $ac_word... " >&6; }
9947 if test "${ac_cv_prog_READELF+set}" = set; then :
9948 $as_echo_n "(cached) " >&6
9949 else
9950 if test -n "$READELF"; then
9951 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9952 else
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954 for as_dir in $PATH
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9960 ac_cv_prog_READELF="${ncn_progname}"
9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9964 done
9965 done
9966 IFS=$as_save_IFS
9970 READELF=$ac_cv_prog_READELF
9971 if test -n "$READELF"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9973 $as_echo "$READELF" >&6; }
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9981 test -n "$ac_cv_prog_READELF" && break
9982 done
9984 if test -z "$ac_cv_prog_READELF" ; then
9985 set dummy readelf
9986 if test $build = $host ; then
9987 READELF="$2"
9988 else
9989 READELF="${ncn_tool_prefix}$2"
9998 # Target tools.
10000 # Check whether --with-build-time-tools was given.
10001 if test "${with_build_time_tools+set}" = set; then :
10002 withval=$with_build_time_tools; case x"$withval" in
10003 x/*) ;;
10005 with_build_time_tools=
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10007 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
10009 esac
10010 else
10011 with_build_time_tools=
10017 if test -n "$CC_FOR_TARGET"; then
10018 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10019 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10020 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10023 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10024 for ncn_progname in cc gcc; do
10025 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10026 set dummy ${ncn_progname}; ac_word=$2
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10028 $as_echo_n "checking for $ac_word... " >&6; }
10029 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 if test -n "$CC_FOR_TARGET"; then
10033 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10034 else
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in $PATH
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10042 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 break 2
10046 done
10047 done
10048 IFS=$as_save_IFS
10052 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10053 if test -n "$CC_FOR_TARGET"; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10055 $as_echo "$CC_FOR_TARGET" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10062 done
10065 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10066 for ncn_progname in cc gcc; do
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10068 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10069 if test -x $with_build_time_tools/${ncn_progname}; then
10070 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10072 $as_echo "yes" >&6; }
10073 break
10074 else
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10078 done
10081 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10082 for ncn_progname in cc gcc; do
10083 if test -n "$ncn_target_tool_prefix"; then
10084 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10085 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 if test -n "$CC_FOR_TARGET"; then
10092 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10093 else
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10105 done
10106 done
10107 IFS=$as_save_IFS
10111 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10112 if test -n "$CC_FOR_TARGET"; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10114 $as_echo "$CC_FOR_TARGET" >&6; }
10115 else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10122 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10124 set dummy ${ncn_progname}; ac_word=$2
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 $as_echo_n "checking for $ac_word... " >&6; }
10127 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
10129 else
10130 if test -n "$CC_FOR_TARGET"; then
10131 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10132 else
10133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134 for as_dir in $PATH
10136 IFS=$as_save_IFS
10137 test -z "$as_dir" && as_dir=.
10138 for ac_exec_ext in '' $ac_executable_extensions; do
10139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10140 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
10141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10142 break 2
10144 done
10145 done
10146 IFS=$as_save_IFS
10150 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10151 if test -n "$CC_FOR_TARGET"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10153 $as_echo "$CC_FOR_TARGET" >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10161 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10162 done
10165 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10166 set dummy cc gcc
10167 if test $build = $target ; then
10168 CC_FOR_TARGET="$2"
10169 else
10170 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10172 else
10173 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
10178 if test -n "$CXX_FOR_TARGET"; then
10179 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10180 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10181 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10184 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10185 for ncn_progname in c++ g++ cxx gxx; do
10186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10187 set dummy ${ncn_progname}; ac_word=$2
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10189 $as_echo_n "checking for $ac_word... " >&6; }
10190 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10191 $as_echo_n "(cached) " >&6
10192 else
10193 if test -n "$CXX_FOR_TARGET"; then
10194 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10195 else
10196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10197 for as_dir in $PATH
10199 IFS=$as_save_IFS
10200 test -z "$as_dir" && as_dir=.
10201 for ac_exec_ext in '' $ac_executable_extensions; do
10202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10203 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10205 break 2
10207 done
10208 done
10209 IFS=$as_save_IFS
10213 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10214 if test -n "$CXX_FOR_TARGET"; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10216 $as_echo "$CXX_FOR_TARGET" >&6; }
10217 else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10219 $as_echo "no" >&6; }
10223 done
10226 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10227 for ncn_progname in c++ g++ cxx gxx; do
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10229 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10230 if test -x $with_build_time_tools/${ncn_progname}; then
10231 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10233 $as_echo "yes" >&6; }
10234 break
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10239 done
10242 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10243 for ncn_progname in c++ g++ cxx gxx; do
10244 if test -n "$ncn_target_tool_prefix"; then
10245 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10246 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 if test -n "$CXX_FOR_TARGET"; then
10253 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10254 else
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10258 IFS=$as_save_IFS
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10262 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 break 2
10266 done
10267 done
10268 IFS=$as_save_IFS
10272 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10273 if test -n "$CXX_FOR_TARGET"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10275 $as_echo "$CXX_FOR_TARGET" >&6; }
10276 else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10283 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10285 set dummy ${ncn_progname}; ac_word=$2
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10287 $as_echo_n "checking for $ac_word... " >&6; }
10288 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10289 $as_echo_n "(cached) " >&6
10290 else
10291 if test -n "$CXX_FOR_TARGET"; then
10292 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10293 else
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $PATH
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10301 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 break 2
10305 done
10306 done
10307 IFS=$as_save_IFS
10311 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10312 if test -n "$CXX_FOR_TARGET"; then
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10314 $as_echo "$CXX_FOR_TARGET" >&6; }
10315 else
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 $as_echo "no" >&6; }
10322 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10323 done
10326 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10327 set dummy c++ g++ cxx gxx
10328 if test $build = $target ; then
10329 CXX_FOR_TARGET="$2"
10330 else
10331 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10333 else
10334 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10339 if test -n "$GCC_FOR_TARGET"; then
10340 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10341 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10342 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10345 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10346 for ncn_progname in gcc; do
10347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10348 set dummy ${ncn_progname}; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 if test -n "$GCC_FOR_TARGET"; then
10355 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10356 else
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10360 IFS=$as_save_IFS
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10364 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366 break 2
10368 done
10369 done
10370 IFS=$as_save_IFS
10374 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10375 if test -n "$GCC_FOR_TARGET"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10377 $as_echo "$GCC_FOR_TARGET" >&6; }
10378 else
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10384 done
10387 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10388 for ncn_progname in gcc; do
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10390 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10391 if test -x $with_build_time_tools/${ncn_progname}; then
10392 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10394 $as_echo "yes" >&6; }
10395 break
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10398 $as_echo "no" >&6; }
10400 done
10403 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10404 for ncn_progname in gcc; do
10405 if test -n "$ncn_target_tool_prefix"; then
10406 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10407 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10409 $as_echo_n "checking for $ac_word... " >&6; }
10410 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 if test -n "$GCC_FOR_TARGET"; then
10414 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10415 else
10416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417 for as_dir in $PATH
10419 IFS=$as_save_IFS
10420 test -z "$as_dir" && as_dir=.
10421 for ac_exec_ext in '' $ac_executable_extensions; do
10422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10423 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425 break 2
10427 done
10428 done
10429 IFS=$as_save_IFS
10433 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10434 if test -n "$GCC_FOR_TARGET"; then
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10436 $as_echo "$GCC_FOR_TARGET" >&6; }
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10444 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10446 set dummy ${ncn_progname}; ac_word=$2
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448 $as_echo_n "checking for $ac_word... " >&6; }
10449 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
10451 else
10452 if test -n "$GCC_FOR_TARGET"; then
10453 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10454 else
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10462 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 break 2
10466 done
10467 done
10468 IFS=$as_save_IFS
10472 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10473 if test -n "$GCC_FOR_TARGET"; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10475 $as_echo "$GCC_FOR_TARGET" >&6; }
10476 else
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10483 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10484 done
10487 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10488 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10489 else
10490 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10495 if test -n "$GCJ_FOR_TARGET"; then
10496 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10497 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10498 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10501 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10502 for ncn_progname in gcj; do
10503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10504 set dummy ${ncn_progname}; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10508 $as_echo_n "(cached) " >&6
10509 else
10510 if test -n "$GCJ_FOR_TARGET"; then
10511 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10512 else
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10524 done
10525 done
10526 IFS=$as_save_IFS
10530 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10531 if test -n "$GCJ_FOR_TARGET"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10533 $as_echo "$GCJ_FOR_TARGET" >&6; }
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10540 done
10543 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10544 for ncn_progname in gcj; do
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10546 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10547 if test -x $with_build_time_tools/${ncn_progname}; then
10548 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10550 $as_echo "yes" >&6; }
10551 break
10552 else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10556 done
10559 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10560 for ncn_progname in gcj; do
10561 if test -n "$ncn_target_tool_prefix"; then
10562 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10563 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10565 $as_echo_n "checking for $ac_word... " >&6; }
10566 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10567 $as_echo_n "(cached) " >&6
10568 else
10569 if test -n "$GCJ_FOR_TARGET"; then
10570 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10571 else
10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573 for as_dir in $PATH
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
10577 for ac_exec_ext in '' $ac_executable_extensions; do
10578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10579 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10581 break 2
10583 done
10584 done
10585 IFS=$as_save_IFS
10589 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10590 if test -n "$GCJ_FOR_TARGET"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10592 $as_echo "$GCJ_FOR_TARGET" >&6; }
10593 else
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10595 $as_echo "no" >&6; }
10600 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10602 set dummy ${ncn_progname}; ac_word=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 if test -n "$GCJ_FOR_TARGET"; then
10609 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10610 else
10611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10612 for as_dir in $PATH
10614 IFS=$as_save_IFS
10615 test -z "$as_dir" && as_dir=.
10616 for ac_exec_ext in '' $ac_executable_extensions; do
10617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10618 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10620 break 2
10622 done
10623 done
10624 IFS=$as_save_IFS
10628 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10629 if test -n "$GCJ_FOR_TARGET"; then
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10631 $as_echo "$GCJ_FOR_TARGET" >&6; }
10632 else
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10639 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10640 done
10643 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10644 set dummy gcj
10645 if test $build = $target ; then
10646 GCJ_FOR_TARGET="$2"
10647 else
10648 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10650 else
10651 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10656 if test -n "$GFORTRAN_FOR_TARGET"; then
10657 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10658 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10659 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10662 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10663 for ncn_progname in gfortran; do
10664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10665 set dummy ${ncn_progname}; ac_word=$2
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10667 $as_echo_n "checking for $ac_word... " >&6; }
10668 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 if test -n "$GFORTRAN_FOR_TARGET"; then
10672 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10673 else
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10685 done
10686 done
10687 IFS=$as_save_IFS
10691 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10692 if test -n "$GFORTRAN_FOR_TARGET"; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10694 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10695 else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10701 done
10704 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10705 for ncn_progname in gfortran; do
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10707 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10708 if test -x $with_build_time_tools/${ncn_progname}; then
10709 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10711 $as_echo "yes" >&6; }
10712 break
10713 else
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10717 done
10720 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10721 for ncn_progname in gfortran; do
10722 if test -n "$ncn_target_tool_prefix"; then
10723 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10724 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10726 $as_echo_n "checking for $ac_word... " >&6; }
10727 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 if test -n "$GFORTRAN_FOR_TARGET"; then
10731 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10732 else
10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734 for as_dir in $PATH
10736 IFS=$as_save_IFS
10737 test -z "$as_dir" && as_dir=.
10738 for ac_exec_ext in '' $ac_executable_extensions; do
10739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10740 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 break 2
10744 done
10745 done
10746 IFS=$as_save_IFS
10750 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10751 if test -n "$GFORTRAN_FOR_TARGET"; then
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10753 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10754 else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }
10761 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10763 set dummy ${ncn_progname}; ac_word=$2
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765 $as_echo_n "checking for $ac_word... " >&6; }
10766 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 if test -n "$GFORTRAN_FOR_TARGET"; then
10770 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10771 else
10772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10779 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 break 2
10783 done
10784 done
10785 IFS=$as_save_IFS
10789 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10790 if test -n "$GFORTRAN_FOR_TARGET"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10792 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10800 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10801 done
10804 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10805 set dummy gfortran
10806 if test $build = $target ; then
10807 GFORTRAN_FOR_TARGET="$2"
10808 else
10809 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10811 else
10812 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10817 if test -n "$GOC_FOR_TARGET"; then
10818 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10819 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10820 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10823 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10824 for ncn_progname in gccgo; do
10825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10826 set dummy ${ncn_progname}; ac_word=$2
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10828 $as_echo_n "checking for $ac_word... " >&6; }
10829 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 if test -n "$GOC_FOR_TARGET"; then
10833 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10834 else
10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10836 for as_dir in $PATH
10838 IFS=$as_save_IFS
10839 test -z "$as_dir" && as_dir=.
10840 for ac_exec_ext in '' $ac_executable_extensions; do
10841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10842 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10844 break 2
10846 done
10847 done
10848 IFS=$as_save_IFS
10852 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10853 if test -n "$GOC_FOR_TARGET"; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10855 $as_echo "$GOC_FOR_TARGET" >&6; }
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10862 done
10865 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10866 for ncn_progname in gccgo; do
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10868 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10869 if test -x $with_build_time_tools/${ncn_progname}; then
10870 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872 $as_echo "yes" >&6; }
10873 break
10874 else
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 $as_echo "no" >&6; }
10878 done
10881 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10882 for ncn_progname in gccgo; do
10883 if test -n "$ncn_target_tool_prefix"; then
10884 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10885 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 $as_echo_n "checking for $ac_word... " >&6; }
10888 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 if test -n "$GOC_FOR_TARGET"; then
10892 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10893 else
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10901 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10905 done
10906 done
10907 IFS=$as_save_IFS
10911 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10912 if test -n "$GOC_FOR_TARGET"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10914 $as_echo "$GOC_FOR_TARGET" >&6; }
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10922 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10923 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10924 set dummy ${ncn_progname}; ac_word=$2
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 $as_echo_n "checking for $ac_word... " >&6; }
10927 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10928 $as_echo_n "(cached) " >&6
10929 else
10930 if test -n "$GOC_FOR_TARGET"; then
10931 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10932 else
10933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934 for as_dir in $PATH
10936 IFS=$as_save_IFS
10937 test -z "$as_dir" && as_dir=.
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10940 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 break 2
10944 done
10945 done
10946 IFS=$as_save_IFS
10950 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10951 if test -n "$GOC_FOR_TARGET"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10953 $as_echo "$GOC_FOR_TARGET" >&6; }
10954 else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956 $as_echo "no" >&6; }
10961 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10962 done
10965 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10966 set dummy gccgo
10967 if test $build = $target ; then
10968 GOC_FOR_TARGET="$2"
10969 else
10970 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10972 else
10973 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10978 cat > conftest.c << \EOF
10979 #ifdef __GNUC__
10980 gcc_yay;
10981 #endif
10983 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10984 have_gcc_for_target=yes
10985 else
10986 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10987 have_gcc_for_target=no
10989 rm conftest.c
10994 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10995 if test -n "$with_build_time_tools"; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10997 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10998 if test -x $with_build_time_tools/ar; then
10999 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11000 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11002 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11007 elif test $build != $host && test $have_gcc_for_target = yes; then
11008 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
11009 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11010 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
11013 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11014 # Extract the first word of "ar", so it can be a program name with args.
11015 set dummy ar; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 case $AR_FOR_TARGET in
11022 [\\/]* | ?:[\\/]*)
11023 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $gcc_cv_tool_dirs
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11033 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11035 break 2
11037 done
11038 done
11039 IFS=$as_save_IFS
11042 esac
11044 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11045 if test -n "$AR_FOR_TARGET"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11047 $as_echo "$AR_FOR_TARGET" >&6; }
11048 else
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050 $as_echo "no" >&6; }
11055 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11058 if test -n "$AR_FOR_TARGET"; then
11059 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11060 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11061 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11064 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11065 for ncn_progname in ar; do
11066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11067 set dummy ${ncn_progname}; ac_word=$2
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11069 $as_echo_n "checking for $ac_word... " >&6; }
11070 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 if test -n "$AR_FOR_TARGET"; then
11074 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11075 else
11076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11077 for as_dir in $PATH
11079 IFS=$as_save_IFS
11080 test -z "$as_dir" && as_dir=.
11081 for ac_exec_ext in '' $ac_executable_extensions; do
11082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11083 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 break 2
11087 done
11088 done
11089 IFS=$as_save_IFS
11093 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11094 if test -n "$AR_FOR_TARGET"; then
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11096 $as_echo "$AR_FOR_TARGET" >&6; }
11097 else
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11099 $as_echo "no" >&6; }
11103 done
11106 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
11107 for ncn_progname in ar; do
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11109 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11110 if test -x $with_build_time_tools/${ncn_progname}; then
11111 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11113 $as_echo "yes" >&6; }
11114 break
11115 else
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 $as_echo "no" >&6; }
11119 done
11122 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11123 for ncn_progname in ar; do
11124 if test -n "$ncn_target_tool_prefix"; then
11125 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11126 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128 $as_echo_n "checking for $ac_word... " >&6; }
11129 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11130 $as_echo_n "(cached) " >&6
11131 else
11132 if test -n "$AR_FOR_TARGET"; then
11133 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11134 else
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH
11138 IFS=$as_save_IFS
11139 test -z "$as_dir" && as_dir=.
11140 for ac_exec_ext in '' $ac_executable_extensions; do
11141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11142 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11144 break 2
11146 done
11147 done
11148 IFS=$as_save_IFS
11152 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11153 if test -n "$AR_FOR_TARGET"; then
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11155 $as_echo "$AR_FOR_TARGET" >&6; }
11156 else
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11158 $as_echo "no" >&6; }
11163 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11165 set dummy ${ncn_progname}; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 if test -n "$AR_FOR_TARGET"; then
11172 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11173 else
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11185 done
11186 done
11187 IFS=$as_save_IFS
11191 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11192 if test -n "$AR_FOR_TARGET"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11194 $as_echo "$AR_FOR_TARGET" >&6; }
11195 else
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 $as_echo "no" >&6; }
11202 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11203 done
11206 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11207 set dummy ar
11208 if test $build = $target ; then
11209 AR_FOR_TARGET="$2"
11210 else
11211 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11213 else
11214 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11217 else
11218 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11224 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11225 if test -n "$with_build_time_tools"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11227 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11228 if test -x $with_build_time_tools/as; then
11229 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11230 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11232 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11237 elif test $build != $host && test $have_gcc_for_target = yes; then
11238 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11239 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11240 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11243 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11244 # Extract the first word of "as", so it can be a program name with args.
11245 set dummy as; ac_word=$2
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247 $as_echo_n "checking for $ac_word... " >&6; }
11248 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
11250 else
11251 case $AS_FOR_TARGET in
11252 [\\/]* | ?:[\\/]*)
11253 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $gcc_cv_tool_dirs
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11263 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11267 done
11268 done
11269 IFS=$as_save_IFS
11272 esac
11274 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11275 if test -n "$AS_FOR_TARGET"; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11277 $as_echo "$AS_FOR_TARGET" >&6; }
11278 else
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280 $as_echo "no" >&6; }
11285 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11288 if test -n "$AS_FOR_TARGET"; then
11289 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11290 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11291 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11294 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11295 for ncn_progname in as; do
11296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11297 set dummy ${ncn_progname}; ac_word=$2
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11299 $as_echo_n "checking for $ac_word... " >&6; }
11300 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 if test -n "$AS_FOR_TARGET"; then
11304 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11305 else
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11309 IFS=$as_save_IFS
11310 test -z "$as_dir" && as_dir=.
11311 for ac_exec_ext in '' $ac_executable_extensions; do
11312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11313 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315 break 2
11317 done
11318 done
11319 IFS=$as_save_IFS
11323 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11324 if test -n "$AS_FOR_TARGET"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11326 $as_echo "$AS_FOR_TARGET" >&6; }
11327 else
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329 $as_echo "no" >&6; }
11333 done
11336 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11337 for ncn_progname in as; do
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11339 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11340 if test -x $with_build_time_tools/${ncn_progname}; then
11341 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11344 break
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11349 done
11352 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11353 for ncn_progname in as; do
11354 if test -n "$ncn_target_tool_prefix"; then
11355 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11356 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11358 $as_echo_n "checking for $ac_word... " >&6; }
11359 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 if test -n "$AS_FOR_TARGET"; then
11363 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11364 else
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
11368 IFS=$as_save_IFS
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11372 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11374 break 2
11376 done
11377 done
11378 IFS=$as_save_IFS
11382 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11383 if test -n "$AS_FOR_TARGET"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11385 $as_echo "$AS_FOR_TARGET" >&6; }
11386 else
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11388 $as_echo "no" >&6; }
11393 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11395 set dummy ${ncn_progname}; ac_word=$2
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 $as_echo_n "checking for $ac_word... " >&6; }
11398 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 if test -n "$AS_FOR_TARGET"; then
11402 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11403 else
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11407 IFS=$as_save_IFS
11408 test -z "$as_dir" && as_dir=.
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11411 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11413 break 2
11415 done
11416 done
11417 IFS=$as_save_IFS
11421 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11422 if test -n "$AS_FOR_TARGET"; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11424 $as_echo "$AS_FOR_TARGET" >&6; }
11425 else
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 $as_echo "no" >&6; }
11432 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11433 done
11436 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11437 set dummy as
11438 if test $build = $target ; then
11439 AS_FOR_TARGET="$2"
11440 else
11441 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11443 else
11444 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11447 else
11448 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11454 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11455 if test -n "$with_build_time_tools"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11457 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11458 if test -x $with_build_time_tools/dlltool; then
11459 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11460 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11462 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11467 elif test $build != $host && test $have_gcc_for_target = yes; then
11468 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11469 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11470 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11473 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11474 # Extract the first word of "dlltool", so it can be a program name with args.
11475 set dummy dlltool; ac_word=$2
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477 $as_echo_n "checking for $ac_word... " >&6; }
11478 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 case $DLLTOOL_FOR_TARGET in
11482 [\\/]* | ?:[\\/]*)
11483 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $gcc_cv_tool_dirs
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11495 break 2
11497 done
11498 done
11499 IFS=$as_save_IFS
11502 esac
11504 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11505 if test -n "$DLLTOOL_FOR_TARGET"; then
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11507 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11508 else
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11515 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11518 if test -n "$DLLTOOL_FOR_TARGET"; then
11519 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11520 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11521 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11524 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11525 for ncn_progname in dlltool; do
11526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11527 set dummy ${ncn_progname}; ac_word=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 if test -n "$DLLTOOL_FOR_TARGET"; then
11534 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11535 else
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537 for as_dir in $PATH
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11543 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11547 done
11548 done
11549 IFS=$as_save_IFS
11553 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11554 if test -n "$DLLTOOL_FOR_TARGET"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11556 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11563 done
11566 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11567 for ncn_progname in dlltool; do
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11569 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11570 if test -x $with_build_time_tools/${ncn_progname}; then
11571 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11573 $as_echo "yes" >&6; }
11574 break
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577 $as_echo "no" >&6; }
11579 done
11582 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11583 for ncn_progname in dlltool; do
11584 if test -n "$ncn_target_tool_prefix"; then
11585 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11586 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588 $as_echo_n "checking for $ac_word... " >&6; }
11589 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 if test -n "$DLLTOOL_FOR_TARGET"; then
11593 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11594 else
11595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11602 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11606 done
11607 done
11608 IFS=$as_save_IFS
11612 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11613 if test -n "$DLLTOOL_FOR_TARGET"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11615 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11616 else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618 $as_echo "no" >&6; }
11623 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11625 set dummy ${ncn_progname}; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 if test -n "$DLLTOOL_FOR_TARGET"; then
11632 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11633 else
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11645 done
11646 done
11647 IFS=$as_save_IFS
11651 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11652 if test -n "$DLLTOOL_FOR_TARGET"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11654 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11662 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11663 done
11666 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11667 set dummy dlltool
11668 if test $build = $target ; then
11669 DLLTOOL_FOR_TARGET="$2"
11670 else
11671 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11673 else
11674 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11677 else
11678 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11684 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11685 if test -n "$with_build_time_tools"; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11687 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11688 if test -x $with_build_time_tools/ld; then
11689 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11690 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11692 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11697 elif test $build != $host && test $have_gcc_for_target = yes; then
11698 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11699 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11700 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11703 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11704 # Extract the first word of "ld", so it can be a program name with args.
11705 set dummy ld; ac_word=$2
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707 $as_echo_n "checking for $ac_word... " >&6; }
11708 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
11710 else
11711 case $LD_FOR_TARGET in
11712 [\\/]* | ?:[\\/]*)
11713 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717 for as_dir in $gcc_cv_tool_dirs
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11723 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 break 2
11727 done
11728 done
11729 IFS=$as_save_IFS
11732 esac
11734 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11735 if test -n "$LD_FOR_TARGET"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11737 $as_echo "$LD_FOR_TARGET" >&6; }
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11745 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11748 if test -n "$LD_FOR_TARGET"; then
11749 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11750 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11751 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11754 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11755 for ncn_progname in ld; do
11756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11757 set dummy ${ncn_progname}; ac_word=$2
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759 $as_echo_n "checking for $ac_word... " >&6; }
11760 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 if test -n "$LD_FOR_TARGET"; then
11764 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11765 else
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 break 2
11777 done
11778 done
11779 IFS=$as_save_IFS
11783 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11784 if test -n "$LD_FOR_TARGET"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11786 $as_echo "$LD_FOR_TARGET" >&6; }
11787 else
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11793 done
11796 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11797 for ncn_progname in ld; do
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11799 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11800 if test -x $with_build_time_tools/${ncn_progname}; then
11801 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11803 $as_echo "yes" >&6; }
11804 break
11805 else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11809 done
11812 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11813 for ncn_progname in ld; do
11814 if test -n "$ncn_target_tool_prefix"; then
11815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 $as_echo_n "checking for $ac_word... " >&6; }
11819 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 if test -n "$LD_FOR_TARGET"; then
11823 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11824 else
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11828 IFS=$as_save_IFS
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11832 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 break 2
11836 done
11837 done
11838 IFS=$as_save_IFS
11842 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11843 if test -n "$LD_FOR_TARGET"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11845 $as_echo "$LD_FOR_TARGET" >&6; }
11846 else
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11853 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11855 set dummy ${ncn_progname}; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test -n "$LD_FOR_TARGET"; then
11862 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11871 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11875 done
11876 done
11877 IFS=$as_save_IFS
11881 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11882 if test -n "$LD_FOR_TARGET"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11884 $as_echo "$LD_FOR_TARGET" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11892 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11893 done
11896 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11897 set dummy ld
11898 if test $build = $target ; then
11899 LD_FOR_TARGET="$2"
11900 else
11901 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11903 else
11904 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11907 else
11908 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11914 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11915 if test -n "$with_build_time_tools"; then
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11917 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11918 if test -x $with_build_time_tools/lipo; then
11919 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11920 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11922 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11927 elif test $build != $host && test $have_gcc_for_target = yes; then
11928 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11929 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11930 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11933 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11934 # Extract the first word of "lipo", so it can be a program name with args.
11935 set dummy lipo; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 case $LIPO_FOR_TARGET in
11942 [\\/]* | ?:[\\/]*)
11943 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $gcc_cv_tool_dirs
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11953 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 break 2
11957 done
11958 done
11959 IFS=$as_save_IFS
11962 esac
11964 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11965 if test -n "$LIPO_FOR_TARGET"; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11967 $as_echo "$LIPO_FOR_TARGET" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11975 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11978 if test -n "$LIPO_FOR_TARGET"; then
11979 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11980 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11981 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11984 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11985 for ncn_progname in lipo; do
11986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11987 set dummy ${ncn_progname}; ac_word=$2
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989 $as_echo_n "checking for $ac_word... " >&6; }
11990 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 if test -n "$LIPO_FOR_TARGET"; then
11994 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11995 else
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12007 done
12008 done
12009 IFS=$as_save_IFS
12013 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12014 if test -n "$LIPO_FOR_TARGET"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12016 $as_echo "$LIPO_FOR_TARGET" >&6; }
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12023 done
12026 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
12027 for ncn_progname in lipo; do
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12029 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12030 if test -x $with_build_time_tools/${ncn_progname}; then
12031 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12033 $as_echo "yes" >&6; }
12034 break
12035 else
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12037 $as_echo "no" >&6; }
12039 done
12042 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12043 for ncn_progname in lipo; do
12044 if test -n "$ncn_target_tool_prefix"; then
12045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12046 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12051 else
12052 if test -n "$LIPO_FOR_TARGET"; then
12053 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12054 else
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12058 IFS=$as_save_IFS
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12062 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 break 2
12066 done
12067 done
12068 IFS=$as_save_IFS
12072 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12073 if test -n "$LIPO_FOR_TARGET"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12075 $as_echo "$LIPO_FOR_TARGET" >&6; }
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12083 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12085 set dummy ${ncn_progname}; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12089 $as_echo_n "(cached) " >&6
12090 else
12091 if test -n "$LIPO_FOR_TARGET"; then
12092 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 break 2
12105 done
12106 done
12107 IFS=$as_save_IFS
12111 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12112 if test -n "$LIPO_FOR_TARGET"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12114 $as_echo "$LIPO_FOR_TARGET" >&6; }
12115 else
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12122 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12123 done
12126 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12127 set dummy lipo
12128 if test $build = $target ; then
12129 LIPO_FOR_TARGET="$2"
12130 else
12131 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12133 else
12134 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
12137 else
12138 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
12144 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12145 if test -n "$with_build_time_tools"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12147 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
12148 if test -x $with_build_time_tools/nm; then
12149 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12150 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12152 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12157 elif test $build != $host && test $have_gcc_for_target = yes; then
12158 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
12159 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12160 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
12163 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12164 # Extract the first word of "nm", so it can be a program name with args.
12165 set dummy nm; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 case $NM_FOR_TARGET in
12172 [\\/]* | ?:[\\/]*)
12173 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in $gcc_cv_tool_dirs
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185 break 2
12187 done
12188 done
12189 IFS=$as_save_IFS
12192 esac
12194 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12195 if test -n "$NM_FOR_TARGET"; then
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12197 $as_echo "$NM_FOR_TARGET" >&6; }
12198 else
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12205 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12208 if test -n "$NM_FOR_TARGET"; then
12209 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12210 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12211 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12214 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12215 for ncn_progname in nm; do
12216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12217 set dummy ${ncn_progname}; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 if test -n "$NM_FOR_TARGET"; then
12224 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12225 else
12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227 for as_dir in $PATH
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
12231 for ac_exec_ext in '' $ac_executable_extensions; do
12232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12233 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12235 break 2
12237 done
12238 done
12239 IFS=$as_save_IFS
12243 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12244 if test -n "$NM_FOR_TARGET"; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12246 $as_echo "$NM_FOR_TARGET" >&6; }
12247 else
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12253 done
12256 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12257 for ncn_progname in nm; do
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12259 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12260 if test -x $with_build_time_tools/${ncn_progname}; then
12261 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263 $as_echo "yes" >&6; }
12264 break
12265 else
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12269 done
12272 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12273 for ncn_progname in nm; do
12274 if test -n "$ncn_target_tool_prefix"; then
12275 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12276 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 if test -n "$NM_FOR_TARGET"; then
12283 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12284 else
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12292 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12296 done
12297 done
12298 IFS=$as_save_IFS
12302 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12303 if test -n "$NM_FOR_TARGET"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12305 $as_echo "$NM_FOR_TARGET" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12313 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12315 set dummy ${ncn_progname}; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if test -n "$NM_FOR_TARGET"; then
12322 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12323 else
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12335 done
12336 done
12337 IFS=$as_save_IFS
12341 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12342 if test -n "$NM_FOR_TARGET"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12344 $as_echo "$NM_FOR_TARGET" >&6; }
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347 $as_echo "no" >&6; }
12352 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12353 done
12356 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12357 set dummy nm
12358 if test $build = $target ; then
12359 NM_FOR_TARGET="$2"
12360 else
12361 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12363 else
12364 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12367 else
12368 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12374 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12375 if test -n "$with_build_time_tools"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12377 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12378 if test -x $with_build_time_tools/objcopy; then
12379 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12380 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12382 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12387 elif test $build != $host && test $have_gcc_for_target = yes; then
12388 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12389 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12390 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12393 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12394 # Extract the first word of "objcopy", so it can be a program name with args.
12395 set dummy objcopy; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397 $as_echo_n "checking for $ac_word... " >&6; }
12398 if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 case $OBJCOPY_FOR_TARGET in
12402 [\\/]* | ?:[\\/]*)
12403 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407 for as_dir in $gcc_cv_tool_dirs
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12413 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12417 done
12418 done
12419 IFS=$as_save_IFS
12422 esac
12424 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12425 if test -n "$OBJCOPY_FOR_TARGET"; then
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12427 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12428 else
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 $as_echo "no" >&6; }
12435 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12438 if test -n "$OBJCOPY_FOR_TARGET"; then
12439 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12440 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12441 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12444 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12445 for ncn_progname in objcopy; do
12446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12447 set dummy ${ncn_progname}; ac_word=$2
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12449 $as_echo_n "checking for $ac_word... " >&6; }
12450 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 if test -n "$OBJCOPY_FOR_TARGET"; then
12454 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12455 else
12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12463 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465 break 2
12467 done
12468 done
12469 IFS=$as_save_IFS
12473 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12474 if test -n "$OBJCOPY_FOR_TARGET"; then
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12476 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12477 else
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12483 done
12486 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12487 for ncn_progname in objcopy; do
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12489 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12490 if test -x $with_build_time_tools/${ncn_progname}; then
12491 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12493 $as_echo "yes" >&6; }
12494 break
12495 else
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12499 done
12502 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12503 for ncn_progname in objcopy; do
12504 if test -n "$ncn_target_tool_prefix"; then
12505 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12506 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12508 $as_echo_n "checking for $ac_word... " >&6; }
12509 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 if test -n "$OBJCOPY_FOR_TARGET"; then
12513 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12514 else
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12518 IFS=$as_save_IFS
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12522 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12524 break 2
12526 done
12527 done
12528 IFS=$as_save_IFS
12532 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12533 if test -n "$OBJCOPY_FOR_TARGET"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12535 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12536 else
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12543 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 if test -n "$OBJCOPY_FOR_TARGET"; then
12552 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12553 else
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12561 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12563 break 2
12565 done
12566 done
12567 IFS=$as_save_IFS
12571 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12572 if test -n "$OBJCOPY_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12574 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12575 else
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12582 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12583 done
12586 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12587 set dummy objcopy
12588 if test $build = $target ; then
12589 OBJCOPY_FOR_TARGET="$2"
12590 else
12591 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12593 else
12594 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12597 else
12598 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12604 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12605 if test -n "$with_build_time_tools"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12607 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12608 if test -x $with_build_time_tools/objdump; then
12609 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12610 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12612 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12613 else
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12617 elif test $build != $host && test $have_gcc_for_target = yes; then
12618 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12619 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12620 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12623 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12624 # Extract the first word of "objdump", so it can be a program name with args.
12625 set dummy objdump; ac_word=$2
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627 $as_echo_n "checking for $ac_word... " >&6; }
12628 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 case $OBJDUMP_FOR_TARGET in
12632 [\\/]* | ?:[\\/]*)
12633 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $gcc_cv_tool_dirs
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12643 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12647 done
12648 done
12649 IFS=$as_save_IFS
12652 esac
12654 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12655 if test -n "$OBJDUMP_FOR_TARGET"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12657 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12658 else
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12665 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12668 if test -n "$OBJDUMP_FOR_TARGET"; then
12669 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12670 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12671 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12674 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12675 for ncn_progname in objdump; do
12676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12677 set dummy ${ncn_progname}; ac_word=$2
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12679 $as_echo_n "checking for $ac_word... " >&6; }
12680 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 if test -n "$OBJDUMP_FOR_TARGET"; then
12684 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12685 else
12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 for ac_exec_ext in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12695 break 2
12697 done
12698 done
12699 IFS=$as_save_IFS
12703 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12704 if test -n "$OBJDUMP_FOR_TARGET"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12706 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12713 done
12716 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12717 for ncn_progname in objdump; do
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12719 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12720 if test -x $with_build_time_tools/${ncn_progname}; then
12721 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12723 $as_echo "yes" >&6; }
12724 break
12725 else
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12729 done
12732 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12733 for ncn_progname in objdump; do
12734 if test -n "$ncn_target_tool_prefix"; then
12735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12736 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738 $as_echo_n "checking for $ac_word... " >&6; }
12739 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 if test -n "$OBJDUMP_FOR_TARGET"; then
12743 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12744 else
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $PATH
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12752 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12756 done
12757 done
12758 IFS=$as_save_IFS
12762 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12763 if test -n "$OBJDUMP_FOR_TARGET"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12765 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12773 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12775 set dummy ${ncn_progname}; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -n "$OBJDUMP_FOR_TARGET"; then
12782 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12795 done
12796 done
12797 IFS=$as_save_IFS
12801 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12802 if test -n "$OBJDUMP_FOR_TARGET"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12804 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12812 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12813 done
12816 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12817 set dummy objdump
12818 if test $build = $target ; then
12819 OBJDUMP_FOR_TARGET="$2"
12820 else
12821 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12823 else
12824 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12827 else
12828 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12834 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12835 if test -n "$with_build_time_tools"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12837 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12838 if test -x $with_build_time_tools/ranlib; then
12839 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12840 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12842 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12847 elif test $build != $host && test $have_gcc_for_target = yes; then
12848 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12849 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12850 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12853 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12854 # Extract the first word of "ranlib", so it can be a program name with args.
12855 set dummy ranlib; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857 $as_echo_n "checking for $ac_word... " >&6; }
12858 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 case $RANLIB_FOR_TARGET in
12862 [\\/]* | ?:[\\/]*)
12863 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $gcc_cv_tool_dirs
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12873 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 break 2
12877 done
12878 done
12879 IFS=$as_save_IFS
12882 esac
12884 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12885 if test -n "$RANLIB_FOR_TARGET"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12887 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12895 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12898 if test -n "$RANLIB_FOR_TARGET"; then
12899 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12900 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12901 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12904 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12905 for ncn_progname in ranlib; do
12906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12907 set dummy ${ncn_progname}; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12911 $as_echo_n "(cached) " >&6
12912 else
12913 if test -n "$RANLIB_FOR_TARGET"; then
12914 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12915 else
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12919 IFS=$as_save_IFS
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12923 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12925 break 2
12927 done
12928 done
12929 IFS=$as_save_IFS
12933 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12934 if test -n "$RANLIB_FOR_TARGET"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12936 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12937 else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12943 done
12946 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12947 for ncn_progname in ranlib; do
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12949 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12950 if test -x $with_build_time_tools/${ncn_progname}; then
12951 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12953 $as_echo "yes" >&6; }
12954 break
12955 else
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12957 $as_echo "no" >&6; }
12959 done
12962 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12963 for ncn_progname in ranlib; do
12964 if test -n "$ncn_target_tool_prefix"; then
12965 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12966 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12968 $as_echo_n "checking for $ac_word... " >&6; }
12969 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12972 if test -n "$RANLIB_FOR_TARGET"; then
12973 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12974 else
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12978 IFS=$as_save_IFS
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12982 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12984 break 2
12986 done
12987 done
12988 IFS=$as_save_IFS
12992 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12993 if test -n "$RANLIB_FOR_TARGET"; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12995 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12998 $as_echo "no" >&6; }
13003 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13005 set dummy ${ncn_progname}; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 if test -n "$RANLIB_FOR_TARGET"; then
13012 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13025 done
13026 done
13027 IFS=$as_save_IFS
13031 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13032 if test -n "$RANLIB_FOR_TARGET"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13034 $as_echo "$RANLIB_FOR_TARGET" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13042 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13043 done
13046 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13047 set dummy ranlib
13048 if test $build = $target ; then
13049 RANLIB_FOR_TARGET="$2"
13050 else
13051 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
13053 else
13054 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
13057 else
13058 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
13064 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13065 if test -n "$with_build_time_tools"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13067 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13068 if test -x $with_build_time_tools/readelf; then
13069 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13070 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13072 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13077 elif test $build != $host && test $have_gcc_for_target = yes; then
13078 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13079 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13080 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13083 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13084 # Extract the first word of "readelf", so it can be a program name with args.
13085 set dummy readelf; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 case $READELF_FOR_TARGET in
13092 [\\/]* | ?:[\\/]*)
13093 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097 for as_dir in $gcc_cv_tool_dirs
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13107 done
13108 done
13109 IFS=$as_save_IFS
13112 esac
13114 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13115 if test -n "$READELF_FOR_TARGET"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13117 $as_echo "$READELF_FOR_TARGET" >&6; }
13118 else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13125 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13128 if test -n "$READELF_FOR_TARGET"; then
13129 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13130 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13131 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13134 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13135 for ncn_progname in readelf; do
13136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13137 set dummy ${ncn_progname}; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 if test -n "$READELF_FOR_TARGET"; then
13144 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13145 else
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13157 done
13158 done
13159 IFS=$as_save_IFS
13163 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13164 if test -n "$READELF_FOR_TARGET"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13166 $as_echo "$READELF_FOR_TARGET" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13173 done
13176 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13177 for ncn_progname in readelf; do
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13179 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13180 if test -x $with_build_time_tools/${ncn_progname}; then
13181 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13183 $as_echo "yes" >&6; }
13184 break
13185 else
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13189 done
13192 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13193 for ncn_progname in readelf; do
13194 if test -n "$ncn_target_tool_prefix"; then
13195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13196 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 if test -n "$READELF_FOR_TARGET"; then
13203 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13204 else
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13212 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13216 done
13217 done
13218 IFS=$as_save_IFS
13222 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13223 if test -n "$READELF_FOR_TARGET"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13225 $as_echo "$READELF_FOR_TARGET" >&6; }
13226 else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13233 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13235 set dummy ${ncn_progname}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 if test -n "$READELF_FOR_TARGET"; then
13242 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13243 else
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13247 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2
13255 done
13256 done
13257 IFS=$as_save_IFS
13261 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13262 if test -n "$READELF_FOR_TARGET"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13264 $as_echo "$READELF_FOR_TARGET" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13272 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13273 done
13276 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13277 set dummy readelf
13278 if test $build = $target ; then
13279 READELF_FOR_TARGET="$2"
13280 else
13281 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13283 else
13284 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13287 else
13288 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13294 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13295 if test -n "$with_build_time_tools"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13297 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
13298 if test -x $with_build_time_tools/strip; then
13299 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13300 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13302 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
13303 else
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13305 $as_echo "no" >&6; }
13307 elif test $build != $host && test $have_gcc_for_target = yes; then
13308 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
13309 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13310 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13313 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13314 # Extract the first word of "strip", so it can be a program name with args.
13315 set dummy strip; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 case $STRIP_FOR_TARGET in
13322 [\\/]* | ?:[\\/]*)
13323 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327 for as_dir in $gcc_cv_tool_dirs
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13333 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13335 break 2
13337 done
13338 done
13339 IFS=$as_save_IFS
13342 esac
13344 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13345 if test -n "$STRIP_FOR_TARGET"; then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13347 $as_echo "$STRIP_FOR_TARGET" >&6; }
13348 else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13350 $as_echo "no" >&6; }
13355 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13358 if test -n "$STRIP_FOR_TARGET"; then
13359 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13360 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13361 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13364 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13365 for ncn_progname in strip; do
13366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13367 set dummy ${ncn_progname}; ac_word=$2
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13369 $as_echo_n "checking for $ac_word... " >&6; }
13370 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 if test -n "$STRIP_FOR_TARGET"; then
13374 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13375 else
13376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377 for as_dir in $PATH
13379 IFS=$as_save_IFS
13380 test -z "$as_dir" && as_dir=.
13381 for ac_exec_ext in '' $ac_executable_extensions; do
13382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13383 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13385 break 2
13387 done
13388 done
13389 IFS=$as_save_IFS
13393 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13394 if test -n "$STRIP_FOR_TARGET"; then
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13396 $as_echo "$STRIP_FOR_TARGET" >&6; }
13397 else
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13403 done
13406 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
13407 for ncn_progname in strip; do
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13409 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13410 if test -x $with_build_time_tools/${ncn_progname}; then
13411 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13413 $as_echo "yes" >&6; }
13414 break
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13419 done
13422 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13423 for ncn_progname in strip; do
13424 if test -n "$ncn_target_tool_prefix"; then
13425 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13426 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13428 $as_echo_n "checking for $ac_word... " >&6; }
13429 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13430 $as_echo_n "(cached) " >&6
13431 else
13432 if test -n "$STRIP_FOR_TARGET"; then
13433 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13434 else
13435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13436 for as_dir in $PATH
13438 IFS=$as_save_IFS
13439 test -z "$as_dir" && as_dir=.
13440 for ac_exec_ext in '' $ac_executable_extensions; do
13441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13442 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13444 break 2
13446 done
13447 done
13448 IFS=$as_save_IFS
13452 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13453 if test -n "$STRIP_FOR_TARGET"; then
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13455 $as_echo "$STRIP_FOR_TARGET" >&6; }
13456 else
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13463 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13465 set dummy ${ncn_progname}; ac_word=$2
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13467 $as_echo_n "checking for $ac_word... " >&6; }
13468 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 if test -n "$STRIP_FOR_TARGET"; then
13472 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13473 else
13474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13475 for as_dir in $PATH
13477 IFS=$as_save_IFS
13478 test -z "$as_dir" && as_dir=.
13479 for ac_exec_ext in '' $ac_executable_extensions; do
13480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13481 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
13482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13483 break 2
13485 done
13486 done
13487 IFS=$as_save_IFS
13491 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13492 if test -n "$STRIP_FOR_TARGET"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13494 $as_echo "$STRIP_FOR_TARGET" >&6; }
13495 else
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497 $as_echo "no" >&6; }
13502 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13503 done
13506 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13507 set dummy strip
13508 if test $build = $target ; then
13509 STRIP_FOR_TARGET="$2"
13510 else
13511 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13513 else
13514 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
13517 else
13518 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
13524 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13525 if test -n "$with_build_time_tools"; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13527 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
13528 if test -x $with_build_time_tools/windres; then
13529 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13530 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13532 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
13533 else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13537 elif test $build != $host && test $have_gcc_for_target = yes; then
13538 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13539 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13540 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13543 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13544 # Extract the first word of "windres", so it can be a program name with args.
13545 set dummy windres; ac_word=$2
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547 $as_echo_n "checking for $ac_word... " >&6; }
13548 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13550 else
13551 case $WINDRES_FOR_TARGET in
13552 [\\/]* | ?:[\\/]*)
13553 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557 for as_dir in $gcc_cv_tool_dirs
13559 IFS=$as_save_IFS
13560 test -z "$as_dir" && as_dir=.
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13563 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13565 break 2
13567 done
13568 done
13569 IFS=$as_save_IFS
13572 esac
13574 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13575 if test -n "$WINDRES_FOR_TARGET"; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13577 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13578 else
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 $as_echo "no" >&6; }
13585 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13588 if test -n "$WINDRES_FOR_TARGET"; then
13589 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13590 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13591 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13594 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13595 for ncn_progname in windres; do
13596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13597 set dummy ${ncn_progname}; ac_word=$2
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; }
13600 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 if test -n "$WINDRES_FOR_TARGET"; then
13604 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13605 else
13606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607 for as_dir in $PATH
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13613 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13615 break 2
13617 done
13618 done
13619 IFS=$as_save_IFS
13623 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13624 if test -n "$WINDRES_FOR_TARGET"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13626 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13627 else
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13633 done
13636 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13637 for ncn_progname in windres; do
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13639 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13640 if test -x $with_build_time_tools/${ncn_progname}; then
13641 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13643 $as_echo "yes" >&6; }
13644 break
13645 else
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13649 done
13652 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13653 for ncn_progname in windres; do
13654 if test -n "$ncn_target_tool_prefix"; then
13655 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13656 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13658 $as_echo_n "checking for $ac_word... " >&6; }
13659 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 if test -n "$WINDRES_FOR_TARGET"; then
13663 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13664 else
13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13666 for as_dir in $PATH
13668 IFS=$as_save_IFS
13669 test -z "$as_dir" && as_dir=.
13670 for ac_exec_ext in '' $ac_executable_extensions; do
13671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13672 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13674 break 2
13676 done
13677 done
13678 IFS=$as_save_IFS
13682 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13683 if test -n "$WINDRES_FOR_TARGET"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13685 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13686 else
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13688 $as_echo "no" >&6; }
13693 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13695 set dummy ${ncn_progname}; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 if test -n "$WINDRES_FOR_TARGET"; then
13702 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13703 else
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13707 IFS=$as_save_IFS
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
13710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13711 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 break 2
13715 done
13716 done
13717 IFS=$as_save_IFS
13721 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13722 if test -n "$WINDRES_FOR_TARGET"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13724 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13725 else
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13732 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13733 done
13736 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13737 set dummy windres
13738 if test $build = $target ; then
13739 WINDRES_FOR_TARGET="$2"
13740 else
13741 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13743 else
13744 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13747 else
13748 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13754 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13755 if test -n "$with_build_time_tools"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13757 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13758 if test -x $with_build_time_tools/windmc; then
13759 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13760 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13762 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13767 elif test $build != $host && test $have_gcc_for_target = yes; then
13768 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13769 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13770 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13773 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13774 # Extract the first word of "windmc", so it can be a program name with args.
13775 set dummy windmc; ac_word=$2
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777 $as_echo_n "checking for $ac_word... " >&6; }
13778 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 case $WINDMC_FOR_TARGET in
13782 [\\/]* | ?:[\\/]*)
13783 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $gcc_cv_tool_dirs
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13793 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13797 done
13798 done
13799 IFS=$as_save_IFS
13802 esac
13804 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13805 if test -n "$WINDMC_FOR_TARGET"; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13807 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13808 else
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810 $as_echo "no" >&6; }
13815 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13818 if test -n "$WINDMC_FOR_TARGET"; then
13819 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13820 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13821 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13824 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13825 for ncn_progname in windmc; do
13826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13827 set dummy ${ncn_progname}; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829 $as_echo_n "checking for $ac_word... " >&6; }
13830 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 if test -n "$WINDMC_FOR_TARGET"; then
13834 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13835 else
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13843 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 break 2
13847 done
13848 done
13849 IFS=$as_save_IFS
13853 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13854 if test -n "$WINDMC_FOR_TARGET"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13856 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13857 else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13863 done
13866 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13867 for ncn_progname in windmc; do
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13869 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13870 if test -x $with_build_time_tools/${ncn_progname}; then
13871 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13873 $as_echo "yes" >&6; }
13874 break
13875 else
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13877 $as_echo "no" >&6; }
13879 done
13882 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13883 for ncn_progname in windmc; do
13884 if test -n "$ncn_target_tool_prefix"; then
13885 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13886 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13888 $as_echo_n "checking for $ac_word... " >&6; }
13889 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 if test -n "$WINDMC_FOR_TARGET"; then
13893 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13894 else
13895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896 for as_dir in $PATH
13898 IFS=$as_save_IFS
13899 test -z "$as_dir" && as_dir=.
13900 for ac_exec_ext in '' $ac_executable_extensions; do
13901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13902 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 break 2
13906 done
13907 done
13908 IFS=$as_save_IFS
13912 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13913 if test -n "$WINDMC_FOR_TARGET"; then
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13915 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13916 else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918 $as_echo "no" >&6; }
13923 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13925 set dummy ${ncn_progname}; ac_word=$2
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13927 $as_echo_n "checking for $ac_word... " >&6; }
13928 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 if test -n "$WINDMC_FOR_TARGET"; then
13932 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13933 else
13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935 for as_dir in $PATH
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
13940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13941 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13945 done
13946 done
13947 IFS=$as_save_IFS
13951 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13952 if test -n "$WINDMC_FOR_TARGET"; then
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13954 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13955 else
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957 $as_echo "no" >&6; }
13962 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13963 done
13966 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13967 set dummy windmc
13968 if test $build = $target ; then
13969 WINDMC_FOR_TARGET="$2"
13970 else
13971 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13973 else
13974 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13977 else
13978 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13982 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13985 $as_echo_n "checking where to find the target ar... " >&6; }
13986 if test "x${build}" != "x${host}" ; then
13987 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13988 # We already found the complete path
13989 ac_dir=`dirname $AR_FOR_TARGET`
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991 $as_echo "pre-installed in $ac_dir" >&6; }
13992 else
13993 # Canadian cross, just use what we found
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13995 $as_echo "pre-installed" >&6; }
13997 else
13998 ok=yes
13999 case " ${configdirs} " in
14000 *" binutils "*) ;;
14001 *) ok=no ;;
14002 esac
14004 if test $ok = yes; then
14005 # An in-tree tool is available and we can use it
14006 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14008 $as_echo "just compiled" >&6; }
14009 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14010 # We already found the complete path
14011 ac_dir=`dirname $AR_FOR_TARGET`
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14013 $as_echo "pre-installed in $ac_dir" >&6; }
14014 elif test "x$target" = "x$host"; then
14015 # We can use an host tool
14016 AR_FOR_TARGET='$(AR)'
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14018 $as_echo "host tool" >&6; }
14019 else
14020 # We need a cross tool
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14022 $as_echo "pre-installed" >&6; }
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14027 $as_echo_n "checking where to find the target as... " >&6; }
14028 if test "x${build}" != "x${host}" ; then
14029 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14030 # We already found the complete path
14031 ac_dir=`dirname $AS_FOR_TARGET`
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14033 $as_echo "pre-installed in $ac_dir" >&6; }
14034 else
14035 # Canadian cross, just use what we found
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14037 $as_echo "pre-installed" >&6; }
14039 else
14040 ok=yes
14041 case " ${configdirs} " in
14042 *" gas "*) ;;
14043 *) ok=no ;;
14044 esac
14046 if test $ok = yes; then
14047 # An in-tree tool is available and we can use it
14048 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14050 $as_echo "just compiled" >&6; }
14051 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
14053 ac_dir=`dirname $AS_FOR_TARGET`
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055 $as_echo "pre-installed in $ac_dir" >&6; }
14056 elif test "x$target" = "x$host"; then
14057 # We can use an host tool
14058 AS_FOR_TARGET='$(AS)'
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14060 $as_echo "host tool" >&6; }
14061 else
14062 # We need a cross tool
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064 $as_echo "pre-installed" >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14069 $as_echo_n "checking where to find the target cc... " >&6; }
14070 if test "x${build}" != "x${host}" ; then
14071 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14072 # We already found the complete path
14073 ac_dir=`dirname $CC_FOR_TARGET`
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14075 $as_echo "pre-installed in $ac_dir" >&6; }
14076 else
14077 # Canadian cross, just use what we found
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079 $as_echo "pre-installed" >&6; }
14081 else
14082 ok=yes
14083 case " ${configdirs} " in
14084 *" gcc "*) ;;
14085 *) ok=no ;;
14086 esac
14088 if test $ok = yes; then
14089 # An in-tree tool is available and we can use it
14090 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14092 $as_echo "just compiled" >&6; }
14093 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
14095 ac_dir=`dirname $CC_FOR_TARGET`
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097 $as_echo "pre-installed in $ac_dir" >&6; }
14098 elif test "x$target" = "x$host"; then
14099 # We can use an host tool
14100 CC_FOR_TARGET='$(CC)'
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14102 $as_echo "host tool" >&6; }
14103 else
14104 # We need a cross tool
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14106 $as_echo "pre-installed" >&6; }
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14111 $as_echo_n "checking where to find the target c++... " >&6; }
14112 if test "x${build}" != "x${host}" ; then
14113 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14114 # We already found the complete path
14115 ac_dir=`dirname $CXX_FOR_TARGET`
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14117 $as_echo "pre-installed in $ac_dir" >&6; }
14118 else
14119 # Canadian cross, just use what we found
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121 $as_echo "pre-installed" >&6; }
14123 else
14124 ok=yes
14125 case " ${configdirs} " in
14126 *" gcc "*) ;;
14127 *) ok=no ;;
14128 esac
14129 case ,${enable_languages}, in
14130 *,c++,*) ;;
14131 *) ok=no ;;
14132 esac
14133 if test $ok = yes; then
14134 # An in-tree tool is available and we can use it
14135 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'
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14137 $as_echo "just compiled" >&6; }
14138 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14139 # We already found the complete path
14140 ac_dir=`dirname $CXX_FOR_TARGET`
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14142 $as_echo "pre-installed in $ac_dir" >&6; }
14143 elif test "x$target" = "x$host"; then
14144 # We can use an host tool
14145 CXX_FOR_TARGET='$(CXX)'
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14147 $as_echo "host tool" >&6; }
14148 else
14149 # We need a cross tool
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14151 $as_echo "pre-installed" >&6; }
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14156 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
14157 if test "x${build}" != "x${host}" ; then
14158 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14159 # We already found the complete path
14160 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14162 $as_echo "pre-installed in $ac_dir" >&6; }
14163 else
14164 # Canadian cross, just use what we found
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14166 $as_echo "pre-installed" >&6; }
14168 else
14169 ok=yes
14170 case " ${configdirs} " in
14171 *" gcc "*) ;;
14172 *) ok=no ;;
14173 esac
14174 case ,${enable_languages}, in
14175 *,c++,*) ;;
14176 *) ok=no ;;
14177 esac
14178 if test $ok = yes; then
14179 # An in-tree tool is available and we can use it
14180 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'
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14182 $as_echo "just compiled" >&6; }
14183 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14184 # We already found the complete path
14185 ac_dir=`dirname $RAW_CXX_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 elif test "x$target" = "x$host"; then
14189 # We can use an host tool
14190 RAW_CXX_FOR_TARGET='$(CXX)'
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14192 $as_echo "host tool" >&6; }
14193 else
14194 # We need a cross tool
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196 $as_echo "pre-installed" >&6; }
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14201 $as_echo_n "checking where to find the target dlltool... " >&6; }
14202 if test "x${build}" != "x${host}" ; then
14203 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14204 # We already found the complete path
14205 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14207 $as_echo "pre-installed in $ac_dir" >&6; }
14208 else
14209 # Canadian cross, just use what we found
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14211 $as_echo "pre-installed" >&6; }
14213 else
14214 ok=yes
14215 case " ${configdirs} " in
14216 *" binutils "*) ;;
14217 *) ok=no ;;
14218 esac
14220 if test $ok = yes; then
14221 # An in-tree tool is available and we can use it
14222 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14224 $as_echo "just compiled" >&6; }
14225 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14226 # We already found the complete path
14227 ac_dir=`dirname $DLLTOOL_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 elif test "x$target" = "x$host"; then
14231 # We can use an host tool
14232 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14234 $as_echo "host tool" >&6; }
14235 else
14236 # We need a cross tool
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238 $as_echo "pre-installed" >&6; }
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14243 $as_echo_n "checking where to find the target gcc... " >&6; }
14244 if test "x${build}" != "x${host}" ; then
14245 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14246 # We already found the complete path
14247 ac_dir=`dirname $GCC_FOR_TARGET`
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14249 $as_echo "pre-installed in $ac_dir" >&6; }
14250 else
14251 # Canadian cross, just use what we found
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14253 $as_echo "pre-installed" >&6; }
14255 else
14256 ok=yes
14257 case " ${configdirs} " in
14258 *" gcc "*) ;;
14259 *) ok=no ;;
14260 esac
14262 if test $ok = yes; then
14263 # An in-tree tool is available and we can use it
14264 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14266 $as_echo "just compiled" >&6; }
14267 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14268 # We already found the complete path
14269 ac_dir=`dirname $GCC_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 elif test "x$target" = "x$host"; then
14273 # We can use an host tool
14274 GCC_FOR_TARGET='$()'
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14276 $as_echo "host tool" >&6; }
14277 else
14278 # We need a cross tool
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280 $as_echo "pre-installed" >&6; }
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14285 $as_echo_n "checking where to find the target gcj... " >&6; }
14286 if test "x${build}" != "x${host}" ; then
14287 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14288 # We already found the complete path
14289 ac_dir=`dirname $GCJ_FOR_TARGET`
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14291 $as_echo "pre-installed in $ac_dir" >&6; }
14292 else
14293 # Canadian cross, just use what we found
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14295 $as_echo "pre-installed" >&6; }
14297 else
14298 ok=yes
14299 case " ${configdirs} " in
14300 *" gcc "*) ;;
14301 *) ok=no ;;
14302 esac
14303 case ,${enable_languages}, in
14304 *,java,*) ;;
14305 *) ok=no ;;
14306 esac
14307 if test $ok = yes; then
14308 # An in-tree tool is available and we can use it
14309 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14311 $as_echo "just compiled" >&6; }
14312 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14313 # We already found the complete path
14314 ac_dir=`dirname $GCJ_FOR_TARGET`
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14316 $as_echo "pre-installed in $ac_dir" >&6; }
14317 elif test "x$target" = "x$host"; then
14318 # We can use an host tool
14319 GCJ_FOR_TARGET='$(GCJ)'
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14321 $as_echo "host tool" >&6; }
14322 else
14323 # We need a cross tool
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14325 $as_echo "pre-installed" >&6; }
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14330 $as_echo_n "checking where to find the target gfortran... " >&6; }
14331 if test "x${build}" != "x${host}" ; then
14332 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14333 # We already found the complete path
14334 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14336 $as_echo "pre-installed in $ac_dir" >&6; }
14337 else
14338 # Canadian cross, just use what we found
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14340 $as_echo "pre-installed" >&6; }
14342 else
14343 ok=yes
14344 case " ${configdirs} " in
14345 *" gcc "*) ;;
14346 *) ok=no ;;
14347 esac
14348 case ,${enable_languages}, in
14349 *,fortran,*) ;;
14350 *) ok=no ;;
14351 esac
14352 if test $ok = yes; then
14353 # An in-tree tool is available and we can use it
14354 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14356 $as_echo "just compiled" >&6; }
14357 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14358 # We already found the complete path
14359 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14361 $as_echo "pre-installed in $ac_dir" >&6; }
14362 elif test "x$target" = "x$host"; then
14363 # We can use an host tool
14364 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14366 $as_echo "host tool" >&6; }
14367 else
14368 # We need a cross tool
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14370 $as_echo "pre-installed" >&6; }
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14375 $as_echo_n "checking where to find the target gccgo... " >&6; }
14376 if test "x${build}" != "x${host}" ; then
14377 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14378 # We already found the complete path
14379 ac_dir=`dirname $GOC_FOR_TARGET`
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14381 $as_echo "pre-installed in $ac_dir" >&6; }
14382 else
14383 # Canadian cross, just use what we found
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14385 $as_echo "pre-installed" >&6; }
14387 else
14388 ok=yes
14389 case " ${configdirs} " in
14390 *" gcc "*) ;;
14391 *) ok=no ;;
14392 esac
14393 case ,${enable_languages}, in
14394 *,go,*) ;;
14395 *) ok=no ;;
14396 esac
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401 $as_echo "just compiled" >&6; }
14402 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
14404 ac_dir=`dirname $GOC_FOR_TARGET`
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406 $as_echo "pre-installed in $ac_dir" >&6; }
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 GOC_FOR_TARGET='$(GOC)'
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411 $as_echo "host tool" >&6; }
14412 else
14413 # We need a cross tool
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415 $as_echo "pre-installed" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14420 $as_echo_n "checking where to find the target ld... " >&6; }
14421 if test "x${build}" != "x${host}" ; then
14422 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $LD_FOR_TARGET`
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426 $as_echo "pre-installed in $ac_dir" >&6; }
14427 else
14428 # Canadian cross, just use what we found
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430 $as_echo "pre-installed" >&6; }
14432 else
14433 ok=yes
14434 case " ${configdirs} " in
14435 *" ld "*) ;;
14436 *) ok=no ;;
14437 esac
14439 if test $ok = yes; then
14440 # An in-tree tool is available and we can use it
14441 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14443 $as_echo "just compiled" >&6; }
14444 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
14446 ac_dir=`dirname $LD_FOR_TARGET`
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448 $as_echo "pre-installed in $ac_dir" >&6; }
14449 elif test "x$target" = "x$host"; then
14450 # We can use an host tool
14451 LD_FOR_TARGET='$(LD)'
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14453 $as_echo "host tool" >&6; }
14454 else
14455 # We need a cross tool
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457 $as_echo "pre-installed" >&6; }
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14462 $as_echo_n "checking where to find the target lipo... " >&6; }
14463 if test "x${build}" != "x${host}" ; then
14464 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
14466 ac_dir=`dirname $LIPO_FOR_TARGET`
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468 $as_echo "pre-installed in $ac_dir" >&6; }
14469 else
14470 # Canadian cross, just use what we found
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14472 $as_echo "pre-installed" >&6; }
14474 else
14475 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14476 # We already found the complete path
14477 ac_dir=`dirname $LIPO_FOR_TARGET`
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14479 $as_echo "pre-installed in $ac_dir" >&6; }
14480 elif test "x$target" = "x$host"; then
14481 # We can use an host tool
14482 LIPO_FOR_TARGET='$(LIPO)'
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14484 $as_echo "host tool" >&6; }
14485 else
14486 # We need a cross tool
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14488 $as_echo "pre-installed" >&6; }
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14493 $as_echo_n "checking where to find the target nm... " >&6; }
14494 if test "x${build}" != "x${host}" ; then
14495 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14496 # We already found the complete path
14497 ac_dir=`dirname $NM_FOR_TARGET`
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14499 $as_echo "pre-installed in $ac_dir" >&6; }
14500 else
14501 # Canadian cross, just use what we found
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14503 $as_echo "pre-installed" >&6; }
14505 else
14506 ok=yes
14507 case " ${configdirs} " in
14508 *" binutils "*) ;;
14509 *) ok=no ;;
14510 esac
14512 if test $ok = yes; then
14513 # An in-tree tool is available and we can use it
14514 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14516 $as_echo "just compiled" >&6; }
14517 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14518 # We already found the complete path
14519 ac_dir=`dirname $NM_FOR_TARGET`
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14521 $as_echo "pre-installed in $ac_dir" >&6; }
14522 elif test "x$target" = "x$host"; then
14523 # We can use an host tool
14524 NM_FOR_TARGET='$(NM)'
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14526 $as_echo "host tool" >&6; }
14527 else
14528 # We need a cross tool
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14530 $as_echo "pre-installed" >&6; }
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14535 $as_echo_n "checking where to find the target objcopy... " >&6; }
14536 if test "x${build}" != "x${host}" ; then
14537 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14538 # We already found the complete path
14539 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14541 $as_echo "pre-installed in $ac_dir" >&6; }
14542 else
14543 # Canadian cross, just use what we found
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14545 $as_echo "pre-installed" >&6; }
14547 else
14548 ok=yes
14549 case " ${configdirs} " in
14550 *" binutils "*) ;;
14551 *) ok=no ;;
14552 esac
14554 if test $ok = yes; then
14555 # An in-tree tool is available and we can use it
14556 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14558 $as_echo "just compiled" >&6; }
14559 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14560 # We already found the complete path
14561 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14563 $as_echo "pre-installed in $ac_dir" >&6; }
14564 elif test "x$target" = "x$host"; then
14565 # We can use an host tool
14566 OBJCOPY_FOR_TARGET='$(OBJDUMP)'
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14568 $as_echo "host tool" >&6; }
14569 else
14570 # We need a cross tool
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14572 $as_echo "pre-installed" >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14577 $as_echo_n "checking where to find the target objdump... " >&6; }
14578 if test "x${build}" != "x${host}" ; then
14579 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14580 # We already found the complete path
14581 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14583 $as_echo "pre-installed in $ac_dir" >&6; }
14584 else
14585 # Canadian cross, just use what we found
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14587 $as_echo "pre-installed" >&6; }
14589 else
14590 ok=yes
14591 case " ${configdirs} " in
14592 *" binutils "*) ;;
14593 *) ok=no ;;
14594 esac
14596 if test $ok = yes; then
14597 # An in-tree tool is available and we can use it
14598 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14600 $as_echo "just compiled" >&6; }
14601 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14602 # We already found the complete path
14603 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14605 $as_echo "pre-installed in $ac_dir" >&6; }
14606 elif test "x$target" = "x$host"; then
14607 # We can use an host tool
14608 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14610 $as_echo "host tool" >&6; }
14611 else
14612 # We need a cross tool
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14614 $as_echo "pre-installed" >&6; }
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14619 $as_echo_n "checking where to find the target ranlib... " >&6; }
14620 if test "x${build}" != "x${host}" ; then
14621 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14622 # We already found the complete path
14623 ac_dir=`dirname $RANLIB_FOR_TARGET`
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14625 $as_echo "pre-installed in $ac_dir" >&6; }
14626 else
14627 # Canadian cross, just use what we found
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14629 $as_echo "pre-installed" >&6; }
14631 else
14632 ok=yes
14633 case " ${configdirs} " in
14634 *" binutils "*) ;;
14635 *) ok=no ;;
14636 esac
14638 if test $ok = yes; then
14639 # An in-tree tool is available and we can use it
14640 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14642 $as_echo "just compiled" >&6; }
14643 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14644 # We already found the complete path
14645 ac_dir=`dirname $RANLIB_FOR_TARGET`
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14647 $as_echo "pre-installed in $ac_dir" >&6; }
14648 elif test "x$target" = "x$host"; then
14649 # We can use an host tool
14650 RANLIB_FOR_TARGET='$(RANLIB)'
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14652 $as_echo "host tool" >&6; }
14653 else
14654 # We need a cross tool
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14656 $as_echo "pre-installed" >&6; }
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14661 $as_echo_n "checking where to find the target readelf... " >&6; }
14662 if test "x${build}" != "x${host}" ; then
14663 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14664 # We already found the complete path
14665 ac_dir=`dirname $READELF_FOR_TARGET`
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14667 $as_echo "pre-installed in $ac_dir" >&6; }
14668 else
14669 # Canadian cross, just use what we found
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14671 $as_echo "pre-installed" >&6; }
14673 else
14674 ok=yes
14675 case " ${configdirs} " in
14676 *" binutils "*) ;;
14677 *) ok=no ;;
14678 esac
14680 if test $ok = yes; then
14681 # An in-tree tool is available and we can use it
14682 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14684 $as_echo "just compiled" >&6; }
14685 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14686 # We already found the complete path
14687 ac_dir=`dirname $READELF_FOR_TARGET`
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14689 $as_echo "pre-installed in $ac_dir" >&6; }
14690 elif test "x$target" = "x$host"; then
14691 # We can use an host tool
14692 READELF_FOR_TARGET='$(READELF)'
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14694 $as_echo "host tool" >&6; }
14695 else
14696 # We need a cross tool
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14698 $as_echo "pre-installed" >&6; }
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14703 $as_echo_n "checking where to find the target strip... " >&6; }
14704 if test "x${build}" != "x${host}" ; then
14705 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14706 # We already found the complete path
14707 ac_dir=`dirname $STRIP_FOR_TARGET`
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14709 $as_echo "pre-installed in $ac_dir" >&6; }
14710 else
14711 # Canadian cross, just use what we found
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14713 $as_echo "pre-installed" >&6; }
14715 else
14716 ok=yes
14717 case " ${configdirs} " in
14718 *" binutils "*) ;;
14719 *) ok=no ;;
14720 esac
14722 if test $ok = yes; then
14723 # An in-tree tool is available and we can use it
14724 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14726 $as_echo "just compiled" >&6; }
14727 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14728 # We already found the complete path
14729 ac_dir=`dirname $STRIP_FOR_TARGET`
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14731 $as_echo "pre-installed in $ac_dir" >&6; }
14732 elif test "x$target" = "x$host"; then
14733 # We can use an host tool
14734 STRIP_FOR_TARGET='$(STRIP)'
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14736 $as_echo "host tool" >&6; }
14737 else
14738 # We need a cross tool
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14740 $as_echo "pre-installed" >&6; }
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14745 $as_echo_n "checking where to find the target windres... " >&6; }
14746 if test "x${build}" != "x${host}" ; then
14747 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14748 # We already found the complete path
14749 ac_dir=`dirname $WINDRES_FOR_TARGET`
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14751 $as_echo "pre-installed in $ac_dir" >&6; }
14752 else
14753 # Canadian cross, just use what we found
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14755 $as_echo "pre-installed" >&6; }
14757 else
14758 ok=yes
14759 case " ${configdirs} " in
14760 *" binutils "*) ;;
14761 *) ok=no ;;
14762 esac
14764 if test $ok = yes; then
14765 # An in-tree tool is available and we can use it
14766 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14768 $as_echo "just compiled" >&6; }
14769 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14770 # We already found the complete path
14771 ac_dir=`dirname $WINDRES_FOR_TARGET`
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14773 $as_echo "pre-installed in $ac_dir" >&6; }
14774 elif test "x$target" = "x$host"; then
14775 # We can use an host tool
14776 WINDRES_FOR_TARGET='$(WINDRES)'
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14778 $as_echo "host tool" >&6; }
14779 else
14780 # We need a cross tool
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14782 $as_echo "pre-installed" >&6; }
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14787 $as_echo_n "checking where to find the target windmc... " >&6; }
14788 if test "x${build}" != "x${host}" ; then
14789 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14790 # We already found the complete path
14791 ac_dir=`dirname $WINDMC_FOR_TARGET`
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14793 $as_echo "pre-installed in $ac_dir" >&6; }
14794 else
14795 # Canadian cross, just use what we found
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14797 $as_echo "pre-installed" >&6; }
14799 else
14800 ok=yes
14801 case " ${configdirs} " in
14802 *" binutils "*) ;;
14803 *) ok=no ;;
14804 esac
14806 if test $ok = yes; then
14807 # An in-tree tool is available and we can use it
14808 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14810 $as_echo "just compiled" >&6; }
14811 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14812 # We already found the complete path
14813 ac_dir=`dirname $WINDMC_FOR_TARGET`
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14815 $as_echo "pre-installed in $ac_dir" >&6; }
14816 elif test "x$target" = "x$host"; then
14817 # We can use an host tool
14818 WINDMC_FOR_TARGET='$(WINDMC)'
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14820 $as_echo "host tool" >&6; }
14821 else
14822 # We need a cross tool
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14824 $as_echo "pre-installed" >&6; }
14832 # Certain tools may need extra flags.
14833 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14834 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14835 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14837 # When building target libraries, except in a Canadian cross, we use
14838 # the same toolchain as the compiler we just built.
14839 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14840 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14841 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14842 if test $host = $build; then
14843 case " $configdirs " in
14844 *" gcc "*)
14845 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14846 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14847 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14849 esac
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14857 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14858 # Check whether --enable-maintainer-mode was given.
14859 if test "${enable_maintainer_mode+set}" = set; then :
14860 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14861 else
14862 USE_MAINTAINER_MODE=no
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14866 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14869 if test "$USE_MAINTAINER_MODE" = yes; then
14870 MAINTAINER_MODE_TRUE=
14871 MAINTAINER_MODE_FALSE='#'
14872 else
14873 MAINTAINER_MODE_TRUE='#'
14874 MAINTAINER_MODE_FALSE=
14876 MAINT=$MAINTAINER_MODE_TRUE
14878 # ---------------------
14879 # GCC bootstrap support
14880 # ---------------------
14882 # Stage specific cflags for build.
14883 stage1_cflags="-g"
14884 case $build in
14885 vax-*-*)
14886 case ${GCC} in
14887 yes) stage1_cflags="-g -Wa,-J" ;;
14888 *) stage1_cflags="-g -J" ;;
14889 esac ;;
14890 esac
14894 # Enable --enable-checking in stage1 of the compiler.
14895 # Check whether --enable-stage1-checking was given.
14896 if test "${enable_stage1_checking+set}" = set; then :
14897 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14898 else
14899 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14900 stage1_checking=--enable-checking=yes,types
14901 else
14902 stage1_checking=--enable-checking=$enable_checking,types
14908 # Enable -Werror in bootstrap stage2 and later.
14909 # Check whether --enable-werror was given.
14910 if test "${enable_werror+set}" = set; then :
14911 enableval=$enable_werror;
14912 else
14913 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14914 enable_werror=yes
14915 else
14916 enable_werror=no
14920 case ${enable_werror} in
14921 yes) stage2_werror_flag="--enable-werror-always" ;;
14922 *) stage2_werror_flag="" ;;
14923 esac
14926 # Enable --enable-host-shared.
14927 # Check whether --enable-host-shared was given.
14928 if test "${enable_host_shared+set}" = set; then :
14929 enableval=$enable_host_shared; host_shared=$enableval
14930 else
14931 host_shared=no
14936 # Specify what files to not compare during bootstrap.
14938 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14939 case "$target" in
14940 hppa*64*-*-hpux*) ;;
14941 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14942 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14943 esac
14946 ac_config_files="$ac_config_files Makefile"
14948 cat >confcache <<\_ACEOF
14949 # This file is a shell script that caches the results of configure
14950 # tests run on this system so they can be shared between configure
14951 # scripts and configure runs, see configure's option --config-cache.
14952 # It is not useful on other systems. If it contains results you don't
14953 # want to keep, you may remove or edit it.
14955 # config.status only pays attention to the cache file if you give it
14956 # the --recheck option to rerun configure.
14958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14960 # following values.
14962 _ACEOF
14964 # The following way of writing the cache mishandles newlines in values,
14965 # but we know of no workaround that is simple, portable, and efficient.
14966 # So, we kill variables containing newlines.
14967 # Ultrix sh set writes to stderr and can't be redirected directly,
14968 # and sets the high bit in the cache file unless we assign to the vars.
14970 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14971 eval ac_val=\$$ac_var
14972 case $ac_val in #(
14973 *${as_nl}*)
14974 case $ac_var in #(
14975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14977 esac
14978 case $ac_var in #(
14979 _ | IFS | as_nl) ;; #(
14980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14981 *) { eval $ac_var=; unset $ac_var;} ;;
14982 esac ;;
14983 esac
14984 done
14986 (set) 2>&1 |
14987 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14988 *${as_nl}ac_space=\ *)
14989 # `set' does not quote correctly, so add quotes: double-quote
14990 # substitution turns \\\\ into \\, and sed turns \\ into \.
14991 sed -n \
14992 "s/'/'\\\\''/g;
14993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14994 ;; #(
14996 # `set' quotes correctly as required by POSIX, so do not add quotes.
14997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14999 esac |
15000 sort
15002 sed '
15003 /^ac_cv_env_/b end
15004 t clear
15005 :clear
15006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15007 t end
15008 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15009 :end' >>confcache
15010 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15011 if test -w "$cache_file"; then
15012 test "x$cache_file" != "x/dev/null" &&
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15014 $as_echo "$as_me: updating cache $cache_file" >&6;}
15015 cat confcache >$cache_file
15016 else
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15018 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15021 rm -f confcache
15023 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15024 # Let make expand exec_prefix.
15025 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15027 # Transform confdefs.h into DEFS.
15028 # Protect against shell expansion while executing Makefile rules.
15029 # Protect against Makefile macro expansion.
15031 # If the first sed substitution is executed (which looks for macros that
15032 # take arguments), then branch to the quote section. Otherwise,
15033 # look for a macro that doesn't take arguments.
15034 ac_script='
15035 :mline
15036 /\\$/{
15038 s,\\\n,,
15039 b mline
15041 t clear
15042 :clear
15043 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15044 t quote
15045 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15046 t quote
15047 b any
15048 :quote
15049 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15050 s/\[/\\&/g
15051 s/\]/\\&/g
15052 s/\$/$$/g
15054 :any
15057 s/^\n//
15058 s/\n/ /g
15062 DEFS=`sed -n "$ac_script" confdefs.h`
15065 ac_libobjs=
15066 ac_ltlibobjs=
15067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15068 # 1. Remove the extension, and $U if already installed.
15069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15072 # will be set to the directory where LIBOBJS objects are built.
15073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15075 done
15076 LIBOBJS=$ac_libobjs
15078 LTLIBOBJS=$ac_ltlibobjs
15082 : ${CONFIG_STATUS=./config.status}
15083 ac_write_fail=0
15084 ac_clean_files_save=$ac_clean_files
15085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15087 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15088 as_write_fail=0
15089 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15090 #! $SHELL
15091 # Generated by $as_me.
15092 # Run this file to recreate the current configuration.
15093 # Compiler output produced by configure, useful for debugging
15094 # configure, is in config.log if it exists.
15096 debug=false
15097 ac_cs_recheck=false
15098 ac_cs_silent=false
15100 SHELL=\${CONFIG_SHELL-$SHELL}
15101 export SHELL
15102 _ASEOF
15103 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15104 ## -------------------- ##
15105 ## M4sh Initialization. ##
15106 ## -------------------- ##
15108 # Be more Bourne compatible
15109 DUALCASE=1; export DUALCASE # for MKS sh
15110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15111 emulate sh
15112 NULLCMD=:
15113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15114 # is contrary to our usage. Disable this feature.
15115 alias -g '${1+"$@"}'='"$@"'
15116 setopt NO_GLOB_SUBST
15117 else
15118 case `(set -o) 2>/dev/null` in #(
15119 *posix*) :
15120 set -o posix ;; #(
15121 *) :
15123 esac
15127 as_nl='
15129 export as_nl
15130 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15131 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15134 # Prefer a ksh shell builtin over an external printf program on Solaris,
15135 # but without wasting forks for bash or zsh.
15136 if test -z "$BASH_VERSION$ZSH_VERSION" \
15137 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15138 as_echo='print -r --'
15139 as_echo_n='print -rn --'
15140 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15141 as_echo='printf %s\n'
15142 as_echo_n='printf %s'
15143 else
15144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15146 as_echo_n='/usr/ucb/echo -n'
15147 else
15148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15149 as_echo_n_body='eval
15150 arg=$1;
15151 case $arg in #(
15152 *"$as_nl"*)
15153 expr "X$arg" : "X\\(.*\\)$as_nl";
15154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15155 esac;
15156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15158 export as_echo_n_body
15159 as_echo_n='sh -c $as_echo_n_body as_echo'
15161 export as_echo_body
15162 as_echo='sh -c $as_echo_body as_echo'
15165 # The user is always right.
15166 if test "${PATH_SEPARATOR+set}" != set; then
15167 PATH_SEPARATOR=:
15168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15170 PATH_SEPARATOR=';'
15175 # IFS
15176 # We need space, tab and new line, in precisely that order. Quoting is
15177 # there to prevent editors from complaining about space-tab.
15178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15179 # splitting by setting IFS to empty value.)
15180 IFS=" "" $as_nl"
15182 # Find who we are. Look in the path if we contain no directory separator.
15183 case $0 in #((
15184 *[\\/]* ) as_myself=$0 ;;
15185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $PATH
15188 IFS=$as_save_IFS
15189 test -z "$as_dir" && as_dir=.
15190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15191 done
15192 IFS=$as_save_IFS
15195 esac
15196 # We did not find ourselves, most probably we were run as `sh COMMAND'
15197 # in which case we are not to be found in the path.
15198 if test "x$as_myself" = x; then
15199 as_myself=$0
15201 if test ! -f "$as_myself"; then
15202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15203 exit 1
15206 # Unset variables that we do not need and which cause bugs (e.g. in
15207 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15208 # suppresses any "Segmentation fault" message there. '((' could
15209 # trigger a bug in pdksh 5.2.14.
15210 for as_var in BASH_ENV ENV MAIL MAILPATH
15211 do eval test x\${$as_var+set} = xset \
15212 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15213 done
15214 PS1='$ '
15215 PS2='> '
15216 PS4='+ '
15218 # NLS nuisances.
15219 LC_ALL=C
15220 export LC_ALL
15221 LANGUAGE=C
15222 export LANGUAGE
15224 # CDPATH.
15225 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15228 # as_fn_error ERROR [LINENO LOG_FD]
15229 # ---------------------------------
15230 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15231 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15232 # script with status $?, using 1 if that was 0.
15233 as_fn_error ()
15235 as_status=$?; test $as_status -eq 0 && as_status=1
15236 if test "$3"; then
15237 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15240 $as_echo "$as_me: error: $1" >&2
15241 as_fn_exit $as_status
15242 } # as_fn_error
15245 # as_fn_set_status STATUS
15246 # -----------------------
15247 # Set $? to STATUS, without forking.
15248 as_fn_set_status ()
15250 return $1
15251 } # as_fn_set_status
15253 # as_fn_exit STATUS
15254 # -----------------
15255 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15256 as_fn_exit ()
15258 set +e
15259 as_fn_set_status $1
15260 exit $1
15261 } # as_fn_exit
15263 # as_fn_unset VAR
15264 # ---------------
15265 # Portably unset VAR.
15266 as_fn_unset ()
15268 { eval $1=; unset $1;}
15270 as_unset=as_fn_unset
15271 # as_fn_append VAR VALUE
15272 # ----------------------
15273 # Append the text in VALUE to the end of the definition contained in VAR. Take
15274 # advantage of any shell optimizations that allow amortized linear growth over
15275 # repeated appends, instead of the typical quadratic growth present in naive
15276 # implementations.
15277 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15278 eval 'as_fn_append ()
15280 eval $1+=\$2
15282 else
15283 as_fn_append ()
15285 eval $1=\$$1\$2
15287 fi # as_fn_append
15289 # as_fn_arith ARG...
15290 # ------------------
15291 # Perform arithmetic evaluation on the ARGs, and store the result in the
15292 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15293 # must be portable across $(()) and expr.
15294 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15295 eval 'as_fn_arith ()
15297 as_val=$(( $* ))
15299 else
15300 as_fn_arith ()
15302 as_val=`expr "$@" || test $? -eq 1`
15304 fi # as_fn_arith
15307 if expr a : '\(a\)' >/dev/null 2>&1 &&
15308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15309 as_expr=expr
15310 else
15311 as_expr=false
15314 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15315 as_basename=basename
15316 else
15317 as_basename=false
15320 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15321 as_dirname=dirname
15322 else
15323 as_dirname=false
15326 as_me=`$as_basename -- "$0" ||
15327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15328 X"$0" : 'X\(//\)$' \| \
15329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15330 $as_echo X/"$0" |
15331 sed '/^.*\/\([^/][^/]*\)\/*$/{
15332 s//\1/
15335 /^X\/\(\/\/\)$/{
15336 s//\1/
15339 /^X\/\(\/\).*/{
15340 s//\1/
15343 s/.*/./; q'`
15345 # Avoid depending upon Character Ranges.
15346 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15347 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15348 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15349 as_cr_digits='0123456789'
15350 as_cr_alnum=$as_cr_Letters$as_cr_digits
15352 ECHO_C= ECHO_N= ECHO_T=
15353 case `echo -n x` in #(((((
15354 -n*)
15355 case `echo 'xy\c'` in
15356 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15357 xy) ECHO_C='\c';;
15358 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15359 ECHO_T=' ';;
15360 esac;;
15362 ECHO_N='-n';;
15363 esac
15365 rm -f conf$$ conf$$.exe conf$$.file
15366 if test -d conf$$.dir; then
15367 rm -f conf$$.dir/conf$$.file
15368 else
15369 rm -f conf$$.dir
15370 mkdir conf$$.dir 2>/dev/null
15372 if (echo >conf$$.file) 2>/dev/null; then
15373 if ln -s conf$$.file conf$$ 2>/dev/null; then
15374 as_ln_s='ln -s'
15375 # ... but there are two gotchas:
15376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15378 # In both cases, we have to default to `cp -p'.
15379 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15380 as_ln_s='cp -p'
15381 elif ln conf$$.file conf$$ 2>/dev/null; then
15382 as_ln_s=ln
15383 else
15384 as_ln_s='cp -p'
15386 else
15387 as_ln_s='cp -p'
15389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15390 rmdir conf$$.dir 2>/dev/null
15393 # as_fn_mkdir_p
15394 # -------------
15395 # Create "$as_dir" as a directory, including parents if necessary.
15396 as_fn_mkdir_p ()
15399 case $as_dir in #(
15400 -*) as_dir=./$as_dir;;
15401 esac
15402 test -d "$as_dir" || eval $as_mkdir_p || {
15403 as_dirs=
15404 while :; do
15405 case $as_dir in #(
15406 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15407 *) as_qdir=$as_dir;;
15408 esac
15409 as_dirs="'$as_qdir' $as_dirs"
15410 as_dir=`$as_dirname -- "$as_dir" ||
15411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15412 X"$as_dir" : 'X\(//\)[^/]' \| \
15413 X"$as_dir" : 'X\(//\)$' \| \
15414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15415 $as_echo X"$as_dir" |
15416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15417 s//\1/
15420 /^X\(\/\/\)[^/].*/{
15421 s//\1/
15424 /^X\(\/\/\)$/{
15425 s//\1/
15428 /^X\(\/\).*/{
15429 s//\1/
15432 s/.*/./; q'`
15433 test -d "$as_dir" && break
15434 done
15435 test -z "$as_dirs" || eval "mkdir $as_dirs"
15436 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15439 } # as_fn_mkdir_p
15440 if mkdir -p . 2>/dev/null; then
15441 as_mkdir_p='mkdir -p "$as_dir"'
15442 else
15443 test -d ./-p && rmdir ./-p
15444 as_mkdir_p=false
15447 if test -x / >/dev/null 2>&1; then
15448 as_test_x='test -x'
15449 else
15450 if ls -dL / >/dev/null 2>&1; then
15451 as_ls_L_option=L
15452 else
15453 as_ls_L_option=
15455 as_test_x='
15456 eval sh -c '\''
15457 if test -d "$1"; then
15458 test -d "$1/.";
15459 else
15460 case $1 in #(
15461 -*)set "./$1";;
15462 esac;
15463 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15464 ???[sx]*):;;*)false;;esac;fi
15465 '\'' sh
15468 as_executable_p=$as_test_x
15470 # Sed expression to map a string onto a valid CPP name.
15471 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15473 # Sed expression to map a string onto a valid variable name.
15474 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15477 exec 6>&1
15478 ## ----------------------------------- ##
15479 ## Main body of $CONFIG_STATUS script. ##
15480 ## ----------------------------------- ##
15481 _ASEOF
15482 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15485 # Save the log message, to keep $0 and so on meaningful, and to
15486 # report actual input values of CONFIG_FILES etc. instead of their
15487 # values after options handling.
15488 ac_log="
15489 This file was extended by $as_me, which was
15490 generated by GNU Autoconf 2.64. Invocation command line was
15492 CONFIG_FILES = $CONFIG_FILES
15493 CONFIG_HEADERS = $CONFIG_HEADERS
15494 CONFIG_LINKS = $CONFIG_LINKS
15495 CONFIG_COMMANDS = $CONFIG_COMMANDS
15496 $ $0 $@
15498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15501 _ACEOF
15503 case $ac_config_files in *"
15504 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15505 esac
15509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15510 # Files that config.status was made for.
15511 config_files="$ac_config_files"
15513 _ACEOF
15515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15516 ac_cs_usage="\
15517 \`$as_me' instantiates files and other configuration actions
15518 from templates according to the current configuration. Unless the files
15519 and actions are specified as TAGs, all are instantiated by default.
15521 Usage: $0 [OPTION]... [TAG]...
15523 -h, --help print this help, then exit
15524 -V, --version print version number and configuration settings, then exit
15525 -q, --quiet, --silent
15526 do not print progress messages
15527 -d, --debug don't remove temporary files
15528 --recheck update $as_me by reconfiguring in the same conditions
15529 --file=FILE[:TEMPLATE]
15530 instantiate the configuration file FILE
15532 Configuration files:
15533 $config_files
15535 Report bugs to the package provider."
15537 _ACEOF
15538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15539 ac_cs_version="\\
15540 config.status
15541 configured by $0, generated by GNU Autoconf 2.64,
15542 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15544 Copyright (C) 2009 Free Software Foundation, Inc.
15545 This config.status script is free software; the Free Software Foundation
15546 gives unlimited permission to copy, distribute and modify it."
15548 ac_pwd='$ac_pwd'
15549 srcdir='$srcdir'
15550 INSTALL='$INSTALL'
15551 AWK='$AWK'
15552 test -n "\$AWK" || AWK=awk
15553 _ACEOF
15555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556 # The default lists apply if the user does not specify any file.
15557 ac_need_defaults=:
15558 while test $# != 0
15560 case $1 in
15561 --*=*)
15562 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15563 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15564 ac_shift=:
15567 ac_option=$1
15568 ac_optarg=$2
15569 ac_shift=shift
15571 esac
15573 case $ac_option in
15574 # Handling of the options.
15575 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15576 ac_cs_recheck=: ;;
15577 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15578 $as_echo "$ac_cs_version"; exit ;;
15579 --debug | --debu | --deb | --de | --d | -d )
15580 debug=: ;;
15581 --file | --fil | --fi | --f )
15582 $ac_shift
15583 case $ac_optarg in
15584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15585 esac
15586 as_fn_append CONFIG_FILES " '$ac_optarg'"
15587 ac_need_defaults=false;;
15588 --he | --h | --help | --hel | -h )
15589 $as_echo "$ac_cs_usage"; exit ;;
15590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15591 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15592 ac_cs_silent=: ;;
15594 # This is an error.
15595 -*) as_fn_error "unrecognized option: \`$1'
15596 Try \`$0 --help' for more information." ;;
15598 *) as_fn_append ac_config_targets " $1"
15599 ac_need_defaults=false ;;
15601 esac
15602 shift
15603 done
15605 ac_configure_extra_args=
15607 if $ac_cs_silent; then
15608 exec 6>/dev/null
15609 ac_configure_extra_args="$ac_configure_extra_args --silent"
15612 _ACEOF
15613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15614 if \$ac_cs_recheck; then
15615 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15616 shift
15617 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15618 CONFIG_SHELL='$SHELL'
15619 export CONFIG_SHELL
15620 exec "\$@"
15623 _ACEOF
15624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15625 exec 5>>config.log
15627 echo
15628 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15629 ## Running $as_me. ##
15630 _ASBOX
15631 $as_echo "$ac_log"
15632 } >&5
15634 _ACEOF
15635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637 # INIT-COMMANDS
15639 extrasub_build="$extrasub_build"
15640 extrasub_host="$extrasub_host"
15641 extrasub_target="$extrasub_target"
15643 _ACEOF
15645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15647 # Handling of arguments.
15648 for ac_config_target in $ac_config_targets
15650 case $ac_config_target in
15651 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15653 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15654 esac
15655 done
15658 # If the user did not use the arguments to specify the items to instantiate,
15659 # then the envvar interface is used. Set only those that are not.
15660 # We use the long form for the default assignment because of an extremely
15661 # bizarre bug on SunOS 4.1.3.
15662 if $ac_need_defaults; then
15663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15666 # Have a temporary directory for convenience. Make it in the build tree
15667 # simply because there is no reason against having it here, and in addition,
15668 # creating and moving files from /tmp can sometimes cause problems.
15669 # Hook for its removal unless debugging.
15670 # Note that there is a small window in which the directory will not be cleaned:
15671 # after its creation but before its name has been assigned to `$tmp'.
15672 $debug ||
15674 tmp=
15675 trap 'exit_status=$?
15676 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15678 trap 'as_fn_exit 1' 1 2 13 15
15680 # Create a (secure) tmp directory for tmp files.
15683 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15684 test -n "$tmp" && test -d "$tmp"
15685 } ||
15687 tmp=./conf$$-$RANDOM
15688 (umask 077 && mkdir "$tmp")
15689 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15691 # Set up the scripts for CONFIG_FILES section.
15692 # No need to generate them if there are no CONFIG_FILES.
15693 # This happens for instance with `./config.status config.h'.
15694 if test -n "$CONFIG_FILES"; then
15696 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15697 ac_cs_awk_getline=:
15698 ac_cs_awk_pipe_init=
15699 ac_cs_awk_read_file='
15700 while ((getline aline < (F[key])) > 0)
15701 print(aline)
15702 close(F[key])'
15703 ac_cs_awk_pipe_fini=
15704 else
15705 ac_cs_awk_getline=false
15706 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15707 ac_cs_awk_read_file='
15708 print "|#_!!_#|"
15709 print "cat " F[key] " &&"
15710 '$ac_cs_awk_pipe_init
15711 # The final `:' finishes the AND list.
15712 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15714 ac_cr=`echo X | tr X '\015'`
15715 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15716 # But we know of no other shell where ac_cr would be empty at this
15717 # point, so we can use a bashism as a fallback.
15718 if test "x$ac_cr" = x; then
15719 eval ac_cr=\$\'\\r\'
15721 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15722 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15723 ac_cs_awk_cr='\r'
15724 else
15725 ac_cs_awk_cr=$ac_cr
15728 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15729 _ACEOF
15731 # Create commands to substitute file output variables.
15733 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15734 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15735 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15736 echo "_ACAWK" &&
15737 echo "_ACEOF"
15738 } >conf$$files.sh &&
15739 . ./conf$$files.sh ||
15740 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15741 rm -f conf$$files.sh
15744 echo "cat >conf$$subs.awk <<_ACEOF" &&
15745 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15746 echo "_ACEOF"
15747 } >conf$$subs.sh ||
15748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15749 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15750 ac_delim='%!_!# '
15751 for ac_last_try in false false false false false :; do
15752 . ./conf$$subs.sh ||
15753 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15755 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15756 if test $ac_delim_n = $ac_delim_num; then
15757 break
15758 elif $ac_last_try; then
15759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15760 else
15761 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15763 done
15764 rm -f conf$$subs.sh
15766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15767 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15768 _ACEOF
15769 sed -n '
15771 s/^/S["/; s/!.*/"]=/
15774 s/^[^!]*!//
15775 :repl
15776 t repl
15777 s/'"$ac_delim"'$//
15778 t delim
15781 s/\(.\{148\}\).*/\1/
15782 t more1
15783 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15786 b repl
15787 :more1
15788 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15791 s/.\{148\}//
15792 t nl
15793 :delim
15795 s/\(.\{148\}\).*/\1/
15796 t more2
15797 s/["\\]/\\&/g; s/^/"/; s/$/"/
15800 :more2
15801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15804 s/.\{148\}//
15805 t delim
15806 ' <conf$$subs.awk | sed '
15807 /^[^""]/{
15809 s/\n//
15811 ' >>$CONFIG_STATUS || ac_write_fail=1
15812 rm -f conf$$subs.awk
15813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15814 _ACAWK
15815 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15816 for (key in S) S_is_set[key] = 1
15817 FS = "\a"
15818 \$ac_cs_awk_pipe_init
15821 line = $ 0
15822 nfields = split(line, field, "@")
15823 substed = 0
15824 len = length(field[1])
15825 for (i = 2; i < nfields; i++) {
15826 key = field[i]
15827 keylen = length(key)
15828 if (S_is_set[key]) {
15829 value = S[key]
15830 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15831 len += length(value) + length(field[++i])
15832 substed = 1
15833 } else
15834 len += 1 + keylen
15836 if (nfields == 3 && !substed) {
15837 key = field[2]
15838 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15839 \$ac_cs_awk_read_file
15840 next
15843 print line
15845 \$ac_cs_awk_pipe_fini
15846 _ACAWK
15847 _ACEOF
15848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15849 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15850 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15851 else
15853 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15854 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15855 _ACEOF
15857 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15858 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15859 # trailing colons and then remove the whole line if VPATH becomes empty
15860 # (actually we leave an empty line to preserve line numbers).
15861 if test "x$srcdir" = x.; then
15862 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15863 s/:*\$(srcdir):*/:/
15864 s/:*\${srcdir}:*/:/
15865 s/:*@srcdir@:*/:/
15866 s/^\([^=]*=[ ]*\):*/\1/
15867 s/:*$//
15868 s/^[^=]*=[ ]*$//
15872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15873 fi # test -n "$CONFIG_FILES"
15876 eval set X " :F $CONFIG_FILES "
15877 shift
15878 for ac_tag
15880 case $ac_tag in
15881 :[FHLC]) ac_mode=$ac_tag; continue;;
15882 esac
15883 case $ac_mode$ac_tag in
15884 :[FHL]*:*);;
15885 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15886 :[FH]-) ac_tag=-:-;;
15887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15888 esac
15889 ac_save_IFS=$IFS
15890 IFS=:
15891 set x $ac_tag
15892 IFS=$ac_save_IFS
15893 shift
15894 ac_file=$1
15895 shift
15897 case $ac_mode in
15898 :L) ac_source=$1;;
15899 :[FH])
15900 ac_file_inputs=
15901 for ac_f
15903 case $ac_f in
15904 -) ac_f="$tmp/stdin";;
15905 *) # Look for the file first in the build tree, then in the source tree
15906 # (if the path is not absolute). The absolute path cannot be DOS-style,
15907 # because $ac_f cannot contain `:'.
15908 test -f "$ac_f" ||
15909 case $ac_f in
15910 [\\/$]*) false;;
15911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15912 esac ||
15913 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15914 esac
15915 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15916 as_fn_append ac_file_inputs " '$ac_f'"
15917 done
15919 # Let's still pretend it is `configure' which instantiates (i.e., don't
15920 # use $as_me), people would be surprised to read:
15921 # /* config.h. Generated by config.status. */
15922 configure_input='Generated from '`
15923 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15924 `' by configure.'
15925 if test x"$ac_file" != x-; then
15926 configure_input="$ac_file. $configure_input"
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15928 $as_echo "$as_me: creating $ac_file" >&6;}
15930 # Neutralize special characters interpreted by sed in replacement strings.
15931 case $configure_input in #(
15932 *\&* | *\|* | *\\* )
15933 ac_sed_conf_input=`$as_echo "$configure_input" |
15934 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15935 *) ac_sed_conf_input=$configure_input;;
15936 esac
15938 case $ac_tag in
15939 *:-:* | *:-) cat >"$tmp/stdin" \
15940 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15941 esac
15943 esac
15945 ac_dir=`$as_dirname -- "$ac_file" ||
15946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15947 X"$ac_file" : 'X\(//\)[^/]' \| \
15948 X"$ac_file" : 'X\(//\)$' \| \
15949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15950 $as_echo X"$ac_file" |
15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15952 s//\1/
15955 /^X\(\/\/\)[^/].*/{
15956 s//\1/
15959 /^X\(\/\/\)$/{
15960 s//\1/
15963 /^X\(\/\).*/{
15964 s//\1/
15967 s/.*/./; q'`
15968 as_dir="$ac_dir"; as_fn_mkdir_p
15969 ac_builddir=.
15971 case "$ac_dir" in
15972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15975 # A ".." for each directory in $ac_dir_suffix.
15976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15977 case $ac_top_builddir_sub in
15978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15980 esac ;;
15981 esac
15982 ac_abs_top_builddir=$ac_pwd
15983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15984 # for backward compatibility:
15985 ac_top_builddir=$ac_top_build_prefix
15987 case $srcdir in
15988 .) # We are building in place.
15989 ac_srcdir=.
15990 ac_top_srcdir=$ac_top_builddir_sub
15991 ac_abs_top_srcdir=$ac_pwd ;;
15992 [\\/]* | ?:[\\/]* ) # Absolute name.
15993 ac_srcdir=$srcdir$ac_dir_suffix;
15994 ac_top_srcdir=$srcdir
15995 ac_abs_top_srcdir=$srcdir ;;
15996 *) # Relative name.
15997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15998 ac_top_srcdir=$ac_top_build_prefix$srcdir
15999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16000 esac
16001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16004 case $ac_mode in
16007 # CONFIG_FILE
16010 case $INSTALL in
16011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16013 esac
16014 _ACEOF
16016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16017 # If the template does not know about datarootdir, expand it.
16018 # FIXME: This hack should be removed a few years after 2.60.
16019 ac_datarootdir_hack=; ac_datarootdir_seen=
16020 ac_sed_dataroot='
16021 /datarootdir/ {
16025 /@datadir@/p
16026 /@docdir@/p
16027 /@infodir@/p
16028 /@localedir@/p
16029 /@mandir@/p'
16030 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16031 *datarootdir*) ac_datarootdir_seen=yes;;
16032 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16034 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16035 _ACEOF
16036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037 ac_datarootdir_hack='
16038 s&@datadir@&$datadir&g
16039 s&@docdir@&$docdir&g
16040 s&@infodir@&$infodir&g
16041 s&@localedir@&$localedir&g
16042 s&@mandir@&$mandir&g
16043 s&\\\${datarootdir}&$datarootdir&g' ;;
16044 esac
16045 _ACEOF
16047 # Neutralize VPATH when `$srcdir' = `.'.
16048 # Shell code in configure.ac might set extrasub.
16049 # FIXME: do we really want to maintain this feature?
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 ac_sed_extra="$ac_vpsub
16052 $extrasub
16053 _ACEOF
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16057 s|@configure_input@|$ac_sed_conf_input|;t t
16058 s&@top_builddir@&$ac_top_builddir_sub&;t t
16059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16060 s&@srcdir@&$ac_srcdir&;t t
16061 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16062 s&@top_srcdir@&$ac_top_srcdir&;t t
16063 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16064 s&@builddir@&$ac_builddir&;t t
16065 s&@abs_builddir@&$ac_abs_builddir&;t t
16066 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16067 s&@INSTALL@&$ac_INSTALL&;t t
16068 $ac_datarootdir_hack
16070 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16071 if $ac_cs_awk_getline; then
16072 $AWK -f "$tmp/subs.awk"
16073 else
16074 $AWK -f "$tmp/subs.awk" | $SHELL
16075 fi >$tmp/out \
16076 || as_fn_error "could not create $ac_file" "$LINENO" 5
16078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16079 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16080 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16082 which seems to be undefined. Please make sure it is defined." >&5
16083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16084 which seems to be undefined. Please make sure it is defined." >&2;}
16086 rm -f "$tmp/stdin"
16087 case $ac_file in
16088 -) cat "$tmp/out" && rm -f "$tmp/out";;
16089 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16090 esac \
16091 || as_fn_error "could not create $ac_file" "$LINENO" 5
16096 esac
16099 case $ac_file$ac_mode in
16100 "Makefile":F) sed "$extrasub_build" Makefile |
16101 sed "$extrasub_host" |
16102 sed "$extrasub_target" > mf$$
16103 mv -f mf$$ Makefile ;;
16105 esac
16106 done # for ac_tag
16109 as_fn_exit 0
16110 _ACEOF
16111 ac_clean_files=$ac_clean_files_save
16113 test $ac_write_fail = 0 ||
16114 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16117 # configure is writing to config.log, and then calls config.status.
16118 # config.status does its own redirection, appending to config.log.
16119 # Unfortunately, on DOS this fails, as config.log is still kept open
16120 # by configure, so config.status won't be able to write to it; its
16121 # output is simply discarded. So we exec the FD to /dev/null,
16122 # effectively closing config.log, so it can be properly (re)opened and
16123 # appended to by config.status. When coming back to configure, we
16124 # need to make the FD available again.
16125 if test "$no_create" != yes; then
16126 ac_cs_success=:
16127 ac_config_status_args=
16128 test "$silent" = yes &&
16129 ac_config_status_args="$ac_config_status_args --quiet"
16130 exec 5>/dev/null
16131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16132 exec 5>>config.log
16133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16134 # would make configure fail if this is the last instruction.
16135 $ac_cs_success || as_fn_exit $?
16137 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16139 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}