* configure.ac: Change target-libasan to target-libsanitizer.
[official-gcc.git] / configure
blob7a2c1f4f75e215b0396155f757142a1191555a4b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 READELF_FOR_TARGET
574 RANLIB_FOR_TARGET
575 OBJDUMP_FOR_TARGET
576 NM_FOR_TARGET
577 LIPO_FOR_TARGET
578 LD_FOR_TARGET
579 DLLTOOL_FOR_TARGET
580 AS_FOR_TARGET
581 AR_FOR_TARGET
582 GOC_FOR_TARGET
583 GFORTRAN_FOR_TARGET
584 GCJ_FOR_TARGET
585 GCC_FOR_TARGET
586 CXX_FOR_TARGET
587 CC_FOR_TARGET
588 READELF
589 OBJDUMP
590 OBJCOPY
591 WINDMC
592 WINDRES
593 STRIP
594 RANLIB
596 LIPO
598 DLLTOOL
601 RUNTEST
602 EXPECT
603 MAKEINFO
604 FLEX
607 BISON
608 YACC
609 WINDRES_FOR_BUILD
610 WINDMC_FOR_BUILD
611 RANLIB_FOR_BUILD
612 NM_FOR_BUILD
613 LD_FOR_BUILD
614 LDFLAGS_FOR_BUILD
615 GOC_FOR_BUILD
616 GFORTRAN_FOR_BUILD
617 GCJ_FOR_BUILD
618 DLLTOOL_FOR_BUILD
619 CXX_FOR_BUILD
620 CXXFLAGS_FOR_BUILD
621 CFLAGS_FOR_BUILD
622 CC_FOR_BUILD
623 AS_FOR_BUILD
624 AR_FOR_BUILD
625 target_configdirs
626 configdirs
627 build_configdirs
628 INSTALL_GDB_TK
629 GDB_TK
630 CONFIGURE_GDB_TK
631 build_tooldir
632 tooldir
633 GCC_SHLIB_SUBDIR
634 RPATH_ENVVAR
635 target_configargs
636 host_configargs
637 build_configargs
638 BUILD_CONFIG
639 LDFLAGS_FOR_TARGET
640 CXXFLAGS_FOR_TARGET
641 CFLAGS_FOR_TARGET
642 DEBUG_PREFIX_CFLAGS_FOR_TARGET
643 SYSROOT_CFLAGS_FOR_TARGET
644 stage1_languages
645 extra_host_libiberty_configure_flags
646 clooginc
647 clooglibs
648 islinc
649 poststage1_ldflags
650 poststage1_libs
651 stage1_ldflags
652 stage1_libs
653 extra_isl_gmp_configure_flags
654 extra_mpc_mpfr_configure_flags
655 extra_mpc_gmp_configure_flags
656 extra_mpfr_configure_flags
657 gmpinc
658 gmplibs
659 do_compare
660 GNATMAKE
661 GNATBIND
662 ac_ct_CXX
663 CXXFLAGS
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
672 EXTRA_CONFIGARGS_LIBJAVA
673 target_subdir
674 host_subdir
675 build_subdir
676 build_libsubdir
679 LN_S
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 target_os
685 target_vendor
686 target_cpu
687 target
688 host_os
689 host_vendor
690 host_cpu
691 host
692 target_noncanonical
693 host_noncanonical
694 build_noncanonical
695 build_os
696 build_vendor
697 build_cpu
698 build
699 TOPLEVEL_CONFIGURE_ARGUMENTS
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files='serialization_dependencies
739 host_makefile_frag
740 target_makefile_frag
741 alphaieee_frag
742 ospace_frag'
743 ac_user_opts='
744 enable_option_checking
745 with_build_libsubdir
746 enable_gold
747 enable_ld
748 enable_libquadmath
749 enable_libquadmath_support
750 enable_libada
751 enable_libssp
752 enable_static_libjava
753 enable_bootstrap
754 with_mpc
755 with_mpc_include
756 with_mpc_lib
757 with_mpfr_dir
758 with_mpfr
759 with_mpfr_include
760 with_mpfr_lib
761 with_gmp_dir
762 with_gmp
763 with_gmp_include
764 with_gmp_lib
765 with_host_libstdcxx
766 with_stage1_libs
767 with_stage1_ldflags
768 with_boot_libs
769 with_boot_ldflags
770 with_cloog
771 with_isl
772 with_isl_include
773 with_isl_lib
774 enable_isl_version_check
775 with_cloog_include
776 with_cloog_lib
777 enable_cloog_version_check
778 enable_lto
779 enable_stage1_languages
780 enable_objc_gc
781 with_build_sysroot
782 with_debug_prefix_map
783 with_build_config
784 enable_serial_configure
785 with_build_time_tools
786 enable_maintainer_mode
787 enable_stage1_checking
788 enable_werror
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
799 CXXFLAGS
801 build_configargs
802 host_configargs
803 target_configargs
806 DLLTOOL
808 LIPO
810 RANLIB
811 STRIP
812 WINDRES
813 WINDMC
814 OBJCOPY
815 OBJDUMP
816 READELF
817 CC_FOR_TARGET
818 CXX_FOR_TARGET
819 GCC_FOR_TARGET
820 GCJ_FOR_TARGET
821 GFORTRAN_FOR_TARGET
822 GOC_FOR_TARGET
823 AR_FOR_TARGET
824 AS_FOR_TARGET
825 DLLTOOL_FOR_TARGET
826 LD_FOR_TARGET
827 LIPO_FOR_TARGET
828 NM_FOR_TARGET
829 OBJDUMP_FOR_TARGET
830 RANLIB_FOR_TARGET
831 READELF_FOR_TARGET
832 STRIP_FOR_TARGET
833 WINDRES_FOR_TARGET
834 WINDMC_FOR_TARGET'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information."
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241 esac
1242 done
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299 test "$silent" = yes && exec 6>/dev/null
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1328 /^X\(\/\/\)$/{
1329 s//\1/
1332 /^X\(\/\).*/{
1333 s//\1/
1336 s/.*/./; q'`
1337 srcdir=$ac_confdir
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 srcdir=..
1341 else
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 case $srcdir in
1363 *" "*)
1364 as_fn_error "path to source, $srcdir, contains spaces"
1366 esac
1367 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445 System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 --target=TARGET configure for building compilers for TARGET [HOST]
1449 _ACEOF
1452 if test -n "$ac_init_help"; then
1454 cat <<\_ACEOF
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1461 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1462 --disable-libquadmath do not build libquadmath directory
1463 --disable-libquadmath-support
1464 disable libquadmath support for Fortran
1465 --enable-libada build libada directory
1466 --enable-libssp build libssp directory
1467 --enable-static-libjava[=ARG]
1468 build static libjava [default=no]
1469 --enable-bootstrap enable bootstrapping [yes if native build]
1470 --disable-isl-version-check
1471 disable check for ISL version
1472 --disable-cloog-version-check
1473 disable check for CLooG version
1474 --enable-lto enable link time optimization support
1475 --enable-stage1-languages[=all]
1476 choose additional languages to build during stage1.
1477 Mostly useful for compiler development
1478 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1479 Objective-C runtime
1480 --enable-serial-[{host,target,build}-]configure
1481 force sequential configuration of sub-packages for
1482 the host, target or build machine, or all
1483 sub-packages
1484 --enable-maintainer-mode
1485 enable make rules and dependencies not useful (and
1486 sometimes confusing) to the casual installer
1487 --enable-stage1-checking[=all]
1488 choose additional checking for stage1 of the
1489 compiler
1490 --enable-werror enable -Werror in bootstrap stage2 and later
1492 Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-build-libsubdir=DIR Directory where to find libraries for build system
1496 --with-mpc=PATH specify prefix directory for installed MPC package.
1497 Equivalent to --with-mpc-include=PATH/include plus
1498 --with-mpc-lib=PATH/lib
1499 --with-mpc-include=PATH specify directory for installed MPC include files
1500 --with-mpc-lib=PATH specify directory for the installed MPC library
1501 --with-mpfr-dir=PATH this option has been REMOVED
1502 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1503 Equivalent to --with-mpfr-include=PATH/include plus
1504 --with-mpfr-lib=PATH/lib
1505 --with-mpfr-include=PATH
1506 specify directory for installed MPFR include files
1507 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1508 --with-gmp-dir=PATH this option has been REMOVED
1509 --with-gmp=PATH specify prefix directory for the installed GMP
1510 package. Equivalent to
1511 --with-gmp-include=PATH/include plus
1512 --with-gmp-lib=PATH/lib
1513 --with-gmp-include=PATH specify directory for installed GMP include files
1514 --with-gmp-lib=PATH specify directory for the installed GMP library
1515 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1516 linking with PPL
1517 --with-stage1-libs=LIBS libraries for stage1
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
1520 --with-boot-libs=LIBS libraries for stage2 and later
1521 --with-boot-ldflags=FLAGS
1522 linker flags for stage2 and later
1523 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1524 package. Equivalent to
1525 --with-cloog-include=PATH/include plus
1526 --with-cloog-lib=PATH/lib
1527 --with-isl=PATH Specify prefix directory for the installed ISL
1528 package. Equivalent to
1529 --with-isl-include=PATH/include plus
1530 --with-isl-lib=PATH/lib
1531 --with-isl-include=PATH Specify directory for installed ISL include files
1532 --with-isl-lib=PATH Specify the directory for the installed ISL library
1533 --with-cloog-include=PATH
1534 Specify directory for installed CLooG include files
1535 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1536 library
1537 --with-build-sysroot=SYSROOT
1538 use sysroot as the system root during the build
1539 --with-debug-prefix-map='A=B C=D ...'
1540 map A to B, C to D ... in debug information
1541 --with-build-config='NAME NAME2...'
1542 use config/NAME.mk build configuration
1543 --with-build-time-tools=PATH
1544 use given path to find target tools during the build
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1554 CXX C++ compiler command
1555 CXXFLAGS C++ compiler flags
1556 build_configargs
1557 additional configure arguments for build directories
1558 host_configargs
1559 additional configure arguments for host directories
1560 target_configargs
1561 additional configure arguments for target directories
1562 AR AR for the host
1563 AS AS for the host
1564 DLLTOOL DLLTOOL for the host
1565 LD LD for the host
1566 LIPO LIPO for the host
1567 NM NM for the host
1568 RANLIB RANLIB for the host
1569 STRIP STRIP for the host
1570 WINDRES WINDRES for the host
1571 WINDMC WINDMC for the host
1572 OBJCOPY OBJCOPY for the host
1573 OBJDUMP OBJDUMP for the host
1574 READELF READELF for the host
1575 CC_FOR_TARGET
1576 CC for the target
1577 CXX_FOR_TARGET
1578 CXX for the target
1579 GCC_FOR_TARGET
1580 GCC for the target
1581 GCJ_FOR_TARGET
1582 GCJ for the target
1583 GFORTRAN_FOR_TARGET
1584 GFORTRAN for the target
1585 GOC_FOR_TARGET
1586 GOC for the target
1587 AR_FOR_TARGET
1588 AR for the target
1589 AS_FOR_TARGET
1590 AS for the target
1591 DLLTOOL_FOR_TARGET
1592 DLLTOOL for the target
1593 LD_FOR_TARGET
1594 LD for the target
1595 LIPO_FOR_TARGET
1596 LIPO for the target
1597 NM_FOR_TARGET
1598 NM for the target
1599 OBJDUMP_FOR_TARGET
1600 OBJDUMP for the target
1601 RANLIB_FOR_TARGET
1602 RANLIB for the target
1603 READELF_FOR_TARGET
1604 READELF for the target
1605 STRIP_FOR_TARGET
1606 STRIP for the target
1607 WINDRES_FOR_TARGET
1608 WINDRES for the target
1609 WINDMC_FOR_TARGET
1610 WINDMC for the target
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1615 Report bugs to the package provider.
1616 _ACEOF
1617 ac_status=$?
1620 if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
1626 ac_builddir=.
1628 case "$ac_dir" in
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638 esac
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1644 case $srcdir in
1645 .) # We are building in place.
1646 ac_srcdir=.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 esac
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1668 else
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1672 done
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1677 cat <<\_ACEOF
1678 configure
1679 generated by GNU Autoconf 2.64
1681 Copyright (C) 2009 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1684 _ACEOF
1685 exit
1688 ## ------------------------ ##
1689 ## Autoconf initialization. ##
1690 ## ------------------------ ##
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=1
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1728 } # ac_fn_c_try_compile
1730 # ac_fn_cxx_try_compile LINENO
1731 # ----------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_cxx_try_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_cxx_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=1
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1766 } # ac_fn_cxx_try_compile
1768 # ac_fn_cxx_try_link LINENO
1769 # -------------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_cxx_try_link ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776 case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_cxx_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 $as_test_x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798 else
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=1
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1812 } # ac_fn_cxx_try_link
1814 # ac_fn_c_try_link LINENO
1815 # -----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_link ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext conftest$ac_exeext
1821 if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest$ac_exeext && {
1840 test "$cross_compiling" = yes ||
1841 $as_test_x conftest$ac_exeext
1842 }; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=1
1850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852 # interfere with the next link command; also delete a directory that is
1853 # left behind by Apple's compiler. We do this before executing the actions.
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 return $ac_retval
1858 } # ac_fn_c_try_link
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1864 ac_fn_c_try_run ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=$ac_status
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898 return $ac_retval
1900 } # ac_fn_c_try_run
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1905 It was created by $as_me, which was
1906 generated by GNU Autoconf 2.64. Invocation command line was
1908 $ $0 $@
1910 _ACEOF
1911 exec 5>>config.log
1913 cat <<_ASUNAME
1914 ## --------- ##
1915 ## Platform. ##
1916 ## --------- ##
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1935 _ASUNAME
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944 IFS=$as_save_IFS
1946 } >&5
1948 cat >&5 <<_ACEOF
1951 ## ----------- ##
1952 ## Core tests. ##
1953 ## ----------- ##
1955 _ACEOF
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1963 ac_configure_args=
1964 ac_configure_args0=
1965 ac_configure_args1=
1966 ac_must_keep_next=false
1967 for ac_pass in 1 2
1969 for ac_arg
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1998 as_fn_append ac_configure_args " '$ac_arg'"
2000 esac
2001 done
2002 done
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2014 echo
2016 cat <<\_ASBOX
2017 ## ---------------- ##
2018 ## Cache variables. ##
2019 ## ---------------- ##
2020 _ASBOX
2021 echo
2022 # The following way of writing the cache mishandles newlines in values,
2024 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in #(
2027 *${as_nl}*)
2028 case $ac_var in #(
2029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031 esac
2032 case $ac_var in #(
2033 _ | IFS | as_nl) ;; #(
2034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035 *) { eval $ac_var=; unset $ac_var;} ;;
2036 esac ;;
2037 esac
2038 done
2039 (set) 2>&1 |
2040 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041 *${as_nl}ac_space=\ *)
2042 sed -n \
2043 "s/'\''/'\''\\\\'\'''\''/g;
2044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045 ;; #(
2047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2049 esac |
2050 sort
2052 echo
2054 cat <<\_ASBOX
2055 ## ----------------- ##
2056 ## Output variables. ##
2057 ## ----------------- ##
2058 _ASBOX
2059 echo
2060 for ac_var in $ac_subst_vars
2062 eval ac_val=\$$ac_var
2063 case $ac_val in
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 esac
2066 $as_echo "$ac_var='\''$ac_val'\''"
2067 done | sort
2068 echo
2070 if test -n "$ac_subst_files"; then
2071 cat <<\_ASBOX
2072 ## ------------------- ##
2073 ## File substitutions. ##
2074 ## ------------------- ##
2075 _ASBOX
2076 echo
2077 for ac_var in $ac_subst_files
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2088 if test -s confdefs.h; then
2089 cat <<\_ASBOX
2090 ## ----------- ##
2091 ## confdefs.h. ##
2092 ## ----------- ##
2093 _ASBOX
2094 echo
2095 cat confdefs.h
2096 echo
2098 test "$ac_signal" != 0 &&
2099 $as_echo "$as_me: caught signal $ac_signal"
2100 $as_echo "$as_me: exit $exit_status"
2101 } >&5
2102 rm -f core *.core core.conftest.* &&
2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104 exit $exit_status
2106 for ac_signal in 1 2 13 15; do
2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2108 done
2109 ac_signal=0
2111 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2112 rm -f -r conftest* confdefs.h
2114 $as_echo "/* confdefs.h */" > confdefs.h
2116 # Predefined preprocessor variables.
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_NAME "$PACKAGE_NAME"
2120 _ACEOF
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124 _ACEOF
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2128 _ACEOF
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_STRING "$PACKAGE_STRING"
2132 _ACEOF
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136 _ACEOF
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_URL "$PACKAGE_URL"
2140 _ACEOF
2143 # Let the site file select an alternate cache file if it wants to.
2144 # Prefer an explicitly selected file to automatically selected ones.
2145 ac_site_file1=NONE
2146 ac_site_file2=NONE
2147 if test -n "$CONFIG_SITE"; then
2148 ac_site_file1=$CONFIG_SITE
2149 elif test "x$prefix" != xNONE; then
2150 ac_site_file1=$prefix/share/config.site
2151 ac_site_file2=$prefix/etc/config.site
2152 else
2153 ac_site_file1=$ac_default_prefix/share/config.site
2154 ac_site_file2=$ac_default_prefix/etc/config.site
2156 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2158 test "x$ac_site_file" = xNONE && continue
2159 if test -r "$ac_site_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2161 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2162 sed 's/^/| /' "$ac_site_file" >&5
2163 . "$ac_site_file"
2165 done
2167 if test -r "$cache_file"; then
2168 # Some versions of bash will fail to source /dev/null (special
2169 # files actually), so we avoid doing that.
2170 if test -f "$cache_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2172 $as_echo "$as_me: loading cache $cache_file" >&6;}
2173 case $cache_file in
2174 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2175 *) . "./$cache_file";;
2176 esac
2178 else
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2180 $as_echo "$as_me: creating cache $cache_file" >&6;}
2181 >$cache_file
2184 # Check that the precious variables saved in the cache have kept the same
2185 # value.
2186 ac_cache_corrupted=false
2187 for ac_var in $ac_precious_vars; do
2188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2189 eval ac_new_set=\$ac_env_${ac_var}_set
2190 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2191 eval ac_new_val=\$ac_env_${ac_var}_value
2192 case $ac_old_set,$ac_new_set in
2193 set,)
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2195 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2196 ac_cache_corrupted=: ;;
2197 ,set)
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2200 ac_cache_corrupted=: ;;
2201 ,);;
2203 if test "x$ac_old_val" != "x$ac_new_val"; then
2204 # differences in whitespace do not lead to failure.
2205 ac_old_val_w=`echo x $ac_old_val`
2206 ac_new_val_w=`echo x $ac_new_val`
2207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2209 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2210 ac_cache_corrupted=:
2211 else
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2213 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2214 eval $ac_var=\$ac_old_val
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2217 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2219 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2220 fi;;
2221 esac
2222 # Pass precious variables to config.status.
2223 if test "$ac_new_set" = set; then
2224 case $ac_new_val in
2225 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2226 *) ac_arg=$ac_var=$ac_new_val ;;
2227 esac
2228 case " $ac_configure_args " in
2229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2230 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2231 esac
2233 done
2234 if $ac_cache_corrupted; then
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2238 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2239 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2241 ## -------------------- ##
2242 ## Main body of script. ##
2243 ## -------------------- ##
2245 ac_ext=c
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259 progname=$0
2260 # if PWD already has a value, it is probably wrong.
2261 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2263 # Export original configure arguments for use by sub-configures.
2264 # Quote arguments with shell meta charatcers.
2265 TOPLEVEL_CONFIGURE_ARGUMENTS=
2266 set -- "$progname" "$@"
2267 for ac_arg
2269 case "$ac_arg" in
2270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2272 # if the argument is of the form -foo=baz, quote the baz part only
2273 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2274 *) ;;
2275 esac
2276 # Add the quoted argument to the list.
2277 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2278 done
2279 if test "$silent" = yes; then
2280 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2282 # Remove the initial space we just introduced and, as these will be
2283 # expanded by make, quote '$'.
2284 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2287 # Find the build, host, and target systems.
2288 ac_aux_dir=
2289 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2290 for ac_t in install-sh install.sh shtool; do
2291 if test -f "$ac_dir/$ac_t"; then
2292 ac_aux_dir=$ac_dir
2293 ac_install_sh="$ac_aux_dir/$ac_t -c"
2294 break 2
2296 done
2297 done
2298 if test -z "$ac_aux_dir"; then
2299 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2302 # These three variables are undocumented and unsupported,
2303 # and are intended to be withdrawn in a future Autoconf release.
2304 # They can cause serious problems if a builder's source tree is in a directory
2305 # whose full name contains unusual characters.
2306 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2307 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2308 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311 # Make sure we can run config.sub.
2312 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2313 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2316 $as_echo_n "checking build system type... " >&6; }
2317 if test "${ac_cv_build+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 ac_build_alias=$build_alias
2321 test "x$ac_build_alias" = x &&
2322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2323 test "x$ac_build_alias" = x &&
2324 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2325 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2326 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2330 $as_echo "$ac_cv_build" >&6; }
2331 case $ac_cv_build in
2332 *-*-*) ;;
2333 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2334 esac
2335 build=$ac_cv_build
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_build
2338 shift
2339 build_cpu=$1
2340 build_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 build_os=$*
2345 IFS=$ac_save_IFS
2346 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2349 case ${build_alias} in
2350 "") build_noncanonical=${build} ;;
2351 *) build_noncanonical=${build_alias} ;;
2352 esac
2356 case ${host_alias} in
2357 "") host_noncanonical=${build_noncanonical} ;;
2358 *) host_noncanonical=${host_alias} ;;
2359 esac
2363 case ${target_alias} in
2364 "") target_noncanonical=${host_noncanonical} ;;
2365 *) target_noncanonical=${target_alias} ;;
2366 esac
2371 test "$host_noncanonical" = "$target_noncanonical" &&
2372 test "$program_prefix$program_suffix$program_transform_name" = \
2373 NONENONEs,x,x, &&
2374 program_transform_name=s,y,y,
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2377 $as_echo_n "checking host system type... " >&6; }
2378 if test "${ac_cv_host+set}" = set; then :
2379 $as_echo_n "(cached) " >&6
2380 else
2381 if test "x$host_alias" = x; then
2382 ac_cv_host=$ac_cv_build
2383 else
2384 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2385 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2390 $as_echo "$ac_cv_host" >&6; }
2391 case $ac_cv_host in
2392 *-*-*) ;;
2393 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2394 esac
2395 host=$ac_cv_host
2396 ac_save_IFS=$IFS; IFS='-'
2397 set x $ac_cv_host
2398 shift
2399 host_cpu=$1
2400 host_vendor=$2
2401 shift; shift
2402 # Remember, the first character of IFS is used to create $*,
2403 # except with old shells:
2404 host_os=$*
2405 IFS=$ac_save_IFS
2406 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2410 $as_echo_n "checking target system type... " >&6; }
2411 if test "${ac_cv_target+set}" = set; then :
2412 $as_echo_n "(cached) " >&6
2413 else
2414 if test "x$target_alias" = x; then
2415 ac_cv_target=$ac_cv_host
2416 else
2417 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2418 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2423 $as_echo "$ac_cv_target" >&6; }
2424 case $ac_cv_target in
2425 *-*-*) ;;
2426 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2427 esac
2428 target=$ac_cv_target
2429 ac_save_IFS=$IFS; IFS='-'
2430 set x $ac_cv_target
2431 shift
2432 target_cpu=$1
2433 target_vendor=$2
2434 shift; shift
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2437 target_os=$*
2438 IFS=$ac_save_IFS
2439 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2442 # The aliases save the names the user supplied, while $host etc.
2443 # will get canonicalized.
2444 test -n "$target_alias" &&
2445 test "$program_prefix$program_suffix$program_transform_name" = \
2446 NONENONEs,x,x, &&
2447 program_prefix=${target_alias}-
2449 test "$program_prefix" != NONE &&
2450 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2451 # Use a double $ so make ignores it.
2452 test "$program_suffix" != NONE &&
2453 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2454 # Double any \ or $.
2455 # By default was `s,x,x', remove it if useless.
2456 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2457 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2461 # Get 'install' or 'install-sh' and its variants.
2462 # Find a good install program. We prefer a C program (faster),
2463 # so one script is as good as another. But avoid the broken or
2464 # incompatible versions:
2465 # SysV /etc/install, /usr/sbin/install
2466 # SunOS /usr/etc/install
2467 # IRIX /sbin/install
2468 # AIX /bin/install
2469 # AmigaOS /C/install, which installs bootblocks on floppy discs
2470 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2471 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2472 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2473 # OS/2's system install, which has a completely different semantic
2474 # ./install, which can be erroneously created by make from ./install.sh.
2475 # Reject install programs that cannot install multiple files.
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2477 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2478 if test -z "$INSTALL"; then
2479 if test "${ac_cv_path_install+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 # Account for people who put trailing slashes in PATH elements.
2488 case $as_dir/ in #((
2489 ./ | .// | /[cC]/* | \
2490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2491 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2492 /usr/ucb/* ) ;;
2494 # OSF1 and SCO ODT 3.0 have their own names for install.
2495 # Don't use installbsd from OSF since it installs stuff as root
2496 # by default.
2497 for ac_prog in ginstall scoinst install; do
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2500 if test $ac_prog = install &&
2501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2502 # AIX install. It has an incompatible calling convention.
2504 elif test $ac_prog = install &&
2505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506 # program-specific install script used by HP pwplus--don't use.
2508 else
2509 rm -rf conftest.one conftest.two conftest.dir
2510 echo one > conftest.one
2511 echo two > conftest.two
2512 mkdir conftest.dir
2513 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2514 test -s conftest.one && test -s conftest.two &&
2515 test -s conftest.dir/conftest.one &&
2516 test -s conftest.dir/conftest.two
2517 then
2518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2519 break 3
2523 done
2524 done
2526 esac
2528 done
2529 IFS=$as_save_IFS
2531 rm -rf conftest.one conftest.two conftest.dir
2534 if test "${ac_cv_path_install+set}" = set; then
2535 INSTALL=$ac_cv_path_install
2536 else
2537 # As a last resort, use the slow shell script. Don't cache a
2538 # value for INSTALL within a source directory, because that will
2539 # break other packages using the cache if that directory is
2540 # removed, or if the value is a relative name.
2541 INSTALL=$ac_install_sh
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2545 $as_echo "$INSTALL" >&6; }
2547 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2548 # It thinks the first close brace ends the variable substitution.
2549 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2551 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2553 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2556 $as_echo_n "checking whether ln works... " >&6; }
2557 if test "${acx_cv_prog_LN+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 rm -f conftestdata_t
2561 echo >conftestdata_f
2562 if ln conftestdata_f conftestdata_t 2>/dev/null
2563 then
2564 acx_cv_prog_LN=ln
2565 else
2566 acx_cv_prog_LN=no
2568 rm -f conftestdata_f conftestdata_t
2571 if test $acx_cv_prog_LN = no; then
2572 LN="cp"
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2574 $as_echo "no, using $LN" >&6; }
2575 else
2576 LN="$acx_cv_prog_LN"
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578 $as_echo "yes" >&6; }
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2582 $as_echo_n "checking whether ln -s works... " >&6; }
2583 LN_S=$as_ln_s
2584 if test "$LN_S" = "ln -s"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2586 $as_echo "yes" >&6; }
2587 else
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2589 $as_echo "no, using $LN_S" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2593 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2594 if test "${ac_cv_path_SED+set}" = set; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2598 for ac_i in 1 2 3 4 5 6 7; do
2599 ac_script="$ac_script$as_nl$ac_script"
2600 done
2601 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2602 { ac_script=; unset ac_script;}
2603 if test -z "$SED"; then
2604 ac_path_SED_found=false
2605 # Loop through the user's path and test for each of PROGNAME-LIST
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_prog in sed gsed; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2614 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2615 # Check for GNU ac_path_SED and select it if it is found.
2616 # Check for GNU $ac_path_SED
2617 case `"$ac_path_SED" --version 2>&1` in
2618 *GNU*)
2619 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2621 ac_count=0
2622 $as_echo_n 0123456789 >"conftest.in"
2623 while :
2625 cat "conftest.in" "conftest.in" >"conftest.tmp"
2626 mv "conftest.tmp" "conftest.in"
2627 cp "conftest.in" "conftest.nl"
2628 $as_echo '' >> "conftest.nl"
2629 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2631 as_fn_arith $ac_count + 1 && ac_count=$as_val
2632 if test $ac_count -gt ${ac_path_SED_max-0}; then
2633 # Best one so far, save it but keep looking for a better one
2634 ac_cv_path_SED="$ac_path_SED"
2635 ac_path_SED_max=$ac_count
2637 # 10*(2^10) chars as input seems more than enough
2638 test $ac_count -gt 10 && break
2639 done
2640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2641 esac
2643 $ac_path_SED_found && break 3
2644 done
2645 done
2646 done
2647 IFS=$as_save_IFS
2648 if test -z "$ac_cv_path_SED"; then
2649 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2651 else
2652 ac_cv_path_SED=$SED
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2657 $as_echo "$ac_cv_path_SED" >&6; }
2658 SED="$ac_cv_path_SED"
2659 rm -f conftest.sed
2661 for ac_prog in gawk mawk nawk awk
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_AWK+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$AWK"; then
2671 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_AWK="$ac_prog"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2684 done
2685 done
2686 IFS=$as_save_IFS
2690 AWK=$ac_cv_prog_AWK
2691 if test -n "$AWK"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2693 $as_echo "$AWK" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2700 test -n "$AWK" && break
2701 done
2704 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2706 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2707 # a relative path.
2708 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2709 INSTALL="${srcpwd}/install-sh -c"
2712 # Set srcdir to "." if that's what it is.
2713 # This is important for multilib support.
2714 pwd=`${PWDCMD-pwd}`
2715 if test "${pwd}" = "${srcpwd}" ; then
2716 srcdir=.
2719 topsrcdir=$srcpwd
2721 extra_host_args=
2723 ### To add a new directory to the tree, first choose whether it is a target
2724 ### or a host dependent tool. Then put it into the appropriate list
2725 ### (library or tools, host or target), doing a dependency sort.
2727 # Subdirs will be configured in the order listed in build_configdirs,
2728 # configdirs, or target_configdirs; see the serialization section below.
2730 # Dependency sorting is only needed when *configuration* must be done in
2731 # a particular order. In all cases a dependency should be specified in
2732 # the Makefile, whether or not it's implicitly specified here.
2734 # Double entries in build_configdirs, configdirs, or target_configdirs may
2735 # cause circular dependencies and break everything horribly.
2737 # these library is used by various programs built for the build
2738 # environment
2740 build_libs="build-libiberty"
2742 # these tools are built for the build environment
2743 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2745 # these libraries are used by various programs built for the host environment
2747 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
2749 # these tools are built for the host environment
2750 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2751 # know that we are building the simulator.
2752 # binutils, gas and ld appear in that order because it makes sense to run
2753 # "make check" in that particular order.
2754 # If --enable-gold is used, "gold" may replace "ld".
2755 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2757 # libgcj represents the runtime libraries only used by gcj.
2758 libgcj="target-libffi \
2759 target-zlib \
2760 target-libjava"
2762 # these libraries are built for the target environment, and are built after
2763 # the host libraries and the host tools (which may be a cross compiler)
2764 # Note that libiberty is not a target library.
2765 target_libraries="target-libgcc \
2766 target-libbacktrace \
2767 target-libgloss \
2768 target-newlib \
2769 target-libgomp \
2770 target-libatomic \
2771 target-libitm \
2772 target-libstdc++-v3 \
2773 target-libmudflap \
2774 target-libsanitizer \
2775 target-libssp \
2776 target-libquadmath \
2777 target-libgfortran \
2778 target-boehm-gc \
2779 ${libgcj} \
2780 target-libobjc \
2781 target-libada \
2782 target-libgo"
2784 # these tools are built using the target libraries, and are intended to
2785 # run only in the target environment
2787 # note: any program that *uses* libraries that are in the "target_libraries"
2788 # list belongs in this list.
2790 target_tools="target-rda"
2792 ################################################################################
2794 ## All tools belong in one of the four categories, and are assigned above
2795 ## We assign ${configdirs} this way to remove all embedded newlines. This
2796 ## is important because configure will choke if they ever get through.
2797 ## ${configdirs} is directories we build using the host tools.
2798 ## ${target_configdirs} is directories we build using the target tools.
2799 configdirs=`echo ${host_libs} ${host_tools}`
2800 target_configdirs=`echo ${target_libraries} ${target_tools}`
2801 build_configdirs=`echo ${build_libs} ${build_tools}`
2805 ################################################################################
2807 srcname="gnu development package"
2809 # This gets set non-empty for some net releases of packages.
2810 appdirs=""
2812 # Define is_cross_compiler to save on calls to 'test'.
2813 is_cross_compiler=
2814 if test x"${host}" = x"${target}" ; then
2815 is_cross_compiler=no
2816 else
2817 is_cross_compiler=yes
2820 # Find the build and target subdir names.
2822 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2823 # have matching libraries, they should use host libraries: Makefile.tpl
2824 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2825 # However, they still use the build modules, because the corresponding
2826 # host modules (e.g. bison) are only built for the host when bootstrap
2827 # finishes. So:
2828 # - build_subdir is where we find build modules, and never changes.
2829 # - build_libsubdir is where we find build libraries, and can be overridden.
2831 # Prefix 'build-' so this never conflicts with target_subdir.
2832 build_subdir="build-${build_noncanonical}"
2834 # Check whether --with-build-libsubdir was given.
2835 if test "${with_build_libsubdir+set}" = set; then :
2836 withval=$with_build_libsubdir; build_libsubdir="$withval"
2837 else
2838 build_libsubdir="$build_subdir"
2841 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2842 if ( test $srcdir = . && test -d gcc ) \
2843 || test -d $srcdir/../host-${host_noncanonical}; then
2844 host_subdir="host-${host_noncanonical}"
2845 else
2846 host_subdir=.
2848 # No prefix.
2849 target_subdir=${target_noncanonical}
2851 # Be sure to cover against remnants of an in-tree build.
2852 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2853 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2854 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2857 # Skipdirs are removed silently.
2858 skipdirs=
2859 # Noconfigdirs are removed loudly.
2860 noconfigdirs=""
2862 use_gnu_ld=
2863 # Make sure we don't let GNU ld be added if we didn't want it.
2864 if test x$with_gnu_ld = xno ; then
2865 use_gnu_ld=no
2866 noconfigdirs="$noconfigdirs ld gold"
2869 use_gnu_as=
2870 # Make sure we don't let GNU as be added if we didn't want it.
2871 if test x$with_gnu_as = xno ; then
2872 use_gnu_as=no
2873 noconfigdirs="$noconfigdirs gas"
2876 use_included_zlib=
2877 # Make sure we don't let ZLIB be added if we didn't want it.
2878 if test x$with_system_zlib = xyes ; then
2879 use_included_zlib=no
2880 noconfigdirs="$noconfigdirs zlib"
2883 # some tools are so dependent upon X11 that if we're not building with X,
2884 # it's not even worth trying to configure, much less build, that tool.
2886 case ${with_x} in
2887 yes | "") ;; # the default value for this tree is that X11 is available
2889 skipdirs="${skipdirs} tk itcl libgui"
2890 # We won't be able to build gdbtk without X.
2891 enable_gdbtk=no
2893 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2894 esac
2896 # Some are only suitable for cross toolchains.
2897 # Remove these if host=target.
2898 cross_only="target-libgloss target-newlib target-opcodes"
2900 case $is_cross_compiler in
2901 no) skipdirs="${skipdirs} ${cross_only}" ;;
2902 esac
2904 # If both --with-headers and --with-libs are specified, default to
2905 # --without-newlib.
2906 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2907 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2908 if test x"${with_newlib}" = x ; then
2909 with_newlib=no
2913 # Recognize --with-newlib/--without-newlib.
2914 case ${with_newlib} in
2915 no) skipdirs="${skipdirs} target-newlib" ;;
2916 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2917 esac
2919 # Handle --enable-gold, --enable-ld.
2920 # --disable-gold [--enable-ld]
2921 # Build only ld. Default option.
2922 # --enable-gold [--enable-ld]
2923 # Build both gold and ld. Install gold as "ld.gold", install ld
2924 # as "ld.bfd" and "ld".
2925 # --enable-gold=default [--enable-ld]
2926 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2927 # install ld as "ld.bfd".
2928 # --enable-gold[=default] --disable-ld
2929 # Build only gold, which is then installed as both "ld.gold" and "ld".
2930 # --enable-gold --enable-ld=default
2931 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2932 # and ld.bfd).
2933 # In other words, ld is default
2934 # --enable-gold=default --enable-ld=default
2935 # Error.
2937 default_ld=
2938 # Check whether --enable-gold was given.
2939 if test "${enable_gold+set}" = set; then :
2940 enableval=$enable_gold; ENABLE_GOLD=$enableval
2941 else
2942 ENABLE_GOLD=no
2945 case "${ENABLE_GOLD}" in
2946 yes|default)
2947 # Check for ELF target.
2948 is_elf=no
2949 case "${target}" in
2950 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2951 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2952 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2953 | *-*-solaris2* | *-*-nto*)
2954 case "${target}" in
2955 *-*-linux*aout* | *-*-linux*oldld*)
2958 is_elf=yes
2960 esac
2961 esac
2963 if test "$is_elf" = "yes"; then
2964 # Check for target supported by gold.
2965 case "${target}" in
2966 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
2967 configdirs="$configdirs gold"
2968 if test x${ENABLE_GOLD} = xdefault; then
2969 default_ld=gold
2971 ENABLE_GOLD=yes
2973 esac
2979 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2981 esac
2983 # Check whether --enable-ld was given.
2984 if test "${enable_ld+set}" = set; then :
2985 enableval=$enable_ld; ENABLE_LD=$enableval
2986 else
2987 ENABLE_LD=yes
2991 case "${ENABLE_LD}" in
2992 default)
2993 if test x${default_ld} != x; then
2994 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2997 yes)
3000 if test x${ENABLE_GOLD} != xyes; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3002 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3004 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3007 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3009 esac
3011 # Configure extra directories which are host specific
3013 case "${host}" in
3014 *-cygwin*)
3015 configdirs="$configdirs libtermcap" ;;
3016 esac
3018 # A target can indicate whether a language isn't supported for some reason.
3019 # Only spaces may be used in this macro; not newlines or tabs.
3020 unsupported_languages=
3022 # Remove more programs from consideration, based on the host or
3023 # target this usually means that a port of the program doesn't
3024 # exist yet.
3026 case "${host}" in
3027 i[3456789]86-*-msdosdjgpp*)
3028 noconfigdirs="$noconfigdirs tcl tk itcl"
3030 esac
3033 # Check whether --enable-libquadmath was given.
3034 if test "${enable_libquadmath+set}" = set; then :
3035 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3036 else
3037 ENABLE_LIBQUADMATH=yes
3040 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3041 noconfigdirs="$noconfigdirs target-libquadmath"
3045 # Check whether --enable-libquadmath-support was given.
3046 if test "${enable_libquadmath_support+set}" = set; then :
3047 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3048 else
3049 ENABLE_LIBQUADMATH_SUPPORT=yes
3052 enable_libquadmath_support=
3053 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3054 enable_libquadmath_support=no
3058 # Check whether --enable-libada was given.
3059 if test "${enable_libada+set}" = set; then :
3060 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3061 else
3062 ENABLE_LIBADA=yes
3065 if test "${ENABLE_LIBADA}" != "yes" ; then
3066 noconfigdirs="$noconfigdirs gnattools"
3069 # Check whether --enable-libssp was given.
3070 if test "${enable_libssp+set}" = set; then :
3071 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3072 else
3073 ENABLE_LIBSSP=yes
3077 # Save it here so that, even in case of --enable-libgcj, if the Java
3078 # front-end isn't enabled, we still get libgcj disabled.
3079 libgcj_saved=$libgcj
3080 case $enable_libgcj in
3081 yes)
3082 # If we reset it here, it won't get added to noconfigdirs in the
3083 # target-specific build rules, so it will be forcibly enabled
3084 # (unless the Java language itself isn't enabled).
3085 libgcj=
3088 # Make sure we get it printed in the list of not supported target libs.
3089 # Don't disable libffi, though, other languages use it.
3090 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3091 # Clear libgcj_saved so that even if java is enabled libffi won't be
3092 # built.
3093 libgcj_saved=
3095 esac
3097 # Check whether --enable-static-libjava was given.
3098 if test "${enable_static_libjava+set}" = set; then :
3099 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3100 else
3101 ENABLE_STATIC_LIBJAVA=no
3104 enable_static_libjava=
3105 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3106 enable_static_libjava=yes
3109 if test x$enable_static_libjava != xyes ; then
3110 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3114 # Disable libmudflap on some systems.
3115 if test x$enable_libmudflap = x ; then
3116 case "${target}" in
3117 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3118 # Enable libmudflap by default in GNU and friends.
3120 *-*-freebsd*)
3121 # Enable libmudflap by default in FreeBSD.
3124 # Disable it by default everywhere else.
3125 noconfigdirs="$noconfigdirs target-libmudflap"
3127 esac
3130 # Disable libgomp on non POSIX hosted systems.
3131 if test x$enable_libgomp = x ; then
3132 # Enable libgomp by default on hosted POSIX systems.
3133 case "${target}" in
3134 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3136 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3138 *-*-solaris2* | *-*-hpux11*)
3140 *-*-darwin* | *-*-aix*)
3143 noconfigdirs="$noconfigdirs target-libgomp"
3145 esac
3148 # Disable libatomic on unsupported systems.
3149 if test -d ${srcdir}/libatomic; then
3150 if test x$enable_libatomic = x; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3152 $as_echo_n "checking for libatomic support... " >&6; }
3153 if (srcdir=${srcdir}/libatomic; \
3154 . ${srcdir}/configure.tgt; \
3155 test -n "$UNSUPPORTED")
3156 then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 noconfigdirs="$noconfigdirs target-libatomic"
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162 $as_echo "yes" >&6; }
3167 # Disable libitm on unsupported systems.
3168 if test -d ${srcdir}/libitm; then
3169 if test x$enable_libitm = x; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3171 $as_echo_n "checking for libitm support... " >&6; }
3172 if (srcdir=${srcdir}/libitm; \
3173 . ${srcdir}/configure.tgt; \
3174 test -n "$UNSUPPORTED")
3175 then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 noconfigdirs="$noconfigdirs target-libitm"
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181 $as_echo "yes" >&6; }
3186 # Disable libquadmath for some systems.
3187 case "${target}" in
3188 # libquadmath is unused on AIX and libquadmath build process use of
3189 # LD_LIBRARY_PATH can break AIX bootstrap.
3190 powerpc-*-aix* | rs6000-*-aix*)
3191 noconfigdirs="$noconfigdirs target-libquadmath"
3193 esac
3195 # Disable libssp for some systems.
3196 case "${target}" in
3197 avr-*-*)
3198 # No hosted I/O support.
3199 noconfigdirs="$noconfigdirs target-libssp"
3201 powerpc-*-aix* | rs6000-*-aix*)
3202 noconfigdirs="$noconfigdirs target-libssp"
3204 rl78-*-*)
3205 # libssp uses a misaligned load to trigger a fault, but the RL78
3206 # doesn't fault for those - instead, it gives a build-time error
3207 # for explicit misaligned loads.
3208 noconfigdirs="$noconfigdirs target-libssp"
3210 esac
3212 # Disable libquadmath for some systems.
3213 case "${target}" in
3214 avr-*-*)
3215 noconfigdirs="$noconfigdirs target-libquadmath"
3217 esac
3219 # Disable libstdc++-v3 for some systems.
3220 case "${target}" in
3221 *-*-vxworks*)
3222 # VxWorks uses the Dinkumware C++ library.
3223 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3225 arm*-wince-pe*)
3226 # the C++ libraries don't build on top of CE's C libraries
3227 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3229 avr-*-*)
3230 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3232 esac
3234 # Disable Fortran for some systems.
3235 case "${target}" in
3236 mmix-*-*)
3237 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3238 unsupported_languages="$unsupported_languages fortran"
3240 esac
3242 # Disable Java if libffi is not supported.
3243 case "${target}" in
3244 alpha*-*-*)
3246 arm*-*-*)
3248 cris-*-*)
3250 frv-*-*)
3252 hppa*-*-linux*)
3254 hppa*-*-hpux*)
3256 i?86-*-*)
3258 ia64*-*-*)
3260 m32r*-*-*)
3262 m68k-*-*)
3264 mips*-*-rtems*)
3266 mips*-*-linux*)
3268 powerpc*-*-linux*)
3270 powerpc-*-darwin*)
3272 powerpc-*-aix* | rs6000-*-aix*)
3274 powerpc-*-freebsd*)
3276 powerpc64-*-freebsd*)
3278 powerpc*-*-rtems*)
3280 s390-*-* | s390x-*-*)
3282 sh-*-* | sh[34]*-*-*)
3284 sh64-*-* | sh5*-*-*)
3286 sparc*-*-*)
3288 x86_64-*-*)
3290 *-*-*)
3291 unsupported_languages="$unsupported_languages java"
3293 esac
3295 # Disable Java, libgcj or related libraries for some systems.
3296 case "${target}" in
3297 powerpc-*-darwin*)
3299 i[3456789]86-*-darwin*)
3301 x86_64-*-darwin[912]*)
3303 *-*-darwin*)
3304 noconfigdirs="$noconfigdirs ${libgcj}"
3306 *-*-netware*)
3307 noconfigdirs="$noconfigdirs ${libgcj}"
3309 *-*-rtems*)
3310 noconfigdirs="$noconfigdirs ${libgcj}"
3312 *-*-tpf*)
3313 noconfigdirs="$noconfigdirs ${libgcj}"
3315 *-*-uclinux*)
3316 noconfigdirs="$noconfigdirs ${libgcj}"
3318 *-*-vxworks*)
3319 noconfigdirs="$noconfigdirs ${libgcj}"
3321 alpha*-*-*vms*)
3322 noconfigdirs="$noconfigdirs ${libgcj}"
3324 arm-wince-pe)
3325 noconfigdirs="$noconfigdirs ${libgcj}"
3327 arm*-*-symbianelf*)
3328 noconfigdirs="$noconfigdirs ${libgcj}"
3330 bfin-*-*)
3331 noconfigdirs="$noconfigdirs target-boehm-gc"
3333 cris-*-* | crisv32-*-*)
3334 unsupported_languages="$unsupported_languages java"
3335 case "${target}" in
3336 *-*-linux*)
3338 *) # See PR46792 regarding target-libffi.
3339 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3340 esac
3342 hppa*64*-*-linux*)
3343 # In this case, it's because the hppa64-linux target is for
3344 # the kernel only at this point and has no libc, and thus no
3345 # headers, crt*.o, etc., all of which are needed by these.
3346 unsupported_languages="$unsupported_languages java"
3348 hppa*64*-*-hpux*)
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3351 hppa*-hp-hpux11*)
3353 hppa*-*-hpux*)
3354 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3355 # build on HP-UX 10.20.
3356 noconfigdirs="$noconfigdirs ${libgcj}"
3358 ia64*-*-*vms*)
3359 noconfigdirs="$noconfigdirs ${libgcj}"
3361 i[3456789]86-w64-mingw*)
3362 noconfigdirs="$noconfigdirs ${libgcj}"
3364 i[3456789]86-*-mingw*)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3367 x86_64-*-mingw*)
3368 noconfigdirs="$noconfigdirs ${libgcj}"
3370 mmix-*-*)
3371 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3373 powerpc-*-aix*)
3374 # copied from rs6000-*-* entry
3375 noconfigdirs="$noconfigdirs ${libgcj}"
3377 rs6000-*-aix*)
3378 noconfigdirs="$noconfigdirs ${libgcj}"
3380 *-*-lynxos*)
3381 noconfigdirs="$noconfigdirs ${libgcj}"
3383 esac
3385 # Default libgloss CPU subdirectory.
3386 libgloss_dir="$target_cpu"
3388 case "${target}" in
3389 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3390 libgloss_dir=wince
3392 arm*-*-*)
3393 libgloss_dir=arm
3395 cris-*-* | crisv32-*-*)
3396 libgloss_dir=cris
3398 hppa*-*-*)
3399 libgloss_dir=pa
3401 i[3456789]86-*-*)
3402 libgloss_dir=i386
3404 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3405 libgloss_dir=m68hc11
3407 m68*-*-* | fido-*-*)
3408 libgloss_dir=m68k
3410 mips*-*-*)
3411 libgloss_dir=mips
3413 powerpc*-*-*)
3414 libgloss_dir=rs6000
3416 sparc*-*-*)
3417 libgloss_dir=sparc
3419 esac
3421 # Disable newlib and libgloss for various target OSes.
3422 case "${target}" in
3423 alpha*-dec-osf*)
3424 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3426 i[3456789]86-*-linux*)
3427 # This section makes it possible to build newlib natively on linux.
3428 # If we are using a cross compiler then don't configure newlib.
3429 if test x${is_cross_compiler} != xno ; then
3430 noconfigdirs="$noconfigdirs target-newlib"
3432 noconfigdirs="$noconfigdirs target-libgloss"
3433 # If we are not using a cross compiler, do configure newlib.
3434 # Note however, that newlib will only be configured in this situation
3435 # if the --with-newlib option has been given, because otherwise
3436 # 'target-newlib' will appear in skipdirs.
3438 i[3456789]86-*-rdos*)
3439 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3441 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3442 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3444 sparc-*-sunos4*)
3445 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3447 *-*-aix*)
3448 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3450 *-*-beos*)
3451 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3453 *-*-chorusos)
3454 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3456 *-*-dragonfly*)
3457 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3459 *-*-freebsd*)
3460 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3462 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3463 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3465 *-*-lynxos*)
3466 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3468 *-*-mingw*)
3469 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3471 *-*-netbsd*)
3472 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3474 *-*-netware*)
3475 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3477 *-*-tpf*)
3478 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3480 *-*-uclinux*)
3481 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3483 *-*-vxworks*)
3484 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3486 esac
3488 case "${target}" in
3489 *-*-chorusos)
3491 powerpc-*-darwin*)
3492 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3493 noconfigdirs="$noconfigdirs sim target-rda"
3495 i[3456789]86-*-darwin*)
3496 noconfigdirs="$noconfigdirs ld gprof"
3497 noconfigdirs="$noconfigdirs sim target-rda"
3499 x86_64-*-darwin[912]*)
3500 noconfigdirs="$noconfigdirs ld gas gprof"
3501 noconfigdirs="$noconfigdirs sim target-rda"
3503 *-*-darwin*)
3504 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3505 noconfigdirs="$noconfigdirs sim target-rda"
3507 *-*-dragonfly*)
3509 *-*-freebsd*)
3510 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3511 && test -f /usr/local/include/gmp.h; then
3512 with_gmp=/usr/local
3515 *-*-kaos*)
3516 # Remove unsupported stuff on all kaOS configurations.
3517 noconfigdirs="$noconfigdirs target-libgloss"
3519 *-*-netbsd*)
3521 *-*-netware*)
3523 *-*-rtems*)
3524 noconfigdirs="$noconfigdirs target-libgloss"
3526 # The tpf target doesn't support gdb yet.
3527 *-*-tpf*)
3528 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3530 *-*-uclinux*)
3531 noconfigdirs="$noconfigdirs target-rda"
3533 *-*-vxworks*)
3535 alpha*-dec-osf*)
3536 # ld works, but does not support shared libraries.
3537 # gas doesn't generate exception information.
3538 noconfigdirs="$noconfigdirs gas ld"
3540 alpha*-*-*vms*)
3541 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3543 alpha*-*-*)
3544 # newlib is not 64 bit ready
3545 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3548 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3550 arc-*-*)
3551 noconfigdirs="$noconfigdirs target-libgloss"
3553 arm-*-pe*)
3554 noconfigdirs="$noconfigdirs target-libgloss"
3556 arm-*-riscix*)
3557 noconfigdirs="$noconfigdirs ld target-libgloss"
3559 avr-*-rtems*)
3561 avr-*-*)
3562 if test x${with_avrlibc} != xno; then
3563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 c4x-*-* | tic4x-*-*)
3567 noconfigdirs="$noconfigdirs target-libgloss"
3569 tic54x-*-*)
3570 noconfigdirs="$noconfigdirs target-libgloss gdb"
3572 d10v-*-*)
3573 noconfigdirs="$noconfigdirs target-libgloss"
3575 d30v-*-*)
3576 noconfigdirs="$noconfigdirs gdb"
3578 fr30-*-elf*)
3579 noconfigdirs="$noconfigdirs gdb"
3581 moxie-*-*)
3582 noconfigdirs="$noconfigdirs gprof"
3584 h8300*-*-*)
3585 noconfigdirs="$noconfigdirs target-libgloss"
3587 h8500-*-*)
3588 noconfigdirs="$noconfigdirs target-libgloss"
3590 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3592 hppa*64*-*-linux*)
3594 hppa*-*-linux*)
3596 hppa*-*-*elf* | \
3597 hppa*-*-lites* | \
3598 hppa*-*-openbsd* | \
3599 hppa*64*-*-*)
3601 hppa*-hp-hpux11*)
3602 noconfigdirs="$noconfigdirs ld"
3604 hppa*-*-pro*)
3606 hppa*-*-*)
3607 noconfigdirs="$noconfigdirs ld"
3609 i960-*-*)
3610 noconfigdirs="$noconfigdirs gdb"
3612 ia64*-*-elf*)
3613 # No gdb support yet.
3614 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3616 ia64*-**-hpux*)
3617 # No ld support yet.
3618 noconfigdirs="$noconfigdirs libgui itcl ld"
3620 ia64*-*-*vms*)
3621 # No ld support yet.
3622 noconfigdirs="$noconfigdirs libgui itcl ld"
3624 i[3456789]86-w64-mingw*)
3626 i[3456789]86-*-mingw*)
3627 target_configdirs="$target_configdirs target-winsup"
3629 *-*-cygwin*)
3630 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 # always build newlib if winsup directory is present.
3633 if test -d "$srcdir/winsup/cygwin"; then
3634 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3635 elif test -d "$srcdir/newlib"; then
3636 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3639 i[3456789]86-*-pe)
3640 noconfigdirs="$noconfigdirs target-libgloss"
3642 i[3456789]86-*-sco3.2v5*)
3643 # The linker does not yet know about weak symbols in COFF,
3644 # and is not configured to handle mixed ELF and COFF.
3645 noconfigdirs="$noconfigdirs ld target-libgloss"
3647 i[3456789]86-*-sco*)
3648 noconfigdirs="$noconfigdirs gprof target-libgloss"
3650 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3651 noconfigdirs="$noconfigdirs target-libgloss"
3653 i[3456789]86-*-sysv4*)
3654 noconfigdirs="$noconfigdirs target-libgloss"
3656 i[3456789]86-*-beos*)
3657 noconfigdirs="$noconfigdirs gdb"
3659 i[3456789]86-*-rdos*)
3660 noconfigdirs="$noconfigdirs gdb"
3662 mmix-*-*)
3663 noconfigdirs="$noconfigdirs gdb"
3665 mt-*-*)
3666 noconfigdirs="$noconfigdirs sim"
3668 powerpc-*-aix*)
3669 # copied from rs6000-*-* entry
3670 noconfigdirs="$noconfigdirs gprof"
3672 powerpc*-*-winnt* | powerpc*-*-pe*)
3673 target_configdirs="$target_configdirs target-winsup"
3674 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3675 # always build newlib.
3676 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3678 # This is temporary until we can link against shared libraries
3679 powerpcle-*-solaris*)
3680 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3682 powerpc-*-beos*)
3683 noconfigdirs="$noconfigdirs gdb"
3685 rs6000-*-lynxos*)
3686 noconfigdirs="$noconfigdirs gprof"
3688 rs6000-*-aix*)
3689 noconfigdirs="$noconfigdirs gprof"
3691 rs6000-*-*)
3692 noconfigdirs="$noconfigdirs gprof"
3694 m68k-apollo-*)
3695 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3697 microblaze*)
3698 noconfigdirs="$noconfigdirs gprof"
3700 mips*-sde-elf* | mips*-mti-elf*)
3701 if test x$with_newlib = xyes; then
3702 noconfigdirs="$noconfigdirs gprof"
3705 mips*-*-irix5*)
3706 noconfigdirs="$noconfigdirs gprof target-libgloss"
3708 mips*-*-irix6*)
3709 noconfigdirs="$noconfigdirs gprof target-libgloss"
3711 mips*-*-bsd*)
3712 noconfigdirs="$noconfigdirs gprof target-libgloss"
3714 mips*-*-linux*)
3716 mips*-*-*)
3717 noconfigdirs="$noconfigdirs gprof"
3719 sh-*-* | sh64-*-*)
3720 case "${target}" in
3721 sh*-*-elf)
3724 noconfigdirs="$noconfigdirs target-libgloss" ;;
3725 esac
3727 sparc-*-sunos4*)
3728 if test x${is_cross_compiler} = xno ; then
3729 use_gnu_ld=no
3732 tic6x-*-*)
3733 noconfigdirs="$noconfigdirs sim"
3735 tilepro-*-* | tilegx-*-*)
3736 noconfigdirs="$noconfigdirs sim"
3738 v810-*-*)
3739 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3741 vax-*-*)
3742 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3744 esac
3746 # If we aren't building newlib, then don't build libgloss, since libgloss
3747 # depends upon some newlib header files.
3748 case "${noconfigdirs}" in
3749 *target-libgloss*) ;;
3750 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3751 esac
3753 # Work in distributions that contain no compiler tools, like Autoconf.
3754 host_makefile_frag=/dev/null
3755 if test -d ${srcdir}/config ; then
3756 case "${host}" in
3757 i[3456789]86-*-msdosdjgpp*)
3758 host_makefile_frag="config/mh-djgpp"
3760 *-cygwin*)
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3763 $as_echo_n "checking to see if cat works as expected... " >&6; }
3764 echo a >cygwin-cat-check
3765 if test `cat cygwin-cat-check` = a ; then
3766 rm cygwin-cat-check
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3768 $as_echo "yes" >&6; }
3769 else
3770 rm cygwin-cat-check
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3773 as_fn_error "The cat command does not ignore carriage return characters.
3774 Please either mount the build directory in binary mode or run the following
3775 commands before running any configure script:
3776 set -o igncr
3777 export SHELLOPTS
3778 " "$LINENO" 5
3781 host_makefile_frag="config/mh-cygwin"
3783 *-mingw*)
3784 host_makefile_frag="config/mh-mingw"
3786 hppa*-hp-hpux10*)
3787 host_makefile_frag="config/mh-pa-hpux10"
3789 hppa*-hp-hpux*)
3790 host_makefile_frag="config/mh-pa"
3792 hppa*-*)
3793 host_makefile_frag="config/mh-pa"
3795 *-*-darwin*)
3796 host_makefile_frag="config/mh-darwin"
3798 powerpc-*-aix*)
3799 host_makefile_frag="config/mh-ppc-aix"
3801 rs6000-*-aix*)
3802 host_makefile_frag="config/mh-ppc-aix"
3804 esac
3807 if test "${build}" != "${host}" ; then
3808 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3809 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3810 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3811 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3812 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3813 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3814 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3815 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3816 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3817 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3818 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3819 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3820 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3821 else
3822 AR_FOR_BUILD="\$(AR)"
3823 AS_FOR_BUILD="\$(AS)"
3824 CC_FOR_BUILD="\$(CC)"
3825 CXX_FOR_BUILD="\$(CXX)"
3826 GCJ_FOR_BUILD="\$(GCJ)"
3827 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3828 GOC_FOR_BUILD="\$(GOC)"
3829 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3830 LD_FOR_BUILD="\$(LD)"
3831 NM_FOR_BUILD="\$(NM)"
3832 RANLIB_FOR_BUILD="\$(RANLIB)"
3833 WINDRES_FOR_BUILD="\$(WINDRES)"
3834 WINDMC_FOR_BUILD="\$(WINDMC)"
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if test "${ac_cv_prog_CC+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 if test -n "$CC"; then
3851 ac_cv_prog_CC="$CC" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3860 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3866 IFS=$as_save_IFS
3870 CC=$ac_cv_prog_CC
3871 if test -n "$CC"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873 $as_echo "$CC" >&6; }
3874 else
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3881 if test -z "$ac_cv_prog_CC"; then
3882 ac_ct_CC=$CC
3883 # Extract the first word of "gcc", so it can be a program name with args.
3884 set dummy gcc; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 if test -n "$ac_ct_CC"; then
3891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_ac_ct_CC="gcc"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3904 done
3905 done
3906 IFS=$as_save_IFS
3910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911 if test -n "$ac_ct_CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3913 $as_echo "$ac_ct_CC" >&6; }
3914 else
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3919 if test "x$ac_ct_CC" = x; then
3920 CC=""
3921 else
3922 case $cross_compiling:$ac_tool_warned in
3923 yes:)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926 ac_tool_warned=yes ;;
3927 esac
3928 CC=$ac_ct_CC
3930 else
3931 CC="$ac_cv_prog_CC"
3934 if test -z "$CC"; then
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}cc; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if test "${ac_cv_prog_CC+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$CC"; then
3944 ac_cv_prog_CC="$CC" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953 ac_cv_prog_CC="${ac_tool_prefix}cc"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3957 done
3958 done
3959 IFS=$as_save_IFS
3963 CC=$ac_cv_prog_CC
3964 if test -n "$CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966 $as_echo "$CC" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3975 if test -z "$CC"; then
3976 # Extract the first word of "cc", so it can be a program name with args.
3977 set dummy cc; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_CC+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 else
3986 ac_prog_rejected=no
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3995 ac_prog_rejected=yes
3996 continue
3998 ac_cv_prog_CC="cc"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 break 2
4002 done
4003 done
4004 IFS=$as_save_IFS
4006 if test $ac_prog_rejected = yes; then
4007 # We found a bogon in the path, so make sure we never use it.
4008 set dummy $ac_cv_prog_CC
4009 shift
4010 if test $# != 0; then
4011 # We chose a different compiler from the bogus one.
4012 # However, it has the same basename, so the bogon will be chosen
4013 # first if we set CC to just the basename; use the full file name.
4014 shift
4015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4020 CC=$ac_cv_prog_CC
4021 if test -n "$CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4024 else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4031 if test -z "$CC"; then
4032 if test -n "$ac_tool_prefix"; then
4033 for ac_prog in cl.exe
4035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_CC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4058 IFS=$as_save_IFS
4062 CC=$ac_cv_prog_CC
4063 if test -n "$CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065 $as_echo "$CC" >&6; }
4066 else
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4072 test -n "$CC" && break
4073 done
4075 if test -z "$CC"; then
4076 ac_ct_CC=$CC
4077 for ac_prog in cl.exe
4079 # Extract the first word of "$ac_prog", so it can be a program name with args.
4080 set dummy $ac_prog; ac_word=$2
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082 $as_echo_n "checking for $ac_word... " >&6; }
4083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if test -n "$ac_ct_CC"; then
4087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096 ac_cv_prog_ac_ct_CC="$ac_prog"
4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4100 done
4101 done
4102 IFS=$as_save_IFS
4106 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4107 if test -n "$ac_ct_CC"; then
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4109 $as_echo "$ac_ct_CC" >&6; }
4110 else
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112 $as_echo "no" >&6; }
4116 test -n "$ac_ct_CC" && break
4117 done
4119 if test "x$ac_ct_CC" = x; then
4120 CC=""
4121 else
4122 case $cross_compiling:$ac_tool_warned in
4123 yes:)
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4126 ac_tool_warned=yes ;;
4127 esac
4128 CC=$ac_ct_CC
4135 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error "no acceptable C compiler found in \$PATH
4138 See \`config.log' for more details." "$LINENO" 5; }
4140 # Provide some information about the compiler.
4141 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4142 set X $ac_compile
4143 ac_compiler=$2
4144 for ac_option in --version -v -V -qversion; do
4145 { { ac_try="$ac_compiler $ac_option >&5"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4151 $as_echo "$ac_try_echo"; } >&5
4152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4153 ac_status=$?
4154 if test -s conftest.err; then
4155 sed '10a\
4156 ... rest of stderr output deleted ...
4157 10q' conftest.err >conftest.er1
4158 cat conftest.er1 >&5
4159 rm -f conftest.er1 conftest.err
4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4162 test $ac_status = 0; }
4163 done
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4169 main ()
4173 return 0;
4175 _ACEOF
4176 ac_clean_files_save=$ac_clean_files
4177 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4178 # Try to create an executable without -o first, disregard a.out.
4179 # It will help us diagnose broken compilers, and finding out an intuition
4180 # of exeext.
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4182 $as_echo_n "checking for C compiler default output file name... " >&6; }
4183 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4185 # The possible output files:
4186 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4188 ac_rmfiles=
4189 for ac_file in $ac_files
4191 case $ac_file in
4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4193 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4194 esac
4195 done
4196 rm -f $ac_rmfiles
4198 if { { ac_try="$ac_link_default"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_link_default") 2>&5
4206 ac_status=$?
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }; then :
4209 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4210 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4211 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4212 # so that the user can short-circuit this test for compilers unknown to
4213 # Autoconf.
4214 for ac_file in $ac_files ''
4216 test -f "$ac_file" || continue
4217 case $ac_file in
4218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4220 [ab].out )
4221 # We found the default executable, but exeext='' is most
4222 # certainly right.
4223 break;;
4224 *.* )
4225 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4226 then :; else
4227 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4229 # We set ac_cv_exeext here because the later test for it is not
4230 # safe: cross compilers may not add the suffix if given an `-o'
4231 # argument, so we may need to know it at that point already.
4232 # Even if this section looks crufty: it has the advantage of
4233 # actually working.
4234 break;;
4236 break;;
4237 esac
4238 done
4239 test "$ac_cv_exeext" = no && ac_cv_exeext=
4241 else
4242 ac_file=''
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4245 $as_echo "$ac_file" >&6; }
4246 if test -z "$ac_file"; then :
4247 $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4252 { as_fn_set_status 77
4253 as_fn_error "C compiler cannot create executables
4254 See \`config.log' for more details." "$LINENO" 5; }; }
4256 ac_exeext=$ac_cv_exeext
4258 # Check that the compiler produces executables we can run. If not, either
4259 # the compiler is broken, or we cross compile.
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4261 $as_echo_n "checking whether the C compiler works... " >&6; }
4262 # If not cross compiling, check that we can run a simple program.
4263 if test "$cross_compiling" != yes; then
4264 if { ac_try='./$ac_file'
4265 { { case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268 esac
4269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4270 $as_echo "$ac_try_echo"; } >&5
4271 (eval "$ac_try") 2>&5
4272 ac_status=$?
4273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274 test $ac_status = 0; }; }; then
4275 cross_compiling=no
4276 else
4277 if test "$cross_compiling" = maybe; then
4278 cross_compiling=yes
4279 else
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error "cannot run C compiled programs.
4283 If you meant to cross compile, use \`--host'.
4284 See \`config.log' for more details." "$LINENO" 5; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4289 $as_echo "yes" >&6; }
4291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4292 ac_clean_files=$ac_clean_files_save
4293 # Check that the compiler produces executables we can run. If not, either
4294 # the compiler is broken, or we cross compile.
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4296 $as_echo_n "checking whether we are cross compiling... " >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4298 $as_echo "$cross_compiling" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4301 $as_echo_n "checking for suffix of executables... " >&6; }
4302 if { { ac_try="$ac_link"
4303 case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_link") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }; then :
4313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4315 # work properly (i.e., refer to `conftest.exe'), while it won't with
4316 # `rm'.
4317 for ac_file in conftest.exe conftest conftest.*; do
4318 test -f "$ac_file" || continue
4319 case $ac_file in
4320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4322 break;;
4323 * ) break;;
4324 esac
4325 done
4326 else
4327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329 as_fn_error "cannot compute suffix of executables: cannot compile and link
4330 See \`config.log' for more details." "$LINENO" 5; }
4332 rm -f conftest$ac_cv_exeext
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4334 $as_echo "$ac_cv_exeext" >&6; }
4336 rm -f conftest.$ac_ext
4337 EXEEXT=$ac_cv_exeext
4338 ac_exeext=$EXEEXT
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4340 $as_echo_n "checking for suffix of object files... " >&6; }
4341 if test "${ac_cv_objext+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4348 main ()
4352 return 0;
4354 _ACEOF
4355 rm -f conftest.o conftest.obj
4356 if { { ac_try="$ac_compile"
4357 case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360 esac
4361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4362 $as_echo "$ac_try_echo"; } >&5
4363 (eval "$ac_compile") 2>&5
4364 ac_status=$?
4365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366 test $ac_status = 0; }; then :
4367 for ac_file in conftest.o conftest.obj conftest.*; do
4368 test -f "$ac_file" || continue;
4369 case $ac_file in
4370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4371 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4372 break;;
4373 esac
4374 done
4375 else
4376 $as_echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381 as_fn_error "cannot compute suffix of object files: cannot compile
4382 See \`config.log' for more details." "$LINENO" 5; }
4384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4387 $as_echo "$ac_cv_objext" >&6; }
4388 OBJEXT=$ac_cv_objext
4389 ac_objext=$OBJEXT
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4392 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 main ()
4401 #ifndef __GNUC__
4402 choke me
4403 #endif
4406 return 0;
4408 _ACEOF
4409 if ac_fn_c_try_compile "$LINENO"; then :
4410 ac_compiler_gnu=yes
4411 else
4412 ac_compiler_gnu=no
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4419 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4420 if test $ac_compiler_gnu = yes; then
4421 GCC=yes
4422 else
4423 GCC=
4425 ac_test_CFLAGS=${CFLAGS+set}
4426 ac_save_CFLAGS=$CFLAGS
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4428 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4429 if test "${ac_cv_prog_cc_g+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 ac_save_c_werror_flag=$ac_c_werror_flag
4433 ac_c_werror_flag=yes
4434 ac_cv_prog_cc_g=no
4435 CFLAGS="-g"
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4440 main ()
4444 return 0;
4446 _ACEOF
4447 if ac_fn_c_try_compile "$LINENO"; then :
4448 ac_cv_prog_cc_g=yes
4449 else
4450 CFLAGS=""
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4455 main ()
4459 return 0;
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"; then :
4464 else
4465 ac_c_werror_flag=$ac_save_c_werror_flag
4466 CFLAGS="-g"
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4471 main ()
4475 return 0;
4477 _ACEOF
4478 if ac_fn_c_try_compile "$LINENO"; then :
4479 ac_cv_prog_cc_g=yes
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 ac_c_werror_flag=$ac_save_c_werror_flag
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4489 $as_echo "$ac_cv_prog_cc_g" >&6; }
4490 if test "$ac_test_CFLAGS" = set; then
4491 CFLAGS=$ac_save_CFLAGS
4492 elif test $ac_cv_prog_cc_g = yes; then
4493 if test "$GCC" = yes; then
4494 CFLAGS="-g -O2"
4495 else
4496 CFLAGS="-g"
4498 else
4499 if test "$GCC" = yes; then
4500 CFLAGS="-O2"
4501 else
4502 CFLAGS=
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4506 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4507 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 ac_cv_prog_cc_c89=no
4511 ac_save_CC=$CC
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514 #include <stdarg.h>
4515 #include <stdio.h>
4516 #include <sys/types.h>
4517 #include <sys/stat.h>
4518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4519 struct buf { int x; };
4520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4521 static char *e (p, i)
4522 char **p;
4523 int i;
4525 return p[i];
4527 static char *f (char * (*g) (char **, int), char **p, ...)
4529 char *s;
4530 va_list v;
4531 va_start (v,p);
4532 s = g (p, va_arg (v,int));
4533 va_end (v);
4534 return s;
4537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4538 function prototypes and stuff, but not '\xHH' hex character constants.
4539 These don't provoke an error unfortunately, instead are silently treated
4540 as 'x'. The following induces an error, until -std is added to get
4541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4542 array size at least. It's necessary to write '\x00'==0 to get something
4543 that's true only with -std. */
4544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4547 inside strings and character constants. */
4548 #define FOO(x) 'x'
4549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4551 int test (int i, double x);
4552 struct s1 {int (*f) (int a);};
4553 struct s2 {int (*f) (double a);};
4554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4555 int argc;
4556 char **argv;
4558 main ()
4560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4562 return 0;
4564 _ACEOF
4565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4568 CC="$ac_save_CC $ac_arg"
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 ac_cv_prog_cc_c89=$ac_arg
4572 rm -f core conftest.err conftest.$ac_objext
4573 test "x$ac_cv_prog_cc_c89" != "xno" && break
4574 done
4575 rm -f conftest.$ac_ext
4576 CC=$ac_save_CC
4579 # AC_CACHE_VAL
4580 case "x$ac_cv_prog_cc_c89" in
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4583 $as_echo "none needed" >&6; } ;;
4584 xno)
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4586 $as_echo "unsupported" >&6; } ;;
4588 CC="$CC $ac_cv_prog_cc_c89"
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4590 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4591 esac
4592 if test "x$ac_cv_prog_cc_c89" != xno; then :
4596 ac_ext=c
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 ac_ext=cpp
4603 ac_cpp='$CXXCPP $CPPFLAGS'
4604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4607 if test -z "$CXX"; then
4608 if test -n "$CCC"; then
4609 CXX=$CCC
4610 else
4611 if test -n "$ac_tool_prefix"; then
4612 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if test "${ac_cv_prog_CXX+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$CXX"; then
4622 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4635 done
4636 done
4637 IFS=$as_save_IFS
4641 CXX=$ac_cv_prog_CXX
4642 if test -n "$CXX"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4644 $as_echo "$CXX" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4651 test -n "$CXX" && break
4652 done
4654 if test -z "$CXX"; then
4655 ac_ct_CXX=$CXX
4656 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4658 # Extract the first word of "$ac_prog", so it can be a program name with args.
4659 set dummy $ac_prog; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$ac_ct_CXX"; then
4666 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_CXX="$ac_prog"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4679 done
4680 done
4681 IFS=$as_save_IFS
4685 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4686 if test -n "$ac_ct_CXX"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4688 $as_echo "$ac_ct_CXX" >&6; }
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4695 test -n "$ac_ct_CXX" && break
4696 done
4698 if test "x$ac_ct_CXX" = x; then
4699 CXX="g++"
4700 else
4701 case $cross_compiling:$ac_tool_warned in
4702 yes:)
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4705 ac_tool_warned=yes ;;
4706 esac
4707 CXX=$ac_ct_CXX
4713 # Provide some information about the compiler.
4714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4715 set X $ac_compile
4716 ac_compiler=$2
4717 for ac_option in --version -v -V -qversion; do
4718 { { ac_try="$ac_compiler $ac_option >&5"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4726 ac_status=$?
4727 if test -s conftest.err; then
4728 sed '10a\
4729 ... rest of stderr output deleted ...
4730 10q' conftest.err >conftest.er1
4731 cat conftest.er1 >&5
4732 rm -f conftest.er1 conftest.err
4734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735 test $ac_status = 0; }
4736 done
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4739 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4740 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 main ()
4749 #ifndef __GNUC__
4750 choke me
4751 #endif
4754 return 0;
4756 _ACEOF
4757 if ac_fn_cxx_try_compile "$LINENO"; then :
4758 ac_compiler_gnu=yes
4759 else
4760 ac_compiler_gnu=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4767 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4768 if test $ac_compiler_gnu = yes; then
4769 GXX=yes
4770 else
4771 GXX=
4773 ac_test_CXXFLAGS=${CXXFLAGS+set}
4774 ac_save_CXXFLAGS=$CXXFLAGS
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4776 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4777 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4781 ac_cxx_werror_flag=yes
4782 ac_cv_prog_cxx_g=no
4783 CXXFLAGS="-g"
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4788 main ()
4792 return 0;
4794 _ACEOF
4795 if ac_fn_cxx_try_compile "$LINENO"; then :
4796 ac_cv_prog_cxx_g=yes
4797 else
4798 CXXFLAGS=""
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4803 main ()
4807 return 0;
4809 _ACEOF
4810 if ac_fn_cxx_try_compile "$LINENO"; then :
4812 else
4813 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4814 CXXFLAGS="-g"
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4819 main ()
4823 return 0;
4825 _ACEOF
4826 if ac_fn_cxx_try_compile "$LINENO"; then :
4827 ac_cv_prog_cxx_g=yes
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4837 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4838 if test "$ac_test_CXXFLAGS" = set; then
4839 CXXFLAGS=$ac_save_CXXFLAGS
4840 elif test $ac_cv_prog_cxx_g = yes; then
4841 if test "$GXX" = yes; then
4842 CXXFLAGS="-g -O2"
4843 else
4844 CXXFLAGS="-g"
4846 else
4847 if test "$GXX" = yes; then
4848 CXXFLAGS="-O2"
4849 else
4850 CXXFLAGS=
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860 # We must set the default linker to the linker used by gcc for the correct
4861 # operation of libtool. If LD is not defined and we are using gcc, try to
4862 # set the LD default to the ld used by gcc.
4863 if test -z "$LD"; then
4864 if test "$GCC" = yes; then
4865 case $build in
4866 *-*-mingw*)
4867 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4869 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4870 esac
4871 case $gcc_prog_ld in
4872 # Accept absolute paths.
4873 [\\/]* | [A-Za-z]:[\\/]*)
4874 LD="$gcc_prog_ld" ;;
4875 esac
4879 # Check whether -static-libstdc++ -static-libgcc is supported.
4880 have_static_libs=no
4881 if test "$GCC" = yes; then
4882 saved_LDFLAGS="$LDFLAGS"
4884 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4886 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4887 ac_ext=cpp
4888 ac_cpp='$CXXCPP $CPPFLAGS'
4889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4897 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4898 #error -static-libstdc++ not implemented
4899 #endif
4900 int main() {}
4901 _ACEOF
4902 if ac_fn_cxx_try_link "$LINENO"; then :
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4904 $as_echo "yes" >&6; }; have_static_libs=yes
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4909 rm -f core conftest.err conftest.$ac_objext \
4910 conftest$ac_exeext conftest.$ac_ext
4911 ac_ext=c
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918 LDFLAGS="$saved_LDFLAGS"
4924 if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4926 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$GNATBIND"; then
4933 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 GNATBIND=$ac_cv_prog_GNATBIND
4953 if test -n "$GNATBIND"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4955 $as_echo "$GNATBIND" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4963 if test -z "$ac_cv_prog_GNATBIND"; then
4964 ac_ct_GNATBIND=$GNATBIND
4965 # Extract the first word of "gnatbind", so it can be a program name with args.
4966 set dummy gnatbind; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -n "$ac_ct_GNATBIND"; then
4973 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4986 done
4987 done
4988 IFS=$as_save_IFS
4992 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4993 if test -n "$ac_ct_GNATBIND"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4995 $as_echo "$ac_ct_GNATBIND" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5001 if test "x$ac_ct_GNATBIND" = x; then
5002 GNATBIND="no"
5003 else
5004 case $cross_compiling:$ac_tool_warned in
5005 yes:)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5008 ac_tool_warned=yes ;;
5009 esac
5010 GNATBIND=$ac_ct_GNATBIND
5012 else
5013 GNATBIND="$ac_cv_prog_GNATBIND"
5016 if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5018 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -n "$GNATMAKE"; then
5025 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5040 IFS=$as_save_IFS
5044 GNATMAKE=$ac_cv_prog_GNATMAKE
5045 if test -n "$GNATMAKE"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5047 $as_echo "$GNATMAKE" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5055 if test -z "$ac_cv_prog_GNATMAKE"; then
5056 ac_ct_GNATMAKE=$GNATMAKE
5057 # Extract the first word of "gnatmake", so it can be a program name with args.
5058 set dummy gnatmake; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$ac_ct_GNATMAKE"; then
5065 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5080 IFS=$as_save_IFS
5084 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5085 if test -n "$ac_ct_GNATMAKE"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5087 $as_echo "$ac_ct_GNATMAKE" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5093 if test "x$ac_ct_GNATMAKE" = x; then
5094 GNATMAKE="no"
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097 yes:)
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100 ac_tool_warned=yes ;;
5101 esac
5102 GNATMAKE=$ac_ct_GNATMAKE
5104 else
5105 GNATMAKE="$ac_cv_prog_GNATMAKE"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5109 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5110 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 cat >conftest.adb <<EOF
5114 procedure conftest is begin null; end conftest;
5116 acx_cv_cc_gcc_supports_ada=no
5117 # There is a bug in old released versions of GCC which causes the
5118 # driver to exit successfully when the appropriate language module
5119 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5120 # Therefore we must check for the error message as well as an
5121 # unsuccessful exit.
5122 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5123 # given a .adb file, but produce no object file. So we must check
5124 # if an object file was really produced to guard against this.
5125 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5126 if test x"$errors" = x && test -f conftest.$ac_objext; then
5127 acx_cv_cc_gcc_supports_ada=yes
5129 rm -f conftest.*
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5132 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5134 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5135 have_gnat=yes
5136 else
5137 have_gnat=no
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5141 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5142 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 echo abfoo >t1
5146 echo cdfoo >t2
5147 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5148 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5149 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5151 else
5152 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5155 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5156 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5158 else
5159 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5162 rm t1 t2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5166 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5167 do_compare="$gcc_cv_prog_cmp_skip"
5171 # Check whether --enable-bootstrap was given.
5172 if test "${enable_bootstrap+set}" = set; then :
5173 enableval=$enable_bootstrap;
5174 else
5175 enable_bootstrap=default
5179 # Issue errors and warnings for invalid/strange bootstrap combinations.
5180 if test -r $srcdir/gcc/configure; then
5181 have_compiler=yes
5182 else
5183 have_compiler=no
5186 case "$have_compiler:$host:$target:$enable_bootstrap" in
5187 *:*:*:no) ;;
5189 # Default behavior. Enable bootstrap if we have a compiler
5190 # and we are in a native configuration.
5191 yes:$build:$build:default)
5192 enable_bootstrap=yes ;;
5194 *:*:*:default)
5195 enable_bootstrap=no ;;
5197 # We have a compiler and we are in a native configuration, bootstrap is ok
5198 yes:$build:$build:yes)
5201 # Other configurations, but we have a compiler. Assume the user knows
5202 # what he's doing.
5203 yes:*:*:yes)
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5205 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5208 # No compiler: if they passed --enable-bootstrap explicitly, fail
5209 no:*:*:yes)
5210 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5212 # Fail if wrong command line
5214 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5216 esac
5218 # Used for setting $lt_cv_objdir
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5220 $as_echo_n "checking for objdir... " >&6; }
5221 if test "${lt_cv_objdir+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 rm -f .libs 2>/dev/null
5225 mkdir .libs 2>/dev/null
5226 if test -d .libs; then
5227 lt_cv_objdir=.libs
5228 else
5229 # MS-DOS does not allow filenames that begin with a dot.
5230 lt_cv_objdir=_libs
5232 rmdir .libs 2>/dev/null
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5235 $as_echo "$lt_cv_objdir" >&6; }
5236 objdir=$lt_cv_objdir
5242 cat >>confdefs.h <<_ACEOF
5243 #define LT_OBJDIR "$lt_cv_objdir/"
5244 _ACEOF
5248 # Check for GMP, MPFR and MPC
5249 gmplibs="-lmpc -lmpfr -lgmp"
5250 gmpinc=
5251 have_gmp=no
5253 # Specify a location for mpc
5254 # check for this first so it ends up on the link line before mpfr.
5256 # Check whether --with-mpc was given.
5257 if test "${with_mpc+set}" = set; then :
5258 withval=$with_mpc;
5262 # Check whether --with-mpc-include was given.
5263 if test "${with_mpc_include+set}" = set; then :
5264 withval=$with_mpc_include;
5268 # Check whether --with-mpc-lib was given.
5269 if test "${with_mpc_lib+set}" = set; then :
5270 withval=$with_mpc_lib;
5274 if test "x$with_mpc" != x; then
5275 gmplibs="-L$with_mpc/lib $gmplibs"
5276 gmpinc="-I$with_mpc/include $gmpinc"
5278 if test "x$with_mpc_include" != x; then
5279 gmpinc="-I$with_mpc_include $gmpinc"
5281 if test "x$with_mpc_lib" != x; then
5282 gmplibs="-L$with_mpc_lib $gmplibs"
5284 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5285 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5286 gmpinc='-I$$s/mpc/src '"$gmpinc"
5287 # Do not test the mpc version. Assume that it is sufficient, since
5288 # it is in the source tree, and the library has not been built yet
5289 # but it would be included on the link line in the version check below
5290 # hence making the test fail.
5291 have_gmp=yes
5294 # Specify a location for mpfr
5295 # check for this first so it ends up on the link line before gmp.
5297 # Check whether --with-mpfr-dir was given.
5298 if test "${with_mpfr_dir+set}" = set; then :
5299 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5300 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5305 # Check whether --with-mpfr was given.
5306 if test "${with_mpfr+set}" = set; then :
5307 withval=$with_mpfr;
5311 # Check whether --with-mpfr-include was given.
5312 if test "${with_mpfr_include+set}" = set; then :
5313 withval=$with_mpfr_include;
5317 # Check whether --with-mpfr-lib was given.
5318 if test "${with_mpfr_lib+set}" = set; then :
5319 withval=$with_mpfr_lib;
5323 if test "x$with_mpfr" != x; then
5324 gmplibs="-L$with_mpfr/lib $gmplibs"
5325 gmpinc="-I$with_mpfr/include $gmpinc"
5327 if test "x$with_mpfr_include" != x; then
5328 gmpinc="-I$with_mpfr_include $gmpinc"
5330 if test "x$with_mpfr_lib" != x; then
5331 gmplibs="-L$with_mpfr_lib $gmplibs"
5333 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5334 # MPFR v3.1.0 moved the sources into a src sub-directory.
5335 if test -d ${srcdir}/mpfr/src; then
5336 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5337 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5338 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5339 else
5340 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5341 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5342 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5344 # Do not test the mpfr version. Assume that it is sufficient, since
5345 # it is in the source tree, and the library has not been built yet
5346 # but it would be included on the link line in the version check below
5347 # hence making the test fail.
5348 have_gmp=yes
5351 # Specify a location for gmp
5353 # Check whether --with-gmp-dir was given.
5354 if test "${with_gmp_dir+set}" = set; then :
5355 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5356 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5361 # Check whether --with-gmp was given.
5362 if test "${with_gmp+set}" = set; then :
5363 withval=$with_gmp;
5367 # Check whether --with-gmp-include was given.
5368 if test "${with_gmp_include+set}" = set; then :
5369 withval=$with_gmp_include;
5373 # Check whether --with-gmp-lib was given.
5374 if test "${with_gmp_lib+set}" = set; then :
5375 withval=$with_gmp_lib;
5380 if test "x$with_gmp" != x; then
5381 gmplibs="-L$with_gmp/lib $gmplibs"
5382 gmpinc="-I$with_gmp/include $gmpinc"
5384 if test "x$with_gmp_include" != x; then
5385 gmpinc="-I$with_gmp_include $gmpinc"
5387 if test "x$with_gmp_lib" != x; then
5388 gmplibs="-L$with_gmp_lib $gmplibs"
5390 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5391 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5392 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5393 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5394 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5395 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
5396 # Do not test the gmp version. Assume that it is sufficient, since
5397 # it is in the source tree, and the library has not been built yet
5398 # but it would be included on the link line in the version check below
5399 # hence making the test fail.
5400 have_gmp=yes
5403 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5404 have_gmp=yes
5405 saved_CFLAGS="$CFLAGS"
5406 CFLAGS="$CFLAGS $gmpinc"
5407 # Check for the recommended and required versions of GMP.
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5409 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include "gmp.h"
5415 main ()
5418 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5419 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5420 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
5421 choke me
5422 #endif
5425 return 0;
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5431 #include <gmp.h>
5433 main ()
5436 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5437 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5438 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5439 choke me
5440 #endif
5443 return 0;
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448 $as_echo "yes" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5451 $as_echo "buggy but acceptable" >&6; }
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }; have_gmp=no
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 # If we have GMP, check the MPFR version.
5461 if test x"$have_gmp" = xyes; then
5462 # Check for the recommended and required versions of MPFR.
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5464 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <gmp.h>
5468 #include <mpfr.h>
5470 main ()
5473 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
5474 choke me
5475 #endif
5478 return 0;
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <gmp.h>
5485 #include <mpfr.h>
5487 main ()
5490 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5491 choke me
5492 #endif
5495 return 0;
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500 $as_echo "yes" >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5503 $as_echo "buggy but acceptable" >&6; }
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }; have_gmp=no
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 # Check for the MPC header version.
5514 if test x"$have_gmp" = xyes ; then
5515 # Check for the recommended and required versions of MPC.
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5517 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5520 #include <mpc.h>
5522 main ()
5525 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5526 choke me
5527 #endif
5530 return 0;
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"; then :
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <mpc.h>
5538 main ()
5541 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5542 choke me
5543 #endif
5546 return 0;
5548 _ACEOF
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551 $as_echo "yes" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5554 $as_echo "buggy but acceptable" >&6; }
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }; have_gmp=no
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 # Now check the MPFR library.
5565 if test x"$have_gmp" = xyes; then
5566 saved_LIBS="$LIBS"
5567 LIBS="$LIBS $gmplibs"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5569 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <mpc.h>
5574 main ()
5577 mpfr_t n;
5578 mpfr_t x;
5579 mpc_t c;
5580 int t;
5581 mpfr_init (n);
5582 mpfr_init (x);
5583 mpfr_atan2 (n, n, x, GMP_RNDN);
5584 mpfr_erfc (n, x, GMP_RNDN);
5585 mpfr_subnormalize (x, t, GMP_RNDN);
5586 mpfr_clear(n);
5587 mpfr_clear(x);
5588 mpc_init2 (c, 53);
5589 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5590 mpc_cosh (c, c, MPC_RNDNN);
5591 mpc_pow (c, c, c, MPC_RNDNN);
5592 mpc_acosh (c, c, MPC_RNDNN);
5593 mpc_clear (c);
5596 return 0;
5598 _ACEOF
5599 if ac_fn_c_try_link "$LINENO"; then :
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5601 $as_echo "yes" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }; have_gmp=no
5606 rm -f core conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext conftest.$ac_ext
5608 LIBS="$saved_LIBS"
5611 CFLAGS="$saved_CFLAGS"
5613 # The library versions listed in the error message below should match
5614 # the HARD-minimums enforced above.
5615 if test x$have_gmp != xyes; then
5616 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
5617 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5618 their locations. Source code for these libraries can be found at
5619 their respective hosting sites as well as at
5620 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5621 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5622 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5623 make sure that you have installed both the libraries and the header
5624 files. They may be located in separate packages." "$LINENO" 5
5628 # Flags needed for both GMP, MPFR and/or MPC.
5636 # Allow host libstdc++ to be specified for static linking with PPL.
5638 # Check whether --with-host-libstdcxx was given.
5639 if test "${with_host_libstdcxx+set}" = set; then :
5640 withval=$with_host_libstdcxx;
5644 case $with_host_libstdcxx in
5645 no|yes)
5646 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5648 esac
5650 # Libraries to use for stage1 or when not bootstrapping.
5652 # Check whether --with-stage1-libs was given.
5653 if test "${with_stage1_libs+set}" = set; then :
5654 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5655 stage1_libs=
5656 else
5657 stage1_libs=$withval
5659 else
5660 stage1_libs=$with_host_libstdcxx
5665 # Linker flags to use for stage1 or when not bootstrapping.
5667 # Check whether --with-stage1-ldflags was given.
5668 if test "${with_stage1_ldflags+set}" = set; then :
5669 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5670 stage1_ldflags=
5671 else
5672 stage1_ldflags=$withval
5674 else
5675 stage1_ldflags=
5676 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5677 # if supported. But if the user explicitly specified the libraries to use,
5678 # trust that they are doing what they want.
5679 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5680 stage1_ldflags="-static-libstdc++ -static-libgcc"
5686 # Libraries to use for stage2 and later builds. This defaults to the
5687 # argument passed to --with-host-libstdcxx.
5689 # Check whether --with-boot-libs was given.
5690 if test "${with_boot_libs+set}" = set; then :
5691 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5692 poststage1_libs=
5693 else
5694 poststage1_libs=$withval
5696 else
5697 poststage1_libs=$with_host_libstdcxx
5702 # Linker flags to use for stage2 and later builds.
5704 # Check whether --with-boot-ldflags was given.
5705 if test "${with_boot_ldflags+set}" = set; then :
5706 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5707 poststage1_ldflags=
5708 else
5709 poststage1_ldflags=$withval
5711 else
5712 poststage1_ldflags=
5713 # In stages 2 and 3, default to linking libstdc++ and libgcc
5714 # statically. But if the user explicitly specified the libraries to
5715 # use, trust that they are doing what they want.
5716 if test "$poststage1_libs" = ""; then
5717 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5723 # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5724 # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5725 # config/isl.m4
5728 # Check whether --with-cloog was given.
5729 if test "${with_cloog+set}" = set; then :
5730 withval=$with_cloog;
5734 # Check whether --with-isl was given.
5735 if test "${with_isl+set}" = set; then :
5736 withval=$with_isl;
5740 # Treat either --without-cloog or --without-isl as a request to disable
5741 # GRAPHITE support and skip all following checks.
5742 if test "x$with_isl" != "xno" &&
5743 test "x$with_cloog" != "xno"; then
5744 # Check for ISL
5747 # Check whether --with-isl-include was given.
5748 if test "${with_isl_include+set}" = set; then :
5749 withval=$with_isl_include;
5753 # Check whether --with-isl-lib was given.
5754 if test "${with_isl_lib+set}" = set; then :
5755 withval=$with_isl_lib;
5759 # Check whether --enable-isl-version-check was given.
5760 if test "${enable_isl_version_check+set}" = set; then :
5761 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5762 else
5763 ENABLE_ISL_CHECK=yes
5767 # Initialize isllibs and islinc.
5768 case $with_isl in
5770 isllibs=
5771 islinc=
5773 "" | yes)
5776 isllibs="-L$with_isl/lib"
5777 islinc="-I$with_isl/include"
5779 esac
5780 if test "x${with_isl_include}" != x ; then
5781 islinc="-I$with_isl_include"
5783 if test "x${with_isl_lib}" != x; then
5784 isllibs="-L$with_isl_lib"
5786 if test "x${islinc}" = x && test "x${isllibs}" = x \
5787 && test -d ${srcdir}/isl; then
5788 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5789 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5790 ENABLE_ISL_CHECK=no
5795 if test "${ENABLE_ISL_CHECK}" = yes ; then
5796 _isl_saved_CFLAGS=$CFLAGS
5797 _isl_saved_LDFLAGS=$LDFLAGS
5798 _isl_saved_LIBS=$LIBS
5800 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5801 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5802 LIBS="${_isl_saved_LIBS} -lisl"
5803 echo $CFLAGS
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5806 $as_echo_n "checking for version 0.10 of ISL... " >&6; }
5807 if test "${gcc_cv_isl+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test "$cross_compiling" = yes; then :
5811 gcc_cv_isl=yes
5812 else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #include <isl/version.h>
5816 #include <string.h>
5818 main ()
5820 if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5821 return 1;
5824 return 0;
5826 _ACEOF
5827 if ac_fn_c_try_run "$LINENO"; then :
5828 gcc_cv_isl=yes
5829 else
5830 gcc_cv_isl=no
5832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5833 conftest.$ac_objext conftest.beam conftest.$ac_ext
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5838 $as_echo "$gcc_cv_isl" >&6; }
5840 CFLAGS=$_isl_saved_CFLAGS
5841 LDFLAGS=$_isl_saved_LDFLAGS
5842 LIBS=$_isl_saved_LIBS
5850 if test "x${with_isl}" = xno; then
5851 graphite_requested=no
5852 elif test "x${with_isl}" != x \
5853 || test "x${with_isl_include}" != x \
5854 || test "x${with_isl_lib}" != x ; then
5855 graphite_requested=yes
5856 else
5857 graphite_requested=no
5862 if test "${gcc_cv_isl}" = no ; then
5863 isllibs=
5864 islinc=
5867 if test "${graphite_requested}" = yes \
5868 && test "x${isllibs}" = x \
5869 && test "x${islinc}" = x ; then
5871 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5876 if test "x$gcc_cv_isl" != "xno"; then
5877 # Check for CLOOG
5880 # Check whether --with-cloog-include was given.
5881 if test "${with_cloog_include+set}" = set; then :
5882 withval=$with_cloog_include;
5886 # Check whether --with-cloog-lib was given.
5887 if test "${with_cloog_lib+set}" = set; then :
5888 withval=$with_cloog_lib;
5892 # Check whether --enable-cloog-version-check was given.
5893 if test "${enable_cloog_version_check+set}" = set; then :
5894 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5895 else
5896 ENABLE_CLOOG_CHECK=yes
5900 # Initialize clooglibs and clooginc.
5901 case $with_cloog in
5903 clooglibs=
5904 clooginc=
5906 "" | yes)
5909 clooglibs="-L$with_cloog/lib"
5910 clooginc="-I$with_cloog/include"
5912 esac
5913 if test "x${with_cloog_include}" != x ; then
5914 clooginc="-I$with_cloog_include"
5916 if test "x${with_cloog_lib}" != x; then
5917 clooglibs="-L$with_cloog_lib"
5919 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
5920 && test -d ${srcdir}/cloog; then
5921 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5922 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
5925 clooginc="-DCLOOG_INT_GMP ${clooginc}"
5926 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
5932 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5933 _cloog_saved_CFLAGS=$CFLAGS
5934 _cloog_saved_LDFLAGS=$LDFLAGS
5936 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5937 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5940 $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5941 if test "${gcc_cv_cloog+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #include "cloog/version.h"
5948 main ()
5950 #if CLOOG_VERSION_MAJOR != 0 \
5951 || CLOOG_VERSION_MINOR != 17 \
5952 || CLOOG_VERSION_REVISION < 0
5953 choke me
5954 #endif
5956 return 0;
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 gcc_cv_cloog=yes
5961 else
5962 gcc_cv_cloog=no
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5967 $as_echo "$gcc_cv_cloog" >&6; }
5969 CFLAGS=$_cloog_saved_CFLAGS
5970 LDFLAGS=$_cloog_saved_LDFLAGS
5979 if test "x${with_cloog}" = xno; then
5980 graphite_requested=no
5981 elif test "x${with_cloog}" != x \
5982 || test "x${with_cloog_include}" != x \
5983 || test "x${with_cloog_lib}" != x ; then
5984 graphite_requested=yes
5985 else
5986 graphite_requested=no
5991 if test "${gcc_cv_cloog}" = no ; then
5992 clooglibs=
5993 clooginc=
5996 if test "${graphite_requested}" = yes \
5997 && test "x${clooglibs}" = x \
5998 && test "x${clooginc}" = x ; then
6000 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6007 # If either the ISL or the CLooG check failed, disable builds of in-tree
6008 # variants of both
6009 if test "x$with_isl" = xno ||
6010 test "x$with_cloog" = xno ||
6011 test "x$gcc_cv_cloog" = xno ||
6012 test "x$gcc_cv_isl" = xno; then
6013 noconfigdirs="$noconfigdirs cloog isl"
6014 islinc=
6015 clooginc=
6016 clooglibs=
6024 # Check for LTO support.
6025 # Check whether --enable-lto was given.
6026 if test "${enable_lto+set}" = set; then :
6027 enableval=$enable_lto; enable_lto=$enableval
6028 else
6029 enable_lto=yes; default_enable_lto=yes
6036 target_elf=no
6037 case $target in
6038 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6039 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6040 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6041 target_elf=no
6044 target_elf=yes
6046 esac
6048 if test $target_elf = yes; then :
6049 # ELF platforms build the lto-plugin always.
6050 build_lto_plugin=yes
6052 else
6053 if test x"$default_enable_lto" = x"yes" ; then
6054 case $target in
6055 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6056 # On other non-ELF platforms, LTO has yet to be validated.
6057 *) enable_lto=no ;;
6058 esac
6059 else
6060 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6061 # It would also be nice to check the binutils support, but we don't
6062 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6063 # warn during gcc/ subconfigure; unless you're bootstrapping with
6064 # -flto it won't be needed until after installation anyway.
6065 case $target in
6066 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6067 *) if test x"$enable_lto" = x"yes"; then
6068 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6071 esac
6073 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6074 # Build it unless LTO was explicitly disabled.
6075 case $target in
6076 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6077 *) ;;
6078 esac
6084 # By default, C and C++ are the only stage 1 languages.
6085 stage1_languages=,c,
6087 # Target libraries that we bootstrap.
6088 bootstrap_target_libs=,target-libgcc,
6090 # Figure out what language subdirectories are present.
6091 # Look if the user specified --enable-languages="..."; if not, use
6092 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6093 # go away some day.
6094 # NB: embedded tabs in this IF block -- do not untabify
6095 if test -d ${srcdir}/gcc; then
6096 if test x"${enable_languages+set}" != xset; then
6097 if test x"${LANGUAGES+set}" = xset; then
6098 enable_languages="${LANGUAGES}"
6099 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6100 else
6101 enable_languages=all
6103 else
6104 if test x"${enable_languages}" = x ||
6105 test x"${enable_languages}" = xyes;
6106 then
6107 echo configure.in: --enable-languages needs at least one language argument 1>&2
6108 exit 1
6111 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6113 # 'f95' is the old name for the 'fortran' language. We issue a warning
6114 # and make the substitution.
6115 case ,${enable_languages}, in
6116 *,f95,*)
6117 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6118 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6120 esac
6122 # If bootstrapping, C++ must be enabled.
6123 case ",$enable_languages,:$enable_bootstrap" in
6124 *,c++,*:*) ;;
6125 *:yes)
6126 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6127 enable_languages="${enable_languages},c++"
6128 else
6129 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
6132 esac
6134 # First scan to see if an enabled language requires some other language.
6135 # We assume that a given config-lang.in will list all the language
6136 # front ends it requires, even if some are required indirectly.
6137 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6138 case ${lang_frag} in
6139 ..) ;;
6140 # The odd quoting in the next line works around
6141 # an apparent bug in bash 1.12 on linux.
6142 ${srcdir}/gcc/[*]/config-lang.in) ;;
6144 # From the config-lang.in, get $language, $lang_requires, and
6145 # $lang_requires_boot_languages.
6146 language=
6147 lang_requires=
6148 lang_requires_boot_languages=
6149 . ${lang_frag}
6150 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6151 case ,${enable_languages}, in
6152 *,$other,*) ;;
6153 *,all,*) ;;
6154 *,$language,*)
6155 echo " \`$other' language required by \`$language'; enabling" 1>&2
6156 enable_languages="${enable_languages},${other}"
6158 esac
6159 done
6160 for other in ${lang_requires_boot_languages} ; do
6161 if test "$other" != "c"; then
6162 case ,${enable_stage1_languages}, in
6163 *,$other,*) ;;
6164 *,all,*) ;;
6166 case ,${enable_languages}, in
6167 *,$language,*)
6168 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6169 enable_stage1_languages="$enable_stage1_languages,${other}"
6171 esac
6173 esac
6175 done
6177 esac
6178 done
6180 new_enable_languages=,c,
6182 # If LTO is enabled, add the LTO front end.
6183 extra_host_libiberty_configure_flags=
6184 if test "$enable_lto" = "yes" ; then
6185 case ,${enable_languages}, in
6186 *,lto,*) ;;
6187 *) enable_languages="${enable_languages},lto" ;;
6188 esac
6189 if test "${build_lto_plugin}" = "yes" ; then
6190 configdirs="$configdirs lto-plugin"
6191 extra_host_libiberty_configure_flags=--enable-shared
6196 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6197 potential_languages=,c,
6199 enabled_target_libs=
6200 disabled_target_libs=
6202 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6203 case ${lang_frag} in
6204 ..) ;;
6205 # The odd quoting in the next line works around
6206 # an apparent bug in bash 1.12 on linux.
6207 ${srcdir}/gcc/[*]/config-lang.in) ;;
6209 # From the config-lang.in, get $language, $target_libs,
6210 # $lang_dirs, $boot_language, and $build_by_default
6211 language=
6212 target_libs=
6213 lang_dirs=
6214 subdir_requires=
6215 boot_language=no
6216 build_by_default=yes
6217 . ${lang_frag}
6218 if test x${language} = x; then
6219 echo "${lang_frag} doesn't set \$language." 1>&2
6220 exit 1
6223 if test "$language" = "c++"; then
6224 boot_language=yes
6227 add_this_lang=no
6228 case ,${enable_languages}, in
6229 *,${language},*)
6230 # Language was explicitly selected; include it
6231 # unless it is C, which is enabled by default.
6232 if test "$language" != "c"; then
6233 add_this_lang=yes
6236 *,all,*)
6237 # 'all' was selected, select it if it is a default language
6238 if test "$language" != "c"; then
6239 add_this_lang=${build_by_default}
6242 esac
6244 # Disable languages that need other directories if these aren't available.
6245 for i in $subdir_requires; do
6246 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6247 case ,${enable_languages}, in
6248 *,${language},*)
6249 # Specifically requested language; tell them.
6250 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6253 # Silently disable.
6254 add_this_lang=unsupported
6256 esac
6257 done
6259 # Disable Ada if no preexisting GNAT is available.
6260 case ,${enable_languages},:${language}:${have_gnat} in
6261 *,${language},*:ada:no)
6262 # Specifically requested language; tell them.
6263 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6265 *:ada:no)
6266 # Silently disable.
6267 add_this_lang=unsupported
6269 esac
6271 # Disable a language that is unsupported by the target.
6272 case " $unsupported_languages " in
6273 *" $language "*)
6274 add_this_lang=unsupported
6276 esac
6278 case $add_this_lang in
6279 unsupported)
6280 # Remove language-dependent dirs.
6281 disabled_target_libs="$disabled_target_libs $target_libs"
6282 noconfigdirs="$noconfigdirs $lang_dirs"
6285 # Remove language-dependent dirs; still show language as supported.
6286 disabled_target_libs="$disabled_target_libs $target_libs"
6287 noconfigdirs="$noconfigdirs $lang_dirs"
6288 potential_languages="${potential_languages}${language},"
6290 yes)
6291 new_enable_languages="${new_enable_languages}${language},"
6292 potential_languages="${potential_languages}${language},"
6293 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6294 enabled_target_libs="$enabled_target_libs $target_libs"
6295 case "${boot_language}:,$enable_stage1_languages," in
6296 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6297 # Add to (comma-separated) list of stage 1 languages.
6298 case ",$stage1_languages," in
6299 *,$language,* | ,yes, | ,all,) ;;
6300 *) stage1_languages="${stage1_languages}${language}," ;;
6301 esac
6302 # We need to bootstrap any supporting libraries.
6303 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6305 esac
6307 esac
6309 esac
6310 done
6312 # Add target libraries which are only needed for disabled languages
6313 # to noconfigdirs.
6314 if test -n "$disabled_target_libs"; then
6315 for dir in $disabled_target_libs; do
6316 case " $enabled_target_libs " in
6317 *" ${dir} "*) ;;
6318 *) noconfigdirs="$noconfigdirs $dir" ;;
6319 esac
6320 done
6323 # Check whether --enable-stage1-languages was given.
6324 if test "${enable_stage1_languages+set}" = set; then :
6325 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6326 ,no,|,,)
6327 # Set it to something that will have no effect in the loop below
6328 enable_stage1_languages=c ;;
6329 ,yes,)
6330 enable_stage1_languages=`echo $new_enable_languages | \
6331 sed -e "s/^,//" -e "s/,$//" ` ;;
6332 *,all,*)
6333 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6334 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6335 esac
6337 # Add "good" languages from enable_stage1_languages to stage1_languages,
6338 # while "bad" languages go in missing_languages. Leave no duplicates.
6339 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6340 case $potential_languages in
6341 *,$i,*)
6342 case $stage1_languages in
6343 *,$i,*) ;;
6344 *) stage1_languages="$stage1_languages$i," ;;
6345 esac ;;
6347 case $missing_languages in
6348 *,$i,*) ;;
6349 *) missing_languages="$missing_languages$i," ;;
6350 esac ;;
6351 esac
6352 done
6356 # Remove leading/trailing commas that were added for simplicity
6357 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6358 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6359 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6360 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6362 if test "x$missing_languages" != x; then
6363 as_fn_error "
6364 The following requested languages could not be built: ${missing_languages}
6365 Supported languages are: ${potential_languages}" "$LINENO" 5
6367 if test "x$new_enable_languages" != "x$enable_languages"; then
6368 echo The following languages will be built: ${new_enable_languages}
6369 enable_languages="$new_enable_languages"
6373 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6376 # Handle --disable-<component> generically.
6377 for dir in $configdirs $build_configdirs $target_configdirs ; do
6378 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6379 varname=`echo $dirname | sed -e s/+/_/g`
6380 if eval test x\${enable_${varname}} "=" xno ; then
6381 noconfigdirs="$noconfigdirs $dir"
6383 done
6385 # Check for Boehm's garbage collector
6386 # Check whether --enable-objc-gc was given.
6387 if test "${enable_objc_gc+set}" = set; then :
6388 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6389 *,objc,*:*:yes:*target-boehm-gc*)
6390 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6392 esac
6396 # Make sure we only build Boehm's garbage collector if required.
6397 case ,${enable_languages},:${enable_objc_gc} in
6398 *,objc,*:yes)
6399 # Keep target-boehm-gc if requested for Objective-C.
6402 # Otherwise remove target-boehm-gc depending on target-libjava.
6403 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6404 noconfigdirs="$noconfigdirs target-boehm-gc"
6407 esac
6409 # Disable libitm if we're not building C++
6410 case ,${enable_languages}, in
6411 *,c++,*) ;;
6413 noconfigdirs="$noconfigdirs target-libitm"
6415 esac
6417 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6418 # $build_configdirs and $target_configdirs.
6419 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6421 notsupp=""
6422 for dir in . $skipdirs $noconfigdirs ; do
6423 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6424 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6425 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6426 if test -r $srcdir/$dirname/configure ; then
6427 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6428 true
6429 else
6430 notsupp="$notsupp $dir"
6434 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6435 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6436 if test -r $srcdir/$dirname/configure ; then
6437 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6438 true
6439 else
6440 notsupp="$notsupp $dir"
6444 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6445 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6446 if test -r $srcdir/$dirname/configure ; then
6447 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 true
6449 else
6450 notsupp="$notsupp $dir"
6454 done
6456 # Quietly strip out all directories which aren't configurable in this tree.
6457 # This relies on all configurable subdirectories being autoconfiscated, which
6458 # is now the case.
6459 build_configdirs_all="$build_configdirs"
6460 build_configdirs=
6461 for i in ${build_configdirs_all} ; do
6462 j=`echo $i | sed -e s/build-//g`
6463 if test -f ${srcdir}/$j/configure ; then
6464 build_configdirs="${build_configdirs} $i"
6466 done
6468 configdirs_all="$configdirs"
6469 configdirs=
6470 for i in ${configdirs_all} ; do
6471 if test -f ${srcdir}/$i/configure ; then
6472 configdirs="${configdirs} $i"
6474 done
6476 target_configdirs_all="$target_configdirs"
6477 target_configdirs=
6478 for i in ${target_configdirs_all} ; do
6479 j=`echo $i | sed -e s/target-//g`
6480 if test -f ${srcdir}/$j/configure ; then
6481 target_configdirs="${target_configdirs} $i"
6483 done
6485 # Produce a warning message for the subdirs we can't configure.
6486 # This isn't especially interesting in the Cygnus tree, but in the individual
6487 # FSF releases, it's important to let people know when their machine isn't
6488 # supported by the one or two programs in a package.
6490 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6491 # If $appdirs is non-empty, at least one of those directories must still
6492 # be configured, or we error out. (E.g., if the gas release supports a
6493 # specified target in some subdirs but not the gas subdir, we shouldn't
6494 # pretend that all is well.)
6495 if test -n "$appdirs" ; then
6496 for dir in $appdirs ; do
6497 if test -r $dir/Makefile.in ; then
6498 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6499 appdirs=""
6500 break
6502 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6503 appdirs=""
6504 break
6507 done
6508 if test -n "$appdirs" ; then
6509 echo "*** This configuration is not supported by this package." 1>&2
6510 exit 1
6513 # Okay, some application will build, or we don't care to check. Still
6514 # notify of subdirs not getting built.
6515 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6516 echo " ${notsupp}" 1>&2
6517 echo " (Any other directories should still work fine.)" 1>&2
6520 case "$host" in
6521 *msdosdjgpp*)
6522 enable_gdbtk=no ;;
6523 esac
6525 # To find our prefix, in gcc_cv_tool_prefix.
6527 # The user is always right.
6528 if test "${PATH_SEPARATOR+set}" != set; then
6529 echo "#! /bin/sh" >conf$$.sh
6530 echo "exit 0" >>conf$$.sh
6531 chmod +x conf$$.sh
6532 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6533 PATH_SEPARATOR=';'
6534 else
6535 PATH_SEPARATOR=:
6537 rm -f conf$$.sh
6542 if test "x$exec_prefix" = xNONE; then
6543 if test "x$prefix" = xNONE; then
6544 gcc_cv_tool_prefix=$ac_default_prefix
6545 else
6546 gcc_cv_tool_prefix=$prefix
6548 else
6549 gcc_cv_tool_prefix=$exec_prefix
6552 # If there is no compiler in the tree, use the PATH only. In any
6553 # case, if there is no compiler in the tree nobody should use
6554 # AS_FOR_TARGET and LD_FOR_TARGET.
6555 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6556 gcc_version=`cat $srcdir/gcc/BASE-VER`
6557 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6558 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6559 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6560 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6561 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6562 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6563 else
6564 gcc_cv_tool_dirs=
6567 if test x$build = x$target && test -n "$md_exec_prefix"; then
6568 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6573 copy_dirs=
6576 # Check whether --with-build-sysroot was given.
6577 if test "${with_build_sysroot+set}" = set; then :
6578 withval=$with_build_sysroot; if test x"$withval" != x ; then
6579 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6581 else
6582 SYSROOT_CFLAGS_FOR_TARGET=
6588 # Check whether --with-debug-prefix-map was given.
6589 if test "${with_debug_prefix_map+set}" = set; then :
6590 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6591 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6592 for debug_map in $withval; do
6593 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6594 done
6596 else
6597 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6602 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6603 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6604 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6605 # We want to ensure that TARGET libraries (which we know are built with
6606 # gcc) are built with "-O2 -g", so include those options when setting
6607 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6608 if test "x$CFLAGS_FOR_TARGET" = x; then
6609 CFLAGS_FOR_TARGET=$CFLAGS
6610 case " $CFLAGS " in
6611 *" -O2 "*) ;;
6612 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6613 esac
6614 case " $CFLAGS " in
6615 *" -g "* | *" -g3 "*) ;;
6616 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6617 esac
6621 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6622 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6623 case " $CXXFLAGS " in
6624 *" -O2 "*) ;;
6625 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6626 esac
6627 case " $CXXFLAGS " in
6628 *" -g "* | *" -g3 "*) ;;
6629 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6630 esac
6636 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6637 # the named directory are copied to $(tooldir)/sys-include.
6638 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6639 if test x${is_cross_compiler} = xno ; then
6640 echo 1>&2 '***' --with-headers is only supported when cross compiling
6641 exit 1
6643 if test x"${with_headers}" != xyes ; then
6644 x=${gcc_cv_tool_prefix}
6645 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6649 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6650 # the name directories are copied to $(tooldir)/lib. Multiple directories
6651 # are permitted.
6652 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6653 if test x${is_cross_compiler} = xno ; then
6654 echo 1>&2 '***' --with-libs is only supported when cross compiling
6655 exit 1
6657 if test x"${with_libs}" != xyes ; then
6658 # Copy the libraries in reverse order, so that files in the first named
6659 # library override files in subsequent libraries.
6660 x=${gcc_cv_tool_prefix}
6661 for l in ${with_libs}; do
6662 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6663 done
6667 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6669 # This is done by determining whether or not the appropriate directory
6670 # is available, and by checking whether or not specific configurations
6671 # have requested that this magic not happen.
6673 # The command line options always override the explicit settings in
6674 # configure.in, and the settings in configure.in override this magic.
6676 # If the default for a toolchain is to use GNU as and ld, and you don't
6677 # want to do that, then you should use the --without-gnu-as and
6678 # --without-gnu-ld options for the configure script. Similarly, if
6679 # the default is to use the included zlib and you don't want to do that,
6680 # you should use the --with-system-zlib option for the configure script.
6682 if test x${use_gnu_as} = x &&
6683 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6684 with_gnu_as=yes
6685 extra_host_args="$extra_host_args --with-gnu-as"
6688 if test x${use_gnu_ld} = x &&
6689 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6690 with_gnu_ld=yes
6691 extra_host_args="$extra_host_args --with-gnu-ld"
6694 if test x${use_included_zlib} = x &&
6695 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6697 else
6698 with_system_zlib=yes
6699 extra_host_args="$extra_host_args --with-system-zlib"
6702 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6703 # can detect this case.
6705 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6706 with_newlib=yes
6707 extra_host_args="$extra_host_args --with-newlib"
6710 # Handle ${copy_dirs}
6711 set fnord ${copy_dirs}
6712 shift
6713 while test $# != 0 ; do
6714 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6716 else
6717 echo Copying $1 to $2
6719 # Use the install script to create the directory and all required
6720 # parent directories.
6721 if test -d $2 ; then
6723 else
6724 echo >config.temp
6725 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6728 # Copy the directory, assuming we have tar.
6729 # FIXME: Should we use B in the second tar? Not all systems support it.
6730 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6732 # It is the responsibility of the user to correctly adjust all
6733 # symlinks. If somebody can figure out how to handle them correctly
6734 # here, feel free to add the code.
6736 echo $1 > $2/COPIED
6738 shift; shift
6739 done
6741 # Determine a target-dependent exec_prefix that the installed
6742 # gcc will search in. Keep this list sorted by triplet, with
6743 # the *-*-osname triplets last.
6744 md_exec_prefix=
6745 case "${target}" in
6746 i[34567]86-pc-msdosdjgpp*)
6747 md_exec_prefix=/dev/env/DJDIR/bin
6749 *-*-hpux* | \
6750 *-*-nto-qnx* | \
6751 *-*-solaris2*)
6752 md_exec_prefix=/usr/ccs/bin
6754 esac
6756 extra_arflags_for_target=
6757 extra_nmflags_for_target=
6758 extra_ranlibflags_for_target=
6759 target_makefile_frag=/dev/null
6760 case "${target}" in
6761 spu-*-*)
6762 target_makefile_frag="config/mt-spu"
6764 mips*-sde-elf* | mips*-mti-elf*)
6765 target_makefile_frag="config/mt-sde"
6767 mipsisa*-*-elfoabi*)
6768 target_makefile_frag="config/mt-mips-elfoabi"
6770 mips*-*-*linux* | mips*-*-gnu*)
6771 target_makefile_frag="config/mt-mips-gnu"
6773 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6774 target_makefile_frag="config/mt-gnu"
6776 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6777 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6778 # commands to handle both 32-bit and 64-bit objects. These flags are
6779 # harmless if we're using GNU nm or ar.
6780 extra_arflags_for_target=" -X32_64"
6781 extra_nmflags_for_target=" -B -X32_64"
6783 esac
6785 alphaieee_frag=/dev/null
6786 case $target in
6787 alpha*-*-*)
6788 # This just makes sure to use the -mieee option to build target libs.
6789 # This should probably be set individually by each library.
6790 alphaieee_frag="config/mt-alphaieee"
6792 esac
6794 # If --enable-target-optspace always use -Os instead of -O2 to build
6795 # the target libraries, similarly if it is not specified, use -Os
6796 # on selected platforms.
6797 ospace_frag=/dev/null
6798 case "${enable_target_optspace}:${target}" in
6799 yes:*)
6800 ospace_frag="config/mt-ospace"
6802 :d30v-*)
6803 ospace_frag="config/mt-d30v"
6805 :m32r-* | :d10v-* | :fr30-*)
6806 ospace_frag="config/mt-ospace"
6808 no:* | :*)
6811 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6813 esac
6815 # Some systems (e.g., one of the i386-aix systems the gas testers are
6816 # using) don't handle "\$" correctly, so don't use it here.
6817 tooldir='${exec_prefix}'/${target_noncanonical}
6818 build_tooldir=${tooldir}
6820 # Create a .gdbinit file which runs the one in srcdir
6821 # and tells GDB to look there for source files.
6823 if test -r ${srcdir}/.gdbinit ; then
6824 case ${srcdir} in
6825 .) ;;
6826 *) cat > ./.gdbinit <<EOF
6827 # ${NO_EDIT}
6828 dir ${srcdir}
6829 dir .
6830 source ${srcdir}/.gdbinit
6833 esac
6836 # Make sure that the compiler is able to generate an executable. If it
6837 # can't, we are probably in trouble. We don't care whether we can run the
6838 # executable--we might be using a cross compiler--we only care whether it
6839 # can be created. At this point the main configure script has set CC.
6840 we_are_ok=no
6841 echo "int main () { return 0; }" > conftest.c
6842 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6843 if test $? = 0 ; then
6844 if test -s conftest || test -s conftest.exe ; then
6845 we_are_ok=yes
6848 case $we_are_ok in
6850 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6851 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6852 rm -f conftest*
6853 exit 1
6855 esac
6856 rm -f conftest*
6858 # Decide which environment variable is used to find dynamic libraries.
6859 case "${host}" in
6860 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6861 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6862 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6863 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6864 esac
6866 # On systems where the dynamic library environment variable is PATH,
6867 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6868 # built executables to PATH.
6869 if test "$RPATH_ENVVAR" = PATH; then
6870 GCC_SHLIB_SUBDIR=/shlib
6871 else
6872 GCC_SHLIB_SUBDIR=
6875 # Record target_configdirs and the configure arguments for target and
6876 # build configuration in Makefile.
6877 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6878 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6880 # If we are building libgomp, bootstrap it.
6881 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6882 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6885 # Determine whether gdb needs tk/tcl or not.
6886 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6887 # and in that case we want gdb to be built without tk. Ugh!
6888 # In fact I believe gdb is the *only* package directly dependent on tk,
6889 # so we should be able to put the 'maybe's in unconditionally and
6890 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6891 # 100% sure that that's safe though.
6893 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6894 case "$enable_gdbtk" in
6896 GDB_TK="" ;;
6897 yes)
6898 GDB_TK="${gdb_tk}" ;;
6900 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6901 # distro. Eventually someone will fix this and move Insight, nee
6902 # gdbtk to a separate directory.
6903 if test -d ${srcdir}/gdb/gdbtk ; then
6904 GDB_TK="${gdb_tk}"
6905 else
6906 GDB_TK=""
6909 esac
6910 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6911 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6913 # Strip out unwanted targets.
6915 # While at that, we remove Makefiles if we were started for recursive
6916 # configuration, so that the top-level Makefile reconfigures them,
6917 # like we used to do when configure itself was recursive.
6919 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6920 # but now we're fixing up the Makefile ourselves with the additional
6921 # commands passed to AC_CONFIG_FILES. Use separate variables
6922 # extrasub-{build,host,target} not because there is any reason to split
6923 # the substitutions up that way, but only to remain below the limit of
6924 # 99 commands in a script, for HP-UX sed.
6925 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6927 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6928 yes:yes:*\ gold\ *:*,c++,*) ;;
6929 yes:yes:*\ gold\ *:*)
6930 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6932 esac
6934 # Adjust the toplevel makefile according to whether bootstrap was selected.
6935 case $enable_bootstrap in
6936 yes)
6937 bootstrap_suffix=bootstrap
6938 BUILD_CONFIG=bootstrap-debug
6941 bootstrap_suffix=no-bootstrap
6942 BUILD_CONFIG=
6944 esac
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6947 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6950 # Check whether --with-build-config was given.
6951 if test "${with_build_config+set}" = set; then :
6952 withval=$with_build_config; case $with_build_config in
6953 yes) with_build_config= ;;
6954 no) with_build_config= BUILD_CONFIG= ;;
6955 esac
6959 if test "x${with_build_config}" != x; then
6960 BUILD_CONFIG=$with_build_config
6961 else
6962 case $BUILD_CONFIG in
6963 bootstrap-debug)
6964 if echo "int f (void) { return 0; }" > conftest.c &&
6965 ${CC} -c conftest.c &&
6966 mv conftest.o conftest.o.g0 &&
6967 ${CC} -c -g conftest.c &&
6968 mv conftest.o conftest.o.g &&
6969 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6971 else
6972 BUILD_CONFIG=
6974 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6976 esac
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6979 $as_echo "$BUILD_CONFIG" >&6; }
6982 extrasub_build=
6983 for module in ${build_configdirs} ; do
6984 if test -z "${no_recursion}" \
6985 && test -f ${build_subdir}/${module}/Makefile; then
6986 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6987 rm -f ${build_subdir}/${module}/Makefile
6989 extrasub_build="$extrasub_build
6990 /^@if build-$module\$/d
6991 /^@endif build-$module\$/d
6992 /^@if build-$module-$bootstrap_suffix\$/d
6993 /^@endif build-$module-$bootstrap_suffix\$/d"
6994 done
6995 extrasub_host=
6996 for module in ${configdirs} ; do
6997 if test -z "${no_recursion}"; then
6998 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
6999 if test -f ${file}; then
7000 echo 1>&2 "*** removing ${file} to force reconfigure"
7001 rm -f ${file}
7003 done
7005 extrasub_host="$extrasub_host
7006 /^@if $module\$/d
7007 /^@endif $module\$/d
7008 /^@if $module-$bootstrap_suffix\$/d
7009 /^@endif $module-$bootstrap_suffix\$/d"
7010 done
7011 extrasub_target=
7012 for module in ${target_configdirs} ; do
7013 if test -z "${no_recursion}" \
7014 && test -f ${target_subdir}/${module}/Makefile; then
7015 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7016 rm -f ${target_subdir}/${module}/Makefile
7019 # We only bootstrap target libraries listed in bootstrap_target_libs.
7020 case $bootstrap_target_libs in
7021 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7022 *) target_bootstrap_suffix=no-bootstrap ;;
7023 esac
7025 extrasub_target="$extrasub_target
7026 /^@if target-$module\$/d
7027 /^@endif target-$module\$/d
7028 /^@if target-$module-$target_bootstrap_suffix\$/d
7029 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7030 done
7032 # Do the final fixup along with target modules.
7033 extrasub_target="$extrasub_target
7034 /^@if /,/^@endif /d"
7036 # Create the serialization dependencies. This uses a temporary file.
7038 # Check whether --enable-serial-configure was given.
7039 if test "${enable_serial_configure+set}" = set; then :
7040 enableval=$enable_serial_configure;
7044 case ${enable_serial_configure} in
7045 yes)
7046 enable_serial_build_configure=yes
7047 enable_serial_host_configure=yes
7048 enable_serial_target_configure=yes
7050 esac
7052 # These force 'configure's to be done one at a time, to avoid problems
7053 # with contention over a shared config.cache.
7054 rm -f serdep.tmp
7055 echo '# serdep.tmp' > serdep.tmp
7056 olditem=
7057 test "x${enable_serial_build_configure}" = xyes &&
7058 for item in ${build_configdirs} ; do
7059 case ${olditem} in
7060 "") ;;
7061 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7062 esac
7063 olditem=${item}
7064 done
7065 olditem=
7066 test "x${enable_serial_host_configure}" = xyes &&
7067 for item in ${configdirs} ; do
7068 case ${olditem} in
7069 "") ;;
7070 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7071 esac
7072 olditem=${item}
7073 done
7074 olditem=
7075 test "x${enable_serial_target_configure}" = xyes &&
7076 for item in ${target_configdirs} ; do
7077 case ${olditem} in
7078 "") ;;
7079 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7080 esac
7081 olditem=${item}
7082 done
7083 serialization_dependencies=serdep.tmp
7086 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7087 # target, nonopt, and variable assignments. These are the ones we
7088 # might not want to pass down to subconfigures. The exception being
7089 # --cache-file=/dev/null, which is used to turn off the use of cache
7090 # files altogether, and which should be passed on to subconfigures.
7091 # Also strip program-prefix, program-suffix, and program-transform-name,
7092 # so that we can pass down a consistent program-transform-name.
7093 baseargs=
7094 tbaseargs=
7095 keep_next=no
7096 skip_next=no
7097 eval "set -- $ac_configure_args"
7098 for ac_arg
7100 if test X"$skip_next" = X"yes"; then
7101 skip_next=no
7102 continue
7104 if test X"$keep_next" = X"yes"; then
7105 case $ac_arg in
7106 *\'*)
7107 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7108 esac
7109 baseargs="$baseargs '$ac_arg'"
7110 tbaseargs="$tbaseargs '$ac_arg'"
7111 keep_next=no
7112 continue
7115 # Handle separated arguments. Based on the logic generated by
7116 # autoconf 2.59.
7117 case $ac_arg in
7118 *=* | --config-cache | -C | -disable-* | --disable-* \
7119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7121 | -with-* | --with-* | -without-* | --without-* | --x)
7122 separate_arg=no
7125 separate_arg=yes
7128 separate_arg=no
7130 esac
7132 skip_targ=no
7133 case $ac_arg in
7135 --with-* | --without-*)
7136 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7138 case $libopt in
7139 *[-_]include)
7140 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7142 *[-_]lib)
7143 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7146 lib=$libopt
7148 esac
7151 case $lib in
7152 mpc | mpfr | gmp | cloog)
7153 # If we're processing --with-$lib, --with-$lib-include or
7154 # --with-$lib-lib, for one of the libs above, and target is
7155 # different from host, don't pass the current argument to any
7156 # target library's configure.
7157 if test x$is_cross_compiler = xyes; then
7158 skip_targ=yes
7161 esac
7163 esac
7165 case "$ac_arg" in
7166 --cache-file=/dev/null | \
7167 -cache-file=/dev/null )
7168 # Handled here to avoid the test to skip args below.
7169 baseargs="$baseargs '$ac_arg'"
7170 tbaseargs="$tbaseargs '$ac_arg'"
7171 # Assert: $separate_arg should always be no.
7172 keep_next=$separate_arg
7174 --no*)
7175 continue
7177 --c* | \
7178 --sr* | \
7179 --ho* | \
7180 --bu* | \
7181 --t* | \
7182 --program-* | \
7183 -cache_file* | \
7184 -srcdir* | \
7185 -host* | \
7186 -build* | \
7187 -target* | \
7188 -program-prefix* | \
7189 -program-suffix* | \
7190 -program-transform-name* )
7191 skip_next=$separate_arg
7192 continue
7195 # An option. Add it.
7196 case $ac_arg in
7197 *\'*)
7198 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7199 esac
7200 baseargs="$baseargs '$ac_arg'"
7201 if test X"$skip_targ" = Xno; then
7202 tbaseargs="$tbaseargs '$ac_arg'"
7204 keep_next=$separate_arg
7207 # Either a variable assignment, or a nonopt (triplet). Don't
7208 # pass it down; let the Makefile handle this.
7209 continue
7211 esac
7212 done
7213 # Remove the initial space we just introduced and, as these will be
7214 # expanded by make, quote '$'.
7215 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7217 # Add in --program-transform-name, after --program-prefix and
7218 # --program-suffix have been applied to it. Autoconf has already
7219 # doubled dollar signs and backslashes in program_transform_name; we want
7220 # the backslashes un-doubled, and then the entire thing wrapped in single
7221 # quotes, because this will be expanded first by make and then by the shell.
7222 # Also, because we want to override the logic in subdir configure scripts to
7223 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7224 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7225 ${program_transform_name}
7226 EOF_SED
7227 gcc_transform_name=`cat conftestsed.out`
7228 rm -f conftestsed.out
7229 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7230 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7231 if test "$silent" = yes; then
7232 baseargs="$baseargs --silent"
7233 tbaseargs="$tbaseargs --silent"
7235 baseargs="$baseargs --disable-option-checking"
7236 tbaseargs="$tbaseargs --disable-option-checking"
7238 # Record and document user additions to sub configure arguments.
7243 # For the build-side libraries, we just need to pretend we're native,
7244 # and not use the same cache file. Multilibs are neither needed nor
7245 # desired.
7246 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7248 # For host modules, accept cache file option, or specification as blank.
7249 case "${cache_file}" in
7250 "") # empty
7251 cache_file_option="" ;;
7252 /* | [A-Za-z]:[\\/]* ) # absolute path
7253 cache_file_option="--cache-file=${cache_file}" ;;
7254 *) # relative path
7255 cache_file_option="--cache-file=../${cache_file}" ;;
7256 esac
7258 # Host dirs don't like to share a cache file either, horribly enough.
7259 # This seems to be due to autoconf 2.5x stupidity.
7260 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7262 target_configargs="$target_configargs ${tbaseargs}"
7264 # Passing a --with-cross-host argument lets the target libraries know
7265 # whether they are being built with a cross-compiler or being built
7266 # native. However, it would be better to use other mechanisms to make the
7267 # sorts of decisions they want to make on this basis. Please consider
7268 # this option to be deprecated. FIXME.
7269 if test x${is_cross_compiler} = xyes ; then
7270 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7273 # Default to --enable-multilib.
7274 if test x${enable_multilib} = x ; then
7275 target_configargs="--enable-multilib ${target_configargs}"
7278 # Pass --with-newlib if appropriate. Note that target_configdirs has
7279 # changed from the earlier setting of with_newlib.
7280 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7281 target_configargs="--with-newlib ${target_configargs}"
7284 # Different target subdirs use different values of certain variables
7285 # (notably CXX). Worse, multilibs use *lots* of different values.
7286 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7287 # it doesn't automatically accept command-line overrides of them.
7288 # This means it's not safe for target subdirs to share a cache file,
7289 # which is disgusting, but there you have it. Hopefully this can be
7290 # fixed in future. It's still worthwhile to use a cache file for each
7291 # directory. I think.
7293 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7294 # We need to pass --target, as newer autoconf's requires consistency
7295 # for target_alias and gcc doesn't manage it consistently.
7296 target_configargs="--cache-file=./config.cache ${target_configargs}"
7298 FLAGS_FOR_TARGET=
7299 case " $target_configdirs " in
7300 *" newlib "*)
7301 case " $target_configargs " in
7302 *" --with-newlib "*)
7303 case "$target" in
7304 *-cygwin*)
7305 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7307 esac
7309 # If we're not building GCC, don't discard standard headers.
7310 if test -d ${srcdir}/gcc; then
7311 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7313 if test "${build}" != "${host}"; then
7314 # On Canadian crosses, CC_FOR_TARGET will have already been set
7315 # by `configure', so we won't have an opportunity to add -Bgcc/
7316 # to it. This is right: we don't want to search that directory
7317 # for binaries, but we want the header files in there, so add
7318 # them explicitly.
7319 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7321 # Someone might think of using the pre-installed headers on
7322 # Canadian crosses, in case the installed compiler is not fully
7323 # compatible with the compiler being built. In this case, it
7324 # would be better to flag an error than risking having
7325 # incompatible object files being constructed. We can't
7326 # guarantee that an error will be flagged, but let's hope the
7327 # compiler will do it, when presented with incompatible header
7328 # files.
7332 case "${target}-${is_cross_compiler}" in
7333 i[3456789]86-*-linux*-no)
7334 # Here host == target, so we don't need to build gcc,
7335 # so we don't want to discard standard headers.
7336 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7339 # If we're building newlib, use its generic headers last, but search
7340 # for any libc-related directories first (so make it the last -B
7341 # switch).
7342 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7344 # If we're building libgloss, find the startup file, simulator library
7345 # and linker script.
7346 case " $target_configdirs " in
7347 *" libgloss "*)
7348 # Look for startup file, simulator library and maybe linker script.
7349 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7350 # Look for libnosys.a in case the target needs it.
7351 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7352 # Most targets have the linker script in the source directory.
7353 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7355 esac
7357 esac
7359 esac
7361 esac
7363 case "$target" in
7364 x86_64-*mingw* | *-w64-mingw*)
7365 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7366 # however, use a symlink named 'mingw' in ${prefix} .
7367 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7369 *-mingw*)
7370 # MinGW can't be handled as Cygwin above since it does not use newlib.
7371 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'
7373 esac
7375 # Allow the user to override the flags for
7376 # our build compiler if desired.
7377 if test x"${build}" = x"${host}" ; then
7378 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7379 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7380 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7383 # On Canadian crosses, we'll be searching the right directories for
7384 # the previously-installed cross compiler, so don't bother to add
7385 # flags for directories within the install tree of the compiler
7386 # being built; programs in there won't even run.
7387 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7388 # Search for pre-installed headers if nothing else fits.
7389 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7392 if test "x${use_gnu_ld}" = x &&
7393 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7394 # Arrange for us to find uninstalled linker scripts.
7395 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7398 # Search for other target-specific linker scripts and such.
7399 case "${target}" in
7400 mep*)
7401 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7403 esac
7405 # Makefile fragments.
7406 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7408 eval fragval=\$$frag
7409 if test $fragval != /dev/null; then
7410 eval $frag=${srcdir}/$fragval
7412 done
7418 # Miscellanea: directories, flags, etc.
7427 # Build module lists & subconfigure args.
7431 # Host module lists & subconfigure args.
7436 # Target module lists & subconfigure args.
7440 # Build tools.
7458 # Generate default definitions for YACC, M4, LEX and other programs that run
7459 # on the build machine. These are used if the Makefile can't locate these
7460 # programs in objdir.
7461 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7463 for ac_prog in 'bison -y' byacc yacc
7465 # Extract the first word of "$ac_prog", so it can be a program name with args.
7466 set dummy $ac_prog; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if test "${ac_cv_prog_YACC+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$YACC"; then
7473 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_prog_YACC="$ac_prog"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7488 IFS=$as_save_IFS
7492 YACC=$ac_cv_prog_YACC
7493 if test -n "$YACC"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7495 $as_echo "$YACC" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7502 test -n "$YACC" && break
7503 done
7504 test -n "$YACC" || YACC="$MISSING bison -y"
7506 case " $build_configdirs " in
7507 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7508 esac
7510 for ac_prog in bison
7512 # Extract the first word of "$ac_prog", so it can be a program name with args.
7513 set dummy $ac_prog; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if test "${ac_cv_prog_BISON+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 if test -n "$BISON"; then
7520 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_BISON="$ac_prog"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7533 done
7534 done
7535 IFS=$as_save_IFS
7539 BISON=$ac_cv_prog_BISON
7540 if test -n "$BISON"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7542 $as_echo "$BISON" >&6; }
7543 else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7549 test -n "$BISON" && break
7550 done
7551 test -n "$BISON" || BISON="$MISSING bison"
7553 case " $build_configdirs " in
7554 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7555 esac
7557 for ac_prog in gm4 gnum4 m4
7559 # Extract the first word of "$ac_prog", so it can be a program name with args.
7560 set dummy $ac_prog; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if test "${ac_cv_prog_M4+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7566 if test -n "$M4"; then
7567 ac_cv_prog_M4="$M4" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576 ac_cv_prog_M4="$ac_prog"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7580 done
7581 done
7582 IFS=$as_save_IFS
7586 M4=$ac_cv_prog_M4
7587 if test -n "$M4"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7589 $as_echo "$M4" >&6; }
7590 else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7596 test -n "$M4" && break
7597 done
7598 test -n "$M4" || M4="$MISSING m4"
7600 case " $build_configdirs " in
7601 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7602 esac
7604 for ac_prog in flex lex
7606 # Extract the first word of "$ac_prog", so it can be a program name with args.
7607 set dummy $ac_prog; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if test "${ac_cv_prog_LEX+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$LEX"; then
7614 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_prog_LEX="$ac_prog"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7627 done
7628 done
7629 IFS=$as_save_IFS
7633 LEX=$ac_cv_prog_LEX
7634 if test -n "$LEX"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7636 $as_echo "$LEX" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7643 test -n "$LEX" && break
7644 done
7645 test -n "$LEX" || LEX="$MISSING flex"
7647 case " $build_configdirs " in
7648 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7649 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7650 esac
7652 for ac_prog in flex
7654 # Extract the first word of "$ac_prog", so it can be a program name with args.
7655 set dummy $ac_prog; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_FLEX+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test -n "$FLEX"; then
7662 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_FLEX="$ac_prog"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7675 done
7676 done
7677 IFS=$as_save_IFS
7681 FLEX=$ac_cv_prog_FLEX
7682 if test -n "$FLEX"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7684 $as_echo "$FLEX" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7691 test -n "$FLEX" && break
7692 done
7693 test -n "$FLEX" || FLEX="$MISSING flex"
7695 case " $build_configdirs " in
7696 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7697 esac
7699 for ac_prog in makeinfo
7701 # Extract the first word of "$ac_prog", so it can be a program name with args.
7702 set dummy $ac_prog; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test -n "$MAKEINFO"; then
7709 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_prog_MAKEINFO="$ac_prog"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7722 done
7723 done
7724 IFS=$as_save_IFS
7728 MAKEINFO=$ac_cv_prog_MAKEINFO
7729 if test -n "$MAKEINFO"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7731 $as_echo "$MAKEINFO" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7738 test -n "$MAKEINFO" && break
7739 done
7740 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7742 case " $build_configdirs " in
7743 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7746 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7747 # higher, else we use the "missing" dummy.
7748 if ${MAKEINFO} --version \
7749 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7751 else
7752 MAKEINFO="$MISSING makeinfo"
7756 esac
7758 # FIXME: expect and dejagnu may become build tools?
7760 for ac_prog in expect
7762 # Extract the first word of "$ac_prog", so it can be a program name with args.
7763 set dummy $ac_prog; ac_word=$2
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 $as_echo_n "checking for $ac_word... " >&6; }
7766 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7769 if test -n "$EXPECT"; then
7770 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_prog_EXPECT="$ac_prog"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7783 done
7784 done
7785 IFS=$as_save_IFS
7789 EXPECT=$ac_cv_prog_EXPECT
7790 if test -n "$EXPECT"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7792 $as_echo "$EXPECT" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7799 test -n "$EXPECT" && break
7800 done
7801 test -n "$EXPECT" || EXPECT="expect"
7803 case " $configdirs " in
7804 *" expect "*)
7805 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7807 esac
7809 for ac_prog in runtest
7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
7812 set dummy $ac_prog; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 if test -n "$RUNTEST"; then
7819 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_RUNTEST="$ac_prog"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7838 RUNTEST=$ac_cv_prog_RUNTEST
7839 if test -n "$RUNTEST"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7841 $as_echo "$RUNTEST" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7848 test -n "$RUNTEST" && break
7849 done
7850 test -n "$RUNTEST" || RUNTEST="runtest"
7852 case " $configdirs " in
7853 *" dejagnu "*)
7854 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7856 esac
7859 # Host tools.
7860 ncn_tool_prefix=
7861 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7862 ncn_target_tool_prefix=
7863 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7867 if test -n "$AR"; then
7868 ac_cv_prog_AR=$AR
7869 elif test -n "$ac_cv_prog_AR"; then
7870 AR=$ac_cv_prog_AR
7873 if test -n "$ac_cv_prog_AR"; then
7874 for ncn_progname in ar; do
7875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7876 set dummy ${ncn_progname}; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_AR+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$AR"; then
7883 ac_cv_prog_AR="$AR" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_AR="${ncn_progname}"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7902 AR=$ac_cv_prog_AR
7903 if test -n "$AR"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7905 $as_echo "$AR" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7912 done
7915 for ncn_progname in ar; do
7916 if test -n "$ncn_tool_prefix"; then
7917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7918 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if test "${ac_cv_prog_AR+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 if test -n "$AR"; then
7925 ac_cv_prog_AR="$AR" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7934 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936 break 2
7938 done
7939 done
7940 IFS=$as_save_IFS
7944 AR=$ac_cv_prog_AR
7945 if test -n "$AR"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7947 $as_echo "$AR" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7955 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7957 set dummy ${ncn_progname}; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if test "${ac_cv_prog_AR+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 if test -n "$AR"; then
7964 ac_cv_prog_AR="$AR" # Let the user override the test.
7965 else
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_prog_AR="${ncn_progname}"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7977 done
7978 done
7979 IFS=$as_save_IFS
7983 AR=$ac_cv_prog_AR
7984 if test -n "$AR"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7986 $as_echo "$AR" >&6; }
7987 else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7994 test -n "$ac_cv_prog_AR" && break
7995 done
7997 if test -z "$ac_cv_prog_AR" ; then
7998 set dummy ar
7999 if test $build = $host ; then
8000 AR="$2"
8001 else
8002 AR="${ncn_tool_prefix}$2"
8008 if test -n "$AS"; then
8009 ac_cv_prog_AS=$AS
8010 elif test -n "$ac_cv_prog_AS"; then
8011 AS=$ac_cv_prog_AS
8014 if test -n "$ac_cv_prog_AS"; then
8015 for ncn_progname in as; do
8016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8017 set dummy ${ncn_progname}; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_AS+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 if test -n "$AS"; then
8024 ac_cv_prog_AS="$AS" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_prog_AS="${ncn_progname}"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8037 done
8038 done
8039 IFS=$as_save_IFS
8043 AS=$ac_cv_prog_AS
8044 if test -n "$AS"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8046 $as_echo "$AS" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8053 done
8056 for ncn_progname in as; do
8057 if test -n "$ncn_tool_prefix"; then
8058 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8059 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8061 $as_echo_n "checking for $ac_word... " >&6; }
8062 if test "${ac_cv_prog_AS+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 if test -n "$AS"; then
8066 ac_cv_prog_AS="$AS" # Let the user override the test.
8067 else
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 for as_dir in $PATH
8071 IFS=$as_save_IFS
8072 test -z "$as_dir" && as_dir=.
8073 for ac_exec_ext in '' $ac_executable_extensions; do
8074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8075 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8077 break 2
8079 done
8080 done
8081 IFS=$as_save_IFS
8085 AS=$ac_cv_prog_AS
8086 if test -n "$AS"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8088 $as_echo "$AS" >&6; }
8089 else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }
8096 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8098 set dummy ${ncn_progname}; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if test "${ac_cv_prog_AS+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 if test -n "$AS"; then
8105 ac_cv_prog_AS="$AS" # Let the user override the test.
8106 else
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8108 for as_dir in $PATH
8110 IFS=$as_save_IFS
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8114 ac_cv_prog_AS="${ncn_progname}"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8116 break 2
8118 done
8119 done
8120 IFS=$as_save_IFS
8124 AS=$ac_cv_prog_AS
8125 if test -n "$AS"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8127 $as_echo "$AS" >&6; }
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8135 test -n "$ac_cv_prog_AS" && break
8136 done
8138 if test -z "$ac_cv_prog_AS" ; then
8139 set dummy as
8140 if test $build = $host ; then
8141 AS="$2"
8142 else
8143 AS="${ncn_tool_prefix}$2"
8149 if test -n "$DLLTOOL"; then
8150 ac_cv_prog_DLLTOOL=$DLLTOOL
8151 elif test -n "$ac_cv_prog_DLLTOOL"; then
8152 DLLTOOL=$ac_cv_prog_DLLTOOL
8155 if test -n "$ac_cv_prog_DLLTOOL"; then
8156 for ncn_progname in dlltool; do
8157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8158 set dummy ${ncn_progname}; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$DLLTOOL"; then
8165 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_prog_DLLTOOL="${ncn_progname}"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8178 done
8179 done
8180 IFS=$as_save_IFS
8184 DLLTOOL=$ac_cv_prog_DLLTOOL
8185 if test -n "$DLLTOOL"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8187 $as_echo "$DLLTOOL" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8194 done
8197 for ncn_progname in dlltool; do
8198 if test -n "$ncn_tool_prefix"; then
8199 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8200 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$DLLTOOL"; then
8207 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8220 done
8221 done
8222 IFS=$as_save_IFS
8226 DLLTOOL=$ac_cv_prog_DLLTOOL
8227 if test -n "$DLLTOOL"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8229 $as_echo "$DLLTOOL" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8237 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8239 set dummy ${ncn_progname}; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 if test -n "$DLLTOOL"; then
8246 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8247 else
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_prog_DLLTOOL="${ncn_progname}"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8259 done
8260 done
8261 IFS=$as_save_IFS
8265 DLLTOOL=$ac_cv_prog_DLLTOOL
8266 if test -n "$DLLTOOL"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8268 $as_echo "$DLLTOOL" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8276 test -n "$ac_cv_prog_DLLTOOL" && break
8277 done
8279 if test -z "$ac_cv_prog_DLLTOOL" ; then
8280 set dummy dlltool
8281 if test $build = $host ; then
8282 DLLTOOL="$2"
8283 else
8284 DLLTOOL="${ncn_tool_prefix}$2"
8290 if test -n "$LD"; then
8291 ac_cv_prog_LD=$LD
8292 elif test -n "$ac_cv_prog_LD"; then
8293 LD=$ac_cv_prog_LD
8296 if test -n "$ac_cv_prog_LD"; then
8297 for ncn_progname in ld; do
8298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8299 set dummy ${ncn_progname}; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_prog_LD+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 if test -n "$LD"; then
8306 ac_cv_prog_LD="$LD" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_prog_LD="${ncn_progname}"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8319 done
8320 done
8321 IFS=$as_save_IFS
8325 LD=$ac_cv_prog_LD
8326 if test -n "$LD"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8328 $as_echo "$LD" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8335 done
8338 for ncn_progname in ld; do
8339 if test -n "$ncn_tool_prefix"; then
8340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8341 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if test "${ac_cv_prog_LD+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 if test -n "$LD"; then
8348 ac_cv_prog_LD="$LD" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8357 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8361 done
8362 done
8363 IFS=$as_save_IFS
8367 LD=$ac_cv_prog_LD
8368 if test -n "$LD"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8370 $as_echo "$LD" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8378 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8380 set dummy ${ncn_progname}; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_prog_LD+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 if test -n "$LD"; then
8387 ac_cv_prog_LD="$LD" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_prog_LD="${ncn_progname}"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8400 done
8401 done
8402 IFS=$as_save_IFS
8406 LD=$ac_cv_prog_LD
8407 if test -n "$LD"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8409 $as_echo "$LD" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8417 test -n "$ac_cv_prog_LD" && break
8418 done
8420 if test -z "$ac_cv_prog_LD" ; then
8421 set dummy ld
8422 if test $build = $host ; then
8423 LD="$2"
8424 else
8425 LD="${ncn_tool_prefix}$2"
8431 if test -n "$LIPO"; then
8432 ac_cv_prog_LIPO=$LIPO
8433 elif test -n "$ac_cv_prog_LIPO"; then
8434 LIPO=$ac_cv_prog_LIPO
8437 if test -n "$ac_cv_prog_LIPO"; then
8438 for ncn_progname in lipo; do
8439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8440 set dummy ${ncn_progname}; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if test "${ac_cv_prog_LIPO+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$LIPO"; then
8447 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_prog_LIPO="${ncn_progname}"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8460 done
8461 done
8462 IFS=$as_save_IFS
8466 LIPO=$ac_cv_prog_LIPO
8467 if test -n "$LIPO"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8469 $as_echo "$LIPO" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8476 done
8479 for ncn_progname in lipo; do
8480 if test -n "$ncn_tool_prefix"; then
8481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8482 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if test "${ac_cv_prog_LIPO+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 if test -n "$LIPO"; then
8489 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8502 done
8503 done
8504 IFS=$as_save_IFS
8508 LIPO=$ac_cv_prog_LIPO
8509 if test -n "$LIPO"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8511 $as_echo "$LIPO" >&6; }
8512 else
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8519 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8521 set dummy ${ncn_progname}; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if test "${ac_cv_prog_LIPO+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 if test -n "$LIPO"; then
8528 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_LIPO="${ncn_progname}"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8541 done
8542 done
8543 IFS=$as_save_IFS
8547 LIPO=$ac_cv_prog_LIPO
8548 if test -n "$LIPO"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8550 $as_echo "$LIPO" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8558 test -n "$ac_cv_prog_LIPO" && break
8559 done
8561 if test -z "$ac_cv_prog_LIPO" ; then
8562 set dummy lipo
8563 if test $build = $host ; then
8564 LIPO="$2"
8565 else
8566 LIPO="${ncn_tool_prefix}$2"
8572 if test -n "$NM"; then
8573 ac_cv_prog_NM=$NM
8574 elif test -n "$ac_cv_prog_NM"; then
8575 NM=$ac_cv_prog_NM
8578 if test -n "$ac_cv_prog_NM"; then
8579 for ncn_progname in nm; do
8580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8581 set dummy ${ncn_progname}; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_prog_NM+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 if test -n "$NM"; then
8588 ac_cv_prog_NM="$NM" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_prog_NM="${ncn_progname}"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8601 done
8602 done
8603 IFS=$as_save_IFS
8607 NM=$ac_cv_prog_NM
8608 if test -n "$NM"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8610 $as_echo "$NM" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8617 done
8620 for ncn_progname in nm; do
8621 if test -n "$ncn_tool_prefix"; then
8622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8623 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625 $as_echo_n "checking for $ac_word... " >&6; }
8626 if test "${ac_cv_prog_NM+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 if test -n "$NM"; then
8630 ac_cv_prog_NM="$NM" # Let the user override the test.
8631 else
8632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 for as_dir in $PATH
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8639 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 break 2
8643 done
8644 done
8645 IFS=$as_save_IFS
8649 NM=$ac_cv_prog_NM
8650 if test -n "$NM"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8652 $as_echo "$NM" >&6; }
8653 else
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8660 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8662 set dummy ${ncn_progname}; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_prog_NM+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 if test -n "$NM"; then
8669 ac_cv_prog_NM="$NM" # Let the user override the test.
8670 else
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_prog_NM="${ncn_progname}"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8682 done
8683 done
8684 IFS=$as_save_IFS
8688 NM=$ac_cv_prog_NM
8689 if test -n "$NM"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8691 $as_echo "$NM" >&6; }
8692 else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8699 test -n "$ac_cv_prog_NM" && break
8700 done
8702 if test -z "$ac_cv_prog_NM" ; then
8703 set dummy nm
8704 if test $build = $host ; then
8705 NM="$2"
8706 else
8707 NM="${ncn_tool_prefix}$2"
8713 if test -n "$RANLIB"; then
8714 ac_cv_prog_RANLIB=$RANLIB
8715 elif test -n "$ac_cv_prog_RANLIB"; then
8716 RANLIB=$ac_cv_prog_RANLIB
8719 if test -n "$ac_cv_prog_RANLIB"; then
8720 for ncn_progname in ranlib; do
8721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8722 set dummy ${ncn_progname}; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 if test -n "$RANLIB"; then
8729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8738 ac_cv_prog_RANLIB="${ncn_progname}"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8742 done
8743 done
8744 IFS=$as_save_IFS
8748 RANLIB=$ac_cv_prog_RANLIB
8749 if test -n "$RANLIB"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8751 $as_echo "$RANLIB" >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8758 done
8761 for ncn_progname in ranlib; do
8762 if test -n "$ncn_tool_prefix"; then
8763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8764 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 if test -n "$RANLIB"; then
8771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8784 done
8785 done
8786 IFS=$as_save_IFS
8790 RANLIB=$ac_cv_prog_RANLIB
8791 if test -n "$RANLIB"; then
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8793 $as_echo "$RANLIB" >&6; }
8794 else
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8801 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8803 set dummy ${ncn_progname}; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8808 else
8809 if test -n "$RANLIB"; then
8810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8811 else
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_prog_RANLIB="${ncn_progname}"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8823 done
8824 done
8825 IFS=$as_save_IFS
8829 RANLIB=$ac_cv_prog_RANLIB
8830 if test -n "$RANLIB"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8832 $as_echo "$RANLIB" >&6; }
8833 else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8840 test -n "$ac_cv_prog_RANLIB" && break
8841 done
8843 if test -z "$ac_cv_prog_RANLIB" ; then
8844 RANLIB="true"
8849 if test -n "$STRIP"; then
8850 ac_cv_prog_STRIP=$STRIP
8851 elif test -n "$ac_cv_prog_STRIP"; then
8852 STRIP=$ac_cv_prog_STRIP
8855 if test -n "$ac_cv_prog_STRIP"; then
8856 for ncn_progname in strip; do
8857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8858 set dummy ${ncn_progname}; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; }
8861 if test "${ac_cv_prog_STRIP+set}" = set; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 if test -n "$STRIP"; then
8865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8866 else
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8874 ac_cv_prog_STRIP="${ncn_progname}"
8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8878 done
8879 done
8880 IFS=$as_save_IFS
8884 STRIP=$ac_cv_prog_STRIP
8885 if test -n "$STRIP"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8887 $as_echo "$STRIP" >&6; }
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8894 done
8897 for ncn_progname in strip; do
8898 if test -n "$ncn_tool_prefix"; then
8899 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8900 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 $as_echo_n "checking for $ac_word... " >&6; }
8903 if test "${ac_cv_prog_STRIP+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -n "$STRIP"; then
8907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8916 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8920 done
8921 done
8922 IFS=$as_save_IFS
8926 STRIP=$ac_cv_prog_STRIP
8927 if test -n "$STRIP"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8929 $as_echo "$STRIP" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8937 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8939 set dummy ${ncn_progname}; ac_word=$2
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 $as_echo_n "checking for $ac_word... " >&6; }
8942 if test "${ac_cv_prog_STRIP+set}" = set; then :
8943 $as_echo_n "(cached) " >&6
8944 else
8945 if test -n "$STRIP"; then
8946 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8951 IFS=$as_save_IFS
8952 test -z "$as_dir" && as_dir=.
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8955 ac_cv_prog_STRIP="${ncn_progname}"
8956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 break 2
8959 done
8960 done
8961 IFS=$as_save_IFS
8965 STRIP=$ac_cv_prog_STRIP
8966 if test -n "$STRIP"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8968 $as_echo "$STRIP" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8976 test -n "$ac_cv_prog_STRIP" && break
8977 done
8979 if test -z "$ac_cv_prog_STRIP" ; then
8980 STRIP="true"
8985 if test -n "$WINDRES"; then
8986 ac_cv_prog_WINDRES=$WINDRES
8987 elif test -n "$ac_cv_prog_WINDRES"; then
8988 WINDRES=$ac_cv_prog_WINDRES
8991 if test -n "$ac_cv_prog_WINDRES"; then
8992 for ncn_progname in windres; do
8993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8994 set dummy ${ncn_progname}; ac_word=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 if test -n "$WINDRES"; then
9001 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9002 else
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010 ac_cv_prog_WINDRES="${ncn_progname}"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9014 done
9015 done
9016 IFS=$as_save_IFS
9020 WINDRES=$ac_cv_prog_WINDRES
9021 if test -n "$WINDRES"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9023 $as_echo "$WINDRES" >&6; }
9024 else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9030 done
9033 for ncn_progname in windres; do
9034 if test -n "$ncn_tool_prefix"; then
9035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9036 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 if test -n "$WINDRES"; then
9043 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9044 else
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9048 IFS=$as_save_IFS
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 break 2
9056 done
9057 done
9058 IFS=$as_save_IFS
9062 WINDRES=$ac_cv_prog_WINDRES
9063 if test -n "$WINDRES"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9065 $as_echo "$WINDRES" >&6; }
9066 else
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068 $as_echo "no" >&6; }
9073 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9075 set dummy ${ncn_progname}; ac_word=$2
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9077 $as_echo_n "checking for $ac_word... " >&6; }
9078 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 if test -n "$WINDRES"; then
9082 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9083 else
9084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 for as_dir in $PATH
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9091 ac_cv_prog_WINDRES="${ncn_progname}"
9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 break 2
9095 done
9096 done
9097 IFS=$as_save_IFS
9101 WINDRES=$ac_cv_prog_WINDRES
9102 if test -n "$WINDRES"; then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9104 $as_echo "$WINDRES" >&6; }
9105 else
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107 $as_echo "no" >&6; }
9112 test -n "$ac_cv_prog_WINDRES" && break
9113 done
9115 if test -z "$ac_cv_prog_WINDRES" ; then
9116 set dummy windres
9117 if test $build = $host ; then
9118 WINDRES="$2"
9119 else
9120 WINDRES="${ncn_tool_prefix}$2"
9126 if test -n "$WINDMC"; then
9127 ac_cv_prog_WINDMC=$WINDMC
9128 elif test -n "$ac_cv_prog_WINDMC"; then
9129 WINDMC=$ac_cv_prog_WINDMC
9132 if test -n "$ac_cv_prog_WINDMC"; then
9133 for ncn_progname in windmc; do
9134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9135 set dummy ${ncn_progname}; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 if test -n "$WINDMC"; then
9142 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9147 IFS=$as_save_IFS
9148 test -z "$as_dir" && as_dir=.
9149 for ac_exec_ext in '' $ac_executable_extensions; do
9150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151 ac_cv_prog_WINDMC="${ncn_progname}"
9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153 break 2
9155 done
9156 done
9157 IFS=$as_save_IFS
9161 WINDMC=$ac_cv_prog_WINDMC
9162 if test -n "$WINDMC"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9164 $as_echo "$WINDMC" >&6; }
9165 else
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9171 done
9174 for ncn_progname in windmc; do
9175 if test -n "$ncn_tool_prefix"; then
9176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9177 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 if test -n "$WINDMC"; then
9184 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9193 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9197 done
9198 done
9199 IFS=$as_save_IFS
9203 WINDMC=$ac_cv_prog_WINDMC
9204 if test -n "$WINDMC"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9206 $as_echo "$WINDMC" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9214 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9216 set dummy ${ncn_progname}; ac_word=$2
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 $as_echo_n "checking for $ac_word... " >&6; }
9219 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 if test -n "$WINDMC"; then
9223 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9224 else
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9232 ac_cv_prog_WINDMC="${ncn_progname}"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9236 done
9237 done
9238 IFS=$as_save_IFS
9242 WINDMC=$ac_cv_prog_WINDMC
9243 if test -n "$WINDMC"; then
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9245 $as_echo "$WINDMC" >&6; }
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248 $as_echo "no" >&6; }
9253 test -n "$ac_cv_prog_WINDMC" && break
9254 done
9256 if test -z "$ac_cv_prog_WINDMC" ; then
9257 set dummy windmc
9258 if test $build = $host ; then
9259 WINDMC="$2"
9260 else
9261 WINDMC="${ncn_tool_prefix}$2"
9267 if test -n "$OBJCOPY"; then
9268 ac_cv_prog_OBJCOPY=$OBJCOPY
9269 elif test -n "$ac_cv_prog_OBJCOPY"; then
9270 OBJCOPY=$ac_cv_prog_OBJCOPY
9273 if test -n "$ac_cv_prog_OBJCOPY"; then
9274 for ncn_progname in objcopy; do
9275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9276 set dummy ${ncn_progname}; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 if test -n "$OBJCOPY"; then
9283 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9292 ac_cv_prog_OBJCOPY="${ncn_progname}"
9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 break 2
9296 done
9297 done
9298 IFS=$as_save_IFS
9302 OBJCOPY=$ac_cv_prog_OBJCOPY
9303 if test -n "$OBJCOPY"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9305 $as_echo "$OBJCOPY" >&6; }
9306 else
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9312 done
9315 for ncn_progname in objcopy; do
9316 if test -n "$ncn_tool_prefix"; then
9317 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9318 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9320 $as_echo_n "checking for $ac_word... " >&6; }
9321 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 if test -n "$OBJCOPY"; then
9325 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9326 else
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 for as_dir in $PATH
9330 IFS=$as_save_IFS
9331 test -z "$as_dir" && as_dir=.
9332 for ac_exec_ext in '' $ac_executable_extensions; do
9333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9334 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9336 break 2
9338 done
9339 done
9340 IFS=$as_save_IFS
9344 OBJCOPY=$ac_cv_prog_OBJCOPY
9345 if test -n "$OBJCOPY"; then
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9347 $as_echo "$OBJCOPY" >&6; }
9348 else
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350 $as_echo "no" >&6; }
9355 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9357 set dummy ${ncn_progname}; ac_word=$2
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 $as_echo_n "checking for $ac_word... " >&6; }
9360 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 if test -n "$OBJCOPY"; then
9364 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9365 else
9366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9367 for as_dir in $PATH
9369 IFS=$as_save_IFS
9370 test -z "$as_dir" && as_dir=.
9371 for ac_exec_ext in '' $ac_executable_extensions; do
9372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9373 ac_cv_prog_OBJCOPY="${ncn_progname}"
9374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9375 break 2
9377 done
9378 done
9379 IFS=$as_save_IFS
9383 OBJCOPY=$ac_cv_prog_OBJCOPY
9384 if test -n "$OBJCOPY"; then
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9386 $as_echo "$OBJCOPY" >&6; }
9387 else
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389 $as_echo "no" >&6; }
9394 test -n "$ac_cv_prog_OBJCOPY" && break
9395 done
9397 if test -z "$ac_cv_prog_OBJCOPY" ; then
9398 set dummy objcopy
9399 if test $build = $host ; then
9400 OBJCOPY="$2"
9401 else
9402 OBJCOPY="${ncn_tool_prefix}$2"
9408 if test -n "$OBJDUMP"; then
9409 ac_cv_prog_OBJDUMP=$OBJDUMP
9410 elif test -n "$ac_cv_prog_OBJDUMP"; then
9411 OBJDUMP=$ac_cv_prog_OBJDUMP
9414 if test -n "$ac_cv_prog_OBJDUMP"; then
9415 for ncn_progname in objdump; do
9416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9417 set dummy ${ncn_progname}; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 if test -n "$OBJDUMP"; then
9424 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_prog_OBJDUMP="${ncn_progname}"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9437 done
9438 done
9439 IFS=$as_save_IFS
9443 OBJDUMP=$ac_cv_prog_OBJDUMP
9444 if test -n "$OBJDUMP"; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9446 $as_echo "$OBJDUMP" >&6; }
9447 else
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; }
9453 done
9456 for ncn_progname in objdump; do
9457 if test -n "$ncn_tool_prefix"; then
9458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9459 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 if test -n "$OBJDUMP"; then
9466 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9467 else
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 for as_dir in $PATH
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9477 break 2
9479 done
9480 done
9481 IFS=$as_save_IFS
9485 OBJDUMP=$ac_cv_prog_OBJDUMP
9486 if test -n "$OBJDUMP"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9488 $as_echo "$OBJDUMP" >&6; }
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9496 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9498 set dummy ${ncn_progname}; ac_word=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 if test -n "$OBJDUMP"; then
9505 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9506 else
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 for as_dir in $PATH
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9514 ac_cv_prog_OBJDUMP="${ncn_progname}"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9518 done
9519 done
9520 IFS=$as_save_IFS
9524 OBJDUMP=$ac_cv_prog_OBJDUMP
9525 if test -n "$OBJDUMP"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9527 $as_echo "$OBJDUMP" >&6; }
9528 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9535 test -n "$ac_cv_prog_OBJDUMP" && break
9536 done
9538 if test -z "$ac_cv_prog_OBJDUMP" ; then
9539 set dummy objdump
9540 if test $build = $host ; then
9541 OBJDUMP="$2"
9542 else
9543 OBJDUMP="${ncn_tool_prefix}$2"
9549 if test -n "$READELF"; then
9550 ac_cv_prog_READELF=$READELF
9551 elif test -n "$ac_cv_prog_READELF"; then
9552 READELF=$ac_cv_prog_READELF
9555 if test -n "$ac_cv_prog_READELF"; then
9556 for ncn_progname in readelf; do
9557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9558 set dummy ${ncn_progname}; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if test "${ac_cv_prog_READELF+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 if test -n "$READELF"; then
9565 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9566 else
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in $PATH
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9574 ac_cv_prog_READELF="${ncn_progname}"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9578 done
9579 done
9580 IFS=$as_save_IFS
9584 READELF=$ac_cv_prog_READELF
9585 if test -n "$READELF"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9587 $as_echo "$READELF" >&6; }
9588 else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9594 done
9597 for ncn_progname in readelf; do
9598 if test -n "$ncn_tool_prefix"; then
9599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9600 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9602 $as_echo_n "checking for $ac_word... " >&6; }
9603 if test "${ac_cv_prog_READELF+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 if test -n "$READELF"; then
9607 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9608 else
9609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 for as_dir in $PATH
9612 IFS=$as_save_IFS
9613 test -z "$as_dir" && as_dir=.
9614 for ac_exec_ext in '' $ac_executable_extensions; do
9615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9616 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9618 break 2
9620 done
9621 done
9622 IFS=$as_save_IFS
9626 READELF=$ac_cv_prog_READELF
9627 if test -n "$READELF"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9629 $as_echo "$READELF" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9637 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9639 set dummy ${ncn_progname}; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if test "${ac_cv_prog_READELF+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 if test -n "$READELF"; then
9646 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9647 else
9648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9649 for as_dir in $PATH
9651 IFS=$as_save_IFS
9652 test -z "$as_dir" && as_dir=.
9653 for ac_exec_ext in '' $ac_executable_extensions; do
9654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9655 ac_cv_prog_READELF="${ncn_progname}"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 break 2
9659 done
9660 done
9661 IFS=$as_save_IFS
9665 READELF=$ac_cv_prog_READELF
9666 if test -n "$READELF"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9668 $as_echo "$READELF" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9676 test -n "$ac_cv_prog_READELF" && break
9677 done
9679 if test -z "$ac_cv_prog_READELF" ; then
9680 set dummy readelf
9681 if test $build = $host ; then
9682 READELF="$2"
9683 else
9684 READELF="${ncn_tool_prefix}$2"
9693 # Target tools.
9695 # Check whether --with-build-time-tools was given.
9696 if test "${with_build_time_tools+set}" = set; then :
9697 withval=$with_build_time_tools; case x"$withval" in
9698 x/*) ;;
9700 with_build_time_tools=
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9702 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9704 esac
9705 else
9706 with_build_time_tools=
9712 if test -n "$CC_FOR_TARGET"; then
9713 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9714 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9715 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9718 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9719 for ncn_progname in cc gcc; do
9720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9721 set dummy ${ncn_progname}; ac_word=$2
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723 $as_echo_n "checking for $ac_word... " >&6; }
9724 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 if test -n "$CC_FOR_TARGET"; then
9728 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9729 else
9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9737 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9741 done
9742 done
9743 IFS=$as_save_IFS
9747 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9748 if test -n "$CC_FOR_TARGET"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9750 $as_echo "$CC_FOR_TARGET" >&6; }
9751 else
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753 $as_echo "no" >&6; }
9757 done
9760 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9761 for ncn_progname in cc gcc; do
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9763 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9764 if test -x $with_build_time_tools/${ncn_progname}; then
9765 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9767 $as_echo "yes" >&6; }
9768 break
9769 else
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9773 done
9776 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9777 for ncn_progname in cc gcc; do
9778 if test -n "$ncn_target_tool_prefix"; then
9779 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9780 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9785 else
9786 if test -n "$CC_FOR_TARGET"; then
9787 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9788 else
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9800 done
9801 done
9802 IFS=$as_save_IFS
9806 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9807 if test -n "$CC_FOR_TARGET"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9809 $as_echo "$CC_FOR_TARGET" >&6; }
9810 else
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9817 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9819 set dummy ${ncn_progname}; ac_word=$2
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821 $as_echo_n "checking for $ac_word... " >&6; }
9822 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 if test -n "$CC_FOR_TARGET"; then
9826 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9827 else
9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 for as_dir in $PATH
9831 IFS=$as_save_IFS
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9835 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 break 2
9839 done
9840 done
9841 IFS=$as_save_IFS
9845 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9846 if test -n "$CC_FOR_TARGET"; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9848 $as_echo "$CC_FOR_TARGET" >&6; }
9849 else
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9856 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9857 done
9860 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9861 set dummy cc gcc
9862 if test $build = $target ; then
9863 CC_FOR_TARGET="$2"
9864 else
9865 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9867 else
9868 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9873 if test -n "$CXX_FOR_TARGET"; then
9874 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9875 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9876 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9879 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9880 for ncn_progname in c++ g++ cxx gxx; do
9881 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9882 set dummy ${ncn_progname}; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 if test -n "$CXX_FOR_TARGET"; then
9889 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9890 else
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9898 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 break 2
9902 done
9903 done
9904 IFS=$as_save_IFS
9908 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9909 if test -n "$CXX_FOR_TARGET"; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9911 $as_echo "$CXX_FOR_TARGET" >&6; }
9912 else
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914 $as_echo "no" >&6; }
9918 done
9921 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9922 for ncn_progname in c++ g++ cxx gxx; do
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9924 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9925 if test -x $with_build_time_tools/${ncn_progname}; then
9926 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9928 $as_echo "yes" >&6; }
9929 break
9930 else
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9934 done
9937 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9938 for ncn_progname in c++ g++ cxx gxx; do
9939 if test -n "$ncn_target_tool_prefix"; then
9940 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9941 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 if test -n "$CXX_FOR_TARGET"; then
9948 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9957 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9961 done
9962 done
9963 IFS=$as_save_IFS
9967 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9968 if test -n "$CXX_FOR_TARGET"; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9970 $as_echo "$CXX_FOR_TARGET" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9978 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9980 set dummy ${ncn_progname}; ac_word=$2
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982 $as_echo_n "checking for $ac_word... " >&6; }
9983 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9984 $as_echo_n "(cached) " >&6
9985 else
9986 if test -n "$CXX_FOR_TARGET"; then
9987 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9988 else
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 for as_dir in $PATH
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9996 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 break 2
10000 done
10001 done
10002 IFS=$as_save_IFS
10006 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10007 if test -n "$CXX_FOR_TARGET"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10009 $as_echo "$CXX_FOR_TARGET" >&6; }
10010 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10017 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10018 done
10021 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10022 set dummy c++ g++ cxx gxx
10023 if test $build = $target ; then
10024 CXX_FOR_TARGET="$2"
10025 else
10026 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10028 else
10029 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10034 if test -n "$GCC_FOR_TARGET"; then
10035 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10036 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10037 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10040 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10041 for ncn_progname in gcc; do
10042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10043 set dummy ${ncn_progname}; ac_word=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10047 $as_echo_n "(cached) " >&6
10048 else
10049 if test -n "$GCC_FOR_TARGET"; then
10050 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10051 else
10052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053 for as_dir in $PATH
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
10057 for ac_exec_ext in '' $ac_executable_extensions; do
10058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10059 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 break 2
10063 done
10064 done
10065 IFS=$as_save_IFS
10069 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10070 if test -n "$GCC_FOR_TARGET"; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10072 $as_echo "$GCC_FOR_TARGET" >&6; }
10073 else
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075 $as_echo "no" >&6; }
10079 done
10082 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10083 for ncn_progname in gcc; do
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10085 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10086 if test -x $with_build_time_tools/${ncn_progname}; then
10087 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10089 $as_echo "yes" >&6; }
10090 break
10091 else
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10095 done
10098 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10099 for ncn_progname in gcc; do
10100 if test -n "$ncn_target_tool_prefix"; then
10101 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10102 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 if test -n "$GCC_FOR_TARGET"; then
10109 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10110 else
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10118 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10122 done
10123 done
10124 IFS=$as_save_IFS
10128 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10129 if test -n "$GCC_FOR_TARGET"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10131 $as_echo "$GCC_FOR_TARGET" >&6; }
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10139 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10141 set dummy ${ncn_progname}; ac_word=$2
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143 $as_echo_n "checking for $ac_word... " >&6; }
10144 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 if test -n "$GCC_FOR_TARGET"; then
10148 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10149 else
10150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151 for as_dir in $PATH
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10157 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10161 done
10162 done
10163 IFS=$as_save_IFS
10167 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10168 if test -n "$GCC_FOR_TARGET"; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10170 $as_echo "$GCC_FOR_TARGET" >&6; }
10171 else
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173 $as_echo "no" >&6; }
10178 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10179 done
10182 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10183 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10184 else
10185 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10190 if test -n "$GCJ_FOR_TARGET"; then
10191 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10192 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10193 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10196 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10197 for ncn_progname in gcj; do
10198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10199 set dummy ${ncn_progname}; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 if test -n "$GCJ_FOR_TARGET"; then
10206 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10207 else
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10219 done
10220 done
10221 IFS=$as_save_IFS
10225 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10226 if test -n "$GCJ_FOR_TARGET"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10228 $as_echo "$GCJ_FOR_TARGET" >&6; }
10229 else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10235 done
10238 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10239 for ncn_progname in gcj; do
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10241 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10242 if test -x $with_build_time_tools/${ncn_progname}; then
10243 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245 $as_echo "yes" >&6; }
10246 break
10247 else
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; }
10251 done
10254 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10255 for ncn_progname in gcj; do
10256 if test -n "$ncn_target_tool_prefix"; then
10257 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10258 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10260 $as_echo_n "checking for $ac_word... " >&6; }
10261 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 if test -n "$GCJ_FOR_TARGET"; then
10265 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10266 else
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10270 IFS=$as_save_IFS
10271 test -z "$as_dir" && as_dir=.
10272 for ac_exec_ext in '' $ac_executable_extensions; do
10273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10274 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10276 break 2
10278 done
10279 done
10280 IFS=$as_save_IFS
10284 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10285 if test -n "$GCJ_FOR_TARGET"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10287 $as_echo "$GCJ_FOR_TARGET" >&6; }
10288 else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10295 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10297 set dummy ${ncn_progname}; ac_word=$2
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10299 $as_echo_n "checking for $ac_word... " >&6; }
10300 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 if test -n "$GCJ_FOR_TARGET"; then
10304 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10305 else
10306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10307 for as_dir in $PATH
10309 IFS=$as_save_IFS
10310 test -z "$as_dir" && as_dir=.
10311 for ac_exec_ext in '' $ac_executable_extensions; do
10312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10313 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10315 break 2
10317 done
10318 done
10319 IFS=$as_save_IFS
10323 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10324 if test -n "$GCJ_FOR_TARGET"; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10326 $as_echo "$GCJ_FOR_TARGET" >&6; }
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 $as_echo "no" >&6; }
10334 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10335 done
10338 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10339 set dummy gcj
10340 if test $build = $target ; then
10341 GCJ_FOR_TARGET="$2"
10342 else
10343 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10345 else
10346 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10351 if test -n "$GFORTRAN_FOR_TARGET"; then
10352 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10353 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10354 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10357 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10358 for ncn_progname in gfortran; do
10359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10360 set dummy ${ncn_progname}; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 if test -n "$GFORTRAN_FOR_TARGET"; then
10367 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10368 else
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in $PATH
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10376 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10380 done
10381 done
10382 IFS=$as_save_IFS
10386 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10387 if test -n "$GFORTRAN_FOR_TARGET"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10389 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10396 done
10399 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10400 for ncn_progname in gfortran; do
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10402 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10403 if test -x $with_build_time_tools/${ncn_progname}; then
10404 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10406 $as_echo "yes" >&6; }
10407 break
10408 else
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10412 done
10415 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10416 for ncn_progname in gfortran; do
10417 if test -n "$ncn_target_tool_prefix"; then
10418 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10419 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10421 $as_echo_n "checking for $ac_word... " >&6; }
10422 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 if test -n "$GFORTRAN_FOR_TARGET"; then
10426 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10427 else
10428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10429 for as_dir in $PATH
10431 IFS=$as_save_IFS
10432 test -z "$as_dir" && as_dir=.
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10435 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10437 break 2
10439 done
10440 done
10441 IFS=$as_save_IFS
10445 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10446 if test -n "$GFORTRAN_FOR_TARGET"; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10448 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10449 else
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451 $as_echo "no" >&6; }
10456 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10458 set dummy ${ncn_progname}; ac_word=$2
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10460 $as_echo_n "checking for $ac_word... " >&6; }
10461 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 if test -n "$GFORTRAN_FOR_TARGET"; then
10465 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10466 else
10467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10468 for as_dir in $PATH
10470 IFS=$as_save_IFS
10471 test -z "$as_dir" && as_dir=.
10472 for ac_exec_ext in '' $ac_executable_extensions; do
10473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10474 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10476 break 2
10478 done
10479 done
10480 IFS=$as_save_IFS
10484 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10485 if test -n "$GFORTRAN_FOR_TARGET"; then
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10487 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10495 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10496 done
10499 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10500 set dummy gfortran
10501 if test $build = $target ; then
10502 GFORTRAN_FOR_TARGET="$2"
10503 else
10504 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10506 else
10507 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10512 if test -n "$GOC_FOR_TARGET"; then
10513 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10514 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10515 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10518 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10519 for ncn_progname in gccgo; do
10520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10521 set dummy ${ncn_progname}; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 if test -n "$GOC_FOR_TARGET"; then
10528 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10529 else
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10533 IFS=$as_save_IFS
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10537 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10539 break 2
10541 done
10542 done
10543 IFS=$as_save_IFS
10547 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10548 if test -n "$GOC_FOR_TARGET"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10550 $as_echo "$GOC_FOR_TARGET" >&6; }
10551 else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10557 done
10560 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10561 for ncn_progname in gccgo; do
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10563 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10564 if test -x $with_build_time_tools/${ncn_progname}; then
10565 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10567 $as_echo "yes" >&6; }
10568 break
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10573 done
10576 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10577 for ncn_progname in gccgo; do
10578 if test -n "$ncn_target_tool_prefix"; then
10579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10580 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10582 $as_echo_n "checking for $ac_word... " >&6; }
10583 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586 if test -n "$GOC_FOR_TARGET"; then
10587 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10588 else
10589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590 for as_dir in $PATH
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 break 2
10600 done
10601 done
10602 IFS=$as_save_IFS
10606 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10607 if test -n "$GOC_FOR_TARGET"; then
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10609 $as_echo "$GOC_FOR_TARGET" >&6; }
10610 else
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10612 $as_echo "no" >&6; }
10617 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10619 set dummy ${ncn_progname}; ac_word=$2
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10621 $as_echo_n "checking for $ac_word... " >&6; }
10622 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 if test -n "$GOC_FOR_TARGET"; then
10626 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10627 else
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 for ac_exec_ext in '' $ac_executable_extensions; do
10634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10635 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10637 break 2
10639 done
10640 done
10641 IFS=$as_save_IFS
10645 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10646 if test -n "$GOC_FOR_TARGET"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10648 $as_echo "$GOC_FOR_TARGET" >&6; }
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10656 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10657 done
10660 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10661 set dummy gccgo
10662 if test $build = $target ; then
10663 GOC_FOR_TARGET="$2"
10664 else
10665 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10667 else
10668 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10673 cat > conftest.c << \EOF
10674 #ifdef __GNUC__
10675 gcc_yay;
10676 #endif
10678 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10679 have_gcc_for_target=yes
10680 else
10681 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10682 have_gcc_for_target=no
10684 rm conftest.c
10689 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10690 if test -n "$with_build_time_tools"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10692 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10693 if test -x $with_build_time_tools/ar; then
10694 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10695 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10697 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10702 elif test $build != $host && test $have_gcc_for_target = yes; then
10703 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10704 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10705 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10708 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10709 # Extract the first word of "ar", so it can be a program name with args.
10710 set dummy ar; ac_word=$2
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712 $as_echo_n "checking for $ac_word... " >&6; }
10713 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 case $AR_FOR_TARGET in
10717 [\\/]* | ?:[\\/]*)
10718 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $gcc_cv_tool_dirs
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10732 done
10733 done
10734 IFS=$as_save_IFS
10737 esac
10739 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10740 if test -n "$AR_FOR_TARGET"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10742 $as_echo "$AR_FOR_TARGET" >&6; }
10743 else
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745 $as_echo "no" >&6; }
10750 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10753 if test -n "$AR_FOR_TARGET"; then
10754 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10755 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10756 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10759 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10760 for ncn_progname in ar; do
10761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10762 set dummy ${ncn_progname}; ac_word=$2
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764 $as_echo_n "checking for $ac_word... " >&6; }
10765 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 if test -n "$AR_FOR_TARGET"; then
10769 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10770 else
10771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772 for as_dir in $PATH
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
10776 for ac_exec_ext in '' $ac_executable_extensions; do
10777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10778 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10780 break 2
10782 done
10783 done
10784 IFS=$as_save_IFS
10788 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10789 if test -n "$AR_FOR_TARGET"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10791 $as_echo "$AR_FOR_TARGET" >&6; }
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794 $as_echo "no" >&6; }
10798 done
10801 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10802 for ncn_progname in ar; do
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10804 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10805 if test -x $with_build_time_tools/${ncn_progname}; then
10806 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; }
10809 break
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10814 done
10817 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10818 for ncn_progname in ar; do
10819 if test -n "$ncn_target_tool_prefix"; then
10820 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10821 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823 $as_echo_n "checking for $ac_word... " >&6; }
10824 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 if test -n "$AR_FOR_TARGET"; then
10828 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10829 else
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10833 IFS=$as_save_IFS
10834 test -z "$as_dir" && as_dir=.
10835 for ac_exec_ext in '' $ac_executable_extensions; do
10836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10837 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839 break 2
10841 done
10842 done
10843 IFS=$as_save_IFS
10847 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10848 if test -n "$AR_FOR_TARGET"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10850 $as_echo "$AR_FOR_TARGET" >&6; }
10851 else
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853 $as_echo "no" >&6; }
10858 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10860 set dummy ${ncn_progname}; ac_word=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862 $as_echo_n "checking for $ac_word... " >&6; }
10863 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 if test -n "$AR_FOR_TARGET"; then
10867 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10868 else
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10872 IFS=$as_save_IFS
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10876 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10878 break 2
10880 done
10881 done
10882 IFS=$as_save_IFS
10886 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10887 if test -n "$AR_FOR_TARGET"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10889 $as_echo "$AR_FOR_TARGET" >&6; }
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10897 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10898 done
10901 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10902 set dummy ar
10903 if test $build = $target ; then
10904 AR_FOR_TARGET="$2"
10905 else
10906 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10908 else
10909 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10912 else
10913 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10919 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10920 if test -n "$with_build_time_tools"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10922 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10923 if test -x $with_build_time_tools/as; then
10924 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10925 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10927 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10928 else
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10930 $as_echo "no" >&6; }
10932 elif test $build != $host && test $have_gcc_for_target = yes; then
10933 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10934 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10935 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10938 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10939 # Extract the first word of "as", so it can be a program name with args.
10940 set dummy as; ac_word=$2
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942 $as_echo_n "checking for $ac_word... " >&6; }
10943 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 case $AS_FOR_TARGET in
10947 [\\/]* | ?:[\\/]*)
10948 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952 for as_dir in $gcc_cv_tool_dirs
10954 IFS=$as_save_IFS
10955 test -z "$as_dir" && as_dir=.
10956 for ac_exec_ext in '' $ac_executable_extensions; do
10957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10958 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10960 break 2
10962 done
10963 done
10964 IFS=$as_save_IFS
10967 esac
10969 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10970 if test -n "$AS_FOR_TARGET"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10972 $as_echo "$AS_FOR_TARGET" >&6; }
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10980 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10983 if test -n "$AS_FOR_TARGET"; then
10984 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10985 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10986 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10989 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10990 for ncn_progname in as; do
10991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10992 set dummy ${ncn_progname}; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 if test -n "$AS_FOR_TARGET"; then
10999 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11000 else
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11004 IFS=$as_save_IFS
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11010 break 2
11012 done
11013 done
11014 IFS=$as_save_IFS
11018 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11019 if test -n "$AS_FOR_TARGET"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11021 $as_echo "$AS_FOR_TARGET" >&6; }
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11028 done
11031 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11032 for ncn_progname in as; do
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11034 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11035 if test -x $with_build_time_tools/${ncn_progname}; then
11036 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11038 $as_echo "yes" >&6; }
11039 break
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11044 done
11047 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11048 for ncn_progname in as; do
11049 if test -n "$ncn_target_tool_prefix"; then
11050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11051 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11053 $as_echo_n "checking for $ac_word... " >&6; }
11054 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 if test -n "$AS_FOR_TARGET"; then
11058 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11059 else
11060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061 for as_dir in $PATH
11063 IFS=$as_save_IFS
11064 test -z "$as_dir" && as_dir=.
11065 for ac_exec_ext in '' $ac_executable_extensions; do
11066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11067 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11069 break 2
11071 done
11072 done
11073 IFS=$as_save_IFS
11077 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11078 if test -n "$AS_FOR_TARGET"; then
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11080 $as_echo "$AS_FOR_TARGET" >&6; }
11081 else
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; }
11088 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11090 set dummy ${ncn_progname}; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 if test -n "$AS_FOR_TARGET"; then
11097 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11098 else
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11102 IFS=$as_save_IFS
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11106 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11108 break 2
11110 done
11111 done
11112 IFS=$as_save_IFS
11116 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11117 if test -n "$AS_FOR_TARGET"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11119 $as_echo "$AS_FOR_TARGET" >&6; }
11120 else
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11127 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11128 done
11131 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11132 set dummy as
11133 if test $build = $target ; then
11134 AS_FOR_TARGET="$2"
11135 else
11136 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11138 else
11139 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11142 else
11143 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11149 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11150 if test -n "$with_build_time_tools"; then
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11152 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11153 if test -x $with_build_time_tools/dlltool; then
11154 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11155 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11157 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11158 else
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11162 elif test $build != $host && test $have_gcc_for_target = yes; then
11163 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11164 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11165 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11168 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11169 # Extract the first word of "dlltool", so it can be a program name with args.
11170 set dummy dlltool; ac_word=$2
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172 $as_echo_n "checking for $ac_word... " >&6; }
11173 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 case $DLLTOOL_FOR_TARGET in
11177 [\\/]* | ?:[\\/]*)
11178 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $gcc_cv_tool_dirs
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11192 done
11193 done
11194 IFS=$as_save_IFS
11197 esac
11199 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11200 if test -n "$DLLTOOL_FOR_TARGET"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11202 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11210 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11213 if test -n "$DLLTOOL_FOR_TARGET"; then
11214 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11215 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11216 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11219 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11220 for ncn_progname in dlltool; do
11221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11222 set dummy ${ncn_progname}; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test -n "$DLLTOOL_FOR_TARGET"; then
11229 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 break 2
11242 done
11243 done
11244 IFS=$as_save_IFS
11248 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11249 if test -n "$DLLTOOL_FOR_TARGET"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11251 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11258 done
11261 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11262 for ncn_progname in dlltool; do
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11264 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11265 if test -x $with_build_time_tools/${ncn_progname}; then
11266 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268 $as_echo "yes" >&6; }
11269 break
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 $as_echo "no" >&6; }
11274 done
11277 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11278 for ncn_progname in dlltool; do
11279 if test -n "$ncn_target_tool_prefix"; then
11280 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11281 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 if test -n "$DLLTOOL_FOR_TARGET"; then
11288 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11289 else
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11293 IFS=$as_save_IFS
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11299 break 2
11301 done
11302 done
11303 IFS=$as_save_IFS
11307 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11308 if test -n "$DLLTOOL_FOR_TARGET"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11310 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11318 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11320 set dummy ${ncn_progname}; ac_word=$2
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11322 $as_echo_n "checking for $ac_word... " >&6; }
11323 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11324 $as_echo_n "(cached) " >&6
11325 else
11326 if test -n "$DLLTOOL_FOR_TARGET"; then
11327 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11328 else
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in $PATH
11332 IFS=$as_save_IFS
11333 test -z "$as_dir" && as_dir=.
11334 for ac_exec_ext in '' $ac_executable_extensions; do
11335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11336 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 break 2
11340 done
11341 done
11342 IFS=$as_save_IFS
11346 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11347 if test -n "$DLLTOOL_FOR_TARGET"; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11349 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352 $as_echo "no" >&6; }
11357 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11358 done
11361 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11362 set dummy dlltool
11363 if test $build = $target ; then
11364 DLLTOOL_FOR_TARGET="$2"
11365 else
11366 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11368 else
11369 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11372 else
11373 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11379 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11380 if test -n "$with_build_time_tools"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11382 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11383 if test -x $with_build_time_tools/ld; then
11384 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11385 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11387 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11392 elif test $build != $host && test $have_gcc_for_target = yes; then
11393 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11394 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11395 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11398 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11399 # Extract the first word of "ld", so it can be a program name with args.
11400 set dummy ld; ac_word=$2
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11402 $as_echo_n "checking for $ac_word... " >&6; }
11403 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 case $LD_FOR_TARGET in
11407 [\\/]* | ?:[\\/]*)
11408 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $gcc_cv_tool_dirs
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 for ac_exec_ext in '' $ac_executable_extensions; do
11417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11418 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11420 break 2
11422 done
11423 done
11424 IFS=$as_save_IFS
11427 esac
11429 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11430 if test -n "$LD_FOR_TARGET"; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11432 $as_echo "$LD_FOR_TARGET" >&6; }
11433 else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435 $as_echo "no" >&6; }
11440 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11443 if test -n "$LD_FOR_TARGET"; then
11444 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11445 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11446 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11449 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11450 for ncn_progname in ld; do
11451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11452 set dummy ${ncn_progname}; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 if test -n "$LD_FOR_TARGET"; then
11459 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11460 else
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11472 done
11473 done
11474 IFS=$as_save_IFS
11478 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11479 if test -n "$LD_FOR_TARGET"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11481 $as_echo "$LD_FOR_TARGET" >&6; }
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11488 done
11491 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11492 for ncn_progname in ld; do
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11494 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11495 if test -x $with_build_time_tools/${ncn_progname}; then
11496 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11498 $as_echo "yes" >&6; }
11499 break
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11504 done
11507 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11508 for ncn_progname in ld; do
11509 if test -n "$ncn_target_tool_prefix"; then
11510 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11511 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513 $as_echo_n "checking for $ac_word... " >&6; }
11514 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 if test -n "$LD_FOR_TARGET"; then
11518 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11519 else
11520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521 for as_dir in $PATH
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
11525 for ac_exec_ext in '' $ac_executable_extensions; do
11526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11527 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 break 2
11531 done
11532 done
11533 IFS=$as_save_IFS
11537 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11538 if test -n "$LD_FOR_TARGET"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11540 $as_echo "$LD_FOR_TARGET" >&6; }
11541 else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543 $as_echo "no" >&6; }
11548 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11550 set dummy ${ncn_progname}; ac_word=$2
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11552 $as_echo_n "checking for $ac_word... " >&6; }
11553 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 if test -n "$LD_FOR_TARGET"; then
11557 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11558 else
11559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11560 for as_dir in $PATH
11562 IFS=$as_save_IFS
11563 test -z "$as_dir" && as_dir=.
11564 for ac_exec_ext in '' $ac_executable_extensions; do
11565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11566 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11568 break 2
11570 done
11571 done
11572 IFS=$as_save_IFS
11576 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11577 if test -n "$LD_FOR_TARGET"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11579 $as_echo "$LD_FOR_TARGET" >&6; }
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11587 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11588 done
11591 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11592 set dummy ld
11593 if test $build = $target ; then
11594 LD_FOR_TARGET="$2"
11595 else
11596 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11598 else
11599 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11602 else
11603 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11609 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11610 if test -n "$with_build_time_tools"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11612 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11613 if test -x $with_build_time_tools/lipo; then
11614 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11615 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11617 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11618 else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620 $as_echo "no" >&6; }
11622 elif test $build != $host && test $have_gcc_for_target = yes; then
11623 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11624 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11625 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11628 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11629 # Extract the first word of "lipo", so it can be a program name with args.
11630 set dummy lipo; ac_word=$2
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 $as_echo_n "checking for $ac_word... " >&6; }
11633 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 case $LIPO_FOR_TARGET in
11637 [\\/]* | ?:[\\/]*)
11638 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $gcc_cv_tool_dirs
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11648 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650 break 2
11652 done
11653 done
11654 IFS=$as_save_IFS
11657 esac
11659 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11660 if test -n "$LIPO_FOR_TARGET"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11662 $as_echo "$LIPO_FOR_TARGET" >&6; }
11663 else
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11670 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11673 if test -n "$LIPO_FOR_TARGET"; then
11674 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11675 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11676 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11679 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11680 for ncn_progname in lipo; do
11681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11682 set dummy ${ncn_progname}; ac_word=$2
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 $as_echo_n "checking for $ac_word... " >&6; }
11685 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 if test -n "$LIPO_FOR_TARGET"; then
11689 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11690 else
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11708 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11709 if test -n "$LIPO_FOR_TARGET"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11711 $as_echo "$LIPO_FOR_TARGET" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11718 done
11721 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11722 for ncn_progname in lipo; do
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11724 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11725 if test -x $with_build_time_tools/${ncn_progname}; then
11726 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728 $as_echo "yes" >&6; }
11729 break
11730 else
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11734 done
11737 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11738 for ncn_progname in lipo; do
11739 if test -n "$ncn_target_tool_prefix"; then
11740 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11741 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 if test -n "$LIPO_FOR_TARGET"; then
11748 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11749 else
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11753 IFS=$as_save_IFS
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11757 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 break 2
11761 done
11762 done
11763 IFS=$as_save_IFS
11767 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11768 if test -n "$LIPO_FOR_TARGET"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11770 $as_echo "$LIPO_FOR_TARGET" >&6; }
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11778 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11780 set dummy ${ncn_progname}; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 if test -n "$LIPO_FOR_TARGET"; then
11787 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11788 else
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11792 IFS=$as_save_IFS
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11796 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11798 break 2
11800 done
11801 done
11802 IFS=$as_save_IFS
11806 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11807 if test -n "$LIPO_FOR_TARGET"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11809 $as_echo "$LIPO_FOR_TARGET" >&6; }
11810 else
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11817 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11818 done
11821 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11822 set dummy lipo
11823 if test $build = $target ; then
11824 LIPO_FOR_TARGET="$2"
11825 else
11826 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11828 else
11829 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11832 else
11833 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11839 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11840 if test -n "$with_build_time_tools"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11842 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11843 if test -x $with_build_time_tools/nm; then
11844 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11845 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11847 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11852 elif test $build != $host && test $have_gcc_for_target = yes; then
11853 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11854 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11855 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11858 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11859 # Extract the first word of "nm", so it can be a program name with args.
11860 set dummy nm; ac_word=$2
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11862 $as_echo_n "checking for $ac_word... " >&6; }
11863 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
11865 else
11866 case $NM_FOR_TARGET in
11867 [\\/]* | ?:[\\/]*)
11868 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $gcc_cv_tool_dirs
11874 IFS=$as_save_IFS
11875 test -z "$as_dir" && as_dir=.
11876 for ac_exec_ext in '' $ac_executable_extensions; do
11877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11878 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11880 break 2
11882 done
11883 done
11884 IFS=$as_save_IFS
11887 esac
11889 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11890 if test -n "$NM_FOR_TARGET"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11892 $as_echo "$NM_FOR_TARGET" >&6; }
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11900 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11903 if test -n "$NM_FOR_TARGET"; then
11904 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11905 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11906 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11909 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11910 for ncn_progname in nm; do
11911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11912 set dummy ${ncn_progname}; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 if test -n "$NM_FOR_TARGET"; then
11919 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11932 done
11933 done
11934 IFS=$as_save_IFS
11938 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11939 if test -n "$NM_FOR_TARGET"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11941 $as_echo "$NM_FOR_TARGET" >&6; }
11942 else
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11948 done
11951 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11952 for ncn_progname in nm; do
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11954 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11955 if test -x $with_build_time_tools/${ncn_progname}; then
11956 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958 $as_echo "yes" >&6; }
11959 break
11960 else
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11964 done
11967 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11968 for ncn_progname in nm; do
11969 if test -n "$ncn_target_tool_prefix"; then
11970 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11971 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 if test -n "$NM_FOR_TARGET"; then
11978 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11979 else
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11987 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 break 2
11991 done
11992 done
11993 IFS=$as_save_IFS
11997 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11998 if test -n "$NM_FOR_TARGET"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12000 $as_echo "$NM_FOR_TARGET" >&6; }
12001 else
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003 $as_echo "no" >&6; }
12008 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12010 set dummy ${ncn_progname}; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 if test -n "$NM_FOR_TARGET"; then
12017 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12018 else
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12026 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 break 2
12030 done
12031 done
12032 IFS=$as_save_IFS
12036 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12037 if test -n "$NM_FOR_TARGET"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12039 $as_echo "$NM_FOR_TARGET" >&6; }
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12047 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12048 done
12051 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12052 set dummy nm
12053 if test $build = $target ; then
12054 NM_FOR_TARGET="$2"
12055 else
12056 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12058 else
12059 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12062 else
12063 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12069 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12070 if test -n "$with_build_time_tools"; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12072 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12073 if test -x $with_build_time_tools/objdump; then
12074 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12075 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12077 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12078 else
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12080 $as_echo "no" >&6; }
12082 elif test $build != $host && test $have_gcc_for_target = yes; then
12083 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12084 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12085 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12088 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12089 # Extract the first word of "objdump", so it can be a program name with args.
12090 set dummy objdump; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 case $OBJDUMP_FOR_TARGET in
12097 [\\/]* | ?:[\\/]*)
12098 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $gcc_cv_tool_dirs
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12108 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12110 break 2
12112 done
12113 done
12114 IFS=$as_save_IFS
12117 esac
12119 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12120 if test -n "$OBJDUMP_FOR_TARGET"; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12122 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12123 else
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12130 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12133 if test -n "$OBJDUMP_FOR_TARGET"; then
12134 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12135 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12136 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12139 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12140 for ncn_progname in objdump; do
12141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12142 set dummy ${ncn_progname}; ac_word=$2
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144 $as_echo_n "checking for $ac_word... " >&6; }
12145 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 if test -n "$OBJDUMP_FOR_TARGET"; then
12149 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12150 else
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12158 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 break 2
12162 done
12163 done
12164 IFS=$as_save_IFS
12168 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12169 if test -n "$OBJDUMP_FOR_TARGET"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12171 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12172 else
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12178 done
12181 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12182 for ncn_progname in objdump; do
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12184 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12185 if test -x $with_build_time_tools/${ncn_progname}; then
12186 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12188 $as_echo "yes" >&6; }
12189 break
12190 else
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192 $as_echo "no" >&6; }
12194 done
12197 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12198 for ncn_progname in objdump; do
12199 if test -n "$ncn_target_tool_prefix"; then
12200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203 $as_echo_n "checking for $ac_word... " >&6; }
12204 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 if test -n "$OBJDUMP_FOR_TARGET"; then
12208 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12209 else
12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211 for as_dir in $PATH
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
12216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12217 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 break 2
12221 done
12222 done
12223 IFS=$as_save_IFS
12227 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12228 if test -n "$OBJDUMP_FOR_TARGET"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12230 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12238 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12240 set dummy ${ncn_progname}; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242 $as_echo_n "checking for $ac_word... " >&6; }
12243 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 if test -n "$OBJDUMP_FOR_TARGET"; then
12247 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12248 else
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12256 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 break 2
12260 done
12261 done
12262 IFS=$as_save_IFS
12266 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12267 if test -n "$OBJDUMP_FOR_TARGET"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12269 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12277 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12278 done
12281 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12282 set dummy objdump
12283 if test $build = $target ; then
12284 OBJDUMP_FOR_TARGET="$2"
12285 else
12286 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12288 else
12289 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12292 else
12293 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12299 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12300 if test -n "$with_build_time_tools"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12302 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12303 if test -x $with_build_time_tools/ranlib; then
12304 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12305 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12307 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12308 else
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310 $as_echo "no" >&6; }
12312 elif test $build != $host && test $have_gcc_for_target = yes; then
12313 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12314 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12315 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12318 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12319 # Extract the first word of "ranlib", so it can be a program name with args.
12320 set dummy ranlib; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 case $RANLIB_FOR_TARGET in
12327 [\\/]* | ?:[\\/]*)
12328 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12332 for as_dir in $gcc_cv_tool_dirs
12334 IFS=$as_save_IFS
12335 test -z "$as_dir" && as_dir=.
12336 for ac_exec_ext in '' $ac_executable_extensions; do
12337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12338 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 break 2
12342 done
12343 done
12344 IFS=$as_save_IFS
12347 esac
12349 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12350 if test -n "$RANLIB_FOR_TARGET"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12352 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12353 else
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12360 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12363 if test -n "$RANLIB_FOR_TARGET"; then
12364 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12365 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12366 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12369 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12370 for ncn_progname in ranlib; do
12371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 if test -n "$RANLIB_FOR_TARGET"; then
12379 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12380 else
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12388 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12392 done
12393 done
12394 IFS=$as_save_IFS
12398 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12399 if test -n "$RANLIB_FOR_TARGET"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12401 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12402 else
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12408 done
12411 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12412 for ncn_progname in ranlib; do
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12414 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12415 if test -x $with_build_time_tools/${ncn_progname}; then
12416 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12418 $as_echo "yes" >&6; }
12419 break
12420 else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 $as_echo "no" >&6; }
12424 done
12427 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12428 for ncn_progname in ranlib; do
12429 if test -n "$ncn_target_tool_prefix"; then
12430 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12431 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12433 $as_echo_n "checking for $ac_word... " >&6; }
12434 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 if test -n "$RANLIB_FOR_TARGET"; then
12438 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12439 else
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 for ac_exec_ext in '' $ac_executable_extensions; do
12446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12447 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12449 break 2
12451 done
12452 done
12453 IFS=$as_save_IFS
12457 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12458 if test -n "$RANLIB_FOR_TARGET"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12460 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12468 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12470 set dummy ${ncn_progname}; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 if test -n "$RANLIB_FOR_TARGET"; then
12477 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12478 else
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12482 IFS=$as_save_IFS
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12486 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488 break 2
12490 done
12491 done
12492 IFS=$as_save_IFS
12496 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12497 if test -n "$RANLIB_FOR_TARGET"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12499 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12500 else
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12507 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12508 done
12511 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12512 set dummy ranlib
12513 if test $build = $target ; then
12514 RANLIB_FOR_TARGET="$2"
12515 else
12516 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12518 else
12519 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12522 else
12523 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12529 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12530 if test -n "$with_build_time_tools"; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12532 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12533 if test -x $with_build_time_tools/readelf; then
12534 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12535 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12537 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12542 elif test $build != $host && test $have_gcc_for_target = yes; then
12543 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12544 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12545 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12548 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12549 # Extract the first word of "readelf", so it can be a program name with args.
12550 set dummy readelf; ac_word=$2
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552 $as_echo_n "checking for $ac_word... " >&6; }
12553 if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
12555 else
12556 case $READELF_FOR_TARGET in
12557 [\\/]* | ?:[\\/]*)
12558 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562 for as_dir in $gcc_cv_tool_dirs
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12568 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 break 2
12572 done
12573 done
12574 IFS=$as_save_IFS
12577 esac
12579 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12580 if test -n "$READELF_FOR_TARGET"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12582 $as_echo "$READELF_FOR_TARGET" >&6; }
12583 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12590 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12593 if test -n "$READELF_FOR_TARGET"; then
12594 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12595 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12596 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12599 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12600 for ncn_progname in readelf; do
12601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12602 set dummy ${ncn_progname}; ac_word=$2
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604 $as_echo_n "checking for $ac_word... " >&6; }
12605 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
12607 else
12608 if test -n "$READELF_FOR_TARGET"; then
12609 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12610 else
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612 for as_dir in $PATH
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12618 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 break 2
12622 done
12623 done
12624 IFS=$as_save_IFS
12628 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12629 if test -n "$READELF_FOR_TARGET"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12631 $as_echo "$READELF_FOR_TARGET" >&6; }
12632 else
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12638 done
12641 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12642 for ncn_progname in readelf; do
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12644 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12645 if test -x $with_build_time_tools/${ncn_progname}; then
12646 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12648 $as_echo "yes" >&6; }
12649 break
12650 else
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652 $as_echo "no" >&6; }
12654 done
12657 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12658 for ncn_progname in readelf; do
12659 if test -n "$ncn_target_tool_prefix"; then
12660 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12661 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667 if test -n "$READELF_FOR_TARGET"; then
12668 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12669 else
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671 for as_dir in $PATH
12673 IFS=$as_save_IFS
12674 test -z "$as_dir" && as_dir=.
12675 for ac_exec_ext in '' $ac_executable_extensions; do
12676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12677 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679 break 2
12681 done
12682 done
12683 IFS=$as_save_IFS
12687 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12688 if test -n "$READELF_FOR_TARGET"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12690 $as_echo "$READELF_FOR_TARGET" >&6; }
12691 else
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12698 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12700 set dummy ${ncn_progname}; ac_word=$2
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12702 $as_echo_n "checking for $ac_word... " >&6; }
12703 if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12704 $as_echo_n "(cached) " >&6
12705 else
12706 if test -n "$READELF_FOR_TARGET"; then
12707 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12708 else
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12712 IFS=$as_save_IFS
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12716 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12718 break 2
12720 done
12721 done
12722 IFS=$as_save_IFS
12726 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12727 if test -n "$READELF_FOR_TARGET"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12729 $as_echo "$READELF_FOR_TARGET" >&6; }
12730 else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12737 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12738 done
12741 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12742 set dummy readelf
12743 if test $build = $target ; then
12744 READELF_FOR_TARGET="$2"
12745 else
12746 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12748 else
12749 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12752 else
12753 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12759 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12760 if test -n "$with_build_time_tools"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12762 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12763 if test -x $with_build_time_tools/strip; then
12764 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12765 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12767 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12772 elif test $build != $host && test $have_gcc_for_target = yes; then
12773 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12774 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12775 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12778 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12779 # Extract the first word of "strip", so it can be a program name with args.
12780 set dummy strip; ac_word=$2
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12782 $as_echo_n "checking for $ac_word... " >&6; }
12783 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12784 $as_echo_n "(cached) " >&6
12785 else
12786 case $STRIP_FOR_TARGET in
12787 [\\/]* | ?:[\\/]*)
12788 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12792 for as_dir in $gcc_cv_tool_dirs
12794 IFS=$as_save_IFS
12795 test -z "$as_dir" && as_dir=.
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12798 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12800 break 2
12802 done
12803 done
12804 IFS=$as_save_IFS
12807 esac
12809 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12810 if test -n "$STRIP_FOR_TARGET"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12812 $as_echo "$STRIP_FOR_TARGET" >&6; }
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12820 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12823 if test -n "$STRIP_FOR_TARGET"; then
12824 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12825 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12826 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12829 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12830 for ncn_progname in strip; do
12831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12832 set dummy ${ncn_progname}; ac_word=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 if test -n "$STRIP_FOR_TARGET"; then
12839 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12840 else
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12850 break 2
12852 done
12853 done
12854 IFS=$as_save_IFS
12858 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12859 if test -n "$STRIP_FOR_TARGET"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12861 $as_echo "$STRIP_FOR_TARGET" >&6; }
12862 else
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12868 done
12871 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12872 for ncn_progname in strip; do
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12874 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12875 if test -x $with_build_time_tools/${ncn_progname}; then
12876 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878 $as_echo "yes" >&6; }
12879 break
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12884 done
12887 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12888 for ncn_progname in strip; do
12889 if test -n "$ncn_target_tool_prefix"; then
12890 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12891 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893 $as_echo_n "checking for $ac_word... " >&6; }
12894 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 if test -n "$STRIP_FOR_TARGET"; then
12898 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12899 else
12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
12905 for ac_exec_ext in '' $ac_executable_extensions; do
12906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12907 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909 break 2
12911 done
12912 done
12913 IFS=$as_save_IFS
12917 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12918 if test -n "$STRIP_FOR_TARGET"; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12920 $as_echo "$STRIP_FOR_TARGET" >&6; }
12921 else
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12928 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12930 set dummy ${ncn_progname}; ac_word=$2
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12932 $as_echo_n "checking for $ac_word... " >&6; }
12933 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 if test -n "$STRIP_FOR_TARGET"; then
12937 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12938 else
12939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12942 IFS=$as_save_IFS
12943 test -z "$as_dir" && as_dir=.
12944 for ac_exec_ext in '' $ac_executable_extensions; do
12945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12946 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12948 break 2
12950 done
12951 done
12952 IFS=$as_save_IFS
12956 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12957 if test -n "$STRIP_FOR_TARGET"; then
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12959 $as_echo "$STRIP_FOR_TARGET" >&6; }
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12967 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12968 done
12971 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12972 set dummy strip
12973 if test $build = $target ; then
12974 STRIP_FOR_TARGET="$2"
12975 else
12976 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12978 else
12979 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12982 else
12983 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12989 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12990 if test -n "$with_build_time_tools"; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12992 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12993 if test -x $with_build_time_tools/windres; then
12994 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12995 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12997 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13002 elif test $build != $host && test $have_gcc_for_target = yes; then
13003 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
13004 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13005 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13008 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13009 # Extract the first word of "windres", so it can be a program name with args.
13010 set dummy windres; ac_word=$2
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012 $as_echo_n "checking for $ac_word... " >&6; }
13013 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
13015 else
13016 case $WINDRES_FOR_TARGET in
13017 [\\/]* | ?:[\\/]*)
13018 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $gcc_cv_tool_dirs
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13028 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13032 done
13033 done
13034 IFS=$as_save_IFS
13037 esac
13039 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13040 if test -n "$WINDRES_FOR_TARGET"; then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13042 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13043 else
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13050 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13053 if test -n "$WINDRES_FOR_TARGET"; then
13054 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13055 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13056 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13059 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13060 for ncn_progname in windres; do
13061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13062 set dummy ${ncn_progname}; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 if test -n "$WINDRES_FOR_TARGET"; then
13069 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13070 else
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13082 done
13083 done
13084 IFS=$as_save_IFS
13088 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13089 if test -n "$WINDRES_FOR_TARGET"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13091 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13092 else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094 $as_echo "no" >&6; }
13098 done
13101 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
13102 for ncn_progname in windres; do
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13104 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13105 if test -x $with_build_time_tools/${ncn_progname}; then
13106 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13108 $as_echo "yes" >&6; }
13109 break
13110 else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 $as_echo "no" >&6; }
13114 done
13117 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13118 for ncn_progname in windres; do
13119 if test -n "$ncn_target_tool_prefix"; then
13120 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13121 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123 $as_echo_n "checking for $ac_word... " >&6; }
13124 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 if test -n "$WINDRES_FOR_TARGET"; then
13128 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13129 else
13130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131 for as_dir in $PATH
13133 IFS=$as_save_IFS
13134 test -z "$as_dir" && as_dir=.
13135 for ac_exec_ext in '' $ac_executable_extensions; do
13136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13137 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13139 break 2
13141 done
13142 done
13143 IFS=$as_save_IFS
13147 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13148 if test -n "$WINDRES_FOR_TARGET"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13150 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13153 $as_echo "no" >&6; }
13158 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13160 set dummy ${ncn_progname}; ac_word=$2
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162 $as_echo_n "checking for $ac_word... " >&6; }
13163 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 if test -n "$WINDRES_FOR_TARGET"; then
13167 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13168 else
13169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170 for as_dir in $PATH
13172 IFS=$as_save_IFS
13173 test -z "$as_dir" && as_dir=.
13174 for ac_exec_ext in '' $ac_executable_extensions; do
13175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13176 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13178 break 2
13180 done
13181 done
13182 IFS=$as_save_IFS
13186 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13187 if test -n "$WINDRES_FOR_TARGET"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13189 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13190 else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13197 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13198 done
13201 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13202 set dummy windres
13203 if test $build = $target ; then
13204 WINDRES_FOR_TARGET="$2"
13205 else
13206 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13208 else
13209 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13212 else
13213 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13219 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13220 if test -n "$with_build_time_tools"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13222 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13223 if test -x $with_build_time_tools/windmc; then
13224 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13225 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13227 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13228 else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13232 elif test $build != $host && test $have_gcc_for_target = yes; then
13233 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13234 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13235 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13238 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13239 # Extract the first word of "windmc", so it can be a program name with args.
13240 set dummy windmc; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13244 $as_echo_n "(cached) " >&6
13245 else
13246 case $WINDMC_FOR_TARGET in
13247 [\\/]* | ?:[\\/]*)
13248 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $gcc_cv_tool_dirs
13254 IFS=$as_save_IFS
13255 test -z "$as_dir" && as_dir=.
13256 for ac_exec_ext in '' $ac_executable_extensions; do
13257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13258 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13260 break 2
13262 done
13263 done
13264 IFS=$as_save_IFS
13267 esac
13269 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13270 if test -n "$WINDMC_FOR_TARGET"; then
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13272 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13273 else
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 $as_echo "no" >&6; }
13280 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13283 if test -n "$WINDMC_FOR_TARGET"; then
13284 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13285 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13286 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13289 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13290 for ncn_progname in windmc; do
13291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13292 set dummy ${ncn_progname}; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
13297 else
13298 if test -n "$WINDMC_FOR_TARGET"; then
13299 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13300 else
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310 break 2
13312 done
13313 done
13314 IFS=$as_save_IFS
13318 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13319 if test -n "$WINDMC_FOR_TARGET"; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13321 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13328 done
13331 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13332 for ncn_progname in windmc; do
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13334 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13335 if test -x $with_build_time_tools/${ncn_progname}; then
13336 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 $as_echo "yes" >&6; }
13339 break
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342 $as_echo "no" >&6; }
13344 done
13347 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13348 for ncn_progname in windmc; do
13349 if test -n "$ncn_target_tool_prefix"; then
13350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353 $as_echo_n "checking for $ac_word... " >&6; }
13354 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 if test -n "$WINDMC_FOR_TARGET"; then
13358 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13359 else
13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361 for as_dir in $PATH
13363 IFS=$as_save_IFS
13364 test -z "$as_dir" && as_dir=.
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13367 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13369 break 2
13371 done
13372 done
13373 IFS=$as_save_IFS
13377 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13378 if test -n "$WINDMC_FOR_TARGET"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13380 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13381 else
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383 $as_echo "no" >&6; }
13388 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13390 set dummy ${ncn_progname}; ac_word=$2
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13392 $as_echo_n "checking for $ac_word... " >&6; }
13393 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13394 $as_echo_n "(cached) " >&6
13395 else
13396 if test -n "$WINDMC_FOR_TARGET"; then
13397 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13398 else
13399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400 for as_dir in $PATH
13402 IFS=$as_save_IFS
13403 test -z "$as_dir" && as_dir=.
13404 for ac_exec_ext in '' $ac_executable_extensions; do
13405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13406 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13408 break 2
13410 done
13411 done
13412 IFS=$as_save_IFS
13416 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13417 if test -n "$WINDMC_FOR_TARGET"; then
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13419 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13420 else
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 $as_echo "no" >&6; }
13427 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13428 done
13431 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13432 set dummy windmc
13433 if test $build = $target ; then
13434 WINDMC_FOR_TARGET="$2"
13435 else
13436 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13438 else
13439 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13442 else
13443 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13447 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13450 $as_echo_n "checking where to find the target ar... " >&6; }
13451 if test "x${build}" != "x${host}" ; then
13452 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13453 # We already found the complete path
13454 ac_dir=`dirname $AR_FOR_TARGET`
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13456 $as_echo "pre-installed in $ac_dir" >&6; }
13457 else
13458 # Canadian cross, just use what we found
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13460 $as_echo "pre-installed" >&6; }
13462 else
13463 ok=yes
13464 case " ${configdirs} " in
13465 *" binutils "*) ;;
13466 *) ok=no ;;
13467 esac
13469 if test $ok = yes; then
13470 # An in-tree tool is available and we can use it
13471 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13473 $as_echo "just compiled" >&6; }
13474 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13475 # We already found the complete path
13476 ac_dir=`dirname $AR_FOR_TARGET`
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13478 $as_echo "pre-installed in $ac_dir" >&6; }
13479 elif test "x$target" = "x$host"; then
13480 # We can use an host tool
13481 AR_FOR_TARGET='$(AR)'
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13483 $as_echo "host tool" >&6; }
13484 else
13485 # We need a cross tool
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13487 $as_echo "pre-installed" >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13492 $as_echo_n "checking where to find the target as... " >&6; }
13493 if test "x${build}" != "x${host}" ; then
13494 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13495 # We already found the complete path
13496 ac_dir=`dirname $AS_FOR_TARGET`
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13498 $as_echo "pre-installed in $ac_dir" >&6; }
13499 else
13500 # Canadian cross, just use what we found
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13502 $as_echo "pre-installed" >&6; }
13504 else
13505 ok=yes
13506 case " ${configdirs} " in
13507 *" gas "*) ;;
13508 *) ok=no ;;
13509 esac
13511 if test $ok = yes; then
13512 # An in-tree tool is available and we can use it
13513 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13515 $as_echo "just compiled" >&6; }
13516 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13517 # We already found the complete path
13518 ac_dir=`dirname $AS_FOR_TARGET`
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13520 $as_echo "pre-installed in $ac_dir" >&6; }
13521 elif test "x$target" = "x$host"; then
13522 # We can use an host tool
13523 AS_FOR_TARGET='$(AS)'
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13525 $as_echo "host tool" >&6; }
13526 else
13527 # We need a cross tool
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13529 $as_echo "pre-installed" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13534 $as_echo_n "checking where to find the target cc... " >&6; }
13535 if test "x${build}" != "x${host}" ; then
13536 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13537 # We already found the complete path
13538 ac_dir=`dirname $CC_FOR_TARGET`
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13540 $as_echo "pre-installed in $ac_dir" >&6; }
13541 else
13542 # Canadian cross, just use what we found
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13544 $as_echo "pre-installed" >&6; }
13546 else
13547 ok=yes
13548 case " ${configdirs} " in
13549 *" gcc "*) ;;
13550 *) ok=no ;;
13551 esac
13553 if test $ok = yes; then
13554 # An in-tree tool is available and we can use it
13555 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13557 $as_echo "just compiled" >&6; }
13558 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13559 # We already found the complete path
13560 ac_dir=`dirname $CC_FOR_TARGET`
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13562 $as_echo "pre-installed in $ac_dir" >&6; }
13563 elif test "x$target" = "x$host"; then
13564 # We can use an host tool
13565 CC_FOR_TARGET='$(CC)'
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13567 $as_echo "host tool" >&6; }
13568 else
13569 # We need a cross tool
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571 $as_echo "pre-installed" >&6; }
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13576 $as_echo_n "checking where to find the target c++... " >&6; }
13577 if test "x${build}" != "x${host}" ; then
13578 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13579 # We already found the complete path
13580 ac_dir=`dirname $CXX_FOR_TARGET`
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582 $as_echo "pre-installed in $ac_dir" >&6; }
13583 else
13584 # Canadian cross, just use what we found
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13586 $as_echo "pre-installed" >&6; }
13588 else
13589 ok=yes
13590 case " ${configdirs} " in
13591 *" gcc "*) ;;
13592 *) ok=no ;;
13593 esac
13594 case ,${enable_languages}, in
13595 *,c++,*) ;;
13596 *) ok=no ;;
13597 esac
13598 if test $ok = yes; then
13599 # An in-tree tool is available and we can use it
13600 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13602 $as_echo "just compiled" >&6; }
13603 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13604 # We already found the complete path
13605 ac_dir=`dirname $CXX_FOR_TARGET`
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13607 $as_echo "pre-installed in $ac_dir" >&6; }
13608 elif test "x$target" = "x$host"; then
13609 # We can use an host tool
13610 CXX_FOR_TARGET='$(CXX)'
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13612 $as_echo "host tool" >&6; }
13613 else
13614 # We need a cross tool
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13616 $as_echo "pre-installed" >&6; }
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13621 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13622 if test "x${build}" != "x${host}" ; then
13623 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13624 # We already found the complete path
13625 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13627 $as_echo "pre-installed in $ac_dir" >&6; }
13628 else
13629 # Canadian cross, just use what we found
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13631 $as_echo "pre-installed" >&6; }
13633 else
13634 ok=yes
13635 case " ${configdirs} " in
13636 *" gcc "*) ;;
13637 *) ok=no ;;
13638 esac
13639 case ,${enable_languages}, in
13640 *,c++,*) ;;
13641 *) ok=no ;;
13642 esac
13643 if test $ok = yes; then
13644 # An in-tree tool is available and we can use it
13645 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'
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13647 $as_echo "just compiled" >&6; }
13648 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13649 # We already found the complete path
13650 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13652 $as_echo "pre-installed in $ac_dir" >&6; }
13653 elif test "x$target" = "x$host"; then
13654 # We can use an host tool
13655 RAW_CXX_FOR_TARGET='$(CXX)'
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13657 $as_echo "host tool" >&6; }
13658 else
13659 # We need a cross tool
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13661 $as_echo "pre-installed" >&6; }
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13666 $as_echo_n "checking where to find the target dlltool... " >&6; }
13667 if test "x${build}" != "x${host}" ; then
13668 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13669 # We already found the complete path
13670 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13672 $as_echo "pre-installed in $ac_dir" >&6; }
13673 else
13674 # Canadian cross, just use what we found
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13676 $as_echo "pre-installed" >&6; }
13678 else
13679 ok=yes
13680 case " ${configdirs} " in
13681 *" binutils "*) ;;
13682 *) ok=no ;;
13683 esac
13685 if test $ok = yes; then
13686 # An in-tree tool is available and we can use it
13687 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13689 $as_echo "just compiled" >&6; }
13690 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13691 # We already found the complete path
13692 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13694 $as_echo "pre-installed in $ac_dir" >&6; }
13695 elif test "x$target" = "x$host"; then
13696 # We can use an host tool
13697 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13699 $as_echo "host tool" >&6; }
13700 else
13701 # We need a cross tool
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13703 $as_echo "pre-installed" >&6; }
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13708 $as_echo_n "checking where to find the target gcc... " >&6; }
13709 if test "x${build}" != "x${host}" ; then
13710 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13711 # We already found the complete path
13712 ac_dir=`dirname $GCC_FOR_TARGET`
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13714 $as_echo "pre-installed in $ac_dir" >&6; }
13715 else
13716 # Canadian cross, just use what we found
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13718 $as_echo "pre-installed" >&6; }
13720 else
13721 ok=yes
13722 case " ${configdirs} " in
13723 *" gcc "*) ;;
13724 *) ok=no ;;
13725 esac
13727 if test $ok = yes; then
13728 # An in-tree tool is available and we can use it
13729 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13731 $as_echo "just compiled" >&6; }
13732 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13733 # We already found the complete path
13734 ac_dir=`dirname $GCC_FOR_TARGET`
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13736 $as_echo "pre-installed in $ac_dir" >&6; }
13737 elif test "x$target" = "x$host"; then
13738 # We can use an host tool
13739 GCC_FOR_TARGET='$()'
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13741 $as_echo "host tool" >&6; }
13742 else
13743 # We need a cross tool
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13745 $as_echo "pre-installed" >&6; }
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13750 $as_echo_n "checking where to find the target gcj... " >&6; }
13751 if test "x${build}" != "x${host}" ; then
13752 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13753 # We already found the complete path
13754 ac_dir=`dirname $GCJ_FOR_TARGET`
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756 $as_echo "pre-installed in $ac_dir" >&6; }
13757 else
13758 # Canadian cross, just use what we found
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13760 $as_echo "pre-installed" >&6; }
13762 else
13763 ok=yes
13764 case " ${configdirs} " in
13765 *" gcc "*) ;;
13766 *) ok=no ;;
13767 esac
13768 case ,${enable_languages}, in
13769 *,java,*) ;;
13770 *) ok=no ;;
13771 esac
13772 if test $ok = yes; then
13773 # An in-tree tool is available and we can use it
13774 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13776 $as_echo "just compiled" >&6; }
13777 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13778 # We already found the complete path
13779 ac_dir=`dirname $GCJ_FOR_TARGET`
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13781 $as_echo "pre-installed in $ac_dir" >&6; }
13782 elif test "x$target" = "x$host"; then
13783 # We can use an host tool
13784 GCJ_FOR_TARGET='$(GCJ)'
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13786 $as_echo "host tool" >&6; }
13787 else
13788 # We need a cross tool
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13790 $as_echo "pre-installed" >&6; }
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13795 $as_echo_n "checking where to find the target gfortran... " >&6; }
13796 if test "x${build}" != "x${host}" ; then
13797 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13798 # We already found the complete path
13799 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13801 $as_echo "pre-installed in $ac_dir" >&6; }
13802 else
13803 # Canadian cross, just use what we found
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13805 $as_echo "pre-installed" >&6; }
13807 else
13808 ok=yes
13809 case " ${configdirs} " in
13810 *" gcc "*) ;;
13811 *) ok=no ;;
13812 esac
13813 case ,${enable_languages}, in
13814 *,fortran,*) ;;
13815 *) ok=no ;;
13816 esac
13817 if test $ok = yes; then
13818 # An in-tree tool is available and we can use it
13819 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13821 $as_echo "just compiled" >&6; }
13822 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13823 # We already found the complete path
13824 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13826 $as_echo "pre-installed in $ac_dir" >&6; }
13827 elif test "x$target" = "x$host"; then
13828 # We can use an host tool
13829 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13831 $as_echo "host tool" >&6; }
13832 else
13833 # We need a cross tool
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13835 $as_echo "pre-installed" >&6; }
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13840 $as_echo_n "checking where to find the target gccgo... " >&6; }
13841 if test "x${build}" != "x${host}" ; then
13842 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13843 # We already found the complete path
13844 ac_dir=`dirname $GOC_FOR_TARGET`
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13846 $as_echo "pre-installed in $ac_dir" >&6; }
13847 else
13848 # Canadian cross, just use what we found
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13850 $as_echo "pre-installed" >&6; }
13852 else
13853 ok=yes
13854 case " ${configdirs} " in
13855 *" gcc "*) ;;
13856 *) ok=no ;;
13857 esac
13858 case ,${enable_languages}, in
13859 *,go,*) ;;
13860 *) ok=no ;;
13861 esac
13862 if test $ok = yes; then
13863 # An in-tree tool is available and we can use it
13864 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13866 $as_echo "just compiled" >&6; }
13867 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13868 # We already found the complete path
13869 ac_dir=`dirname $GOC_FOR_TARGET`
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13871 $as_echo "pre-installed in $ac_dir" >&6; }
13872 elif test "x$target" = "x$host"; then
13873 # We can use an host tool
13874 GOC_FOR_TARGET='$(GOC)'
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13876 $as_echo "host tool" >&6; }
13877 else
13878 # We need a cross tool
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13880 $as_echo "pre-installed" >&6; }
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13885 $as_echo_n "checking where to find the target ld... " >&6; }
13886 if test "x${build}" != "x${host}" ; then
13887 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13888 # We already found the complete path
13889 ac_dir=`dirname $LD_FOR_TARGET`
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13891 $as_echo "pre-installed in $ac_dir" >&6; }
13892 else
13893 # Canadian cross, just use what we found
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13895 $as_echo "pre-installed" >&6; }
13897 else
13898 ok=yes
13899 case " ${configdirs} " in
13900 *" ld "*) ;;
13901 *) ok=no ;;
13902 esac
13904 if test $ok = yes; then
13905 # An in-tree tool is available and we can use it
13906 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13908 $as_echo "just compiled" >&6; }
13909 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13910 # We already found the complete path
13911 ac_dir=`dirname $LD_FOR_TARGET`
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13913 $as_echo "pre-installed in $ac_dir" >&6; }
13914 elif test "x$target" = "x$host"; then
13915 # We can use an host tool
13916 LD_FOR_TARGET='$(LD)'
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13918 $as_echo "host tool" >&6; }
13919 else
13920 # We need a cross tool
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13922 $as_echo "pre-installed" >&6; }
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13927 $as_echo_n "checking where to find the target lipo... " >&6; }
13928 if test "x${build}" != "x${host}" ; then
13929 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13930 # We already found the complete path
13931 ac_dir=`dirname $LIPO_FOR_TARGET`
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13933 $as_echo "pre-installed in $ac_dir" >&6; }
13934 else
13935 # Canadian cross, just use what we found
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13937 $as_echo "pre-installed" >&6; }
13939 else
13940 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13941 # We already found the complete path
13942 ac_dir=`dirname $LIPO_FOR_TARGET`
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13944 $as_echo "pre-installed in $ac_dir" >&6; }
13945 elif test "x$target" = "x$host"; then
13946 # We can use an host tool
13947 LIPO_FOR_TARGET='$(LIPO)'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13949 $as_echo "host tool" >&6; }
13950 else
13951 # We need a cross tool
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13953 $as_echo "pre-installed" >&6; }
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13958 $as_echo_n "checking where to find the target nm... " >&6; }
13959 if test "x${build}" != "x${host}" ; then
13960 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13961 # We already found the complete path
13962 ac_dir=`dirname $NM_FOR_TARGET`
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13964 $as_echo "pre-installed in $ac_dir" >&6; }
13965 else
13966 # Canadian cross, just use what we found
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13968 $as_echo "pre-installed" >&6; }
13970 else
13971 ok=yes
13972 case " ${configdirs} " in
13973 *" binutils "*) ;;
13974 *) ok=no ;;
13975 esac
13977 if test $ok = yes; then
13978 # An in-tree tool is available and we can use it
13979 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13981 $as_echo "just compiled" >&6; }
13982 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
13984 ac_dir=`dirname $NM_FOR_TARGET`
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986 $as_echo "pre-installed in $ac_dir" >&6; }
13987 elif test "x$target" = "x$host"; then
13988 # We can use an host tool
13989 NM_FOR_TARGET='$(NM)'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13991 $as_echo "host tool" >&6; }
13992 else
13993 # We need a cross tool
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13995 $as_echo "pre-installed" >&6; }
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14000 $as_echo_n "checking where to find the target objdump... " >&6; }
14001 if test "x${build}" != "x${host}" ; then
14002 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14003 # We already found the complete path
14004 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14006 $as_echo "pre-installed in $ac_dir" >&6; }
14007 else
14008 # Canadian cross, just use what we found
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14010 $as_echo "pre-installed" >&6; }
14012 else
14013 ok=yes
14014 case " ${configdirs} " in
14015 *" binutils "*) ;;
14016 *) ok=no ;;
14017 esac
14019 if test $ok = yes; then
14020 # An in-tree tool is available and we can use it
14021 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14023 $as_echo "just compiled" >&6; }
14024 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14025 # We already found the complete path
14026 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14028 $as_echo "pre-installed in $ac_dir" >&6; }
14029 elif test "x$target" = "x$host"; then
14030 # We can use an host tool
14031 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14033 $as_echo "host tool" >&6; }
14034 else
14035 # We need a cross tool
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14037 $as_echo "pre-installed" >&6; }
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14042 $as_echo_n "checking where to find the target ranlib... " >&6; }
14043 if test "x${build}" != "x${host}" ; then
14044 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14045 # We already found the complete path
14046 ac_dir=`dirname $RANLIB_FOR_TARGET`
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14048 $as_echo "pre-installed in $ac_dir" >&6; }
14049 else
14050 # Canadian cross, just use what we found
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14052 $as_echo "pre-installed" >&6; }
14054 else
14055 ok=yes
14056 case " ${configdirs} " in
14057 *" binutils "*) ;;
14058 *) ok=no ;;
14059 esac
14061 if test $ok = yes; then
14062 # An in-tree tool is available and we can use it
14063 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14065 $as_echo "just compiled" >&6; }
14066 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
14068 ac_dir=`dirname $RANLIB_FOR_TARGET`
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070 $as_echo "pre-installed in $ac_dir" >&6; }
14071 elif test "x$target" = "x$host"; then
14072 # We can use an host tool
14073 RANLIB_FOR_TARGET='$(RANLIB)'
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14075 $as_echo "host tool" >&6; }
14076 else
14077 # We need a cross tool
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079 $as_echo "pre-installed" >&6; }
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14084 $as_echo_n "checking where to find the target readelf... " >&6; }
14085 if test "x${build}" != "x${host}" ; then
14086 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
14088 ac_dir=`dirname $READELF_FOR_TARGET`
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090 $as_echo "pre-installed in $ac_dir" >&6; }
14091 else
14092 # Canadian cross, just use what we found
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094 $as_echo "pre-installed" >&6; }
14096 else
14097 ok=yes
14098 case " ${configdirs} " in
14099 *" binutils "*) ;;
14100 *) ok=no ;;
14101 esac
14103 if test $ok = yes; then
14104 # An in-tree tool is available and we can use it
14105 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14107 $as_echo "just compiled" >&6; }
14108 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
14110 ac_dir=`dirname $READELF_FOR_TARGET`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112 $as_echo "pre-installed in $ac_dir" >&6; }
14113 elif test "x$target" = "x$host"; then
14114 # We can use an host tool
14115 READELF_FOR_TARGET='$(READELF)'
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14117 $as_echo "host tool" >&6; }
14118 else
14119 # We need a cross tool
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121 $as_echo "pre-installed" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14126 $as_echo_n "checking where to find the target strip... " >&6; }
14127 if test "x${build}" != "x${host}" ; then
14128 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
14130 ac_dir=`dirname $STRIP_FOR_TARGET`
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132 $as_echo "pre-installed in $ac_dir" >&6; }
14133 else
14134 # Canadian cross, just use what we found
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136 $as_echo "pre-installed" >&6; }
14138 else
14139 ok=yes
14140 case " ${configdirs} " in
14141 *" binutils "*) ;;
14142 *) ok=no ;;
14143 esac
14145 if test $ok = yes; then
14146 # An in-tree tool is available and we can use it
14147 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14149 $as_echo "just compiled" >&6; }
14150 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
14152 ac_dir=`dirname $STRIP_FOR_TARGET`
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154 $as_echo "pre-installed in $ac_dir" >&6; }
14155 elif test "x$target" = "x$host"; then
14156 # We can use an host tool
14157 STRIP_FOR_TARGET='$(STRIP)'
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159 $as_echo "host tool" >&6; }
14160 else
14161 # We need a cross tool
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163 $as_echo "pre-installed" >&6; }
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14168 $as_echo_n "checking where to find the target windres... " >&6; }
14169 if test "x${build}" != "x${host}" ; then
14170 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
14172 ac_dir=`dirname $WINDRES_FOR_TARGET`
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174 $as_echo "pre-installed in $ac_dir" >&6; }
14175 else
14176 # Canadian cross, just use what we found
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178 $as_echo "pre-installed" >&6; }
14180 else
14181 ok=yes
14182 case " ${configdirs} " in
14183 *" binutils "*) ;;
14184 *) ok=no ;;
14185 esac
14187 if test $ok = yes; then
14188 # An in-tree tool is available and we can use it
14189 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191 $as_echo "just compiled" >&6; }
14192 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
14194 ac_dir=`dirname $WINDRES_FOR_TARGET`
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196 $as_echo "pre-installed in $ac_dir" >&6; }
14197 elif test "x$target" = "x$host"; then
14198 # We can use an host tool
14199 WINDRES_FOR_TARGET='$(WINDRES)'
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14201 $as_echo "host tool" >&6; }
14202 else
14203 # We need a cross tool
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205 $as_echo "pre-installed" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14210 $as_echo_n "checking where to find the target windmc... " >&6; }
14211 if test "x${build}" != "x${host}" ; then
14212 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
14214 ac_dir=`dirname $WINDMC_FOR_TARGET`
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216 $as_echo "pre-installed in $ac_dir" >&6; }
14217 else
14218 # Canadian cross, just use what we found
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220 $as_echo "pre-installed" >&6; }
14222 else
14223 ok=yes
14224 case " ${configdirs} " in
14225 *" binutils "*) ;;
14226 *) ok=no ;;
14227 esac
14229 if test $ok = yes; then
14230 # An in-tree tool is available and we can use it
14231 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233 $as_echo "just compiled" >&6; }
14234 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
14236 ac_dir=`dirname $WINDMC_FOR_TARGET`
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238 $as_echo "pre-installed in $ac_dir" >&6; }
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 WINDMC_FOR_TARGET='$(WINDMC)'
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243 $as_echo "host tool" >&6; }
14244 else
14245 # We need a cross tool
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247 $as_echo "pre-installed" >&6; }
14255 # Certain tools may need extra flags.
14256 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14257 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14258 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14260 # When building target libraries, except in a Canadian cross, we use
14261 # the same toolchain as the compiler we just built.
14262 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14263 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14264 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14265 if test $host = $build; then
14266 case " $configdirs " in
14267 *" gcc "*)
14268 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14269 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14270 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14272 esac
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14280 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14281 # Check whether --enable-maintainer-mode was given.
14282 if test "${enable_maintainer_mode+set}" = set; then :
14283 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14284 else
14285 USE_MAINTAINER_MODE=no
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14289 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14292 if test "$USE_MAINTAINER_MODE" = yes; then
14293 MAINTAINER_MODE_TRUE=
14294 MAINTAINER_MODE_FALSE='#'
14295 else
14296 MAINTAINER_MODE_TRUE='#'
14297 MAINTAINER_MODE_FALSE=
14299 MAINT=$MAINTAINER_MODE_TRUE
14301 # ---------------------
14302 # GCC bootstrap support
14303 # ---------------------
14305 # Stage specific cflags for build.
14306 stage1_cflags="-g"
14307 case $build in
14308 vax-*-*)
14309 case ${GCC} in
14310 yes) stage1_cflags="-g -Wa,-J" ;;
14311 *) stage1_cflags="-g -J" ;;
14312 esac ;;
14313 esac
14317 # Enable --enable-checking in stage1 of the compiler.
14318 # Check whether --enable-stage1-checking was given.
14319 if test "${enable_stage1_checking+set}" = set; then :
14320 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14321 else
14322 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14323 stage1_checking=--enable-checking=yes,types
14324 else
14325 stage1_checking=--enable-checking=$enable_checking,types
14331 # Enable -Werror in bootstrap stage2 and later.
14332 # Check whether --enable-werror was given.
14333 if test "${enable_werror+set}" = set; then :
14334 enableval=$enable_werror;
14335 else
14336 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14337 enable_werror=yes
14338 else
14339 enable_werror=no
14343 case ${enable_werror} in
14344 yes) stage2_werror_flag="--enable-werror-always" ;;
14345 *) stage2_werror_flag="" ;;
14346 esac
14349 # Specify what files to not compare during bootstrap.
14351 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14352 case "$target" in
14353 hppa*64*-*-hpux*) ;;
14354 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14355 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
14356 esac
14359 ac_config_files="$ac_config_files Makefile"
14361 cat >confcache <<\_ACEOF
14362 # This file is a shell script that caches the results of configure
14363 # tests run on this system so they can be shared between configure
14364 # scripts and configure runs, see configure's option --config-cache.
14365 # It is not useful on other systems. If it contains results you don't
14366 # want to keep, you may remove or edit it.
14368 # config.status only pays attention to the cache file if you give it
14369 # the --recheck option to rerun configure.
14371 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14372 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14373 # following values.
14375 _ACEOF
14377 # The following way of writing the cache mishandles newlines in values,
14378 # but we know of no workaround that is simple, portable, and efficient.
14379 # So, we kill variables containing newlines.
14380 # Ultrix sh set writes to stderr and can't be redirected directly,
14381 # and sets the high bit in the cache file unless we assign to the vars.
14383 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14384 eval ac_val=\$$ac_var
14385 case $ac_val in #(
14386 *${as_nl}*)
14387 case $ac_var in #(
14388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14389 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14390 esac
14391 case $ac_var in #(
14392 _ | IFS | as_nl) ;; #(
14393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14394 *) { eval $ac_var=; unset $ac_var;} ;;
14395 esac ;;
14396 esac
14397 done
14399 (set) 2>&1 |
14400 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14401 *${as_nl}ac_space=\ *)
14402 # `set' does not quote correctly, so add quotes: double-quote
14403 # substitution turns \\\\ into \\, and sed turns \\ into \.
14404 sed -n \
14405 "s/'/'\\\\''/g;
14406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14407 ;; #(
14409 # `set' quotes correctly as required by POSIX, so do not add quotes.
14410 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14412 esac |
14413 sort
14415 sed '
14416 /^ac_cv_env_/b end
14417 t clear
14418 :clear
14419 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14420 t end
14421 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14422 :end' >>confcache
14423 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14424 if test -w "$cache_file"; then
14425 test "x$cache_file" != "x/dev/null" &&
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14427 $as_echo "$as_me: updating cache $cache_file" >&6;}
14428 cat confcache >$cache_file
14429 else
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14431 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14434 rm -f confcache
14436 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14437 # Let make expand exec_prefix.
14438 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14440 # Transform confdefs.h into DEFS.
14441 # Protect against shell expansion while executing Makefile rules.
14442 # Protect against Makefile macro expansion.
14444 # If the first sed substitution is executed (which looks for macros that
14445 # take arguments), then branch to the quote section. Otherwise,
14446 # look for a macro that doesn't take arguments.
14447 ac_script='
14448 :mline
14449 /\\$/{
14451 s,\\\n,,
14452 b mline
14454 t clear
14455 :clear
14456 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14457 t quote
14458 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14459 t quote
14460 b any
14461 :quote
14462 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14463 s/\[/\\&/g
14464 s/\]/\\&/g
14465 s/\$/$$/g
14467 :any
14470 s/^\n//
14471 s/\n/ /g
14475 DEFS=`sed -n "$ac_script" confdefs.h`
14478 ac_libobjs=
14479 ac_ltlibobjs=
14480 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14481 # 1. Remove the extension, and $U if already installed.
14482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14483 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14485 # will be set to the directory where LIBOBJS objects are built.
14486 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14487 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14488 done
14489 LIBOBJS=$ac_libobjs
14491 LTLIBOBJS=$ac_ltlibobjs
14495 : ${CONFIG_STATUS=./config.status}
14496 ac_write_fail=0
14497 ac_clean_files_save=$ac_clean_files
14498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14500 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14501 as_write_fail=0
14502 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14503 #! $SHELL
14504 # Generated by $as_me.
14505 # Run this file to recreate the current configuration.
14506 # Compiler output produced by configure, useful for debugging
14507 # configure, is in config.log if it exists.
14509 debug=false
14510 ac_cs_recheck=false
14511 ac_cs_silent=false
14513 SHELL=\${CONFIG_SHELL-$SHELL}
14514 export SHELL
14515 _ASEOF
14516 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14517 ## -------------------- ##
14518 ## M4sh Initialization. ##
14519 ## -------------------- ##
14521 # Be more Bourne compatible
14522 DUALCASE=1; export DUALCASE # for MKS sh
14523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14524 emulate sh
14525 NULLCMD=:
14526 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14527 # is contrary to our usage. Disable this feature.
14528 alias -g '${1+"$@"}'='"$@"'
14529 setopt NO_GLOB_SUBST
14530 else
14531 case `(set -o) 2>/dev/null` in #(
14532 *posix*) :
14533 set -o posix ;; #(
14534 *) :
14536 esac
14540 as_nl='
14542 export as_nl
14543 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14544 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14545 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14547 # Prefer a ksh shell builtin over an external printf program on Solaris,
14548 # but without wasting forks for bash or zsh.
14549 if test -z "$BASH_VERSION$ZSH_VERSION" \
14550 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14551 as_echo='print -r --'
14552 as_echo_n='print -rn --'
14553 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14554 as_echo='printf %s\n'
14555 as_echo_n='printf %s'
14556 else
14557 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14558 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14559 as_echo_n='/usr/ucb/echo -n'
14560 else
14561 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14562 as_echo_n_body='eval
14563 arg=$1;
14564 case $arg in #(
14565 *"$as_nl"*)
14566 expr "X$arg" : "X\\(.*\\)$as_nl";
14567 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14568 esac;
14569 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14571 export as_echo_n_body
14572 as_echo_n='sh -c $as_echo_n_body as_echo'
14574 export as_echo_body
14575 as_echo='sh -c $as_echo_body as_echo'
14578 # The user is always right.
14579 if test "${PATH_SEPARATOR+set}" != set; then
14580 PATH_SEPARATOR=:
14581 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14582 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14583 PATH_SEPARATOR=';'
14588 # IFS
14589 # We need space, tab and new line, in precisely that order. Quoting is
14590 # there to prevent editors from complaining about space-tab.
14591 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14592 # splitting by setting IFS to empty value.)
14593 IFS=" "" $as_nl"
14595 # Find who we are. Look in the path if we contain no directory separator.
14596 case $0 in #((
14597 *[\\/]* ) as_myself=$0 ;;
14598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 for as_dir in $PATH
14601 IFS=$as_save_IFS
14602 test -z "$as_dir" && as_dir=.
14603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14604 done
14605 IFS=$as_save_IFS
14608 esac
14609 # We did not find ourselves, most probably we were run as `sh COMMAND'
14610 # in which case we are not to be found in the path.
14611 if test "x$as_myself" = x; then
14612 as_myself=$0
14614 if test ! -f "$as_myself"; then
14615 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14616 exit 1
14619 # Unset variables that we do not need and which cause bugs (e.g. in
14620 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14621 # suppresses any "Segmentation fault" message there. '((' could
14622 # trigger a bug in pdksh 5.2.14.
14623 for as_var in BASH_ENV ENV MAIL MAILPATH
14624 do eval test x\${$as_var+set} = xset \
14625 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14626 done
14627 PS1='$ '
14628 PS2='> '
14629 PS4='+ '
14631 # NLS nuisances.
14632 LC_ALL=C
14633 export LC_ALL
14634 LANGUAGE=C
14635 export LANGUAGE
14637 # CDPATH.
14638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14641 # as_fn_error ERROR [LINENO LOG_FD]
14642 # ---------------------------------
14643 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14644 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14645 # script with status $?, using 1 if that was 0.
14646 as_fn_error ()
14648 as_status=$?; test $as_status -eq 0 && as_status=1
14649 if test "$3"; then
14650 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14651 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14653 $as_echo "$as_me: error: $1" >&2
14654 as_fn_exit $as_status
14655 } # as_fn_error
14658 # as_fn_set_status STATUS
14659 # -----------------------
14660 # Set $? to STATUS, without forking.
14661 as_fn_set_status ()
14663 return $1
14664 } # as_fn_set_status
14666 # as_fn_exit STATUS
14667 # -----------------
14668 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14669 as_fn_exit ()
14671 set +e
14672 as_fn_set_status $1
14673 exit $1
14674 } # as_fn_exit
14676 # as_fn_unset VAR
14677 # ---------------
14678 # Portably unset VAR.
14679 as_fn_unset ()
14681 { eval $1=; unset $1;}
14683 as_unset=as_fn_unset
14684 # as_fn_append VAR VALUE
14685 # ----------------------
14686 # Append the text in VALUE to the end of the definition contained in VAR. Take
14687 # advantage of any shell optimizations that allow amortized linear growth over
14688 # repeated appends, instead of the typical quadratic growth present in naive
14689 # implementations.
14690 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14691 eval 'as_fn_append ()
14693 eval $1+=\$2
14695 else
14696 as_fn_append ()
14698 eval $1=\$$1\$2
14700 fi # as_fn_append
14702 # as_fn_arith ARG...
14703 # ------------------
14704 # Perform arithmetic evaluation on the ARGs, and store the result in the
14705 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14706 # must be portable across $(()) and expr.
14707 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14708 eval 'as_fn_arith ()
14710 as_val=$(( $* ))
14712 else
14713 as_fn_arith ()
14715 as_val=`expr "$@" || test $? -eq 1`
14717 fi # as_fn_arith
14720 if expr a : '\(a\)' >/dev/null 2>&1 &&
14721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14722 as_expr=expr
14723 else
14724 as_expr=false
14727 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14728 as_basename=basename
14729 else
14730 as_basename=false
14733 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14734 as_dirname=dirname
14735 else
14736 as_dirname=false
14739 as_me=`$as_basename -- "$0" ||
14740 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14741 X"$0" : 'X\(//\)$' \| \
14742 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14743 $as_echo X/"$0" |
14744 sed '/^.*\/\([^/][^/]*\)\/*$/{
14745 s//\1/
14748 /^X\/\(\/\/\)$/{
14749 s//\1/
14752 /^X\/\(\/\).*/{
14753 s//\1/
14756 s/.*/./; q'`
14758 # Avoid depending upon Character Ranges.
14759 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14760 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14761 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14762 as_cr_digits='0123456789'
14763 as_cr_alnum=$as_cr_Letters$as_cr_digits
14765 ECHO_C= ECHO_N= ECHO_T=
14766 case `echo -n x` in #(((((
14767 -n*)
14768 case `echo 'xy\c'` in
14769 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14770 xy) ECHO_C='\c';;
14771 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14772 ECHO_T=' ';;
14773 esac;;
14775 ECHO_N='-n';;
14776 esac
14778 rm -f conf$$ conf$$.exe conf$$.file
14779 if test -d conf$$.dir; then
14780 rm -f conf$$.dir/conf$$.file
14781 else
14782 rm -f conf$$.dir
14783 mkdir conf$$.dir 2>/dev/null
14785 if (echo >conf$$.file) 2>/dev/null; then
14786 if ln -s conf$$.file conf$$ 2>/dev/null; then
14787 as_ln_s='ln -s'
14788 # ... but there are two gotchas:
14789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14791 # In both cases, we have to default to `cp -p'.
14792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14793 as_ln_s='cp -p'
14794 elif ln conf$$.file conf$$ 2>/dev/null; then
14795 as_ln_s=ln
14796 else
14797 as_ln_s='cp -p'
14799 else
14800 as_ln_s='cp -p'
14802 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14803 rmdir conf$$.dir 2>/dev/null
14806 # as_fn_mkdir_p
14807 # -------------
14808 # Create "$as_dir" as a directory, including parents if necessary.
14809 as_fn_mkdir_p ()
14812 case $as_dir in #(
14813 -*) as_dir=./$as_dir;;
14814 esac
14815 test -d "$as_dir" || eval $as_mkdir_p || {
14816 as_dirs=
14817 while :; do
14818 case $as_dir in #(
14819 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14820 *) as_qdir=$as_dir;;
14821 esac
14822 as_dirs="'$as_qdir' $as_dirs"
14823 as_dir=`$as_dirname -- "$as_dir" ||
14824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14825 X"$as_dir" : 'X\(//\)[^/]' \| \
14826 X"$as_dir" : 'X\(//\)$' \| \
14827 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14828 $as_echo X"$as_dir" |
14829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14830 s//\1/
14833 /^X\(\/\/\)[^/].*/{
14834 s//\1/
14837 /^X\(\/\/\)$/{
14838 s//\1/
14841 /^X\(\/\).*/{
14842 s//\1/
14845 s/.*/./; q'`
14846 test -d "$as_dir" && break
14847 done
14848 test -z "$as_dirs" || eval "mkdir $as_dirs"
14849 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14852 } # as_fn_mkdir_p
14853 if mkdir -p . 2>/dev/null; then
14854 as_mkdir_p='mkdir -p "$as_dir"'
14855 else
14856 test -d ./-p && rmdir ./-p
14857 as_mkdir_p=false
14860 if test -x / >/dev/null 2>&1; then
14861 as_test_x='test -x'
14862 else
14863 if ls -dL / >/dev/null 2>&1; then
14864 as_ls_L_option=L
14865 else
14866 as_ls_L_option=
14868 as_test_x='
14869 eval sh -c '\''
14870 if test -d "$1"; then
14871 test -d "$1/.";
14872 else
14873 case $1 in #(
14874 -*)set "./$1";;
14875 esac;
14876 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14877 ???[sx]*):;;*)false;;esac;fi
14878 '\'' sh
14881 as_executable_p=$as_test_x
14883 # Sed expression to map a string onto a valid CPP name.
14884 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14886 # Sed expression to map a string onto a valid variable name.
14887 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14890 exec 6>&1
14891 ## ----------------------------------- ##
14892 ## Main body of $CONFIG_STATUS script. ##
14893 ## ----------------------------------- ##
14894 _ASEOF
14895 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14898 # Save the log message, to keep $0 and so on meaningful, and to
14899 # report actual input values of CONFIG_FILES etc. instead of their
14900 # values after options handling.
14901 ac_log="
14902 This file was extended by $as_me, which was
14903 generated by GNU Autoconf 2.64. Invocation command line was
14905 CONFIG_FILES = $CONFIG_FILES
14906 CONFIG_HEADERS = $CONFIG_HEADERS
14907 CONFIG_LINKS = $CONFIG_LINKS
14908 CONFIG_COMMANDS = $CONFIG_COMMANDS
14909 $ $0 $@
14911 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14914 _ACEOF
14916 case $ac_config_files in *"
14917 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14918 esac
14922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14923 # Files that config.status was made for.
14924 config_files="$ac_config_files"
14926 _ACEOF
14928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14929 ac_cs_usage="\
14930 \`$as_me' instantiates files and other configuration actions
14931 from templates according to the current configuration. Unless the files
14932 and actions are specified as TAGs, all are instantiated by default.
14934 Usage: $0 [OPTION]... [TAG]...
14936 -h, --help print this help, then exit
14937 -V, --version print version number and configuration settings, then exit
14938 -q, --quiet, --silent
14939 do not print progress messages
14940 -d, --debug don't remove temporary files
14941 --recheck update $as_me by reconfiguring in the same conditions
14942 --file=FILE[:TEMPLATE]
14943 instantiate the configuration file FILE
14945 Configuration files:
14946 $config_files
14948 Report bugs to the package provider."
14950 _ACEOF
14951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952 ac_cs_version="\\
14953 config.status
14954 configured by $0, generated by GNU Autoconf 2.64,
14955 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14957 Copyright (C) 2009 Free Software Foundation, Inc.
14958 This config.status script is free software; the Free Software Foundation
14959 gives unlimited permission to copy, distribute and modify it."
14961 ac_pwd='$ac_pwd'
14962 srcdir='$srcdir'
14963 INSTALL='$INSTALL'
14964 AWK='$AWK'
14965 test -n "\$AWK" || AWK=awk
14966 _ACEOF
14968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14969 # The default lists apply if the user does not specify any file.
14970 ac_need_defaults=:
14971 while test $# != 0
14973 case $1 in
14974 --*=*)
14975 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14976 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14977 ac_shift=:
14980 ac_option=$1
14981 ac_optarg=$2
14982 ac_shift=shift
14984 esac
14986 case $ac_option in
14987 # Handling of the options.
14988 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14989 ac_cs_recheck=: ;;
14990 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14991 $as_echo "$ac_cs_version"; exit ;;
14992 --debug | --debu | --deb | --de | --d | -d )
14993 debug=: ;;
14994 --file | --fil | --fi | --f )
14995 $ac_shift
14996 case $ac_optarg in
14997 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14998 esac
14999 as_fn_append CONFIG_FILES " '$ac_optarg'"
15000 ac_need_defaults=false;;
15001 --he | --h | --help | --hel | -h )
15002 $as_echo "$ac_cs_usage"; exit ;;
15003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15004 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15005 ac_cs_silent=: ;;
15007 # This is an error.
15008 -*) as_fn_error "unrecognized option: \`$1'
15009 Try \`$0 --help' for more information." ;;
15011 *) as_fn_append ac_config_targets " $1"
15012 ac_need_defaults=false ;;
15014 esac
15015 shift
15016 done
15018 ac_configure_extra_args=
15020 if $ac_cs_silent; then
15021 exec 6>/dev/null
15022 ac_configure_extra_args="$ac_configure_extra_args --silent"
15025 _ACEOF
15026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15027 if \$ac_cs_recheck; then
15028 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15029 shift
15030 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15031 CONFIG_SHELL='$SHELL'
15032 export CONFIG_SHELL
15033 exec "\$@"
15036 _ACEOF
15037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038 exec 5>>config.log
15040 echo
15041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15042 ## Running $as_me. ##
15043 _ASBOX
15044 $as_echo "$ac_log"
15045 } >&5
15047 _ACEOF
15048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15050 # INIT-COMMANDS
15052 extrasub_build="$extrasub_build"
15053 extrasub_host="$extrasub_host"
15054 extrasub_target="$extrasub_target"
15056 _ACEOF
15058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15060 # Handling of arguments.
15061 for ac_config_target in $ac_config_targets
15063 case $ac_config_target in
15064 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15066 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15067 esac
15068 done
15071 # If the user did not use the arguments to specify the items to instantiate,
15072 # then the envvar interface is used. Set only those that are not.
15073 # We use the long form for the default assignment because of an extremely
15074 # bizarre bug on SunOS 4.1.3.
15075 if $ac_need_defaults; then
15076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15079 # Have a temporary directory for convenience. Make it in the build tree
15080 # simply because there is no reason against having it here, and in addition,
15081 # creating and moving files from /tmp can sometimes cause problems.
15082 # Hook for its removal unless debugging.
15083 # Note that there is a small window in which the directory will not be cleaned:
15084 # after its creation but before its name has been assigned to `$tmp'.
15085 $debug ||
15087 tmp=
15088 trap 'exit_status=$?
15089 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15091 trap 'as_fn_exit 1' 1 2 13 15
15093 # Create a (secure) tmp directory for tmp files.
15096 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15097 test -n "$tmp" && test -d "$tmp"
15098 } ||
15100 tmp=./conf$$-$RANDOM
15101 (umask 077 && mkdir "$tmp")
15102 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15104 # Set up the scripts for CONFIG_FILES section.
15105 # No need to generate them if there are no CONFIG_FILES.
15106 # This happens for instance with `./config.status config.h'.
15107 if test -n "$CONFIG_FILES"; then
15109 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15110 ac_cs_awk_getline=:
15111 ac_cs_awk_pipe_init=
15112 ac_cs_awk_read_file='
15113 while ((getline aline < (F[key])) > 0)
15114 print(aline)
15115 close(F[key])'
15116 ac_cs_awk_pipe_fini=
15117 else
15118 ac_cs_awk_getline=false
15119 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15120 ac_cs_awk_read_file='
15121 print "|#_!!_#|"
15122 print "cat " F[key] " &&"
15123 '$ac_cs_awk_pipe_init
15124 # The final `:' finishes the AND list.
15125 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15127 ac_cr=`echo X | tr X '\015'`
15128 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15129 # But we know of no other shell where ac_cr would be empty at this
15130 # point, so we can use a bashism as a fallback.
15131 if test "x$ac_cr" = x; then
15132 eval ac_cr=\$\'\\r\'
15134 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15135 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15136 ac_cs_awk_cr='\r'
15137 else
15138 ac_cs_awk_cr=$ac_cr
15141 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15142 _ACEOF
15144 # Create commands to substitute file output variables.
15146 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15147 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15148 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15149 echo "_ACAWK" &&
15150 echo "_ACEOF"
15151 } >conf$$files.sh &&
15152 . ./conf$$files.sh ||
15153 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15154 rm -f conf$$files.sh
15157 echo "cat >conf$$subs.awk <<_ACEOF" &&
15158 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15159 echo "_ACEOF"
15160 } >conf$$subs.sh ||
15161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15162 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15163 ac_delim='%!_!# '
15164 for ac_last_try in false false false false false :; do
15165 . ./conf$$subs.sh ||
15166 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15168 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15169 if test $ac_delim_n = $ac_delim_num; then
15170 break
15171 elif $ac_last_try; then
15172 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15173 else
15174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15176 done
15177 rm -f conf$$subs.sh
15179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15180 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15181 _ACEOF
15182 sed -n '
15184 s/^/S["/; s/!.*/"]=/
15187 s/^[^!]*!//
15188 :repl
15189 t repl
15190 s/'"$ac_delim"'$//
15191 t delim
15194 s/\(.\{148\}\).*/\1/
15195 t more1
15196 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15199 b repl
15200 :more1
15201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15204 s/.\{148\}//
15205 t nl
15206 :delim
15208 s/\(.\{148\}\).*/\1/
15209 t more2
15210 s/["\\]/\\&/g; s/^/"/; s/$/"/
15213 :more2
15214 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15217 s/.\{148\}//
15218 t delim
15219 ' <conf$$subs.awk | sed '
15220 /^[^""]/{
15222 s/\n//
15224 ' >>$CONFIG_STATUS || ac_write_fail=1
15225 rm -f conf$$subs.awk
15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227 _ACAWK
15228 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15229 for (key in S) S_is_set[key] = 1
15230 FS = "\a"
15231 \$ac_cs_awk_pipe_init
15234 line = $ 0
15235 nfields = split(line, field, "@")
15236 substed = 0
15237 len = length(field[1])
15238 for (i = 2; i < nfields; i++) {
15239 key = field[i]
15240 keylen = length(key)
15241 if (S_is_set[key]) {
15242 value = S[key]
15243 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15244 len += length(value) + length(field[++i])
15245 substed = 1
15246 } else
15247 len += 1 + keylen
15249 if (nfields == 3 && !substed) {
15250 key = field[2]
15251 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15252 \$ac_cs_awk_read_file
15253 next
15256 print line
15258 \$ac_cs_awk_pipe_fini
15259 _ACAWK
15260 _ACEOF
15261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15262 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15263 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15264 else
15266 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15267 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15268 _ACEOF
15270 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15271 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15272 # trailing colons and then remove the whole line if VPATH becomes empty
15273 # (actually we leave an empty line to preserve line numbers).
15274 if test "x$srcdir" = x.; then
15275 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15276 s/:*\$(srcdir):*/:/
15277 s/:*\${srcdir}:*/:/
15278 s/:*@srcdir@:*/:/
15279 s/^\([^=]*=[ ]*\):*/\1/
15280 s/:*$//
15281 s/^[^=]*=[ ]*$//
15285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15286 fi # test -n "$CONFIG_FILES"
15289 eval set X " :F $CONFIG_FILES "
15290 shift
15291 for ac_tag
15293 case $ac_tag in
15294 :[FHLC]) ac_mode=$ac_tag; continue;;
15295 esac
15296 case $ac_mode$ac_tag in
15297 :[FHL]*:*);;
15298 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15299 :[FH]-) ac_tag=-:-;;
15300 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15301 esac
15302 ac_save_IFS=$IFS
15303 IFS=:
15304 set x $ac_tag
15305 IFS=$ac_save_IFS
15306 shift
15307 ac_file=$1
15308 shift
15310 case $ac_mode in
15311 :L) ac_source=$1;;
15312 :[FH])
15313 ac_file_inputs=
15314 for ac_f
15316 case $ac_f in
15317 -) ac_f="$tmp/stdin";;
15318 *) # Look for the file first in the build tree, then in the source tree
15319 # (if the path is not absolute). The absolute path cannot be DOS-style,
15320 # because $ac_f cannot contain `:'.
15321 test -f "$ac_f" ||
15322 case $ac_f in
15323 [\\/$]*) false;;
15324 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15325 esac ||
15326 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15327 esac
15328 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15329 as_fn_append ac_file_inputs " '$ac_f'"
15330 done
15332 # Let's still pretend it is `configure' which instantiates (i.e., don't
15333 # use $as_me), people would be surprised to read:
15334 # /* config.h. Generated by config.status. */
15335 configure_input='Generated from '`
15336 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15337 `' by configure.'
15338 if test x"$ac_file" != x-; then
15339 configure_input="$ac_file. $configure_input"
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15341 $as_echo "$as_me: creating $ac_file" >&6;}
15343 # Neutralize special characters interpreted by sed in replacement strings.
15344 case $configure_input in #(
15345 *\&* | *\|* | *\\* )
15346 ac_sed_conf_input=`$as_echo "$configure_input" |
15347 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15348 *) ac_sed_conf_input=$configure_input;;
15349 esac
15351 case $ac_tag in
15352 *:-:* | *:-) cat >"$tmp/stdin" \
15353 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15354 esac
15356 esac
15358 ac_dir=`$as_dirname -- "$ac_file" ||
15359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15360 X"$ac_file" : 'X\(//\)[^/]' \| \
15361 X"$ac_file" : 'X\(//\)$' \| \
15362 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15363 $as_echo X"$ac_file" |
15364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15365 s//\1/
15368 /^X\(\/\/\)[^/].*/{
15369 s//\1/
15372 /^X\(\/\/\)$/{
15373 s//\1/
15376 /^X\(\/\).*/{
15377 s//\1/
15380 s/.*/./; q'`
15381 as_dir="$ac_dir"; as_fn_mkdir_p
15382 ac_builddir=.
15384 case "$ac_dir" in
15385 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15387 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15388 # A ".." for each directory in $ac_dir_suffix.
15389 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15390 case $ac_top_builddir_sub in
15391 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15392 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15393 esac ;;
15394 esac
15395 ac_abs_top_builddir=$ac_pwd
15396 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15397 # for backward compatibility:
15398 ac_top_builddir=$ac_top_build_prefix
15400 case $srcdir in
15401 .) # We are building in place.
15402 ac_srcdir=.
15403 ac_top_srcdir=$ac_top_builddir_sub
15404 ac_abs_top_srcdir=$ac_pwd ;;
15405 [\\/]* | ?:[\\/]* ) # Absolute name.
15406 ac_srcdir=$srcdir$ac_dir_suffix;
15407 ac_top_srcdir=$srcdir
15408 ac_abs_top_srcdir=$srcdir ;;
15409 *) # Relative name.
15410 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15411 ac_top_srcdir=$ac_top_build_prefix$srcdir
15412 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15413 esac
15414 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15417 case $ac_mode in
15420 # CONFIG_FILE
15423 case $INSTALL in
15424 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15425 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15426 esac
15427 _ACEOF
15429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15430 # If the template does not know about datarootdir, expand it.
15431 # FIXME: This hack should be removed a few years after 2.60.
15432 ac_datarootdir_hack=; ac_datarootdir_seen=
15433 ac_sed_dataroot='
15434 /datarootdir/ {
15438 /@datadir@/p
15439 /@docdir@/p
15440 /@infodir@/p
15441 /@localedir@/p
15442 /@mandir@/p'
15443 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15444 *datarootdir*) ac_datarootdir_seen=yes;;
15445 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15447 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15448 _ACEOF
15449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15450 ac_datarootdir_hack='
15451 s&@datadir@&$datadir&g
15452 s&@docdir@&$docdir&g
15453 s&@infodir@&$infodir&g
15454 s&@localedir@&$localedir&g
15455 s&@mandir@&$mandir&g
15456 s&\\\${datarootdir}&$datarootdir&g' ;;
15457 esac
15458 _ACEOF
15460 # Neutralize VPATH when `$srcdir' = `.'.
15461 # Shell code in configure.ac might set extrasub.
15462 # FIXME: do we really want to maintain this feature?
15463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15464 ac_sed_extra="$ac_vpsub
15465 $extrasub
15466 _ACEOF
15467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15470 s|@configure_input@|$ac_sed_conf_input|;t t
15471 s&@top_builddir@&$ac_top_builddir_sub&;t t
15472 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15473 s&@srcdir@&$ac_srcdir&;t t
15474 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15475 s&@top_srcdir@&$ac_top_srcdir&;t t
15476 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15477 s&@builddir@&$ac_builddir&;t t
15478 s&@abs_builddir@&$ac_abs_builddir&;t t
15479 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15480 s&@INSTALL@&$ac_INSTALL&;t t
15481 $ac_datarootdir_hack
15483 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15484 if $ac_cs_awk_getline; then
15485 $AWK -f "$tmp/subs.awk"
15486 else
15487 $AWK -f "$tmp/subs.awk" | $SHELL
15488 fi >$tmp/out \
15489 || as_fn_error "could not create $ac_file" "$LINENO" 5
15491 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15492 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15493 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15495 which seems to be undefined. Please make sure it is defined." >&5
15496 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15497 which seems to be undefined. Please make sure it is defined." >&2;}
15499 rm -f "$tmp/stdin"
15500 case $ac_file in
15501 -) cat "$tmp/out" && rm -f "$tmp/out";;
15502 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15503 esac \
15504 || as_fn_error "could not create $ac_file" "$LINENO" 5
15509 esac
15512 case $ac_file$ac_mode in
15513 "Makefile":F) sed "$extrasub_build" Makefile |
15514 sed "$extrasub_host" |
15515 sed "$extrasub_target" > mf$$
15516 mv -f mf$$ Makefile ;;
15518 esac
15519 done # for ac_tag
15522 as_fn_exit 0
15523 _ACEOF
15524 ac_clean_files=$ac_clean_files_save
15526 test $ac_write_fail = 0 ||
15527 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15530 # configure is writing to config.log, and then calls config.status.
15531 # config.status does its own redirection, appending to config.log.
15532 # Unfortunately, on DOS this fails, as config.log is still kept open
15533 # by configure, so config.status won't be able to write to it; its
15534 # output is simply discarded. So we exec the FD to /dev/null,
15535 # effectively closing config.log, so it can be properly (re)opened and
15536 # appended to by config.status. When coming back to configure, we
15537 # need to make the FD available again.
15538 if test "$no_create" != yes; then
15539 ac_cs_success=:
15540 ac_config_status_args=
15541 test "$silent" = yes &&
15542 ac_config_status_args="$ac_config_status_args --quiet"
15543 exec 5>/dev/null
15544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15545 exec 5>>config.log
15546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15547 # would make configure fail if this is the last instruction.
15548 $ac_cs_success || as_fn_exit $?
15550 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15552 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}