* Makefile.tpl (POSTSTAGE1_CONFIGURE_FLAGS): Add libsupc++ to
[official-gcc.git] / configure
blobfacf3e4781e29ce16131ff99d85ba76aa6a6316d
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 POSTSTAGE1_CONFIGURE_FLAGS
560 stage2_werror_flag
561 stage1_checking
562 stage1_cflags
563 MAINT
564 MAINTAINER_MODE_FALSE
565 MAINTAINER_MODE_TRUE
566 COMPILER_NM_FOR_TARGET
567 COMPILER_LD_FOR_TARGET
568 COMPILER_AS_FOR_TARGET
569 FLAGS_FOR_TARGET
570 RAW_CXX_FOR_TARGET
571 WINDMC_FOR_TARGET
572 WINDRES_FOR_TARGET
573 STRIP_FOR_TARGET
574 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 OBJDUMP
589 OBJCOPY
590 WINDMC
591 WINDRES
592 STRIP
593 RANLIB
595 LIPO
597 DLLTOOL
600 RUNTEST
601 EXPECT
602 MAKEINFO
603 FLEX
606 BISON
607 YACC
608 WINDRES_FOR_BUILD
609 WINDMC_FOR_BUILD
610 RANLIB_FOR_BUILD
611 NM_FOR_BUILD
612 LD_FOR_BUILD
613 LDFLAGS_FOR_BUILD
614 GOC_FOR_BUILD
615 GFORTRAN_FOR_BUILD
616 GCJ_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 LDFLAGS_FOR_TARGET
639 CXXFLAGS_FOR_TARGET
640 CFLAGS_FOR_TARGET
641 DEBUG_PREFIX_CFLAGS_FOR_TARGET
642 SYSROOT_CFLAGS_FOR_TARGET
643 stage1_languages
644 extra_host_libiberty_configure_flags
645 clooginc
646 clooglibs
647 pplinc
648 ppllibs
649 poststage1_ldflags
650 poststage1_libs
651 stage1_libs
652 stage1_ldflags
653 extra_mpc_mpfr_configure_flags
654 extra_mpc_gmp_configure_flags
655 extra_mpfr_configure_flags
656 gmpinc
657 gmplibs
658 do_compare
659 GNATMAKE
660 GNATBIND
661 ac_ct_CXX
662 CXXFLAGS
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
671 EXTRA_CONFIGARGS_LIBJAVA
672 target_subdir
673 host_subdir
674 build_subdir
675 build_libsubdir
678 LN_S
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 target_os
684 target_vendor
685 target_cpu
686 target
687 host_os
688 host_vendor
689 host_cpu
690 host
691 target_noncanonical
692 host_noncanonical
693 build_noncanonical
694 build_os
695 build_vendor
696 build_cpu
697 build
698 TOPLEVEL_CONFIGURE_ARGUMENTS
699 target_alias
700 host_alias
701 build_alias
702 LIBS
703 ECHO_T
704 ECHO_N
705 ECHO_C
706 DEFS
707 mandir
708 localedir
709 libdir
710 psdir
711 pdfdir
712 dvidir
713 htmldir
714 infodir
715 docdir
716 oldincludedir
717 includedir
718 localstatedir
719 sharedstatedir
720 sysconfdir
721 datadir
722 datarootdir
723 libexecdir
724 sbindir
725 bindir
726 program_transform_name
727 prefix
728 exec_prefix
729 PACKAGE_URL
730 PACKAGE_BUGREPORT
731 PACKAGE_STRING
732 PACKAGE_VERSION
733 PACKAGE_TARNAME
734 PACKAGE_NAME
735 PATH_SEPARATOR
736 SHELL'
737 ac_subst_files='serialization_dependencies
738 host_makefile_frag
739 target_makefile_frag
740 alphaieee_frag
741 ospace_frag'
742 ac_user_opts='
743 enable_option_checking
744 with_build_libsubdir
745 enable_gold
746 enable_ld
747 enable_libquadmath
748 enable_libquadmath_support
749 enable_libada
750 enable_libssp
751 enable_static_libjava
752 enable_bootstrap
753 enable_build_with_cxx
754 enable_build_poststage1_with_cxx
755 with_mpc
756 with_mpc_include
757 with_mpc_lib
758 with_mpfr_dir
759 with_mpfr
760 with_mpfr_include
761 with_mpfr_lib
762 with_gmp_dir
763 with_gmp
764 with_gmp_include
765 with_gmp_lib
766 with_host_libstdcxx
767 with_stage1_ldflags
768 with_stage1_libs
769 with_boot_libs
770 with_boot_ldflags
771 with_ppl
772 with_ppl_include
773 with_ppl_lib
774 enable_ppl_version_check
775 with_cloog
776 with_cloog_include
777 with_cloog_lib
778 enable_cloog_backend
779 enable_cloog_version_check
780 enable_lto
781 enable_stage1_languages
782 enable_objc_gc
783 with_build_sysroot
784 with_debug_prefix_map
785 with_build_config
786 enable_serial_configure
787 with_build_time_tools
788 enable_maintainer_mode
789 enable_stage1_checking
790 enable_werror
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
801 CXXFLAGS
803 build_configargs
804 host_configargs
805 target_configargs
808 DLLTOOL
810 LIPO
812 RANLIB
813 STRIP
814 WINDRES
815 WINDMC
816 OBJCOPY
817 OBJDUMP
818 CC_FOR_TARGET
819 CXX_FOR_TARGET
820 GCC_FOR_TARGET
821 GCJ_FOR_TARGET
822 GFORTRAN_FOR_TARGET
823 GOC_FOR_TARGET
824 AR_FOR_TARGET
825 AS_FOR_TARGET
826 DLLTOOL_FOR_TARGET
827 LD_FOR_TARGET
828 LIPO_FOR_TARGET
829 NM_FOR_TARGET
830 OBJDUMP_FOR_TARGET
831 RANLIB_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 --enable-build-with-cxx build with C++ compiler instead of C compiler
1471 --enable-build-poststage1-with-cxx
1472 build stages 2 and 3 with C++, not C
1473 --disable-ppl-version-check
1474 disable check for PPL version
1475 --enable-cloog-backend[=BACKEND]
1476 set the CLooG BACKEND used to either isl, ppl or
1477 ppl-legacy (default)
1478 --disable-cloog-version-check
1479 disable check for CLooG version
1480 --enable-lto enable link time optimization support
1481 --enable-stage1-languages[=all]
1482 choose additional languages to build during stage1.
1483 Mostly useful for compiler development
1484 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1485 Objective-C runtime
1486 --enable-serial-[{host,target,build}-]configure
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
1496 --enable-werror enable -Werror in bootstrap stage2 and later
1498 Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-build-libsubdir=DIR Directory where to find libraries for build system
1502 --with-mpc=PATH specify prefix directory for installed MPC package.
1503 Equivalent to --with-mpc-include=PATH/include plus
1504 --with-mpc-lib=PATH/lib
1505 --with-mpc-include=PATH specify directory for installed MPC include files
1506 --with-mpc-lib=PATH specify directory for the installed MPC library
1507 --with-mpfr-dir=PATH this option has been REMOVED
1508 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1509 Equivalent to --with-mpfr-include=PATH/include plus
1510 --with-mpfr-lib=PATH/lib
1511 --with-mpfr-include=PATH
1512 specify directory for installed MPFR include files
1513 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1514 --with-gmp-dir=PATH this option has been REMOVED
1515 --with-gmp=PATH specify prefix directory for the installed GMP
1516 package. Equivalent to
1517 --with-gmp-include=PATH/include plus
1518 --with-gmp-lib=PATH/lib
1519 --with-gmp-include=PATH specify directory for installed GMP include files
1520 --with-gmp-lib=PATH specify directory for the installed GMP library
1521 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522 linking with PPL
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-stage1-libs=LIBS libraries for stage1
1526 --with-boot-libs=LIBS libraries for stage2 and later
1527 --with-boot-ldflags=FLAGS
1528 linker flags for stage2 and later
1529 --with-ppl=PATH specify prefix directory for the installed PPL
1530 package. Equivalent to
1531 --with-ppl-include=PATH/include plus
1532 --with-ppl-lib=PATH/lib
1533 --with-ppl-include=PATH specify directory for installed PPL include files
1534 --with-ppl-lib=PATH specify directory for the installed PPL library
1535 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1536 package. Equivalent to
1537 --with-cloog-include=PATH/include plus
1538 --with-cloog-lib=PATH/lib
1539 --with-cloog-include=PATH
1540 Specify directory for installed CLooG include files
1541 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1542 library
1543 --with-build-sysroot=SYSROOT
1544 use sysroot as the system root during the build
1545 --with-debug-prefix-map='A=B C=D ...'
1546 map A to B, C to D ... in debug information
1547 --with-build-config='NAME NAME2...'
1548 use config/NAME.mk build configuration
1549 --with-build-time-tools=PATH
1550 use given path to find target tools during the build
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
1562 build_configargs
1563 additional configure arguments for build directories
1564 host_configargs
1565 additional configure arguments for host directories
1566 target_configargs
1567 additional configure arguments for target directories
1568 AR AR for the host
1569 AS AS for the host
1570 DLLTOOL DLLTOOL for the host
1571 LD LD for the host
1572 LIPO LIPO for the host
1573 NM NM for the host
1574 RANLIB RANLIB for the host
1575 STRIP STRIP for the host
1576 WINDRES WINDRES for the host
1577 WINDMC WINDMC for the host
1578 OBJCOPY OBJCOPY for the host
1579 OBJDUMP OBJDUMP for the host
1580 CC_FOR_TARGET
1581 CC for the target
1582 CXX_FOR_TARGET
1583 CXX for the target
1584 GCC_FOR_TARGET
1585 GCC for the target
1586 GCJ_FOR_TARGET
1587 GCJ for the target
1588 GFORTRAN_FOR_TARGET
1589 GFORTRAN for the target
1590 GOC_FOR_TARGET
1591 GOC for the target
1592 AR_FOR_TARGET
1593 AR for the target
1594 AS_FOR_TARGET
1595 AS for the target
1596 DLLTOOL_FOR_TARGET
1597 DLLTOOL for the target
1598 LD_FOR_TARGET
1599 LD for the target
1600 LIPO_FOR_TARGET
1601 LIPO for the target
1602 NM_FOR_TARGET
1603 NM for the target
1604 OBJDUMP_FOR_TARGET
1605 OBJDUMP for the target
1606 RANLIB_FOR_TARGET
1607 RANLIB for the target
1608 STRIP_FOR_TARGET
1609 STRIP for the target
1610 WINDRES_FOR_TARGET
1611 WINDRES for the target
1612 WINDMC_FOR_TARGET
1613 WINDMC for the target
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1618 Report bugs to the package provider.
1619 _ACEOF
1620 ac_status=$?
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 continue
1629 ac_builddir=.
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1647 case $srcdir in
1648 .) # We are building in place.
1649 ac_srcdir=.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1671 else
1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1675 done
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680 cat <<\_ACEOF
1681 configure
1682 generated by GNU Autoconf 2.64
1684 Copyright (C) 2009 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1687 _ACEOF
1688 exit
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1726 ac_retval=1
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1731 } # ac_fn_c_try_compile
1733 # ac_fn_cxx_try_compile LINENO
1734 # ----------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_cxx_try_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_cxx_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=1
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1769 } # ac_fn_cxx_try_compile
1771 # ac_fn_c_try_link LINENO
1772 # -----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_link ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext conftest$ac_exeext
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest$ac_exeext && {
1797 test "$cross_compiling" = yes ||
1798 $as_test_x conftest$ac_exeext
1799 }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=1
1807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809 # interfere with the next link command; also delete a directory that is
1810 # left behind by Apple's compiler. We do this before executing the actions.
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 return $ac_retval
1815 } # ac_fn_c_try_link
1816 cat >config.log <<_ACEOF
1817 This file contains any messages produced by compilers while
1818 running configure, to aid debugging if configure makes a mistake.
1820 It was created by $as_me, which was
1821 generated by GNU Autoconf 2.64. Invocation command line was
1823 $ $0 $@
1825 _ACEOF
1826 exec 5>>config.log
1828 cat <<_ASUNAME
1829 ## --------- ##
1830 ## Platform. ##
1831 ## --------- ##
1833 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1834 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1835 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1836 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1837 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1839 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1840 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1842 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1843 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1844 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1845 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1846 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1847 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1848 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1850 _ASUNAME
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
1857 $as_echo "PATH: $as_dir"
1858 done
1859 IFS=$as_save_IFS
1861 } >&5
1863 cat >&5 <<_ACEOF
1866 ## ----------- ##
1867 ## Core tests. ##
1868 ## ----------- ##
1870 _ACEOF
1873 # Keep a trace of the command line.
1874 # Strip out --no-create and --no-recursion so they do not pile up.
1875 # Strip out --silent because we don't want to record it for future runs.
1876 # Also quote any args containing shell meta-characters.
1877 # Make two passes to allow for proper duplicate-argument suppression.
1878 ac_configure_args=
1879 ac_configure_args0=
1880 ac_configure_args1=
1881 ac_must_keep_next=false
1882 for ac_pass in 1 2
1884 for ac_arg
1886 case $ac_arg in
1887 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1889 | -silent | --silent | --silen | --sile | --sil)
1890 continue ;;
1891 *\'*)
1892 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 esac
1894 case $ac_pass in
1895 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1897 as_fn_append ac_configure_args1 " '$ac_arg'"
1898 if test $ac_must_keep_next = true; then
1899 ac_must_keep_next=false # Got value, back to normal.
1900 else
1901 case $ac_arg in
1902 *=* | --config-cache | -C | -disable-* | --disable-* \
1903 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1904 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1905 | -with-* | --with-* | -without-* | --without-* | --x)
1906 case "$ac_configure_args0 " in
1907 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1908 esac
1910 -* ) ac_must_keep_next=true ;;
1911 esac
1913 as_fn_append ac_configure_args " '$ac_arg'"
1915 esac
1916 done
1917 done
1918 { ac_configure_args0=; unset ac_configure_args0;}
1919 { ac_configure_args1=; unset ac_configure_args1;}
1921 # When interrupted or exit'd, cleanup temporary files, and complete
1922 # config.log. We remove comments because anyway the quotes in there
1923 # would cause problems or look ugly.
1924 # WARNING: Use '\'' to represent an apostrophe within the trap.
1925 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1926 trap 'exit_status=$?
1927 # Save into config.log some information that might help in debugging.
1929 echo
1931 cat <<\_ASBOX
1932 ## ---------------- ##
1933 ## Cache variables. ##
1934 ## ---------------- ##
1935 _ASBOX
1936 echo
1937 # The following way of writing the cache mishandles newlines in values,
1939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940 eval ac_val=\$$ac_var
1941 case $ac_val in #(
1942 *${as_nl}*)
1943 case $ac_var in #(
1944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946 esac
1947 case $ac_var in #(
1948 _ | IFS | as_nl) ;; #(
1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950 *) { eval $ac_var=; unset $ac_var;} ;;
1951 esac ;;
1952 esac
1953 done
1954 (set) 2>&1 |
1955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956 *${as_nl}ac_space=\ *)
1957 sed -n \
1958 "s/'\''/'\''\\\\'\'''\''/g;
1959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960 ;; #(
1962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1964 esac |
1965 sort
1967 echo
1969 cat <<\_ASBOX
1970 ## ----------------- ##
1971 ## Output variables. ##
1972 ## ----------------- ##
1973 _ASBOX
1974 echo
1975 for ac_var in $ac_subst_vars
1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 $as_echo "$ac_var='\''$ac_val'\''"
1982 done | sort
1983 echo
1985 if test -n "$ac_subst_files"; then
1986 cat <<\_ASBOX
1987 ## ------------------- ##
1988 ## File substitutions. ##
1989 ## ------------------- ##
1990 _ASBOX
1991 echo
1992 for ac_var in $ac_subst_files
1994 eval ac_val=\$$ac_var
1995 case $ac_val in
1996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 esac
1998 $as_echo "$ac_var='\''$ac_val'\''"
1999 done | sort
2000 echo
2003 if test -s confdefs.h; then
2004 cat <<\_ASBOX
2005 ## ----------- ##
2006 ## confdefs.h. ##
2007 ## ----------- ##
2008 _ASBOX
2009 echo
2010 cat confdefs.h
2011 echo
2013 test "$ac_signal" != 0 &&
2014 $as_echo "$as_me: caught signal $ac_signal"
2015 $as_echo "$as_me: exit $exit_status"
2016 } >&5
2017 rm -f core *.core core.conftest.* &&
2018 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2019 exit $exit_status
2021 for ac_signal in 1 2 13 15; do
2022 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2023 done
2024 ac_signal=0
2026 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2027 rm -f -r conftest* confdefs.h
2029 $as_echo "/* confdefs.h */" > confdefs.h
2031 # Predefined preprocessor variables.
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_NAME "$PACKAGE_NAME"
2035 _ACEOF
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039 _ACEOF
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2043 _ACEOF
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_STRING "$PACKAGE_STRING"
2047 _ACEOF
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051 _ACEOF
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_URL "$PACKAGE_URL"
2055 _ACEOF
2058 # Let the site file select an alternate cache file if it wants to.
2059 # Prefer an explicitly selected file to automatically selected ones.
2060 ac_site_file1=NONE
2061 ac_site_file2=NONE
2062 if test -n "$CONFIG_SITE"; then
2063 ac_site_file1=$CONFIG_SITE
2064 elif test "x$prefix" != xNONE; then
2065 ac_site_file1=$prefix/share/config.site
2066 ac_site_file2=$prefix/etc/config.site
2067 else
2068 ac_site_file1=$ac_default_prefix/share/config.site
2069 ac_site_file2=$ac_default_prefix/etc/config.site
2071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2073 test "x$ac_site_file" = xNONE && continue
2074 if test -r "$ac_site_file"; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2077 sed 's/^/| /' "$ac_site_file" >&5
2078 . "$ac_site_file"
2080 done
2082 if test -r "$cache_file"; then
2083 # Some versions of bash will fail to source /dev/null (special
2084 # files actually), so we avoid doing that.
2085 if test -f "$cache_file"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088 case $cache_file in
2089 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090 *) . "./$cache_file";;
2091 esac
2093 else
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095 $as_echo "$as_me: creating cache $cache_file" >&6;}
2096 >$cache_file
2099 # Check that the precious variables saved in the cache have kept the same
2100 # value.
2101 ac_cache_corrupted=false
2102 for ac_var in $ac_precious_vars; do
2103 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2104 eval ac_new_set=\$ac_env_${ac_var}_set
2105 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2106 eval ac_new_val=\$ac_env_${ac_var}_value
2107 case $ac_old_set,$ac_new_set in
2108 set,)
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2110 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2111 ac_cache_corrupted=: ;;
2112 ,set)
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2114 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2115 ac_cache_corrupted=: ;;
2116 ,);;
2118 if test "x$ac_old_val" != "x$ac_new_val"; then
2119 # differences in whitespace do not lead to failure.
2120 ac_old_val_w=`echo x $ac_old_val`
2121 ac_new_val_w=`echo x $ac_new_val`
2122 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2124 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2125 ac_cache_corrupted=:
2126 else
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2128 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2129 eval $ac_var=\$ac_old_val
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2132 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2134 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2135 fi;;
2136 esac
2137 # Pass precious variables to config.status.
2138 if test "$ac_new_set" = set; then
2139 case $ac_new_val in
2140 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2141 *) ac_arg=$ac_var=$ac_new_val ;;
2142 esac
2143 case " $ac_configure_args " in
2144 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2145 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2146 esac
2148 done
2149 if $ac_cache_corrupted; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2153 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2156 ## -------------------- ##
2157 ## Main body of script. ##
2158 ## -------------------- ##
2160 ac_ext=c
2161 ac_cpp='$CPP $CPPFLAGS'
2162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174 progname=$0
2175 # if PWD already has a value, it is probably wrong.
2176 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2178 # Export original configure arguments for use by sub-configures.
2179 # Quote arguments with shell meta charatcers.
2180 TOPLEVEL_CONFIGURE_ARGUMENTS=
2181 set -- "$progname" "$@"
2182 for ac_arg
2184 case "$ac_arg" in
2185 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2186 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2187 # if the argument is of the form -foo=baz, quote the baz part only
2188 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2189 *) ;;
2190 esac
2191 # Add the quoted argument to the list.
2192 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2193 done
2194 if test "$silent" = yes; then
2195 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2197 # Remove the initial space we just introduced and, as these will be
2198 # expanded by make, quote '$'.
2199 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2202 # Find the build, host, and target systems.
2203 ac_aux_dir=
2204 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2205 for ac_t in install-sh install.sh shtool; do
2206 if test -f "$ac_dir/$ac_t"; then
2207 ac_aux_dir=$ac_dir
2208 ac_install_sh="$ac_aux_dir/$ac_t -c"
2209 break 2
2211 done
2212 done
2213 if test -z "$ac_aux_dir"; then
2214 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2217 # These three variables are undocumented and unsupported,
2218 # and are intended to be withdrawn in a future Autoconf release.
2219 # They can cause serious problems if a builder's source tree is in a directory
2220 # whose full name contains unusual characters.
2221 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2222 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2223 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2226 # Make sure we can run config.sub.
2227 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2228 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2231 $as_echo_n "checking build system type... " >&6; }
2232 if test "${ac_cv_build+set}" = set; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 ac_build_alias=$build_alias
2236 test "x$ac_build_alias" = x &&
2237 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2238 test "x$ac_build_alias" = x &&
2239 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2240 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2241 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2245 $as_echo "$ac_cv_build" >&6; }
2246 case $ac_cv_build in
2247 *-*-*) ;;
2248 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2249 esac
2250 build=$ac_cv_build
2251 ac_save_IFS=$IFS; IFS='-'
2252 set x $ac_cv_build
2253 shift
2254 build_cpu=$1
2255 build_vendor=$2
2256 shift; shift
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2259 build_os=$*
2260 IFS=$ac_save_IFS
2261 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2264 case ${build_alias} in
2265 "") build_noncanonical=${build} ;;
2266 *) build_noncanonical=${build_alias} ;;
2267 esac
2271 case ${host_alias} in
2272 "") host_noncanonical=${build_noncanonical} ;;
2273 *) host_noncanonical=${host_alias} ;;
2274 esac
2278 case ${target_alias} in
2279 "") target_noncanonical=${host_noncanonical} ;;
2280 *) target_noncanonical=${target_alias} ;;
2281 esac
2286 test "$host_noncanonical" = "$target_noncanonical" &&
2287 test "$program_prefix$program_suffix$program_transform_name" = \
2288 NONENONEs,x,x, &&
2289 program_transform_name=s,y,y,
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292 $as_echo_n "checking host system type... " >&6; }
2293 if test "${ac_cv_host+set}" = set; then :
2294 $as_echo_n "(cached) " >&6
2295 else
2296 if test "x$host_alias" = x; then
2297 ac_cv_host=$ac_cv_build
2298 else
2299 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305 $as_echo "$ac_cv_host" >&6; }
2306 case $ac_cv_host in
2307 *-*-*) ;;
2308 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2325 $as_echo_n "checking target system type... " >&6; }
2326 if test "${ac_cv_target+set}" = set; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 if test "x$target_alias" = x; then
2330 ac_cv_target=$ac_cv_host
2331 else
2332 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2338 $as_echo "$ac_cv_target" >&6; }
2339 case $ac_cv_target in
2340 *-*-*) ;;
2341 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2342 esac
2343 target=$ac_cv_target
2344 ac_save_IFS=$IFS; IFS='-'
2345 set x $ac_cv_target
2346 shift
2347 target_cpu=$1
2348 target_vendor=$2
2349 shift; shift
2350 # Remember, the first character of IFS is used to create $*,
2351 # except with old shells:
2352 target_os=$*
2353 IFS=$ac_save_IFS
2354 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2357 # The aliases save the names the user supplied, while $host etc.
2358 # will get canonicalized.
2359 test -n "$target_alias" &&
2360 test "$program_prefix$program_suffix$program_transform_name" = \
2361 NONENONEs,x,x, &&
2362 program_prefix=${target_alias}-
2364 test "$program_prefix" != NONE &&
2365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366 # Use a double $ so make ignores it.
2367 test "$program_suffix" != NONE &&
2368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369 # Double any \ or $.
2370 # By default was `s,x,x', remove it if useless.
2371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376 # Get 'install' or 'install-sh' and its variants.
2377 # Find a good install program. We prefer a C program (faster),
2378 # so one script is as good as another. But avoid the broken or
2379 # incompatible versions:
2380 # SysV /etc/install, /usr/sbin/install
2381 # SunOS /usr/etc/install
2382 # IRIX /sbin/install
2383 # AIX /bin/install
2384 # AmigaOS /C/install, which installs bootblocks on floppy discs
2385 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2388 # OS/2's system install, which has a completely different semantic
2389 # ./install, which can be erroneously created by make from ./install.sh.
2390 # Reject install programs that cannot install multiple files.
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2393 if test -z "$INSTALL"; then
2394 if test "${ac_cv_path_install+set}" = set; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
2402 # Account for people who put trailing slashes in PATH elements.
2403 case $as_dir/ in #((
2404 ./ | .// | /[cC]/* | \
2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407 /usr/ucb/* ) ;;
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2415 if test $ac_prog = install &&
2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2417 # AIX install. It has an incompatible calling convention.
2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2423 else
2424 rm -rf conftest.one conftest.two conftest.dir
2425 echo one > conftest.one
2426 echo two > conftest.two
2427 mkdir conftest.dir
2428 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429 test -s conftest.one && test -s conftest.two &&
2430 test -s conftest.dir/conftest.one &&
2431 test -s conftest.dir/conftest.two
2432 then
2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434 break 3
2438 done
2439 done
2441 esac
2443 done
2444 IFS=$as_save_IFS
2446 rm -rf conftest.one conftest.two conftest.dir
2449 if test "${ac_cv_path_install+set}" = set; then
2450 INSTALL=$ac_cv_path_install
2451 else
2452 # As a last resort, use the slow shell script. Don't cache a
2453 # value for INSTALL within a source directory, because that will
2454 # break other packages using the cache if that directory is
2455 # removed, or if the value is a relative name.
2456 INSTALL=$ac_install_sh
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460 $as_echo "$INSTALL" >&6; }
2462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463 # It thinks the first close brace ends the variable substitution.
2464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2471 $as_echo_n "checking whether ln works... " >&6; }
2472 if test "${acx_cv_prog_LN+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 rm -f conftestdata_t
2476 echo >conftestdata_f
2477 if ln conftestdata_f conftestdata_t 2>/dev/null
2478 then
2479 acx_cv_prog_LN=ln
2480 else
2481 acx_cv_prog_LN=no
2483 rm -f conftestdata_f conftestdata_t
2486 if test $acx_cv_prog_LN = no; then
2487 LN="cp"
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2489 $as_echo "no, using $LN" >&6; }
2490 else
2491 LN="$acx_cv_prog_LN"
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493 $as_echo "yes" >&6; }
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2497 $as_echo_n "checking whether ln -s works... " >&6; }
2498 LN_S=$as_ln_s
2499 if test "$LN_S" = "ln -s"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2501 $as_echo "yes" >&6; }
2502 else
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2504 $as_echo "no, using $LN_S" >&6; }
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2509 if test "${ac_cv_path_SED+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2513 for ac_i in 1 2 3 4 5 6 7; do
2514 ac_script="$ac_script$as_nl$ac_script"
2515 done
2516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2517 { ac_script=; unset ac_script;}
2518 if test -z "$SED"; then
2519 ac_path_SED_found=false
2520 # Loop through the user's path and test for each of PROGNAME-LIST
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_prog in sed gsed; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2529 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2530 # Check for GNU ac_path_SED and select it if it is found.
2531 # Check for GNU $ac_path_SED
2532 case `"$ac_path_SED" --version 2>&1` in
2533 *GNU*)
2534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2536 ac_count=0
2537 $as_echo_n 0123456789 >"conftest.in"
2538 while :
2540 cat "conftest.in" "conftest.in" >"conftest.tmp"
2541 mv "conftest.tmp" "conftest.in"
2542 cp "conftest.in" "conftest.nl"
2543 $as_echo '' >> "conftest.nl"
2544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2546 as_fn_arith $ac_count + 1 && ac_count=$as_val
2547 if test $ac_count -gt ${ac_path_SED_max-0}; then
2548 # Best one so far, save it but keep looking for a better one
2549 ac_cv_path_SED="$ac_path_SED"
2550 ac_path_SED_max=$ac_count
2552 # 10*(2^10) chars as input seems more than enough
2553 test $ac_count -gt 10 && break
2554 done
2555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2556 esac
2558 $ac_path_SED_found && break 3
2559 done
2560 done
2561 done
2562 IFS=$as_save_IFS
2563 if test -z "$ac_cv_path_SED"; then
2564 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2566 else
2567 ac_cv_path_SED=$SED
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2572 $as_echo "$ac_cv_path_SED" >&6; }
2573 SED="$ac_cv_path_SED"
2574 rm -f conftest.sed
2576 for ac_prog in gawk mawk nawk awk
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579 set dummy $ac_prog; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if test "${ac_cv_prog_AWK+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$AWK"; then
2586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_AWK="$ac_prog"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2605 AWK=$ac_cv_prog_AWK
2606 if test -n "$AWK"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608 $as_echo "$AWK" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2615 test -n "$AWK" && break
2616 done
2619 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2621 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2622 # a relative path.
2623 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2624 INSTALL="${srcpwd}/install-sh -c"
2627 # Set srcdir to "." if that's what it is.
2628 # This is important for multilib support.
2629 pwd=`${PWDCMD-pwd}`
2630 if test "${pwd}" = "${srcpwd}" ; then
2631 srcdir=.
2634 topsrcdir=$srcpwd
2636 extra_host_args=
2638 ### To add a new directory to the tree, first choose whether it is a target
2639 ### or a host dependent tool. Then put it into the appropriate list
2640 ### (library or tools, host or target), doing a dependency sort.
2642 # Subdirs will be configured in the order listed in build_configdirs,
2643 # configdirs, or target_configdirs; see the serialization section below.
2645 # Dependency sorting is only needed when *configuration* must be done in
2646 # a particular order. In all cases a dependency should be specified in
2647 # the Makefile, whether or not it's implicitly specified here.
2649 # Double entries in build_configdirs, configdirs, or target_configdirs may
2650 # cause circular dependencies and break everything horribly.
2652 # these library is used by various programs built for the build
2653 # environment
2655 build_libs="build-libiberty"
2657 # these tools are built for the build environment
2658 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2660 # these libraries are used by various programs built for the host environment
2662 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2664 # these tools are built for the host environment
2665 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2666 # know that we are building the simulator.
2667 # binutils, gas and ld appear in that order because it makes sense to run
2668 # "make check" in that particular order.
2669 # If --enable-gold is used, "gold" may replace "ld".
2670 host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
2672 # libgcj represents the runtime libraries only used by gcj.
2673 libgcj="target-libffi \
2674 target-zlib \
2675 target-libjava"
2677 # these libraries are built for the target environment, and are built after
2678 # the host libraries and the host tools (which may be a cross compiler)
2679 # Note that libiberty is not a target library.
2680 target_libraries="target-libgcc \
2681 target-libgloss \
2682 target-newlib \
2683 target-libgomp \
2684 target-libstdc++-v3 \
2685 target-libmudflap \
2686 target-libssp \
2687 target-libquadmath \
2688 target-libgfortran \
2689 target-boehm-gc \
2690 ${libgcj} \
2691 target-libobjc \
2692 target-libada \
2693 target-libgo"
2695 # these tools are built using the target libraries, and are intended to
2696 # run only in the target environment
2698 # note: any program that *uses* libraries that are in the "target_libraries"
2699 # list belongs in this list.
2701 target_tools="target-rda"
2703 ################################################################################
2705 ## All tools belong in one of the four categories, and are assigned above
2706 ## We assign ${configdirs} this way to remove all embedded newlines. This
2707 ## is important because configure will choke if they ever get through.
2708 ## ${configdirs} is directories we build using the host tools.
2709 ## ${target_configdirs} is directories we build using the target tools.
2710 configdirs=`echo ${host_libs} ${host_tools}`
2711 target_configdirs=`echo ${target_libraries} ${target_tools}`
2712 build_configdirs=`echo ${build_libs} ${build_tools}`
2716 ################################################################################
2718 srcname="gnu development package"
2720 # This gets set non-empty for some net releases of packages.
2721 appdirs=""
2723 # Define is_cross_compiler to save on calls to 'test'.
2724 is_cross_compiler=
2725 if test x"${host}" = x"${target}" ; then
2726 is_cross_compiler=no
2727 else
2728 is_cross_compiler=yes
2731 # Find the build and target subdir names.
2733 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2734 # have matching libraries, they should use host libraries: Makefile.tpl
2735 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2736 # However, they still use the build modules, because the corresponding
2737 # host modules (e.g. bison) are only built for the host when bootstrap
2738 # finishes. So:
2739 # - build_subdir is where we find build modules, and never changes.
2740 # - build_libsubdir is where we find build libraries, and can be overridden.
2742 # Prefix 'build-' so this never conflicts with target_subdir.
2743 build_subdir="build-${build_noncanonical}"
2745 # Check whether --with-build-libsubdir was given.
2746 if test "${with_build_libsubdir+set}" = set; then :
2747 withval=$with_build_libsubdir; build_libsubdir="$withval"
2748 else
2749 build_libsubdir="$build_subdir"
2752 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2753 if ( test $srcdir = . && test -d gcc ) \
2754 || test -d $srcdir/../host-${host_noncanonical}; then
2755 host_subdir="host-${host_noncanonical}"
2756 else
2757 host_subdir=.
2759 # No prefix.
2760 target_subdir=${target_noncanonical}
2762 # Be sure to cover against remnants of an in-tree build.
2763 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2764 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2765 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2768 # Skipdirs are removed silently.
2769 skipdirs=
2770 # Noconfigdirs are removed loudly.
2771 noconfigdirs=""
2773 use_gnu_ld=
2774 # Make sure we don't let GNU ld be added if we didn't want it.
2775 if test x$with_gnu_ld = xno ; then
2776 use_gnu_ld=no
2777 noconfigdirs="$noconfigdirs ld gold"
2780 use_gnu_as=
2781 # Make sure we don't let GNU as be added if we didn't want it.
2782 if test x$with_gnu_as = xno ; then
2783 use_gnu_as=no
2784 noconfigdirs="$noconfigdirs gas"
2787 use_included_zlib=
2788 # Make sure we don't let ZLIB be added if we didn't want it.
2789 if test x$with_system_zlib = xyes ; then
2790 use_included_zlib=no
2791 noconfigdirs="$noconfigdirs zlib"
2794 # some tools are so dependent upon X11 that if we're not building with X,
2795 # it's not even worth trying to configure, much less build, that tool.
2797 case ${with_x} in
2798 yes | "") ;; # the default value for this tree is that X11 is available
2800 skipdirs="${skipdirs} tk itcl libgui"
2801 # We won't be able to build gdbtk without X.
2802 enable_gdbtk=no
2804 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2805 esac
2807 # Some are only suitable for cross toolchains.
2808 # Remove these if host=target.
2809 cross_only="target-libgloss target-newlib target-opcodes"
2811 case $is_cross_compiler in
2812 no) skipdirs="${skipdirs} ${cross_only}" ;;
2813 esac
2815 # If both --with-headers and --with-libs are specified, default to
2816 # --without-newlib.
2817 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2818 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2819 if test x"${with_newlib}" = x ; then
2820 with_newlib=no
2824 # Recognize --with-newlib/--without-newlib.
2825 case ${with_newlib} in
2826 no) skipdirs="${skipdirs} target-newlib" ;;
2827 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2828 esac
2830 # Handle --enable-gold, --enable-ld.
2831 # --disable-gold [--enable-ld]
2832 # Build only ld. Default option.
2833 # --enable-gold [--enable-ld]
2834 # Build both gold and ld. Install gold as "ld.gold", install ld
2835 # as "ld.bfd" and "ld".
2836 # --enable-gold=default [--enable-ld]
2837 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2838 # install ld as "ld.bfd".
2839 # --enable-gold[=default] --disable-ld
2840 # Build only gold, which is then installed as both "ld.gold" and "ld".
2841 # --enable-gold --enable-ld=default
2842 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2843 # and ld.bfd).
2844 # In other words, ld is default
2845 # --enable-gold=default --enable-ld=default
2846 # Error.
2848 default_ld=
2849 # Check whether --enable-gold was given.
2850 if test "${enable_gold+set}" = set; then :
2851 enableval=$enable_gold; ENABLE_GOLD=$enableval
2852 else
2853 ENABLE_GOLD=no
2856 case "${ENABLE_GOLD}" in
2857 yes|default)
2858 # Check for ELF target.
2859 is_elf=no
2860 case "${target}" in
2861 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2862 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2863 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2864 | *-*-solaris2* | *-*-nto*)
2865 case "${target}" in
2866 *-*-linux*aout* | *-*-linux*oldld*)
2869 is_elf=yes
2871 esac
2872 esac
2874 if test "$is_elf" = "yes"; then
2875 # Check for target supported by gold.
2876 case "${target}" in
2877 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2878 configdirs="$configdirs gold"
2879 if test x${ENABLE_GOLD} = xdefault; then
2880 default_ld=gold
2882 ENABLE_GOLD=yes
2884 esac
2890 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2892 esac
2894 # Check whether --enable-ld was given.
2895 if test "${enable_ld+set}" = set; then :
2896 enableval=$enable_ld; ENABLE_LD=$enableval
2897 else
2898 ENABLE_LD=yes
2902 case "${ENABLE_LD}" in
2903 default)
2904 if test x${default_ld} != x; then
2905 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2908 yes)
2911 if test x${ENABLE_GOLD} != xyes; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2913 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2915 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2918 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2920 esac
2922 # Configure extra directories which are host specific
2924 case "${host}" in
2925 *-cygwin*)
2926 configdirs="$configdirs libtermcap" ;;
2927 esac
2929 # A target can indicate whether a language isn't supported for some reason.
2930 # Only spaces may be used in this macro; not newlines or tabs.
2931 unsupported_languages=
2933 # Remove more programs from consideration, based on the host or
2934 # target this usually means that a port of the program doesn't
2935 # exist yet.
2937 case "${host}" in
2938 i[3456789]86-*-msdosdjgpp*)
2939 noconfigdirs="$noconfigdirs tcl tk itcl"
2941 esac
2944 # Check whether --enable-libquadmath was given.
2945 if test "${enable_libquadmath+set}" = set; then :
2946 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2947 else
2948 ENABLE_LIBQUADMATH=yes
2951 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2952 noconfigdirs="$noconfigdirs target-libquadmath"
2956 # Check whether --enable-libquadmath-support was given.
2957 if test "${enable_libquadmath_support+set}" = set; then :
2958 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2959 else
2960 ENABLE_LIBQUADMATH_SUPPORT=yes
2963 enable_libquadmath_support=
2964 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2965 enable_libquadmath_support=no
2969 # Check whether --enable-libada was given.
2970 if test "${enable_libada+set}" = set; then :
2971 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2972 else
2973 ENABLE_LIBADA=yes
2976 if test "${ENABLE_LIBADA}" != "yes" ; then
2977 noconfigdirs="$noconfigdirs gnattools"
2980 # Check whether --enable-libssp was given.
2981 if test "${enable_libssp+set}" = set; then :
2982 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2983 else
2984 ENABLE_LIBSSP=yes
2988 # Save it here so that, even in case of --enable-libgcj, if the Java
2989 # front-end isn't enabled, we still get libgcj disabled.
2990 libgcj_saved=$libgcj
2991 case $enable_libgcj in
2992 yes)
2993 # If we reset it here, it won't get added to noconfigdirs in the
2994 # target-specific build rules, so it will be forcibly enabled
2995 # (unless the Java language itself isn't enabled).
2996 libgcj=
2999 # Make sure we get it printed in the list of not supported target libs.
3000 # Don't disable libffi, though, other languages use it.
3001 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3002 # Clear libgcj_saved so that even if java is enabled libffi won't be
3003 # built.
3004 libgcj_saved=
3006 esac
3008 # Check whether --enable-static-libjava was given.
3009 if test "${enable_static_libjava+set}" = set; then :
3010 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3011 else
3012 ENABLE_STATIC_LIBJAVA=no
3015 enable_static_libjava=
3016 if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3017 enable_static_libjava=yes
3020 if test x$enable_static_libjava != xyes ; then
3021 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3025 # Disable libmudflap on some systems.
3026 if test x$enable_libmudflap = x ; then
3027 case "${target}" in
3028 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3029 # Enable libmudflap by default in GNU and friends.
3031 *-*-freebsd*)
3032 # Enable libmudflap by default in FreeBSD.
3035 # Disable it by default everywhere else.
3036 noconfigdirs="$noconfigdirs target-libmudflap"
3038 esac
3041 # Disable libgomp on non POSIX hosted systems.
3042 if test x$enable_libgomp = x ; then
3043 # Enable libgomp by default on hosted POSIX systems.
3044 case "${target}" in
3045 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3047 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3049 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3051 *-*-darwin* | *-*-aix*)
3054 noconfigdirs="$noconfigdirs target-libgomp"
3056 esac
3059 # Disable libssp for some systems.
3060 case "${target}" in
3061 avr-*-*)
3062 # No hosted I/O support.
3063 noconfigdirs="$noconfigdirs target-libssp"
3065 powerpc-*-aix* | rs6000-*-aix*)
3066 noconfigdirs="$noconfigdirs target-libssp"
3068 esac
3070 # Disable libstdc++-v3 for some systems.
3071 case "${target}" in
3072 *-*-vxworks*)
3073 # VxWorks uses the Dinkumware C++ library.
3074 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3076 arm*-wince-pe*)
3077 # the C++ libraries don't build on top of CE's C libraries
3078 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3080 avr-*-*)
3081 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3083 esac
3085 # Disable Fortran for some systems.
3086 case "${target}" in
3087 mmix-*-*)
3088 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3089 unsupported_languages="$unsupported_languages fortran"
3091 esac
3093 # Disable Java if libffi is not supported.
3094 case "${target}" in
3095 alpha*-*-*)
3097 arm*-*-*)
3099 cris-*-*)
3101 frv-*-*)
3103 hppa*-*-linux*)
3105 hppa*-*-hpux*)
3107 i?86-*-*)
3109 ia64*-*-*)
3111 m32r*-*-*)
3113 m68k-*-*)
3115 mips-sgi-irix6.* | mips*-*-rtems*)
3117 mips*-*-linux*)
3119 powerpc*-*-linux*)
3121 powerpc-*-darwin*)
3123 powerpc-*-aix* | rs6000-*-aix*)
3125 powerpc-*-freebsd*)
3127 powerpc64-*-freebsd*)
3129 powerpc*-*-rtems*)
3131 s390-*-* | s390x-*-*)
3133 sh-*-* | sh[34]*-*-*)
3135 sh64-*-* | sh5*-*-*)
3137 sparc*-*-*)
3139 x86_64-*-*)
3141 *-*-*)
3142 unsupported_languages="$unsupported_languages java"
3144 esac
3146 # Disable Java, libgcj or related libraries for some systems.
3147 case "${target}" in
3148 powerpc-*-darwin*)
3150 i[3456789]86-*-darwin*)
3152 x86_64-*-darwin[912]*)
3154 *-*-darwin*)
3155 noconfigdirs="$noconfigdirs ${libgcj}"
3157 *-*-netware*)
3158 noconfigdirs="$noconfigdirs ${libgcj}"
3160 *-*-rtems*)
3161 noconfigdirs="$noconfigdirs ${libgcj}"
3163 *-*-tpf*)
3164 noconfigdirs="$noconfigdirs ${libgcj}"
3166 *-*-uclinux*)
3167 noconfigdirs="$noconfigdirs ${libgcj}"
3169 *-*-vxworks*)
3170 noconfigdirs="$noconfigdirs ${libgcj}"
3172 alpha*-*-*vms*)
3173 noconfigdirs="$noconfigdirs ${libgcj}"
3175 arm-wince-pe)
3176 noconfigdirs="$noconfigdirs ${libgcj}"
3178 arm*-*-symbianelf*)
3179 noconfigdirs="$noconfigdirs ${libgcj}"
3181 bfin-*-*)
3182 noconfigdirs="$noconfigdirs target-boehm-gc"
3184 cris-*-* | crisv32-*-*)
3185 unsupported_languages="$unsupported_languages java"
3186 case "${target}" in
3187 *-*-linux*)
3189 *) # See PR46792 regarding target-libffi.
3190 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3191 esac
3193 hppa*64*-*-linux*)
3194 # In this case, it's because the hppa64-linux target is for
3195 # the kernel only at this point and has no libc, and thus no
3196 # headers, crt*.o, etc., all of which are needed by these.
3197 unsupported_languages="$unsupported_languages java"
3199 hppa*64*-*-hpux*)
3200 noconfigdirs="$noconfigdirs ${libgcj}"
3202 hppa*-hp-hpux11*)
3204 hppa*-*-hpux*)
3205 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3206 # build on HP-UX 10.20.
3207 noconfigdirs="$noconfigdirs ${libgcj}"
3209 ia64*-*-*vms*)
3210 noconfigdirs="$noconfigdirs ${libgcj}"
3212 i[3456789]86-w64-mingw*)
3213 noconfigdirs="$noconfigdirs ${libgcj}"
3215 i[3456789]86-*-mingw*)
3216 noconfigdirs="$noconfigdirs ${libgcj}"
3218 x86_64-*-mingw*)
3219 noconfigdirs="$noconfigdirs ${libgcj}"
3221 mmix-*-*)
3222 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3224 powerpc-*-aix*)
3225 # copied from rs6000-*-* entry
3226 noconfigdirs="$noconfigdirs ${libgcj}"
3228 rs6000-*-aix*)
3229 noconfigdirs="$noconfigdirs ${libgcj}"
3231 mips*-*-irix6*)
3232 # Linking libjava exceeds command-line length limits on at least
3233 # IRIX 6.2, but not on IRIX 6.5.
3234 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3235 # <oldham@codesourcery.com>
3236 noconfigdirs="$noconfigdirs ${libgcj}"
3238 *-*-lynxos*)
3239 noconfigdirs="$noconfigdirs ${libgcj}"
3241 esac
3243 # Default libgloss CPU subdirectory.
3244 libgloss_dir="$target_cpu"
3246 case "${target}" in
3247 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3248 libgloss_dir=wince
3250 arm*-*-*)
3251 libgloss_dir=arm
3253 cris-*-* | crisv32-*-*)
3254 libgloss_dir=cris
3256 hppa*-*-*)
3257 libgloss_dir=pa
3259 i[3456789]86-*-*)
3260 libgloss_dir=i386
3262 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3263 libgloss_dir=m68hc11
3265 m68*-*-* | fido-*-*)
3266 libgloss_dir=m68k
3268 mips*-*-*)
3269 libgloss_dir=mips
3271 powerpc*-*-*)
3272 libgloss_dir=rs6000
3274 sparc*-*-*)
3275 libgloss_dir=sparc
3277 esac
3279 # Disable newlib and libgloss for various target OSes.
3280 case "${target}" in
3281 alpha*-dec-osf*)
3282 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3284 i[3456789]86-*-linux*)
3285 # This section makes it possible to build newlib natively on linux.
3286 # If we are using a cross compiler then don't configure newlib.
3287 if test x${is_cross_compiler} != xno ; then
3288 noconfigdirs="$noconfigdirs target-newlib"
3290 noconfigdirs="$noconfigdirs target-libgloss"
3291 # If we are not using a cross compiler, do configure newlib.
3292 # Note however, that newlib will only be configured in this situation
3293 # if the --with-newlib option has been given, because otherwise
3294 # 'target-newlib' will appear in skipdirs.
3296 i[3456789]86-*-rdos*)
3297 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3299 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3300 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3302 sparc-*-sunos4*)
3303 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3305 *-*-aix*)
3306 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3308 *-*-beos*)
3309 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3311 *-*-chorusos)
3312 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3314 *-*-dragonfly*)
3315 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3317 *-*-freebsd*)
3318 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3320 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3321 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3323 *-*-lynxos*)
3324 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3326 *-*-mingw*)
3327 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3329 *-*-netbsd*)
3330 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3332 *-*-netware*)
3333 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3335 *-*-tpf*)
3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3338 *-*-uclinux*)
3339 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3341 *-*-vxworks*)
3342 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3344 esac
3346 case "${target}" in
3347 *-*-chorusos)
3349 powerpc-*-darwin*)
3350 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3351 noconfigdirs="$noconfigdirs sim target-rda"
3353 i[3456789]86-*-darwin*)
3354 noconfigdirs="$noconfigdirs ld gprof"
3355 noconfigdirs="$noconfigdirs sim target-rda"
3357 x86_64-*-darwin[912]*)
3358 noconfigdirs="$noconfigdirs ld gas gprof"
3359 noconfigdirs="$noconfigdirs sim target-rda"
3361 *-*-darwin*)
3362 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3363 noconfigdirs="$noconfigdirs sim target-rda"
3365 *-*-dragonfly*)
3367 *-*-freebsd*)
3368 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3369 && test -f /usr/local/include/gmp.h; then
3370 with_gmp=/usr/local
3373 *-*-kaos*)
3374 # Remove unsupported stuff on all kaOS configurations.
3375 noconfigdirs="$noconfigdirs target-libgloss"
3377 *-*-netbsd*)
3379 *-*-netware*)
3381 *-*-rtems*)
3382 noconfigdirs="$noconfigdirs target-libgloss"
3384 # The tpf target doesn't support gdb yet.
3385 *-*-tpf*)
3386 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3388 *-*-uclinux*)
3389 noconfigdirs="$noconfigdirs target-rda"
3391 *-*-vxworks*)
3393 alpha*-dec-osf*)
3394 # ld works, but does not support shared libraries.
3395 # gas doesn't generate exception information.
3396 noconfigdirs="$noconfigdirs gas ld"
3398 alpha*-*-*vms*)
3399 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3401 alpha*-*-*)
3402 # newlib is not 64 bit ready
3403 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3405 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3406 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3408 arc-*-*)
3409 noconfigdirs="$noconfigdirs target-libgloss"
3411 arm-*-pe*)
3412 noconfigdirs="$noconfigdirs target-libgloss"
3414 arm-*-riscix*)
3415 noconfigdirs="$noconfigdirs ld target-libgloss"
3417 c4x-*-* | tic4x-*-*)
3418 noconfigdirs="$noconfigdirs target-libgloss"
3420 tic54x-*-*)
3421 noconfigdirs="$noconfigdirs target-libgloss gdb"
3423 cr16-*-*)
3424 noconfigdirs="$noconfigdirs gdb"
3426 d10v-*-*)
3427 noconfigdirs="$noconfigdirs target-libgloss"
3429 d30v-*-*)
3430 noconfigdirs="$noconfigdirs gdb"
3432 fr30-*-elf*)
3433 noconfigdirs="$noconfigdirs gdb"
3435 moxie-*-*)
3436 noconfigdirs="$noconfigdirs gprof"
3438 h8300*-*-*)
3439 noconfigdirs="$noconfigdirs target-libgloss"
3441 h8500-*-*)
3442 noconfigdirs="$noconfigdirs target-libgloss"
3444 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3446 hppa*64*-*-linux*)
3448 hppa*-*-linux*)
3450 hppa*-*-*elf* | \
3451 hppa*-*-lites* | \
3452 hppa*-*-openbsd* | \
3453 hppa*64*-*-*)
3455 hppa*-hp-hpux11*)
3456 noconfigdirs="$noconfigdirs ld"
3458 hppa*-*-pro*)
3460 hppa*-*-*)
3461 noconfigdirs="$noconfigdirs ld"
3463 i960-*-*)
3464 noconfigdirs="$noconfigdirs gdb"
3466 ia64*-*-elf*)
3467 # No gdb support yet.
3468 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3470 ia64*-**-hpux*)
3471 # No ld support yet.
3472 noconfigdirs="$noconfigdirs libgui itcl ld"
3474 ia64*-*-*vms*)
3475 # No gdb or ld support yet.
3476 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
3478 i[3456789]86-w64-mingw*)
3480 i[3456789]86-*-mingw*)
3481 target_configdirs="$target_configdirs target-winsup"
3483 *-*-cygwin*)
3484 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3485 noconfigdirs="$noconfigdirs target-libgloss"
3486 # always build newlib if winsup directory is present.
3487 if test -d "$srcdir/winsup/cygwin"; then
3488 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3489 elif test -d "$srcdir/newlib"; then
3490 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3493 i[3456789]86-*-pe)
3494 noconfigdirs="$noconfigdirs target-libgloss"
3496 i[3456789]86-*-sco3.2v5*)
3497 # The linker does not yet know about weak symbols in COFF,
3498 # and is not configured to handle mixed ELF and COFF.
3499 noconfigdirs="$noconfigdirs ld target-libgloss"
3501 i[3456789]86-*-sco*)
3502 noconfigdirs="$noconfigdirs gprof target-libgloss"
3504 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3505 noconfigdirs="$noconfigdirs target-libgloss"
3507 i[3456789]86-*-sysv4*)
3508 noconfigdirs="$noconfigdirs target-libgloss"
3510 i[3456789]86-*-beos*)
3511 noconfigdirs="$noconfigdirs gdb"
3513 i[3456789]86-*-rdos*)
3514 noconfigdirs="$noconfigdirs gdb"
3516 mmix-*-*)
3517 noconfigdirs="$noconfigdirs gdb"
3519 mt-*-*)
3520 noconfigdirs="$noconfigdirs sim"
3522 powerpc-*-aix*)
3523 # copied from rs6000-*-* entry
3524 noconfigdirs="$noconfigdirs gprof"
3526 powerpc*-*-winnt* | powerpc*-*-pe*)
3527 target_configdirs="$target_configdirs target-winsup"
3528 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3529 # always build newlib.
3530 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3532 # This is temporary until we can link against shared libraries
3533 powerpcle-*-solaris*)
3534 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3536 powerpc-*-beos*)
3537 noconfigdirs="$noconfigdirs gdb"
3539 rs6000-*-lynxos*)
3540 noconfigdirs="$noconfigdirs gprof"
3542 rs6000-*-aix*)
3543 noconfigdirs="$noconfigdirs gprof"
3545 rs6000-*-*)
3546 noconfigdirs="$noconfigdirs gprof"
3548 m68k-apollo-*)
3549 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3551 microblaze*)
3552 noconfigdirs="$noconfigdirs gprof"
3554 mips*-sde-elf*)
3555 if test x$with_newlib = xyes; then
3556 noconfigdirs="$noconfigdirs gprof"
3559 mips*-*-irix5*)
3560 noconfigdirs="$noconfigdirs gprof target-libgloss"
3562 mips*-*-irix6*)
3563 noconfigdirs="$noconfigdirs gprof target-libgloss"
3565 mips*-*-bsd*)
3566 noconfigdirs="$noconfigdirs gprof target-libgloss"
3568 mips*-*-linux*)
3570 mips*-*-*)
3571 noconfigdirs="$noconfigdirs gprof"
3573 sh-*-* | sh64-*-*)
3574 case "${target}" in
3575 sh*-*-elf)
3578 noconfigdirs="$noconfigdirs target-libgloss" ;;
3579 esac
3581 sparc-*-sunos4*)
3582 if test x${is_cross_compiler} = xno ; then
3583 use_gnu_ld=no
3586 tic6x-*-*)
3587 noconfigdirs="$noconfigdirs gdb sim"
3589 tilepro-*-* | tilegx-*-*)
3590 noconfigdirs="$noconfigdirs sim"
3592 v810-*-*)
3593 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3595 vax-*-*)
3596 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3598 esac
3600 # If we aren't building newlib, then don't build libgloss, since libgloss
3601 # depends upon some newlib header files.
3602 case "${noconfigdirs}" in
3603 *target-libgloss*) ;;
3604 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3605 esac
3607 # Work in distributions that contain no compiler tools, like Autoconf.
3608 host_makefile_frag=/dev/null
3609 if test -d ${srcdir}/config ; then
3610 case "${host}" in
3611 i[3456789]86-*-msdosdjgpp*)
3612 host_makefile_frag="config/mh-djgpp"
3614 *-cygwin*)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3617 $as_echo_n "checking to see if cat works as expected... " >&6; }
3618 echo a >cygwin-cat-check
3619 if test `cat cygwin-cat-check` = a ; then
3620 rm cygwin-cat-check
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3622 $as_echo "yes" >&6; }
3623 else
3624 rm cygwin-cat-check
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3627 as_fn_error "The cat command does not ignore carriage return characters.
3628 Please either mount the build directory in binary mode or run the following
3629 commands before running any configure script:
3630 set -o igncr
3631 export SHELLOPTS
3632 " "$LINENO" 5
3635 host_makefile_frag="config/mh-cygwin"
3637 *-mingw*)
3638 host_makefile_frag="config/mh-mingw"
3640 *-interix*)
3641 host_makefile_frag="config/mh-interix"
3643 hppa*-hp-hpux10*)
3644 host_makefile_frag="config/mh-pa-hpux10"
3646 hppa*-hp-hpux*)
3647 host_makefile_frag="config/mh-pa"
3649 hppa*-*)
3650 host_makefile_frag="config/mh-pa"
3652 *-*-darwin*)
3653 host_makefile_frag="config/mh-darwin"
3655 powerpc-*-aix*)
3656 host_makefile_frag="config/mh-ppc-aix"
3658 rs6000-*-aix*)
3659 host_makefile_frag="config/mh-ppc-aix"
3661 esac
3664 if test "${build}" != "${host}" ; then
3665 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3666 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3667 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3668 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3669 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3670 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3671 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3672 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3673 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3674 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3675 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3676 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3677 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3678 else
3679 AR_FOR_BUILD="\$(AR)"
3680 AS_FOR_BUILD="\$(AS)"
3681 CC_FOR_BUILD="\$(CC)"
3682 CXX_FOR_BUILD="\$(CXX)"
3683 GCJ_FOR_BUILD="\$(GCJ)"
3684 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3685 GOC_FOR_BUILD="\$(GOC)"
3686 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3687 LD_FOR_BUILD="\$(LD)"
3688 NM_FOR_BUILD="\$(NM)"
3689 RANLIB_FOR_BUILD="\$(RANLIB)"
3690 WINDRES_FOR_BUILD="\$(WINDRES)"
3691 WINDMC_FOR_BUILD="\$(WINDMC)"
3694 ac_ext=c
3695 ac_cpp='$CPP $CPPFLAGS'
3696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 if test -n "$ac_tool_prefix"; then
3700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_CC+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3723 IFS=$as_save_IFS
3727 CC=$ac_cv_prog_CC
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3731 else
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3738 if test -z "$ac_cv_prog_CC"; then
3739 ac_ct_CC=$CC
3740 # Extract the first word of "gcc", so it can be a program name with args.
3741 set dummy gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$ac_ct_CC"; then
3748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_ac_ct_CC="gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3763 IFS=$as_save_IFS
3767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3768 if test -n "$ac_ct_CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3770 $as_echo "$ac_ct_CC" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3776 if test "x$ac_ct_CC" = x; then
3777 CC=""
3778 else
3779 case $cross_compiling:$ac_tool_warned in
3780 yes:)
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3784 esac
3785 CC=$ac_ct_CC
3787 else
3788 CC="$ac_cv_prog_CC"
3791 if test -z "$CC"; then
3792 if test -n "$ac_tool_prefix"; then
3793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3794 set dummy ${ac_tool_prefix}cc; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if test "${ac_cv_prog_CC+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 ac_cv_prog_CC="${ac_tool_prefix}cc"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3814 done
3815 done
3816 IFS=$as_save_IFS
3820 CC=$ac_cv_prog_CC
3821 if test -n "$CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3823 $as_echo "$CC" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3832 if test -z "$CC"; then
3833 # Extract the first word of "cc", so it can be a program name with args.
3834 set dummy cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if test "${ac_cv_prog_CC+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843 ac_prog_rejected=no
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3852 ac_prog_rejected=yes
3853 continue
3855 ac_cv_prog_CC="cc"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 break 2
3859 done
3860 done
3861 IFS=$as_save_IFS
3863 if test $ac_prog_rejected = yes; then
3864 # We found a bogon in the path, so make sure we never use it.
3865 set dummy $ac_cv_prog_CC
3866 shift
3867 if test $# != 0; then
3868 # We chose a different compiler from the bogus one.
3869 # However, it has the same basename, so the bogon will be chosen
3870 # first if we set CC to just the basename; use the full file name.
3871 shift
3872 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3877 CC=$ac_cv_prog_CC
3878 if test -n "$CC"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880 $as_echo "$CC" >&6; }
3881 else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3888 if test -z "$CC"; then
3889 if test -n "$ac_tool_prefix"; then
3890 for ac_prog in cl.exe
3892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_CC+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 CC=$ac_cv_prog_CC
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$CC" && break
3930 done
3932 if test -z "$CC"; then
3933 ac_ct_CC=$CC
3934 for ac_prog in cl.exe
3936 # Extract the first word of "$ac_prog", so it can be a program name with args.
3937 set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$ac_ct_CC"; then
3944 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3964 if test -n "$ac_ct_CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3966 $as_echo "$ac_ct_CC" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3973 test -n "$ac_ct_CC" && break
3974 done
3976 if test "x$ac_ct_CC" = x; then
3977 CC=""
3978 else
3979 case $cross_compiling:$ac_tool_warned in
3980 yes:)
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3983 ac_tool_warned=yes ;;
3984 esac
3985 CC=$ac_ct_CC
3992 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error "no acceptable C compiler found in \$PATH
3995 See \`config.log' for more details." "$LINENO" 5; }
3997 # Provide some information about the compiler.
3998 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3999 set X $ac_compile
4000 ac_compiler=$2
4001 for ac_option in --version -v -V -qversion; do
4002 { { ac_try="$ac_compiler $ac_option >&5"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4010 ac_status=$?
4011 if test -s conftest.err; then
4012 sed '10a\
4013 ... rest of stderr output deleted ...
4014 10q' conftest.err >conftest.er1
4015 cat conftest.er1 >&5
4016 rm -f conftest.er1 conftest.err
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 done
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 main ()
4030 return 0;
4032 _ACEOF
4033 ac_clean_files_save=$ac_clean_files
4034 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4035 # Try to create an executable without -o first, disregard a.out.
4036 # It will help us diagnose broken compilers, and finding out an intuition
4037 # of exeext.
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4039 $as_echo_n "checking for C compiler default output file name... " >&6; }
4040 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4042 # The possible output files:
4043 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4045 ac_rmfiles=
4046 for ac_file in $ac_files
4048 case $ac_file in
4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4050 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4051 esac
4052 done
4053 rm -f $ac_rmfiles
4055 if { { ac_try="$ac_link_default"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link_default") 2>&5
4063 ac_status=$?
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }; then :
4066 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4067 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4068 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4069 # so that the user can short-circuit this test for compilers unknown to
4070 # Autoconf.
4071 for ac_file in $ac_files ''
4073 test -f "$ac_file" || continue
4074 case $ac_file in
4075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4077 [ab].out )
4078 # We found the default executable, but exeext='' is most
4079 # certainly right.
4080 break;;
4081 *.* )
4082 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4083 then :; else
4084 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4086 # We set ac_cv_exeext here because the later test for it is not
4087 # safe: cross compilers may not add the suffix if given an `-o'
4088 # argument, so we may need to know it at that point already.
4089 # Even if this section looks crufty: it has the advantage of
4090 # actually working.
4091 break;;
4093 break;;
4094 esac
4095 done
4096 test "$ac_cv_exeext" = no && ac_cv_exeext=
4098 else
4099 ac_file=''
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4102 $as_echo "$ac_file" >&6; }
4103 if test -z "$ac_file"; then :
4104 $as_echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 { as_fn_set_status 77
4110 as_fn_error "C compiler cannot create executables
4111 See \`config.log' for more details." "$LINENO" 5; }; }
4113 ac_exeext=$ac_cv_exeext
4115 # Check that the compiler produces executables we can run. If not, either
4116 # the compiler is broken, or we cross compile.
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4118 $as_echo_n "checking whether the C compiler works... " >&6; }
4119 # If not cross compiling, check that we can run a simple program.
4120 if test "$cross_compiling" != yes; then
4121 if { ac_try='./$ac_file'
4122 { { case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 $as_echo "$ac_try_echo"; } >&5
4128 (eval "$ac_try") 2>&5
4129 ac_status=$?
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }; }; then
4132 cross_compiling=no
4133 else
4134 if test "$cross_compiling" = maybe; then
4135 cross_compiling=yes
4136 else
4137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4139 as_fn_error "cannot run C compiled programs.
4140 If you meant to cross compile, use \`--host'.
4141 See \`config.log' for more details." "$LINENO" 5; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4146 $as_echo "yes" >&6; }
4148 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4149 ac_clean_files=$ac_clean_files_save
4150 # Check that the compiler produces executables we can run. If not, either
4151 # the compiler is broken, or we cross compile.
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4153 $as_echo_n "checking whether we are cross compiling... " >&6; }
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4155 $as_echo "$cross_compiling" >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4158 $as_echo_n "checking for suffix of executables... " >&6; }
4159 if { { ac_try="$ac_link"
4160 case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165 $as_echo "$ac_try_echo"; } >&5
4166 (eval "$ac_link") 2>&5
4167 ac_status=$?
4168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4169 test $ac_status = 0; }; then :
4170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4172 # work properly (i.e., refer to `conftest.exe'), while it won't with
4173 # `rm'.
4174 for ac_file in conftest.exe conftest conftest.*; do
4175 test -f "$ac_file" || continue
4176 case $ac_file in
4177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4178 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4179 break;;
4180 * ) break;;
4181 esac
4182 done
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "cannot compute suffix of executables: cannot compile and link
4187 See \`config.log' for more details." "$LINENO" 5; }
4189 rm -f conftest$ac_cv_exeext
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4191 $as_echo "$ac_cv_exeext" >&6; }
4193 rm -f conftest.$ac_ext
4194 EXEEXT=$ac_cv_exeext
4195 ac_exeext=$EXEEXT
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4197 $as_echo_n "checking for suffix of object files... " >&6; }
4198 if test "${ac_cv_objext+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4205 main ()
4209 return 0;
4211 _ACEOF
4212 rm -f conftest.o conftest.obj
4213 if { { ac_try="$ac_compile"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_compile") 2>&5
4221 ac_status=$?
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; then :
4224 for ac_file in conftest.o conftest.obj conftest.*; do
4225 test -f "$ac_file" || continue;
4226 case $ac_file in
4227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4229 break;;
4230 esac
4231 done
4232 else
4233 $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4238 as_fn_error "cannot compute suffix of object files: cannot compile
4239 See \`config.log' for more details." "$LINENO" 5; }
4241 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4244 $as_echo "$ac_cv_objext" >&6; }
4245 OBJEXT=$ac_cv_objext
4246 ac_objext=$OBJEXT
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4248 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4249 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4256 main ()
4258 #ifndef __GNUC__
4259 choke me
4260 #endif
4263 return 0;
4265 _ACEOF
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_compiler_gnu=yes
4268 else
4269 ac_compiler_gnu=no
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4276 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4277 if test $ac_compiler_gnu = yes; then
4278 GCC=yes
4279 else
4280 GCC=
4282 ac_test_CFLAGS=${CFLAGS+set}
4283 ac_save_CFLAGS=$CFLAGS
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4285 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4286 if test "${ac_cv_prog_cc_g+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 ac_save_c_werror_flag=$ac_c_werror_flag
4290 ac_c_werror_flag=yes
4291 ac_cv_prog_cc_g=no
4292 CFLAGS="-g"
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4297 main ()
4301 return 0;
4303 _ACEOF
4304 if ac_fn_c_try_compile "$LINENO"; then :
4305 ac_cv_prog_cc_g=yes
4306 else
4307 CFLAGS=""
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4312 main ()
4316 return 0;
4318 _ACEOF
4319 if ac_fn_c_try_compile "$LINENO"; then :
4321 else
4322 ac_c_werror_flag=$ac_save_c_werror_flag
4323 CFLAGS="-g"
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4328 main ()
4332 return 0;
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336 ac_cv_prog_cc_g=yes
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_c_werror_flag=$ac_save_c_werror_flag
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4346 $as_echo "$ac_cv_prog_cc_g" >&6; }
4347 if test "$ac_test_CFLAGS" = set; then
4348 CFLAGS=$ac_save_CFLAGS
4349 elif test $ac_cv_prog_cc_g = yes; then
4350 if test "$GCC" = yes; then
4351 CFLAGS="-g -O2"
4352 else
4353 CFLAGS="-g"
4355 else
4356 if test "$GCC" = yes; then
4357 CFLAGS="-O2"
4358 else
4359 CFLAGS=
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4363 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4364 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 ac_cv_prog_cc_c89=no
4368 ac_save_CC=$CC
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <stdarg.h>
4372 #include <stdio.h>
4373 #include <sys/types.h>
4374 #include <sys/stat.h>
4375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4376 struct buf { int x; };
4377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4378 static char *e (p, i)
4379 char **p;
4380 int i;
4382 return p[i];
4384 static char *f (char * (*g) (char **, int), char **p, ...)
4386 char *s;
4387 va_list v;
4388 va_start (v,p);
4389 s = g (p, va_arg (v,int));
4390 va_end (v);
4391 return s;
4394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4395 function prototypes and stuff, but not '\xHH' hex character constants.
4396 These don't provoke an error unfortunately, instead are silently treated
4397 as 'x'. The following induces an error, until -std is added to get
4398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4399 array size at least. It's necessary to write '\x00'==0 to get something
4400 that's true only with -std. */
4401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4404 inside strings and character constants. */
4405 #define FOO(x) 'x'
4406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4408 int test (int i, double x);
4409 struct s1 {int (*f) (int a);};
4410 struct s2 {int (*f) (double a);};
4411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4412 int argc;
4413 char **argv;
4415 main ()
4417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4419 return 0;
4421 _ACEOF
4422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4425 CC="$ac_save_CC $ac_arg"
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 ac_cv_prog_cc_c89=$ac_arg
4429 rm -f core conftest.err conftest.$ac_objext
4430 test "x$ac_cv_prog_cc_c89" != "xno" && break
4431 done
4432 rm -f conftest.$ac_ext
4433 CC=$ac_save_CC
4436 # AC_CACHE_VAL
4437 case "x$ac_cv_prog_cc_c89" in
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4440 $as_echo "none needed" >&6; } ;;
4441 xno)
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4443 $as_echo "unsupported" >&6; } ;;
4445 CC="$CC $ac_cv_prog_cc_c89"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4447 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4448 esac
4449 if test "x$ac_cv_prog_cc_c89" != xno; then :
4453 ac_ext=c
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459 ac_ext=cpp
4460 ac_cpp='$CXXCPP $CPPFLAGS'
4461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4464 if test -z "$CXX"; then
4465 if test -n "$CCC"; then
4466 CXX=$CCC
4467 else
4468 if test -n "$ac_tool_prefix"; then
4469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if test "${ac_cv_prog_CXX+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -n "$CXX"; then
4479 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4494 IFS=$as_save_IFS
4498 CXX=$ac_cv_prog_CXX
4499 if test -n "$CXX"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4501 $as_echo "$CXX" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4508 test -n "$CXX" && break
4509 done
4511 if test -z "$CXX"; then
4512 ac_ct_CXX=$CXX
4513 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4515 # Extract the first word of "$ac_prog", so it can be a program name with args.
4516 set dummy $ac_prog; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -n "$ac_ct_CXX"; then
4523 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_ac_ct_CXX="$ac_prog"
4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4538 IFS=$as_save_IFS
4542 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4543 if test -n "$ac_ct_CXX"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4545 $as_echo "$ac_ct_CXX" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4552 test -n "$ac_ct_CXX" && break
4553 done
4555 if test "x$ac_ct_CXX" = x; then
4556 CXX="g++"
4557 else
4558 case $cross_compiling:$ac_tool_warned in
4559 yes:)
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4562 ac_tool_warned=yes ;;
4563 esac
4564 CXX=$ac_ct_CXX
4570 # Provide some information about the compiler.
4571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4572 set X $ac_compile
4573 ac_compiler=$2
4574 for ac_option in --version -v -V -qversion; do
4575 { { ac_try="$ac_compiler $ac_option >&5"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4583 ac_status=$?
4584 if test -s conftest.err; then
4585 sed '10a\
4586 ... rest of stderr output deleted ...
4587 10q' conftest.err >conftest.er1
4588 cat conftest.er1 >&5
4589 rm -f conftest.er1 conftest.err
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }
4593 done
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4596 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4597 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4604 main ()
4606 #ifndef __GNUC__
4607 choke me
4608 #endif
4611 return 0;
4613 _ACEOF
4614 if ac_fn_cxx_try_compile "$LINENO"; then :
4615 ac_compiler_gnu=yes
4616 else
4617 ac_compiler_gnu=no
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4624 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4625 if test $ac_compiler_gnu = yes; then
4626 GXX=yes
4627 else
4628 GXX=
4630 ac_test_CXXFLAGS=${CXXFLAGS+set}
4631 ac_save_CXXFLAGS=$CXXFLAGS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4633 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4634 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4638 ac_cxx_werror_flag=yes
4639 ac_cv_prog_cxx_g=no
4640 CXXFLAGS="-g"
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4645 main ()
4649 return 0;
4651 _ACEOF
4652 if ac_fn_cxx_try_compile "$LINENO"; then :
4653 ac_cv_prog_cxx_g=yes
4654 else
4655 CXXFLAGS=""
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4660 main ()
4664 return 0;
4666 _ACEOF
4667 if ac_fn_cxx_try_compile "$LINENO"; then :
4669 else
4670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4671 CXXFLAGS="-g"
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4676 main ()
4680 return 0;
4682 _ACEOF
4683 if ac_fn_cxx_try_compile "$LINENO"; then :
4684 ac_cv_prog_cxx_g=yes
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4694 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4695 if test "$ac_test_CXXFLAGS" = set; then
4696 CXXFLAGS=$ac_save_CXXFLAGS
4697 elif test $ac_cv_prog_cxx_g = yes; then
4698 if test "$GXX" = yes; then
4699 CXXFLAGS="-g -O2"
4700 else
4701 CXXFLAGS="-g"
4703 else
4704 if test "$GXX" = yes; then
4705 CXXFLAGS="-O2"
4706 else
4707 CXXFLAGS=
4710 ac_ext=c
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717 # We must set the default linker to the linker used by gcc for the correct
4718 # operation of libtool. If LD is not defined and we are using gcc, try to
4719 # set the LD default to the ld used by gcc.
4720 if test -z "$LD"; then
4721 if test "$GCC" = yes; then
4722 case $build in
4723 *-*-mingw*)
4724 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4726 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4727 esac
4728 case $gcc_prog_ld in
4729 # Accept absolute paths.
4730 [\\/]* | [A-Za-z]:[\\/]*)
4731 LD="$gcc_prog_ld" ;;
4732 esac
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$GNATBIND"; then
4748 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4761 done
4762 done
4763 IFS=$as_save_IFS
4767 GNATBIND=$ac_cv_prog_GNATBIND
4768 if test -n "$GNATBIND"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4770 $as_echo "$GNATBIND" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4778 if test -z "$ac_cv_prog_GNATBIND"; then
4779 ac_ct_GNATBIND=$GNATBIND
4780 # Extract the first word of "gnatbind", so it can be a program name with args.
4781 set dummy gnatbind; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$ac_ct_GNATBIND"; then
4788 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4808 if test -n "$ac_ct_GNATBIND"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4810 $as_echo "$ac_ct_GNATBIND" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4816 if test "x$ac_ct_GNATBIND" = x; then
4817 GNATBIND="no"
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820 yes:)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4823 ac_tool_warned=yes ;;
4824 esac
4825 GNATBIND=$ac_ct_GNATBIND
4827 else
4828 GNATBIND="$ac_cv_prog_GNATBIND"
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4833 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$GNATMAKE"; then
4840 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4853 done
4854 done
4855 IFS=$as_save_IFS
4859 GNATMAKE=$ac_cv_prog_GNATMAKE
4860 if test -n "$GNATMAKE"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4862 $as_echo "$GNATMAKE" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4870 if test -z "$ac_cv_prog_GNATMAKE"; then
4871 ac_ct_GNATMAKE=$GNATMAKE
4872 # Extract the first word of "gnatmake", so it can be a program name with args.
4873 set dummy gnatmake; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$ac_ct_GNATMAKE"; then
4880 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4893 done
4894 done
4895 IFS=$as_save_IFS
4899 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4900 if test -n "$ac_ct_GNATMAKE"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4902 $as_echo "$ac_ct_GNATMAKE" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4908 if test "x$ac_ct_GNATMAKE" = x; then
4909 GNATMAKE="no"
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915 ac_tool_warned=yes ;;
4916 esac
4917 GNATMAKE=$ac_ct_GNATMAKE
4919 else
4920 GNATMAKE="$ac_cv_prog_GNATMAKE"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4924 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4925 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 cat >conftest.adb <<EOF
4929 procedure conftest is begin null; end conftest;
4931 acx_cv_cc_gcc_supports_ada=no
4932 # There is a bug in old released versions of GCC which causes the
4933 # driver to exit successfully when the appropriate language module
4934 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4935 # Therefore we must check for the error message as well as an
4936 # unsuccessful exit.
4937 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4938 # given a .adb file, but produce no object file. So we must check
4939 # if an object file was really produced to guard against this.
4940 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
4941 if test x"$errors" = x && test -f conftest.$ac_objext; then
4942 acx_cv_cc_gcc_supports_ada=yes
4944 rm -f conftest.*
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4947 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4949 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4950 have_gnat=yes
4951 else
4952 have_gnat=no
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4956 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4957 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 echo abfoo >t1
4961 echo cdfoo >t2
4962 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4963 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4964 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4966 else
4967 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4970 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4971 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4973 else
4974 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4977 rm t1 t2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4981 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
4982 do_compare="$gcc_cv_prog_cmp_skip"
4986 # Check whether --enable-bootstrap was given.
4987 if test "${enable_bootstrap+set}" = set; then :
4988 enableval=$enable_bootstrap;
4989 else
4990 enable_bootstrap=default
4994 # Issue errors and warnings for invalid/strange bootstrap combinations.
4995 case "$configdirs" in
4996 *gcc*) have_compiler=yes ;;
4997 *) have_compiler=no ;;
4998 esac
5000 case "$have_compiler:$host:$target:$enable_bootstrap" in
5001 *:*:*:no) ;;
5003 # Default behavior. Enable bootstrap if we have a compiler
5004 # and we are in a native configuration.
5005 yes:$build:$build:default)
5006 enable_bootstrap=yes ;;
5008 *:*:*:default)
5009 enable_bootstrap=no ;;
5011 # We have a compiler and we are in a native configuration, bootstrap is ok
5012 yes:$build:$build:yes)
5015 # Other configurations, but we have a compiler. Assume the user knows
5016 # what he's doing.
5017 yes:*:*:yes)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5019 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5022 # No compiler: if they passed --enable-bootstrap explicitly, fail
5023 no:*:*:yes)
5024 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5026 # Fail if wrong command line
5028 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5030 esac
5032 # See if we are building gcc with C++.
5033 # Check whether --enable-build-with-cxx was given.
5034 if test "${enable_build_with_cxx+set}" = set; then :
5035 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5036 else
5037 ENABLE_BUILD_WITH_CXX=no
5041 # Build stage1 with C and build stages 2 and 3 with C++.
5042 # Check whether --enable-build-poststage1-with-cxx was given.
5043 if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5044 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5045 else
5046 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5050 # Used for setting $lt_cv_objdir
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5052 $as_echo_n "checking for objdir... " >&6; }
5053 if test "${lt_cv_objdir+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
5055 else
5056 rm -f .libs 2>/dev/null
5057 mkdir .libs 2>/dev/null
5058 if test -d .libs; then
5059 lt_cv_objdir=.libs
5060 else
5061 # MS-DOS does not allow filenames that begin with a dot.
5062 lt_cv_objdir=_libs
5064 rmdir .libs 2>/dev/null
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5067 $as_echo "$lt_cv_objdir" >&6; }
5068 objdir=$lt_cv_objdir
5074 cat >>confdefs.h <<_ACEOF
5075 #define LT_OBJDIR "$lt_cv_objdir/"
5076 _ACEOF
5080 # Check for GMP, MPFR and MPC
5081 gmplibs="-lmpc -lmpfr -lgmp"
5082 gmpinc=
5083 have_gmp=no
5085 # Specify a location for mpc
5086 # check for this first so it ends up on the link line before mpfr.
5088 # Check whether --with-mpc was given.
5089 if test "${with_mpc+set}" = set; then :
5090 withval=$with_mpc;
5094 # Check whether --with-mpc-include was given.
5095 if test "${with_mpc_include+set}" = set; then :
5096 withval=$with_mpc_include;
5100 # Check whether --with-mpc-lib was given.
5101 if test "${with_mpc_lib+set}" = set; then :
5102 withval=$with_mpc_lib;
5106 if test "x$with_mpc" != x; then
5107 gmplibs="-L$with_mpc/lib $gmplibs"
5108 gmpinc="-I$with_mpc/include $gmpinc"
5110 if test "x$with_mpc_include" != x; then
5111 gmpinc="-I$with_mpc_include $gmpinc"
5113 if test "x$with_mpc_lib" != x; then
5114 gmplibs="-L$with_mpc_lib $gmplibs"
5116 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5117 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5118 gmpinc='-I$$s/mpc/src '"$gmpinc"
5119 # Do not test the mpc version. Assume that it is sufficient, since
5120 # it is in the source tree, and the library has not been built yet
5121 # but it would be included on the link line in the version check below
5122 # hence making the test fail.
5123 have_gmp=yes
5126 # Specify a location for mpfr
5127 # check for this first so it ends up on the link line before gmp.
5129 # Check whether --with-mpfr-dir was given.
5130 if test "${with_mpfr_dir+set}" = set; then :
5131 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5132 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5137 # Check whether --with-mpfr was given.
5138 if test "${with_mpfr+set}" = set; then :
5139 withval=$with_mpfr;
5143 # Check whether --with-mpfr-include was given.
5144 if test "${with_mpfr_include+set}" = set; then :
5145 withval=$with_mpfr_include;
5149 # Check whether --with-mpfr-lib was given.
5150 if test "${with_mpfr_lib+set}" = set; then :
5151 withval=$with_mpfr_lib;
5155 if test "x$with_mpfr" != x; then
5156 gmplibs="-L$with_mpfr/lib $gmplibs"
5157 gmpinc="-I$with_mpfr/include $gmpinc"
5159 if test "x$with_mpfr_include" != x; then
5160 gmpinc="-I$with_mpfr_include $gmpinc"
5162 if test "x$with_mpfr_lib" != x; then
5163 gmplibs="-L$with_mpfr_lib $gmplibs"
5165 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5166 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5167 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5168 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5169 # Do not test the mpfr version. Assume that it is sufficient, since
5170 # it is in the source tree, and the library has not been built yet
5171 # but it would be included on the link line in the version check below
5172 # hence making the test fail.
5173 have_gmp=yes
5176 # Specify a location for gmp
5178 # Check whether --with-gmp-dir was given.
5179 if test "${with_gmp_dir+set}" = set; then :
5180 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5181 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5186 # Check whether --with-gmp was given.
5187 if test "${with_gmp+set}" = set; then :
5188 withval=$with_gmp;
5192 # Check whether --with-gmp-include was given.
5193 if test "${with_gmp_include+set}" = set; then :
5194 withval=$with_gmp_include;
5198 # Check whether --with-gmp-lib was given.
5199 if test "${with_gmp_lib+set}" = set; then :
5200 withval=$with_gmp_lib;
5205 if test "x$with_gmp" != x; then
5206 gmplibs="-L$with_gmp/lib $gmplibs"
5207 gmpinc="-I$with_gmp/include $gmpinc"
5209 if test "x$with_gmp_include" != x; then
5210 gmpinc="-I$with_gmp_include $gmpinc"
5212 if test "x$with_gmp_lib" != x; then
5213 gmplibs="-L$with_gmp_lib $gmplibs"
5215 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5216 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5217 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5218 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5219 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5220 # Do not test the gmp version. Assume that it is sufficient, since
5221 # it is in the source tree, and the library has not been built yet
5222 # but it would be included on the link line in the version check below
5223 # hence making the test fail.
5224 have_gmp=yes
5227 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5228 have_gmp=yes
5229 saved_CFLAGS="$CFLAGS"
5230 CFLAGS="$CFLAGS $gmpinc"
5231 # Check for the recommended and required versions of GMP.
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5233 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237 #include "gmp.h"
5239 main ()
5242 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5243 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5244 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5245 choke me
5246 #endif
5249 return 0;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"; then :
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5255 #include <gmp.h>
5257 main ()
5260 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5261 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5262 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5263 choke me
5264 #endif
5267 return 0;
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272 $as_echo "yes" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5275 $as_echo "buggy but acceptable" >&6; }
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }; have_gmp=no
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 # If we have GMP, check the MPFR version.
5285 if test x"$have_gmp" = xyes; then
5286 # Check for the recommended and required versions of MPFR.
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5288 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 #include <gmp.h>
5292 #include <mpfr.h>
5294 main ()
5297 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5298 choke me
5299 #endif
5302 return 0;
5304 _ACEOF
5305 if ac_fn_c_try_compile "$LINENO"; then :
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 #include <gmp.h>
5309 #include <mpfr.h>
5311 main ()
5314 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5315 choke me
5316 #endif
5319 return 0;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5324 $as_echo "yes" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5327 $as_echo "buggy but acceptable" >&6; }
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }; have_gmp=no
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 # Check for the MPC header version.
5338 if test x"$have_gmp" = xyes ; then
5339 # Check for the recommended and required versions of MPC.
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5341 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <mpc.h>
5346 main ()
5349 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5350 choke me
5351 #endif
5354 return 0;
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5360 #include <mpc.h>
5362 main ()
5365 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5366 choke me
5367 #endif
5370 return 0;
5372 _ACEOF
5373 if ac_fn_c_try_compile "$LINENO"; then :
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5375 $as_echo "yes" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5378 $as_echo "buggy but acceptable" >&6; }
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }; have_gmp=no
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 # Now check the MPFR library.
5389 if test x"$have_gmp" = xyes; then
5390 saved_LIBS="$LIBS"
5391 LIBS="$LIBS $gmplibs"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5393 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 #include <mpc.h>
5398 main ()
5401 mpfr_t n;
5402 mpfr_t x;
5403 mpc_t c;
5404 int t;
5405 mpfr_init (n);
5406 mpfr_init (x);
5407 mpfr_atan2 (n, n, x, GMP_RNDN);
5408 mpfr_erfc (n, x, GMP_RNDN);
5409 mpfr_subnormalize (x, t, GMP_RNDN);
5410 mpfr_clear(n);
5411 mpfr_clear(x);
5412 mpc_init2 (c, 53);
5413 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5414 mpc_cosh (c, c, MPC_RNDNN);
5415 mpc_pow (c, c, c, MPC_RNDNN);
5416 mpc_acosh (c, c, MPC_RNDNN);
5417 mpc_clear (c);
5420 return 0;
5422 _ACEOF
5423 if ac_fn_c_try_link "$LINENO"; then :
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5425 $as_echo "yes" >&6; }
5426 else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }; have_gmp=no
5430 rm -f core conftest.err conftest.$ac_objext \
5431 conftest$ac_exeext conftest.$ac_ext
5432 LIBS="$saved_LIBS"
5435 CFLAGS="$saved_CFLAGS"
5437 # The library versions listed in the error message below should match
5438 # the HARD-minimums enforced above.
5439 if test x$have_gmp != xyes; then
5440 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5441 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5442 their locations. Source code for these libraries can be found at
5443 their respective hosting sites as well as at
5444 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5445 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5446 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5447 make sure that you have installed both the libraries and the header
5448 files. They may be located in separate packages." "$LINENO" 5
5452 # Flags needed for both GMP, MPFR and/or MPC.
5459 # Allow host libstdc++ to be specified for static linking with PPL.
5461 # Check whether --with-host-libstdcxx was given.
5462 if test "${with_host_libstdcxx+set}" = set; then :
5463 withval=$with_host_libstdcxx;
5467 case $with_host_libstdcxx in
5468 no|yes)
5469 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5471 esac
5473 # Linker flags to use for stage1 or when not boostrapping.
5475 # Check whether --with-stage1-ldflags was given.
5476 if test "${with_stage1_ldflags+set}" = set; then :
5477 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5478 stage1_ldflags=
5479 else
5480 stage1_ldflags=$withval
5482 else
5483 stage1_ldflags=
5488 # Libraries to use for stage1 or when not bootstrapping.
5490 # Check whether --with-stage1-libs was given.
5491 if test "${with_stage1_libs+set}" = set; then :
5492 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5493 stage1_libs=
5494 else
5495 stage1_libs=$withval
5497 else
5498 stage1_libs=$with_host_libstdcxx
5503 # Libraries to use for stage2 and later builds. This defaults to the
5504 # argument passed to --with-host-libstdcxx.
5506 # Check whether --with-boot-libs was given.
5507 if test "${with_boot_libs+set}" = set; then :
5508 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5509 poststage1_libs=
5510 else
5511 poststage1_libs=$withval
5513 else
5514 poststage1_libs=$with_host_libstdcxx
5519 # Linker flags to use for stage2 and later builds.
5521 # Check whether --with-boot-ldflags was given.
5522 if test "${with_boot_ldflags+set}" = set; then :
5523 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5524 poststage1_ldflags=
5525 else
5526 poststage1_ldflags=$withval
5528 else
5529 poststage1_ldflags=
5530 # In stages 2 and 3, default to linking libstdc++ and libgcc
5531 # statically. But if the user explicitly specified the libraries to
5532 # use, trust that they are doing what they want.
5533 if test "$poststage1_libs" = ""; then
5534 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5540 # Check for PPL
5541 ppllibs=
5542 pplinc=
5543 pwllib=
5546 # Check whether --with-ppl was given.
5547 if test "${with_ppl+set}" = set; then :
5548 withval=$with_ppl;
5552 # Check whether --with-ppl-include was given.
5553 if test "${with_ppl_include+set}" = set; then :
5554 withval=$with_ppl_include;
5558 # Check whether --with-ppl-lib was given.
5559 if test "${with_ppl_lib+set}" = set; then :
5560 withval=$with_ppl_lib;
5564 # Check whether --enable-ppl-version-check was given.
5565 if test "${enable_ppl_version_check+set}" = set; then :
5566 enableval=$enable_ppl_version_check;
5570 case $with_ppl in
5571 yes | no | "")
5574 ppllibs="-L$with_ppl/lib"
5575 pplinc="-I$with_ppl/include $pplinc"
5576 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5577 with_ppl=yes
5578 else
5579 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5582 esac
5584 if test x"$with_ppl_include" != x; then
5585 pplinc="-I$with_ppl_include $pplinc"
5586 with_ppl=yes
5589 if test "x$with_ppl_lib" != x; then
5590 ppllibs="-L$with_ppl_lib"
5591 with_ppl=yes
5594 if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5595 if test x"$enable_watchdog" = xyes; then
5596 pwllib="-lpwl"
5598 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
5599 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5600 enable_ppl_version_check=no
5601 with_ppl=yes
5604 if test "x$with_ppl" != xno; then
5605 if test "x$pwllib" = x; then
5606 saved_LIBS="$LIBS"
5607 LIBS="$LIBS $ppllibs -lstdc++ -lm"
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5609 $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5610 if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 ac_check_lib_save_LIBS=$LIBS
5614 LIBS="-lpwl $LIBS"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5618 /* Override any GCC internal prototype to avoid an error.
5619 Use char because int might match the return type of a GCC
5620 builtin and then its argument prototype would still apply. */
5621 #ifdef __cplusplus
5622 extern "C"
5623 #endif
5624 char PWL_handle_timeout ();
5626 main ()
5628 return PWL_handle_timeout ();
5630 return 0;
5632 _ACEOF
5633 if ac_fn_c_try_link "$LINENO"; then :
5634 ac_cv_lib_pwl_PWL_handle_timeout=yes
5635 else
5636 ac_cv_lib_pwl_PWL_handle_timeout=no
5638 rm -f core conftest.err conftest.$ac_objext \
5639 conftest$ac_exeext conftest.$ac_ext
5640 LIBS=$ac_check_lib_save_LIBS
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5643 $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5644 if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5645 pwllib="-lpwl"
5648 LIBS="$saved_LIBS"
5651 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5653 if test "$enable_ppl_version_check" != no; then
5654 saved_CFLAGS="$CFLAGS"
5655 CFLAGS="$CFLAGS $pplinc $gmpinc"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5657 $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 #include "ppl_c.h"
5662 main ()
5665 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5666 choke me
5667 #endif
5670 return 0;
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5675 $as_echo "yes" >&6; }
5676 else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 CFLAGS="$saved_CFLAGS"
5685 # Flags needed for PPL
5690 # Check for CLOOG
5694 # Check whether --with-cloog was given.
5695 if test "${with_cloog+set}" = set; then :
5696 withval=$with_cloog;
5700 # Check whether --with-cloog-include was given.
5701 if test "${with_cloog_include+set}" = set; then :
5702 withval=$with_cloog_include;
5706 # Check whether --with-cloog-lib was given.
5707 if test "${with_cloog_lib+set}" = set; then :
5708 withval=$with_cloog_lib;
5712 # Check whether --enable-cloog-backend was given.
5713 if test "${enable_cloog_backend+set}" = set; then :
5714 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5715 cloog_backend=isl
5716 elif test "x${enableval}" = "xppl"; then
5717 cloog_backend=ppl
5718 else
5719 cloog_backend=ppl-legacy
5721 else
5722 cloog_backend=ppl-legacy
5725 # Check whether --enable-cloog-version-check was given.
5726 if test "${enable_cloog_version_check+set}" = set; then :
5727 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5728 else
5729 ENABLE_CLOOG_CHECK=yes
5733 # Initialize clooglibs and clooginc.
5734 case $with_cloog in
5736 clooglibs=
5737 clooginc=
5739 "" | yes)
5742 clooglibs="-L$with_cloog/lib"
5743 clooginc="-I$with_cloog/include"
5745 esac
5746 if test "x${with_cloog_include}" != x ; then
5747 clooginc="-I$with_cloog_include"
5749 if test "x${with_cloog_lib}" != x; then
5750 clooglibs="-L$with_cloog_lib"
5757 if test "x$with_ppl" = "xno"; then
5761 if test "x${with_cloog}" = xno; then
5762 graphite_requested=no
5763 elif test "x${with_cloog}" != x \
5764 || test "x${with_cloog_include}" != x \
5765 || test "x${with_cloog_lib}" != x ; then
5766 graphite_requested=yes
5767 else
5768 graphite_requested=no
5772 if test "${graphite_requested}" = yes; then
5773 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5775 with_cloog=no
5777 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5778 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5779 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5780 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5782 if test "x$with_cloog" != "xno"; then
5786 _cloog_saved_CFLAGS=$CFLAGS
5787 _cloog_saved_CPPFLAGS=$CPPFLAGS
5788 _cloog_saved_LDFLAGS=$LDFLAGS
5789 _cloog_saved_LIBS=$LIBS
5791 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5793 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5794 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5795 LDFLAGS="${LDFLAGS} ${clooglibs}"
5797 case $cloog_backend in
5798 "ppl-legacy")
5799 CFLAGS="${CFLAGS} ${pplinc}"
5800 LDFLAGS="${LDFLAGS} ${ppllibs}"
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5802 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5803 if test "${gcc_cv_cloog_type+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 LIBS="-lcloog ${_cloog_saved_LIBS}"
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #include "cloog/cloog.h"
5811 main ()
5813 #ifndef CLOOG_PPL_BACKEND
5814 choke me
5815 #endif
5817 return 0;
5819 _ACEOF
5820 if ac_fn_c_try_link "$LINENO"; then :
5821 gcc_cv_cloog_type="PPL Legacy"
5822 else
5823 gcc_cv_cloog_type=no
5825 rm -f core conftest.err conftest.$ac_objext \
5826 conftest$ac_exeext conftest.$ac_ext
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5829 $as_echo "$gcc_cv_cloog_type" >&6; }
5831 "isl")
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5833 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5834 if test "${gcc_cv_cloog_type+set}" = set; then :
5835 $as_echo_n "(cached) " >&6
5836 else
5837 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #include "cloog/cloog.h"
5842 main ()
5844 cloog_version ()
5846 return 0;
5848 _ACEOF
5849 if ac_fn_c_try_link "$LINENO"; then :
5850 gcc_cv_cloog_type="ISL"
5851 else
5852 gcc_cv_cloog_type=no
5854 rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5858 $as_echo "$gcc_cv_cloog_type" >&6; }
5860 "ppl")
5861 CFLAGS="${CFLAGS} ${pplinc}"
5862 LDFLAGS="${LDFLAGS} ${ppllibs}"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5864 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5865 if test "${gcc_cv_cloog_type+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 #include "cloog/cloog.h"
5872 #include "cloog/ppl/cloog.h"
5874 main ()
5876 cloog_version ()
5878 return 0;
5880 _ACEOF
5881 if ac_fn_c_try_link "$LINENO"; then :
5882 gcc_cv_cloog_type="PPL"
5883 else
5884 gcc_cv_cloog_type=no
5886 rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5890 $as_echo "$gcc_cv_cloog_type" >&6; }
5893 gcc_cv_cloog_type=""
5894 esac
5896 case $gcc_cv_cloog_type in
5897 "PPL Legacy")
5898 clooginc="${clooginc}"
5899 clooglibs="${clooglibs} -lcloog"
5900 cloog_org=no
5902 "ISL")
5903 clooginc="${clooginc} ${_cloogorginc}"
5904 clooglibs="${clooglibs} -lcloog-isl -lisl"
5905 cloog_org=yes
5907 "PPL")
5908 clooginc="${clooginc} ${_cloogorginc}"
5909 clooglibs="${clooglibs} -lcloog-ppl"
5910 cloog_org=yes
5913 clooglibs=
5914 clooginc=
5915 cloog_org=
5917 esac
5919 LIBS=$_cloog_saved_LIBS
5920 CFLAGS=$_cloog_saved_CFLAGS
5921 CPPFLAGS=$_cloog_saved_CPPFLAGS
5922 LDFLAGS=$_cloog_saved_LDFLAGS
5928 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5929 _cloog_saved_CFLAGS=$CFLAGS
5930 _cloog_saved_LDFLAGS=$LDFLAGS
5932 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5933 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5935 if test "${cloog_org}" = yes ; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5937 $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
5938 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 #include "cloog/cloog.h"
5945 main ()
5947 #if CLOOG_VERSION_MAJOR != 0 \
5948 || CLOOG_VERSION_MINOR != 16 \
5949 || CLOOG_VERSION_REVISION < 1
5950 choke me
5951 #endif
5953 return 0;
5955 _ACEOF
5956 if ac_fn_c_try_compile "$LINENO"; then :
5957 gcc_cv_cloog_ct_0_14_0=yes
5958 else
5959 gcc_cv_cloog_ct_0_14_0=no
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5964 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5965 elif test "${cloog_org}" = no ; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5967 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5968 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #include "cloog/cloog.h"
5975 main ()
5977 #if CLOOG_VERSION_MAJOR != 0 \
5978 || CLOOG_VERSION_MINOR != 15 \
5979 || CLOOG_VERSION_REVISION < 5
5980 choke me
5981 #endif
5983 return 0;
5985 _ACEOF
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5989 #include "cloog/cloog.h"
5991 main ()
5993 #if CLOOG_VERSION_MAJOR != 0 \
5994 || CLOOG_VERSION_MINOR != 15 \
5995 || CLOOG_VERSION_REVISION < 9
5996 choke me
5997 #endif
5999 return 0;
6001 _ACEOF
6002 if ac_fn_c_try_compile "$LINENO"; then :
6003 gcc_cv_cloog_ct_0_15_5=yes
6004 else
6005 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 else
6009 gcc_cv_cloog_ct_0_15_5=no
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6014 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6017 CFLAGS=$_cloog_saved_CFLAGS
6018 LDFLAGS=$_cloog_saved_LDFLAGS
6027 if test "x${with_cloog}" = xno; then
6028 graphite_requested=no
6029 elif test "x${with_cloog}" != x \
6030 || test "x${with_cloog_include}" != x \
6031 || test "x${with_cloog_lib}" != x ; then
6032 graphite_requested=yes
6033 else
6034 graphite_requested=no
6039 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6040 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6041 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6042 clooglibs=
6043 clooginc=
6046 if test "${graphite_requested}" = yes \
6047 && test "x${clooglibs}" = x \
6048 && test "x${clooginc}" = x ; then
6050 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6056 # Check for LTO support.
6057 # Check whether --enable-lto was given.
6058 if test "${enable_lto+set}" = set; then :
6059 enableval=$enable_lto; enable_lto=$enableval
6060 else
6061 enable_lto=yes; default_enable_lto=yes
6068 target_elf=no
6069 case $target in
6070 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6071 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
6072 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6073 target_elf=no
6076 target_elf=yes
6078 esac
6080 if test $target_elf = yes; then :
6081 # ELF platforms build the lto-plugin always.
6082 build_lto_plugin=yes
6084 else
6085 if test x"$default_enable_lto" = x"yes" ; then
6086 case $target in
6087 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
6088 # On other non-ELF platforms, LTO has yet to be validated.
6089 *) enable_lto=no ;;
6090 esac
6091 else
6092 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6093 # It would also be nice to check the binutils support, but we don't
6094 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6095 # warn during gcc/ subconfigure; unless you're bootstrapping with
6096 # -flto it won't be needed until after installation anyway.
6097 case $target in
6098 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6099 *) if test x"$enable_lto" = x"yes"; then
6100 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6103 esac
6105 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6106 # Build it unless LTO was explicitly disabled.
6107 case $target in
6108 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6109 *) ;;
6110 esac
6116 # By default, C is the only stage 1 language.
6117 stage1_languages=,c,
6119 # Target libraries that we bootstrap.
6120 bootstrap_target_libs=,target-libgcc,
6122 # Figure out what language subdirectories are present.
6123 # Look if the user specified --enable-languages="..."; if not, use
6124 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6125 # go away some day.
6126 # NB: embedded tabs in this IF block -- do not untabify
6127 if test -d ${srcdir}/gcc; then
6128 if test x"${enable_languages+set}" != xset; then
6129 if test x"${LANGUAGES+set}" = xset; then
6130 enable_languages="${LANGUAGES}"
6131 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6132 else
6133 enable_languages=all
6135 else
6136 if test x"${enable_languages}" = x ||
6137 test x"${enable_languages}" = xyes;
6138 then
6139 echo configure.in: --enable-languages needs at least one language argument 1>&2
6140 exit 1
6143 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6145 # 'f95' is the old name for the 'fortran' language. We issue a warning
6146 # and make the substitution.
6147 case ,${enable_languages}, in
6148 *,f95,*)
6149 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6150 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6152 esac
6154 # If bootstrapping, then using --enable-build-with-cxx or
6155 # --enable-build-poststage1-with-cxx requires enabling C++.
6156 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6157 *,c++,*:*:*) ;;
6158 *:*,yes,*:yes)
6159 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6160 enable_languages="${enable_languages},c++"
6161 else
6162 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6165 esac
6167 # First scan to see if an enabled language requires some other language.
6168 # We assume that a given config-lang.in will list all the language
6169 # front ends it requires, even if some are required indirectly.
6170 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6171 case ${lang_frag} in
6172 ..) ;;
6173 # The odd quoting in the next line works around
6174 # an apparent bug in bash 1.12 on linux.
6175 ${srcdir}/gcc/[*]/config-lang.in) ;;
6177 # From the config-lang.in, get $language, $lang_requires, and
6178 # $lang_requires_boot_languages.
6179 language=
6180 lang_requires=
6181 lang_requires_boot_languages=
6182 . ${lang_frag}
6183 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6184 case ,${enable_languages}, in
6185 *,$other,*) ;;
6186 *,all,*) ;;
6187 *,$language,*)
6188 echo " \`$other' language required by \`$language'; enabling" 1>&2
6189 enable_languages="${enable_languages},${other}"
6191 esac
6192 done
6193 for other in ${lang_requires_boot_languages} ; do
6194 if test "$other" != "c"; then
6195 case ,${enable_stage1_languages}, in
6196 *,$other,*) ;;
6197 *,all,*) ;;
6199 case ,${enable_languages}, in
6200 *,$language,*)
6201 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6202 enable_stage1_languages="$enable_stage1_languages,${other}"
6204 esac
6206 esac
6208 done
6210 esac
6211 done
6213 new_enable_languages=,c,
6215 # If LTO is enabled, add the LTO front end.
6216 extra_host_libiberty_configure_flags=
6217 if test "$enable_lto" = "yes" ; then
6218 case ,${enable_languages}, in
6219 *,lto,*) ;;
6220 *) enable_languages="${enable_languages},lto" ;;
6221 esac
6222 if test "${build_lto_plugin}" = "yes" ; then
6223 configdirs="$configdirs lto-plugin"
6224 extra_host_libiberty_configure_flags=--enable-shared
6229 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6230 potential_languages=,c,
6232 enabled_target_libs=
6233 disabled_target_libs=
6235 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6236 case ${lang_frag} in
6237 ..) ;;
6238 # The odd quoting in the next line works around
6239 # an apparent bug in bash 1.12 on linux.
6240 ${srcdir}/gcc/[*]/config-lang.in) ;;
6242 # From the config-lang.in, get $language, $target_libs,
6243 # $lang_dirs, $boot_language, and $build_by_default
6244 language=
6245 target_libs=
6246 lang_dirs=
6247 subdir_requires=
6248 boot_language=no
6249 build_by_default=yes
6250 . ${lang_frag}
6251 if test x${language} = x; then
6252 echo "${lang_frag} doesn't set \$language." 1>&2
6253 exit 1
6256 if test "$language" = "c++"; then
6257 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6258 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6259 boot_language=yes
6263 case ,${enable_languages}, in
6264 *,${language},*)
6265 # Language was explicitly selected; include it.
6266 add_this_lang=yes
6268 *,all,*)
6269 # 'all' was selected, select it if it is a default language
6270 add_this_lang=${build_by_default}
6273 add_this_lang=no
6275 esac
6277 # Disable languages that need other directories if these aren't available.
6278 for i in $subdir_requires; do
6279 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6280 case ,${enable_languages}, in
6281 *,${language},*)
6282 # Specifically requested language; tell them.
6283 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6286 # Silently disable.
6287 add_this_lang=unsupported
6289 esac
6290 done
6292 # Disable Ada if no preexisting GNAT is available.
6293 case ,${enable_languages},:${language}:${have_gnat} in
6294 *,${language},*:ada:no)
6295 # Specifically requested language; tell them.
6296 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6298 *:ada:no)
6299 # Silently disable.
6300 add_this_lang=unsupported
6302 esac
6304 # Disable a language that is unsupported by the target.
6305 case " $unsupported_languages " in
6306 *" $language "*)
6307 add_this_lang=unsupported
6309 esac
6311 case $add_this_lang in
6312 unsupported)
6313 # Remove language-dependent dirs.
6314 disabled_target_libs="$disabled_target_libs $target_libs"
6315 noconfigdirs="$noconfigdirs $lang_dirs"
6318 # Remove language-dependent dirs; still show language as supported.
6319 disabled_target_libs="$disabled_target_libs $target_libs"
6320 noconfigdirs="$noconfigdirs $lang_dirs"
6321 potential_languages="${potential_languages}${language},"
6323 yes)
6324 new_enable_languages="${new_enable_languages}${language},"
6325 potential_languages="${potential_languages}${language},"
6326 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6327 enabled_target_libs="$enabled_target_libs $target_libs"
6328 case "${boot_language}:,$enable_stage1_languages," in
6329 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6330 # Add to (comma-separated) list of stage 1 languages.
6331 case ",$stage1_languages," in
6332 *,$language,* | ,yes, | ,all,) ;;
6333 *) stage1_languages="${stage1_languages}${language}," ;;
6334 esac
6335 # We need to bootstrap any supporting libraries.
6336 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6338 esac
6340 esac
6342 esac
6343 done
6345 # Add target libraries which are only needed for disabled languages
6346 # to noconfigdirs.
6347 if test -n "$disabled_target_libs"; then
6348 for dir in $disabled_target_libs; do
6349 case " $enabled_target_libs " in
6350 *" ${dir} "*) ;;
6351 *) noconfigdirs="$noconfigdirs $dir" ;;
6352 esac
6353 done
6356 # Check whether --enable-stage1-languages was given.
6357 if test "${enable_stage1_languages+set}" = set; then :
6358 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6359 ,no,|,,)
6360 # Set it to something that will have no effect in the loop below
6361 enable_stage1_languages=c ;;
6362 ,yes,)
6363 enable_stage1_languages=`echo $new_enable_languages | \
6364 sed -e "s/^,//" -e "s/,$//" ` ;;
6365 *,all,*)
6366 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6367 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6368 esac
6370 # Add "good" languages from enable_stage1_languages to stage1_languages,
6371 # while "bad" languages go in missing_languages. Leave no duplicates.
6372 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6373 case $potential_languages in
6374 *,$i,*)
6375 case $stage1_languages in
6376 *,$i,*) ;;
6377 *) stage1_languages="$stage1_languages$i," ;;
6378 esac ;;
6380 case $missing_languages in
6381 *,$i,*) ;;
6382 *) missing_languages="$missing_languages$i," ;;
6383 esac ;;
6384 esac
6385 done
6389 # Remove leading/trailing commas that were added for simplicity
6390 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6391 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6392 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6393 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6395 if test "x$missing_languages" != x; then
6396 as_fn_error "
6397 The following requested languages could not be built: ${missing_languages}
6398 Supported languages are: ${potential_languages}" "$LINENO" 5
6400 if test "x$new_enable_languages" != "x$enable_languages"; then
6401 echo The following languages will be built: ${new_enable_languages}
6402 enable_languages="$new_enable_languages"
6406 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6409 # Handle --disable-<component> generically.
6410 for dir in $configdirs $build_configdirs $target_configdirs ; do
6411 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6412 varname=`echo $dirname | sed -e s/+/_/g`
6413 if eval test x\${enable_${varname}} "=" xno ; then
6414 noconfigdirs="$noconfigdirs $dir"
6416 done
6418 # Check for Boehm's garbage collector
6419 # Check whether --enable-objc-gc was given.
6420 if test "${enable_objc_gc+set}" = set; then :
6421 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6422 *,objc,*:*:yes:*target-boehm-gc*)
6423 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6425 esac
6429 # Make sure we only build Boehm's garbage collector if required.
6430 case ,${enable_languages},:${enable_objc_gc} in
6431 *,objc,*:yes)
6432 # Keep target-boehm-gc if requested for Objective-C.
6435 # Otherwise remove target-boehm-gc depending on target-libjava.
6436 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6437 noconfigdirs="$noconfigdirs target-boehm-gc"
6440 esac
6442 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6443 # $build_configdirs and $target_configdirs.
6444 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6446 notsupp=""
6447 for dir in . $skipdirs $noconfigdirs ; do
6448 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6449 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6450 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6451 if test -r $srcdir/$dirname/configure ; then
6452 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6453 true
6454 else
6455 notsupp="$notsupp $dir"
6459 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6460 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6461 if test -r $srcdir/$dirname/configure ; then
6462 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6463 true
6464 else
6465 notsupp="$notsupp $dir"
6469 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6470 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6471 if test -r $srcdir/$dirname/configure ; then
6472 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6473 true
6474 else
6475 notsupp="$notsupp $dir"
6479 done
6481 # Quietly strip out all directories which aren't configurable in this tree.
6482 # This relies on all configurable subdirectories being autoconfiscated, which
6483 # is now the case.
6484 build_configdirs_all="$build_configdirs"
6485 build_configdirs=
6486 for i in ${build_configdirs_all} ; do
6487 j=`echo $i | sed -e s/build-//g`
6488 if test -f ${srcdir}/$j/configure ; then
6489 build_configdirs="${build_configdirs} $i"
6491 done
6493 configdirs_all="$configdirs"
6494 configdirs=
6495 for i in ${configdirs_all} ; do
6496 if test -f ${srcdir}/$i/configure ; then
6497 configdirs="${configdirs} $i"
6499 done
6501 target_configdirs_all="$target_configdirs"
6502 target_configdirs=
6503 for i in ${target_configdirs_all} ; do
6504 j=`echo $i | sed -e s/target-//g`
6505 if test -f ${srcdir}/$j/configure ; then
6506 target_configdirs="${target_configdirs} $i"
6508 done
6510 # Produce a warning message for the subdirs we can't configure.
6511 # This isn't especially interesting in the Cygnus tree, but in the individual
6512 # FSF releases, it's important to let people know when their machine isn't
6513 # supported by the one or two programs in a package.
6515 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6516 # If $appdirs is non-empty, at least one of those directories must still
6517 # be configured, or we error out. (E.g., if the gas release supports a
6518 # specified target in some subdirs but not the gas subdir, we shouldn't
6519 # pretend that all is well.)
6520 if test -n "$appdirs" ; then
6521 for dir in $appdirs ; do
6522 if test -r $dir/Makefile.in ; then
6523 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6524 appdirs=""
6525 break
6527 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6528 appdirs=""
6529 break
6532 done
6533 if test -n "$appdirs" ; then
6534 echo "*** This configuration is not supported by this package." 1>&2
6535 exit 1
6538 # Okay, some application will build, or we don't care to check. Still
6539 # notify of subdirs not getting built.
6540 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6541 echo " ${notsupp}" 1>&2
6542 echo " (Any other directories should still work fine.)" 1>&2
6545 case "$host" in
6546 *msdosdjgpp*)
6547 enable_gdbtk=no ;;
6548 esac
6550 # To find our prefix, in gcc_cv_tool_prefix.
6552 # The user is always right.
6553 if test "${PATH_SEPARATOR+set}" != set; then
6554 echo "#! /bin/sh" >conf$$.sh
6555 echo "exit 0" >>conf$$.sh
6556 chmod +x conf$$.sh
6557 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6558 PATH_SEPARATOR=';'
6559 else
6560 PATH_SEPARATOR=:
6562 rm -f conf$$.sh
6567 if test "x$exec_prefix" = xNONE; then
6568 if test "x$prefix" = xNONE; then
6569 gcc_cv_tool_prefix=$ac_default_prefix
6570 else
6571 gcc_cv_tool_prefix=$prefix
6573 else
6574 gcc_cv_tool_prefix=$exec_prefix
6577 # If there is no compiler in the tree, use the PATH only. In any
6578 # case, if there is no compiler in the tree nobody should use
6579 # AS_FOR_TARGET and LD_FOR_TARGET.
6580 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6581 gcc_version=`cat $srcdir/gcc/BASE-VER`
6582 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6583 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6584 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6585 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6586 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6587 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6588 else
6589 gcc_cv_tool_dirs=
6592 if test x$build = x$target && test -n "$md_exec_prefix"; then
6593 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6598 copy_dirs=
6601 # Check whether --with-build-sysroot was given.
6602 if test "${with_build_sysroot+set}" = set; then :
6603 withval=$with_build_sysroot; if test x"$withval" != x ; then
6604 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6606 else
6607 SYSROOT_CFLAGS_FOR_TARGET=
6613 # Check whether --with-debug-prefix-map was given.
6614 if test "${with_debug_prefix_map+set}" = set; then :
6615 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6616 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6617 for debug_map in $withval; do
6618 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6619 done
6621 else
6622 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6627 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6628 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6629 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6630 # We want to ensure that TARGET libraries (which we know are built with
6631 # gcc) are built with "-O2 -g", so include those options when setting
6632 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6633 if test "x$CFLAGS_FOR_TARGET" = x; then
6634 CFLAGS_FOR_TARGET=$CFLAGS
6635 case " $CFLAGS " in
6636 *" -O2 "*) ;;
6637 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6638 esac
6639 case " $CFLAGS " in
6640 *" -g "* | *" -g3 "*) ;;
6641 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6642 esac
6646 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6647 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6648 case " $CXXFLAGS " in
6649 *" -O2 "*) ;;
6650 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6651 esac
6652 case " $CXXFLAGS " in
6653 *" -g "* | *" -g3 "*) ;;
6654 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6655 esac
6661 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6662 # the named directory are copied to $(tooldir)/sys-include.
6663 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6664 if test x${is_cross_compiler} = xno ; then
6665 echo 1>&2 '***' --with-headers is only supported when cross compiling
6666 exit 1
6668 if test x"${with_headers}" != xyes ; then
6669 x=${gcc_cv_tool_prefix}
6670 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6674 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6675 # the name directories are copied to $(tooldir)/lib. Multiple directories
6676 # are permitted.
6677 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6678 if test x${is_cross_compiler} = xno ; then
6679 echo 1>&2 '***' --with-libs is only supported when cross compiling
6680 exit 1
6682 if test x"${with_libs}" != xyes ; then
6683 # Copy the libraries in reverse order, so that files in the first named
6684 # library override files in subsequent libraries.
6685 x=${gcc_cv_tool_prefix}
6686 for l in ${with_libs}; do
6687 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6688 done
6692 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6694 # This is done by determining whether or not the appropriate directory
6695 # is available, and by checking whether or not specific configurations
6696 # have requested that this magic not happen.
6698 # The command line options always override the explicit settings in
6699 # configure.in, and the settings in configure.in override this magic.
6701 # If the default for a toolchain is to use GNU as and ld, and you don't
6702 # want to do that, then you should use the --without-gnu-as and
6703 # --without-gnu-ld options for the configure script. Similarly, if
6704 # the default is to use the included zlib and you don't want to do that,
6705 # you should use the --with-system-zlib option for the configure script.
6707 if test x${use_gnu_as} = x &&
6708 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6709 with_gnu_as=yes
6710 extra_host_args="$extra_host_args --with-gnu-as"
6713 if test x${use_gnu_ld} = x &&
6714 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6715 with_gnu_ld=yes
6716 extra_host_args="$extra_host_args --with-gnu-ld"
6719 if test x${use_included_zlib} = x &&
6720 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6722 else
6723 with_system_zlib=yes
6724 extra_host_args="$extra_host_args --with-system-zlib"
6727 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6728 # can detect this case.
6730 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6731 with_newlib=yes
6732 extra_host_args="$extra_host_args --with-newlib"
6735 # Handle ${copy_dirs}
6736 set fnord ${copy_dirs}
6737 shift
6738 while test $# != 0 ; do
6739 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6741 else
6742 echo Copying $1 to $2
6744 # Use the install script to create the directory and all required
6745 # parent directories.
6746 if test -d $2 ; then
6748 else
6749 echo >config.temp
6750 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6753 # Copy the directory, assuming we have tar.
6754 # FIXME: Should we use B in the second tar? Not all systems support it.
6755 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6757 # It is the responsibility of the user to correctly adjust all
6758 # symlinks. If somebody can figure out how to handle them correctly
6759 # here, feel free to add the code.
6761 echo $1 > $2/COPIED
6763 shift; shift
6764 done
6766 # Determine a target-dependent exec_prefix that the installed
6767 # gcc will search in. Keep this list sorted by triplet, with
6768 # the *-*-osname triplets last.
6769 md_exec_prefix=
6770 case "${target}" in
6771 i[34567]86-pc-msdosdjgpp*)
6772 md_exec_prefix=/dev/env/DJDIR/bin
6774 *-*-hpux* | \
6775 *-*-nto-qnx* | \
6776 *-*-solaris2*)
6777 md_exec_prefix=/usr/ccs/bin
6779 esac
6781 extra_arflags_for_target=
6782 extra_nmflags_for_target=
6783 extra_ranlibflags_for_target=
6784 target_makefile_frag=/dev/null
6785 case "${target}" in
6786 spu-*-*)
6787 target_makefile_frag="config/mt-spu"
6789 mips*-sde-elf*)
6790 target_makefile_frag="config/mt-sde"
6792 mipsisa*-*-elfoabi*)
6793 target_makefile_frag="config/mt-mips-elfoabi"
6795 mips*-*-*linux* | mips*-*-gnu*)
6796 target_makefile_frag="config/mt-mips-gnu"
6798 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6799 target_makefile_frag="config/mt-gnu"
6801 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6802 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6803 # commands to handle both 32-bit and 64-bit objects. These flags are
6804 # harmless if we're using GNU nm or ar.
6805 extra_arflags_for_target=" -X32_64"
6806 extra_nmflags_for_target=" -B -X32_64"
6808 *-*-darwin[3-9]*)
6809 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6810 extra_ranlibflags_for_target=" -c"
6812 esac
6814 alphaieee_frag=/dev/null
6815 case $target in
6816 alpha*-*-*)
6817 # This just makes sure to use the -mieee option to build target libs.
6818 # This should probably be set individually by each library.
6819 alphaieee_frag="config/mt-alphaieee"
6821 esac
6823 # If --enable-target-optspace always use -Os instead of -O2 to build
6824 # the target libraries, similarly if it is not specified, use -Os
6825 # on selected platforms.
6826 ospace_frag=/dev/null
6827 case "${enable_target_optspace}:${target}" in
6828 yes:*)
6829 ospace_frag="config/mt-ospace"
6831 :d30v-*)
6832 ospace_frag="config/mt-d30v"
6834 :m32r-* | :d10v-* | :fr30-*)
6835 ospace_frag="config/mt-ospace"
6837 no:* | :*)
6840 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6842 esac
6844 # Default to using --with-stabs for certain targets.
6845 if test x${with_stabs} = x ; then
6846 case "${target}" in
6847 mips*-*-irix[56]*)
6849 mips*-*-* | alpha*-*-osf*)
6850 with_stabs=yes;
6851 extra_host_args="${extra_host_args} --with-stabs"
6853 esac
6856 # Some systems (e.g., one of the i386-aix systems the gas testers are
6857 # using) don't handle "\$" correctly, so don't use it here.
6858 tooldir='${exec_prefix}'/${target_noncanonical}
6859 build_tooldir=${tooldir}
6861 # Create a .gdbinit file which runs the one in srcdir
6862 # and tells GDB to look there for source files.
6864 if test -r ${srcdir}/.gdbinit ; then
6865 case ${srcdir} in
6866 .) ;;
6867 *) cat > ./.gdbinit <<EOF
6868 # ${NO_EDIT}
6869 dir ${srcdir}
6870 dir .
6871 source ${srcdir}/.gdbinit
6874 esac
6877 # Make sure that the compiler is able to generate an executable. If it
6878 # can't, we are probably in trouble. We don't care whether we can run the
6879 # executable--we might be using a cross compiler--we only care whether it
6880 # can be created. At this point the main configure script has set CC.
6881 we_are_ok=no
6882 echo "int main () { return 0; }" > conftest.c
6883 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6884 if test $? = 0 ; then
6885 if test -s conftest || test -s conftest.exe ; then
6886 we_are_ok=yes
6889 case $we_are_ok in
6891 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6892 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6893 rm -f conftest*
6894 exit 1
6896 esac
6897 rm -f conftest*
6899 # Decide which environment variable is used to find dynamic libraries.
6900 case "${host}" in
6901 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6902 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6903 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6904 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6905 esac
6907 # On systems where the dynamic library environment variable is PATH,
6908 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6909 # built executables to PATH.
6910 if test "$RPATH_ENVVAR" = PATH; then
6911 GCC_SHLIB_SUBDIR=/shlib
6912 else
6913 GCC_SHLIB_SUBDIR=
6916 # Record target_configdirs and the configure arguments for target and
6917 # build configuration in Makefile.
6918 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6919 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6921 # If we are building libgomp, bootstrap it.
6922 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6923 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6926 # Determine whether gdb needs tk/tcl or not.
6927 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6928 # and in that case we want gdb to be built without tk. Ugh!
6929 # In fact I believe gdb is the *only* package directly dependent on tk,
6930 # so we should be able to put the 'maybe's in unconditionally and
6931 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6932 # 100% sure that that's safe though.
6934 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6935 case "$enable_gdbtk" in
6937 GDB_TK="" ;;
6938 yes)
6939 GDB_TK="${gdb_tk}" ;;
6941 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6942 # distro. Eventually someone will fix this and move Insight, nee
6943 # gdbtk to a separate directory.
6944 if test -d ${srcdir}/gdb/gdbtk ; then
6945 GDB_TK="${gdb_tk}"
6946 else
6947 GDB_TK=""
6950 esac
6951 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6952 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6954 # Strip out unwanted targets.
6956 # While at that, we remove Makefiles if we were started for recursive
6957 # configuration, so that the top-level Makefile reconfigures them,
6958 # like we used to do when configure itself was recursive.
6960 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6961 # but now we're fixing up the Makefile ourselves with the additional
6962 # commands passed to AC_CONFIG_FILES. Use separate variables
6963 # extrasub-{build,host,target} not because there is any reason to split
6964 # the substitutions up that way, but only to remain below the limit of
6965 # 99 commands in a script, for HP-UX sed.
6966 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6968 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6969 yes:yes:*\ gold\ *:*,c++,*) ;;
6970 yes:yes:*\ gold\ *:*)
6971 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6973 esac
6975 # Adjust the toplevel makefile according to whether bootstrap was selected.
6976 case $enable_bootstrap in
6977 yes)
6978 bootstrap_suffix=bootstrap
6979 BUILD_CONFIG=bootstrap-debug
6982 bootstrap_suffix=no-bootstrap
6983 BUILD_CONFIG=
6985 esac
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6988 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6991 # Check whether --with-build-config was given.
6992 if test "${with_build_config+set}" = set; then :
6993 withval=$with_build_config; case $with_build_config in
6994 yes) with_build_config= ;;
6995 no) with_build_config= BUILD_CONFIG= ;;
6996 esac
7000 if test "x${with_build_config}" != x; then
7001 BUILD_CONFIG=$with_build_config
7002 else
7003 case $BUILD_CONFIG in
7004 bootstrap-debug)
7005 if echo "int f (void) { return 0; }" > conftest.c &&
7006 ${CC} -c conftest.c &&
7007 mv conftest.o conftest.o.g0 &&
7008 ${CC} -c -g conftest.c &&
7009 mv conftest.o conftest.o.g &&
7010 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7012 else
7013 BUILD_CONFIG=
7015 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7017 esac
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7020 $as_echo "$BUILD_CONFIG" >&6; }
7023 extrasub_build=
7024 for module in ${build_configdirs} ; do
7025 if test -z "${no_recursion}" \
7026 && test -f ${build_subdir}/${module}/Makefile; then
7027 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7028 rm -f ${build_subdir}/${module}/Makefile
7030 extrasub_build="$extrasub_build
7031 /^@if build-$module\$/d
7032 /^@endif build-$module\$/d
7033 /^@if build-$module-$bootstrap_suffix\$/d
7034 /^@endif build-$module-$bootstrap_suffix\$/d"
7035 done
7036 extrasub_host=
7037 for module in ${configdirs} ; do
7038 if test -z "${no_recursion}"; then
7039 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7040 if test -f ${file}; then
7041 echo 1>&2 "*** removing ${file} to force reconfigure"
7042 rm -f ${file}
7044 done
7046 extrasub_host="$extrasub_host
7047 /^@if $module\$/d
7048 /^@endif $module\$/d
7049 /^@if $module-$bootstrap_suffix\$/d
7050 /^@endif $module-$bootstrap_suffix\$/d"
7051 done
7052 extrasub_target=
7053 for module in ${target_configdirs} ; do
7054 if test -z "${no_recursion}" \
7055 && test -f ${target_subdir}/${module}/Makefile; then
7056 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7057 rm -f ${target_subdir}/${module}/Makefile
7060 # We only bootstrap target libraries listed in bootstrap_target_libs.
7061 case $bootstrap_target_libs in
7062 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7063 *) target_bootstrap_suffix=no-bootstrap ;;
7064 esac
7066 extrasub_target="$extrasub_target
7067 /^@if target-$module\$/d
7068 /^@endif target-$module\$/d
7069 /^@if target-$module-$target_bootstrap_suffix\$/d
7070 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7071 done
7073 # Do the final fixup along with target modules.
7074 extrasub_target="$extrasub_target
7075 /^@if /,/^@endif /d"
7077 # Create the serialization dependencies. This uses a temporary file.
7079 # Check whether --enable-serial-configure was given.
7080 if test "${enable_serial_configure+set}" = set; then :
7081 enableval=$enable_serial_configure;
7085 case ${enable_serial_configure} in
7086 yes)
7087 enable_serial_build_configure=yes
7088 enable_serial_host_configure=yes
7089 enable_serial_target_configure=yes
7091 esac
7093 # These force 'configure's to be done one at a time, to avoid problems
7094 # with contention over a shared config.cache.
7095 rm -f serdep.tmp
7096 echo '# serdep.tmp' > serdep.tmp
7097 olditem=
7098 test "x${enable_serial_build_configure}" = xyes &&
7099 for item in ${build_configdirs} ; do
7100 case ${olditem} in
7101 "") ;;
7102 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7103 esac
7104 olditem=${item}
7105 done
7106 olditem=
7107 test "x${enable_serial_host_configure}" = xyes &&
7108 for item in ${configdirs} ; do
7109 case ${olditem} in
7110 "") ;;
7111 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7112 esac
7113 olditem=${item}
7114 done
7115 olditem=
7116 test "x${enable_serial_target_configure}" = xyes &&
7117 for item in ${target_configdirs} ; do
7118 case ${olditem} in
7119 "") ;;
7120 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7121 esac
7122 olditem=${item}
7123 done
7124 serialization_dependencies=serdep.tmp
7127 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7128 # target, nonopt, and variable assignments. These are the ones we
7129 # might not want to pass down to subconfigures. The exception being
7130 # --cache-file=/dev/null, which is used to turn off the use of cache
7131 # files altogether, and which should be passed on to subconfigures.
7132 # Also strip program-prefix, program-suffix, and program-transform-name,
7133 # so that we can pass down a consistent program-transform-name.
7134 baseargs=
7135 tbaseargs=
7136 keep_next=no
7137 skip_next=no
7138 eval "set -- $ac_configure_args"
7139 for ac_arg
7141 if test X"$skip_next" = X"yes"; then
7142 skip_next=no
7143 continue
7145 if test X"$keep_next" = X"yes"; then
7146 case $ac_arg in
7147 *\'*)
7148 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7149 esac
7150 baseargs="$baseargs '$ac_arg'"
7151 tbaseargs="$tbaseargs '$ac_arg'"
7152 keep_next=no
7153 continue
7156 # Handle separated arguments. Based on the logic generated by
7157 # autoconf 2.59.
7158 case $ac_arg in
7159 *=* | --config-cache | -C | -disable-* | --disable-* \
7160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7162 | -with-* | --with-* | -without-* | --without-* | --x)
7163 separate_arg=no
7166 separate_arg=yes
7169 separate_arg=no
7171 esac
7173 skip_targ=no
7174 case $ac_arg in
7176 --with-* | --without-*)
7177 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7179 case $libopt in
7180 *[-_]include)
7181 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7183 *[-_]lib)
7184 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7187 lib=$libopt
7189 esac
7192 case $lib in
7193 mpc | mpfr | gmp | ppl | cloog)
7194 # If we're processing --with-$lib, --with-$lib-include or
7195 # --with-$lib-lib, for one of the libs above, and target is
7196 # different from host, don't pass the current argument to any
7197 # target library's configure.
7198 if test x$is_cross_compiler = xyes; then
7199 skip_targ=yes
7202 esac
7204 esac
7206 case "$ac_arg" in
7207 --cache-file=/dev/null | \
7208 -cache-file=/dev/null )
7209 # Handled here to avoid the test to skip args below.
7210 baseargs="$baseargs '$ac_arg'"
7211 tbaseargs="$tbaseargs '$ac_arg'"
7212 # Assert: $separate_arg should always be no.
7213 keep_next=$separate_arg
7215 --no*)
7216 continue
7218 --c* | \
7219 --sr* | \
7220 --ho* | \
7221 --bu* | \
7222 --t* | \
7223 --program-* | \
7224 -cache_file* | \
7225 -srcdir* | \
7226 -host* | \
7227 -build* | \
7228 -target* | \
7229 -program-prefix* | \
7230 -program-suffix* | \
7231 -program-transform-name* )
7232 skip_next=$separate_arg
7233 continue
7236 # An option. Add it.
7237 case $ac_arg in
7238 *\'*)
7239 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7240 esac
7241 baseargs="$baseargs '$ac_arg'"
7242 if test X"$skip_targ" = Xno; then
7243 tbaseargs="$tbaseargs '$ac_arg'"
7245 keep_next=$separate_arg
7248 # Either a variable assignment, or a nonopt (triplet). Don't
7249 # pass it down; let the Makefile handle this.
7250 continue
7252 esac
7253 done
7254 # Remove the initial space we just introduced and, as these will be
7255 # expanded by make, quote '$'.
7256 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7258 # Add in --program-transform-name, after --program-prefix and
7259 # --program-suffix have been applied to it. Autoconf has already
7260 # doubled dollar signs and backslashes in program_transform_name; we want
7261 # the backslashes un-doubled, and then the entire thing wrapped in single
7262 # quotes, because this will be expanded first by make and then by the shell.
7263 # Also, because we want to override the logic in subdir configure scripts to
7264 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7265 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7266 ${program_transform_name}
7267 EOF_SED
7268 gcc_transform_name=`cat conftestsed.out`
7269 rm -f conftestsed.out
7270 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7271 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
7272 if test "$silent" = yes; then
7273 baseargs="$baseargs --silent"
7274 tbaseargs="$tbaseargs --silent"
7276 baseargs="$baseargs --disable-option-checking"
7277 tbaseargs="$tbaseargs --disable-option-checking"
7279 # Record and document user additions to sub configure arguments.
7284 # For the build-side libraries, we just need to pretend we're native,
7285 # and not use the same cache file. Multilibs are neither needed nor
7286 # desired.
7287 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7289 # For host modules, accept cache file option, or specification as blank.
7290 case "${cache_file}" in
7291 "") # empty
7292 cache_file_option="" ;;
7293 /* | [A-Za-z]:[\\/]* ) # absolute path
7294 cache_file_option="--cache-file=${cache_file}" ;;
7295 *) # relative path
7296 cache_file_option="--cache-file=../${cache_file}" ;;
7297 esac
7299 # Host dirs don't like to share a cache file either, horribly enough.
7300 # This seems to be due to autoconf 2.5x stupidity.
7301 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7303 target_configargs="$target_configargs ${tbaseargs}"
7305 # Passing a --with-cross-host argument lets the target libraries know
7306 # whether they are being built with a cross-compiler or being built
7307 # native. However, it would be better to use other mechanisms to make the
7308 # sorts of decisions they want to make on this basis. Please consider
7309 # this option to be deprecated. FIXME.
7310 if test x${is_cross_compiler} = xyes ; then
7311 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7314 # Default to --enable-multilib.
7315 if test x${enable_multilib} = x ; then
7316 target_configargs="--enable-multilib ${target_configargs}"
7319 # Pass --with-newlib if appropriate. Note that target_configdirs has
7320 # changed from the earlier setting of with_newlib.
7321 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7322 target_configargs="--with-newlib ${target_configargs}"
7325 # Different target subdirs use different values of certain variables
7326 # (notably CXX). Worse, multilibs use *lots* of different values.
7327 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7328 # it doesn't automatically accept command-line overrides of them.
7329 # This means it's not safe for target subdirs to share a cache file,
7330 # which is disgusting, but there you have it. Hopefully this can be
7331 # fixed in future. It's still worthwhile to use a cache file for each
7332 # directory. I think.
7334 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7335 # We need to pass --target, as newer autoconf's requires consistency
7336 # for target_alias and gcc doesn't manage it consistently.
7337 target_configargs="--cache-file=./config.cache ${target_configargs}"
7339 FLAGS_FOR_TARGET=
7340 case " $target_configdirs " in
7341 *" newlib "*)
7342 case " $target_configargs " in
7343 *" --with-newlib "*)
7344 case "$target" in
7345 *-cygwin*)
7346 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'
7348 esac
7350 # If we're not building GCC, don't discard standard headers.
7351 if test -d ${srcdir}/gcc; then
7352 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7354 if test "${build}" != "${host}"; then
7355 # On Canadian crosses, CC_FOR_TARGET will have already been set
7356 # by `configure', so we won't have an opportunity to add -Bgcc/
7357 # to it. This is right: we don't want to search that directory
7358 # for binaries, but we want the header files in there, so add
7359 # them explicitly.
7360 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7362 # Someone might think of using the pre-installed headers on
7363 # Canadian crosses, in case the installed compiler is not fully
7364 # compatible with the compiler being built. In this case, it
7365 # would be better to flag an error than risking having
7366 # incompatible object files being constructed. We can't
7367 # guarantee that an error will be flagged, but let's hope the
7368 # compiler will do it, when presented with incompatible header
7369 # files.
7373 case "${target}-${is_cross_compiler}" in
7374 i[3456789]86-*-linux*-no)
7375 # Here host == target, so we don't need to build gcc,
7376 # so we don't want to discard standard headers.
7377 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7380 # If we're building newlib, use its generic headers last, but search
7381 # for any libc-related directories first (so make it the last -B
7382 # switch).
7383 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7385 # If we're building libgloss, find the startup file, simulator library
7386 # and linker script.
7387 case " $target_configdirs " in
7388 *" libgloss "*)
7389 # Look for startup file, simulator library and maybe linker script.
7390 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7391 # Look for libnosys.a in case the target needs it.
7392 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7393 # Most targets have the linker script in the source directory.
7394 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7396 esac
7398 esac
7400 esac
7402 esac
7404 case "$target" in
7405 x86_64-*mingw* | *-w64-mingw*)
7406 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7407 # however, use a symlink named 'mingw' in ${prefix} .
7408 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7410 *-mingw*)
7411 # MinGW can't be handled as Cygwin above since it does not use newlib.
7412 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'
7414 esac
7416 # Allow the user to override the flags for
7417 # our build compiler if desired.
7418 if test x"${build}" = x"${host}" ; then
7419 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7420 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7421 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7424 # On Canadian crosses, we'll be searching the right directories for
7425 # the previously-installed cross compiler, so don't bother to add
7426 # flags for directories within the install tree of the compiler
7427 # being built; programs in there won't even run.
7428 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7429 # Search for pre-installed headers if nothing else fits.
7430 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7433 if test "x${use_gnu_ld}" = x &&
7434 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7435 # Arrange for us to find uninstalled linker scripts.
7436 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7439 # Search for other target-specific linker scripts and such.
7440 case "${target}" in
7441 mep*)
7442 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7444 esac
7446 # Makefile fragments.
7447 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7449 eval fragval=\$$frag
7450 if test $fragval != /dev/null; then
7451 eval $frag=${srcdir}/$fragval
7453 done
7459 # Miscellanea: directories, flags, etc.
7468 # Build module lists & subconfigure args.
7472 # Host module lists & subconfigure args.
7477 # Target module lists & subconfigure args.
7481 # Build tools.
7499 # Generate default definitions for YACC, M4, LEX and other programs that run
7500 # on the build machine. These are used if the Makefile can't locate these
7501 # programs in objdir.
7502 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7504 for ac_prog in 'bison -y' byacc yacc
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_YACC+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 if test -n "$YACC"; then
7514 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_YACC="$ac_prog"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7529 IFS=$as_save_IFS
7533 YACC=$ac_cv_prog_YACC
7534 if test -n "$YACC"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7536 $as_echo "$YACC" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7543 test -n "$YACC" && break
7544 done
7545 test -n "$YACC" || YACC="$MISSING bison -y"
7547 case " $build_configdirs " in
7548 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7549 esac
7551 for ac_prog in bison
7553 # Extract the first word of "$ac_prog", so it can be a program name with args.
7554 set dummy $ac_prog; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if test "${ac_cv_prog_BISON+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 if test -n "$BISON"; then
7561 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_prog_BISON="$ac_prog"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7574 done
7575 done
7576 IFS=$as_save_IFS
7580 BISON=$ac_cv_prog_BISON
7581 if test -n "$BISON"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7583 $as_echo "$BISON" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7590 test -n "$BISON" && break
7591 done
7592 test -n "$BISON" || BISON="$MISSING bison"
7594 case " $build_configdirs " in
7595 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7596 esac
7598 for ac_prog in gm4 gnum4 m4
7600 # Extract the first word of "$ac_prog", so it can be a program name with args.
7601 set dummy $ac_prog; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_prog_M4+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 if test -n "$M4"; then
7608 ac_cv_prog_M4="$M4" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_prog_M4="$ac_prog"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7623 IFS=$as_save_IFS
7627 M4=$ac_cv_prog_M4
7628 if test -n "$M4"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7630 $as_echo "$M4" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7637 test -n "$M4" && break
7638 done
7639 test -n "$M4" || M4="$MISSING m4"
7641 case " $build_configdirs " in
7642 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7643 esac
7645 for ac_prog in flex lex
7647 # Extract the first word of "$ac_prog", so it can be a program name with args.
7648 set dummy $ac_prog; ac_word=$2
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7650 $as_echo_n "checking for $ac_word... " >&6; }
7651 if test "${ac_cv_prog_LEX+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 if test -n "$LEX"; then
7655 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 for ac_exec_ext in '' $ac_executable_extensions; do
7663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7664 ac_cv_prog_LEX="$ac_prog"
7665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 break 2
7668 done
7669 done
7670 IFS=$as_save_IFS
7674 LEX=$ac_cv_prog_LEX
7675 if test -n "$LEX"; then
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7677 $as_echo "$LEX" >&6; }
7678 else
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7684 test -n "$LEX" && break
7685 done
7686 test -n "$LEX" || LEX="$MISSING flex"
7688 case " $build_configdirs " in
7689 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7690 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7691 esac
7693 for ac_prog in flex
7695 # Extract the first word of "$ac_prog", so it can be a program name with args.
7696 set dummy $ac_prog; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if test "${ac_cv_prog_FLEX+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$FLEX"; then
7703 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_FLEX="$ac_prog"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714 break 2
7716 done
7717 done
7718 IFS=$as_save_IFS
7722 FLEX=$ac_cv_prog_FLEX
7723 if test -n "$FLEX"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7725 $as_echo "$FLEX" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7732 test -n "$FLEX" && break
7733 done
7734 test -n "$FLEX" || FLEX="$MISSING flex"
7736 case " $build_configdirs " in
7737 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7738 esac
7740 for ac_prog in makeinfo
7742 # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 if test -n "$MAKEINFO"; then
7750 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759 ac_cv_prog_MAKEINFO="$ac_prog"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7763 done
7764 done
7765 IFS=$as_save_IFS
7769 MAKEINFO=$ac_cv_prog_MAKEINFO
7770 if test -n "$MAKEINFO"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7772 $as_echo "$MAKEINFO" >&6; }
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7779 test -n "$MAKEINFO" && break
7780 done
7781 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7783 case " $build_configdirs " in
7784 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7787 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7788 # higher, else we use the "missing" dummy.
7789 if ${MAKEINFO} --version \
7790 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7792 else
7793 MAKEINFO="$MISSING makeinfo"
7797 esac
7799 # FIXME: expect and dejagnu may become build tools?
7801 for ac_prog in expect
7803 # Extract the first word of "$ac_prog", so it can be a program name with args.
7804 set dummy $ac_prog; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 if test -n "$EXPECT"; then
7811 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7820 ac_cv_prog_EXPECT="$ac_prog"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7824 done
7825 done
7826 IFS=$as_save_IFS
7830 EXPECT=$ac_cv_prog_EXPECT
7831 if test -n "$EXPECT"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7833 $as_echo "$EXPECT" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7840 test -n "$EXPECT" && break
7841 done
7842 test -n "$EXPECT" || EXPECT="expect"
7844 case " $configdirs " in
7845 *" expect "*)
7846 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7848 esac
7850 for ac_prog in runtest
7852 # Extract the first word of "$ac_prog", so it can be a program name with args.
7853 set dummy $ac_prog; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 if test -n "$RUNTEST"; then
7860 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7865 IFS=$as_save_IFS
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_RUNTEST="$ac_prog"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 break 2
7873 done
7874 done
7875 IFS=$as_save_IFS
7879 RUNTEST=$ac_cv_prog_RUNTEST
7880 if test -n "$RUNTEST"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7882 $as_echo "$RUNTEST" >&6; }
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7889 test -n "$RUNTEST" && break
7890 done
7891 test -n "$RUNTEST" || RUNTEST="runtest"
7893 case " $configdirs " in
7894 *" dejagnu "*)
7895 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7897 esac
7900 # Host tools.
7901 ncn_tool_prefix=
7902 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7903 ncn_target_tool_prefix=
7904 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7908 if test -n "$AR"; then
7909 ac_cv_prog_AR=$AR
7910 elif test -n "$ac_cv_prog_AR"; then
7911 AR=$ac_cv_prog_AR
7914 if test -n "$ac_cv_prog_AR"; then
7915 for ncn_progname in ar; do
7916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7917 set dummy ${ncn_progname}; ac_word=$2
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919 $as_echo_n "checking for $ac_word... " >&6; }
7920 if test "${ac_cv_prog_AR+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 if test -n "$AR"; then
7924 ac_cv_prog_AR="$AR" # Let the user override the test.
7925 else
7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7933 ac_cv_prog_AR="${ncn_progname}"
7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 break 2
7937 done
7938 done
7939 IFS=$as_save_IFS
7943 AR=$ac_cv_prog_AR
7944 if test -n "$AR"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7946 $as_echo "$AR" >&6; }
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7953 done
7956 for ncn_progname in ar; do
7957 if test -n "$ncn_tool_prefix"; then
7958 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7959 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_AR+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$AR"; then
7966 ac_cv_prog_AR="$AR" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7981 IFS=$as_save_IFS
7985 AR=$ac_cv_prog_AR
7986 if test -n "$AR"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7988 $as_echo "$AR" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7998 set dummy ${ncn_progname}; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if test "${ac_cv_prog_AR+set}" = set; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 if test -n "$AR"; then
8005 ac_cv_prog_AR="$AR" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8014 ac_cv_prog_AR="${ncn_progname}"
8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8018 done
8019 done
8020 IFS=$as_save_IFS
8024 AR=$ac_cv_prog_AR
8025 if test -n "$AR"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8027 $as_echo "$AR" >&6; }
8028 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8035 test -n "$ac_cv_prog_AR" && break
8036 done
8038 if test -z "$ac_cv_prog_AR" ; then
8039 set dummy ar
8040 if test $build = $host ; then
8041 AR="$2"
8042 else
8043 AR="${ncn_tool_prefix}$2"
8049 if test -n "$AS"; then
8050 ac_cv_prog_AS=$AS
8051 elif test -n "$ac_cv_prog_AS"; then
8052 AS=$ac_cv_prog_AS
8055 if test -n "$ac_cv_prog_AS"; then
8056 for ncn_progname in as; do
8057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8058 set dummy ${ncn_progname}; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if test "${ac_cv_prog_AS+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 if test -n "$AS"; then
8065 ac_cv_prog_AS="$AS" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8074 ac_cv_prog_AS="${ncn_progname}"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8078 done
8079 done
8080 IFS=$as_save_IFS
8084 AS=$ac_cv_prog_AS
8085 if test -n "$AS"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8087 $as_echo "$AS" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8094 done
8097 for ncn_progname in as; do
8098 if test -n "$ncn_tool_prefix"; then
8099 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8100 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if test "${ac_cv_prog_AS+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 if test -n "$AS"; then
8107 ac_cv_prog_AS="$AS" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8120 done
8121 done
8122 IFS=$as_save_IFS
8126 AS=$ac_cv_prog_AS
8127 if test -n "$AS"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8129 $as_echo "$AS" >&6; }
8130 else
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8137 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8139 set dummy ${ncn_progname}; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if test "${ac_cv_prog_AS+set}" = set; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 if test -n "$AS"; then
8146 ac_cv_prog_AS="$AS" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8155 ac_cv_prog_AS="${ncn_progname}"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8159 done
8160 done
8161 IFS=$as_save_IFS
8165 AS=$ac_cv_prog_AS
8166 if test -n "$AS"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8168 $as_echo "$AS" >&6; }
8169 else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8176 test -n "$ac_cv_prog_AS" && break
8177 done
8179 if test -z "$ac_cv_prog_AS" ; then
8180 set dummy as
8181 if test $build = $host ; then
8182 AS="$2"
8183 else
8184 AS="${ncn_tool_prefix}$2"
8190 if test -n "$DLLTOOL"; then
8191 ac_cv_prog_DLLTOOL=$DLLTOOL
8192 elif test -n "$ac_cv_prog_DLLTOOL"; then
8193 DLLTOOL=$ac_cv_prog_DLLTOOL
8196 if test -n "$ac_cv_prog_DLLTOOL"; then
8197 for ncn_progname in dlltool; do
8198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8199 set dummy ${ncn_progname}; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 if test -n "$DLLTOOL"; then
8206 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215 ac_cv_prog_DLLTOOL="${ncn_progname}"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8219 done
8220 done
8221 IFS=$as_save_IFS
8225 DLLTOOL=$ac_cv_prog_DLLTOOL
8226 if test -n "$DLLTOOL"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8228 $as_echo "$DLLTOOL" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8235 done
8238 for ncn_progname in dlltool; do
8239 if test -n "$ncn_tool_prefix"; then
8240 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8241 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 if test -n "$DLLTOOL"; then
8248 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8249 else
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8253 IFS=$as_save_IFS
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259 break 2
8261 done
8262 done
8263 IFS=$as_save_IFS
8267 DLLTOOL=$ac_cv_prog_DLLTOOL
8268 if test -n "$DLLTOOL"; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8270 $as_echo "$DLLTOOL" >&6; }
8271 else
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8278 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8280 set dummy ${ncn_progname}; ac_word=$2
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282 $as_echo_n "checking for $ac_word... " >&6; }
8283 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 if test -n "$DLLTOOL"; then
8287 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8288 else
8289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8290 for as_dir in $PATH
8292 IFS=$as_save_IFS
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8296 ac_cv_prog_DLLTOOL="${ncn_progname}"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 break 2
8300 done
8301 done
8302 IFS=$as_save_IFS
8306 DLLTOOL=$ac_cv_prog_DLLTOOL
8307 if test -n "$DLLTOOL"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8309 $as_echo "$DLLTOOL" >&6; }
8310 else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }
8317 test -n "$ac_cv_prog_DLLTOOL" && break
8318 done
8320 if test -z "$ac_cv_prog_DLLTOOL" ; then
8321 set dummy dlltool
8322 if test $build = $host ; then
8323 DLLTOOL="$2"
8324 else
8325 DLLTOOL="${ncn_tool_prefix}$2"
8331 if test -n "$LD"; then
8332 ac_cv_prog_LD=$LD
8333 elif test -n "$ac_cv_prog_LD"; then
8334 LD=$ac_cv_prog_LD
8337 if test -n "$ac_cv_prog_LD"; then
8338 for ncn_progname in ld; do
8339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8340 set dummy ${ncn_progname}; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_LD+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 if test -n "$LD"; then
8347 ac_cv_prog_LD="$LD" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_LD="${ncn_progname}"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8360 done
8361 done
8362 IFS=$as_save_IFS
8366 LD=$ac_cv_prog_LD
8367 if test -n "$LD"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8369 $as_echo "$LD" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8376 done
8379 for ncn_progname in ld; do
8380 if test -n "$ncn_tool_prefix"; then
8381 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8382 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_prog_LD+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 if test -n "$LD"; then
8389 ac_cv_prog_LD="$LD" # Let the user override the test.
8390 else
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8402 done
8403 done
8404 IFS=$as_save_IFS
8408 LD=$ac_cv_prog_LD
8409 if test -n "$LD"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8411 $as_echo "$LD" >&6; }
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8419 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8421 set dummy ${ncn_progname}; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if test "${ac_cv_prog_LD+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 if test -n "$LD"; then
8428 ac_cv_prog_LD="$LD" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_prog_LD="${ncn_progname}"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 break 2
8441 done
8442 done
8443 IFS=$as_save_IFS
8447 LD=$ac_cv_prog_LD
8448 if test -n "$LD"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8450 $as_echo "$LD" >&6; }
8451 else
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8458 test -n "$ac_cv_prog_LD" && break
8459 done
8461 if test -z "$ac_cv_prog_LD" ; then
8462 set dummy ld
8463 if test $build = $host ; then
8464 LD="$2"
8465 else
8466 LD="${ncn_tool_prefix}$2"
8472 if test -n "$LIPO"; then
8473 ac_cv_prog_LIPO=$LIPO
8474 elif test -n "$ac_cv_prog_LIPO"; then
8475 LIPO=$ac_cv_prog_LIPO
8478 if test -n "$ac_cv_prog_LIPO"; then
8479 for ncn_progname in lipo; do
8480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8481 set dummy ${ncn_progname}; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if test "${ac_cv_prog_LIPO+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 if test -n "$LIPO"; then
8488 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8489 else
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 for as_dir in $PATH
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8497 ac_cv_prog_LIPO="${ncn_progname}"
8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 break 2
8501 done
8502 done
8503 IFS=$as_save_IFS
8507 LIPO=$ac_cv_prog_LIPO
8508 if test -n "$LIPO"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8510 $as_echo "$LIPO" >&6; }
8511 else
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8517 done
8520 for ncn_progname in lipo; do
8521 if test -n "$ncn_tool_prefix"; then
8522 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8523 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 $as_echo_n "checking for $ac_word... " >&6; }
8526 if test "${ac_cv_prog_LIPO+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 if test -n "$LIPO"; then
8530 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8531 else
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 break 2
8543 done
8544 done
8545 IFS=$as_save_IFS
8549 LIPO=$ac_cv_prog_LIPO
8550 if test -n "$LIPO"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8552 $as_echo "$LIPO" >&6; }
8553 else
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8555 $as_echo "no" >&6; }
8560 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8561 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8562 set dummy ${ncn_progname}; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if test "${ac_cv_prog_LIPO+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 if test -n "$LIPO"; then
8569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8574 IFS=$as_save_IFS
8575 test -z "$as_dir" && as_dir=.
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578 ac_cv_prog_LIPO="${ncn_progname}"
8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 break 2
8582 done
8583 done
8584 IFS=$as_save_IFS
8588 LIPO=$ac_cv_prog_LIPO
8589 if test -n "$LIPO"; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8591 $as_echo "$LIPO" >&6; }
8592 else
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8599 test -n "$ac_cv_prog_LIPO" && break
8600 done
8602 if test -z "$ac_cv_prog_LIPO" ; then
8603 set dummy lipo
8604 if test $build = $host ; then
8605 LIPO="$2"
8606 else
8607 LIPO="${ncn_tool_prefix}$2"
8613 if test -n "$NM"; then
8614 ac_cv_prog_NM=$NM
8615 elif test -n "$ac_cv_prog_NM"; then
8616 NM=$ac_cv_prog_NM
8619 if test -n "$ac_cv_prog_NM"; then
8620 for ncn_progname in nm; do
8621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8622 set dummy ${ncn_progname}; ac_word=$2
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624 $as_echo_n "checking for $ac_word... " >&6; }
8625 if test "${ac_cv_prog_NM+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 if test -n "$NM"; then
8629 ac_cv_prog_NM="$NM" # Let the user override the test.
8630 else
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in $PATH
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8638 ac_cv_prog_NM="${ncn_progname}"
8639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8642 done
8643 done
8644 IFS=$as_save_IFS
8648 NM=$ac_cv_prog_NM
8649 if test -n "$NM"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8651 $as_echo "$NM" >&6; }
8652 else
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8658 done
8661 for ncn_progname in nm; do
8662 if test -n "$ncn_tool_prefix"; then
8663 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8664 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666 $as_echo_n "checking for $ac_word... " >&6; }
8667 if test "${ac_cv_prog_NM+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 if test -n "$NM"; then
8671 ac_cv_prog_NM="$NM" # Let the user override the test.
8672 else
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8684 done
8685 done
8686 IFS=$as_save_IFS
8690 NM=$ac_cv_prog_NM
8691 if test -n "$NM"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8693 $as_echo "$NM" >&6; }
8694 else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696 $as_echo "no" >&6; }
8701 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8703 set dummy ${ncn_progname}; ac_word=$2
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8705 $as_echo_n "checking for $ac_word... " >&6; }
8706 if test "${ac_cv_prog_NM+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 if test -n "$NM"; then
8710 ac_cv_prog_NM="$NM" # Let the user override the test.
8711 else
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8715 IFS=$as_save_IFS
8716 test -z "$as_dir" && as_dir=.
8717 for ac_exec_ext in '' $ac_executable_extensions; do
8718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719 ac_cv_prog_NM="${ncn_progname}"
8720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 break 2
8723 done
8724 done
8725 IFS=$as_save_IFS
8729 NM=$ac_cv_prog_NM
8730 if test -n "$NM"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8732 $as_echo "$NM" >&6; }
8733 else
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8740 test -n "$ac_cv_prog_NM" && break
8741 done
8743 if test -z "$ac_cv_prog_NM" ; then
8744 set dummy nm
8745 if test $build = $host ; then
8746 NM="$2"
8747 else
8748 NM="${ncn_tool_prefix}$2"
8754 if test -n "$RANLIB"; then
8755 ac_cv_prog_RANLIB=$RANLIB
8756 elif test -n "$ac_cv_prog_RANLIB"; then
8757 RANLIB=$ac_cv_prog_RANLIB
8760 if test -n "$ac_cv_prog_RANLIB"; then
8761 for ncn_progname in ranlib; do
8762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8763 set dummy ${ncn_progname}; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 if test -n "$RANLIB"; then
8770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8771 else
8772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 for as_dir in $PATH
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8779 ac_cv_prog_RANLIB="${ncn_progname}"
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 break 2
8783 done
8784 done
8785 IFS=$as_save_IFS
8789 RANLIB=$ac_cv_prog_RANLIB
8790 if test -n "$RANLIB"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8792 $as_echo "$RANLIB" >&6; }
8793 else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8799 done
8802 for ncn_progname in ranlib; do
8803 if test -n "$ncn_tool_prefix"; then
8804 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8805 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 if test -n "$RANLIB"; then
8812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8813 else
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8817 IFS=$as_save_IFS
8818 test -z "$as_dir" && as_dir=.
8819 for ac_exec_ext in '' $ac_executable_extensions; do
8820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8821 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823 break 2
8825 done
8826 done
8827 IFS=$as_save_IFS
8831 RANLIB=$ac_cv_prog_RANLIB
8832 if test -n "$RANLIB"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8834 $as_echo "$RANLIB" >&6; }
8835 else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8842 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8843 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8844 set dummy ${ncn_progname}; ac_word=$2
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8846 $as_echo_n "checking for $ac_word... " >&6; }
8847 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 if test -n "$RANLIB"; then
8851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8852 else
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 for as_dir in $PATH
8856 IFS=$as_save_IFS
8857 test -z "$as_dir" && as_dir=.
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8860 ac_cv_prog_RANLIB="${ncn_progname}"
8861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8862 break 2
8864 done
8865 done
8866 IFS=$as_save_IFS
8870 RANLIB=$ac_cv_prog_RANLIB
8871 if test -n "$RANLIB"; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8873 $as_echo "$RANLIB" >&6; }
8874 else
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876 $as_echo "no" >&6; }
8881 test -n "$ac_cv_prog_RANLIB" && break
8882 done
8884 if test -z "$ac_cv_prog_RANLIB" ; then
8885 RANLIB="true"
8890 if test -n "$STRIP"; then
8891 ac_cv_prog_STRIP=$STRIP
8892 elif test -n "$ac_cv_prog_STRIP"; then
8893 STRIP=$ac_cv_prog_STRIP
8896 if test -n "$ac_cv_prog_STRIP"; then
8897 for ncn_progname in strip; do
8898 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8899 set dummy ${ncn_progname}; ac_word=$2
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901 $as_echo_n "checking for $ac_word... " >&6; }
8902 if test "${ac_cv_prog_STRIP+set}" = set; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 if test -n "$STRIP"; then
8906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915 ac_cv_prog_STRIP="${ncn_progname}"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8919 done
8920 done
8921 IFS=$as_save_IFS
8925 STRIP=$ac_cv_prog_STRIP
8926 if test -n "$STRIP"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8928 $as_echo "$STRIP" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8935 done
8938 for ncn_progname in strip; do
8939 if test -n "$ncn_tool_prefix"; then
8940 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8941 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943 $as_echo_n "checking for $ac_word... " >&6; }
8944 if test "${ac_cv_prog_STRIP+set}" = set; then :
8945 $as_echo_n "(cached) " >&6
8946 else
8947 if test -n "$STRIP"; then
8948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8949 else
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8961 done
8962 done
8963 IFS=$as_save_IFS
8967 STRIP=$ac_cv_prog_STRIP
8968 if test -n "$STRIP"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8970 $as_echo "$STRIP" >&6; }
8971 else
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8978 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8980 set dummy ${ncn_progname}; ac_word=$2
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 $as_echo_n "checking for $ac_word... " >&6; }
8983 if test "${ac_cv_prog_STRIP+set}" = set; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 if test -n "$STRIP"; then
8987 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8988 else
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8996 ac_cv_prog_STRIP="${ncn_progname}"
8997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 break 2
9000 done
9001 done
9002 IFS=$as_save_IFS
9006 STRIP=$ac_cv_prog_STRIP
9007 if test -n "$STRIP"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9009 $as_echo "$STRIP" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012 $as_echo "no" >&6; }
9017 test -n "$ac_cv_prog_STRIP" && break
9018 done
9020 if test -z "$ac_cv_prog_STRIP" ; then
9021 STRIP="true"
9026 if test -n "$WINDRES"; then
9027 ac_cv_prog_WINDRES=$WINDRES
9028 elif test -n "$ac_cv_prog_WINDRES"; then
9029 WINDRES=$ac_cv_prog_WINDRES
9032 if test -n "$ac_cv_prog_WINDRES"; then
9033 for ncn_progname in windres; do
9034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9035 set dummy ${ncn_progname}; ac_word=$2
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037 $as_echo_n "checking for $ac_word... " >&6; }
9038 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 if test -n "$WINDRES"; then
9042 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9043 else
9044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045 for as_dir in $PATH
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9051 ac_cv_prog_WINDRES="${ncn_progname}"
9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9053 break 2
9055 done
9056 done
9057 IFS=$as_save_IFS
9061 WINDRES=$ac_cv_prog_WINDRES
9062 if test -n "$WINDRES"; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9064 $as_echo "$WINDRES" >&6; }
9065 else
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 $as_echo "no" >&6; }
9071 done
9074 for ncn_progname in windres; do
9075 if test -n "$ncn_tool_prefix"; then
9076 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9077 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 if test -n "$WINDRES"; then
9084 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9089 IFS=$as_save_IFS
9090 test -z "$as_dir" && as_dir=.
9091 for ac_exec_ext in '' $ac_executable_extensions; do
9092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095 break 2
9097 done
9098 done
9099 IFS=$as_save_IFS
9103 WINDRES=$ac_cv_prog_WINDRES
9104 if test -n "$WINDRES"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9106 $as_echo "$WINDRES" >&6; }
9107 else
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9114 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9116 set dummy ${ncn_progname}; ac_word=$2
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118 $as_echo_n "checking for $ac_word... " >&6; }
9119 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 if test -n "$WINDRES"; then
9123 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9124 else
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132 ac_cv_prog_WINDRES="${ncn_progname}"
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9136 done
9137 done
9138 IFS=$as_save_IFS
9142 WINDRES=$ac_cv_prog_WINDRES
9143 if test -n "$WINDRES"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9145 $as_echo "$WINDRES" >&6; }
9146 else
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9153 test -n "$ac_cv_prog_WINDRES" && break
9154 done
9156 if test -z "$ac_cv_prog_WINDRES" ; then
9157 set dummy windres
9158 if test $build = $host ; then
9159 WINDRES="$2"
9160 else
9161 WINDRES="${ncn_tool_prefix}$2"
9167 if test -n "$WINDMC"; then
9168 ac_cv_prog_WINDMC=$WINDMC
9169 elif test -n "$ac_cv_prog_WINDMC"; then
9170 WINDMC=$ac_cv_prog_WINDMC
9173 if test -n "$ac_cv_prog_WINDMC"; then
9174 for ncn_progname in windmc; do
9175 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9176 set dummy ${ncn_progname}; ac_word=$2
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178 $as_echo_n "checking for $ac_word... " >&6; }
9179 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 if test -n "$WINDMC"; then
9183 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9184 else
9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 for as_dir in $PATH
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9192 ac_cv_prog_WINDMC="${ncn_progname}"
9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9194 break 2
9196 done
9197 done
9198 IFS=$as_save_IFS
9202 WINDMC=$ac_cv_prog_WINDMC
9203 if test -n "$WINDMC"; then
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9205 $as_echo "$WINDMC" >&6; }
9206 else
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208 $as_echo "no" >&6; }
9212 done
9215 for ncn_progname in windmc; do
9216 if test -n "$ncn_tool_prefix"; then
9217 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9218 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220 $as_echo_n "checking for $ac_word... " >&6; }
9221 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 if test -n "$WINDMC"; then
9225 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9226 else
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 for as_dir in $PATH
9230 IFS=$as_save_IFS
9231 test -z "$as_dir" && as_dir=.
9232 for ac_exec_ext in '' $ac_executable_extensions; do
9233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9234 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236 break 2
9238 done
9239 done
9240 IFS=$as_save_IFS
9244 WINDMC=$ac_cv_prog_WINDMC
9245 if test -n "$WINDMC"; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9247 $as_echo "$WINDMC" >&6; }
9248 else
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9255 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9257 set dummy ${ncn_progname}; ac_word=$2
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9259 $as_echo_n "checking for $ac_word... " >&6; }
9260 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 if test -n "$WINDMC"; then
9264 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9265 else
9266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267 for as_dir in $PATH
9269 IFS=$as_save_IFS
9270 test -z "$as_dir" && as_dir=.
9271 for ac_exec_ext in '' $ac_executable_extensions; do
9272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9273 ac_cv_prog_WINDMC="${ncn_progname}"
9274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 break 2
9277 done
9278 done
9279 IFS=$as_save_IFS
9283 WINDMC=$ac_cv_prog_WINDMC
9284 if test -n "$WINDMC"; then
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9286 $as_echo "$WINDMC" >&6; }
9287 else
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 $as_echo "no" >&6; }
9294 test -n "$ac_cv_prog_WINDMC" && break
9295 done
9297 if test -z "$ac_cv_prog_WINDMC" ; then
9298 set dummy windmc
9299 if test $build = $host ; then
9300 WINDMC="$2"
9301 else
9302 WINDMC="${ncn_tool_prefix}$2"
9308 if test -n "$OBJCOPY"; then
9309 ac_cv_prog_OBJCOPY=$OBJCOPY
9310 elif test -n "$ac_cv_prog_OBJCOPY"; then
9311 OBJCOPY=$ac_cv_prog_OBJCOPY
9314 if test -n "$ac_cv_prog_OBJCOPY"; then
9315 for ncn_progname in objcopy; do
9316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9317 set dummy ${ncn_progname}; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 if test -n "$OBJCOPY"; then
9324 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9325 else
9326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in $PATH
9329 IFS=$as_save_IFS
9330 test -z "$as_dir" && as_dir=.
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9333 ac_cv_prog_OBJCOPY="${ncn_progname}"
9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335 break 2
9337 done
9338 done
9339 IFS=$as_save_IFS
9343 OBJCOPY=$ac_cv_prog_OBJCOPY
9344 if test -n "$OBJCOPY"; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9346 $as_echo "$OBJCOPY" >&6; }
9347 else
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 $as_echo "no" >&6; }
9353 done
9356 for ncn_progname in objcopy; do
9357 if test -n "$ncn_tool_prefix"; then
9358 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9359 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 if test -n "$OBJCOPY"; then
9366 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9367 else
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369 for as_dir in $PATH
9371 IFS=$as_save_IFS
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9377 break 2
9379 done
9380 done
9381 IFS=$as_save_IFS
9385 OBJCOPY=$ac_cv_prog_OBJCOPY
9386 if test -n "$OBJCOPY"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9388 $as_echo "$OBJCOPY" >&6; }
9389 else
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9396 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9398 set dummy ${ncn_progname}; ac_word=$2
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9400 $as_echo_n "checking for $ac_word... " >&6; }
9401 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9402 $as_echo_n "(cached) " >&6
9403 else
9404 if test -n "$OBJCOPY"; then
9405 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9406 else
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in $PATH
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9414 ac_cv_prog_OBJCOPY="${ncn_progname}"
9415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 break 2
9418 done
9419 done
9420 IFS=$as_save_IFS
9424 OBJCOPY=$ac_cv_prog_OBJCOPY
9425 if test -n "$OBJCOPY"; then
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9427 $as_echo "$OBJCOPY" >&6; }
9428 else
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430 $as_echo "no" >&6; }
9435 test -n "$ac_cv_prog_OBJCOPY" && break
9436 done
9438 if test -z "$ac_cv_prog_OBJCOPY" ; then
9439 set dummy objcopy
9440 if test $build = $host ; then
9441 OBJCOPY="$2"
9442 else
9443 OBJCOPY="${ncn_tool_prefix}$2"
9449 if test -n "$OBJDUMP"; then
9450 ac_cv_prog_OBJDUMP=$OBJDUMP
9451 elif test -n "$ac_cv_prog_OBJDUMP"; then
9452 OBJDUMP=$ac_cv_prog_OBJDUMP
9455 if test -n "$ac_cv_prog_OBJDUMP"; then
9456 for ncn_progname in objdump; do
9457 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9458 set dummy ${ncn_progname}; ac_word=$2
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9460 $as_echo_n "checking for $ac_word... " >&6; }
9461 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 if test -n "$OBJDUMP"; then
9465 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9466 else
9467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 for as_dir in $PATH
9470 IFS=$as_save_IFS
9471 test -z "$as_dir" && as_dir=.
9472 for ac_exec_ext in '' $ac_executable_extensions; do
9473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9474 ac_cv_prog_OBJDUMP="${ncn_progname}"
9475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9476 break 2
9478 done
9479 done
9480 IFS=$as_save_IFS
9484 OBJDUMP=$ac_cv_prog_OBJDUMP
9485 if test -n "$OBJDUMP"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9487 $as_echo "$OBJDUMP" >&6; }
9488 else
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 $as_echo "no" >&6; }
9494 done
9497 for ncn_progname in objdump; do
9498 if test -n "$ncn_tool_prefix"; then
9499 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9500 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9502 $as_echo_n "checking for $ac_word... " >&6; }
9503 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 if test -n "$OBJDUMP"; then
9507 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9508 else
9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510 for as_dir in $PATH
9512 IFS=$as_save_IFS
9513 test -z "$as_dir" && as_dir=.
9514 for ac_exec_ext in '' $ac_executable_extensions; do
9515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9516 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9518 break 2
9520 done
9521 done
9522 IFS=$as_save_IFS
9526 OBJDUMP=$ac_cv_prog_OBJDUMP
9527 if test -n "$OBJDUMP"; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9529 $as_echo "$OBJDUMP" >&6; }
9530 else
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9537 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9539 set dummy ${ncn_progname}; ac_word=$2
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541 $as_echo_n "checking for $ac_word... " >&6; }
9542 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 if test -n "$OBJDUMP"; then
9546 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9547 else
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9555 ac_cv_prog_OBJDUMP="${ncn_progname}"
9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9559 done
9560 done
9561 IFS=$as_save_IFS
9565 OBJDUMP=$ac_cv_prog_OBJDUMP
9566 if test -n "$OBJDUMP"; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9568 $as_echo "$OBJDUMP" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9576 test -n "$ac_cv_prog_OBJDUMP" && break
9577 done
9579 if test -z "$ac_cv_prog_OBJDUMP" ; then
9580 set dummy objdump
9581 if test $build = $host ; then
9582 OBJDUMP="$2"
9583 else
9584 OBJDUMP="${ncn_tool_prefix}$2"
9593 # Target tools.
9595 # Check whether --with-build-time-tools was given.
9596 if test "${with_build_time_tools+set}" = set; then :
9597 withval=$with_build_time_tools; case x"$withval" in
9598 x/*) ;;
9600 with_build_time_tools=
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9602 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9604 esac
9605 else
9606 with_build_time_tools=
9612 if test -n "$CC_FOR_TARGET"; then
9613 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9614 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9615 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9618 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9619 for ncn_progname in cc gcc; do
9620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9621 set dummy ${ncn_progname}; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 if test -n "$CC_FOR_TARGET"; then
9628 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9629 else
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $PATH
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9637 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 break 2
9641 done
9642 done
9643 IFS=$as_save_IFS
9647 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9648 if test -n "$CC_FOR_TARGET"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9650 $as_echo "$CC_FOR_TARGET" >&6; }
9651 else
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9657 done
9660 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9661 for ncn_progname in cc gcc; do
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9663 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9664 if test -x $with_build_time_tools/${ncn_progname}; then
9665 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9667 $as_echo "yes" >&6; }
9668 break
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9673 done
9676 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9677 for ncn_progname in cc gcc; do
9678 if test -n "$ncn_target_tool_prefix"; then
9679 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9680 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 if test -n "$CC_FOR_TARGET"; then
9687 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9688 else
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9700 done
9701 done
9702 IFS=$as_save_IFS
9706 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9707 if test -n "$CC_FOR_TARGET"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9709 $as_echo "$CC_FOR_TARGET" >&6; }
9710 else
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9717 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9719 set dummy ${ncn_progname}; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 if test -n "$CC_FOR_TARGET"; then
9726 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9727 else
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9739 done
9740 done
9741 IFS=$as_save_IFS
9745 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9746 if test -n "$CC_FOR_TARGET"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9748 $as_echo "$CC_FOR_TARGET" >&6; }
9749 else
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9756 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9757 done
9760 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9761 set dummy cc gcc
9762 if test $build = $target ; then
9763 CC_FOR_TARGET="$2"
9764 else
9765 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9767 else
9768 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9773 if test -n "$CXX_FOR_TARGET"; then
9774 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9775 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9776 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9779 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9780 for ncn_progname in c++ g++ cxx gxx; do
9781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9782 set dummy ${ncn_progname}; ac_word=$2
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 $as_echo_n "checking for $ac_word... " >&6; }
9785 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 if test -n "$CXX_FOR_TARGET"; then
9789 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9790 else
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9798 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 break 2
9802 done
9803 done
9804 IFS=$as_save_IFS
9808 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9809 if test -n "$CXX_FOR_TARGET"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9811 $as_echo "$CXX_FOR_TARGET" >&6; }
9812 else
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9818 done
9821 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9822 for ncn_progname in c++ g++ cxx gxx; do
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9824 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9825 if test -x $with_build_time_tools/${ncn_progname}; then
9826 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9828 $as_echo "yes" >&6; }
9829 break
9830 else
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9834 done
9837 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9838 for ncn_progname in c++ g++ cxx gxx; do
9839 if test -n "$ncn_target_tool_prefix"; then
9840 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9841 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 if test -n "$CXX_FOR_TARGET"; then
9848 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9849 else
9850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 for as_dir in $PATH
9853 IFS=$as_save_IFS
9854 test -z "$as_dir" && as_dir=.
9855 for ac_exec_ext in '' $ac_executable_extensions; do
9856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9857 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9859 break 2
9861 done
9862 done
9863 IFS=$as_save_IFS
9867 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9868 if test -n "$CXX_FOR_TARGET"; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9870 $as_echo "$CXX_FOR_TARGET" >&6; }
9871 else
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9878 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9880 set dummy ${ncn_progname}; ac_word=$2
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882 $as_echo_n "checking for $ac_word... " >&6; }
9883 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 if test -n "$CXX_FOR_TARGET"; then
9887 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9888 else
9889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 for as_dir in $PATH
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9896 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 break 2
9900 done
9901 done
9902 IFS=$as_save_IFS
9906 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9907 if test -n "$CXX_FOR_TARGET"; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9909 $as_echo "$CXX_FOR_TARGET" >&6; }
9910 else
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9917 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9918 done
9921 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9922 set dummy c++ g++ cxx gxx
9923 if test $build = $target ; then
9924 CXX_FOR_TARGET="$2"
9925 else
9926 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9928 else
9929 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9934 if test -n "$GCC_FOR_TARGET"; then
9935 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9936 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9937 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9940 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9941 for ncn_progname in gcc; do
9942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9943 set dummy ${ncn_progname}; ac_word=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
9948 else
9949 if test -n "$GCC_FOR_TARGET"; then
9950 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9951 else
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9963 done
9964 done
9965 IFS=$as_save_IFS
9969 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9970 if test -n "$GCC_FOR_TARGET"; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9972 $as_echo "$GCC_FOR_TARGET" >&6; }
9973 else
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9979 done
9982 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9983 for ncn_progname in gcc; do
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9985 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9986 if test -x $with_build_time_tools/${ncn_progname}; then
9987 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9989 $as_echo "yes" >&6; }
9990 break
9991 else
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9995 done
9998 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9999 for ncn_progname in gcc; do
10000 if test -n "$ncn_target_tool_prefix"; then
10001 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10002 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 if test -n "$GCC_FOR_TARGET"; then
10009 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10010 else
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in $PATH
10014 IFS=$as_save_IFS
10015 test -z "$as_dir" && as_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10018 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 break 2
10022 done
10023 done
10024 IFS=$as_save_IFS
10028 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10029 if test -n "$GCC_FOR_TARGET"; then
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10031 $as_echo "$GCC_FOR_TARGET" >&6; }
10032 else
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10034 $as_echo "no" >&6; }
10039 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10041 set dummy ${ncn_progname}; ac_word=$2
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 if test -n "$GCC_FOR_TARGET"; then
10048 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10049 else
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10061 done
10062 done
10063 IFS=$as_save_IFS
10067 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10068 if test -n "$GCC_FOR_TARGET"; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10070 $as_echo "$GCC_FOR_TARGET" >&6; }
10071 else
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10078 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10079 done
10082 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10083 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10084 else
10085 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10090 if test -n "$GCJ_FOR_TARGET"; then
10091 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10092 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10093 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10096 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10097 for ncn_progname in gcj; do
10098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10099 set dummy ${ncn_progname}; ac_word=$2
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10101 $as_echo_n "checking for $ac_word... " >&6; }
10102 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 if test -n "$GCJ_FOR_TARGET"; then
10106 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10107 else
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109 for as_dir in $PATH
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10119 done
10120 done
10121 IFS=$as_save_IFS
10125 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10126 if test -n "$GCJ_FOR_TARGET"; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10128 $as_echo "$GCJ_FOR_TARGET" >&6; }
10129 else
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10135 done
10138 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10139 for ncn_progname in gcj; do
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10141 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10142 if test -x $with_build_time_tools/${ncn_progname}; then
10143 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10145 $as_echo "yes" >&6; }
10146 break
10147 else
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10151 done
10154 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10155 for ncn_progname in gcj; do
10156 if test -n "$ncn_target_tool_prefix"; then
10157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10158 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160 $as_echo_n "checking for $ac_word... " >&6; }
10161 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 if test -n "$GCJ_FOR_TARGET"; then
10165 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10166 else
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10174 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10178 done
10179 done
10180 IFS=$as_save_IFS
10184 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10185 if test -n "$GCJ_FOR_TARGET"; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10187 $as_echo "$GCJ_FOR_TARGET" >&6; }
10188 else
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190 $as_echo "no" >&6; }
10195 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10197 set dummy ${ncn_progname}; ac_word=$2
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10201 $as_echo_n "(cached) " >&6
10202 else
10203 if test -n "$GCJ_FOR_TARGET"; then
10204 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10205 else
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10209 IFS=$as_save_IFS
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10213 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10215 break 2
10217 done
10218 done
10219 IFS=$as_save_IFS
10223 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10224 if test -n "$GCJ_FOR_TARGET"; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10226 $as_echo "$GCJ_FOR_TARGET" >&6; }
10227 else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229 $as_echo "no" >&6; }
10234 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10235 done
10238 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10239 set dummy gcj
10240 if test $build = $target ; then
10241 GCJ_FOR_TARGET="$2"
10242 else
10243 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10245 else
10246 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10251 if test -n "$GFORTRAN_FOR_TARGET"; then
10252 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10253 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10254 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10257 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10258 for ncn_progname in gfortran; do
10259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10260 set dummy ${ncn_progname}; ac_word=$2
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10262 $as_echo_n "checking for $ac_word... " >&6; }
10263 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 if test -n "$GFORTRAN_FOR_TARGET"; then
10267 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10268 else
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10280 done
10281 done
10282 IFS=$as_save_IFS
10286 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10287 if test -n "$GFORTRAN_FOR_TARGET"; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10289 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10290 else
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292 $as_echo "no" >&6; }
10296 done
10299 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10300 for ncn_progname in gfortran; do
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10302 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10303 if test -x $with_build_time_tools/${ncn_progname}; then
10304 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10306 $as_echo "yes" >&6; }
10307 break
10308 else
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10310 $as_echo "no" >&6; }
10312 done
10315 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10316 for ncn_progname in gfortran; do
10317 if test -n "$ncn_target_tool_prefix"; then
10318 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10319 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 if test -n "$GFORTRAN_FOR_TARGET"; then
10326 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10327 else
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10331 IFS=$as_save_IFS
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10335 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 break 2
10339 done
10340 done
10341 IFS=$as_save_IFS
10345 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10346 if test -n "$GFORTRAN_FOR_TARGET"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10348 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10349 else
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10356 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10358 set dummy ${ncn_progname}; ac_word=$2
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10360 $as_echo_n "checking for $ac_word... " >&6; }
10361 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10362 $as_echo_n "(cached) " >&6
10363 else
10364 if test -n "$GFORTRAN_FOR_TARGET"; then
10365 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10366 else
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 for ac_exec_ext in '' $ac_executable_extensions; do
10373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10374 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 break 2
10378 done
10379 done
10380 IFS=$as_save_IFS
10384 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10385 if test -n "$GFORTRAN_FOR_TARGET"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10387 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10395 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10396 done
10399 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10400 set dummy gfortran
10401 if test $build = $target ; then
10402 GFORTRAN_FOR_TARGET="$2"
10403 else
10404 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10406 else
10407 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10412 if test -n "$GOC_FOR_TARGET"; then
10413 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10414 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10415 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10418 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10419 for ncn_progname in gccgo; do
10420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10421 set dummy ${ncn_progname}; ac_word=$2
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10423 $as_echo_n "checking for $ac_word... " >&6; }
10424 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10426 else
10427 if test -n "$GOC_FOR_TARGET"; then
10428 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10429 else
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10437 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10441 done
10442 done
10443 IFS=$as_save_IFS
10447 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10448 if test -n "$GOC_FOR_TARGET"; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10450 $as_echo "$GOC_FOR_TARGET" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453 $as_echo "no" >&6; }
10457 done
10460 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10461 for ncn_progname in gccgo; do
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10463 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10464 if test -x $with_build_time_tools/${ncn_progname}; then
10465 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10467 $as_echo "yes" >&6; }
10468 break
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10473 done
10476 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10477 for ncn_progname in gccgo; do
10478 if test -n "$ncn_target_tool_prefix"; then
10479 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10480 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10482 $as_echo_n "checking for $ac_word... " >&6; }
10483 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 if test -n "$GOC_FOR_TARGET"; then
10487 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10488 else
10489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 for ac_exec_ext in '' $ac_executable_extensions; do
10495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10496 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498 break 2
10500 done
10501 done
10502 IFS=$as_save_IFS
10506 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10507 if test -n "$GOC_FOR_TARGET"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10509 $as_echo "$GOC_FOR_TARGET" >&6; }
10510 else
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }
10517 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10519 set dummy ${ncn_progname}; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10521 $as_echo_n "checking for $ac_word... " >&6; }
10522 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 if test -n "$GOC_FOR_TARGET"; then
10526 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10527 else
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10535 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10539 done
10540 done
10541 IFS=$as_save_IFS
10545 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10546 if test -n "$GOC_FOR_TARGET"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10548 $as_echo "$GOC_FOR_TARGET" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10556 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10557 done
10560 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10561 set dummy gccgo
10562 if test $build = $target ; then
10563 GOC_FOR_TARGET="$2"
10564 else
10565 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10567 else
10568 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10573 cat > conftest.c << \EOF
10574 #ifdef __GNUC__
10575 gcc_yay;
10576 #endif
10578 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10579 have_gcc_for_target=yes
10580 else
10581 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10582 have_gcc_for_target=no
10584 rm conftest.c
10589 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10590 if test -n "$with_build_time_tools"; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10592 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10593 if test -x $with_build_time_tools/ar; then
10594 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10595 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10597 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10598 else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600 $as_echo "no" >&6; }
10602 elif test $build != $host && test $have_gcc_for_target = yes; then
10603 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10604 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10605 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10608 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10609 # Extract the first word of "ar", so it can be a program name with args.
10610 set dummy ar; ac_word=$2
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10612 $as_echo_n "checking for $ac_word... " >&6; }
10613 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 case $AR_FOR_TARGET in
10617 [\\/]* | ?:[\\/]*)
10618 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622 for as_dir in $gcc_cv_tool_dirs
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10628 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 break 2
10632 done
10633 done
10634 IFS=$as_save_IFS
10637 esac
10639 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10640 if test -n "$AR_FOR_TARGET"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10642 $as_echo "$AR_FOR_TARGET" >&6; }
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10650 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10653 if test -n "$AR_FOR_TARGET"; then
10654 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10655 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10656 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10659 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10660 for ncn_progname in ar; do
10661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10662 set dummy ${ncn_progname}; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 if test -n "$AR_FOR_TARGET"; then
10669 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10670 else
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10682 done
10683 done
10684 IFS=$as_save_IFS
10688 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10689 if test -n "$AR_FOR_TARGET"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10691 $as_echo "$AR_FOR_TARGET" >&6; }
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10698 done
10701 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10702 for ncn_progname in ar; do
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10704 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10705 if test -x $with_build_time_tools/${ncn_progname}; then
10706 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; }
10709 break
10710 else
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 $as_echo "no" >&6; }
10714 done
10717 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10718 for ncn_progname in ar; do
10719 if test -n "$ncn_target_tool_prefix"; then
10720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10721 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 if test -n "$AR_FOR_TARGET"; then
10728 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10729 else
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731 for as_dir in $PATH
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10737 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10741 done
10742 done
10743 IFS=$as_save_IFS
10747 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10748 if test -n "$AR_FOR_TARGET"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10750 $as_echo "$AR_FOR_TARGET" >&6; }
10751 else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10758 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10760 set dummy ${ncn_progname}; ac_word=$2
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10762 $as_echo_n "checking for $ac_word... " >&6; }
10763 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 if test -n "$AR_FOR_TARGET"; then
10767 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10768 else
10769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770 for as_dir in $PATH
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10776 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10780 done
10781 done
10782 IFS=$as_save_IFS
10786 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10787 if test -n "$AR_FOR_TARGET"; then
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10789 $as_echo "$AR_FOR_TARGET" >&6; }
10790 else
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10792 $as_echo "no" >&6; }
10797 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10798 done
10801 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10802 set dummy ar
10803 if test $build = $target ; then
10804 AR_FOR_TARGET="$2"
10805 else
10806 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10808 else
10809 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10812 else
10813 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10819 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10820 if test -n "$with_build_time_tools"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10822 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10823 if test -x $with_build_time_tools/as; then
10824 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10825 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10827 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10828 else
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 $as_echo "no" >&6; }
10832 elif test $build != $host && test $have_gcc_for_target = yes; then
10833 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10834 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10835 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10838 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10839 # Extract the first word of "as", so it can be a program name with args.
10840 set dummy as; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842 $as_echo_n "checking for $ac_word... " >&6; }
10843 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 case $AS_FOR_TARGET in
10847 [\\/]* | ?:[\\/]*)
10848 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $gcc_cv_tool_dirs
10854 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2
10862 done
10863 done
10864 IFS=$as_save_IFS
10867 esac
10869 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10870 if test -n "$AS_FOR_TARGET"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10872 $as_echo "$AS_FOR_TARGET" >&6; }
10873 else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10880 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10883 if test -n "$AS_FOR_TARGET"; then
10884 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10885 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10886 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10889 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10890 for ncn_progname in as; do
10891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10892 set dummy ${ncn_progname}; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894 $as_echo_n "checking for $ac_word... " >&6; }
10895 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898 if test -n "$AS_FOR_TARGET"; then
10899 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10900 else
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10908 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10910 break 2
10912 done
10913 done
10914 IFS=$as_save_IFS
10918 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10919 if test -n "$AS_FOR_TARGET"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10921 $as_echo "$AS_FOR_TARGET" >&6; }
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10928 done
10931 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10932 for ncn_progname in as; do
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10934 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10935 if test -x $with_build_time_tools/${ncn_progname}; then
10936 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10938 $as_echo "yes" >&6; }
10939 break
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942 $as_echo "no" >&6; }
10944 done
10947 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10948 for ncn_progname in as; do
10949 if test -n "$ncn_target_tool_prefix"; then
10950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10951 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10953 $as_echo_n "checking for $ac_word... " >&6; }
10954 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 if test -n "$AS_FOR_TARGET"; then
10958 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10959 else
10960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961 for as_dir in $PATH
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10967 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10971 done
10972 done
10973 IFS=$as_save_IFS
10977 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10978 if test -n "$AS_FOR_TARGET"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10980 $as_echo "$AS_FOR_TARGET" >&6; }
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 $as_echo "no" >&6; }
10988 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10990 set dummy ${ncn_progname}; ac_word=$2
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992 $as_echo_n "checking for $ac_word... " >&6; }
10993 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test -n "$AS_FOR_TARGET"; then
10997 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10998 else
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11006 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11010 done
11011 done
11012 IFS=$as_save_IFS
11016 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11017 if test -n "$AS_FOR_TARGET"; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11019 $as_echo "$AS_FOR_TARGET" >&6; }
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022 $as_echo "no" >&6; }
11027 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11028 done
11031 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11032 set dummy as
11033 if test $build = $target ; then
11034 AS_FOR_TARGET="$2"
11035 else
11036 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11038 else
11039 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11042 else
11043 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11049 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11050 if test -n "$with_build_time_tools"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11052 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11053 if test -x $with_build_time_tools/dlltool; then
11054 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11055 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11057 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11058 else
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11062 elif test $build != $host && test $have_gcc_for_target = yes; then
11063 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11064 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11065 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11068 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11069 # Extract the first word of "dlltool", so it can be a program name with args.
11070 set dummy dlltool; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076 case $DLLTOOL_FOR_TARGET in
11077 [\\/]* | ?:[\\/]*)
11078 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $gcc_cv_tool_dirs
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11088 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 break 2
11092 done
11093 done
11094 IFS=$as_save_IFS
11097 esac
11099 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11100 if test -n "$DLLTOOL_FOR_TARGET"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11102 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11110 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11113 if test -n "$DLLTOOL_FOR_TARGET"; then
11114 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11115 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11116 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11119 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11120 for ncn_progname in dlltool; do
11121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11122 set dummy ${ncn_progname}; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 if test -n "$DLLTOOL_FOR_TARGET"; then
11129 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11130 else
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11138 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11142 done
11143 done
11144 IFS=$as_save_IFS
11148 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11149 if test -n "$DLLTOOL_FOR_TARGET"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11151 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11158 done
11161 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11162 for ncn_progname in dlltool; do
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11164 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11165 if test -x $with_build_time_tools/${ncn_progname}; then
11166 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168 $as_echo "yes" >&6; }
11169 break
11170 else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11174 done
11177 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11178 for ncn_progname in dlltool; do
11179 if test -n "$ncn_target_tool_prefix"; then
11180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11181 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183 $as_echo_n "checking for $ac_word... " >&6; }
11184 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
11186 else
11187 if test -n "$DLLTOOL_FOR_TARGET"; then
11188 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11189 else
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11197 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11199 break 2
11201 done
11202 done
11203 IFS=$as_save_IFS
11207 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11208 if test -n "$DLLTOOL_FOR_TARGET"; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11210 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 $as_echo "no" >&6; }
11218 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11220 set dummy ${ncn_progname}; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 if test -n "$DLLTOOL_FOR_TARGET"; then
11227 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11228 else
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11240 done
11241 done
11242 IFS=$as_save_IFS
11246 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11247 if test -n "$DLLTOOL_FOR_TARGET"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11249 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11257 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11258 done
11261 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11262 set dummy dlltool
11263 if test $build = $target ; then
11264 DLLTOOL_FOR_TARGET="$2"
11265 else
11266 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11268 else
11269 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11272 else
11273 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11279 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11280 if test -n "$with_build_time_tools"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11282 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11283 if test -x $with_build_time_tools/ld; then
11284 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11285 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11287 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11292 elif test $build != $host && test $have_gcc_for_target = yes; then
11293 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11294 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11295 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11298 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11299 # Extract the first word of "ld", so it can be a program name with args.
11300 set dummy ld; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 case $LD_FOR_TARGET in
11307 [\\/]* | ?:[\\/]*)
11308 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $gcc_cv_tool_dirs
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11318 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11322 done
11323 done
11324 IFS=$as_save_IFS
11327 esac
11329 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11330 if test -n "$LD_FOR_TARGET"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11332 $as_echo "$LD_FOR_TARGET" >&6; }
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11340 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11343 if test -n "$LD_FOR_TARGET"; then
11344 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11345 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11346 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11349 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11350 for ncn_progname in ld; do
11351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11352 set dummy ${ncn_progname}; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354 $as_echo_n "checking for $ac_word... " >&6; }
11355 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 if test -n "$LD_FOR_TARGET"; then
11359 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11360 else
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11368 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11370 break 2
11372 done
11373 done
11374 IFS=$as_save_IFS
11378 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11379 if test -n "$LD_FOR_TARGET"; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11381 $as_echo "$LD_FOR_TARGET" >&6; }
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384 $as_echo "no" >&6; }
11388 done
11391 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11392 for ncn_progname in ld; do
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11394 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11395 if test -x $with_build_time_tools/${ncn_progname}; then
11396 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398 $as_echo "yes" >&6; }
11399 break
11400 else
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402 $as_echo "no" >&6; }
11404 done
11407 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11408 for ncn_progname in ld; do
11409 if test -n "$ncn_target_tool_prefix"; then
11410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11411 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 if test -n "$LD_FOR_TARGET"; then
11418 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11419 else
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11431 done
11432 done
11433 IFS=$as_save_IFS
11437 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11438 if test -n "$LD_FOR_TARGET"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11440 $as_echo "$LD_FOR_TARGET" >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11448 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11450 set dummy ${ncn_progname}; ac_word=$2
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452 $as_echo_n "checking for $ac_word... " >&6; }
11453 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 if test -n "$LD_FOR_TARGET"; then
11457 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11458 else
11459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460 for as_dir in $PATH
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11466 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11468 break 2
11470 done
11471 done
11472 IFS=$as_save_IFS
11476 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11477 if test -n "$LD_FOR_TARGET"; then
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11479 $as_echo "$LD_FOR_TARGET" >&6; }
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482 $as_echo "no" >&6; }
11487 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11488 done
11491 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11492 set dummy ld
11493 if test $build = $target ; then
11494 LD_FOR_TARGET="$2"
11495 else
11496 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11498 else
11499 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11502 else
11503 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11509 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11510 if test -n "$with_build_time_tools"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11512 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11513 if test -x $with_build_time_tools/lipo; then
11514 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11515 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11517 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11522 elif test $build != $host && test $have_gcc_for_target = yes; then
11523 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11524 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11525 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11528 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11529 # Extract the first word of "lipo", so it can be a program name with args.
11530 set dummy lipo; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 case $LIPO_FOR_TARGET in
11537 [\\/]* | ?:[\\/]*)
11538 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $gcc_cv_tool_dirs
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 break 2
11552 done
11553 done
11554 IFS=$as_save_IFS
11557 esac
11559 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11560 if test -n "$LIPO_FOR_TARGET"; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11562 $as_echo "$LIPO_FOR_TARGET" >&6; }
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11570 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11573 if test -n "$LIPO_FOR_TARGET"; then
11574 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11575 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11576 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11579 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11580 for ncn_progname in lipo; do
11581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11582 set dummy ${ncn_progname}; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584 $as_echo_n "checking for $ac_word... " >&6; }
11585 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
11587 else
11588 if test -n "$LIPO_FOR_TARGET"; then
11589 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11590 else
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11598 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 break 2
11602 done
11603 done
11604 IFS=$as_save_IFS
11608 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11609 if test -n "$LIPO_FOR_TARGET"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11611 $as_echo "$LIPO_FOR_TARGET" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11618 done
11621 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11622 for ncn_progname in lipo; do
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11624 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11625 if test -x $with_build_time_tools/${ncn_progname}; then
11626 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628 $as_echo "yes" >&6; }
11629 break
11630 else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11634 done
11637 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11638 for ncn_progname in lipo; do
11639 if test -n "$ncn_target_tool_prefix"; then
11640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643 $as_echo_n "checking for $ac_word... " >&6; }
11644 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test -n "$LIPO_FOR_TARGET"; then
11648 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11649 else
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11657 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11659 break 2
11661 done
11662 done
11663 IFS=$as_save_IFS
11667 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11668 if test -n "$LIPO_FOR_TARGET"; then
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11670 $as_echo "$LIPO_FOR_TARGET" >&6; }
11671 else
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673 $as_echo "no" >&6; }
11678 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11680 set dummy ${ncn_progname}; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 if test -n "$LIPO_FOR_TARGET"; then
11687 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11688 else
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11696 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11698 break 2
11700 done
11701 done
11702 IFS=$as_save_IFS
11706 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11707 if test -n "$LIPO_FOR_TARGET"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11709 $as_echo "$LIPO_FOR_TARGET" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11717 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11718 done
11721 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11722 set dummy lipo
11723 if test $build = $target ; then
11724 LIPO_FOR_TARGET="$2"
11725 else
11726 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11728 else
11729 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11732 else
11733 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11739 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11740 if test -n "$with_build_time_tools"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11742 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11743 if test -x $with_build_time_tools/nm; then
11744 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11745 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11747 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11748 else
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11752 elif test $build != $host && test $have_gcc_for_target = yes; then
11753 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11754 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11755 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11758 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11759 # Extract the first word of "nm", so it can be a program name with args.
11760 set dummy nm; ac_word=$2
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762 $as_echo_n "checking for $ac_word... " >&6; }
11763 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
11765 else
11766 case $NM_FOR_TARGET in
11767 [\\/]* | ?:[\\/]*)
11768 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $gcc_cv_tool_dirs
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11778 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11780 break 2
11782 done
11783 done
11784 IFS=$as_save_IFS
11787 esac
11789 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11790 if test -n "$NM_FOR_TARGET"; then
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11792 $as_echo "$NM_FOR_TARGET" >&6; }
11793 else
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 $as_echo "no" >&6; }
11800 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11803 if test -n "$NM_FOR_TARGET"; then
11804 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11805 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11806 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11809 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11810 for ncn_progname in nm; do
11811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11812 set dummy ${ncn_progname}; ac_word=$2
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814 $as_echo_n "checking for $ac_word... " >&6; }
11815 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 if test -n "$NM_FOR_TARGET"; then
11819 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11820 else
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11828 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11832 done
11833 done
11834 IFS=$as_save_IFS
11838 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11839 if test -n "$NM_FOR_TARGET"; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11841 $as_echo "$NM_FOR_TARGET" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11848 done
11851 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11852 for ncn_progname in nm; do
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11854 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11855 if test -x $with_build_time_tools/${ncn_progname}; then
11856 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11858 $as_echo "yes" >&6; }
11859 break
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11864 done
11867 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11868 for ncn_progname in nm; do
11869 if test -n "$ncn_target_tool_prefix"; then
11870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11871 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 if test -n "$NM_FOR_TARGET"; then
11878 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11879 else
11880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881 for as_dir in $PATH
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11887 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11889 break 2
11891 done
11892 done
11893 IFS=$as_save_IFS
11897 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11898 if test -n "$NM_FOR_TARGET"; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11900 $as_echo "$NM_FOR_TARGET" >&6; }
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903 $as_echo "no" >&6; }
11908 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11910 set dummy ${ncn_progname}; ac_word=$2
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 if test -n "$NM_FOR_TARGET"; then
11917 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11918 else
11919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920 for as_dir in $PATH
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
11925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11926 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 break 2
11930 done
11931 done
11932 IFS=$as_save_IFS
11936 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11937 if test -n "$NM_FOR_TARGET"; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11939 $as_echo "$NM_FOR_TARGET" >&6; }
11940 else
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942 $as_echo "no" >&6; }
11947 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11948 done
11951 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11952 set dummy nm
11953 if test $build = $target ; then
11954 NM_FOR_TARGET="$2"
11955 else
11956 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11958 else
11959 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11962 else
11963 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11969 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11970 if test -n "$with_build_time_tools"; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11972 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11973 if test -x $with_build_time_tools/objdump; then
11974 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11975 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11977 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11978 else
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11982 elif test $build != $host && test $have_gcc_for_target = yes; then
11983 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11984 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11985 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11988 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11989 # Extract the first word of "objdump", so it can be a program name with args.
11990 set dummy objdump; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11995 else
11996 case $OBJDUMP_FOR_TARGET in
11997 [\\/]* | ?:[\\/]*)
11998 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $gcc_cv_tool_dirs
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12008 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12012 done
12013 done
12014 IFS=$as_save_IFS
12017 esac
12019 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12020 if test -n "$OBJDUMP_FOR_TARGET"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12022 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12030 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12033 if test -n "$OBJDUMP_FOR_TARGET"; then
12034 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12035 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12036 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12039 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12040 for ncn_progname in objdump; do
12041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12042 set dummy ${ncn_progname}; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 if test -n "$OBJDUMP_FOR_TARGET"; then
12049 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12050 else
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12058 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060 break 2
12062 done
12063 done
12064 IFS=$as_save_IFS
12068 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12069 if test -n "$OBJDUMP_FOR_TARGET"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12071 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12078 done
12081 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12082 for ncn_progname in objdump; do
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12084 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12085 if test -x $with_build_time_tools/${ncn_progname}; then
12086 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088 $as_echo "yes" >&6; }
12089 break
12090 else
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092 $as_echo "no" >&6; }
12094 done
12097 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12098 for ncn_progname in objdump; do
12099 if test -n "$ncn_target_tool_prefix"; then
12100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12101 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103 $as_echo_n "checking for $ac_word... " >&6; }
12104 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 if test -n "$OBJDUMP_FOR_TARGET"; then
12108 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12109 else
12110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111 for as_dir in $PATH
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12117 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 break 2
12121 done
12122 done
12123 IFS=$as_save_IFS
12127 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12128 if test -n "$OBJDUMP_FOR_TARGET"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12130 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12138 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12140 set dummy ${ncn_progname}; ac_word=$2
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142 $as_echo_n "checking for $ac_word... " >&6; }
12143 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 if test -n "$OBJDUMP_FOR_TARGET"; then
12147 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12148 else
12149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150 for as_dir in $PATH
12152 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
12154 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12156 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 break 2
12160 done
12161 done
12162 IFS=$as_save_IFS
12166 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12167 if test -n "$OBJDUMP_FOR_TARGET"; then
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12169 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12170 else
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12177 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12178 done
12181 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12182 set dummy objdump
12183 if test $build = $target ; then
12184 OBJDUMP_FOR_TARGET="$2"
12185 else
12186 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12188 else
12189 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12192 else
12193 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12199 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12200 if test -n "$with_build_time_tools"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12202 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12203 if test -x $with_build_time_tools/ranlib; then
12204 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12205 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12207 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12208 else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12212 elif test $build != $host && test $have_gcc_for_target = yes; then
12213 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12214 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12215 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12218 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12219 # Extract the first word of "ranlib", so it can be a program name with args.
12220 set dummy ranlib; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 case $RANLIB_FOR_TARGET in
12227 [\\/]* | ?:[\\/]*)
12228 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $gcc_cv_tool_dirs
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12238 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12242 done
12243 done
12244 IFS=$as_save_IFS
12247 esac
12249 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12250 if test -n "$RANLIB_FOR_TARGET"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12252 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12260 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12263 if test -n "$RANLIB_FOR_TARGET"; then
12264 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12265 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12266 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12269 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12270 for ncn_progname in ranlib; do
12271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12272 set dummy ${ncn_progname}; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 if test -n "$RANLIB_FOR_TARGET"; then
12279 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12280 else
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12288 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12290 break 2
12292 done
12293 done
12294 IFS=$as_save_IFS
12298 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12299 if test -n "$RANLIB_FOR_TARGET"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12301 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12308 done
12311 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12312 for ncn_progname in ranlib; do
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12314 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12315 if test -x $with_build_time_tools/${ncn_progname}; then
12316 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12318 $as_echo "yes" >&6; }
12319 break
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12324 done
12327 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12328 for ncn_progname in ranlib; do
12329 if test -n "$ncn_target_tool_prefix"; then
12330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 if test -n "$RANLIB_FOR_TARGET"; then
12338 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12339 else
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12347 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12349 break 2
12351 done
12352 done
12353 IFS=$as_save_IFS
12357 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12358 if test -n "$RANLIB_FOR_TARGET"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12360 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12361 else
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12368 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12370 set dummy ${ncn_progname}; ac_word=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 if test -n "$RANLIB_FOR_TARGET"; then
12377 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12378 else
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
12384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12386 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 break 2
12390 done
12391 done
12392 IFS=$as_save_IFS
12396 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12397 if test -n "$RANLIB_FOR_TARGET"; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12399 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12407 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12408 done
12411 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12412 set dummy ranlib
12413 if test $build = $target ; then
12414 RANLIB_FOR_TARGET="$2"
12415 else
12416 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12418 else
12419 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12422 else
12423 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12429 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12430 if test -n "$with_build_time_tools"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12432 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12433 if test -x $with_build_time_tools/strip; then
12434 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12435 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12437 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12442 elif test $build != $host && test $have_gcc_for_target = yes; then
12443 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12444 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12445 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12448 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12449 # Extract the first word of "strip", so it can be a program name with args.
12450 set dummy strip; ac_word=$2
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452 $as_echo_n "checking for $ac_word... " >&6; }
12453 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12455 else
12456 case $STRIP_FOR_TARGET in
12457 [\\/]* | ?:[\\/]*)
12458 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $gcc_cv_tool_dirs
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 break 2
12472 done
12473 done
12474 IFS=$as_save_IFS
12477 esac
12479 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12480 if test -n "$STRIP_FOR_TARGET"; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12482 $as_echo "$STRIP_FOR_TARGET" >&6; }
12483 else
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485 $as_echo "no" >&6; }
12490 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12493 if test -n "$STRIP_FOR_TARGET"; then
12494 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12495 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12496 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12499 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12500 for ncn_progname in strip; do
12501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12502 set dummy ${ncn_progname}; ac_word=$2
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504 $as_echo_n "checking for $ac_word... " >&6; }
12505 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12507 else
12508 if test -n "$STRIP_FOR_TARGET"; then
12509 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12510 else
12511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
12516 for ac_exec_ext in '' $ac_executable_extensions; do
12517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12518 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520 break 2
12522 done
12523 done
12524 IFS=$as_save_IFS
12528 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12529 if test -n "$STRIP_FOR_TARGET"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12531 $as_echo "$STRIP_FOR_TARGET" >&6; }
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12538 done
12541 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12542 for ncn_progname in strip; do
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12544 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12545 if test -x $with_build_time_tools/${ncn_progname}; then
12546 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548 $as_echo "yes" >&6; }
12549 break
12550 else
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552 $as_echo "no" >&6; }
12554 done
12557 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12558 for ncn_progname in strip; do
12559 if test -n "$ncn_target_tool_prefix"; then
12560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12561 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563 $as_echo_n "checking for $ac_word... " >&6; }
12564 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 if test -n "$STRIP_FOR_TARGET"; then
12568 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12569 else
12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571 for as_dir in $PATH
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12577 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 break 2
12581 done
12582 done
12583 IFS=$as_save_IFS
12587 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12588 if test -n "$STRIP_FOR_TARGET"; then
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12590 $as_echo "$STRIP_FOR_TARGET" >&6; }
12591 else
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593 $as_echo "no" >&6; }
12598 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12600 set dummy ${ncn_progname}; ac_word=$2
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602 $as_echo_n "checking for $ac_word... " >&6; }
12603 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 if test -n "$STRIP_FOR_TARGET"; then
12607 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12608 else
12609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610 for as_dir in $PATH
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12616 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 break 2
12620 done
12621 done
12622 IFS=$as_save_IFS
12626 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12627 if test -n "$STRIP_FOR_TARGET"; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12629 $as_echo "$STRIP_FOR_TARGET" >&6; }
12630 else
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632 $as_echo "no" >&6; }
12637 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12638 done
12641 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12642 set dummy strip
12643 if test $build = $target ; then
12644 STRIP_FOR_TARGET="$2"
12645 else
12646 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12648 else
12649 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12652 else
12653 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12659 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12660 if test -n "$with_build_time_tools"; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12662 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12663 if test -x $with_build_time_tools/windres; then
12664 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12665 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12667 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; }
12672 elif test $build != $host && test $have_gcc_for_target = yes; then
12673 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12674 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12675 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12678 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12679 # Extract the first word of "windres", so it can be a program name with args.
12680 set dummy windres; ac_word=$2
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682 $as_echo_n "checking for $ac_word... " >&6; }
12683 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 case $WINDRES_FOR_TARGET in
12687 [\\/]* | ?:[\\/]*)
12688 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692 for as_dir in $gcc_cv_tool_dirs
12694 IFS=$as_save_IFS
12695 test -z "$as_dir" && as_dir=.
12696 for ac_exec_ext in '' $ac_executable_extensions; do
12697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12698 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12700 break 2
12702 done
12703 done
12704 IFS=$as_save_IFS
12707 esac
12709 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12710 if test -n "$WINDRES_FOR_TARGET"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12712 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12713 else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715 $as_echo "no" >&6; }
12720 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12723 if test -n "$WINDRES_FOR_TARGET"; then
12724 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12725 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12726 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12729 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12730 for ncn_progname in windres; do
12731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12732 set dummy ${ncn_progname}; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 if test -n "$WINDRES_FOR_TARGET"; then
12739 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12740 else
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12752 done
12753 done
12754 IFS=$as_save_IFS
12758 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12759 if test -n "$WINDRES_FOR_TARGET"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12761 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12768 done
12771 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12772 for ncn_progname in windres; do
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12774 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12775 if test -x $with_build_time_tools/${ncn_progname}; then
12776 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778 $as_echo "yes" >&6; }
12779 break
12780 else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12784 done
12787 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12788 for ncn_progname in windres; do
12789 if test -n "$ncn_target_tool_prefix"; then
12790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12791 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 if test -n "$WINDRES_FOR_TARGET"; then
12798 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12799 else
12800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801 for as_dir in $PATH
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12807 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 break 2
12811 done
12812 done
12813 IFS=$as_save_IFS
12817 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12818 if test -n "$WINDRES_FOR_TARGET"; then
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12820 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12821 else
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823 $as_echo "no" >&6; }
12828 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12830 set dummy ${ncn_progname}; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832 $as_echo_n "checking for $ac_word... " >&6; }
12833 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 if test -n "$WINDRES_FOR_TARGET"; then
12837 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12838 else
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12846 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848 break 2
12850 done
12851 done
12852 IFS=$as_save_IFS
12856 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12857 if test -n "$WINDRES_FOR_TARGET"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12859 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12867 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12868 done
12871 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12872 set dummy windres
12873 if test $build = $target ; then
12874 WINDRES_FOR_TARGET="$2"
12875 else
12876 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12878 else
12879 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12882 else
12883 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12889 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12890 if test -n "$with_build_time_tools"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12892 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12893 if test -x $with_build_time_tools/windmc; then
12894 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12895 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12897 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12898 else
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900 $as_echo "no" >&6; }
12902 elif test $build != $host && test $have_gcc_for_target = yes; then
12903 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12904 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12905 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12908 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12909 # Extract the first word of "windmc", so it can be a program name with args.
12910 set dummy windmc; ac_word=$2
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912 $as_echo_n "checking for $ac_word... " >&6; }
12913 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916 case $WINDMC_FOR_TARGET in
12917 [\\/]* | ?:[\\/]*)
12918 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922 for as_dir in $gcc_cv_tool_dirs
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12928 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12930 break 2
12932 done
12933 done
12934 IFS=$as_save_IFS
12937 esac
12939 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12940 if test -n "$WINDMC_FOR_TARGET"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12942 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12950 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12953 if test -n "$WINDMC_FOR_TARGET"; then
12954 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12955 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12956 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12959 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12960 for ncn_progname in windmc; do
12961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12962 set dummy ${ncn_progname}; ac_word=$2
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964 $as_echo_n "checking for $ac_word... " >&6; }
12965 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968 if test -n "$WINDMC_FOR_TARGET"; then
12969 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12970 else
12971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12974 IFS=$as_save_IFS
12975 test -z "$as_dir" && as_dir=.
12976 for ac_exec_ext in '' $ac_executable_extensions; do
12977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12978 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12980 break 2
12982 done
12983 done
12984 IFS=$as_save_IFS
12988 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12989 if test -n "$WINDMC_FOR_TARGET"; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12991 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12998 done
13001 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13002 for ncn_progname in windmc; do
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13004 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13005 if test -x $with_build_time_tools/${ncn_progname}; then
13006 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 $as_echo "yes" >&6; }
13009 break
13010 else
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012 $as_echo "no" >&6; }
13014 done
13017 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13018 for ncn_progname in windmc; do
13019 if test -n "$ncn_target_tool_prefix"; then
13020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13021 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023 $as_echo_n "checking for $ac_word... " >&6; }
13024 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 if test -n "$WINDMC_FOR_TARGET"; then
13028 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13029 else
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13039 break 2
13041 done
13042 done
13043 IFS=$as_save_IFS
13047 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13048 if test -n "$WINDMC_FOR_TARGET"; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13050 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13051 else
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053 $as_echo "no" >&6; }
13058 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13060 set dummy ${ncn_progname}; ac_word=$2
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13062 $as_echo_n "checking for $ac_word... " >&6; }
13063 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 if test -n "$WINDMC_FOR_TARGET"; then
13067 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13068 else
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13072 IFS=$as_save_IFS
13073 test -z "$as_dir" && as_dir=.
13074 for ac_exec_ext in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13078 break 2
13080 done
13081 done
13082 IFS=$as_save_IFS
13086 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13087 if test -n "$WINDMC_FOR_TARGET"; then
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13089 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13090 else
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092 $as_echo "no" >&6; }
13097 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13098 done
13101 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13102 set dummy windmc
13103 if test $build = $target ; then
13104 WINDMC_FOR_TARGET="$2"
13105 else
13106 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13108 else
13109 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13112 else
13113 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13117 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13120 $as_echo_n "checking where to find the target ar... " >&6; }
13121 if test "x${build}" != "x${host}" ; then
13122 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13123 # We already found the complete path
13124 ac_dir=`dirname $AR_FOR_TARGET`
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13126 $as_echo "pre-installed in $ac_dir" >&6; }
13127 else
13128 # Canadian cross, just use what we found
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13130 $as_echo "pre-installed" >&6; }
13132 else
13133 ok=yes
13134 case " ${configdirs} " in
13135 *" binutils "*) ;;
13136 *) ok=no ;;
13137 esac
13139 if test $ok = yes; then
13140 # An in-tree tool is available and we can use it
13141 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13143 $as_echo "just compiled" >&6; }
13144 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13145 # We already found the complete path
13146 ac_dir=`dirname $AR_FOR_TARGET`
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13148 $as_echo "pre-installed in $ac_dir" >&6; }
13149 elif test "x$target" = "x$host"; then
13150 # We can use an host tool
13151 AR_FOR_TARGET='$(AR)'
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13153 $as_echo "host tool" >&6; }
13154 else
13155 # We need a cross tool
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13157 $as_echo "pre-installed" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13162 $as_echo_n "checking where to find the target as... " >&6; }
13163 if test "x${build}" != "x${host}" ; then
13164 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13165 # We already found the complete path
13166 ac_dir=`dirname $AS_FOR_TARGET`
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13168 $as_echo "pre-installed in $ac_dir" >&6; }
13169 else
13170 # Canadian cross, just use what we found
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13172 $as_echo "pre-installed" >&6; }
13174 else
13175 ok=yes
13176 case " ${configdirs} " in
13177 *" gas "*) ;;
13178 *) ok=no ;;
13179 esac
13181 if test $ok = yes; then
13182 # An in-tree tool is available and we can use it
13183 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13185 $as_echo "just compiled" >&6; }
13186 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13187 # We already found the complete path
13188 ac_dir=`dirname $AS_FOR_TARGET`
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13190 $as_echo "pre-installed in $ac_dir" >&6; }
13191 elif test "x$target" = "x$host"; then
13192 # We can use an host tool
13193 AS_FOR_TARGET='$(AS)'
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13195 $as_echo "host tool" >&6; }
13196 else
13197 # We need a cross tool
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13199 $as_echo "pre-installed" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13204 $as_echo_n "checking where to find the target cc... " >&6; }
13205 if test "x${build}" != "x${host}" ; then
13206 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13207 # We already found the complete path
13208 ac_dir=`dirname $CC_FOR_TARGET`
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13210 $as_echo "pre-installed in $ac_dir" >&6; }
13211 else
13212 # Canadian cross, just use what we found
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13214 $as_echo "pre-installed" >&6; }
13216 else
13217 ok=yes
13218 case " ${configdirs} " in
13219 *" gcc "*) ;;
13220 *) ok=no ;;
13221 esac
13223 if test $ok = yes; then
13224 # An in-tree tool is available and we can use it
13225 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13227 $as_echo "just compiled" >&6; }
13228 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13229 # We already found the complete path
13230 ac_dir=`dirname $CC_FOR_TARGET`
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13232 $as_echo "pre-installed in $ac_dir" >&6; }
13233 elif test "x$target" = "x$host"; then
13234 # We can use an host tool
13235 CC_FOR_TARGET='$(CC)'
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13237 $as_echo "host tool" >&6; }
13238 else
13239 # We need a cross tool
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13241 $as_echo "pre-installed" >&6; }
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13246 $as_echo_n "checking where to find the target c++... " >&6; }
13247 if test "x${build}" != "x${host}" ; then
13248 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13249 # We already found the complete path
13250 ac_dir=`dirname $CXX_FOR_TARGET`
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13252 $as_echo "pre-installed in $ac_dir" >&6; }
13253 else
13254 # Canadian cross, just use what we found
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13256 $as_echo "pre-installed" >&6; }
13258 else
13259 ok=yes
13260 case " ${configdirs} " in
13261 *" gcc "*) ;;
13262 *) ok=no ;;
13263 esac
13264 case ,${enable_languages}, in
13265 *,c++,*) ;;
13266 *) ok=no ;;
13267 esac
13268 if test $ok = yes; then
13269 # An in-tree tool is available and we can use it
13270 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'
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13272 $as_echo "just compiled" >&6; }
13273 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13274 # We already found the complete path
13275 ac_dir=`dirname $CXX_FOR_TARGET`
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13277 $as_echo "pre-installed in $ac_dir" >&6; }
13278 elif test "x$target" = "x$host"; then
13279 # We can use an host tool
13280 CXX_FOR_TARGET='$(CXX)'
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13282 $as_echo "host tool" >&6; }
13283 else
13284 # We need a cross tool
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13286 $as_echo "pre-installed" >&6; }
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13291 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13292 if test "x${build}" != "x${host}" ; then
13293 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13294 # We already found the complete path
13295 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13297 $as_echo "pre-installed in $ac_dir" >&6; }
13298 else
13299 # Canadian cross, just use what we found
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13301 $as_echo "pre-installed" >&6; }
13303 else
13304 ok=yes
13305 case " ${configdirs} " in
13306 *" gcc "*) ;;
13307 *) ok=no ;;
13308 esac
13309 case ,${enable_languages}, in
13310 *,c++,*) ;;
13311 *) ok=no ;;
13312 esac
13313 if test $ok = yes; then
13314 # An in-tree tool is available and we can use it
13315 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'
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13317 $as_echo "just compiled" >&6; }
13318 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13319 # We already found the complete path
13320 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13322 $as_echo "pre-installed in $ac_dir" >&6; }
13323 elif test "x$target" = "x$host"; then
13324 # We can use an host tool
13325 RAW_CXX_FOR_TARGET='$(CXX)'
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13327 $as_echo "host tool" >&6; }
13328 else
13329 # We need a cross tool
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13331 $as_echo "pre-installed" >&6; }
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13336 $as_echo_n "checking where to find the target dlltool... " >&6; }
13337 if test "x${build}" != "x${host}" ; then
13338 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13339 # We already found the complete path
13340 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13342 $as_echo "pre-installed in $ac_dir" >&6; }
13343 else
13344 # Canadian cross, just use what we found
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13346 $as_echo "pre-installed" >&6; }
13348 else
13349 ok=yes
13350 case " ${configdirs} " in
13351 *" binutils "*) ;;
13352 *) ok=no ;;
13353 esac
13355 if test $ok = yes; then
13356 # An in-tree tool is available and we can use it
13357 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13359 $as_echo "just compiled" >&6; }
13360 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13361 # We already found the complete path
13362 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13364 $as_echo "pre-installed in $ac_dir" >&6; }
13365 elif test "x$target" = "x$host"; then
13366 # We can use an host tool
13367 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13369 $as_echo "host tool" >&6; }
13370 else
13371 # We need a cross tool
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13373 $as_echo "pre-installed" >&6; }
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13378 $as_echo_n "checking where to find the target gcc... " >&6; }
13379 if test "x${build}" != "x${host}" ; then
13380 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13381 # We already found the complete path
13382 ac_dir=`dirname $GCC_FOR_TARGET`
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13384 $as_echo "pre-installed in $ac_dir" >&6; }
13385 else
13386 # Canadian cross, just use what we found
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13388 $as_echo "pre-installed" >&6; }
13390 else
13391 ok=yes
13392 case " ${configdirs} " in
13393 *" gcc "*) ;;
13394 *) ok=no ;;
13395 esac
13397 if test $ok = yes; then
13398 # An in-tree tool is available and we can use it
13399 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13401 $as_echo "just compiled" >&6; }
13402 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13403 # We already found the complete path
13404 ac_dir=`dirname $GCC_FOR_TARGET`
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13406 $as_echo "pre-installed in $ac_dir" >&6; }
13407 elif test "x$target" = "x$host"; then
13408 # We can use an host tool
13409 GCC_FOR_TARGET='$()'
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13411 $as_echo "host tool" >&6; }
13412 else
13413 # We need a cross tool
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13415 $as_echo "pre-installed" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13420 $as_echo_n "checking where to find the target gcj... " >&6; }
13421 if test "x${build}" != "x${host}" ; then
13422 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13423 # We already found the complete path
13424 ac_dir=`dirname $GCJ_FOR_TARGET`
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13426 $as_echo "pre-installed in $ac_dir" >&6; }
13427 else
13428 # Canadian cross, just use what we found
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13430 $as_echo "pre-installed" >&6; }
13432 else
13433 ok=yes
13434 case " ${configdirs} " in
13435 *" gcc "*) ;;
13436 *) ok=no ;;
13437 esac
13438 case ,${enable_languages}, in
13439 *,java,*) ;;
13440 *) ok=no ;;
13441 esac
13442 if test $ok = yes; then
13443 # An in-tree tool is available and we can use it
13444 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13446 $as_echo "just compiled" >&6; }
13447 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13448 # We already found the complete path
13449 ac_dir=`dirname $GCJ_FOR_TARGET`
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13451 $as_echo "pre-installed in $ac_dir" >&6; }
13452 elif test "x$target" = "x$host"; then
13453 # We can use an host tool
13454 GCJ_FOR_TARGET='$(GCJ)'
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13456 $as_echo "host tool" >&6; }
13457 else
13458 # We need a cross tool
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13460 $as_echo "pre-installed" >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13465 $as_echo_n "checking where to find the target gfortran... " >&6; }
13466 if test "x${build}" != "x${host}" ; then
13467 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13468 # We already found the complete path
13469 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13471 $as_echo "pre-installed in $ac_dir" >&6; }
13472 else
13473 # Canadian cross, just use what we found
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13475 $as_echo "pre-installed" >&6; }
13477 else
13478 ok=yes
13479 case " ${configdirs} " in
13480 *" gcc "*) ;;
13481 *) ok=no ;;
13482 esac
13483 case ,${enable_languages}, in
13484 *,fortran,*) ;;
13485 *) ok=no ;;
13486 esac
13487 if test $ok = yes; then
13488 # An in-tree tool is available and we can use it
13489 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13491 $as_echo "just compiled" >&6; }
13492 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13493 # We already found the complete path
13494 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13496 $as_echo "pre-installed in $ac_dir" >&6; }
13497 elif test "x$target" = "x$host"; then
13498 # We can use an host tool
13499 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13501 $as_echo "host tool" >&6; }
13502 else
13503 # We need a cross tool
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13505 $as_echo "pre-installed" >&6; }
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13510 $as_echo_n "checking where to find the target gccgo... " >&6; }
13511 if test "x${build}" != "x${host}" ; then
13512 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13513 # We already found the complete path
13514 ac_dir=`dirname $GOC_FOR_TARGET`
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13516 $as_echo "pre-installed in $ac_dir" >&6; }
13517 else
13518 # Canadian cross, just use what we found
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13520 $as_echo "pre-installed" >&6; }
13522 else
13523 ok=yes
13524 case " ${configdirs} " in
13525 *" gcc "*) ;;
13526 *) ok=no ;;
13527 esac
13528 case ,${enable_languages}, in
13529 *,go,*) ;;
13530 *) ok=no ;;
13531 esac
13532 if test $ok = yes; then
13533 # An in-tree tool is available and we can use it
13534 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13536 $as_echo "just compiled" >&6; }
13537 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13538 # We already found the complete path
13539 ac_dir=`dirname $GOC_FOR_TARGET`
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13541 $as_echo "pre-installed in $ac_dir" >&6; }
13542 elif test "x$target" = "x$host"; then
13543 # We can use an host tool
13544 GOC_FOR_TARGET='$(GOC)'
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13546 $as_echo "host tool" >&6; }
13547 else
13548 # We need a cross tool
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13550 $as_echo "pre-installed" >&6; }
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13555 $as_echo_n "checking where to find the target ld... " >&6; }
13556 if test "x${build}" != "x${host}" ; then
13557 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13558 # We already found the complete path
13559 ac_dir=`dirname $LD_FOR_TARGET`
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13561 $as_echo "pre-installed in $ac_dir" >&6; }
13562 else
13563 # Canadian cross, just use what we found
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13565 $as_echo "pre-installed" >&6; }
13567 else
13568 ok=yes
13569 case " ${configdirs} " in
13570 *" ld "*) ;;
13571 *) ok=no ;;
13572 esac
13574 if test $ok = yes; then
13575 # An in-tree tool is available and we can use it
13576 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13578 $as_echo "just compiled" >&6; }
13579 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13580 # We already found the complete path
13581 ac_dir=`dirname $LD_FOR_TARGET`
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13583 $as_echo "pre-installed in $ac_dir" >&6; }
13584 elif test "x$target" = "x$host"; then
13585 # We can use an host tool
13586 LD_FOR_TARGET='$(LD)'
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13588 $as_echo "host tool" >&6; }
13589 else
13590 # We need a cross tool
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13592 $as_echo "pre-installed" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13597 $as_echo_n "checking where to find the target lipo... " >&6; }
13598 if test "x${build}" != "x${host}" ; then
13599 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13600 # We already found the complete path
13601 ac_dir=`dirname $LIPO_FOR_TARGET`
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13603 $as_echo "pre-installed in $ac_dir" >&6; }
13604 else
13605 # Canadian cross, just use what we found
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13607 $as_echo "pre-installed" >&6; }
13609 else
13610 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13611 # We already found the complete path
13612 ac_dir=`dirname $LIPO_FOR_TARGET`
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13614 $as_echo "pre-installed in $ac_dir" >&6; }
13615 elif test "x$target" = "x$host"; then
13616 # We can use an host tool
13617 LIPO_FOR_TARGET='$(LIPO)'
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13619 $as_echo "host tool" >&6; }
13620 else
13621 # We need a cross tool
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13623 $as_echo "pre-installed" >&6; }
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13628 $as_echo_n "checking where to find the target nm... " >&6; }
13629 if test "x${build}" != "x${host}" ; then
13630 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13631 # We already found the complete path
13632 ac_dir=`dirname $NM_FOR_TARGET`
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13634 $as_echo "pre-installed in $ac_dir" >&6; }
13635 else
13636 # Canadian cross, just use what we found
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13638 $as_echo "pre-installed" >&6; }
13640 else
13641 ok=yes
13642 case " ${configdirs} " in
13643 *" binutils "*) ;;
13644 *) ok=no ;;
13645 esac
13647 if test $ok = yes; then
13648 # An in-tree tool is available and we can use it
13649 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13651 $as_echo "just compiled" >&6; }
13652 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13653 # We already found the complete path
13654 ac_dir=`dirname $NM_FOR_TARGET`
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13656 $as_echo "pre-installed in $ac_dir" >&6; }
13657 elif test "x$target" = "x$host"; then
13658 # We can use an host tool
13659 NM_FOR_TARGET='$(NM)'
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13661 $as_echo "host tool" >&6; }
13662 else
13663 # We need a cross tool
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13665 $as_echo "pre-installed" >&6; }
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13670 $as_echo_n "checking where to find the target objdump... " >&6; }
13671 if test "x${build}" != "x${host}" ; then
13672 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13673 # We already found the complete path
13674 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13676 $as_echo "pre-installed in $ac_dir" >&6; }
13677 else
13678 # Canadian cross, just use what we found
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13680 $as_echo "pre-installed" >&6; }
13682 else
13683 ok=yes
13684 case " ${configdirs} " in
13685 *" binutils "*) ;;
13686 *) ok=no ;;
13687 esac
13689 if test $ok = yes; then
13690 # An in-tree tool is available and we can use it
13691 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13693 $as_echo "just compiled" >&6; }
13694 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13695 # We already found the complete path
13696 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13698 $as_echo "pre-installed in $ac_dir" >&6; }
13699 elif test "x$target" = "x$host"; then
13700 # We can use an host tool
13701 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13703 $as_echo "host tool" >&6; }
13704 else
13705 # We need a cross tool
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13707 $as_echo "pre-installed" >&6; }
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13712 $as_echo_n "checking where to find the target ranlib... " >&6; }
13713 if test "x${build}" != "x${host}" ; then
13714 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13715 # We already found the complete path
13716 ac_dir=`dirname $RANLIB_FOR_TARGET`
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13718 $as_echo "pre-installed in $ac_dir" >&6; }
13719 else
13720 # Canadian cross, just use what we found
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13722 $as_echo "pre-installed" >&6; }
13724 else
13725 ok=yes
13726 case " ${configdirs} " in
13727 *" binutils "*) ;;
13728 *) ok=no ;;
13729 esac
13731 if test $ok = yes; then
13732 # An in-tree tool is available and we can use it
13733 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13735 $as_echo "just compiled" >&6; }
13736 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13737 # We already found the complete path
13738 ac_dir=`dirname $RANLIB_FOR_TARGET`
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13740 $as_echo "pre-installed in $ac_dir" >&6; }
13741 elif test "x$target" = "x$host"; then
13742 # We can use an host tool
13743 RANLIB_FOR_TARGET='$(RANLIB)'
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13745 $as_echo "host tool" >&6; }
13746 else
13747 # We need a cross tool
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13749 $as_echo "pre-installed" >&6; }
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13754 $as_echo_n "checking where to find the target strip... " >&6; }
13755 if test "x${build}" != "x${host}" ; then
13756 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13757 # We already found the complete path
13758 ac_dir=`dirname $STRIP_FOR_TARGET`
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13760 $as_echo "pre-installed in $ac_dir" >&6; }
13761 else
13762 # Canadian cross, just use what we found
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13764 $as_echo "pre-installed" >&6; }
13766 else
13767 ok=yes
13768 case " ${configdirs} " in
13769 *" binutils "*) ;;
13770 *) ok=no ;;
13771 esac
13773 if test $ok = yes; then
13774 # An in-tree tool is available and we can use it
13775 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13777 $as_echo "just compiled" >&6; }
13778 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13779 # We already found the complete path
13780 ac_dir=`dirname $STRIP_FOR_TARGET`
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13782 $as_echo "pre-installed in $ac_dir" >&6; }
13783 elif test "x$target" = "x$host"; then
13784 # We can use an host tool
13785 STRIP_FOR_TARGET='$(STRIP)'
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13787 $as_echo "host tool" >&6; }
13788 else
13789 # We need a cross tool
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13791 $as_echo "pre-installed" >&6; }
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13796 $as_echo_n "checking where to find the target windres... " >&6; }
13797 if test "x${build}" != "x${host}" ; then
13798 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13799 # We already found the complete path
13800 ac_dir=`dirname $WINDRES_FOR_TARGET`
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802 $as_echo "pre-installed in $ac_dir" >&6; }
13803 else
13804 # Canadian cross, just use what we found
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806 $as_echo "pre-installed" >&6; }
13808 else
13809 ok=yes
13810 case " ${configdirs} " in
13811 *" binutils "*) ;;
13812 *) ok=no ;;
13813 esac
13815 if test $ok = yes; then
13816 # An in-tree tool is available and we can use it
13817 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13819 $as_echo "just compiled" >&6; }
13820 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13821 # We already found the complete path
13822 ac_dir=`dirname $WINDRES_FOR_TARGET`
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13824 $as_echo "pre-installed in $ac_dir" >&6; }
13825 elif test "x$target" = "x$host"; then
13826 # We can use an host tool
13827 WINDRES_FOR_TARGET='$(WINDRES)'
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13829 $as_echo "host tool" >&6; }
13830 else
13831 # We need a cross tool
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13833 $as_echo "pre-installed" >&6; }
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13838 $as_echo_n "checking where to find the target windmc... " >&6; }
13839 if test "x${build}" != "x${host}" ; then
13840 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13841 # We already found the complete path
13842 ac_dir=`dirname $WINDMC_FOR_TARGET`
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844 $as_echo "pre-installed in $ac_dir" >&6; }
13845 else
13846 # Canadian cross, just use what we found
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13848 $as_echo "pre-installed" >&6; }
13850 else
13851 ok=yes
13852 case " ${configdirs} " in
13853 *" binutils "*) ;;
13854 *) ok=no ;;
13855 esac
13857 if test $ok = yes; then
13858 # An in-tree tool is available and we can use it
13859 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13861 $as_echo "just compiled" >&6; }
13862 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13863 # We already found the complete path
13864 ac_dir=`dirname $WINDMC_FOR_TARGET`
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13866 $as_echo "pre-installed in $ac_dir" >&6; }
13867 elif test "x$target" = "x$host"; then
13868 # We can use an host tool
13869 WINDMC_FOR_TARGET='$(WINDMC)'
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13871 $as_echo "host tool" >&6; }
13872 else
13873 # We need a cross tool
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13875 $as_echo "pre-installed" >&6; }
13883 # Certain tools may need extra flags.
13884 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13885 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13886 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13888 # When building target libraries, except in a Canadian cross, we use
13889 # the same toolchain as the compiler we just built.
13890 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13891 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13892 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13893 if test $host = $build; then
13894 case " $configdirs " in
13895 *" gcc "*)
13896 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13897 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13898 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13900 esac
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13908 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13909 # Check whether --enable-maintainer-mode was given.
13910 if test "${enable_maintainer_mode+set}" = set; then :
13911 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13912 else
13913 USE_MAINTAINER_MODE=no
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13917 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13920 if test "$USE_MAINTAINER_MODE" = yes; then
13921 MAINTAINER_MODE_TRUE=
13922 MAINTAINER_MODE_FALSE='#'
13923 else
13924 MAINTAINER_MODE_TRUE='#'
13925 MAINTAINER_MODE_FALSE=
13927 MAINT=$MAINTAINER_MODE_TRUE
13929 # ---------------------
13930 # GCC bootstrap support
13931 # ---------------------
13933 # Stage specific cflags for build.
13934 stage1_cflags="-g"
13935 case $build in
13936 vax-*-*)
13937 case ${GCC} in
13938 yes) stage1_cflags="-g -Wa,-J" ;;
13939 *) stage1_cflags="-g -J" ;;
13940 esac ;;
13941 esac
13943 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13944 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13945 saved_CFLAGS="$CFLAGS"
13947 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13948 CFLAGS="$CFLAGS -fkeep-inline-functions"
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13950 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13954 #if (__GNUC__ < 3) \
13955 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13956 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13957 #error http://gcc.gnu.org/PR29382
13958 #endif
13961 main ()
13965 return 0;
13967 _ACEOF
13968 if ac_fn_c_try_compile "$LINENO"; then :
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13970 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13971 else
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 CFLAGS="$saved_CFLAGS"
13982 # Enable --enable-checking in stage1 of the compiler.
13983 # Check whether --enable-stage1-checking was given.
13984 if test "${enable_stage1_checking+set}" = set; then :
13985 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13986 else
13987 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13988 stage1_checking=--enable-checking=yes,types
13989 else
13990 stage1_checking=--enable-checking=$enable_checking,types
13996 # Enable -Werror in bootstrap stage2 and later.
13997 # Check whether --enable-werror was given.
13998 if test "${enable_werror+set}" = set; then :
13999 enableval=$enable_werror;
14000 else
14001 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14002 enable_werror=yes
14003 else
14004 enable_werror=no
14008 case ${enable_werror} in
14009 yes) stage2_werror_flag="--enable-werror-always" ;;
14010 *) stage2_werror_flag="" ;;
14011 esac
14014 # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14015 # --enable-build-with-cxx after stage1.
14016 if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14017 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14018 else
14019 POSTSTAGE1_CONFIGURE_FLAGS=
14023 # Specify what files to not compare during bootstrap.
14025 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14026 case "$target" in
14027 hppa*64*-*-hpux*) ;;
14028 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14029 esac
14030 case " $configdirs " in
14031 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14032 esac
14035 ac_config_files="$ac_config_files Makefile"
14037 cat >confcache <<\_ACEOF
14038 # This file is a shell script that caches the results of configure
14039 # tests run on this system so they can be shared between configure
14040 # scripts and configure runs, see configure's option --config-cache.
14041 # It is not useful on other systems. If it contains results you don't
14042 # want to keep, you may remove or edit it.
14044 # config.status only pays attention to the cache file if you give it
14045 # the --recheck option to rerun configure.
14047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14049 # following values.
14051 _ACEOF
14053 # The following way of writing the cache mishandles newlines in values,
14054 # but we know of no workaround that is simple, portable, and efficient.
14055 # So, we kill variables containing newlines.
14056 # Ultrix sh set writes to stderr and can't be redirected directly,
14057 # and sets the high bit in the cache file unless we assign to the vars.
14059 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14060 eval ac_val=\$$ac_var
14061 case $ac_val in #(
14062 *${as_nl}*)
14063 case $ac_var in #(
14064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14066 esac
14067 case $ac_var in #(
14068 _ | IFS | as_nl) ;; #(
14069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14070 *) { eval $ac_var=; unset $ac_var;} ;;
14071 esac ;;
14072 esac
14073 done
14075 (set) 2>&1 |
14076 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14077 *${as_nl}ac_space=\ *)
14078 # `set' does not quote correctly, so add quotes: double-quote
14079 # substitution turns \\\\ into \\, and sed turns \\ into \.
14080 sed -n \
14081 "s/'/'\\\\''/g;
14082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14083 ;; #(
14085 # `set' quotes correctly as required by POSIX, so do not add quotes.
14086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14088 esac |
14089 sort
14091 sed '
14092 /^ac_cv_env_/b end
14093 t clear
14094 :clear
14095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14096 t end
14097 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14098 :end' >>confcache
14099 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14100 if test -w "$cache_file"; then
14101 test "x$cache_file" != "x/dev/null" &&
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14103 $as_echo "$as_me: updating cache $cache_file" >&6;}
14104 cat confcache >$cache_file
14105 else
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14107 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14110 rm -f confcache
14112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14113 # Let make expand exec_prefix.
14114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14116 # Transform confdefs.h into DEFS.
14117 # Protect against shell expansion while executing Makefile rules.
14118 # Protect against Makefile macro expansion.
14120 # If the first sed substitution is executed (which looks for macros that
14121 # take arguments), then branch to the quote section. Otherwise,
14122 # look for a macro that doesn't take arguments.
14123 ac_script='
14124 :mline
14125 /\\$/{
14127 s,\\\n,,
14128 b mline
14130 t clear
14131 :clear
14132 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14133 t quote
14134 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14135 t quote
14136 b any
14137 :quote
14138 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14139 s/\[/\\&/g
14140 s/\]/\\&/g
14141 s/\$/$$/g
14143 :any
14146 s/^\n//
14147 s/\n/ /g
14151 DEFS=`sed -n "$ac_script" confdefs.h`
14154 ac_libobjs=
14155 ac_ltlibobjs=
14156 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14157 # 1. Remove the extension, and $U if already installed.
14158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14161 # will be set to the directory where LIBOBJS objects are built.
14162 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14163 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14164 done
14165 LIBOBJS=$ac_libobjs
14167 LTLIBOBJS=$ac_ltlibobjs
14171 : ${CONFIG_STATUS=./config.status}
14172 ac_write_fail=0
14173 ac_clean_files_save=$ac_clean_files
14174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14176 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14177 as_write_fail=0
14178 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14179 #! $SHELL
14180 # Generated by $as_me.
14181 # Run this file to recreate the current configuration.
14182 # Compiler output produced by configure, useful for debugging
14183 # configure, is in config.log if it exists.
14185 debug=false
14186 ac_cs_recheck=false
14187 ac_cs_silent=false
14189 SHELL=\${CONFIG_SHELL-$SHELL}
14190 export SHELL
14191 _ASEOF
14192 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14193 ## -------------------- ##
14194 ## M4sh Initialization. ##
14195 ## -------------------- ##
14197 # Be more Bourne compatible
14198 DUALCASE=1; export DUALCASE # for MKS sh
14199 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14200 emulate sh
14201 NULLCMD=:
14202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14203 # is contrary to our usage. Disable this feature.
14204 alias -g '${1+"$@"}'='"$@"'
14205 setopt NO_GLOB_SUBST
14206 else
14207 case `(set -o) 2>/dev/null` in #(
14208 *posix*) :
14209 set -o posix ;; #(
14210 *) :
14212 esac
14216 as_nl='
14218 export as_nl
14219 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14220 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14223 # Prefer a ksh shell builtin over an external printf program on Solaris,
14224 # but without wasting forks for bash or zsh.
14225 if test -z "$BASH_VERSION$ZSH_VERSION" \
14226 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14227 as_echo='print -r --'
14228 as_echo_n='print -rn --'
14229 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14230 as_echo='printf %s\n'
14231 as_echo_n='printf %s'
14232 else
14233 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14234 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14235 as_echo_n='/usr/ucb/echo -n'
14236 else
14237 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14238 as_echo_n_body='eval
14239 arg=$1;
14240 case $arg in #(
14241 *"$as_nl"*)
14242 expr "X$arg" : "X\\(.*\\)$as_nl";
14243 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14244 esac;
14245 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14247 export as_echo_n_body
14248 as_echo_n='sh -c $as_echo_n_body as_echo'
14250 export as_echo_body
14251 as_echo='sh -c $as_echo_body as_echo'
14254 # The user is always right.
14255 if test "${PATH_SEPARATOR+set}" != set; then
14256 PATH_SEPARATOR=:
14257 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14258 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14259 PATH_SEPARATOR=';'
14264 # IFS
14265 # We need space, tab and new line, in precisely that order. Quoting is
14266 # there to prevent editors from complaining about space-tab.
14267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14268 # splitting by setting IFS to empty value.)
14269 IFS=" "" $as_nl"
14271 # Find who we are. Look in the path if we contain no directory separator.
14272 case $0 in #((
14273 *[\\/]* ) as_myself=$0 ;;
14274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275 for as_dir in $PATH
14277 IFS=$as_save_IFS
14278 test -z "$as_dir" && as_dir=.
14279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14280 done
14281 IFS=$as_save_IFS
14284 esac
14285 # We did not find ourselves, most probably we were run as `sh COMMAND'
14286 # in which case we are not to be found in the path.
14287 if test "x$as_myself" = x; then
14288 as_myself=$0
14290 if test ! -f "$as_myself"; then
14291 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14292 exit 1
14295 # Unset variables that we do not need and which cause bugs (e.g. in
14296 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14297 # suppresses any "Segmentation fault" message there. '((' could
14298 # trigger a bug in pdksh 5.2.14.
14299 for as_var in BASH_ENV ENV MAIL MAILPATH
14300 do eval test x\${$as_var+set} = xset \
14301 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14302 done
14303 PS1='$ '
14304 PS2='> '
14305 PS4='+ '
14307 # NLS nuisances.
14308 LC_ALL=C
14309 export LC_ALL
14310 LANGUAGE=C
14311 export LANGUAGE
14313 # CDPATH.
14314 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14317 # as_fn_error ERROR [LINENO LOG_FD]
14318 # ---------------------------------
14319 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14320 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14321 # script with status $?, using 1 if that was 0.
14322 as_fn_error ()
14324 as_status=$?; test $as_status -eq 0 && as_status=1
14325 if test "$3"; then
14326 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14327 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14329 $as_echo "$as_me: error: $1" >&2
14330 as_fn_exit $as_status
14331 } # as_fn_error
14334 # as_fn_set_status STATUS
14335 # -----------------------
14336 # Set $? to STATUS, without forking.
14337 as_fn_set_status ()
14339 return $1
14340 } # as_fn_set_status
14342 # as_fn_exit STATUS
14343 # -----------------
14344 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14345 as_fn_exit ()
14347 set +e
14348 as_fn_set_status $1
14349 exit $1
14350 } # as_fn_exit
14352 # as_fn_unset VAR
14353 # ---------------
14354 # Portably unset VAR.
14355 as_fn_unset ()
14357 { eval $1=; unset $1;}
14359 as_unset=as_fn_unset
14360 # as_fn_append VAR VALUE
14361 # ----------------------
14362 # Append the text in VALUE to the end of the definition contained in VAR. Take
14363 # advantage of any shell optimizations that allow amortized linear growth over
14364 # repeated appends, instead of the typical quadratic growth present in naive
14365 # implementations.
14366 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14367 eval 'as_fn_append ()
14369 eval $1+=\$2
14371 else
14372 as_fn_append ()
14374 eval $1=\$$1\$2
14376 fi # as_fn_append
14378 # as_fn_arith ARG...
14379 # ------------------
14380 # Perform arithmetic evaluation on the ARGs, and store the result in the
14381 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14382 # must be portable across $(()) and expr.
14383 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14384 eval 'as_fn_arith ()
14386 as_val=$(( $* ))
14388 else
14389 as_fn_arith ()
14391 as_val=`expr "$@" || test $? -eq 1`
14393 fi # as_fn_arith
14396 if expr a : '\(a\)' >/dev/null 2>&1 &&
14397 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14398 as_expr=expr
14399 else
14400 as_expr=false
14403 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14404 as_basename=basename
14405 else
14406 as_basename=false
14409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14410 as_dirname=dirname
14411 else
14412 as_dirname=false
14415 as_me=`$as_basename -- "$0" ||
14416 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14417 X"$0" : 'X\(//\)$' \| \
14418 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14419 $as_echo X/"$0" |
14420 sed '/^.*\/\([^/][^/]*\)\/*$/{
14421 s//\1/
14424 /^X\/\(\/\/\)$/{
14425 s//\1/
14428 /^X\/\(\/\).*/{
14429 s//\1/
14432 s/.*/./; q'`
14434 # Avoid depending upon Character Ranges.
14435 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14436 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14437 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14438 as_cr_digits='0123456789'
14439 as_cr_alnum=$as_cr_Letters$as_cr_digits
14441 ECHO_C= ECHO_N= ECHO_T=
14442 case `echo -n x` in #(((((
14443 -n*)
14444 case `echo 'xy\c'` in
14445 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14446 xy) ECHO_C='\c';;
14447 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14448 ECHO_T=' ';;
14449 esac;;
14451 ECHO_N='-n';;
14452 esac
14454 rm -f conf$$ conf$$.exe conf$$.file
14455 if test -d conf$$.dir; then
14456 rm -f conf$$.dir/conf$$.file
14457 else
14458 rm -f conf$$.dir
14459 mkdir conf$$.dir 2>/dev/null
14461 if (echo >conf$$.file) 2>/dev/null; then
14462 if ln -s conf$$.file conf$$ 2>/dev/null; then
14463 as_ln_s='ln -s'
14464 # ... but there are two gotchas:
14465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14467 # In both cases, we have to default to `cp -p'.
14468 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14469 as_ln_s='cp -p'
14470 elif ln conf$$.file conf$$ 2>/dev/null; then
14471 as_ln_s=ln
14472 else
14473 as_ln_s='cp -p'
14475 else
14476 as_ln_s='cp -p'
14478 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14479 rmdir conf$$.dir 2>/dev/null
14482 # as_fn_mkdir_p
14483 # -------------
14484 # Create "$as_dir" as a directory, including parents if necessary.
14485 as_fn_mkdir_p ()
14488 case $as_dir in #(
14489 -*) as_dir=./$as_dir;;
14490 esac
14491 test -d "$as_dir" || eval $as_mkdir_p || {
14492 as_dirs=
14493 while :; do
14494 case $as_dir in #(
14495 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14496 *) as_qdir=$as_dir;;
14497 esac
14498 as_dirs="'$as_qdir' $as_dirs"
14499 as_dir=`$as_dirname -- "$as_dir" ||
14500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14501 X"$as_dir" : 'X\(//\)[^/]' \| \
14502 X"$as_dir" : 'X\(//\)$' \| \
14503 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14504 $as_echo X"$as_dir" |
14505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14506 s//\1/
14509 /^X\(\/\/\)[^/].*/{
14510 s//\1/
14513 /^X\(\/\/\)$/{
14514 s//\1/
14517 /^X\(\/\).*/{
14518 s//\1/
14521 s/.*/./; q'`
14522 test -d "$as_dir" && break
14523 done
14524 test -z "$as_dirs" || eval "mkdir $as_dirs"
14525 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14528 } # as_fn_mkdir_p
14529 if mkdir -p . 2>/dev/null; then
14530 as_mkdir_p='mkdir -p "$as_dir"'
14531 else
14532 test -d ./-p && rmdir ./-p
14533 as_mkdir_p=false
14536 if test -x / >/dev/null 2>&1; then
14537 as_test_x='test -x'
14538 else
14539 if ls -dL / >/dev/null 2>&1; then
14540 as_ls_L_option=L
14541 else
14542 as_ls_L_option=
14544 as_test_x='
14545 eval sh -c '\''
14546 if test -d "$1"; then
14547 test -d "$1/.";
14548 else
14549 case $1 in #(
14550 -*)set "./$1";;
14551 esac;
14552 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14553 ???[sx]*):;;*)false;;esac;fi
14554 '\'' sh
14557 as_executable_p=$as_test_x
14559 # Sed expression to map a string onto a valid CPP name.
14560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14562 # Sed expression to map a string onto a valid variable name.
14563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14566 exec 6>&1
14567 ## ----------------------------------- ##
14568 ## Main body of $CONFIG_STATUS script. ##
14569 ## ----------------------------------- ##
14570 _ASEOF
14571 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14574 # Save the log message, to keep $0 and so on meaningful, and to
14575 # report actual input values of CONFIG_FILES etc. instead of their
14576 # values after options handling.
14577 ac_log="
14578 This file was extended by $as_me, which was
14579 generated by GNU Autoconf 2.64. Invocation command line was
14581 CONFIG_FILES = $CONFIG_FILES
14582 CONFIG_HEADERS = $CONFIG_HEADERS
14583 CONFIG_LINKS = $CONFIG_LINKS
14584 CONFIG_COMMANDS = $CONFIG_COMMANDS
14585 $ $0 $@
14587 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14590 _ACEOF
14592 case $ac_config_files in *"
14593 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14594 esac
14598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14599 # Files that config.status was made for.
14600 config_files="$ac_config_files"
14602 _ACEOF
14604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14605 ac_cs_usage="\
14606 \`$as_me' instantiates files and other configuration actions
14607 from templates according to the current configuration. Unless the files
14608 and actions are specified as TAGs, all are instantiated by default.
14610 Usage: $0 [OPTION]... [TAG]...
14612 -h, --help print this help, then exit
14613 -V, --version print version number and configuration settings, then exit
14614 -q, --quiet, --silent
14615 do not print progress messages
14616 -d, --debug don't remove temporary files
14617 --recheck update $as_me by reconfiguring in the same conditions
14618 --file=FILE[:TEMPLATE]
14619 instantiate the configuration file FILE
14621 Configuration files:
14622 $config_files
14624 Report bugs to the package provider."
14626 _ACEOF
14627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14628 ac_cs_version="\\
14629 config.status
14630 configured by $0, generated by GNU Autoconf 2.64,
14631 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14633 Copyright (C) 2009 Free Software Foundation, Inc.
14634 This config.status script is free software; the Free Software Foundation
14635 gives unlimited permission to copy, distribute and modify it."
14637 ac_pwd='$ac_pwd'
14638 srcdir='$srcdir'
14639 INSTALL='$INSTALL'
14640 AWK='$AWK'
14641 test -n "\$AWK" || AWK=awk
14642 _ACEOF
14644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14645 # The default lists apply if the user does not specify any file.
14646 ac_need_defaults=:
14647 while test $# != 0
14649 case $1 in
14650 --*=*)
14651 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14652 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14653 ac_shift=:
14656 ac_option=$1
14657 ac_optarg=$2
14658 ac_shift=shift
14660 esac
14662 case $ac_option in
14663 # Handling of the options.
14664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14665 ac_cs_recheck=: ;;
14666 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14667 $as_echo "$ac_cs_version"; exit ;;
14668 --debug | --debu | --deb | --de | --d | -d )
14669 debug=: ;;
14670 --file | --fil | --fi | --f )
14671 $ac_shift
14672 case $ac_optarg in
14673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14674 esac
14675 as_fn_append CONFIG_FILES " '$ac_optarg'"
14676 ac_need_defaults=false;;
14677 --he | --h | --help | --hel | -h )
14678 $as_echo "$ac_cs_usage"; exit ;;
14679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14680 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14681 ac_cs_silent=: ;;
14683 # This is an error.
14684 -*) as_fn_error "unrecognized option: \`$1'
14685 Try \`$0 --help' for more information." ;;
14687 *) as_fn_append ac_config_targets " $1"
14688 ac_need_defaults=false ;;
14690 esac
14691 shift
14692 done
14694 ac_configure_extra_args=
14696 if $ac_cs_silent; then
14697 exec 6>/dev/null
14698 ac_configure_extra_args="$ac_configure_extra_args --silent"
14701 _ACEOF
14702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14703 if \$ac_cs_recheck; then
14704 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14705 shift
14706 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14707 CONFIG_SHELL='$SHELL'
14708 export CONFIG_SHELL
14709 exec "\$@"
14712 _ACEOF
14713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14714 exec 5>>config.log
14716 echo
14717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14718 ## Running $as_me. ##
14719 _ASBOX
14720 $as_echo "$ac_log"
14721 } >&5
14723 _ACEOF
14724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14726 # INIT-COMMANDS
14728 extrasub_build="$extrasub_build"
14729 extrasub_host="$extrasub_host"
14730 extrasub_target="$extrasub_target"
14732 _ACEOF
14734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14736 # Handling of arguments.
14737 for ac_config_target in $ac_config_targets
14739 case $ac_config_target in
14740 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14742 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14743 esac
14744 done
14747 # If the user did not use the arguments to specify the items to instantiate,
14748 # then the envvar interface is used. Set only those that are not.
14749 # We use the long form for the default assignment because of an extremely
14750 # bizarre bug on SunOS 4.1.3.
14751 if $ac_need_defaults; then
14752 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14755 # Have a temporary directory for convenience. Make it in the build tree
14756 # simply because there is no reason against having it here, and in addition,
14757 # creating and moving files from /tmp can sometimes cause problems.
14758 # Hook for its removal unless debugging.
14759 # Note that there is a small window in which the directory will not be cleaned:
14760 # after its creation but before its name has been assigned to `$tmp'.
14761 $debug ||
14763 tmp=
14764 trap 'exit_status=$?
14765 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14767 trap 'as_fn_exit 1' 1 2 13 15
14769 # Create a (secure) tmp directory for tmp files.
14772 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14773 test -n "$tmp" && test -d "$tmp"
14774 } ||
14776 tmp=./conf$$-$RANDOM
14777 (umask 077 && mkdir "$tmp")
14778 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14780 # Set up the scripts for CONFIG_FILES section.
14781 # No need to generate them if there are no CONFIG_FILES.
14782 # This happens for instance with `./config.status config.h'.
14783 if test -n "$CONFIG_FILES"; then
14785 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14786 ac_cs_awk_getline=:
14787 ac_cs_awk_pipe_init=
14788 ac_cs_awk_read_file='
14789 while ((getline aline < (F[key])) > 0)
14790 print(aline)
14791 close(F[key])'
14792 ac_cs_awk_pipe_fini=
14793 else
14794 ac_cs_awk_getline=false
14795 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14796 ac_cs_awk_read_file='
14797 print "|#_!!_#|"
14798 print "cat " F[key] " &&"
14799 '$ac_cs_awk_pipe_init
14800 # The final `:' finishes the AND list.
14801 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14803 ac_cr=`echo X | tr X '\015'`
14804 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14805 # But we know of no other shell where ac_cr would be empty at this
14806 # point, so we can use a bashism as a fallback.
14807 if test "x$ac_cr" = x; then
14808 eval ac_cr=\$\'\\r\'
14810 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14811 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14812 ac_cs_awk_cr='\r'
14813 else
14814 ac_cs_awk_cr=$ac_cr
14817 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14818 _ACEOF
14820 # Create commands to substitute file output variables.
14822 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14823 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14824 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14825 echo "_ACAWK" &&
14826 echo "_ACEOF"
14827 } >conf$$files.sh &&
14828 . ./conf$$files.sh ||
14829 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14830 rm -f conf$$files.sh
14833 echo "cat >conf$$subs.awk <<_ACEOF" &&
14834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14835 echo "_ACEOF"
14836 } >conf$$subs.sh ||
14837 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14838 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14839 ac_delim='%!_!# '
14840 for ac_last_try in false false false false false :; do
14841 . ./conf$$subs.sh ||
14842 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14845 if test $ac_delim_n = $ac_delim_num; then
14846 break
14847 elif $ac_last_try; then
14848 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14849 else
14850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14852 done
14853 rm -f conf$$subs.sh
14855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14856 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14857 _ACEOF
14858 sed -n '
14860 s/^/S["/; s/!.*/"]=/
14863 s/^[^!]*!//
14864 :repl
14865 t repl
14866 s/'"$ac_delim"'$//
14867 t delim
14870 s/\(.\{148\}\).*/\1/
14871 t more1
14872 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14875 b repl
14876 :more1
14877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14880 s/.\{148\}//
14881 t nl
14882 :delim
14884 s/\(.\{148\}\).*/\1/
14885 t more2
14886 s/["\\]/\\&/g; s/^/"/; s/$/"/
14889 :more2
14890 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14893 s/.\{148\}//
14894 t delim
14895 ' <conf$$subs.awk | sed '
14896 /^[^""]/{
14898 s/\n//
14900 ' >>$CONFIG_STATUS || ac_write_fail=1
14901 rm -f conf$$subs.awk
14902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14903 _ACAWK
14904 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14905 for (key in S) S_is_set[key] = 1
14906 FS = "\a"
14907 \$ac_cs_awk_pipe_init
14910 line = $ 0
14911 nfields = split(line, field, "@")
14912 substed = 0
14913 len = length(field[1])
14914 for (i = 2; i < nfields; i++) {
14915 key = field[i]
14916 keylen = length(key)
14917 if (S_is_set[key]) {
14918 value = S[key]
14919 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14920 len += length(value) + length(field[++i])
14921 substed = 1
14922 } else
14923 len += 1 + keylen
14925 if (nfields == 3 && !substed) {
14926 key = field[2]
14927 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14928 \$ac_cs_awk_read_file
14929 next
14932 print line
14934 \$ac_cs_awk_pipe_fini
14935 _ACAWK
14936 _ACEOF
14937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14938 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14939 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14940 else
14942 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14943 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14944 _ACEOF
14946 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14947 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14948 # trailing colons and then remove the whole line if VPATH becomes empty
14949 # (actually we leave an empty line to preserve line numbers).
14950 if test "x$srcdir" = x.; then
14951 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14952 s/:*\$(srcdir):*/:/
14953 s/:*\${srcdir}:*/:/
14954 s/:*@srcdir@:*/:/
14955 s/^\([^=]*=[ ]*\):*/\1/
14956 s/:*$//
14957 s/^[^=]*=[ ]*$//
14961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14962 fi # test -n "$CONFIG_FILES"
14965 eval set X " :F $CONFIG_FILES "
14966 shift
14967 for ac_tag
14969 case $ac_tag in
14970 :[FHLC]) ac_mode=$ac_tag; continue;;
14971 esac
14972 case $ac_mode$ac_tag in
14973 :[FHL]*:*);;
14974 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14975 :[FH]-) ac_tag=-:-;;
14976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14977 esac
14978 ac_save_IFS=$IFS
14979 IFS=:
14980 set x $ac_tag
14981 IFS=$ac_save_IFS
14982 shift
14983 ac_file=$1
14984 shift
14986 case $ac_mode in
14987 :L) ac_source=$1;;
14988 :[FH])
14989 ac_file_inputs=
14990 for ac_f
14992 case $ac_f in
14993 -) ac_f="$tmp/stdin";;
14994 *) # Look for the file first in the build tree, then in the source tree
14995 # (if the path is not absolute). The absolute path cannot be DOS-style,
14996 # because $ac_f cannot contain `:'.
14997 test -f "$ac_f" ||
14998 case $ac_f in
14999 [\\/$]*) false;;
15000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15001 esac ||
15002 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15003 esac
15004 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15005 as_fn_append ac_file_inputs " '$ac_f'"
15006 done
15008 # Let's still pretend it is `configure' which instantiates (i.e., don't
15009 # use $as_me), people would be surprised to read:
15010 # /* config.h. Generated by config.status. */
15011 configure_input='Generated from '`
15012 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15013 `' by configure.'
15014 if test x"$ac_file" != x-; then
15015 configure_input="$ac_file. $configure_input"
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15017 $as_echo "$as_me: creating $ac_file" >&6;}
15019 # Neutralize special characters interpreted by sed in replacement strings.
15020 case $configure_input in #(
15021 *\&* | *\|* | *\\* )
15022 ac_sed_conf_input=`$as_echo "$configure_input" |
15023 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15024 *) ac_sed_conf_input=$configure_input;;
15025 esac
15027 case $ac_tag in
15028 *:-:* | *:-) cat >"$tmp/stdin" \
15029 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15030 esac
15032 esac
15034 ac_dir=`$as_dirname -- "$ac_file" ||
15035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15036 X"$ac_file" : 'X\(//\)[^/]' \| \
15037 X"$ac_file" : 'X\(//\)$' \| \
15038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15039 $as_echo X"$ac_file" |
15040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15041 s//\1/
15044 /^X\(\/\/\)[^/].*/{
15045 s//\1/
15048 /^X\(\/\/\)$/{
15049 s//\1/
15052 /^X\(\/\).*/{
15053 s//\1/
15056 s/.*/./; q'`
15057 as_dir="$ac_dir"; as_fn_mkdir_p
15058 ac_builddir=.
15060 case "$ac_dir" in
15061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15064 # A ".." for each directory in $ac_dir_suffix.
15065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15066 case $ac_top_builddir_sub in
15067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15069 esac ;;
15070 esac
15071 ac_abs_top_builddir=$ac_pwd
15072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15073 # for backward compatibility:
15074 ac_top_builddir=$ac_top_build_prefix
15076 case $srcdir in
15077 .) # We are building in place.
15078 ac_srcdir=.
15079 ac_top_srcdir=$ac_top_builddir_sub
15080 ac_abs_top_srcdir=$ac_pwd ;;
15081 [\\/]* | ?:[\\/]* ) # Absolute name.
15082 ac_srcdir=$srcdir$ac_dir_suffix;
15083 ac_top_srcdir=$srcdir
15084 ac_abs_top_srcdir=$srcdir ;;
15085 *) # Relative name.
15086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15087 ac_top_srcdir=$ac_top_build_prefix$srcdir
15088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15089 esac
15090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15093 case $ac_mode in
15096 # CONFIG_FILE
15099 case $INSTALL in
15100 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15101 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15102 esac
15103 _ACEOF
15105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15106 # If the template does not know about datarootdir, expand it.
15107 # FIXME: This hack should be removed a few years after 2.60.
15108 ac_datarootdir_hack=; ac_datarootdir_seen=
15109 ac_sed_dataroot='
15110 /datarootdir/ {
15114 /@datadir@/p
15115 /@docdir@/p
15116 /@infodir@/p
15117 /@localedir@/p
15118 /@mandir@/p'
15119 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15120 *datarootdir*) ac_datarootdir_seen=yes;;
15121 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15123 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15124 _ACEOF
15125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15126 ac_datarootdir_hack='
15127 s&@datadir@&$datadir&g
15128 s&@docdir@&$docdir&g
15129 s&@infodir@&$infodir&g
15130 s&@localedir@&$localedir&g
15131 s&@mandir@&$mandir&g
15132 s&\\\${datarootdir}&$datarootdir&g' ;;
15133 esac
15134 _ACEOF
15136 # Neutralize VPATH when `$srcdir' = `.'.
15137 # Shell code in configure.ac might set extrasub.
15138 # FIXME: do we really want to maintain this feature?
15139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140 ac_sed_extra="$ac_vpsub
15141 $extrasub
15142 _ACEOF
15143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15146 s|@configure_input@|$ac_sed_conf_input|;t t
15147 s&@top_builddir@&$ac_top_builddir_sub&;t t
15148 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15149 s&@srcdir@&$ac_srcdir&;t t
15150 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15151 s&@top_srcdir@&$ac_top_srcdir&;t t
15152 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15153 s&@builddir@&$ac_builddir&;t t
15154 s&@abs_builddir@&$ac_abs_builddir&;t t
15155 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15156 s&@INSTALL@&$ac_INSTALL&;t t
15157 $ac_datarootdir_hack
15159 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15160 if $ac_cs_awk_getline; then
15161 $AWK -f "$tmp/subs.awk"
15162 else
15163 $AWK -f "$tmp/subs.awk" | $SHELL
15164 fi >$tmp/out \
15165 || as_fn_error "could not create $ac_file" "$LINENO" 5
15167 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15168 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15171 which seems to be undefined. Please make sure it is defined." >&5
15172 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15173 which seems to be undefined. Please make sure it is defined." >&2;}
15175 rm -f "$tmp/stdin"
15176 case $ac_file in
15177 -) cat "$tmp/out" && rm -f "$tmp/out";;
15178 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15179 esac \
15180 || as_fn_error "could not create $ac_file" "$LINENO" 5
15185 esac
15188 case $ac_file$ac_mode in
15189 "Makefile":F) sed "$extrasub_build" Makefile |
15190 sed "$extrasub_host" |
15191 sed "$extrasub_target" > mf$$
15192 mv -f mf$$ Makefile ;;
15194 esac
15195 done # for ac_tag
15198 as_fn_exit 0
15199 _ACEOF
15200 ac_clean_files=$ac_clean_files_save
15202 test $ac_write_fail = 0 ||
15203 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15206 # configure is writing to config.log, and then calls config.status.
15207 # config.status does its own redirection, appending to config.log.
15208 # Unfortunately, on DOS this fails, as config.log is still kept open
15209 # by configure, so config.status won't be able to write to it; its
15210 # output is simply discarded. So we exec the FD to /dev/null,
15211 # effectively closing config.log, so it can be properly (re)opened and
15212 # appended to by config.status. When coming back to configure, we
15213 # need to make the FD available again.
15214 if test "$no_create" != yes; then
15215 ac_cs_success=:
15216 ac_config_status_args=
15217 test "$silent" = yes &&
15218 ac_config_status_args="$ac_config_status_args --quiet"
15219 exec 5>/dev/null
15220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15221 exec 5>>config.log
15222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15223 # would make configure fail if this is the last instruction.
15224 $ac_cs_success || as_fn_exit $?
15226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}