In gcc/: 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
[official-gcc.git] / configure
blobb1235c2afa252813b4d5430540ae4ae67d7999ec
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
557 LIBOBJS
558 compare_exclusions
559 stage2_werror_flag
560 stage1_checking
561 stage1_cflags
562 MAINT
563 MAINTAINER_MODE_FALSE
564 MAINTAINER_MODE_TRUE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
568 FLAGS_FOR_TARGET
569 RAW_CXX_FOR_TARGET
570 WINDMC_FOR_TARGET
571 WINDRES_FOR_TARGET
572 STRIP_FOR_TARGET
573 RANLIB_FOR_TARGET
574 OBJDUMP_FOR_TARGET
575 NM_FOR_TARGET
576 LIPO_FOR_TARGET
577 LD_FOR_TARGET
578 DLLTOOL_FOR_TARGET
579 AS_FOR_TARGET
580 AR_FOR_TARGET
581 GFORTRAN_FOR_TARGET
582 GCJ_FOR_TARGET
583 GCC_FOR_TARGET
584 CXX_FOR_TARGET
585 CC_FOR_TARGET
586 OBJDUMP
587 OBJCOPY
588 WINDMC
589 WINDRES
590 STRIP
591 RANLIB
593 LIPO
595 DLLTOOL
598 RUNTEST
599 EXPECT
600 MAKEINFO
601 FLEX
604 BISON
605 YACC
606 config_shell
607 WINDRES_FOR_BUILD
608 WINDMC_FOR_BUILD
609 RANLIB_FOR_BUILD
610 NM_FOR_BUILD
611 LD_FOR_BUILD
612 LDFLAGS_FOR_BUILD
613 GFORTRAN_FOR_BUILD
614 GCJ_FOR_BUILD
615 DLLTOOL_FOR_BUILD
616 CXX_FOR_BUILD
617 CXXFLAGS_FOR_BUILD
618 CFLAGS_FOR_BUILD
619 CC_FOR_BUILD
620 AS_FOR_BUILD
621 AR_FOR_BUILD
622 target_configdirs
623 configdirs
624 build_configdirs
625 INSTALL_GDB_TK
626 GDB_TK
627 CONFIGURE_GDB_TK
628 build_tooldir
629 tooldir
630 GCC_SHLIB_SUBDIR
631 RPATH_ENVVAR
632 target_configargs
633 host_configargs
634 build_configargs
635 BUILD_CONFIG
636 CXXFLAGS_FOR_TARGET
637 CFLAGS_FOR_TARGET
638 DEBUG_PREFIX_CFLAGS_FOR_TARGET
639 SYSROOT_CFLAGS_FOR_TARGET
640 stage1_languages
641 extra_host_libiberty_configure_flags
642 clooginc
643 clooglibs
644 pplinc
645 ppllibs
646 poststage1_ldflags
647 poststage1_libs
648 stage1_libs
649 stage1_ldflags
650 extra_mpc_mpfr_configure_flags
651 extra_mpc_gmp_configure_flags
652 extra_mpfr_configure_flags
653 gmpinc
654 gmplibs
655 do_compare
656 GNATMAKE
657 GNATBIND
658 ac_ct_CXX
659 CXXFLAGS
661 OBJEXT
662 EXEEXT
663 ac_ct_CC
664 CPPFLAGS
665 LDFLAGS
666 CFLAGS
668 target_subdir
669 host_subdir
670 build_subdir
671 build_libsubdir
674 LN_S
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 target_noncanonical
688 host_noncanonical
689 build_noncanonical
690 build_os
691 build_vendor
692 build_cpu
693 build
694 TOPLEVEL_CONFIGURE_ARGUMENTS
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files='serialization_dependencies
734 host_makefile_frag
735 target_makefile_frag
736 alphaieee_frag
737 ospace_frag'
738 ac_user_opts='
739 enable_option_checking
740 with_build_libsubdir
741 enable_gold
742 enable_libada
743 enable_libssp
744 enable_build_with_cxx
745 with_mpc
746 with_mpc_include
747 with_mpc_lib
748 with_mpfr_dir
749 with_mpfr
750 with_mpfr_include
751 with_mpfr_lib
752 with_gmp_dir
753 with_gmp
754 with_gmp_include
755 with_gmp_lib
756 with_host_libstdcxx
757 with_stage1_ldflags
758 with_stage1_libs
759 with_boot_libs
760 with_boot_ldflags
761 with_ppl
762 with_ppl_include
763 with_ppl_lib
764 enable_ppl_version_check
765 with_cloog
766 with_cloog_include
767 with_cloog_lib
768 enable_cloog_backend
769 enable_cloog_version_check
770 enable_lto
771 enable_stage1_languages
772 enable_objc_gc
773 with_build_sysroot
774 with_debug_prefix_map
775 enable_bootstrap
776 with_build_config
777 enable_serial_configure
778 with_build_time_tools
779 enable_maintainer_mode
780 enable_stage1_checking
781 enable_werror
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
792 CXXFLAGS
794 build_configargs
795 host_configargs
796 target_configargs
799 DLLTOOL
801 LIPO
803 RANLIB
804 STRIP
805 WINDRES
806 WINDMC
807 OBJCOPY
808 OBJDUMP
809 CC_FOR_TARGET
810 CXX_FOR_TARGET
811 GCC_FOR_TARGET
812 GCJ_FOR_TARGET
813 GFORTRAN_FOR_TARGET
814 AR_FOR_TARGET
815 AS_FOR_TARGET
816 DLLTOOL_FOR_TARGET
817 LD_FOR_TARGET
818 LIPO_FOR_TARGET
819 NM_FOR_TARGET
820 OBJDUMP_FOR_TARGET
821 RANLIB_FOR_TARGET
822 STRIP_FOR_TARGET
823 WINDRES_FOR_TARGET
824 WINDMC_FOR_TARGET'
827 # Initialize some variables set by options.
828 ac_init_help=
829 ac_init_version=false
830 ac_unrecognized_opts=
831 ac_unrecognized_sep=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
875 ac_prev=
876 ac_dashdash=
877 for ac_option
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
882 ac_prev=
883 continue
886 case $ac_option in
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *) ac_optarg=yes ;;
889 esac
891 # Accept the important Cygnus configure options, so we can diagnose typos.
893 case $ac_dashdash$ac_option in
895 ac_dashdash=yes ;;
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 ac_prev=bindir ;;
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900 bindir=$ac_optarg ;;
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
914 --config-cache | -C)
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
918 ac_prev=datadir ;;
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
946 ac_prev=docdir ;;
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948 docdir=$ac_optarg ;;
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 ac_prev=dvidir ;;
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953 dvidir=$ac_optarg ;;
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=\$ac_optarg ;;
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
982 with_gas=yes ;;
984 -help | --help | --hel | --he | -h)
985 ac_init_help=long ;;
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 ac_prev=htmldir ;;
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 | --ht=*)
1000 htmldir=$ac_optarg ;;
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 ac_prev=infodir ;;
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1014 -libdir | --libdir | --libdi | --libd)
1015 ac_prev=libdir ;;
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 ac_prev=mandir ;;
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1045 with_fp=no ;;
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1049 no_create=yes ;;
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 no_recursion=yes ;;
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 ac_prev=prefix ;;
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 ac_prev=pdfdir ;;
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1105 -psdir | --psdir | --psdi | --psd | --ps)
1106 ac_prev=psdir ;;
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 psdir=$ac_optarg ;;
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1112 silent=yes ;;
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 ac_prev=sbindir ;;
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 | --sbi=* | --sb=*)
1118 sbindir=$ac_optarg ;;
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1123 | --sha | --sh)
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 | --sha=* | --sh=*)
1129 sharedstatedir=$ac_optarg ;;
1131 -site | --site | --sit)
1132 ac_prev=site ;;
1133 -site=* | --site=* | --sit=*)
1134 site=$ac_optarg ;;
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 ac_prev=srcdir ;;
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 verbose=yes ;;
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1159 -with-* | --with-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=no ;;
1191 --x)
1192 # Obsolete; use --with-x.
1193 with_x=yes ;;
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1209 -*) as_fn_error "unrecognized option: \`$ac_option'
1210 Try \`$0 --help' for more information."
1213 *=*)
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1219 esac
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1224 # FIXME: should be removed in autoconf 3.0.
1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231 esac
1232 done
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error "missing argument to $ac_option"
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1241 no) ;;
1242 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 esac
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1255 case $ac_val in
1256 */ )
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1259 esac
1260 # Be sure to have absolute directory names.
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1266 done
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1271 build=$build_alias
1272 host=$host_alias
1273 target=$target_alias
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error "pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1318 /^X\(\/\/\)$/{
1319 s//\1/
1322 /^X\(\/\).*/{
1323 s//\1/
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1331 else
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 case $srcdir in
1353 *" "*)
1354 as_fn_error "path to source, $srcdir, contains spaces"
1356 esac
1357 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures this package to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1428 cat <<\_ACEOF
1430 Program names:
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435 System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 --target=TARGET configure for building compilers for TARGET [HOST]
1439 _ACEOF
1442 if test -n "$ac_init_help"; then
1444 cat <<\_ACEOF
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1451 --enable-libada build libada directory
1452 --enable-libssp build libssp directory
1453 --enable-build-with-cxx build with C++ compiler instead of C compiler
1454 --disable-ppl-version-check disable check for PPL version
1455 --enable-cloog-backend=backend
1456 isl: The cloog.org isl backend
1457 ppl-legacy: The legacy ppl backend - default
1458 ppl: The cloog.org ppl backend
1459 --disable-cloog-version-check
1460 disable check for CLooG version
1461 --enable-lto enable link time optimization support
1462 --enable-stage1-languages[=all] choose additional languages to build during
1463 stage1. Mostly useful for compiler development.
1464 --enable-objc-gc enable use of Boehm's garbage collector with the
1465 GNU Objective-C runtime
1466 --enable-bootstrap enable bootstrapping [yes if native build]
1467 --enable-serial-[{host,target,build}-]configure
1468 force sequential configuration of
1469 sub-packages for the host, target or build
1470 machine, or all sub-packages
1471 --enable-maintainer-mode enable make rules and dependencies not useful
1472 (and sometimes confusing) to the casual installer
1473 --enable-stage1-checking[=all] choose additional checking for stage1
1474 of the compiler
1475 --enable-werror enable -Werror in bootstrap stage2 and later
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-build-libsubdir=DIR Directory where to find libraries for build system
1481 --with-mpc=PATH specify prefix directory for installed MPC package.
1482 Equivalent to --with-mpc-include=PATH/include
1483 plus --with-mpc-lib=PATH/lib
1484 --with-mpc-include=PATH
1485 specify directory for installed MPC include files
1486 --with-mpc-lib=PATH specify directory for the installed MPC library
1487 --with-mpfr-dir=PATH this option has been REMOVED
1488 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1489 Equivalent to --with-mpfr-include=PATH/include
1490 plus --with-mpfr-lib=PATH/lib
1491 --with-mpfr-include=PATH
1492 specify directory for installed MPFR include files
1493 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1494 --with-gmp-dir=PATH this option has been REMOVED
1495 --with-gmp=PATH specify prefix directory for the installed GMP package.
1496 Equivalent to --with-gmp-include=PATH/include
1497 plus --with-gmp-lib=PATH/lib
1498 --with-gmp-include=PATH specify directory for installed GMP include files
1499 --with-gmp-lib=PATH specify directory for the installed GMP library
1500 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1501 when linking with PPL
1502 --with-stage1-ldflags=FLAGS Linker flags for stage1
1503 -with-stage1-libs=LIBS Libraries for stage1
1504 --with-boot-libs=LIBS Libraries for stage2 and later
1505 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1506 --with-ppl=PATH Specify prefix directory for the installed PPL package
1507 Equivalent to --with-ppl-include=PATH/include
1508 plus --with-ppl-lib=PATH/lib
1509 --with-ppl-include=PATH Specify directory for installed PPL include files
1510 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1511 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1512 package. Equivalent to
1513 --with-cloog-include=PATH/include plus
1514 --with-cloog-lib=PATH/lib
1515 --with-cloog-include=PATH
1516 Specify directory for installed CLooG include files
1517 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1518 library
1519 --with-build-sysroot=SYSROOT
1520 use sysroot as the system root during the build
1521 --with-debug-prefix-map='A=B C=D ...'
1522 map A to B, C to D ... in debug information
1523 --with-build-config='NAME NAME2...'
1524 Use config/NAME.mk build configuration
1525 --with-build-time-tools=PATH
1526 use given path to find target tools during the build
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CXX C++ compiler command
1537 CXXFLAGS C++ compiler flags
1538 build_configargs
1539 additional configure arguments for build directories
1540 host_configargs
1541 additional configure arguments for host directories
1542 target_configargs
1543 additional configure arguments for target directories
1544 AR AR for the host
1545 AS AS for the host
1546 DLLTOOL DLLTOOL for the host
1547 LD LD for the host
1548 LIPO LIPO for the host
1549 NM NM for the host
1550 RANLIB RANLIB for the host
1551 STRIP STRIP for the host
1552 WINDRES WINDRES for the host
1553 WINDMC WINDMC for the host
1554 OBJCOPY OBJCOPY for the host
1555 OBJDUMP OBJDUMP for the host
1556 CC_FOR_TARGET
1557 CC for the target
1558 CXX_FOR_TARGET
1559 CXX for the target
1560 GCC_FOR_TARGET
1561 GCC for the target
1562 GCJ_FOR_TARGET
1563 GCJ for the target
1564 GFORTRAN_FOR_TARGET
1565 GFORTRAN for the target
1566 AR_FOR_TARGET
1567 AR for the target
1568 AS_FOR_TARGET
1569 AS for the target
1570 DLLTOOL_FOR_TARGET
1571 DLLTOOL for the target
1572 LD_FOR_TARGET
1573 LD for the target
1574 LIPO_FOR_TARGET
1575 LIPO for the target
1576 NM_FOR_TARGET
1577 NM for the target
1578 OBJDUMP_FOR_TARGET
1579 OBJDUMP for the target
1580 RANLIB_FOR_TARGET
1581 RANLIB for the target
1582 STRIP_FOR_TARGET
1583 STRIP for the target
1584 WINDRES_FOR_TARGET
1585 WINDRES for the target
1586 WINDMC_FOR_TARGET
1587 WINDMC for the target
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1592 Report bugs to the package provider.
1593 _ACEOF
1594 ac_status=$?
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 configure
1656 generated by GNU Autoconf 2.64
1658 Copyright (C) 2009 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662 exit
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 ac_retval=1
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 return $ac_retval
1705 } # ac_fn_c_try_compile
1707 # ac_fn_cxx_try_compile LINENO
1708 # ----------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_cxx_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_cxx_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1738 ac_retval=1
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 return $ac_retval
1743 } # ac_fn_cxx_try_compile
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_link ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 $as_test_x conftest$ac_exeext
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 return $ac_retval
1789 } # ac_fn_c_try_link
1790 cat >config.log <<_ACEOF
1791 This file contains any messages produced by compilers while
1792 running configure, to aid debugging if configure makes a mistake.
1794 It was created by $as_me, which was
1795 generated by GNU Autoconf 2.64. Invocation command line was
1797 $ $0 $@
1799 _ACEOF
1800 exec 5>>config.log
1802 cat <<_ASUNAME
1803 ## --------- ##
1804 ## Platform. ##
1805 ## --------- ##
1807 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1808 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1809 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1810 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1811 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1814 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1816 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1817 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1818 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1819 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1820 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1821 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1822 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1824 _ASUNAME
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 $as_echo "PATH: $as_dir"
1832 done
1833 IFS=$as_save_IFS
1835 } >&5
1837 cat >&5 <<_ACEOF
1840 ## ----------- ##
1841 ## Core tests. ##
1842 ## ----------- ##
1844 _ACEOF
1847 # Keep a trace of the command line.
1848 # Strip out --no-create and --no-recursion so they do not pile up.
1849 # Strip out --silent because we don't want to record it for future runs.
1850 # Also quote any args containing shell meta-characters.
1851 # Make two passes to allow for proper duplicate-argument suppression.
1852 ac_configure_args=
1853 ac_configure_args0=
1854 ac_configure_args1=
1855 ac_must_keep_next=false
1856 for ac_pass in 1 2
1858 for ac_arg
1860 case $ac_arg in
1861 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863 | -silent | --silent | --silen | --sile | --sil)
1864 continue ;;
1865 *\'*)
1866 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1867 esac
1868 case $ac_pass in
1869 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871 as_fn_append ac_configure_args1 " '$ac_arg'"
1872 if test $ac_must_keep_next = true; then
1873 ac_must_keep_next=false # Got value, back to normal.
1874 else
1875 case $ac_arg in
1876 *=* | --config-cache | -C | -disable-* | --disable-* \
1877 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1878 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1879 | -with-* | --with-* | -without-* | --without-* | --x)
1880 case "$ac_configure_args0 " in
1881 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882 esac
1884 -* ) ac_must_keep_next=true ;;
1885 esac
1887 as_fn_append ac_configure_args " '$ac_arg'"
1889 esac
1890 done
1891 done
1892 { ac_configure_args0=; unset ac_configure_args0;}
1893 { ac_configure_args1=; unset ac_configure_args1;}
1895 # When interrupted or exit'd, cleanup temporary files, and complete
1896 # config.log. We remove comments because anyway the quotes in there
1897 # would cause problems or look ugly.
1898 # WARNING: Use '\'' to represent an apostrophe within the trap.
1899 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1900 trap 'exit_status=$?
1901 # Save into config.log some information that might help in debugging.
1903 echo
1905 cat <<\_ASBOX
1906 ## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##
1909 _ASBOX
1910 echo
1911 # The following way of writing the cache mishandles newlines in values,
1913 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1914 eval ac_val=\$$ac_var
1915 case $ac_val in #(
1916 *${as_nl}*)
1917 case $ac_var in #(
1918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920 esac
1921 case $ac_var in #(
1922 _ | IFS | as_nl) ;; #(
1923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1924 *) { eval $ac_var=; unset $ac_var;} ;;
1925 esac ;;
1926 esac
1927 done
1928 (set) 2>&1 |
1929 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1930 *${as_nl}ac_space=\ *)
1931 sed -n \
1932 "s/'\''/'\''\\\\'\'''\''/g;
1933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934 ;; #(
1936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938 esac |
1939 sort
1941 echo
1943 cat <<\_ASBOX
1944 ## ----------------- ##
1945 ## Output variables. ##
1946 ## ----------------- ##
1947 _ASBOX
1948 echo
1949 for ac_var in $ac_subst_vars
1951 eval ac_val=\$$ac_var
1952 case $ac_val in
1953 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 esac
1955 $as_echo "$ac_var='\''$ac_val'\''"
1956 done | sort
1957 echo
1959 if test -n "$ac_subst_files"; then
1960 cat <<\_ASBOX
1961 ## ------------------- ##
1962 ## File substitutions. ##
1963 ## ------------------- ##
1964 _ASBOX
1965 echo
1966 for ac_var in $ac_subst_files
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1977 if test -s confdefs.h; then
1978 cat <<\_ASBOX
1979 ## ----------- ##
1980 ## confdefs.h. ##
1981 ## ----------- ##
1982 _ASBOX
1983 echo
1984 cat confdefs.h
1985 echo
1987 test "$ac_signal" != 0 &&
1988 $as_echo "$as_me: caught signal $ac_signal"
1989 $as_echo "$as_me: exit $exit_status"
1990 } >&5
1991 rm -f core *.core core.conftest.* &&
1992 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1993 exit $exit_status
1995 for ac_signal in 1 2 13 15; do
1996 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1997 done
1998 ac_signal=0
2000 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2001 rm -f -r conftest* confdefs.h
2003 $as_echo "/* confdefs.h */" > confdefs.h
2005 # Predefined preprocessor variables.
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_NAME "$PACKAGE_NAME"
2009 _ACEOF
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2013 _ACEOF
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2017 _ACEOF
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_STRING "$PACKAGE_STRING"
2021 _ACEOF
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025 _ACEOF
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_URL "$PACKAGE_URL"
2029 _ACEOF
2032 # Let the site file select an alternate cache file if it wants to.
2033 # Prefer an explicitly selected file to automatically selected ones.
2034 ac_site_file1=NONE
2035 ac_site_file2=NONE
2036 if test -n "$CONFIG_SITE"; then
2037 ac_site_file1=$CONFIG_SITE
2038 elif test "x$prefix" != xNONE; then
2039 ac_site_file1=$prefix/share/config.site
2040 ac_site_file2=$prefix/etc/config.site
2041 else
2042 ac_site_file1=$ac_default_prefix/share/config.site
2043 ac_site_file2=$ac_default_prefix/etc/config.site
2045 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2047 test "x$ac_site_file" = xNONE && continue
2048 if test -r "$ac_site_file"; then
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2050 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2051 sed 's/^/| /' "$ac_site_file" >&5
2052 . "$ac_site_file"
2054 done
2056 if test -r "$cache_file"; then
2057 # Some versions of bash will fail to source /dev/null (special
2058 # files actually), so we avoid doing that.
2059 if test -f "$cache_file"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2061 $as_echo "$as_me: loading cache $cache_file" >&6;}
2062 case $cache_file in
2063 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2064 *) . "./$cache_file";;
2065 esac
2067 else
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2069 $as_echo "$as_me: creating cache $cache_file" >&6;}
2070 >$cache_file
2073 # Check that the precious variables saved in the cache have kept the same
2074 # value.
2075 ac_cache_corrupted=false
2076 for ac_var in $ac_precious_vars; do
2077 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2078 eval ac_new_set=\$ac_env_${ac_var}_set
2079 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2080 eval ac_new_val=\$ac_env_${ac_var}_value
2081 case $ac_old_set,$ac_new_set in
2082 set,)
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2084 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2085 ac_cache_corrupted=: ;;
2086 ,set)
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2088 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2089 ac_cache_corrupted=: ;;
2090 ,);;
2092 if test "x$ac_old_val" != "x$ac_new_val"; then
2093 # differences in whitespace do not lead to failure.
2094 ac_old_val_w=`echo x $ac_old_val`
2095 ac_new_val_w=`echo x $ac_new_val`
2096 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2098 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2099 ac_cache_corrupted=:
2100 else
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2102 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2103 eval $ac_var=\$ac_old_val
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2106 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2108 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2109 fi;;
2110 esac
2111 # Pass precious variables to config.status.
2112 if test "$ac_new_set" = set; then
2113 case $ac_new_val in
2114 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2115 *) ac_arg=$ac_var=$ac_new_val ;;
2116 esac
2117 case " $ac_configure_args " in
2118 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2119 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2120 esac
2122 done
2123 if $ac_cache_corrupted; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2127 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2128 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2130 ## -------------------- ##
2131 ## Main body of script. ##
2132 ## -------------------- ##
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148 progname=$0
2149 # if PWD already has a value, it is probably wrong.
2150 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2152 # Export original configure arguments for use by sub-configures.
2153 # Quote arguments with shell meta charatcers.
2154 TOPLEVEL_CONFIGURE_ARGUMENTS=
2155 set -- "$progname" "$@"
2156 for ac_arg
2158 case "$ac_arg" in
2159 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2160 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2161 # if the argument is of the form -foo=baz, quote the baz part only
2162 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2163 *) ;;
2164 esac
2165 # Add the quoted argument to the list.
2166 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2167 done
2168 if test "$silent" = yes; then
2169 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2171 # Remove the initial space we just introduced and, as these will be
2172 # expanded by make, quote '$'.
2173 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2176 # Find the build, host, and target systems.
2177 ac_aux_dir=
2178 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2179 for ac_t in install-sh install.sh shtool; do
2180 if test -f "$ac_dir/$ac_t"; then
2181 ac_aux_dir=$ac_dir
2182 ac_install_sh="$ac_aux_dir/$ac_t -c"
2183 break 2
2185 done
2186 done
2187 if test -z "$ac_aux_dir"; then
2188 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2191 # These three variables are undocumented and unsupported,
2192 # and are intended to be withdrawn in a future Autoconf release.
2193 # They can cause serious problems if a builder's source tree is in a directory
2194 # whose full name contains unusual characters.
2195 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2196 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2197 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2200 # Make sure we can run config.sub.
2201 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2202 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2205 $as_echo_n "checking build system type... " >&6; }
2206 if test "${ac_cv_build+set}" = set; then :
2207 $as_echo_n "(cached) " >&6
2208 else
2209 ac_build_alias=$build_alias
2210 test "x$ac_build_alias" = x &&
2211 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2212 test "x$ac_build_alias" = x &&
2213 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2214 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2215 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2219 $as_echo "$ac_cv_build" >&6; }
2220 case $ac_cv_build in
2221 *-*-*) ;;
2222 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2223 esac
2224 build=$ac_cv_build
2225 ac_save_IFS=$IFS; IFS='-'
2226 set x $ac_cv_build
2227 shift
2228 build_cpu=$1
2229 build_vendor=$2
2230 shift; shift
2231 # Remember, the first character of IFS is used to create $*,
2232 # except with old shells:
2233 build_os=$*
2234 IFS=$ac_save_IFS
2235 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2238 case ${build_alias} in
2239 "") build_noncanonical=${build} ;;
2240 *) build_noncanonical=${build_alias} ;;
2241 esac
2245 case ${host_alias} in
2246 "") host_noncanonical=${build_noncanonical} ;;
2247 *) host_noncanonical=${host_alias} ;;
2248 esac
2252 case ${target_alias} in
2253 "") target_noncanonical=${host_noncanonical} ;;
2254 *) target_noncanonical=${target_alias} ;;
2255 esac
2260 test "$host_noncanonical" = "$target_noncanonical" &&
2261 test "$program_prefix$program_suffix$program_transform_name" = \
2262 NONENONEs,x,x, &&
2263 program_transform_name=s,y,y,
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2266 $as_echo_n "checking host system type... " >&6; }
2267 if test "${ac_cv_host+set}" = set; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 if test "x$host_alias" = x; then
2271 ac_cv_host=$ac_cv_build
2272 else
2273 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2274 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2279 $as_echo "$ac_cv_host" >&6; }
2280 case $ac_cv_host in
2281 *-*-*) ;;
2282 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2283 esac
2284 host=$ac_cv_host
2285 ac_save_IFS=$IFS; IFS='-'
2286 set x $ac_cv_host
2287 shift
2288 host_cpu=$1
2289 host_vendor=$2
2290 shift; shift
2291 # Remember, the first character of IFS is used to create $*,
2292 # except with old shells:
2293 host_os=$*
2294 IFS=$ac_save_IFS
2295 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2299 $as_echo_n "checking target system type... " >&6; }
2300 if test "${ac_cv_target+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test "x$target_alias" = x; then
2304 ac_cv_target=$ac_cv_host
2305 else
2306 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2312 $as_echo "$ac_cv_target" >&6; }
2313 case $ac_cv_target in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2316 esac
2317 target=$ac_cv_target
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_target
2320 shift
2321 target_cpu=$1
2322 target_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 target_os=$*
2327 IFS=$ac_save_IFS
2328 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2331 # The aliases save the names the user supplied, while $host etc.
2332 # will get canonicalized.
2333 test -n "$target_alias" &&
2334 test "$program_prefix$program_suffix$program_transform_name" = \
2335 NONENONEs,x,x, &&
2336 program_prefix=${target_alias}-
2338 test "$program_prefix" != NONE &&
2339 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2340 # Use a double $ so make ignores it.
2341 test "$program_suffix" != NONE &&
2342 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2343 # Double any \ or $.
2344 # By default was `s,x,x', remove it if useless.
2345 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2346 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2350 # Get 'install' or 'install-sh' and its variants.
2351 # Find a good install program. We prefer a C program (faster),
2352 # so one script is as good as another. But avoid the broken or
2353 # incompatible versions:
2354 # SysV /etc/install, /usr/sbin/install
2355 # SunOS /usr/etc/install
2356 # IRIX /sbin/install
2357 # AIX /bin/install
2358 # AmigaOS /C/install, which installs bootblocks on floppy discs
2359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2362 # OS/2's system install, which has a completely different semantic
2363 # ./install, which can be erroneously created by make from ./install.sh.
2364 # Reject install programs that cannot install multiple files.
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2366 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2367 if test -z "$INSTALL"; then
2368 if test "${ac_cv_path_install+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 # Account for people who put trailing slashes in PATH elements.
2377 case $as_dir/ in #((
2378 ./ | .// | /[cC]/* | \
2379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2380 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2381 /usr/ucb/* ) ;;
2383 # OSF1 and SCO ODT 3.0 have their own names for install.
2384 # Don't use installbsd from OSF since it installs stuff as root
2385 # by default.
2386 for ac_prog in ginstall scoinst install; do
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2389 if test $ac_prog = install &&
2390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391 # AIX install. It has an incompatible calling convention.
2393 elif test $ac_prog = install &&
2394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395 # program-specific install script used by HP pwplus--don't use.
2397 else
2398 rm -rf conftest.one conftest.two conftest.dir
2399 echo one > conftest.one
2400 echo two > conftest.two
2401 mkdir conftest.dir
2402 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2403 test -s conftest.one && test -s conftest.two &&
2404 test -s conftest.dir/conftest.one &&
2405 test -s conftest.dir/conftest.two
2406 then
2407 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2408 break 3
2412 done
2413 done
2415 esac
2417 done
2418 IFS=$as_save_IFS
2420 rm -rf conftest.one conftest.two conftest.dir
2423 if test "${ac_cv_path_install+set}" = set; then
2424 INSTALL=$ac_cv_path_install
2425 else
2426 # As a last resort, use the slow shell script. Don't cache a
2427 # value for INSTALL within a source directory, because that will
2428 # break other packages using the cache if that directory is
2429 # removed, or if the value is a relative name.
2430 INSTALL=$ac_install_sh
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2434 $as_echo "$INSTALL" >&6; }
2436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437 # It thinks the first close brace ends the variable substitution.
2438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2445 $as_echo_n "checking whether ln works... " >&6; }
2446 if test "${acx_cv_prog_LN+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 rm -f conftestdata_t
2450 echo >conftestdata_f
2451 if ln conftestdata_f conftestdata_t 2>/dev/null
2452 then
2453 acx_cv_prog_LN=ln
2454 else
2455 acx_cv_prog_LN=no
2457 rm -f conftestdata_f conftestdata_t
2460 if test $acx_cv_prog_LN = no; then
2461 LN="cp"
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2463 $as_echo "no, using $LN" >&6; }
2464 else
2465 LN="$acx_cv_prog_LN"
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467 $as_echo "yes" >&6; }
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2471 $as_echo_n "checking whether ln -s works... " >&6; }
2472 LN_S=$as_ln_s
2473 if test "$LN_S" = "ln -s"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475 $as_echo "yes" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2478 $as_echo "no, using $LN_S" >&6; }
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2482 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2483 if test "${ac_cv_path_SED+set}" = set; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2487 for ac_i in 1 2 3 4 5 6 7; do
2488 ac_script="$ac_script$as_nl$ac_script"
2489 done
2490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2491 { ac_script=; unset ac_script;}
2492 if test -z "$SED"; then
2493 ac_path_SED_found=false
2494 # Loop through the user's path and test for each of PROGNAME-LIST
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_prog in sed gsed; do
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2503 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2504 # Check for GNU ac_path_SED and select it if it is found.
2505 # Check for GNU $ac_path_SED
2506 case `"$ac_path_SED" --version 2>&1` in
2507 *GNU*)
2508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2510 ac_count=0
2511 $as_echo_n 0123456789 >"conftest.in"
2512 while :
2514 cat "conftest.in" "conftest.in" >"conftest.tmp"
2515 mv "conftest.tmp" "conftest.in"
2516 cp "conftest.in" "conftest.nl"
2517 $as_echo '' >> "conftest.nl"
2518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2520 as_fn_arith $ac_count + 1 && ac_count=$as_val
2521 if test $ac_count -gt ${ac_path_SED_max-0}; then
2522 # Best one so far, save it but keep looking for a better one
2523 ac_cv_path_SED="$ac_path_SED"
2524 ac_path_SED_max=$ac_count
2526 # 10*(2^10) chars as input seems more than enough
2527 test $ac_count -gt 10 && break
2528 done
2529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2530 esac
2532 $ac_path_SED_found && break 3
2533 done
2534 done
2535 done
2536 IFS=$as_save_IFS
2537 if test -z "$ac_cv_path_SED"; then
2538 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2540 else
2541 ac_cv_path_SED=$SED
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2546 $as_echo "$ac_cv_path_SED" >&6; }
2547 SED="$ac_cv_path_SED"
2548 rm -f conftest.sed
2550 for ac_prog in gawk mawk nawk awk
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_AWK+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$AWK"; then
2560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_AWK="$ac_prog"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2573 done
2574 done
2575 IFS=$as_save_IFS
2579 AWK=$ac_cv_prog_AWK
2580 if test -n "$AWK"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2582 $as_echo "$AWK" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2589 test -n "$AWK" && break
2590 done
2593 ### we might need to use some other shell than /bin/sh for running subshells
2594 ### If we are on Windows, search for the shell. This will permit people
2595 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2596 ### without also having to set CONFIG_SHELL. This code will work when
2597 ### using bash, which sets OSTYPE.
2598 case "${OSTYPE}" in
2599 *win32*)
2600 if test x${CONFIG_SHELL} = x ; then
2601 if test ! -f /bin/sh ; then
2602 if test x${SHELL} != x && test -f ${SHELL} ; then
2603 CONFIG_SHELL=${SHELL}
2604 export CONFIG_SHELL
2605 else
2606 for prog in sh sh.exe bash bash.exe; do
2607 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2608 for dir in $PATH; do
2609 test -z "$dir" && dir=.
2610 if test -f $dir/$prog; then
2611 CONFIG_SHELL=$dir/$prog
2612 export CONFIG_SHELL
2613 break
2615 done
2616 IFS="$save_ifs"
2617 test -n "${CONFIG_SHELL}" && break
2618 done
2623 esac
2625 config_shell=${CONFIG_SHELL-/bin/sh}
2627 moveifchange=${srcdir}/move-if-change
2629 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2631 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2632 # a relative path.
2633 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2634 INSTALL="${srcpwd}/install-sh -c"
2637 # Set srcdir to "." if that's what it is.
2638 # This is important for multilib support.
2639 pwd=`${PWDCMD-pwd}`
2640 if test "${pwd}" = "${srcpwd}" ; then
2641 srcdir=.
2644 topsrcdir=$srcpwd
2646 extra_host_args=
2648 ### To add a new directory to the tree, first choose whether it is a target
2649 ### or a host dependent tool. Then put it into the appropriate list
2650 ### (library or tools, host or target), doing a dependency sort.
2652 # Subdirs will be configured in the order listed in build_configdirs,
2653 # configdirs, or target_configdirs; see the serialization section below.
2655 # Dependency sorting is only needed when *configuration* must be done in
2656 # a particular order. In all cases a dependency should be specified in
2657 # the Makefile, whether or not it's implicitly specified here.
2659 # Double entries in build_configdirs, configdirs, or target_configdirs may
2660 # cause circular dependencies and break everything horribly.
2662 # these library is used by various programs built for the build
2663 # environment
2665 build_libs="build-libiberty"
2667 # these tools are built for the build environment
2668 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2670 # these libraries are used by various programs built for the host environment
2672 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2674 # these tools are built for the host environment
2675 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2676 # know that we are building the simulator.
2677 # binutils, gas and ld appear in that order because it makes sense to run
2678 # "make check" in that particular order.
2679 # If --enable-gold is used, "gold" may replace "ld".
2680 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2682 # libgcj represents the runtime libraries only used by gcj.
2683 libgcj="target-libffi \
2684 target-zlib \
2685 target-qthreads \
2686 target-libjava"
2688 # these libraries are built for the target environment, and are built after
2689 # the host libraries and the host tools (which may be a cross compiler)
2691 target_libraries="target-libgcc \
2692 target-libiberty \
2693 target-libgloss \
2694 target-newlib \
2695 target-libgomp \
2696 target-libstdc++-v3 \
2697 target-libmudflap \
2698 target-libssp \
2699 target-libquadmath \
2700 target-libgfortran \
2701 target-boehm-gc \
2702 ${libgcj} \
2703 target-libobjc \
2704 target-libada"
2706 # these tools are built using the target libraries, and are intended to
2707 # run only in the target environment
2709 # note: any program that *uses* libraries that are in the "target_libraries"
2710 # list belongs in this list. those programs are also very likely
2711 # candidates for the "native_only" list which follows
2713 target_tools="target-examples target-groff target-gperf target-rda"
2715 ################################################################################
2717 ## All tools belong in one of the four categories, and are assigned above
2718 ## We assign ${configdirs} this way to remove all embedded newlines. This
2719 ## is important because configure will choke if they ever get through.
2720 ## ${configdirs} is directories we build using the host tools.
2721 ## ${target_configdirs} is directories we build using the target tools.
2722 configdirs=`echo ${host_libs} ${host_tools}`
2723 target_configdirs=`echo ${target_libraries} ${target_tools}`
2724 build_configdirs=`echo ${build_libs} ${build_tools}`
2728 ################################################################################
2730 srcname="gnu development package"
2732 # This gets set non-empty for some net releases of packages.
2733 appdirs=""
2735 # Define is_cross_compiler to save on calls to 'test'.
2736 is_cross_compiler=
2737 if test x"${host}" = x"${target}" ; then
2738 is_cross_compiler=no
2739 else
2740 is_cross_compiler=yes
2743 # Find the build and target subdir names.
2745 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2746 # have matching libraries, they should use host libraries: Makefile.tpl
2747 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2748 # However, they still use the build modules, because the corresponding
2749 # host modules (e.g. bison) are only built for the host when bootstrap
2750 # finishes. So:
2751 # - build_subdir is where we find build modules, and never changes.
2752 # - build_libsubdir is where we find build libraries, and can be overridden.
2754 # Prefix 'build-' so this never conflicts with target_subdir.
2755 build_subdir="build-${build_noncanonical}"
2757 # Check whether --with-build-libsubdir was given.
2758 if test "${with_build_libsubdir+set}" = set; then :
2759 withval=$with_build_libsubdir; build_libsubdir="$withval"
2760 else
2761 build_libsubdir="$build_subdir"
2764 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2765 if ( test $srcdir = . && test -d gcc ) \
2766 || test -d $srcdir/../host-${host_noncanonical}; then
2767 host_subdir="host-${host_noncanonical}"
2768 else
2769 host_subdir=.
2771 # No prefix.
2772 target_subdir=${target_noncanonical}
2774 # Be sure to cover against remnants of an in-tree build.
2775 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2776 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2777 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2780 # Skipdirs are removed silently.
2781 skipdirs=
2782 # Noconfigdirs are removed loudly.
2783 noconfigdirs=""
2785 use_gnu_ld=
2786 # Make sure we don't let GNU ld be added if we didn't want it.
2787 if test x$with_gnu_ld = xno ; then
2788 use_gnu_ld=no
2789 noconfigdirs="$noconfigdirs ld gold"
2792 use_gnu_as=
2793 # Make sure we don't let GNU as be added if we didn't want it.
2794 if test x$with_gnu_as = xno ; then
2795 use_gnu_as=no
2796 noconfigdirs="$noconfigdirs gas"
2799 use_included_zlib=
2800 # Make sure we don't let ZLIB be added if we didn't want it.
2801 if test x$with_system_zlib = xyes ; then
2802 use_included_zlib=no
2803 noconfigdirs="$noconfigdirs zlib"
2806 # some tools are so dependent upon X11 that if we're not building with X,
2807 # it's not even worth trying to configure, much less build, that tool.
2809 case ${with_x} in
2810 yes | "") ;; # the default value for this tree is that X11 is available
2812 skipdirs="${skipdirs} tk itcl libgui"
2813 # We won't be able to build gdbtk without X.
2814 enable_gdbtk=no
2816 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2817 esac
2819 # Some tools are only suitable for building in a "native" situation.
2820 # Remove these if host!=target.
2821 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2823 # Similarly, some are only suitable for cross toolchains.
2824 # Remove these if host=target.
2825 cross_only="target-libgloss target-newlib target-opcodes"
2827 case $is_cross_compiler in
2828 no) skipdirs="${skipdirs} ${cross_only}" ;;
2829 yes) skipdirs="${skipdirs} ${native_only}" ;;
2830 esac
2832 # If both --with-headers and --with-libs are specified, default to
2833 # --without-newlib.
2834 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2835 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2836 if test x"${with_newlib}" = x ; then
2837 with_newlib=no
2841 # Recognize --with-newlib/--without-newlib.
2842 case ${with_newlib} in
2843 no) skipdirs="${skipdirs} target-newlib" ;;
2844 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2845 esac
2847 # Handle --enable-gold.
2848 # --enable-gold Build only gold
2849 # --disable-gold [default] Build only ld
2850 # --enable-gold=both Build both gold and ld, ld is default
2851 # --enable-gold=both/ld Same
2852 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
2854 # Check whether --enable-gold was given.
2855 if test "${enable_gold+set}" = set; then :
2856 enableval=$enable_gold; ENABLE_GOLD=$enableval
2857 else
2858 ENABLE_GOLD=no
2861 case "${ENABLE_GOLD}" in
2862 yes|both|both/gold|both/ld)
2863 # Check for ELF target.
2864 is_elf=no
2865 case "${target}" in
2866 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2867 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2868 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2869 case "${target}" in
2870 *-*-linux*aout* | *-*-linux*oldld*)
2873 is_elf=yes
2875 esac
2876 esac
2878 if test "$is_elf" = "yes"; then
2879 # Check for target supported by gold.
2880 case "${target}" in
2881 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2882 case "${ENABLE_GOLD}" in
2883 both*)
2884 configdirs="$configdirs gold"
2887 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2889 esac
2890 ENABLE_GOLD=yes
2892 esac
2898 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2900 esac
2902 # Configure extra directories which are host specific
2904 case "${host}" in
2905 *-cygwin*)
2906 configdirs="$configdirs libtermcap" ;;
2907 esac
2909 # A target can indicate whether a language isn't supported for some reason.
2910 # Only spaces may be used in this macro; not newlines or tabs.
2911 unsupported_languages=
2913 # Remove more programs from consideration, based on the host or
2914 # target this usually means that a port of the program doesn't
2915 # exist yet.
2917 case "${host}" in
2918 hppa*64*-*-*)
2919 noconfigdirs="$noconfigdirs byacc"
2921 i[3456789]86-*-vsta)
2922 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2924 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2925 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2927 x86_64-*-mingw*)
2928 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2930 i[3456789]86-*-mingw32*)
2931 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2932 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2934 i[3456789]86-*-beos*)
2935 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2937 *-*-cygwin*)
2938 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2940 *-*-netbsd*)
2941 noconfigdirs="$noconfigdirs rcs"
2943 ppc*-*-pe)
2944 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2946 powerpc-*-beos*)
2947 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2949 esac
2952 # Check whether --enable-libada was given.
2953 if test "${enable_libada+set}" = set; then :
2954 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2955 else
2956 ENABLE_LIBADA=yes
2959 if test "${ENABLE_LIBADA}" != "yes" ; then
2960 noconfigdirs="$noconfigdirs gnattools"
2963 # Check whether --enable-libssp was given.
2964 if test "${enable_libssp+set}" = set; then :
2965 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2966 else
2967 ENABLE_LIBSSP=yes
2971 # Save it here so that, even in case of --enable-libgcj, if the Java
2972 # front-end isn't enabled, we still get libgcj disabled.
2973 libgcj_saved=$libgcj
2974 case $enable_libgcj in
2975 yes)
2976 # If we reset it here, it won't get added to noconfigdirs in the
2977 # target-specific build rules, so it will be forcibly enabled
2978 # (unless the Java language itself isn't enabled).
2979 libgcj=
2982 # Make sure we get it printed in the list of not supported target libs.
2983 noconfigdirs="$noconfigdirs ${libgcj}"
2985 esac
2988 # Disable libmudflap on some systems.
2989 if test x$enable_libmudflap = x ; then
2990 case "${target}" in
2991 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2992 # Enable libmudflap by default in GNU and friends.
2994 *-*-freebsd*)
2995 # Enable libmudflap by default in FreeBSD.
2998 # Disable it by default everywhere else.
2999 noconfigdirs="$noconfigdirs target-libmudflap"
3001 esac
3004 # Disable libgomp on non POSIX hosted systems.
3005 if test x$enable_libgomp = x ; then
3006 # Enable libgomp by default on hosted POSIX systems.
3007 case "${target}" in
3008 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3010 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3012 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3014 *-*-darwin* | *-*-aix*)
3017 noconfigdirs="$noconfigdirs target-libgomp"
3019 esac
3022 # Default libgloss CPU subdirectory.
3023 libgloss_dir="$target_cpu"
3025 case "${target}" in
3026 *-*-chorusos)
3027 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3029 powerpc-*-darwin*)
3030 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3031 noconfigdirs="$noconfigdirs sim target-rda"
3033 i[3456789]86-*-darwin*)
3034 noconfigdirs="$noconfigdirs ld gprof"
3035 noconfigdirs="$noconfigdirs sim target-rda"
3037 x86_64-*-darwin[912]*)
3038 noconfigdirs="$noconfigdirs ld gas gprof"
3039 noconfigdirs="$noconfigdirs sim target-rda"
3041 *-*-darwin*)
3042 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3043 noconfigdirs="$noconfigdirs sim target-rda"
3044 noconfigdirs="$noconfigdirs ${libgcj}"
3046 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3047 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3049 *-*-freebsd*)
3050 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3051 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3052 && test -f /usr/local/include/gmp.h; then
3053 with_gmp=/usr/local
3056 # Skip some stuff that's unsupported on some FreeBSD configurations.
3057 case "${target}" in
3058 i*86-*-*) ;;
3059 alpha*-*-*) ;;
3060 x86_64-*-*) ;;
3062 noconfigdirs="$noconfigdirs ${libgcj}"
3064 esac
3066 *-*-kaos*)
3067 # Remove unsupported stuff on all kaOS configurations.
3068 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3069 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3070 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3071 noconfigdirs="$noconfigdirs target-libgloss"
3073 *-*-netbsd*)
3074 # Skip some stuff on all NetBSD configurations.
3075 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3077 # Skip some stuff that's unsupported on some NetBSD configurations.
3078 case "${target}" in
3079 i*86-*-netbsdelf*) ;;
3080 arm*-*-netbsdelf*) ;;
3082 noconfigdirs="$noconfigdirs ${libgcj}"
3084 esac
3086 *-*-netware*)
3087 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3089 *-*-rtems*)
3090 skipdirs="${skipdirs} target-libiberty"
3091 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3093 # The tpf target doesn't support gdb yet.
3094 *-*-tpf*)
3095 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3097 *-*-uclinux*)
3098 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3100 *-*-vxworks*)
3101 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3103 alpha*-dec-osf*)
3104 # ld works, but does not support shared libraries.
3105 # newlib is not 64 bit ready. I'm not sure about fileutils.
3106 # gas doesn't generate exception information.
3107 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3109 alpha*-*-*vms*)
3110 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3112 alpha*-*-linux*)
3113 # newlib is not 64 bit ready
3114 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3116 alpha*-*-*)
3117 # newlib is not 64 bit ready
3118 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3120 am33_2.0-*-linux*)
3121 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3123 sh-*-linux*)
3124 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3126 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3127 noconfigdirs="$noconfigdirs ${libgcj}"
3128 noconfigdirs="$noconfigdirs target-examples"
3129 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3130 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3131 noconfigdirs="$noconfigdirs expect dejagnu"
3132 # the C++ libraries don't build on top of CE's C libraries
3133 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3134 noconfigdirs="$noconfigdirs target-newlib"
3135 case "${host}" in
3136 *-*-cygwin*) ;; # keep gdb and readline
3137 *) noconfigdirs="$noconfigdirs gdb readline"
3139 esac
3140 libgloss_dir=wince
3142 arc-*-*)
3143 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3145 arm-semi-aof )
3147 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3148 noconfigdirs="$noconfigdirs ${libgcj}"
3149 libgloss_dir=arm
3151 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3152 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3153 libgloss_dir=arm
3155 arm*-*-linux-gnueabi)
3156 noconfigdirs="$noconfigdirs target-qthreads"
3157 case ${with_newlib} in
3158 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3159 esac
3160 libgloss_dir=arm
3162 arm*-*-symbianelf*)
3163 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3164 libgloss_dir=arm
3166 arm-*-pe*)
3167 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3169 thumb-*-coff)
3170 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3172 thumb-*-elf)
3173 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3175 thumb-*-pe)
3176 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3178 arm-*-riscix*)
3179 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3181 avr-*-*)
3182 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3184 bfin-*-*)
3185 unsupported_languages="$unsupported_languages java"
3186 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3187 if test x${is_cross_compiler} != xno ; then
3188 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3191 c4x-*-* | tic4x-*-*)
3192 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3194 c54x*-*-* | tic54x-*-*)
3195 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3197 cr16-*-*)
3198 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3200 cris-*-* | crisv32-*-*)
3201 unsupported_languages="$unsupported_languages java"
3202 case "${target}" in
3203 *-*-aout)
3204 unsupported_languages="$unsupported_languages fortran"
3205 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3206 *-*-elf)
3207 noconfigdirs="$noconfigdirs target-boehm-gc";;
3208 *-*-linux*)
3209 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3211 unsupported_languages="$unsupported_languages fortran"
3212 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3213 esac
3214 libgloss_dir=cris
3216 crx-*-*)
3217 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3219 d10v-*-*)
3220 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3222 d30v-*-*)
3223 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3225 ep9312-*-elf | ep9312-*-coff)
3226 libgloss_dir=arm
3228 fr30-*-elf*)
3229 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3231 frv-*-*)
3232 noconfigdirs="$noconfigdirs ${libgcj}"
3234 moxie-*-*)
3235 noconfigdirs="$noconfigdirs ${libgcj}"
3236 noconfigdirs="$noconfigdirs gprof"
3238 h8300*-*-*)
3239 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3241 h8500-*-*)
3242 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3244 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3246 hppa*64*-*-linux* | parisc*64*-*-linux*)
3247 # In this case, it's because the hppa64-linux target is for
3248 # the kernel only at this point and has no libc, and thus no
3249 # headers, crt*.o, etc., all of which are needed by these.
3250 noconfigdirs="$noconfigdirs target-zlib"
3252 parisc*-*-linux* | hppa*-*-linux*)
3254 hppa*-*-*elf* | \
3255 hppa*-*-lites* | \
3256 hppa*-*-openbsd* | \
3257 hppa*64*-*-*)
3258 noconfigdirs="$noconfigdirs ${libgcj}"
3260 hppa*-hp-hpux11*)
3261 noconfigdirs="$noconfigdirs ld shellutils"
3263 hppa*-*-pro*)
3264 libgloss_dir=pa
3266 hppa*-*-*)
3267 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3268 # build on HP-UX 10.20.
3269 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3271 i960-*-*)
3272 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3274 ia64*-*-elf*)
3275 # No gdb support yet.
3276 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3278 ia64*-**-hpux*)
3279 # No gdb or ld support yet.
3280 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3282 ia64*-*-*vms*)
3283 # No gdb or ld support yet.
3284 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3286 i370-*-opened*)
3288 i[3456789]86-*-coff | i[3456789]86-*-elf)
3289 noconfigdirs="$noconfigdirs ${libgcj}"
3290 libgloss_dir=i386
3292 i[3456789]86-*-linux*)
3293 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3294 # not build java stuff by default.
3295 case "${target}" in
3296 *-*-*libc1*)
3297 noconfigdirs="$noconfigdirs ${libgcj}";;
3298 esac
3300 # This section makes it possible to build newlib natively on linux.
3301 # If we are using a cross compiler then don't configure newlib.
3302 if test x${is_cross_compiler} != xno ; then
3303 noconfigdirs="$noconfigdirs target-newlib"
3305 noconfigdirs="$noconfigdirs target-libgloss"
3306 # If we are not using a cross compiler, do configure newlib.
3307 # Note however, that newlib will only be configured in this situation
3308 # if the --with-newlib option has been given, because otherwise
3309 # 'target-newlib' will appear in skipdirs.
3311 i[3456789]86-w64-mingw*)
3312 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3314 i[3456789]86-*-mingw*)
3315 target_configdirs="$target_configdirs target-winsup"
3316 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3318 x86_64-*-mingw*)
3319 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3321 *-*-cygwin*)
3322 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3323 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3324 # always build newlib if winsup directory is present.
3325 if test -d "$srcdir/winsup/cygwin"; then
3326 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3327 elif test -d "$srcdir/newlib"; then
3328 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3331 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3332 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3334 i[3456789]86-*-pe)
3335 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3337 i[3456789]86-*-sco3.2v5*)
3338 # The linker does not yet know about weak symbols in COFF,
3339 # and is not configured to handle mixed ELF and COFF.
3340 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3342 i[3456789]86-*-sco*)
3343 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3345 i[3456789]86-*-solaris2*)
3346 noconfigdirs="$noconfigdirs target-libgloss"
3348 i[3456789]86-*-sysv4*)
3349 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3351 i[3456789]86-*-beos*)
3352 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3354 i[3456789]86-*-rdos*)
3355 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3357 m32r-*-*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3360 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3361 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3362 libgloss_dir=m68hc11
3364 m68k-*-elf*)
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3367 m68k-*-coff*)
3368 noconfigdirs="$noconfigdirs ${libgcj}"
3370 m68*-*-* | fido-*-*)
3371 libgloss_dir=m68k
3373 mcore-*-pe*)
3374 # The EPOC C++ environment does not support exceptions or rtti,
3375 # and so building libstdc++-v3 tends not to always work.
3376 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 mmix-*-*)
3379 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3380 unsupported_languages="$unsupported_languages fortran java"
3382 mn10200-*-*)
3383 noconfigdirs="$noconfigdirs ${libgcj}"
3385 mn10300-*-*)
3386 noconfigdirs="$noconfigdirs ${libgcj}"
3388 mt-*-*)
3389 noconfigdirs="$noconfigdirs sim"
3391 powerpc-*-aix*)
3392 # copied from rs6000-*-* entry
3393 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3395 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3396 target_configdirs="$target_configdirs target-winsup"
3397 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3398 # always build newlib.
3399 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3401 # This is temporary until we can link against shared libraries
3402 powerpcle-*-solaris*)
3403 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3404 libgloss_dir=rs6000
3406 powerpc-*-beos*)
3407 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3409 powerpc-*-eabi)
3410 noconfigdirs="$noconfigdirs ${libgcj}"
3411 libgloss_dir=rs6000
3413 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3414 libgloss_dir=rs6000
3416 rs6000-*-lynxos*)
3417 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3419 rs6000-*-aix*)
3420 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3422 rs6000-*-*)
3423 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3425 m68k-apollo-*)
3426 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3428 microblaze*)
3429 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3431 mips*-sde-elf*)
3432 skipdirs="$skipdirs target-libiberty"
3433 noconfigdirs="$noconfigdirs ${libgcj}"
3434 if test x$with_newlib = xyes; then
3435 noconfigdirs="$noconfigdirs gprof"
3437 libgloss_dir=mips
3439 mips*-*-irix5*)
3440 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3442 mips*-*-irix6*)
3443 # Linking libjava exceeds command-line length limits on at least
3444 # IRIX 6.2, but not on IRIX 6.5.
3445 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3446 # <oldham@codesourcery.com>
3447 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3449 mips*-*-bsd*)
3450 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3452 mips*-*-linux*)
3453 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3455 mips*-*-*)
3456 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3457 libgloss_dir=mips
3459 romp-*-*)
3460 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3462 sh-*-* | sh64-*-*)
3463 case "${host}" in
3464 i[3456789]86-*-vsta) ;; # don't add gprof back in
3465 i[3456789]86-*-go32*) ;; # don't add gprof back in
3466 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3467 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3468 esac
3469 case "${target}" in
3470 sh*-*-elf)
3471 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3473 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3474 esac
3476 sparclet-*-aout* | sparc86x-*-*)
3477 libgloss_dir=sparc
3479 sparc-*-elf*)
3480 noconfigdirs="$noconfigdirs ${libgcj}"
3482 sparc64-*-elf*)
3483 noconfigdirs="$noconfigdirs ${libgcj}"
3484 libgloss_dir=sparc
3486 sparclite-*-*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3488 libgloss_dir=sparc
3490 sparc-*-sunos4*)
3491 noconfigdirs="$noconfigdirs ${libgcj}"
3492 if test x${is_cross_compiler} != xno ; then
3493 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3494 else
3495 use_gnu_ld=no
3498 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3499 noconfigdirs="$noconfigdirs ${libgcj}"
3501 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3503 tic6x-*-*)
3504 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3506 v810-*-*)
3507 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3509 v850*-*-*)
3510 noconfigdirs="$noconfigdirs ${libgcj}"
3512 vax-*-vms)
3513 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3515 vax-*-*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3518 xtensa*-*-*)
3519 noconfigdirs="$noconfigdirs ${libgcj}"
3521 ip2k-*-*)
3522 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3524 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 *-*-lynxos*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3530 *-*-*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3533 esac
3535 # If we aren't building newlib, then don't build libgloss, since libgloss
3536 # depends upon some newlib header files.
3537 case "${noconfigdirs}" in
3538 *target-libgloss*) ;;
3539 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3540 esac
3542 # Work in distributions that contain no compiler tools, like Autoconf.
3543 tentative_cc=""
3544 host_makefile_frag=/dev/null
3545 if test -d ${srcdir}/config ; then
3546 case "${host}" in
3547 m68k-hp-hpux*)
3548 # Avoid "too much defining" errors from HPUX compiler.
3549 tentative_cc="cc -Wp,-H256000"
3550 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3551 # If it's HP/UX ar, this should be harmless.
3552 RANLIB="ar ts"
3554 m68k-apollo-sysv*)
3555 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3557 m68k-apollo-bsd*)
3558 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3559 # chokes on bfd, the compiler won't let you assign integers to enums, and
3560 # other problems. Defining CC to gcc is a questionable way to say "don't use
3561 # the apollo compiler" (the preferred version of GCC could be called cc,
3562 # or whatever), but I'm not sure leaving CC as cc is any better...
3563 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3564 # Used to have BISON=yacc.
3565 tentative_cc=gcc
3567 m88k-dg-dgux*)
3568 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3570 m88k-harris-cxux*)
3571 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3572 tentative_cc="cc -Xa"
3573 host_makefile_frag="config/mh-cxux"
3575 m88k-motorola-sysv*)
3577 mips*-dec-ultrix*)
3578 tentative_cc="cc -Wf,-XNg1000"
3579 host_makefile_frag="config/mh-decstation"
3581 mips*-nec-sysv4*)
3582 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3583 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3584 host_makefile_frag="config/mh-necv4"
3586 mips*-sgi-irix4*)
3587 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3588 # environment. Also bump switch table size so that cp-parse will
3589 # compile. Bump string length limit so linker builds.
3590 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3592 mips*-*-sysv4*)
3593 host_makefile_frag="config/mh-sysv4"
3595 mips*-*-sysv*)
3596 # This is for a MIPS running RISC/os 4.52C.
3598 # This is needed for GDB, but needs to be in the top-level make because
3599 # if a library is compiled with the bsd headers and gets linked with the
3600 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3601 # a different size).
3602 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3603 # known except to select the sysv environment. Could we use /proc instead?
3604 # These "sysv environments" and "bsd environments" often end up being a pain.
3606 # This is not part of CFLAGS because perhaps not all C compilers have this
3607 # option.
3608 tentative_cc="cc -systype sysv"
3610 i370-ibm-opened*)
3611 tentative_cc="c89"
3613 i[3456789]86-*-sysv5*)
3614 host_makefile_frag="config/mh-sysv5"
3616 i[3456789]86-*-dgux*)
3617 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3618 host_makefile_frag="config/mh-dgux386"
3620 i[3456789]86-ncr-sysv4.3*)
3621 # The MetaWare compiler will generate a copyright message unless you
3622 # turn it off by adding the -Hnocopyr flag.
3623 tentative_cc="cc -Hnocopyr"
3625 i[3456789]86-ncr-sysv4*)
3626 # for an NCR 3000 (i486/SVR4) system.
3627 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3628 # This compiler not only emits obnoxious copyright messages every time
3629 # you run it, but it chokes and dies on a whole bunch of GNU source
3630 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3631 tentative_cc="/usr/ccs/ATT/cc"
3632 host_makefile_frag="config/mh-ncr3000"
3634 i[3456789]86-*-sco3.2v5*)
3636 i[3456789]86-*-sco*)
3637 # The native C compiler botches some simple uses of const. Unfortunately,
3638 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3639 tentative_cc="cc -Dconst="
3640 host_makefile_frag="config/mh-sco"
3642 i[3456789]86-*-udk*)
3643 host_makefile_frag="config/mh-sysv5"
3645 i[3456789]86-*-solaris2*)
3646 host_makefile_frag="config/mh-sysv4"
3648 i[3456789]86-*-msdosdjgpp*)
3649 host_makefile_frag="config/mh-djgpp"
3651 *-cygwin*)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3654 $as_echo_n "checking to see if cat works as expected... " >&6; }
3655 echo a >cygwin-cat-check
3656 if test `cat cygwin-cat-check` = a ; then
3657 rm cygwin-cat-check
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3659 $as_echo "yes" >&6; }
3660 else
3661 rm cygwin-cat-check
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3664 as_fn_error "The cat command does not ignore carriage return characters.
3665 Please either mount the build directory in binary mode or run the following
3666 commands before running any configure script:
3667 set -o igncr
3668 export SHELLOPTS
3669 " "$LINENO" 5
3672 host_makefile_frag="config/mh-cygwin"
3674 *-mingw*)
3675 host_makefile_frag="config/mh-mingw"
3677 *-interix*)
3678 host_makefile_frag="config/mh-interix"
3680 vax-*-ultrix2*)
3681 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3682 tentative_cc=gcc
3684 *-*-solaris2*)
3685 host_makefile_frag="config/mh-solaris"
3687 m68k-sun-sunos*)
3688 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3689 # without overflowing the jump tables (-J says to use a 32 bit table)
3690 tentative_cc="cc -J"
3692 hppa*-hp-hpux10*)
3693 tentative_cc="cc -Wp,-H256000"
3694 host_makefile_frag="config/mh-pa-hpux10"
3696 hppa*-hp-hpux* | hppa*-*-hiux*)
3697 tentative_cc="cc -Wp,-H256000"
3698 host_makefile_frag="config/mh-pa"
3700 hppa*-*)
3701 host_makefile_frag="config/mh-pa"
3703 *-hp-hpux* | *-*-hiux*)
3704 tentative_cc="cc -Wp,-H256000"
3706 rs6000-*-lynxos*)
3707 # /bin/cc is less than useful for our purposes. Always use GCC
3708 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3709 host_makefile_frag="config/mh-lynxrs6k"
3711 *-*-darwin*)
3712 host_makefile_frag="config/mh-darwin"
3714 powerpc-*-aix*)
3715 host_makefile_frag="config/mh-ppc-aix"
3717 rs6000-*-aix*)
3718 host_makefile_frag="config/mh-ppc-aix"
3720 *-*-lynxos*)
3721 # /bin/cc is less than useful for our purposes. Always use GCC
3722 tentative_cc="/bin/gcc"
3724 *-*-sysv4*)
3725 host_makefile_frag="config/mh-sysv4"
3727 # This is placed last to prevent interfering with the cases above.
3728 i[3456789]86-*-*)
3729 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3730 host_makefile_frag="config/mh-x86omitfp"
3732 esac
3735 # If we aren't going to be using gcc, see if we can extract a definition
3736 # of CC from the fragment.
3737 # Actually, use the 'pre-extracted' version above.
3738 if test -z "${CC}" && test "${build}" = "${host}" ; then
3739 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3740 found=
3741 for dir in $PATH; do
3742 test -z "$dir" && dir=.
3743 if test -f $dir/gcc; then
3744 found=yes
3745 break
3747 done
3748 IFS="$save_ifs"
3749 if test -z "${found}" && test -n "${tentative_cc}" ; then
3750 CC=$tentative_cc
3754 if test "${build}" != "${host}" ; then
3755 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3756 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3757 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3758 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3759 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3760 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3761 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3762 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3763 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3764 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3765 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3766 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3767 else
3768 AR_FOR_BUILD="\$(AR)"
3769 AS_FOR_BUILD="\$(AS)"
3770 CC_FOR_BUILD="\$(CC)"
3771 CXX_FOR_BUILD="\$(CXX)"
3772 GCJ_FOR_BUILD="\$(GCJ)"
3773 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3774 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3775 LD_FOR_BUILD="\$(LD)"
3776 NM_FOR_BUILD="\$(NM)"
3777 RANLIB_FOR_BUILD="\$(RANLIB)"
3778 WINDRES_FOR_BUILD="\$(WINDRES)"
3779 WINDMC_FOR_BUILD="\$(WINDMC)"
3782 ac_ext=c
3783 ac_cpp='$CPP $CPPFLAGS'
3784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_CC+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3809 done
3810 done
3811 IFS=$as_save_IFS
3815 CC=$ac_cv_prog_CC
3816 if test -n "$CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818 $as_echo "$CC" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3826 if test -z "$ac_cv_prog_CC"; then
3827 ac_ct_CC=$CC
3828 # Extract the first word of "gcc", so it can be a program name with args.
3829 set dummy gcc; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 if test -n "$ac_ct_CC"; then
3836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_ac_ct_CC="gcc"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3849 done
3850 done
3851 IFS=$as_save_IFS
3855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3856 if test -n "$ac_ct_CC"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3858 $as_echo "$ac_ct_CC" >&6; }
3859 else
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3864 if test "x$ac_ct_CC" = x; then
3865 CC=""
3866 else
3867 case $cross_compiling:$ac_tool_warned in
3868 yes:)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3871 ac_tool_warned=yes ;;
3872 esac
3873 CC=$ac_ct_CC
3875 else
3876 CC="$ac_cv_prog_CC"
3879 if test -z "$CC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}cc; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_CC+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if test -n "$CC"; then
3889 ac_cv_prog_CC="$CC" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_CC="${ac_tool_prefix}cc"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3904 IFS=$as_save_IFS
3908 CC=$ac_cv_prog_CC
3909 if test -n "$CC"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911 $as_echo "$CC" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3920 if test -z "$CC"; then
3921 # Extract the first word of "cc", so it can be a program name with args.
3922 set dummy cc; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if test "${ac_cv_prog_CC+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -n "$CC"; then
3929 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 else
3931 ac_prog_rejected=no
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3940 ac_prog_rejected=yes
3941 continue
3943 ac_cv_prog_CC="cc"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3947 done
3948 done
3949 IFS=$as_save_IFS
3951 if test $ac_prog_rejected = yes; then
3952 # We found a bogon in the path, so make sure we never use it.
3953 set dummy $ac_cv_prog_CC
3954 shift
3955 if test $# != 0; then
3956 # We chose a different compiler from the bogus one.
3957 # However, it has the same basename, so the bogon will be chosen
3958 # first if we set CC to just the basename; use the full file name.
3959 shift
3960 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3965 CC=$ac_cv_prog_CC
3966 if test -n "$CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 $as_echo "$CC" >&6; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3976 if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
3978 for ac_prog in cl.exe
3980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_prog_CC+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 if test -n "$CC"; then
3988 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010 $as_echo "$CC" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4017 test -n "$CC" && break
4018 done
4020 if test -z "$CC"; then
4021 ac_ct_CC=$CC
4022 for ac_prog in cl.exe
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025 set dummy $ac_prog; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 if test -n "$ac_ct_CC"; then
4032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4033 else
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4041 ac_cv_prog_ac_ct_CC="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4047 IFS=$as_save_IFS
4051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4052 if test -n "$ac_ct_CC"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4054 $as_echo "$ac_ct_CC" >&6; }
4055 else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4061 test -n "$ac_ct_CC" && break
4062 done
4064 if test "x$ac_ct_CC" = x; then
4065 CC=""
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 CC=$ac_ct_CC
4080 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error "no acceptable C compiler found in \$PATH
4083 See \`config.log' for more details." "$LINENO" 5; }
4085 # Provide some information about the compiler.
4086 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4087 set X $ac_compile
4088 ac_compiler=$2
4089 for ac_option in --version -v -V -qversion; do
4090 { { ac_try="$ac_compiler $ac_option >&5"
4091 case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 $as_echo "$ac_try_echo"; } >&5
4097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4098 ac_status=$?
4099 if test -s conftest.err; then
4100 sed '10a\
4101 ... rest of stderr output deleted ...
4102 10q' conftest.err >conftest.er1
4103 cat conftest.er1 >&5
4104 rm -f conftest.er1 conftest.err
4106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4107 test $ac_status = 0; }
4108 done
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4114 main ()
4118 return 0;
4120 _ACEOF
4121 ac_clean_files_save=$ac_clean_files
4122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4123 # Try to create an executable without -o first, disregard a.out.
4124 # It will help us diagnose broken compilers, and finding out an intuition
4125 # of exeext.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4127 $as_echo_n "checking for C compiler default output file name... " >&6; }
4128 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4130 # The possible output files:
4131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4133 ac_rmfiles=
4134 for ac_file in $ac_files
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4139 esac
4140 done
4141 rm -f $ac_rmfiles
4143 if { { ac_try="$ac_link_default"
4144 case "(($ac_try" in
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4147 esac
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_link_default") 2>&5
4151 ac_status=$?
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; then :
4154 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4155 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4156 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4157 # so that the user can short-circuit this test for compilers unknown to
4158 # Autoconf.
4159 for ac_file in $ac_files ''
4161 test -f "$ac_file" || continue
4162 case $ac_file in
4163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4165 [ab].out )
4166 # We found the default executable, but exeext='' is most
4167 # certainly right.
4168 break;;
4169 *.* )
4170 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4171 then :; else
4172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4174 # We set ac_cv_exeext here because the later test for it is not
4175 # safe: cross compilers may not add the suffix if given an `-o'
4176 # argument, so we may need to know it at that point already.
4177 # Even if this section looks crufty: it has the advantage of
4178 # actually working.
4179 break;;
4181 break;;
4182 esac
4183 done
4184 test "$ac_cv_exeext" = no && ac_cv_exeext=
4186 else
4187 ac_file=''
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4190 $as_echo "$ac_file" >&6; }
4191 if test -z "$ac_file"; then :
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4197 { as_fn_set_status 77
4198 as_fn_error "C compiler cannot create executables
4199 See \`config.log' for more details." "$LINENO" 5; }; }
4201 ac_exeext=$ac_cv_exeext
4203 # Check that the compiler produces executables we can run. If not, either
4204 # the compiler is broken, or we cross compile.
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4206 $as_echo_n "checking whether the C compiler works... " >&6; }
4207 # If not cross compiling, check that we can run a simple program.
4208 if test "$cross_compiling" != yes; then
4209 if { ac_try='./$ac_file'
4210 { { case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213 esac
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216 (eval "$ac_try") 2>&5
4217 ac_status=$?
4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }; }; then
4220 cross_compiling=no
4221 else
4222 if test "$cross_compiling" = maybe; then
4223 cross_compiling=yes
4224 else
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error "cannot run C compiled programs.
4228 If you meant to cross compile, use \`--host'.
4229 See \`config.log' for more details." "$LINENO" 5; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4234 $as_echo "yes" >&6; }
4236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4237 ac_clean_files=$ac_clean_files_save
4238 # Check that the compiler produces executables we can run. If not, either
4239 # the compiler is broken, or we cross compile.
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4241 $as_echo_n "checking whether we are cross compiling... " >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4243 $as_echo "$cross_compiling" >&6; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4246 $as_echo_n "checking for suffix of executables... " >&6; }
4247 if { { ac_try="$ac_link"
4248 case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_link") 2>&5
4255 ac_status=$?
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }; then :
4258 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4259 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4260 # work properly (i.e., refer to `conftest.exe'), while it won't with
4261 # `rm'.
4262 for ac_file in conftest.exe conftest conftest.*; do
4263 test -f "$ac_file" || continue
4264 case $ac_file in
4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4266 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4267 break;;
4268 * ) break;;
4269 esac
4270 done
4271 else
4272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4274 as_fn_error "cannot compute suffix of executables: cannot compile and link
4275 See \`config.log' for more details." "$LINENO" 5; }
4277 rm -f conftest$ac_cv_exeext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4279 $as_echo "$ac_cv_exeext" >&6; }
4281 rm -f conftest.$ac_ext
4282 EXEEXT=$ac_cv_exeext
4283 ac_exeext=$EXEEXT
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4285 $as_echo_n "checking for suffix of object files... " >&6; }
4286 if test "${ac_cv_objext+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4293 main ()
4297 return 0;
4299 _ACEOF
4300 rm -f conftest.o conftest.obj
4301 if { { ac_try="$ac_compile"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compile") 2>&5
4309 ac_status=$?
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; then :
4312 for ac_file in conftest.o conftest.obj conftest.*; do
4313 test -f "$ac_file" || continue;
4314 case $ac_file in
4315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4316 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4317 break;;
4318 esac
4319 done
4320 else
4321 $as_echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4326 as_fn_error "cannot compute suffix of object files: cannot compile
4327 See \`config.log' for more details." "$LINENO" 5; }
4329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4332 $as_echo "$ac_cv_objext" >&6; }
4333 OBJEXT=$ac_cv_objext
4334 ac_objext=$OBJEXT
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4337 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4344 main ()
4346 #ifndef __GNUC__
4347 choke me
4348 #endif
4351 return 0;
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_compiler_gnu=yes
4356 else
4357 ac_compiler_gnu=no
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4364 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4365 if test $ac_compiler_gnu = yes; then
4366 GCC=yes
4367 else
4368 GCC=
4370 ac_test_CFLAGS=${CFLAGS+set}
4371 ac_save_CFLAGS=$CFLAGS
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4373 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4374 if test "${ac_cv_prog_cc_g+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 ac_save_c_werror_flag=$ac_c_werror_flag
4378 ac_c_werror_flag=yes
4379 ac_cv_prog_cc_g=no
4380 CFLAGS="-g"
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4385 main ()
4389 return 0;
4391 _ACEOF
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_g=yes
4394 else
4395 CFLAGS=""
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 main ()
4404 return 0;
4406 _ACEOF
4407 if ac_fn_c_try_compile "$LINENO"; then :
4409 else
4410 ac_c_werror_flag=$ac_save_c_werror_flag
4411 CFLAGS="-g"
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4416 main ()
4420 return 0;
4422 _ACEOF
4423 if ac_fn_c_try_compile "$LINENO"; then :
4424 ac_cv_prog_cc_g=yes
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 ac_c_werror_flag=$ac_save_c_werror_flag
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4434 $as_echo "$ac_cv_prog_cc_g" >&6; }
4435 if test "$ac_test_CFLAGS" = set; then
4436 CFLAGS=$ac_save_CFLAGS
4437 elif test $ac_cv_prog_cc_g = yes; then
4438 if test "$GCC" = yes; then
4439 CFLAGS="-g -O2"
4440 else
4441 CFLAGS="-g"
4443 else
4444 if test "$GCC" = yes; then
4445 CFLAGS="-O2"
4446 else
4447 CFLAGS=
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4452 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_cv_prog_cc_c89=no
4456 ac_save_CC=$CC
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 #include <stdarg.h>
4460 #include <stdio.h>
4461 #include <sys/types.h>
4462 #include <sys/stat.h>
4463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4464 struct buf { int x; };
4465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4466 static char *e (p, i)
4467 char **p;
4468 int i;
4470 return p[i];
4472 static char *f (char * (*g) (char **, int), char **p, ...)
4474 char *s;
4475 va_list v;
4476 va_start (v,p);
4477 s = g (p, va_arg (v,int));
4478 va_end (v);
4479 return s;
4482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4483 function prototypes and stuff, but not '\xHH' hex character constants.
4484 These don't provoke an error unfortunately, instead are silently treated
4485 as 'x'. The following induces an error, until -std is added to get
4486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4487 array size at least. It's necessary to write '\x00'==0 to get something
4488 that's true only with -std. */
4489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4492 inside strings and character constants. */
4493 #define FOO(x) 'x'
4494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4496 int test (int i, double x);
4497 struct s1 {int (*f) (int a);};
4498 struct s2 {int (*f) (double a);};
4499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4500 int argc;
4501 char **argv;
4503 main ()
4505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4507 return 0;
4509 _ACEOF
4510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4513 CC="$ac_save_CC $ac_arg"
4514 if ac_fn_c_try_compile "$LINENO"; then :
4515 ac_cv_prog_cc_c89=$ac_arg
4517 rm -f core conftest.err conftest.$ac_objext
4518 test "x$ac_cv_prog_cc_c89" != "xno" && break
4519 done
4520 rm -f conftest.$ac_ext
4521 CC=$ac_save_CC
4524 # AC_CACHE_VAL
4525 case "x$ac_cv_prog_cc_c89" in
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4528 $as_echo "none needed" >&6; } ;;
4529 xno)
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4531 $as_echo "unsupported" >&6; } ;;
4533 CC="$CC $ac_cv_prog_cc_c89"
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4536 esac
4537 if test "x$ac_cv_prog_cc_c89" != xno; then :
4541 ac_ext=c
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547 ac_ext=cpp
4548 ac_cpp='$CXXCPP $CPPFLAGS'
4549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4552 if test -z "$CXX"; then
4553 if test -n "$CCC"; then
4554 CXX=$CCC
4555 else
4556 if test -n "$ac_tool_prefix"; then
4557 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CXX+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -n "$CXX"; then
4567 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4580 done
4581 done
4582 IFS=$as_save_IFS
4586 CXX=$ac_cv_prog_CXX
4587 if test -n "$CXX"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4589 $as_echo "$CXX" >&6; }
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4596 test -n "$CXX" && break
4597 done
4599 if test -z "$CXX"; then
4600 ac_ct_CXX=$CXX
4601 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4603 # Extract the first word of "$ac_prog", so it can be a program name with args.
4604 set dummy $ac_prog; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$ac_ct_CXX"; then
4611 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_ac_ct_CXX="$ac_prog"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4624 done
4625 done
4626 IFS=$as_save_IFS
4630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4631 if test -n "$ac_ct_CXX"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4633 $as_echo "$ac_ct_CXX" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4640 test -n "$ac_ct_CXX" && break
4641 done
4643 if test "x$ac_ct_CXX" = x; then
4644 CXX="g++"
4645 else
4646 case $cross_compiling:$ac_tool_warned in
4647 yes:)
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4650 ac_tool_warned=yes ;;
4651 esac
4652 CXX=$ac_ct_CXX
4658 # Provide some information about the compiler.
4659 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4660 set X $ac_compile
4661 ac_compiler=$2
4662 for ac_option in --version -v -V -qversion; do
4663 { { ac_try="$ac_compiler $ac_option >&5"
4664 case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667 esac
4668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4669 $as_echo "$ac_try_echo"; } >&5
4670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4671 ac_status=$?
4672 if test -s conftest.err; then
4673 sed '10a\
4674 ... rest of stderr output deleted ...
4675 10q' conftest.err >conftest.er1
4676 cat conftest.er1 >&5
4677 rm -f conftest.er1 conftest.err
4679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4680 test $ac_status = 0; }
4681 done
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4684 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4685 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4692 main ()
4694 #ifndef __GNUC__
4695 choke me
4696 #endif
4699 return 0;
4701 _ACEOF
4702 if ac_fn_cxx_try_compile "$LINENO"; then :
4703 ac_compiler_gnu=yes
4704 else
4705 ac_compiler_gnu=no
4707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4712 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4713 if test $ac_compiler_gnu = yes; then
4714 GXX=yes
4715 else
4716 GXX=
4718 ac_test_CXXFLAGS=${CXXFLAGS+set}
4719 ac_save_CXXFLAGS=$CXXFLAGS
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4721 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4722 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4726 ac_cxx_werror_flag=yes
4727 ac_cv_prog_cxx_g=no
4728 CXXFLAGS="-g"
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4733 main ()
4737 return 0;
4739 _ACEOF
4740 if ac_fn_cxx_try_compile "$LINENO"; then :
4741 ac_cv_prog_cxx_g=yes
4742 else
4743 CXXFLAGS=""
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 main ()
4752 return 0;
4754 _ACEOF
4755 if ac_fn_cxx_try_compile "$LINENO"; then :
4757 else
4758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4759 CXXFLAGS="-g"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4764 main ()
4768 return 0;
4770 _ACEOF
4771 if ac_fn_cxx_try_compile "$LINENO"; then :
4772 ac_cv_prog_cxx_g=yes
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4782 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4783 if test "$ac_test_CXXFLAGS" = set; then
4784 CXXFLAGS=$ac_save_CXXFLAGS
4785 elif test $ac_cv_prog_cxx_g = yes; then
4786 if test "$GXX" = yes; then
4787 CXXFLAGS="-g -O2"
4788 else
4789 CXXFLAGS="-g"
4791 else
4792 if test "$GXX" = yes; then
4793 CXXFLAGS="-O2"
4794 else
4795 CXXFLAGS=
4798 ac_ext=c
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805 # We must set the default linker to the linker used by gcc for the correct
4806 # operation of libtool. If LD is not defined and we are using gcc, try to
4807 # set the LD default to the ld used by gcc.
4808 if test -z "$LD"; then
4809 if test "$GCC" = yes; then
4810 case $build in
4811 *-*-mingw*)
4812 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4814 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4815 esac
4816 case $gcc_prog_ld in
4817 # Accept absolute paths.
4818 [\\/]* | [A-Za-z]:[\\/]*)
4819 LD="$gcc_prog_ld" ;;
4820 esac
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$GNATBIND"; then
4836 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 GNATBIND=$ac_cv_prog_GNATBIND
4856 if test -n "$GNATBIND"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4858 $as_echo "$GNATBIND" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4866 if test -z "$ac_cv_prog_GNATBIND"; then
4867 ac_ct_GNATBIND=$GNATBIND
4868 # Extract the first word of "gnatbind", so it can be a program name with args.
4869 set dummy gnatbind; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$ac_ct_GNATBIND"; then
4876 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4896 if test -n "$ac_ct_GNATBIND"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4898 $as_echo "$ac_ct_GNATBIND" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4904 if test "x$ac_ct_GNATBIND" = x; then
4905 GNATBIND="no"
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 GNATBIND=$ac_ct_GNATBIND
4915 else
4916 GNATBIND="$ac_cv_prog_GNATBIND"
4919 if test -n "$ac_tool_prefix"; then
4920 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4921 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -n "$GNATMAKE"; then
4928 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4941 done
4942 done
4943 IFS=$as_save_IFS
4947 GNATMAKE=$ac_cv_prog_GNATMAKE
4948 if test -n "$GNATMAKE"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4950 $as_echo "$GNATMAKE" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4958 if test -z "$ac_cv_prog_GNATMAKE"; then
4959 ac_ct_GNATMAKE=$GNATMAKE
4960 # Extract the first word of "gnatmake", so it can be a program name with args.
4961 set dummy gnatmake; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -n "$ac_ct_GNATMAKE"; then
4968 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4981 done
4982 done
4983 IFS=$as_save_IFS
4987 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4988 if test -n "$ac_ct_GNATMAKE"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4990 $as_echo "$ac_ct_GNATMAKE" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4996 if test "x$ac_ct_GNATMAKE" = x; then
4997 GNATMAKE="no"
4998 else
4999 case $cross_compiling:$ac_tool_warned in
5000 yes:)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5004 esac
5005 GNATMAKE=$ac_ct_GNATMAKE
5007 else
5008 GNATMAKE="$ac_cv_prog_GNATMAKE"
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5012 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5013 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 cat >conftest.adb <<EOF
5017 procedure conftest is begin null; end conftest;
5019 acx_cv_cc_gcc_supports_ada=no
5020 # There is a bug in old released versions of GCC which causes the
5021 # driver to exit successfully when the appropriate language module
5022 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5023 # Therefore we must check for the error message as well as an
5024 # unsuccessful exit.
5025 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5026 # given a .adb file, but produce no object file. So we must check
5027 # if an object file was really produced to guard against this.
5028 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5029 if test x"$errors" = x && test -f conftest.$ac_objext; then
5030 acx_cv_cc_gcc_supports_ada=yes
5032 rm -f conftest.*
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5035 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5037 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5038 have_gnat=yes
5039 else
5040 have_gnat=no
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5044 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5045 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 echo abfoo >t1
5049 echo cdfoo >t2
5050 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5051 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5052 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5054 else
5055 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5058 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5059 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5061 else
5062 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5065 rm t1 t2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5069 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5070 do_compare="$gcc_cv_prog_cmp_skip"
5074 # See if we are building gcc with C++.
5075 # Check whether --enable-build-with-cxx was given.
5076 if test "${enable_build_with_cxx+set}" = set; then :
5077 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5078 else
5079 ENABLE_BUILD_WITH_CXX=no
5083 # Used for setting $lt_cv_objdir
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5085 $as_echo_n "checking for objdir... " >&6; }
5086 if test "${lt_cv_objdir+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 rm -f .libs 2>/dev/null
5090 mkdir .libs 2>/dev/null
5091 if test -d .libs; then
5092 lt_cv_objdir=.libs
5093 else
5094 # MS-DOS does not allow filenames that begin with a dot.
5095 lt_cv_objdir=_libs
5097 rmdir .libs 2>/dev/null
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5100 $as_echo "$lt_cv_objdir" >&6; }
5101 objdir=$lt_cv_objdir
5107 cat >>confdefs.h <<_ACEOF
5108 #define LT_OBJDIR "$lt_cv_objdir/"
5109 _ACEOF
5113 # Check for GMP, MPFR and MPC
5114 gmplibs="-lmpc -lmpfr -lgmp"
5115 gmpinc=
5116 have_gmp=no
5118 # Specify a location for mpc
5119 # check for this first so it ends up on the link line before mpfr.
5121 # Check whether --with-mpc was given.
5122 if test "${with_mpc+set}" = set; then :
5123 withval=$with_mpc;
5127 # Check whether --with-mpc-include was given.
5128 if test "${with_mpc_include+set}" = set; then :
5129 withval=$with_mpc_include;
5133 # Check whether --with-mpc-lib was given.
5134 if test "${with_mpc_lib+set}" = set; then :
5135 withval=$with_mpc_lib;
5139 if test "x$with_mpc" != x; then
5140 gmplibs="-L$with_mpc/lib $gmplibs"
5141 gmpinc="-I$with_mpc/include $gmpinc"
5143 if test "x$with_mpc_include" != x; then
5144 gmpinc="-I$with_mpc_include $gmpinc"
5146 if test "x$with_mpc_lib" != x; then
5147 gmplibs="-L$with_mpc_lib $gmplibs"
5149 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5150 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5151 gmpinc='-I$$s/mpc/src '"$gmpinc"
5152 # Do not test the mpc version. Assume that it is sufficient, since
5153 # it is in the source tree, and the library has not been built yet
5154 # but it would be included on the link line in the version check below
5155 # hence making the test fail.
5156 have_gmp=yes
5159 # Specify a location for mpfr
5160 # check for this first so it ends up on the link line before gmp.
5162 # Check whether --with-mpfr-dir was given.
5163 if test "${with_mpfr_dir+set}" = set; then :
5164 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5165 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5170 # Check whether --with-mpfr was given.
5171 if test "${with_mpfr+set}" = set; then :
5172 withval=$with_mpfr;
5176 # Check whether --with-mpfr-include was given.
5177 if test "${with_mpfr_include+set}" = set; then :
5178 withval=$with_mpfr_include;
5182 # Check whether --with-mpfr-lib was given.
5183 if test "${with_mpfr_lib+set}" = set; then :
5184 withval=$with_mpfr_lib;
5188 if test "x$with_mpfr" != x; then
5189 gmplibs="-L$with_mpfr/lib $gmplibs"
5190 gmpinc="-I$with_mpfr/include $gmpinc"
5192 if test "x$with_mpfr_include" != x; then
5193 gmpinc="-I$with_mpfr_include $gmpinc"
5195 if test "x$with_mpfr_lib" != x; then
5196 gmplibs="-L$with_mpfr_lib $gmplibs"
5198 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5199 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5200 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5201 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5202 # Do not test the mpfr version. Assume that it is sufficient, since
5203 # it is in the source tree, and the library has not been built yet
5204 # but it would be included on the link line in the version check below
5205 # hence making the test fail.
5206 have_gmp=yes
5209 # Specify a location for gmp
5211 # Check whether --with-gmp-dir was given.
5212 if test "${with_gmp_dir+set}" = set; then :
5213 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5214 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5219 # Check whether --with-gmp was given.
5220 if test "${with_gmp+set}" = set; then :
5221 withval=$with_gmp;
5225 # Check whether --with-gmp-include was given.
5226 if test "${with_gmp_include+set}" = set; then :
5227 withval=$with_gmp_include;
5231 # Check whether --with-gmp-lib was given.
5232 if test "${with_gmp_lib+set}" = set; then :
5233 withval=$with_gmp_lib;
5238 if test "x$with_gmp" != x; then
5239 gmplibs="-L$with_gmp/lib $gmplibs"
5240 gmpinc="-I$with_gmp/include $gmpinc"
5242 if test "x$with_gmp_include" != x; then
5243 gmpinc="-I$with_gmp_include $gmpinc"
5245 if test "x$with_gmp_lib" != x; then
5246 gmplibs="-L$with_gmp_lib $gmplibs"
5248 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5249 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5250 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5251 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5252 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5253 # Do not test the gmp version. Assume that it is sufficient, since
5254 # it is in the source tree, and the library has not been built yet
5255 # but it would be included on the link line in the version check below
5256 # hence making the test fail.
5257 have_gmp=yes
5260 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5261 have_gmp=yes
5262 saved_CFLAGS="$CFLAGS"
5263 CFLAGS="$CFLAGS $gmpinc"
5264 # Check for the recommended and required versions of GMP.
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5266 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5270 #include "gmp.h"
5272 main ()
5275 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5276 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5277 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5278 choke me
5279 #endif
5282 return 0;
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <gmp.h>
5290 main ()
5293 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5294 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5295 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5296 choke me
5297 #endif
5300 return 0;
5302 _ACEOF
5303 if ac_fn_c_try_compile "$LINENO"; then :
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5305 $as_echo "yes" >&6; }
5306 else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5308 $as_echo "buggy but acceptable" >&6; }
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }; have_gmp=no
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 # If we have GMP, check the MPFR version.
5318 if test x"$have_gmp" = xyes; then
5319 # Check for the recommended and required versions of MPFR.
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5321 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5324 #include <gmp.h>
5325 #include <mpfr.h>
5327 main ()
5330 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5331 choke me
5332 #endif
5335 return 0;
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5341 #include <gmp.h>
5342 #include <mpfr.h>
5344 main ()
5347 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5348 choke me
5349 #endif
5352 return 0;
5354 _ACEOF
5355 if ac_fn_c_try_compile "$LINENO"; then :
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357 $as_echo "yes" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5360 $as_echo "buggy but acceptable" >&6; }
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }; have_gmp=no
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 # Check for the MPC header version.
5371 if test x"$have_gmp" = xyes ; then
5372 # Check for the recommended and required versions of MPC.
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5374 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <mpc.h>
5379 main ()
5382 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5383 choke me
5384 #endif
5387 return 0;
5389 _ACEOF
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #include <mpc.h>
5395 main ()
5398 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5399 choke me
5400 #endif
5403 return 0;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5408 $as_echo "yes" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5411 $as_echo "buggy but acceptable" >&6; }
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }; have_gmp=no
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 # Now check the MPFR library.
5422 if test x"$have_gmp" = xyes; then
5423 saved_LIBS="$LIBS"
5424 LIBS="$LIBS $gmplibs"
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5426 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #include <mpc.h>
5431 main ()
5434 mpfr_t n;
5435 mpfr_t x;
5436 mpc_t c;
5437 int t;
5438 mpfr_init (n);
5439 mpfr_init (x);
5440 mpfr_atan2 (n, n, x, GMP_RNDN);
5441 mpfr_erfc (n, x, GMP_RNDN);
5442 mpfr_subnormalize (x, t, GMP_RNDN);
5443 mpfr_clear(n);
5444 mpfr_clear(x);
5445 mpc_init2 (c, 53);
5446 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5447 mpc_cosh (c, c, MPC_RNDNN);
5448 mpc_pow (c, c, c, MPC_RNDNN);
5449 mpc_acosh (c, c, MPC_RNDNN);
5450 mpc_clear (c);
5453 return 0;
5455 _ACEOF
5456 if ac_fn_c_try_link "$LINENO"; then :
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }; have_gmp=no
5463 rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS="$saved_LIBS"
5468 CFLAGS="$saved_CFLAGS"
5470 # The library versions listed in the error message below should match
5471 # the HARD-minimums enforced above.
5472 if test x$have_gmp != xyes; then
5473 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5474 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5475 their locations. Source code for these libraries can be found at
5476 their respective hosting sites as well as at
5477 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5478 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5479 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5480 make sure that you have installed both the libraries and the header
5481 files. They may be located in separate packages." "$LINENO" 5
5485 # Flags needed for both GMP, MPFR and/or MPC.
5492 # Allow host libstdc++ to be specified for static linking with PPL.
5494 # Check whether --with-host-libstdcxx was given.
5495 if test "${with_host_libstdcxx+set}" = set; then :
5496 withval=$with_host_libstdcxx;
5500 case $with_host_libstdcxx in
5501 no|yes)
5502 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5504 esac
5506 # Linker flags to use for stage1 or when not boostrapping.
5508 # Check whether --with-stage1-ldflags was given.
5509 if test "${with_stage1_ldflags+set}" = set; then :
5510 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5511 stage1_ldflags=
5512 else
5513 stage1_ldflags=$withval
5515 else
5516 stage1_ldflags=
5521 # Libraries to use for stage1 or when not bootstrapping.
5523 # Check whether --with-stage1-libs was given.
5524 if test "${with_stage1_libs+set}" = set; then :
5525 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5526 stage1_libs=
5527 else
5528 stage1_libs=$withval
5530 else
5531 stage1_libs=$with_host_libstdcxx
5536 # Libraries to use for stage2 and later builds. This defaults to the
5537 # argument passed to --with-host-libstdcxx.
5539 # Check whether --with-boot-libs was given.
5540 if test "${with_boot_libs+set}" = set; then :
5541 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5542 poststage1_libs=
5543 else
5544 poststage1_libs=$withval
5546 else
5547 poststage1_libs=$with_host_libstdcxx
5552 # Linker flags to use for stage2 and later builds.
5554 # Check whether --with-boot-ldflags was given.
5555 if test "${with_boot_ldflags+set}" = set; then :
5556 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5557 poststage1_ldflags=
5558 else
5559 poststage1_ldflags=$withval
5561 else
5562 poststage1_ldflags=
5563 # With --enable-build-with-cxx, default to linking libstdc++ and
5564 # libgcc statically. But if the user explicitly specified the
5565 # libraries to use, trust that they are doing what they want.
5566 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5567 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5573 # Check for PPL
5574 ppllibs=" -lppl_c -lppl -lgmpxx"
5575 pplinc=
5578 # Check whether --with-ppl was given.
5579 if test "${with_ppl+set}" = set; then :
5580 withval=$with_ppl;
5584 # Check whether --with-ppl-include was given.
5585 if test "${with_ppl_include+set}" = set; then :
5586 withval=$with_ppl_include;
5590 # Check whether --with-ppl-lib was given.
5591 if test "${with_ppl_lib+set}" = set; then :
5592 withval=$with_ppl_lib;
5596 case $with_ppl in
5598 ppllibs=
5600 "" | yes)
5603 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5604 pplinc="-I$with_ppl/include $pplinc"
5606 esac
5607 if test "x$with_ppl_include" != x; then
5608 pplinc="-I$with_ppl_include $pplinc"
5610 if test "x$with_ppl_lib" != x; then
5611 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5613 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5614 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5615 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5616 enable_ppl_version_check=no
5619 # Check whether --enable-ppl-version-check was given.
5620 if test "${enable_ppl_version_check+set}" = set; then :
5621 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5622 else
5623 ENABLE_PPL_CHECK=yes
5627 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5628 saved_CFLAGS="$CFLAGS"
5629 CFLAGS="$CFLAGS $pplinc $gmpinc"
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5631 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include "ppl_c.h"
5636 main ()
5639 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5640 choke me
5641 #endif
5644 return 0;
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 CFLAGS="$saved_CFLAGS"
5658 # Flags needed for PPL
5663 # Check for CLOOG
5667 # Check whether --with-cloog was given.
5668 if test "${with_cloog+set}" = set; then :
5669 withval=$with_cloog;
5673 # Check whether --with-cloog-include was given.
5674 if test "${with_cloog_include+set}" = set; then :
5675 withval=$with_cloog_include;
5679 # Check whether --with-cloog-lib was given.
5680 if test "${with_cloog_lib+set}" = set; then :
5681 withval=$with_cloog_lib;
5685 # Check whether --enable-cloog-backend was given.
5686 if test "${enable_cloog_backend+set}" = set; then :
5687 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5688 cloog_backend=isl
5689 elif test "x${enableval}" = "xppl"; then
5690 cloog_backend=ppl
5691 else
5692 cloog_backend=ppl-legacy
5694 else
5695 cloog_backend=ppl-legacy
5698 # Check whether --enable-cloog-version-check was given.
5699 if test "${enable_cloog_version_check+set}" = set; then :
5700 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5701 else
5702 ENABLE_CLOOG_CHECK=yes
5706 # Initialize clooglibs and clooginc.
5707 case $with_cloog in
5709 clooglibs=
5710 clooginc=
5712 "" | yes)
5715 clooglibs="-L$with_cloog/lib"
5716 clooginc="-I$with_cloog/include"
5718 esac
5719 if test "x${with_cloog_include}" != x ; then
5720 clooginc="-I$with_cloog_include"
5722 if test "x${with_cloog_lib}" != x; then
5723 clooglibs="-L$with_cloog_lib"
5730 if test "x$with_ppl" = "xno"; then
5731 with_cloog=no
5733 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5734 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5735 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5736 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5738 if test "x$with_cloog" != "xno"; then
5742 _cloog_saved_CFLAGS=$CFLAGS
5743 _cloog_saved_CPPFLAGS=$CPPFLAGS
5744 _cloog_saved_LDFLAGS=$LDFLAGS
5745 _cloog_saved_LIBS=$LIBS
5747 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5749 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5750 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5751 LDFLAGS="${LDFLAGS} ${clooglibs}"
5753 case $cloog_backend in
5754 "ppl-legacy")
5755 CFLAGS="${CFLAGS} ${pplinc}"
5756 LDFLAGS="${LDFLAGS} ${ppllibs}"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5758 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5759 if test "${gcc_cv_cloog_type+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 LIBS="-lcloog ${_cloog_saved_LIBS}"
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include "cloog/cloog.h"
5767 main ()
5769 #ifndef CLOOG_PPL_BACKEND
5770 choke me
5771 #endif
5773 return 0;
5775 _ACEOF
5776 if ac_fn_c_try_link "$LINENO"; then :
5777 gcc_cv_cloog_type="PPL Legacy"
5778 else
5779 gcc_cv_cloog_type=no
5781 rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext conftest.$ac_ext
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5785 $as_echo "$gcc_cv_cloog_type" >&6; }
5787 "isl")
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5789 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5790 if test "${gcc_cv_cloog_type+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #include "cloog/cloog.h"
5798 main ()
5800 cloog_version ()
5802 return 0;
5804 _ACEOF
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 gcc_cv_cloog_type="ISL"
5807 else
5808 gcc_cv_cloog_type=no
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5814 $as_echo "$gcc_cv_cloog_type" >&6; }
5816 "ppl")
5817 CFLAGS="${CFLAGS} ${pplinc}"
5818 LDFLAGS="${LDFLAGS} ${ppllibs}"
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5820 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5821 if test "${gcc_cv_cloog_type+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5823 else
5824 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #include "cloog/cloog.h"
5828 #include "cloog/ppl/cloog.h"
5830 main ()
5832 cloog_version ()
5834 return 0;
5836 _ACEOF
5837 if ac_fn_c_try_link "$LINENO"; then :
5838 gcc_cv_cloog_type="PPL"
5839 else
5840 gcc_cv_cloog_type=no
5842 rm -f core conftest.err conftest.$ac_objext \
5843 conftest$ac_exeext conftest.$ac_ext
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5846 $as_echo "$gcc_cv_cloog_type" >&6; }
5849 gcc_cv_cloog_type=""
5850 esac
5852 case $gcc_cv_cloog_type in
5853 "PPL Legacy")
5854 clooginc="${clooginc}"
5855 clooglibs="${clooglibs} -lcloog"
5856 cloog_org=no
5858 "ISL")
5859 clooginc="${clooginc} ${_cloogorginc}"
5860 clooglibs="${clooglibs} -lcloog-isl"
5861 cloog_org=yes
5863 "PPL")
5864 clooginc="${clooginc} ${_cloogorginc}"
5865 clooglibs="${clooglibs} -lcloog-ppl"
5866 cloog_org=yes
5869 clooglibs=
5870 clooginc=
5871 cloog_org=
5873 esac
5875 LIBS=$_cloog_saved_LIBS
5876 CFLAGS=$_cloog_saved_CFLAGS
5877 CPPFLAGS=$_cloog_saved_CPPFLAGS
5878 LDFLAGS=$_cloog_saved_LDFLAGS
5884 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5885 _cloog_saved_CFLAGS=$CFLAGS
5886 _cloog_saved_LDFLAGS=$LDFLAGS
5888 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5889 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5891 if test "${cloog_org}" = yes ; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5893 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5894 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include "cloog/cloog.h"
5901 main ()
5903 #if CLOOG_VERSION_MAJOR != 0 \
5904 || CLOOG_VERSION_MINOR != 14 \
5905 || CLOOG_VERSION_REVISION < 0
5906 choke me
5907 #endif
5909 return 0;
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"; then :
5913 gcc_cv_cloog_ct_0_14_0=yes
5914 else
5915 gcc_cv_cloog_ct_0_14_0=no
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5920 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5921 elif test "${cloog_org}" = no ; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5923 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5924 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 #include "cloog/cloog.h"
5931 main ()
5933 #if CLOOG_VERSION_MAJOR != 0 \
5934 || CLOOG_VERSION_MINOR != 15 \
5935 || CLOOG_VERSION_REVISION < 5
5936 choke me
5937 #endif
5939 return 0;
5941 _ACEOF
5942 if ac_fn_c_try_compile "$LINENO"; then :
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include "cloog/cloog.h"
5947 main ()
5949 #if CLOOG_VERSION_MAJOR != 0 \
5950 || CLOOG_VERSION_MINOR != 15 \
5951 || CLOOG_VERSION_REVISION < 9
5952 choke me
5953 #endif
5955 return 0;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 gcc_cv_cloog_ct_0_15_5=yes
5960 else
5961 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 else
5965 gcc_cv_cloog_ct_0_15_5=no
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5970 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5973 CFLAGS=$_cloog_saved_CFLAGS
5974 LDFLAGS=$_cloog_saved_LDFLAGS
5983 if test "x${with_cloog}" != x \
5984 || test "x${with_cloog_include}" != x \
5985 || test "x${with_cloog_lib}" != x ; then
5986 graphite_requested=yes
5987 else
5988 graphite_requested=no
5993 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5994 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5995 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5996 clooglibs=
5997 clooginc=
6000 if test "${graphite_requested}" = yes \
6001 && test "x${clooglibs}" = x \
6002 && test "x${clooginc}" = x ; then
6004 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6010 # Check for LTO support.
6011 # Check whether --enable-lto was given.
6012 if test "${enable_lto+set}" = set; then :
6013 enableval=$enable_lto; enable_lto=$enableval
6014 else
6015 enable_lto=yes; default_enable_lto=yes
6022 target_elf=no
6023 case $target in
6024 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6025 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6026 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6027 target_elf=no
6030 target_elf=yes
6032 esac
6034 if test $target_elf = yes; then :
6035 # ELF platforms build the lto-plugin always.
6036 build_lto_plugin=yes
6038 else
6039 if test x"$default_enable_lto" = x"yes" ; then
6040 case $target in
6041 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6042 # On other non-ELF platforms, LTO has yet to be validated.
6043 *) enable_lto=no ;;
6044 esac
6045 else
6046 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6047 # It would also be nice to check the binutils support, but we don't
6048 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6049 # warn during gcc/ subconfigure; unless you're bootstrapping with
6050 # -flto it won't be needed until after installation anyway.
6051 case $target in
6052 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6053 *) if test x"$enable_lto" = x"yes"; then
6054 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6057 esac
6059 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6060 # Build it unless LTO was explicitly disabled.
6061 case $target in
6062 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6063 *) ;;
6064 esac
6070 # By default, C is the only stage 1 language.
6071 stage1_languages=,c,
6073 # Target libraries that we bootstrap.
6074 bootstrap_target_libs=,target-libgcc,
6076 # Figure out what language subdirectories are present.
6077 # Look if the user specified --enable-languages="..."; if not, use
6078 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6079 # go away some day.
6080 # NB: embedded tabs in this IF block -- do not untabify
6081 if test -d ${srcdir}/gcc; then
6082 if test x"${enable_languages+set}" != xset; then
6083 if test x"${LANGUAGES+set}" = xset; then
6084 enable_languages="${LANGUAGES}"
6085 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6086 else
6087 enable_languages=all
6089 else
6090 if test x"${enable_languages}" = x ||
6091 test x"${enable_languages}" = xyes;
6092 then
6093 echo configure.in: --enable-languages needs at least one language argument 1>&2
6094 exit 1
6097 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6099 # 'f95' is the old name for the 'fortran' language. We issue a warning
6100 # and make the substitution.
6101 case ,${enable_languages}, in
6102 *,f95,*)
6103 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6104 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6106 esac
6108 # First scan to see if an enabled language requires some other language.
6109 # We assume that a given config-lang.in will list all the language
6110 # front ends it requires, even if some are required indirectly.
6111 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6112 case ${lang_frag} in
6113 ..) ;;
6114 # The odd quoting in the next line works around
6115 # an apparent bug in bash 1.12 on linux.
6116 ${srcdir}/gcc/[*]/config-lang.in) ;;
6118 # From the config-lang.in, get $language, $lang_requires, and
6119 # $lang_requires_boot_languages.
6120 language=
6121 lang_requires=
6122 lang_requires_boot_languages=
6123 . ${lang_frag}
6124 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6125 case ,${enable_languages}, in
6126 *,$other,*) ;;
6127 *,all,*) ;;
6128 *,$language,*)
6129 echo " \`$other' language required by \`$language'; enabling" 1>&2
6130 enable_languages="${enable_languages},${other}"
6132 esac
6133 done
6134 for other in ${lang_requires_boot_languages} ; do
6135 if test "$other" != "c"; then
6136 case ,${enable_stage1_languages}, in
6137 *,$other,*) ;;
6138 *,all,*) ;;
6140 case ,${enable_languages}, in
6141 *,$language,*)
6142 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6143 enable_stage1_languages="$enable_stage1_languages,${other}"
6145 esac
6147 esac
6149 done
6151 esac
6152 done
6154 new_enable_languages=,c,
6156 # If LTO is enabled, add the LTO front end.
6157 extra_host_libiberty_configure_flags=
6158 if test "$enable_lto" = "yes" ; then
6159 case ,${enable_languages}, in
6160 *,lto,*) ;;
6161 *) enable_languages="${enable_languages},lto" ;;
6162 esac
6163 if test "${build_lto_plugin}" = "yes" ; then
6164 configdirs="$configdirs lto-plugin"
6165 extra_host_libiberty_configure_flags=--enable-shared
6170 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6171 potential_languages=,c,
6173 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6174 case ${lang_frag} in
6175 ..) ;;
6176 # The odd quoting in the next line works around
6177 # an apparent bug in bash 1.12 on linux.
6178 ${srcdir}/gcc/[*]/config-lang.in) ;;
6180 # From the config-lang.in, get $language, $target_libs,
6181 # $lang_dirs, $boot_language, and $build_by_default
6182 language=
6183 target_libs=
6184 lang_dirs=
6185 subdir_requires=
6186 boot_language=no
6187 build_by_default=yes
6188 . ${lang_frag}
6189 if test x${language} = x; then
6190 echo "${lang_frag} doesn't set \$language." 1>&2
6191 exit 1
6194 if test "$language" = "c++" \
6195 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6196 boot_language=yes
6199 case ,${enable_languages}, in
6200 *,${language},*)
6201 # Language was explicitly selected; include it.
6202 add_this_lang=yes
6204 *,all,*)
6205 # 'all' was selected, select it if it is a default language
6206 add_this_lang=${build_by_default}
6209 add_this_lang=no
6211 esac
6213 # Disable languages that need other directories if these aren't available.
6214 for i in $subdir_requires; do
6215 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6216 case ,${enable_languages}, in
6217 *,${language},*)
6218 # Specifically requested language; tell them.
6219 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6222 # Silently disable.
6223 add_this_lang=unsupported
6225 esac
6226 done
6228 # Disable Ada if no preexisting GNAT is available.
6229 case ,${enable_languages},:${language}:${have_gnat} in
6230 *,${language},*:ada:no)
6231 # Specifically requested language; tell them.
6232 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6234 *:ada:no)
6235 # Silently disable.
6236 add_this_lang=unsupported
6238 esac
6240 # Disable a language that is unsupported by the target.
6241 case " $unsupported_languages " in
6242 *" $language "*)
6243 add_this_lang=unsupported
6245 esac
6247 case $add_this_lang in
6248 unsupported)
6249 # Remove language-dependent dirs.
6250 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6253 # Remove language-dependent dirs; still show language as supported.
6254 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6255 potential_languages="${potential_languages}${language},"
6257 yes)
6258 new_enable_languages="${new_enable_languages}${language},"
6259 potential_languages="${potential_languages}${language},"
6260 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6261 case "${boot_language}:,$enable_stage1_languages," in
6262 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6263 # Add to (comma-separated) list of stage 1 languages.
6264 case ",$stage1_languages," in
6265 *,$language,* | ,yes, | ,all,) ;;
6266 *) stage1_languages="${stage1_languages}${language}," ;;
6267 esac
6268 # We need to bootstrap any supporting libraries.
6269 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6271 esac
6273 esac
6275 esac
6276 done
6278 # Check whether --enable-stage1-languages was given.
6279 if test "${enable_stage1_languages+set}" = set; then :
6280 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6281 ,no,|,,)
6282 # Set it to something that will have no effect in the loop below
6283 enable_stage1_languages=c ;;
6284 ,yes,)
6285 enable_stage1_languages=`echo $new_enable_languages | \
6286 sed -e "s/^,//" -e "s/,$//" ` ;;
6287 *,all,*)
6288 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6289 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6290 esac
6292 # Add "good" languages from enable_stage1_languages to stage1_languages,
6293 # while "bad" languages go in missing_languages. Leave no duplicates.
6294 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6295 case $potential_languages in
6296 *,$i,*)
6297 case $stage1_languages in
6298 *,$i,*) ;;
6299 *) stage1_languages="$stage1_languages$i," ;;
6300 esac ;;
6302 case $missing_languages in
6303 *,$i,*) ;;
6304 *) missing_languages="$missing_languages$i," ;;
6305 esac ;;
6306 esac
6307 done
6311 # Remove leading/trailing commas that were added for simplicity
6312 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6313 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6314 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6315 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6317 if test "x$missing_languages" != x; then
6318 as_fn_error "
6319 The following requested languages could not be built: ${missing_languages}
6320 Supported languages are: ${potential_languages}" "$LINENO" 5
6322 if test "x$new_enable_languages" != "x$enable_languages"; then
6323 echo The following languages will be built: ${new_enable_languages}
6324 enable_languages="$new_enable_languages"
6328 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6331 # Handle --disable-<component> generically.
6332 for dir in $configdirs $build_configdirs $target_configdirs ; do
6333 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6334 varname=`echo $dirname | sed -e s/+/_/g`
6335 if eval test x\${enable_${varname}} "=" xno ; then
6336 noconfigdirs="$noconfigdirs $dir"
6338 done
6340 # Check for Boehm's garbage collector
6341 # Check whether --enable-objc-gc was given.
6342 if test "${enable_objc_gc+set}" = set; then :
6343 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6344 *,objc,*:*:yes:*target-boehm-gc*)
6345 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6347 esac
6351 # Make sure we only build Boehm's garbage collector if required.
6352 case ,${enable_languages},:${enable_objc_gc} in
6353 *,objc,*:yes)
6354 # Keep target-boehm-gc if requested for Objective-C.
6357 # Otherwise remove target-boehm-gc depending on target-libjava.
6358 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6359 noconfigdirs="$noconfigdirs target-boehm-gc"
6362 esac
6364 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6365 # $build_configdirs and $target_configdirs.
6366 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6368 notsupp=""
6369 for dir in . $skipdirs $noconfigdirs ; do
6370 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6371 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6372 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6373 if test -r $srcdir/$dirname/configure ; then
6374 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6375 true
6376 else
6377 notsupp="$notsupp $dir"
6381 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6382 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6383 if test -r $srcdir/$dirname/configure ; then
6384 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6385 true
6386 else
6387 notsupp="$notsupp $dir"
6391 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6392 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6393 if test -r $srcdir/$dirname/configure ; then
6394 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6395 true
6396 else
6397 notsupp="$notsupp $dir"
6401 done
6403 # Sometimes the tools are distributed with libiberty but with no other
6404 # libraries. In that case, we don't want to build target-libiberty.
6405 # Don't let libgcc imply libiberty either.
6406 if test -n "${target_configdirs}" ; then
6407 libgcc=
6408 others=
6409 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6410 if test "$i" = "libgcc"; then
6411 libgcc=target-libgcc
6412 elif test "$i" != "libiberty" ; then
6413 if test -r $srcdir/$i/configure ; then
6414 others=yes;
6415 break;
6418 done
6419 if test -z "${others}" ; then
6420 target_configdirs=$libgcc
6424 # Quietly strip out all directories which aren't configurable in this tree.
6425 # This relies on all configurable subdirectories being autoconfiscated, which
6426 # is now the case.
6427 build_configdirs_all="$build_configdirs"
6428 build_configdirs=
6429 for i in ${build_configdirs_all} ; do
6430 j=`echo $i | sed -e s/build-//g`
6431 if test -f ${srcdir}/$j/configure ; then
6432 build_configdirs="${build_configdirs} $i"
6434 done
6436 configdirs_all="$configdirs"
6437 configdirs=
6438 for i in ${configdirs_all} ; do
6439 if test -f ${srcdir}/$i/configure ; then
6440 configdirs="${configdirs} $i"
6442 done
6444 target_configdirs_all="$target_configdirs"
6445 target_configdirs=
6446 for i in ${target_configdirs_all} ; do
6447 j=`echo $i | sed -e s/target-//g`
6448 if test -f ${srcdir}/$j/configure ; then
6449 target_configdirs="${target_configdirs} $i"
6451 done
6453 # Produce a warning message for the subdirs we can't configure.
6454 # This isn't especially interesting in the Cygnus tree, but in the individual
6455 # FSF releases, it's important to let people know when their machine isn't
6456 # supported by the one or two programs in a package.
6458 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6459 # If $appdirs is non-empty, at least one of those directories must still
6460 # be configured, or we error out. (E.g., if the gas release supports a
6461 # specified target in some subdirs but not the gas subdir, we shouldn't
6462 # pretend that all is well.)
6463 if test -n "$appdirs" ; then
6464 for dir in $appdirs ; do
6465 if test -r $dir/Makefile.in ; then
6466 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6467 appdirs=""
6468 break
6470 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6471 appdirs=""
6472 break
6475 done
6476 if test -n "$appdirs" ; then
6477 echo "*** This configuration is not supported by this package." 1>&2
6478 exit 1
6481 # Okay, some application will build, or we don't care to check. Still
6482 # notify of subdirs not getting built.
6483 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6484 echo " ${notsupp}" 1>&2
6485 echo " (Any other directories should still work fine.)" 1>&2
6488 case "$host" in
6489 *msdosdjgpp*)
6490 enable_gdbtk=no ;;
6491 esac
6493 # To find our prefix, in gcc_cv_tool_prefix.
6495 # The user is always right.
6496 if test "${PATH_SEPARATOR+set}" != set; then
6497 echo "#! /bin/sh" >conf$$.sh
6498 echo "exit 0" >>conf$$.sh
6499 chmod +x conf$$.sh
6500 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6501 PATH_SEPARATOR=';'
6502 else
6503 PATH_SEPARATOR=:
6505 rm -f conf$$.sh
6510 if test "x$exec_prefix" = xNONE; then
6511 if test "x$prefix" = xNONE; then
6512 gcc_cv_tool_prefix=$ac_default_prefix
6513 else
6514 gcc_cv_tool_prefix=$prefix
6516 else
6517 gcc_cv_tool_prefix=$exec_prefix
6520 # If there is no compiler in the tree, use the PATH only. In any
6521 # case, if there is no compiler in the tree nobody should use
6522 # AS_FOR_TARGET and LD_FOR_TARGET.
6523 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6524 gcc_version=`cat $srcdir/gcc/BASE-VER`
6525 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6526 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6527 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6528 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6529 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6530 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6531 else
6532 gcc_cv_tool_dirs=
6535 if test x$build = x$target && test -n "$md_exec_prefix"; then
6536 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6541 copy_dirs=
6544 # Check whether --with-build-sysroot was given.
6545 if test "${with_build_sysroot+set}" = set; then :
6546 withval=$with_build_sysroot; if test x"$withval" != x ; then
6547 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6549 else
6550 SYSROOT_CFLAGS_FOR_TARGET=
6556 # Check whether --with-debug-prefix-map was given.
6557 if test "${with_debug_prefix_map+set}" = set; then :
6558 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6559 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6560 for debug_map in $withval; do
6561 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6562 done
6564 else
6565 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6570 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6571 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6572 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6573 # We want to ensure that TARGET libraries (which we know are built with
6574 # gcc) are built with "-O2 -g", so include those options when setting
6575 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6576 if test "x$CFLAGS_FOR_TARGET" = x; then
6577 CFLAGS_FOR_TARGET=$CFLAGS
6578 case " $CFLAGS " in
6579 *" -O2 "*) ;;
6580 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6581 esac
6582 case " $CFLAGS " in
6583 *" -g "* | *" -g3 "*) ;;
6584 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6585 esac
6589 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6590 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6591 case " $CXXFLAGS " in
6592 *" -O2 "*) ;;
6593 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6594 esac
6595 case " $CXXFLAGS " in
6596 *" -g "* | *" -g3 "*) ;;
6597 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6598 esac
6602 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6603 # the named directory are copied to $(tooldir)/sys-include.
6604 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6605 if test x${is_cross_compiler} = xno ; then
6606 echo 1>&2 '***' --with-headers is only supported when cross compiling
6607 exit 1
6609 if test x"${with_headers}" != xyes ; then
6610 x=${gcc_cv_tool_prefix}
6611 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6615 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6616 # the name directories are copied to $(tooldir)/lib. Multiple directories
6617 # are permitted.
6618 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6619 if test x${is_cross_compiler} = xno ; then
6620 echo 1>&2 '***' --with-libs is only supported when cross compiling
6621 exit 1
6623 if test x"${with_libs}" != xyes ; then
6624 # Copy the libraries in reverse order, so that files in the first named
6625 # library override files in subsequent libraries.
6626 x=${gcc_cv_tool_prefix}
6627 for l in ${with_libs}; do
6628 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6629 done
6633 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6635 # This is done by determining whether or not the appropriate directory
6636 # is available, and by checking whether or not specific configurations
6637 # have requested that this magic not happen.
6639 # The command line options always override the explicit settings in
6640 # configure.in, and the settings in configure.in override this magic.
6642 # If the default for a toolchain is to use GNU as and ld, and you don't
6643 # want to do that, then you should use the --without-gnu-as and
6644 # --without-gnu-ld options for the configure script. Similarly, if
6645 # the default is to use the included zlib and you don't want to do that,
6646 # you should use the --with-system-zlib option for the configure script.
6648 if test x${use_gnu_as} = x &&
6649 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6650 with_gnu_as=yes
6651 extra_host_args="$extra_host_args --with-gnu-as"
6654 if test x${use_gnu_ld} = x &&
6655 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6656 with_gnu_ld=yes
6657 extra_host_args="$extra_host_args --with-gnu-ld"
6660 if test x${use_included_zlib} = x &&
6661 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6663 else
6664 with_system_zlib=yes
6665 extra_host_args="$extra_host_args --with-system-zlib"
6668 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6669 # can detect this case.
6671 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6672 with_newlib=yes
6673 extra_host_args="$extra_host_args --with-newlib"
6676 # Handle ${copy_dirs}
6677 set fnord ${copy_dirs}
6678 shift
6679 while test $# != 0 ; do
6680 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6682 else
6683 echo Copying $1 to $2
6685 # Use the install script to create the directory and all required
6686 # parent directories.
6687 if test -d $2 ; then
6689 else
6690 echo >config.temp
6691 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6694 # Copy the directory, assuming we have tar.
6695 # FIXME: Should we use B in the second tar? Not all systems support it.
6696 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6698 # It is the responsibility of the user to correctly adjust all
6699 # symlinks. If somebody can figure out how to handle them correctly
6700 # here, feel free to add the code.
6702 echo $1 > $2/COPIED
6704 shift; shift
6705 done
6707 # Determine a target-dependent exec_prefix that the installed
6708 # gcc will search in. Keep this list sorted by triplet, with
6709 # the *-*-osname triplets last.
6710 md_exec_prefix=
6711 case "${target}" in
6712 alpha*-*-*vms*)
6713 md_exec_prefix=/gnu/lib/gcc-lib
6715 i[34567]86-pc-msdosdjgpp*)
6716 md_exec_prefix=/dev/env/DJDIR/bin
6718 i[34567]86-*-sco3.2v5*)
6719 if test $with_gnu_as = yes; then
6720 md_exec_prefix=/usr/gnu/bin
6721 else
6722 md_exec_prefix=/usr/ccs/bin/elf
6726 mn10300-*-* | \
6727 powerpc-*-chorusos* | \
6728 powerpc*-*-eabi* | \
6729 powerpc*-*-sysv* | \
6730 powerpc*-*-kaos* | \
6731 s390x-ibm-tpf*)
6732 md_exec_prefix=/usr/ccs/bin
6734 sparc64-*-elf*)
6736 v850*-*-*)
6737 md_exec_prefix=/usr/ccs/bin
6739 xtensa*-*-elf*)
6742 *-*-beos* | \
6743 *-*-elf* | \
6744 *-*-hpux* | \
6745 *-*-netware* | \
6746 *-*-nto-qnx* | \
6747 *-*-rtems* | \
6748 *-*-solaris2* | \
6749 *-*-sysv[45]* | \
6750 *-*-vxworks* | \
6751 *-wrs-windiss)
6752 md_exec_prefix=/usr/ccs/bin
6754 esac
6756 extra_arflags_for_target=
6757 extra_nmflags_for_target=
6758 extra_ranlibflags_for_target=
6759 target_makefile_frag=/dev/null
6760 case "${target}" in
6761 mep*-*-*)
6762 target_makefile_frag="config/mt-mep"
6764 spu-*-*)
6765 target_makefile_frag="config/mt-spu"
6767 mips*-sde-elf*)
6768 target_makefile_frag="config/mt-sde"
6770 mipsisa*-*-elfoabi*)
6771 target_makefile_frag="config/mt-mips-elfoabi"
6773 mips*-*-*linux* | mips*-*-gnu*)
6774 target_makefile_frag="config/mt-mips-gnu"
6776 *-*-netware*)
6777 target_makefile_frag="config/mt-netware"
6779 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6780 target_makefile_frag="config/mt-gnu"
6782 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6783 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6784 # commands to handle both 32-bit and 64-bit objects. These flags are
6785 # harmless if we're using GNU nm or ar.
6786 extra_arflags_for_target=" -X32_64"
6787 extra_nmflags_for_target=" -B -X32_64"
6789 *-*-darwin[3-9]*)
6790 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6791 extra_ranlibflags_for_target=" -c"
6793 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6794 target_makefile_frag="config/mt-wince"
6796 esac
6798 alphaieee_frag=/dev/null
6799 case $target in
6800 alpha*-*-*)
6801 # This just makes sure to use the -mieee option to build target libs.
6802 # This should probably be set individually by each library.
6803 alphaieee_frag="config/mt-alphaieee"
6805 esac
6807 # If --enable-target-optspace always use -Os instead of -O2 to build
6808 # the target libraries, similarly if it is not specified, use -Os
6809 # on selected platforms.
6810 ospace_frag=/dev/null
6811 case "${enable_target_optspace}:${target}" in
6812 yes:*)
6813 ospace_frag="config/mt-ospace"
6815 :d30v-*)
6816 ospace_frag="config/mt-d30v"
6818 :m32r-* | :d10v-* | :fr30-*)
6819 ospace_frag="config/mt-ospace"
6821 no:* | :*)
6824 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6826 esac
6828 # Default to using --with-stabs for certain targets.
6829 if test x${with_stabs} = x ; then
6830 case "${target}" in
6831 mips*-*-irix[56]*)
6833 mips*-*-* | alpha*-*-osf*)
6834 with_stabs=yes;
6835 extra_host_args="${extra_host_args} --with-stabs"
6837 esac
6840 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6841 # them automatically.
6842 case "${host}" in
6843 hppa*64*-*-hpux11*)
6844 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6846 esac
6848 # Some systems (e.g., one of the i386-aix systems the gas testers are
6849 # using) don't handle "\$" correctly, so don't use it here.
6850 tooldir='${exec_prefix}'/${target_noncanonical}
6851 build_tooldir=${tooldir}
6853 # Create a .gdbinit file which runs the one in srcdir
6854 # and tells GDB to look there for source files.
6856 if test -r ${srcdir}/.gdbinit ; then
6857 case ${srcdir} in
6858 .) ;;
6859 *) cat > ./.gdbinit <<EOF
6860 # ${NO_EDIT}
6861 dir ${srcdir}
6862 dir .
6863 source ${srcdir}/.gdbinit
6866 esac
6869 # Make sure that the compiler is able to generate an executable. If it
6870 # can't, we are probably in trouble. We don't care whether we can run the
6871 # executable--we might be using a cross compiler--we only care whether it
6872 # can be created. At this point the main configure script has set CC.
6873 we_are_ok=no
6874 echo "int main () { return 0; }" > conftest.c
6875 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6876 if test $? = 0 ; then
6877 if test -s conftest || test -s conftest.exe ; then
6878 we_are_ok=yes
6881 case $we_are_ok in
6883 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6884 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6885 rm -f conftest*
6886 exit 1
6888 esac
6889 rm -f conftest*
6891 # The Solaris /usr/ucb/cc compiler does not appear to work.
6892 case "${host}" in
6893 sparc-sun-solaris2*)
6894 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6895 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6896 could_use=
6897 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6898 if test -d /opt/cygnus/bin ; then
6899 if test "$could_use" = "" ; then
6900 could_use="/opt/cygnus/bin"
6901 else
6902 could_use="$could_use or /opt/cygnus/bin"
6905 if test "$could_use" = "" ; then
6906 echo "Warning: compilation may fail because you're using"
6907 echo "/usr/ucb/cc. You should change your PATH or CC "
6908 echo "variable and rerun configure."
6909 else
6910 echo "Warning: compilation may fail because you're using"
6911 echo "/usr/ucb/cc, when you should use the C compiler from"
6912 echo "$could_use. You should change your"
6913 echo "PATH or CC variable and rerun configure."
6917 esac
6919 # Decide which environment variable is used to find dynamic libraries.
6920 case "${host}" in
6921 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6922 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6923 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6924 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6925 esac
6927 # On systems where the dynamic library environment variable is PATH,
6928 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6929 # built executables to PATH.
6930 if test "$RPATH_ENVVAR" = PATH; then
6931 GCC_SHLIB_SUBDIR=/shlib
6932 else
6933 GCC_SHLIB_SUBDIR=
6936 # Record target_configdirs and the configure arguments for target and
6937 # build configuration in Makefile.
6938 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6939 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
6941 # If we are building libgomp, bootstrap it.
6942 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6943 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6946 # Determine whether gdb needs tk/tcl or not.
6947 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6948 # and in that case we want gdb to be built without tk. Ugh!
6949 # In fact I believe gdb is the *only* package directly dependent on tk,
6950 # so we should be able to put the 'maybe's in unconditionally and
6951 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
6952 # 100% sure that that's safe though.
6954 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
6955 case "$enable_gdbtk" in
6957 GDB_TK="" ;;
6958 yes)
6959 GDB_TK="${gdb_tk}" ;;
6961 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6962 # distro. Eventually someone will fix this and move Insight, nee
6963 # gdbtk to a separate directory.
6964 if test -d ${srcdir}/gdb/gdbtk ; then
6965 GDB_TK="${gdb_tk}"
6966 else
6967 GDB_TK=""
6970 esac
6971 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6972 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
6974 # Strip out unwanted targets.
6976 # While at that, we remove Makefiles if we were started for recursive
6977 # configuration, so that the top-level Makefile reconfigures them,
6978 # like we used to do when configure itself was recursive.
6980 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
6981 # but now we're fixing up the Makefile ourselves with the additional
6982 # commands passed to AC_CONFIG_FILES. Use separate variables
6983 # extrasub-{build,host,target} not because there is any reason to split
6984 # the substitutions up that way, but only to remain below the limit of
6985 # 99 commands in a script, for HP-UX sed.
6986 # Do not nest @if/@endif pairs, because configure will not warn you at all.
6988 # Check whether --enable-bootstrap was given.
6989 if test "${enable_bootstrap+set}" = set; then :
6990 enableval=$enable_bootstrap;
6991 else
6992 enable_bootstrap=default
6996 # Issue errors and warnings for invalid/strange bootstrap combinations.
6997 case "$configdirs" in
6998 *gcc*) have_compiler=yes ;;
6999 *) have_compiler=no ;;
7000 esac
7002 case "$have_compiler:$host:$target:$enable_bootstrap" in
7003 *:*:*:no) ;;
7005 # Default behavior. Enable bootstrap if we have a compiler
7006 # and we are in a native configuration.
7007 yes:$build:$build:default)
7008 enable_bootstrap=yes ;;
7010 *:*:*:default)
7011 enable_bootstrap=no ;;
7013 # We have a compiler and we are in a native configuration, bootstrap is ok
7014 yes:$build:$build:yes)
7017 # Other configurations, but we have a compiler. Assume the user knows
7018 # what he's doing.
7019 yes:*:*:yes)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7021 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7024 # No compiler: if they passed --enable-bootstrap explicitly, fail
7025 no:*:*:yes)
7026 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7028 # Fail if wrong command line
7030 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7032 esac
7034 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7035 *,c++,*:yes:yes) ;;
7036 *:yes:yes)
7037 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7039 esac
7041 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7042 yes:yes:*\ gold\ *:*,c++,*) ;;
7043 yes:yes:*\ gold\ *:*)
7044 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7046 esac
7048 # Adjust the toplevel makefile according to whether bootstrap was selected.
7049 case $enable_bootstrap in
7050 yes)
7051 bootstrap_suffix=bootstrap
7052 BUILD_CONFIG=bootstrap-debug
7055 bootstrap_suffix=no-bootstrap
7056 BUILD_CONFIG=
7058 esac
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7061 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7064 # Check whether --with-build-config was given.
7065 if test "${with_build_config+set}" = set; then :
7066 withval=$with_build_config; case $with_build_config in
7067 yes) with_build_config= ;;
7068 no) with_build_config= BUILD_CONFIG= ;;
7069 esac
7073 if test "x${with_build_config}" != x; then
7074 BUILD_CONFIG=$with_build_config
7075 else
7076 case $BUILD_CONFIG in
7077 bootstrap-debug)
7078 if echo "int f (void) { return 0; }" > conftest.c &&
7079 ${CC} -c conftest.c &&
7080 mv conftest.o conftest.o.g0 &&
7081 ${CC} -c -g conftest.c &&
7082 mv conftest.o conftest.o.g &&
7083 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7085 else
7086 BUILD_CONFIG=
7088 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7090 esac
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7093 $as_echo "$BUILD_CONFIG" >&6; }
7096 extrasub_build=
7097 for module in ${build_configdirs} ; do
7098 if test -z "${no_recursion}" \
7099 && test -f ${build_subdir}/${module}/Makefile; then
7100 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7101 rm -f ${build_subdir}/${module}/Makefile
7103 extrasub_build="$extrasub_build
7104 /^@if build-$module\$/d
7105 /^@endif build-$module\$/d
7106 /^@if build-$module-$bootstrap_suffix\$/d
7107 /^@endif build-$module-$bootstrap_suffix\$/d"
7108 done
7109 extrasub_host=
7110 for module in ${configdirs} ; do
7111 if test -z "${no_recursion}"; then
7112 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7113 if test -f ${file}; then
7114 echo 1>&2 "*** removing ${file} to force reconfigure"
7115 rm -f ${file}
7117 done
7119 extrasub_host="$extrasub_host
7120 /^@if $module\$/d
7121 /^@endif $module\$/d
7122 /^@if $module-$bootstrap_suffix\$/d
7123 /^@endif $module-$bootstrap_suffix\$/d"
7124 done
7125 extrasub_target=
7126 for module in ${target_configdirs} ; do
7127 if test -z "${no_recursion}" \
7128 && test -f ${target_subdir}/${module}/Makefile; then
7129 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7130 rm -f ${target_subdir}/${module}/Makefile
7133 # We only bootstrap target libraries listed in bootstrap_target_libs.
7134 case $bootstrap_target_libs in
7135 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7136 *) target_bootstrap_suffix=no-bootstrap ;;
7137 esac
7139 extrasub_target="$extrasub_target
7140 /^@if target-$module\$/d
7141 /^@endif target-$module\$/d
7142 /^@if target-$module-$target_bootstrap_suffix\$/d
7143 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7144 done
7146 # Do the final fixup along with target modules.
7147 extrasub_target="$extrasub_target
7148 /^@if /,/^@endif /d"
7150 # Create the serialization dependencies. This uses a temporary file.
7152 # Check whether --enable-serial-configure was given.
7153 if test "${enable_serial_configure+set}" = set; then :
7154 enableval=$enable_serial_configure;
7158 case ${enable_serial_configure} in
7159 yes)
7160 enable_serial_build_configure=yes
7161 enable_serial_host_configure=yes
7162 enable_serial_target_configure=yes
7164 esac
7166 # These force 'configure's to be done one at a time, to avoid problems
7167 # with contention over a shared config.cache.
7168 rm -f serdep.tmp
7169 echo '# serdep.tmp' > serdep.tmp
7170 olditem=
7171 test "x${enable_serial_build_configure}" = xyes &&
7172 for item in ${build_configdirs} ; do
7173 case ${olditem} in
7174 "") ;;
7175 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7176 esac
7177 olditem=${item}
7178 done
7179 olditem=
7180 test "x${enable_serial_host_configure}" = xyes &&
7181 for item in ${configdirs} ; do
7182 case ${olditem} in
7183 "") ;;
7184 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7185 esac
7186 olditem=${item}
7187 done
7188 olditem=
7189 test "x${enable_serial_target_configure}" = xyes &&
7190 for item in ${target_configdirs} ; do
7191 case ${olditem} in
7192 "") ;;
7193 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7194 esac
7195 olditem=${item}
7196 done
7197 serialization_dependencies=serdep.tmp
7200 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7201 # target, nonopt, and variable assignments. These are the ones we
7202 # might not want to pass down to subconfigures. The exception being
7203 # --cache-file=/dev/null, which is used to turn off the use of cache
7204 # files altogether, and which should be passed on to subconfigures.
7205 # Also strip program-prefix, program-suffix, and program-transform-name,
7206 # so that we can pass down a consistent program-transform-name.
7207 baseargs=
7208 keep_next=no
7209 skip_next=no
7210 eval "set -- $ac_configure_args"
7211 for ac_arg
7213 if test X"$skip_next" = X"yes"; then
7214 skip_next=no
7215 continue
7217 if test X"$keep_next" = X"yes"; then
7218 case $ac_arg in
7219 *\'*)
7220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7221 esac
7222 baseargs="$baseargs '$ac_arg'"
7223 keep_next=no
7224 continue
7227 # Handle separated arguments. Based on the logic generated by
7228 # autoconf 2.59.
7229 case $ac_arg in
7230 *=* | --config-cache | -C | -disable-* | --disable-* \
7231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7233 | -with-* | --with-* | -without-* | --without-* | --x)
7234 separate_arg=no
7237 separate_arg=yes
7240 separate_arg=no
7242 esac
7244 case "$ac_arg" in
7245 --cache-file=/dev/null | \
7246 -cache-file=/dev/null )
7247 # Handled here to avoid the test to skip args below.
7248 baseargs="$baseargs '$ac_arg'"
7249 # Assert: $separate_arg should always be no.
7250 keep_next=$separate_arg
7252 --no*)
7253 continue
7255 --c* | \
7256 --sr* | \
7257 --ho* | \
7258 --bu* | \
7259 --t* | \
7260 --program-* | \
7261 -cache_file* | \
7262 -srcdir* | \
7263 -host* | \
7264 -build* | \
7265 -target* | \
7266 -program-prefix* | \
7267 -program-suffix* | \
7268 -program-transform-name* )
7269 skip_next=$separate_arg
7270 continue
7273 # An option. Add it.
7274 case $ac_arg in
7275 *\'*)
7276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7277 esac
7278 baseargs="$baseargs '$ac_arg'"
7279 keep_next=$separate_arg
7282 # Either a variable assignment, or a nonopt (triplet). Don't
7283 # pass it down; let the Makefile handle this.
7284 continue
7286 esac
7287 done
7288 # Remove the initial space we just introduced and, as these will be
7289 # expanded by make, quote '$'.
7290 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7292 # Add in --program-transform-name, after --program-prefix and
7293 # --program-suffix have been applied to it. Autoconf has already
7294 # doubled dollar signs and backslashes in program_transform_name; we want
7295 # the backslashes un-doubled, and then the entire thing wrapped in single
7296 # quotes, because this will be expanded first by make and then by the shell.
7297 # Also, because we want to override the logic in subdir configure scripts to
7298 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7299 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7300 ${program_transform_name}
7301 EOF_SED
7302 gcc_transform_name=`cat conftestsed.out`
7303 rm -f conftestsed.out
7304 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7305 if test "$silent" = yes; then
7306 baseargs="$baseargs --silent"
7308 baseargs="$baseargs --disable-option-checking"
7310 # Record and document user additions to sub configure arguments.
7315 # For the build-side libraries, we just need to pretend we're native,
7316 # and not use the same cache file. Multilibs are neither needed nor
7317 # desired.
7318 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7320 # For host modules, accept cache file option, or specification as blank.
7321 case "${cache_file}" in
7322 "") # empty
7323 cache_file_option="" ;;
7324 /* | [A-Za-z]:[\\/]* ) # absolute path
7325 cache_file_option="--cache-file=${cache_file}" ;;
7326 *) # relative path
7327 cache_file_option="--cache-file=../${cache_file}" ;;
7328 esac
7330 # Host dirs don't like to share a cache file either, horribly enough.
7331 # This seems to be due to autoconf 2.5x stupidity.
7332 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7334 target_configargs="$target_configargs ${baseargs}"
7336 # Passing a --with-cross-host argument lets the target libraries know
7337 # whether they are being built with a cross-compiler or being built
7338 # native. However, it would be better to use other mechanisms to make the
7339 # sorts of decisions they want to make on this basis. Please consider
7340 # this option to be deprecated. FIXME.
7341 if test x${is_cross_compiler} = xyes ; then
7342 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7345 # Default to --enable-multilib.
7346 if test x${enable_multilib} = x ; then
7347 target_configargs="--enable-multilib ${target_configargs}"
7350 # Pass --with-newlib if appropriate. Note that target_configdirs has
7351 # changed from the earlier setting of with_newlib.
7352 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7353 target_configargs="--with-newlib ${target_configargs}"
7356 # Different target subdirs use different values of certain variables
7357 # (notably CXX). Worse, multilibs use *lots* of different values.
7358 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7359 # it doesn't automatically accept command-line overrides of them.
7360 # This means it's not safe for target subdirs to share a cache file,
7361 # which is disgusting, but there you have it. Hopefully this can be
7362 # fixed in future. It's still worthwhile to use a cache file for each
7363 # directory. I think.
7365 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7366 # We need to pass --target, as newer autoconf's requires consistency
7367 # for target_alias and gcc doesn't manage it consistently.
7368 target_configargs="--cache-file=./config.cache ${target_configargs}"
7370 FLAGS_FOR_TARGET=
7371 case " $target_configdirs " in
7372 *" newlib "*)
7373 case " $target_configargs " in
7374 *" --with-newlib "*)
7375 case "$target" in
7376 *-cygwin*)
7377 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'
7379 esac
7381 # If we're not building GCC, don't discard standard headers.
7382 if test -d ${srcdir}/gcc; then
7383 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7385 if test "${build}" != "${host}"; then
7386 # On Canadian crosses, CC_FOR_TARGET will have already been set
7387 # by `configure', so we won't have an opportunity to add -Bgcc/
7388 # to it. This is right: we don't want to search that directory
7389 # for binaries, but we want the header files in there, so add
7390 # them explicitly.
7391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7393 # Someone might think of using the pre-installed headers on
7394 # Canadian crosses, in case the installed compiler is not fully
7395 # compatible with the compiler being built. In this case, it
7396 # would be better to flag an error than risking having
7397 # incompatible object files being constructed. We can't
7398 # guarantee that an error will be flagged, but let's hope the
7399 # compiler will do it, when presented with incompatible header
7400 # files.
7404 case "${target}-${is_cross_compiler}" in
7405 i[3456789]86-*-linux*-no)
7406 # Here host == target, so we don't need to build gcc,
7407 # so we don't want to discard standard headers.
7408 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7411 # If we're building newlib, use its generic headers last, but search
7412 # for any libc-related directories first (so make it the last -B
7413 # switch).
7414 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7416 # If we're building libgloss, find the startup file, simulator library
7417 # and linker script.
7418 case " $target_configdirs " in
7419 *" libgloss "*)
7420 # Look for startup file, simulator library and maybe linker script.
7421 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7422 # Look for libnosys.a in case the target needs it.
7423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7424 # Most targets have the linker script in the source directory.
7425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7427 esac
7429 esac
7431 esac
7433 esac
7435 case "$target" in
7436 x86_64-*mingw* | *-w64-mingw*)
7437 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7438 # however, use a symlink named 'mingw' in ${prefix} .
7439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7441 *-mingw*)
7442 # MinGW can't be handled as Cygwin above since it does not use newlib.
7443 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'
7445 esac
7447 # Allow the user to override the flags for
7448 # our build compiler if desired.
7449 if test x"${build}" = x"${host}" ; then
7450 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7451 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7452 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7455 # On Canadian crosses, we'll be searching the right directories for
7456 # the previously-installed cross compiler, so don't bother to add
7457 # flags for directories within the install tree of the compiler
7458 # being built; programs in there won't even run.
7459 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7460 # Search for pre-installed headers if nothing else fits.
7461 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7464 if test "x${use_gnu_ld}" = x &&
7465 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7466 # Arrange for us to find uninstalled linker scripts.
7467 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7470 # Search for other target-specific linker scripts and such.
7471 case "${target}" in
7472 mep*)
7473 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7475 esac
7477 # Makefile fragments.
7478 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7480 eval fragval=\$$frag
7481 if test $fragval != /dev/null; then
7482 eval $frag=${srcdir}/$fragval
7484 done
7490 # Miscellanea: directories, flags, etc.
7499 # Build module lists & subconfigure args.
7503 # Host module lists & subconfigure args.
7508 # Target module lists & subconfigure args.
7512 # Build tools.
7530 # Generate default definitions for YACC, M4, LEX and other programs that run
7531 # on the build machine. These are used if the Makefile can't locate these
7532 # programs in objdir.
7533 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7535 for ac_prog in 'bison -y' byacc yacc
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_YACC+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$YACC"; then
7545 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_YACC="$ac_prog"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7558 done
7559 done
7560 IFS=$as_save_IFS
7564 YACC=$ac_cv_prog_YACC
7565 if test -n "$YACC"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7567 $as_echo "$YACC" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7574 test -n "$YACC" && break
7575 done
7576 test -n "$YACC" || YACC="$MISSING bison -y"
7578 case " $build_configdirs " in
7579 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7580 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7581 esac
7583 for ac_prog in bison
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if test "${ac_cv_prog_BISON+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -n "$BISON"; then
7593 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_prog_BISON="$ac_prog"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7606 done
7607 done
7608 IFS=$as_save_IFS
7612 BISON=$ac_cv_prog_BISON
7613 if test -n "$BISON"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7615 $as_echo "$BISON" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7622 test -n "$BISON" && break
7623 done
7624 test -n "$BISON" || BISON="$MISSING bison"
7626 case " $build_configdirs " in
7627 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7628 esac
7630 for ac_prog in gm4 gnum4 m4
7632 # Extract the first word of "$ac_prog", so it can be a program name with args.
7633 set dummy $ac_prog; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if test "${ac_cv_prog_M4+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7638 else
7639 if test -n "$M4"; then
7640 ac_cv_prog_M4="$M4" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7645 IFS=$as_save_IFS
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_prog_M4="$ac_prog"
7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 break 2
7653 done
7654 done
7655 IFS=$as_save_IFS
7659 M4=$ac_cv_prog_M4
7660 if test -n "$M4"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7662 $as_echo "$M4" >&6; }
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7669 test -n "$M4" && break
7670 done
7671 test -n "$M4" || M4="$MISSING m4"
7673 case " $build_configdirs " in
7674 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7675 esac
7677 for ac_prog in flex lex
7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
7680 set dummy $ac_prog; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if test "${ac_cv_prog_LEX+set}" = set; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 if test -n "$LEX"; then
7687 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_prog_LEX="$ac_prog"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7700 done
7701 done
7702 IFS=$as_save_IFS
7706 LEX=$ac_cv_prog_LEX
7707 if test -n "$LEX"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7709 $as_echo "$LEX" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7716 test -n "$LEX" && break
7717 done
7718 test -n "$LEX" || LEX="$MISSING flex"
7720 case " $build_configdirs " in
7721 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7722 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7723 esac
7725 for ac_prog in flex
7727 # Extract the first word of "$ac_prog", so it can be a program name with args.
7728 set dummy $ac_prog; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_FLEX+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 if test -n "$FLEX"; then
7735 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7736 else
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738 for as_dir in $PATH
7740 IFS=$as_save_IFS
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_FLEX="$ac_prog"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 break 2
7748 done
7749 done
7750 IFS=$as_save_IFS
7754 FLEX=$ac_cv_prog_FLEX
7755 if test -n "$FLEX"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7757 $as_echo "$FLEX" >&6; }
7758 else
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7764 test -n "$FLEX" && break
7765 done
7766 test -n "$FLEX" || FLEX="$MISSING flex"
7768 case " $build_configdirs " in
7769 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7770 esac
7772 for ac_prog in makeinfo
7774 # Extract the first word of "$ac_prog", so it can be a program name with args.
7775 set dummy $ac_prog; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 if test -n "$MAKEINFO"; then
7782 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7783 else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 for as_dir in $PATH
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_prog_MAKEINFO="$ac_prog"
7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7795 done
7796 done
7797 IFS=$as_save_IFS
7801 MAKEINFO=$ac_cv_prog_MAKEINFO
7802 if test -n "$MAKEINFO"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7804 $as_echo "$MAKEINFO" >&6; }
7805 else
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7811 test -n "$MAKEINFO" && break
7812 done
7813 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7815 case " $build_configdirs " in
7816 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7819 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7820 # higher, else we use the "missing" dummy.
7821 if ${MAKEINFO} --version \
7822 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7824 else
7825 MAKEINFO="$MISSING makeinfo"
7829 esac
7831 # FIXME: expect and dejagnu may become build tools?
7833 for ac_prog in expect
7835 # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy $ac_prog; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$EXPECT"; then
7843 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_prog_EXPECT="$ac_prog"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7856 done
7857 done
7858 IFS=$as_save_IFS
7862 EXPECT=$ac_cv_prog_EXPECT
7863 if test -n "$EXPECT"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7865 $as_echo "$EXPECT" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7872 test -n "$EXPECT" && break
7873 done
7874 test -n "$EXPECT" || EXPECT="expect"
7876 case " $configdirs " in
7877 *" expect "*)
7878 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7880 esac
7882 for ac_prog in runtest
7884 # Extract the first word of "$ac_prog", so it can be a program name with args.
7885 set dummy $ac_prog; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 if test -n "$RUNTEST"; then
7892 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7893 else
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_prog_RUNTEST="$ac_prog"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7905 done
7906 done
7907 IFS=$as_save_IFS
7911 RUNTEST=$ac_cv_prog_RUNTEST
7912 if test -n "$RUNTEST"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7914 $as_echo "$RUNTEST" >&6; }
7915 else
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7921 test -n "$RUNTEST" && break
7922 done
7923 test -n "$RUNTEST" || RUNTEST="runtest"
7925 case " $configdirs " in
7926 *" dejagnu "*)
7927 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7929 esac
7932 # Host tools.
7933 ncn_tool_prefix=
7934 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7935 ncn_target_tool_prefix=
7936 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7940 if test -n "$AR"; then
7941 ac_cv_prog_AR=$AR
7942 elif test -n "$ac_cv_prog_AR"; then
7943 AR=$ac_cv_prog_AR
7946 if test -n "$ac_cv_prog_AR"; then
7947 for ncn_progname in ar; do
7948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7949 set dummy ${ncn_progname}; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_prog_AR+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$AR"; then
7956 ac_cv_prog_AR="$AR" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_AR="${ncn_progname}"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7969 done
7970 done
7971 IFS=$as_save_IFS
7975 AR=$ac_cv_prog_AR
7976 if test -n "$AR"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7978 $as_echo "$AR" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7985 done
7988 for ncn_progname in ar; do
7989 if test -n "$ncn_tool_prefix"; then
7990 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7991 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_prog_AR+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$AR"; then
7998 ac_cv_prog_AR="$AR" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8011 done
8012 done
8013 IFS=$as_save_IFS
8017 AR=$ac_cv_prog_AR
8018 if test -n "$AR"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8020 $as_echo "$AR" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8028 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8030 set dummy ${ncn_progname}; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_AR+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$AR"; then
8037 ac_cv_prog_AR="$AR" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_AR="${ncn_progname}"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8052 IFS=$as_save_IFS
8056 AR=$ac_cv_prog_AR
8057 if test -n "$AR"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8059 $as_echo "$AR" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8067 test -n "$ac_cv_prog_AR" && break
8068 done
8070 if test -z "$ac_cv_prog_AR" ; then
8071 set dummy ar
8072 if test $build = $host ; then
8073 AR="$2"
8074 else
8075 AR="${ncn_tool_prefix}$2"
8081 if test -n "$AS"; then
8082 ac_cv_prog_AS=$AS
8083 elif test -n "$ac_cv_prog_AS"; then
8084 AS=$ac_cv_prog_AS
8087 if test -n "$ac_cv_prog_AS"; then
8088 for ncn_progname in as; do
8089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8090 set dummy ${ncn_progname}; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if test "${ac_cv_prog_AS+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 if test -n "$AS"; then
8097 ac_cv_prog_AS="$AS" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_prog_AS="${ncn_progname}"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8110 done
8111 done
8112 IFS=$as_save_IFS
8116 AS=$ac_cv_prog_AS
8117 if test -n "$AS"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8119 $as_echo "$AS" >&6; }
8120 else
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8126 done
8129 for ncn_progname in as; do
8130 if test -n "$ncn_tool_prefix"; then
8131 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8132 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if test "${ac_cv_prog_AS+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 if test -n "$AS"; then
8139 ac_cv_prog_AS="$AS" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8152 done
8153 done
8154 IFS=$as_save_IFS
8158 AS=$ac_cv_prog_AS
8159 if test -n "$AS"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8161 $as_echo "$AS" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8169 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8171 set dummy ${ncn_progname}; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_AS+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 if test -n "$AS"; then
8178 ac_cv_prog_AS="$AS" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_AS="${ncn_progname}"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8191 done
8192 done
8193 IFS=$as_save_IFS
8197 AS=$ac_cv_prog_AS
8198 if test -n "$AS"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8200 $as_echo "$AS" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8208 test -n "$ac_cv_prog_AS" && break
8209 done
8211 if test -z "$ac_cv_prog_AS" ; then
8212 set dummy as
8213 if test $build = $host ; then
8214 AS="$2"
8215 else
8216 AS="${ncn_tool_prefix}$2"
8222 if test -n "$DLLTOOL"; then
8223 ac_cv_prog_DLLTOOL=$DLLTOOL
8224 elif test -n "$ac_cv_prog_DLLTOOL"; then
8225 DLLTOOL=$ac_cv_prog_DLLTOOL
8228 if test -n "$ac_cv_prog_DLLTOOL"; then
8229 for ncn_progname in dlltool; do
8230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8231 set dummy ${ncn_progname}; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 if test -n "$DLLTOOL"; then
8238 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247 ac_cv_prog_DLLTOOL="${ncn_progname}"
8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8251 done
8252 done
8253 IFS=$as_save_IFS
8257 DLLTOOL=$ac_cv_prog_DLLTOOL
8258 if test -n "$DLLTOOL"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8260 $as_echo "$DLLTOOL" >&6; }
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8267 done
8270 for ncn_progname in dlltool; do
8271 if test -n "$ncn_tool_prefix"; then
8272 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8273 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 if test -n "$DLLTOOL"; then
8280 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8295 IFS=$as_save_IFS
8299 DLLTOOL=$ac_cv_prog_DLLTOOL
8300 if test -n "$DLLTOOL"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8302 $as_echo "$DLLTOOL" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8310 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8312 set dummy ${ncn_progname}; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 if test -n "$DLLTOOL"; then
8319 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_prog_DLLTOOL="${ncn_progname}"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8332 done
8333 done
8334 IFS=$as_save_IFS
8338 DLLTOOL=$ac_cv_prog_DLLTOOL
8339 if test -n "$DLLTOOL"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8341 $as_echo "$DLLTOOL" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8349 test -n "$ac_cv_prog_DLLTOOL" && break
8350 done
8352 if test -z "$ac_cv_prog_DLLTOOL" ; then
8353 set dummy dlltool
8354 if test $build = $host ; then
8355 DLLTOOL="$2"
8356 else
8357 DLLTOOL="${ncn_tool_prefix}$2"
8363 if test -n "$LD"; then
8364 ac_cv_prog_LD=$LD
8365 elif test -n "$ac_cv_prog_LD"; then
8366 LD=$ac_cv_prog_LD
8369 if test -n "$ac_cv_prog_LD"; then
8370 for ncn_progname in ld; do
8371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8372 set dummy ${ncn_progname}; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if test "${ac_cv_prog_LD+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 if test -n "$LD"; then
8379 ac_cv_prog_LD="$LD" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_prog_LD="${ncn_progname}"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8392 done
8393 done
8394 IFS=$as_save_IFS
8398 LD=$ac_cv_prog_LD
8399 if test -n "$LD"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8401 $as_echo "$LD" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8408 done
8411 for ncn_progname in ld; do
8412 if test -n "$ncn_tool_prefix"; then
8413 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8414 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416 $as_echo_n "checking for $ac_word... " >&6; }
8417 if test "${ac_cv_prog_LD+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 if test -n "$LD"; then
8421 ac_cv_prog_LD="$LD" # Let the user override the test.
8422 else
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8430 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 break 2
8434 done
8435 done
8436 IFS=$as_save_IFS
8440 LD=$ac_cv_prog_LD
8441 if test -n "$LD"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8443 $as_echo "$LD" >&6; }
8444 else
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8451 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8453 set dummy ${ncn_progname}; ac_word=$2
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 $as_echo_n "checking for $ac_word... " >&6; }
8456 if test "${ac_cv_prog_LD+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 if test -n "$LD"; then
8460 ac_cv_prog_LD="$LD" # Let the user override the test.
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_prog_LD="${ncn_progname}"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8473 done
8474 done
8475 IFS=$as_save_IFS
8479 LD=$ac_cv_prog_LD
8480 if test -n "$LD"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8482 $as_echo "$LD" >&6; }
8483 else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8490 test -n "$ac_cv_prog_LD" && break
8491 done
8493 if test -z "$ac_cv_prog_LD" ; then
8494 set dummy ld
8495 if test $build = $host ; then
8496 LD="$2"
8497 else
8498 LD="${ncn_tool_prefix}$2"
8504 if test -n "$LIPO"; then
8505 ac_cv_prog_LIPO=$LIPO
8506 elif test -n "$ac_cv_prog_LIPO"; then
8507 LIPO=$ac_cv_prog_LIPO
8510 if test -n "$ac_cv_prog_LIPO"; then
8511 for ncn_progname in lipo; do
8512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8513 set dummy ${ncn_progname}; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_prog_LIPO+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 if test -n "$LIPO"; then
8520 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_prog_LIPO="${ncn_progname}"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8533 done
8534 done
8535 IFS=$as_save_IFS
8539 LIPO=$ac_cv_prog_LIPO
8540 if test -n "$LIPO"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8542 $as_echo "$LIPO" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8549 done
8552 for ncn_progname in lipo; do
8553 if test -n "$ncn_tool_prefix"; then
8554 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8555 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if test "${ac_cv_prog_LIPO+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 if test -n "$LIPO"; then
8562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8563 else
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8575 done
8576 done
8577 IFS=$as_save_IFS
8581 LIPO=$ac_cv_prog_LIPO
8582 if test -n "$LIPO"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8584 $as_echo "$LIPO" >&6; }
8585 else
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8592 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8594 set dummy ${ncn_progname}; ac_word=$2
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596 $as_echo_n "checking for $ac_word... " >&6; }
8597 if test "${ac_cv_prog_LIPO+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8599 else
8600 if test -n "$LIPO"; then
8601 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8602 else
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604 for as_dir in $PATH
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8610 ac_cv_prog_LIPO="${ncn_progname}"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8614 done
8615 done
8616 IFS=$as_save_IFS
8620 LIPO=$ac_cv_prog_LIPO
8621 if test -n "$LIPO"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8623 $as_echo "$LIPO" >&6; }
8624 else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8631 test -n "$ac_cv_prog_LIPO" && break
8632 done
8634 if test -z "$ac_cv_prog_LIPO" ; then
8635 set dummy lipo
8636 if test $build = $host ; then
8637 LIPO="$2"
8638 else
8639 LIPO="${ncn_tool_prefix}$2"
8645 if test -n "$NM"; then
8646 ac_cv_prog_NM=$NM
8647 elif test -n "$ac_cv_prog_NM"; then
8648 NM=$ac_cv_prog_NM
8651 if test -n "$ac_cv_prog_NM"; then
8652 for ncn_progname in nm; do
8653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8654 set dummy ${ncn_progname}; ac_word=$2
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 $as_echo_n "checking for $ac_word... " >&6; }
8657 if test "${ac_cv_prog_NM+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 if test -n "$NM"; then
8661 ac_cv_prog_NM="$NM" # Let the user override the test.
8662 else
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_prog_NM="${ncn_progname}"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8674 done
8675 done
8676 IFS=$as_save_IFS
8680 NM=$ac_cv_prog_NM
8681 if test -n "$NM"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8683 $as_echo "$NM" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8690 done
8693 for ncn_progname in nm; do
8694 if test -n "$ncn_tool_prefix"; then
8695 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8696 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if test "${ac_cv_prog_NM+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 if test -n "$NM"; then
8703 ac_cv_prog_NM="$NM" # Let the user override the test.
8704 else
8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 for as_dir in $PATH
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8712 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 break 2
8716 done
8717 done
8718 IFS=$as_save_IFS
8722 NM=$ac_cv_prog_NM
8723 if test -n "$NM"; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8725 $as_echo "$NM" >&6; }
8726 else
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 $as_echo "no" >&6; }
8733 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8735 set dummy ${ncn_progname}; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if test "${ac_cv_prog_NM+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 if test -n "$NM"; then
8742 ac_cv_prog_NM="$NM" # Let the user override the test.
8743 else
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_prog_NM="${ncn_progname}"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8755 done
8756 done
8757 IFS=$as_save_IFS
8761 NM=$ac_cv_prog_NM
8762 if test -n "$NM"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8764 $as_echo "$NM" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8772 test -n "$ac_cv_prog_NM" && break
8773 done
8775 if test -z "$ac_cv_prog_NM" ; then
8776 set dummy nm
8777 if test $build = $host ; then
8778 NM="$2"
8779 else
8780 NM="${ncn_tool_prefix}$2"
8786 if test -n "$RANLIB"; then
8787 ac_cv_prog_RANLIB=$RANLIB
8788 elif test -n "$ac_cv_prog_RANLIB"; then
8789 RANLIB=$ac_cv_prog_RANLIB
8792 if test -n "$ac_cv_prog_RANLIB"; then
8793 for ncn_progname in ranlib; do
8794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795 set dummy ${ncn_progname}; ac_word=$2
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797 $as_echo_n "checking for $ac_word... " >&6; }
8798 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 if test -n "$RANLIB"; then
8802 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8803 else
8804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 for as_dir in $PATH
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811 ac_cv_prog_RANLIB="${ncn_progname}"
8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8813 break 2
8815 done
8816 done
8817 IFS=$as_save_IFS
8821 RANLIB=$ac_cv_prog_RANLIB
8822 if test -n "$RANLIB"; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8824 $as_echo "$RANLIB" >&6; }
8825 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827 $as_echo "no" >&6; }
8831 done
8834 for ncn_progname in ranlib; do
8835 if test -n "$ncn_tool_prefix"; then
8836 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8837 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 if test -n "$RANLIB"; then
8844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8845 else
8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 for as_dir in $PATH
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8853 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 break 2
8857 done
8858 done
8859 IFS=$as_save_IFS
8863 RANLIB=$ac_cv_prog_RANLIB
8864 if test -n "$RANLIB"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8866 $as_echo "$RANLIB" >&6; }
8867 else
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 $as_echo "no" >&6; }
8874 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8876 set dummy ${ncn_progname}; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 if test -n "$RANLIB"; then
8883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8884 else
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_prog_RANLIB="${ncn_progname}"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8896 done
8897 done
8898 IFS=$as_save_IFS
8902 RANLIB=$ac_cv_prog_RANLIB
8903 if test -n "$RANLIB"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8905 $as_echo "$RANLIB" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8913 test -n "$ac_cv_prog_RANLIB" && break
8914 done
8916 if test -z "$ac_cv_prog_RANLIB" ; then
8917 RANLIB="true"
8922 if test -n "$STRIP"; then
8923 ac_cv_prog_STRIP=$STRIP
8924 elif test -n "$ac_cv_prog_STRIP"; then
8925 STRIP=$ac_cv_prog_STRIP
8928 if test -n "$ac_cv_prog_STRIP"; then
8929 for ncn_progname in strip; do
8930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8931 set dummy ${ncn_progname}; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if test "${ac_cv_prog_STRIP+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 if test -n "$STRIP"; then
8938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8939 else
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8947 ac_cv_prog_STRIP="${ncn_progname}"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 break 2
8951 done
8952 done
8953 IFS=$as_save_IFS
8957 STRIP=$ac_cv_prog_STRIP
8958 if test -n "$STRIP"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8960 $as_echo "$STRIP" >&6; }
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8967 done
8970 for ncn_progname in strip; do
8971 if test -n "$ncn_tool_prefix"; then
8972 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8973 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975 $as_echo_n "checking for $ac_word... " >&6; }
8976 if test "${ac_cv_prog_STRIP+set}" = set; then :
8977 $as_echo_n "(cached) " >&6
8978 else
8979 if test -n "$STRIP"; then
8980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8981 else
8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 for as_dir in $PATH
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8989 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8991 break 2
8993 done
8994 done
8995 IFS=$as_save_IFS
8999 STRIP=$ac_cv_prog_STRIP
9000 if test -n "$STRIP"; then
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9002 $as_echo "$STRIP" >&6; }
9003 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9010 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9012 set dummy ${ncn_progname}; ac_word=$2
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if test "${ac_cv_prog_STRIP+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test -n "$STRIP"; then
9019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9020 else
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9028 ac_cv_prog_STRIP="${ncn_progname}"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9032 done
9033 done
9034 IFS=$as_save_IFS
9038 STRIP=$ac_cv_prog_STRIP
9039 if test -n "$STRIP"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9041 $as_echo "$STRIP" >&6; }
9042 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9049 test -n "$ac_cv_prog_STRIP" && break
9050 done
9052 if test -z "$ac_cv_prog_STRIP" ; then
9053 STRIP="true"
9058 if test -n "$WINDRES"; then
9059 ac_cv_prog_WINDRES=$WINDRES
9060 elif test -n "$ac_cv_prog_WINDRES"; then
9061 WINDRES=$ac_cv_prog_WINDRES
9064 if test -n "$ac_cv_prog_WINDRES"; then
9065 for ncn_progname in windres; do
9066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9067 set dummy ${ncn_progname}; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$WINDRES"; then
9074 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9083 ac_cv_prog_WINDRES="${ncn_progname}"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9087 done
9088 done
9089 IFS=$as_save_IFS
9093 WINDRES=$ac_cv_prog_WINDRES
9094 if test -n "$WINDRES"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9096 $as_echo "$WINDRES" >&6; }
9097 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9103 done
9106 for ncn_progname in windres; do
9107 if test -n "$ncn_tool_prefix"; then
9108 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9109 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 if test -n "$WINDRES"; then
9116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9117 else
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9129 done
9130 done
9131 IFS=$as_save_IFS
9135 WINDRES=$ac_cv_prog_WINDRES
9136 if test -n "$WINDRES"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9138 $as_echo "$WINDRES" >&6; }
9139 else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9146 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9147 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9148 set dummy ${ncn_progname}; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 if test -n "$WINDRES"; then
9155 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164 ac_cv_prog_WINDRES="${ncn_progname}"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 break 2
9168 done
9169 done
9170 IFS=$as_save_IFS
9174 WINDRES=$ac_cv_prog_WINDRES
9175 if test -n "$WINDRES"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9177 $as_echo "$WINDRES" >&6; }
9178 else
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9185 test -n "$ac_cv_prog_WINDRES" && break
9186 done
9188 if test -z "$ac_cv_prog_WINDRES" ; then
9189 set dummy windres
9190 if test $build = $host ; then
9191 WINDRES="$2"
9192 else
9193 WINDRES="${ncn_tool_prefix}$2"
9199 if test -n "$WINDMC"; then
9200 ac_cv_prog_WINDMC=$WINDMC
9201 elif test -n "$ac_cv_prog_WINDMC"; then
9202 WINDMC=$ac_cv_prog_WINDMC
9205 if test -n "$ac_cv_prog_WINDMC"; then
9206 for ncn_progname in windmc; do
9207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9208 set dummy ${ncn_progname}; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 if test -n "$WINDMC"; then
9215 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9224 ac_cv_prog_WINDMC="${ncn_progname}"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9226 break 2
9228 done
9229 done
9230 IFS=$as_save_IFS
9234 WINDMC=$ac_cv_prog_WINDMC
9235 if test -n "$WINDMC"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9237 $as_echo "$WINDMC" >&6; }
9238 else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9244 done
9247 for ncn_progname in windmc; do
9248 if test -n "$ncn_tool_prefix"; then
9249 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9250 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252 $as_echo_n "checking for $ac_word... " >&6; }
9253 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9255 else
9256 if test -n "$WINDMC"; then
9257 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9258 else
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 for as_dir in $PATH
9262 IFS=$as_save_IFS
9263 test -z "$as_dir" && as_dir=.
9264 for ac_exec_ext in '' $ac_executable_extensions; do
9265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9266 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 break 2
9270 done
9271 done
9272 IFS=$as_save_IFS
9276 WINDMC=$ac_cv_prog_WINDMC
9277 if test -n "$WINDMC"; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9279 $as_echo "$WINDMC" >&6; }
9280 else
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 $as_echo "no" >&6; }
9287 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9289 set dummy ${ncn_progname}; ac_word=$2
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9291 $as_echo_n "checking for $ac_word... " >&6; }
9292 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 if test -n "$WINDMC"; then
9296 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9297 else
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 for as_dir in $PATH
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_exec_ext in '' $ac_executable_extensions; do
9304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9305 ac_cv_prog_WINDMC="${ncn_progname}"
9306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9307 break 2
9309 done
9310 done
9311 IFS=$as_save_IFS
9315 WINDMC=$ac_cv_prog_WINDMC
9316 if test -n "$WINDMC"; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9318 $as_echo "$WINDMC" >&6; }
9319 else
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9326 test -n "$ac_cv_prog_WINDMC" && break
9327 done
9329 if test -z "$ac_cv_prog_WINDMC" ; then
9330 set dummy windmc
9331 if test $build = $host ; then
9332 WINDMC="$2"
9333 else
9334 WINDMC="${ncn_tool_prefix}$2"
9340 if test -n "$OBJCOPY"; then
9341 ac_cv_prog_OBJCOPY=$OBJCOPY
9342 elif test -n "$ac_cv_prog_OBJCOPY"; then
9343 OBJCOPY=$ac_cv_prog_OBJCOPY
9346 if test -n "$ac_cv_prog_OBJCOPY"; then
9347 for ncn_progname in objcopy; do
9348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9349 set dummy ${ncn_progname}; ac_word=$2
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351 $as_echo_n "checking for $ac_word... " >&6; }
9352 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 if test -n "$OBJCOPY"; then
9356 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9357 else
9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 for as_dir in $PATH
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9365 ac_cv_prog_OBJCOPY="${ncn_progname}"
9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9367 break 2
9369 done
9370 done
9371 IFS=$as_save_IFS
9375 OBJCOPY=$ac_cv_prog_OBJCOPY
9376 if test -n "$OBJCOPY"; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9378 $as_echo "$OBJCOPY" >&6; }
9379 else
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381 $as_echo "no" >&6; }
9385 done
9388 for ncn_progname in objcopy; do
9389 if test -n "$ncn_tool_prefix"; then
9390 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9391 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 if test -n "$OBJCOPY"; then
9398 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9399 else
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401 for as_dir in $PATH
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9407 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 break 2
9411 done
9412 done
9413 IFS=$as_save_IFS
9417 OBJCOPY=$ac_cv_prog_OBJCOPY
9418 if test -n "$OBJCOPY"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9420 $as_echo "$OBJCOPY" >&6; }
9421 else
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9428 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9430 set dummy ${ncn_progname}; ac_word=$2
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9432 $as_echo_n "checking for $ac_word... " >&6; }
9433 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 if test -n "$OBJCOPY"; then
9437 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9438 else
9439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440 for as_dir in $PATH
9442 IFS=$as_save_IFS
9443 test -z "$as_dir" && as_dir=.
9444 for ac_exec_ext in '' $ac_executable_extensions; do
9445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9446 ac_cv_prog_OBJCOPY="${ncn_progname}"
9447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9448 break 2
9450 done
9451 done
9452 IFS=$as_save_IFS
9456 OBJCOPY=$ac_cv_prog_OBJCOPY
9457 if test -n "$OBJCOPY"; then
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9459 $as_echo "$OBJCOPY" >&6; }
9460 else
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9467 test -n "$ac_cv_prog_OBJCOPY" && break
9468 done
9470 if test -z "$ac_cv_prog_OBJCOPY" ; then
9471 set dummy objcopy
9472 if test $build = $host ; then
9473 OBJCOPY="$2"
9474 else
9475 OBJCOPY="${ncn_tool_prefix}$2"
9481 if test -n "$OBJDUMP"; then
9482 ac_cv_prog_OBJDUMP=$OBJDUMP
9483 elif test -n "$ac_cv_prog_OBJDUMP"; then
9484 OBJDUMP=$ac_cv_prog_OBJDUMP
9487 if test -n "$ac_cv_prog_OBJDUMP"; then
9488 for ncn_progname in objdump; do
9489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9490 set dummy ${ncn_progname}; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 if test -n "$OBJDUMP"; then
9497 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506 ac_cv_prog_OBJDUMP="${ncn_progname}"
9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508 break 2
9510 done
9511 done
9512 IFS=$as_save_IFS
9516 OBJDUMP=$ac_cv_prog_OBJDUMP
9517 if test -n "$OBJDUMP"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9519 $as_echo "$OBJDUMP" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9526 done
9529 for ncn_progname in objdump; do
9530 if test -n "$ncn_tool_prefix"; then
9531 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9532 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 if test -n "$OBJDUMP"; then
9539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9540 else
9541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542 for as_dir in $PATH
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9548 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9550 break 2
9552 done
9553 done
9554 IFS=$as_save_IFS
9558 OBJDUMP=$ac_cv_prog_OBJDUMP
9559 if test -n "$OBJDUMP"; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9561 $as_echo "$OBJDUMP" >&6; }
9562 else
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9569 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9571 set dummy ${ncn_progname}; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 if test -n "$OBJDUMP"; then
9578 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9579 else
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587 ac_cv_prog_OBJDUMP="${ncn_progname}"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9591 done
9592 done
9593 IFS=$as_save_IFS
9597 OBJDUMP=$ac_cv_prog_OBJDUMP
9598 if test -n "$OBJDUMP"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9600 $as_echo "$OBJDUMP" >&6; }
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 $as_echo "no" >&6; }
9608 test -n "$ac_cv_prog_OBJDUMP" && break
9609 done
9611 if test -z "$ac_cv_prog_OBJDUMP" ; then
9612 set dummy objdump
9613 if test $build = $host ; then
9614 OBJDUMP="$2"
9615 else
9616 OBJDUMP="${ncn_tool_prefix}$2"
9625 # Target tools.
9627 # Check whether --with-build-time-tools was given.
9628 if test "${with_build_time_tools+set}" = set; then :
9629 withval=$with_build_time_tools; case x"$withval" in
9630 x/*) ;;
9632 with_build_time_tools=
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9634 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9636 esac
9637 else
9638 with_build_time_tools=
9644 if test -n "$CC_FOR_TARGET"; then
9645 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9646 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9647 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9650 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9651 for ncn_progname in cc gcc; do
9652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9653 set dummy ${ncn_progname}; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 if test -n "$CC_FOR_TARGET"; then
9660 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9661 else
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 for as_dir in $PATH
9665 IFS=$as_save_IFS
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9669 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 break 2
9673 done
9674 done
9675 IFS=$as_save_IFS
9679 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9680 if test -n "$CC_FOR_TARGET"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9682 $as_echo "$CC_FOR_TARGET" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9689 done
9692 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9693 for ncn_progname in cc gcc; do
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9695 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9696 if test -x $with_build_time_tools/${ncn_progname}; then
9697 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9699 $as_echo "yes" >&6; }
9700 break
9701 else
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703 $as_echo "no" >&6; }
9705 done
9708 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9709 for ncn_progname in cc gcc; do
9710 if test -n "$ncn_target_tool_prefix"; then
9711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9712 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 if test -n "$CC_FOR_TARGET"; then
9719 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9720 else
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $PATH
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9728 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 break 2
9732 done
9733 done
9734 IFS=$as_save_IFS
9738 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9739 if test -n "$CC_FOR_TARGET"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9741 $as_echo "$CC_FOR_TARGET" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9749 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9751 set dummy ${ncn_progname}; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 if test -n "$CC_FOR_TARGET"; then
9758 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9759 else
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 for as_dir in $PATH
9763 IFS=$as_save_IFS
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 break 2
9771 done
9772 done
9773 IFS=$as_save_IFS
9777 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9778 if test -n "$CC_FOR_TARGET"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9780 $as_echo "$CC_FOR_TARGET" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9788 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9789 done
9792 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9793 set dummy cc gcc
9794 if test $build = $target ; then
9795 CC_FOR_TARGET="$2"
9796 else
9797 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9799 else
9800 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9805 if test -n "$CXX_FOR_TARGET"; then
9806 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9807 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9808 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9811 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9812 for ncn_progname in c++ g++ cxx gxx; do
9813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9814 set dummy ${ncn_progname}; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 if test -n "$CXX_FOR_TARGET"; then
9821 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9822 else
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824 for as_dir in $PATH
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9834 done
9835 done
9836 IFS=$as_save_IFS
9840 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9841 if test -n "$CXX_FOR_TARGET"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9843 $as_echo "$CXX_FOR_TARGET" >&6; }
9844 else
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9850 done
9853 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9854 for ncn_progname in c++ g++ cxx gxx; do
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9856 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9857 if test -x $with_build_time_tools/${ncn_progname}; then
9858 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9860 $as_echo "yes" >&6; }
9861 break
9862 else
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9866 done
9869 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9870 for ncn_progname in c++ g++ cxx gxx; do
9871 if test -n "$ncn_target_tool_prefix"; then
9872 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9873 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879 if test -n "$CXX_FOR_TARGET"; then
9880 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9881 else
9882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883 for as_dir in $PATH
9885 IFS=$as_save_IFS
9886 test -z "$as_dir" && as_dir=.
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9889 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 break 2
9893 done
9894 done
9895 IFS=$as_save_IFS
9899 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9900 if test -n "$CXX_FOR_TARGET"; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9902 $as_echo "$CXX_FOR_TARGET" >&6; }
9903 else
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 $as_echo "no" >&6; }
9910 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9911 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9912 set dummy ${ncn_progname}; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 if test -n "$CXX_FOR_TARGET"; then
9919 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9920 else
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9924 IFS=$as_save_IFS
9925 test -z "$as_dir" && as_dir=.
9926 for ac_exec_ext in '' $ac_executable_extensions; do
9927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 break 2
9932 done
9933 done
9934 IFS=$as_save_IFS
9938 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9939 if test -n "$CXX_FOR_TARGET"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9941 $as_echo "$CXX_FOR_TARGET" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9949 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9950 done
9953 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9954 set dummy c++ g++ cxx gxx
9955 if test $build = $target ; then
9956 CXX_FOR_TARGET="$2"
9957 else
9958 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
9960 else
9961 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
9966 if test -n "$GCC_FOR_TARGET"; then
9967 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9968 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9969 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9972 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9973 for ncn_progname in gcc; do
9974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9975 set dummy ${ncn_progname}; ac_word=$2
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 $as_echo_n "checking for $ac_word... " >&6; }
9978 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 if test -n "$GCC_FOR_TARGET"; then
9982 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9983 else
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9987 IFS=$as_save_IFS
9988 test -z "$as_dir" && as_dir=.
9989 for ac_exec_ext in '' $ac_executable_extensions; do
9990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9991 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 break 2
9995 done
9996 done
9997 IFS=$as_save_IFS
10001 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10002 if test -n "$GCC_FOR_TARGET"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10004 $as_echo "$GCC_FOR_TARGET" >&6; }
10005 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10011 done
10014 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10015 for ncn_progname in gcc; do
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10017 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10018 if test -x $with_build_time_tools/${ncn_progname}; then
10019 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10021 $as_echo "yes" >&6; }
10022 break
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10027 done
10030 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10031 for ncn_progname in gcc; do
10032 if test -n "$ncn_target_tool_prefix"; then
10033 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10034 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 if test -n "$GCC_FOR_TARGET"; then
10041 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10042 else
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10050 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 break 2
10054 done
10055 done
10056 IFS=$as_save_IFS
10060 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10061 if test -n "$GCC_FOR_TARGET"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10063 $as_echo "$GCC_FOR_TARGET" >&6; }
10064 else
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10071 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10072 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10073 set dummy ${ncn_progname}; ac_word=$2
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10075 $as_echo_n "checking for $ac_word... " >&6; }
10076 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 if test -n "$GCC_FOR_TARGET"; then
10080 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10081 else
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083 for as_dir in $PATH
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10089 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10093 done
10094 done
10095 IFS=$as_save_IFS
10099 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10100 if test -n "$GCC_FOR_TARGET"; then
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10102 $as_echo "$GCC_FOR_TARGET" >&6; }
10103 else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10110 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10111 done
10114 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10115 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10116 else
10117 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10122 if test -n "$GCJ_FOR_TARGET"; then
10123 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10124 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10125 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10128 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10129 for ncn_progname in gcj; do
10130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10131 set dummy ${ncn_progname}; ac_word=$2
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133 $as_echo_n "checking for $ac_word... " >&6; }
10134 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 if test -n "$GCJ_FOR_TARGET"; then
10138 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10139 else
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10147 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10151 done
10152 done
10153 IFS=$as_save_IFS
10157 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10158 if test -n "$GCJ_FOR_TARGET"; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10160 $as_echo "$GCJ_FOR_TARGET" >&6; }
10161 else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10167 done
10170 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10171 for ncn_progname in gcj; do
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10173 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10174 if test -x $with_build_time_tools/${ncn_progname}; then
10175 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10177 $as_echo "yes" >&6; }
10178 break
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10183 done
10186 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10187 for ncn_progname in gcj; do
10188 if test -n "$ncn_target_tool_prefix"; then
10189 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10190 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 if test -n "$GCJ_FOR_TARGET"; then
10197 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10198 else
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10206 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10210 done
10211 done
10212 IFS=$as_save_IFS
10216 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10217 if test -n "$GCJ_FOR_TARGET"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10219 $as_echo "$GCJ_FOR_TARGET" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10227 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10229 set dummy ${ncn_progname}; ac_word=$2
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231 $as_echo_n "checking for $ac_word... " >&6; }
10232 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 if test -n "$GCJ_FOR_TARGET"; then
10236 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10237 else
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10241 IFS=$as_save_IFS
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10245 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 break 2
10249 done
10250 done
10251 IFS=$as_save_IFS
10255 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10256 if test -n "$GCJ_FOR_TARGET"; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10258 $as_echo "$GCJ_FOR_TARGET" >&6; }
10259 else
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10266 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10267 done
10270 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10271 set dummy gcj
10272 if test $build = $target ; then
10273 GCJ_FOR_TARGET="$2"
10274 else
10275 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10277 else
10278 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10283 if test -n "$GFORTRAN_FOR_TARGET"; then
10284 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10285 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10286 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10289 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10290 for ncn_progname in gfortran; do
10291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10292 set dummy ${ncn_progname}; ac_word=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 if test -n "$GFORTRAN_FOR_TARGET"; then
10299 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10300 else
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10304 IFS=$as_save_IFS
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10308 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 break 2
10312 done
10313 done
10314 IFS=$as_save_IFS
10318 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10319 if test -n "$GFORTRAN_FOR_TARGET"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10321 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10328 done
10331 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10332 for ncn_progname in gfortran; do
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10334 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10335 if test -x $with_build_time_tools/${ncn_progname}; then
10336 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10338 $as_echo "yes" >&6; }
10339 break
10340 else
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10344 done
10347 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10348 for ncn_progname in gfortran; do
10349 if test -n "$ncn_target_tool_prefix"; then
10350 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10351 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353 $as_echo_n "checking for $ac_word... " >&6; }
10354 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
10356 else
10357 if test -n "$GFORTRAN_FOR_TARGET"; then
10358 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10359 else
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10369 break 2
10371 done
10372 done
10373 IFS=$as_save_IFS
10377 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10378 if test -n "$GFORTRAN_FOR_TARGET"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10380 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10388 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10390 set dummy ${ncn_progname}; ac_word=$2
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10392 $as_echo_n "checking for $ac_word... " >&6; }
10393 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 if test -n "$GFORTRAN_FOR_TARGET"; then
10397 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10398 else
10399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10400 for as_dir in $PATH
10402 IFS=$as_save_IFS
10403 test -z "$as_dir" && as_dir=.
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10406 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 break 2
10410 done
10411 done
10412 IFS=$as_save_IFS
10416 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10417 if test -n "$GFORTRAN_FOR_TARGET"; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10419 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10420 else
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10422 $as_echo "no" >&6; }
10427 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10428 done
10431 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10432 set dummy gfortran
10433 if test $build = $target ; then
10434 GFORTRAN_FOR_TARGET="$2"
10435 else
10436 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10438 else
10439 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10444 cat > conftest.c << \EOF
10445 #ifdef __GNUC__
10446 gcc_yay;
10447 #endif
10449 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10450 have_gcc_for_target=yes
10451 else
10452 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10453 have_gcc_for_target=no
10455 rm conftest.c
10460 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10461 if test -n "$with_build_time_tools"; then
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10463 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10464 if test -x $with_build_time_tools/ar; then
10465 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10466 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10468 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10473 elif test $build != $host && test $have_gcc_for_target = yes; then
10474 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10475 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10476 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10479 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10480 # Extract the first word of "ar", so it can be a program name with args.
10481 set dummy ar; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 case $AR_FOR_TARGET in
10488 [\\/]* | ?:[\\/]*)
10489 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $gcc_cv_tool_dirs
10495 IFS=$as_save_IFS
10496 test -z "$as_dir" && as_dir=.
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10499 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 break 2
10503 done
10504 done
10505 IFS=$as_save_IFS
10508 esac
10510 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10511 if test -n "$AR_FOR_TARGET"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10513 $as_echo "$AR_FOR_TARGET" >&6; }
10514 else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10521 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10524 if test -n "$AR_FOR_TARGET"; then
10525 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10526 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10527 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10530 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10531 for ncn_progname in ar; do
10532 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10533 set dummy ${ncn_progname}; ac_word=$2
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10535 $as_echo_n "checking for $ac_word... " >&6; }
10536 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10537 $as_echo_n "(cached) " >&6
10538 else
10539 if test -n "$AR_FOR_TARGET"; then
10540 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10541 else
10542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543 for as_dir in $PATH
10545 IFS=$as_save_IFS
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10549 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10551 break 2
10553 done
10554 done
10555 IFS=$as_save_IFS
10559 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10560 if test -n "$AR_FOR_TARGET"; then
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10562 $as_echo "$AR_FOR_TARGET" >&6; }
10563 else
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565 $as_echo "no" >&6; }
10569 done
10572 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10573 for ncn_progname in ar; do
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10575 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10576 if test -x $with_build_time_tools/${ncn_progname}; then
10577 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10579 $as_echo "yes" >&6; }
10580 break
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10585 done
10588 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10589 for ncn_progname in ar; do
10590 if test -n "$ncn_target_tool_prefix"; then
10591 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10592 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10594 $as_echo_n "checking for $ac_word... " >&6; }
10595 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 if test -n "$AR_FOR_TARGET"; then
10599 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10600 else
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602 for as_dir in $PATH
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10608 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 break 2
10612 done
10613 done
10614 IFS=$as_save_IFS
10618 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10619 if test -n "$AR_FOR_TARGET"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10621 $as_echo "$AR_FOR_TARGET" >&6; }
10622 else
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10629 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10631 set dummy ${ncn_progname}; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633 $as_echo_n "checking for $ac_word... " >&6; }
10634 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 if test -n "$AR_FOR_TARGET"; then
10638 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10639 else
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10647 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10651 done
10652 done
10653 IFS=$as_save_IFS
10657 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10658 if test -n "$AR_FOR_TARGET"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10660 $as_echo "$AR_FOR_TARGET" >&6; }
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10668 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10669 done
10672 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10673 set dummy ar
10674 if test $build = $target ; then
10675 AR_FOR_TARGET="$2"
10676 else
10677 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10679 else
10680 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10683 else
10684 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10690 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10691 if test -n "$with_build_time_tools"; then
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10693 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10694 if test -x $with_build_time_tools/as; then
10695 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10696 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10698 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10703 elif test $build != $host && test $have_gcc_for_target = yes; then
10704 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10705 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10706 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10709 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10710 # Extract the first word of "as", so it can be a program name with args.
10711 set dummy as; ac_word=$2
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713 $as_echo_n "checking for $ac_word... " >&6; }
10714 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 case $AS_FOR_TARGET in
10718 [\\/]* | ?:[\\/]*)
10719 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $gcc_cv_tool_dirs
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10729 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 break 2
10733 done
10734 done
10735 IFS=$as_save_IFS
10738 esac
10740 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10741 if test -n "$AS_FOR_TARGET"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10743 $as_echo "$AS_FOR_TARGET" >&6; }
10744 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746 $as_echo "no" >&6; }
10751 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10754 if test -n "$AS_FOR_TARGET"; then
10755 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10756 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10757 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10760 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10761 for ncn_progname in as; do
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10763 set dummy ${ncn_progname}; ac_word=$2
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765 $as_echo_n "checking for $ac_word... " >&6; }
10766 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 if test -n "$AS_FOR_TARGET"; then
10770 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10771 else
10772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10779 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10781 break 2
10783 done
10784 done
10785 IFS=$as_save_IFS
10789 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10790 if test -n "$AS_FOR_TARGET"; then
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10792 $as_echo "$AS_FOR_TARGET" >&6; }
10793 else
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795 $as_echo "no" >&6; }
10799 done
10802 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
10803 for ncn_progname in as; do
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10805 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10806 if test -x $with_build_time_tools/${ncn_progname}; then
10807 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809 $as_echo "yes" >&6; }
10810 break
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10815 done
10818 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10819 for ncn_progname in as; do
10820 if test -n "$ncn_target_tool_prefix"; then
10821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10822 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 if test -n "$AS_FOR_TARGET"; then
10829 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10830 else
10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832 for as_dir in $PATH
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10838 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10842 done
10843 done
10844 IFS=$as_save_IFS
10848 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10849 if test -n "$AS_FOR_TARGET"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10851 $as_echo "$AS_FOR_TARGET" >&6; }
10852 else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10859 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10861 set dummy ${ncn_progname}; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 if test -n "$AS_FOR_TARGET"; then
10868 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10869 else
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10881 done
10882 done
10883 IFS=$as_save_IFS
10887 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10888 if test -n "$AS_FOR_TARGET"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10890 $as_echo "$AS_FOR_TARGET" >&6; }
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10898 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10899 done
10902 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10903 set dummy as
10904 if test $build = $target ; then
10905 AS_FOR_TARGET="$2"
10906 else
10907 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10909 else
10910 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
10913 else
10914 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10920 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10921 if test -n "$with_build_time_tools"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10923 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
10924 if test -x $with_build_time_tools/dlltool; then
10925 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10926 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10928 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
10929 else
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931 $as_echo "no" >&6; }
10933 elif test $build != $host && test $have_gcc_for_target = yes; then
10934 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
10935 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10936 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10939 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10940 # Extract the first word of "dlltool", so it can be a program name with args.
10941 set dummy dlltool; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 $as_echo_n "checking for $ac_word... " >&6; }
10944 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 case $DLLTOOL_FOR_TARGET in
10948 [\\/]* | ?:[\\/]*)
10949 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $gcc_cv_tool_dirs
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10959 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10963 done
10964 done
10965 IFS=$as_save_IFS
10968 esac
10970 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
10971 if test -n "$DLLTOOL_FOR_TARGET"; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10973 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10981 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10984 if test -n "$DLLTOOL_FOR_TARGET"; then
10985 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10986 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10987 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10990 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10991 for ncn_progname in dlltool; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993 set dummy ${ncn_progname}; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
10998 else
10999 if test -n "$DLLTOOL_FOR_TARGET"; then
11000 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11001 else
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11011 break 2
11013 done
11014 done
11015 IFS=$as_save_IFS
11019 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11020 if test -n "$DLLTOOL_FOR_TARGET"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11022 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11029 done
11032 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11033 for ncn_progname in dlltool; do
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11035 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11036 if test -x $with_build_time_tools/${ncn_progname}; then
11037 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11039 $as_echo "yes" >&6; }
11040 break
11041 else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11045 done
11048 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11049 for ncn_progname in dlltool; do
11050 if test -n "$ncn_target_tool_prefix"; then
11051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11052 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054 $as_echo_n "checking for $ac_word... " >&6; }
11055 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 if test -n "$DLLTOOL_FOR_TARGET"; then
11059 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11060 else
11061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062 for as_dir in $PATH
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11068 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 break 2
11072 done
11073 done
11074 IFS=$as_save_IFS
11078 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11079 if test -n "$DLLTOOL_FOR_TARGET"; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11081 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11082 else
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11089 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11091 set dummy ${ncn_progname}; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 if test -n "$DLLTOOL_FOR_TARGET"; then
11098 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11099 else
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109 break 2
11111 done
11112 done
11113 IFS=$as_save_IFS
11117 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11118 if test -n "$DLLTOOL_FOR_TARGET"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11120 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11128 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11129 done
11132 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11133 set dummy dlltool
11134 if test $build = $target ; then
11135 DLLTOOL_FOR_TARGET="$2"
11136 else
11137 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11139 else
11140 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11143 else
11144 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11150 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11151 if test -n "$with_build_time_tools"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11153 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11154 if test -x $with_build_time_tools/ld; then
11155 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11156 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11158 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11159 else
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11163 elif test $build != $host && test $have_gcc_for_target = yes; then
11164 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11165 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11166 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11169 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11170 # Extract the first word of "ld", so it can be a program name with args.
11171 set dummy ld; ac_word=$2
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173 $as_echo_n "checking for $ac_word... " >&6; }
11174 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 case $LD_FOR_TARGET in
11178 [\\/]* | ?:[\\/]*)
11179 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183 for as_dir in $gcc_cv_tool_dirs
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11189 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 break 2
11193 done
11194 done
11195 IFS=$as_save_IFS
11198 esac
11200 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11201 if test -n "$LD_FOR_TARGET"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11203 $as_echo "$LD_FOR_TARGET" >&6; }
11204 else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206 $as_echo "no" >&6; }
11211 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11214 if test -n "$LD_FOR_TARGET"; then
11215 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11216 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11217 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11220 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11221 for ncn_progname in ld; do
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223 set dummy ${ncn_progname}; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 if test -n "$LD_FOR_TARGET"; then
11230 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 break 2
11243 done
11244 done
11245 IFS=$as_save_IFS
11249 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11250 if test -n "$LD_FOR_TARGET"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11252 $as_echo "$LD_FOR_TARGET" >&6; }
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11259 done
11262 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11263 for ncn_progname in ld; do
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11265 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11266 if test -x $with_build_time_tools/${ncn_progname}; then
11267 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269 $as_echo "yes" >&6; }
11270 break
11271 else
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11275 done
11278 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11279 for ncn_progname in ld; do
11280 if test -n "$ncn_target_tool_prefix"; then
11281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11282 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284 $as_echo_n "checking for $ac_word... " >&6; }
11285 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 if test -n "$LD_FOR_TARGET"; then
11289 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11290 else
11291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292 for as_dir in $PATH
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11298 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 break 2
11302 done
11303 done
11304 IFS=$as_save_IFS
11308 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11309 if test -n "$LD_FOR_TARGET"; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11311 $as_echo "$LD_FOR_TARGET" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11319 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11321 set dummy ${ncn_progname}; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 if test -n "$LD_FOR_TARGET"; then
11328 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11329 else
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11341 done
11342 done
11343 IFS=$as_save_IFS
11347 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11348 if test -n "$LD_FOR_TARGET"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11350 $as_echo "$LD_FOR_TARGET" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11358 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11359 done
11362 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11363 set dummy ld
11364 if test $build = $target ; then
11365 LD_FOR_TARGET="$2"
11366 else
11367 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11369 else
11370 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11373 else
11374 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11380 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11381 if test -n "$with_build_time_tools"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11383 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11384 if test -x $with_build_time_tools/lipo; then
11385 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11386 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11388 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11393 elif test $build != $host && test $have_gcc_for_target = yes; then
11394 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11395 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11396 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11399 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11400 # Extract the first word of "lipo", so it can be a program name with args.
11401 set dummy lipo; ac_word=$2
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403 $as_echo_n "checking for $ac_word... " >&6; }
11404 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 case $LIPO_FOR_TARGET in
11408 [\\/]* | ?:[\\/]*)
11409 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413 for as_dir in $gcc_cv_tool_dirs
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11419 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11421 break 2
11423 done
11424 done
11425 IFS=$as_save_IFS
11428 esac
11430 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11431 if test -n "$LIPO_FOR_TARGET"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11433 $as_echo "$LIPO_FOR_TARGET" >&6; }
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436 $as_echo "no" >&6; }
11441 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11444 if test -n "$LIPO_FOR_TARGET"; then
11445 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11446 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11447 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11450 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11451 for ncn_progname in lipo; do
11452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11453 set dummy ${ncn_progname}; ac_word=$2
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455 $as_echo_n "checking for $ac_word... " >&6; }
11456 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 if test -n "$LIPO_FOR_TARGET"; then
11460 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11461 else
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11469 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 break 2
11473 done
11474 done
11475 IFS=$as_save_IFS
11479 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11480 if test -n "$LIPO_FOR_TARGET"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11482 $as_echo "$LIPO_FOR_TARGET" >&6; }
11483 else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485 $as_echo "no" >&6; }
11489 done
11492 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11493 for ncn_progname in lipo; do
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11495 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11496 if test -x $with_build_time_tools/${ncn_progname}; then
11497 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499 $as_echo "yes" >&6; }
11500 break
11501 else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11505 done
11508 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11509 for ncn_progname in lipo; do
11510 if test -n "$ncn_target_tool_prefix"; then
11511 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11512 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514 $as_echo_n "checking for $ac_word... " >&6; }
11515 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 if test -n "$LIPO_FOR_TARGET"; then
11519 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11520 else
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in $PATH
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11528 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 break 2
11532 done
11533 done
11534 IFS=$as_save_IFS
11538 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11539 if test -n "$LIPO_FOR_TARGET"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11541 $as_echo "$LIPO_FOR_TARGET" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11549 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11551 set dummy ${ncn_progname}; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 if test -n "$LIPO_FOR_TARGET"; then
11558 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11559 else
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11571 done
11572 done
11573 IFS=$as_save_IFS
11577 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11578 if test -n "$LIPO_FOR_TARGET"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11580 $as_echo "$LIPO_FOR_TARGET" >&6; }
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11588 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11589 done
11592 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11593 set dummy lipo
11594 if test $build = $target ; then
11595 LIPO_FOR_TARGET="$2"
11596 else
11597 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11599 else
11600 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11603 else
11604 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11610 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11611 if test -n "$with_build_time_tools"; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11613 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11614 if test -x $with_build_time_tools/nm; then
11615 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11616 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11618 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11623 elif test $build != $host && test $have_gcc_for_target = yes; then
11624 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11625 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11626 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11629 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11630 # Extract the first word of "nm", so it can be a program name with args.
11631 set dummy nm; ac_word=$2
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 $as_echo_n "checking for $ac_word... " >&6; }
11634 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 case $NM_FOR_TARGET in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $gcc_cv_tool_dirs
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11649 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 break 2
11653 done
11654 done
11655 IFS=$as_save_IFS
11658 esac
11660 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11661 if test -n "$NM_FOR_TARGET"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11663 $as_echo "$NM_FOR_TARGET" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11671 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11674 if test -n "$NM_FOR_TARGET"; then
11675 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11676 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11677 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11680 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11681 for ncn_progname in nm; do
11682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11683 set dummy ${ncn_progname}; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 if test -n "$NM_FOR_TARGET"; then
11690 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11691 else
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11703 done
11704 done
11705 IFS=$as_save_IFS
11709 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11710 if test -n "$NM_FOR_TARGET"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11712 $as_echo "$NM_FOR_TARGET" >&6; }
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11719 done
11722 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11723 for ncn_progname in nm; do
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11725 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11726 if test -x $with_build_time_tools/${ncn_progname}; then
11727 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729 $as_echo "yes" >&6; }
11730 break
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11735 done
11738 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11739 for ncn_progname in nm; do
11740 if test -n "$ncn_target_tool_prefix"; then
11741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11742 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 if test -n "$NM_FOR_TARGET"; then
11749 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11750 else
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11762 done
11763 done
11764 IFS=$as_save_IFS
11768 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11769 if test -n "$NM_FOR_TARGET"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11771 $as_echo "$NM_FOR_TARGET" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11779 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11781 set dummy ${ncn_progname}; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 if test -n "$NM_FOR_TARGET"; then
11788 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11789 else
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11801 done
11802 done
11803 IFS=$as_save_IFS
11807 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11808 if test -n "$NM_FOR_TARGET"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11810 $as_echo "$NM_FOR_TARGET" >&6; }
11811 else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11818 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11819 done
11822 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11823 set dummy nm
11824 if test $build = $target ; then
11825 NM_FOR_TARGET="$2"
11826 else
11827 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
11829 else
11830 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
11833 else
11834 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11840 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11841 if test -n "$with_build_time_tools"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11843 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
11844 if test -x $with_build_time_tools/objdump; then
11845 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11846 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11848 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
11849 else
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11853 elif test $build != $host && test $have_gcc_for_target = yes; then
11854 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
11855 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11856 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11859 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11860 # Extract the first word of "objdump", so it can be a program name with args.
11861 set dummy objdump; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
11866 else
11867 case $OBJDUMP_FOR_TARGET in
11868 [\\/]* | ?:[\\/]*)
11869 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $gcc_cv_tool_dirs
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11883 done
11884 done
11885 IFS=$as_save_IFS
11888 esac
11890 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
11891 if test -n "$OBJDUMP_FOR_TARGET"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11893 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11901 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11904 if test -n "$OBJDUMP_FOR_TARGET"; then
11905 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11906 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11907 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11910 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11911 for ncn_progname in objdump; do
11912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11913 set dummy ${ncn_progname}; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
11918 else
11919 if test -n "$OBJDUMP_FOR_TARGET"; then
11920 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11921 else
11922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923 for as_dir in $PATH
11925 IFS=$as_save_IFS
11926 test -z "$as_dir" && as_dir=.
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11929 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931 break 2
11933 done
11934 done
11935 IFS=$as_save_IFS
11939 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11940 if test -n "$OBJDUMP_FOR_TARGET"; then
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11942 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11949 done
11952 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
11953 for ncn_progname in objdump; do
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11955 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11956 if test -x $with_build_time_tools/${ncn_progname}; then
11957 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959 $as_echo "yes" >&6; }
11960 break
11961 else
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11965 done
11968 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11969 for ncn_progname in objdump; do
11970 if test -n "$ncn_target_tool_prefix"; then
11971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11972 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
11977 else
11978 if test -n "$OBJDUMP_FOR_TARGET"; then
11979 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11980 else
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11988 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11990 break 2
11992 done
11993 done
11994 IFS=$as_save_IFS
11998 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11999 if test -n "$OBJDUMP_FOR_TARGET"; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12001 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12002 else
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12009 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 if test -n "$OBJDUMP_FOR_TARGET"; then
12018 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12019 else
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 break 2
12031 done
12032 done
12033 IFS=$as_save_IFS
12037 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12038 if test -n "$OBJDUMP_FOR_TARGET"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12040 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12048 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12049 done
12052 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12053 set dummy objdump
12054 if test $build = $target ; then
12055 OBJDUMP_FOR_TARGET="$2"
12056 else
12057 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12059 else
12060 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12063 else
12064 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12070 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12071 if test -n "$with_build_time_tools"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12073 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12074 if test -x $with_build_time_tools/ranlib; then
12075 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12076 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12078 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12083 elif test $build != $host && test $have_gcc_for_target = yes; then
12084 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12085 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12086 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12089 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12090 # Extract the first word of "ranlib", so it can be a program name with args.
12091 set dummy ranlib; ac_word=$2
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093 $as_echo_n "checking for $ac_word... " >&6; }
12094 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 case $RANLIB_FOR_TARGET in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $gcc_cv_tool_dirs
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12109 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12113 done
12114 done
12115 IFS=$as_save_IFS
12118 esac
12120 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12121 if test -n "$RANLIB_FOR_TARGET"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12123 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12124 else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126 $as_echo "no" >&6; }
12131 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12134 if test -n "$RANLIB_FOR_TARGET"; then
12135 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12136 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12137 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12140 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12141 for ncn_progname in ranlib; do
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143 set dummy ${ncn_progname}; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 if test -n "$RANLIB_FOR_TARGET"; then
12150 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12151 else
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12163 done
12164 done
12165 IFS=$as_save_IFS
12169 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12170 if test -n "$RANLIB_FOR_TARGET"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12172 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12173 else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12179 done
12182 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12183 for ncn_progname in ranlib; do
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12185 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12186 if test -x $with_build_time_tools/${ncn_progname}; then
12187 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189 $as_echo "yes" >&6; }
12190 break
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12195 done
12198 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12199 for ncn_progname in ranlib; do
12200 if test -n "$ncn_target_tool_prefix"; then
12201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12202 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 if test -n "$RANLIB_FOR_TARGET"; then
12209 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12222 done
12223 done
12224 IFS=$as_save_IFS
12228 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12229 if test -n "$RANLIB_FOR_TARGET"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12231 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12239 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12241 set dummy ${ncn_progname}; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 if test -n "$RANLIB_FOR_TARGET"; then
12248 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12249 else
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12261 done
12262 done
12263 IFS=$as_save_IFS
12267 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12268 if test -n "$RANLIB_FOR_TARGET"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12270 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12271 else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12278 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12279 done
12282 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12283 set dummy ranlib
12284 if test $build = $target ; then
12285 RANLIB_FOR_TARGET="$2"
12286 else
12287 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12289 else
12290 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12293 else
12294 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12300 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12301 if test -n "$with_build_time_tools"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12303 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12304 if test -x $with_build_time_tools/strip; then
12305 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12306 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12308 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12309 else
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12313 elif test $build != $host && test $have_gcc_for_target = yes; then
12314 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12315 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12316 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12319 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12320 # Extract the first word of "strip", so it can be a program name with args.
12321 set dummy strip; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323 $as_echo_n "checking for $ac_word... " >&6; }
12324 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 case $STRIP_FOR_TARGET in
12328 [\\/]* | ?:[\\/]*)
12329 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $gcc_cv_tool_dirs
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12339 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 break 2
12343 done
12344 done
12345 IFS=$as_save_IFS
12348 esac
12350 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12351 if test -n "$STRIP_FOR_TARGET"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12353 $as_echo "$STRIP_FOR_TARGET" >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12361 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12364 if test -n "$STRIP_FOR_TARGET"; then
12365 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12366 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12367 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12370 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12371 for ncn_progname in strip; do
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373 set dummy ${ncn_progname}; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 if test -n "$STRIP_FOR_TARGET"; then
12380 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12381 else
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12389 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 break 2
12393 done
12394 done
12395 IFS=$as_save_IFS
12399 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12400 if test -n "$STRIP_FOR_TARGET"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12402 $as_echo "$STRIP_FOR_TARGET" >&6; }
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12409 done
12412 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12413 for ncn_progname in strip; do
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12415 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12416 if test -x $with_build_time_tools/${ncn_progname}; then
12417 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419 $as_echo "yes" >&6; }
12420 break
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12425 done
12428 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12429 for ncn_progname in strip; do
12430 if test -n "$ncn_target_tool_prefix"; then
12431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -n "$STRIP_FOR_TARGET"; then
12439 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12440 else
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12448 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450 break 2
12452 done
12453 done
12454 IFS=$as_save_IFS
12458 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12459 if test -n "$STRIP_FOR_TARGET"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12461 $as_echo "$STRIP_FOR_TARGET" >&6; }
12462 else
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464 $as_echo "no" >&6; }
12469 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12471 set dummy ${ncn_progname}; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 if test -n "$STRIP_FOR_TARGET"; then
12478 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12491 done
12492 done
12493 IFS=$as_save_IFS
12497 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12498 if test -n "$STRIP_FOR_TARGET"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12500 $as_echo "$STRIP_FOR_TARGET" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12508 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12509 done
12512 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12513 set dummy strip
12514 if test $build = $target ; then
12515 STRIP_FOR_TARGET="$2"
12516 else
12517 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12519 else
12520 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12523 else
12524 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12530 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12531 if test -n "$with_build_time_tools"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12533 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12534 if test -x $with_build_time_tools/windres; then
12535 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12536 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12538 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12543 elif test $build != $host && test $have_gcc_for_target = yes; then
12544 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12545 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12546 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12549 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12550 # Extract the first word of "windres", so it can be a program name with args.
12551 set dummy windres; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 case $WINDRES_FOR_TARGET in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $gcc_cv_tool_dirs
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12573 done
12574 done
12575 IFS=$as_save_IFS
12578 esac
12580 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12581 if test -n "$WINDRES_FOR_TARGET"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12583 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12584 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12591 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12594 if test -n "$WINDRES_FOR_TARGET"; then
12595 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12596 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12597 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12600 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12601 for ncn_progname in windres; do
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603 set dummy ${ncn_progname}; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605 $as_echo_n "checking for $ac_word... " >&6; }
12606 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 if test -n "$WINDRES_FOR_TARGET"; then
12610 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12611 else
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12619 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 break 2
12623 done
12624 done
12625 IFS=$as_save_IFS
12629 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12630 if test -n "$WINDRES_FOR_TARGET"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12632 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12633 else
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635 $as_echo "no" >&6; }
12639 done
12642 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12643 for ncn_progname in windres; do
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12645 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12646 if test -x $with_build_time_tools/${ncn_progname}; then
12647 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12650 break
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12655 done
12658 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12659 for ncn_progname in windres; do
12660 if test -n "$ncn_target_tool_prefix"; then
12661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12662 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 if test -n "$WINDRES_FOR_TARGET"; then
12669 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12670 else
12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in $PATH
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12678 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 break 2
12682 done
12683 done
12684 IFS=$as_save_IFS
12688 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12689 if test -n "$WINDRES_FOR_TARGET"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12691 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12692 else
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12699 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12701 set dummy ${ncn_progname}; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 if test -n "$WINDRES_FOR_TARGET"; then
12708 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12709 else
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 break 2
12721 done
12722 done
12723 IFS=$as_save_IFS
12727 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12728 if test -n "$WINDRES_FOR_TARGET"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12730 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12738 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12739 done
12742 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12743 set dummy windres
12744 if test $build = $target ; then
12745 WINDRES_FOR_TARGET="$2"
12746 else
12747 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12749 else
12750 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12753 else
12754 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12760 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12761 if test -n "$with_build_time_tools"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12763 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12764 if test -x $with_build_time_tools/windmc; then
12765 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12766 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12768 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12773 elif test $build != $host && test $have_gcc_for_target = yes; then
12774 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12775 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12776 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12779 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12780 # Extract the first word of "windmc", so it can be a program name with args.
12781 set dummy windmc; ac_word=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 case $WINDMC_FOR_TARGET in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $gcc_cv_tool_dirs
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12799 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12803 done
12804 done
12805 IFS=$as_save_IFS
12808 esac
12810 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12811 if test -n "$WINDMC_FOR_TARGET"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12813 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12814 else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12821 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12824 if test -n "$WINDMC_FOR_TARGET"; then
12825 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12826 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12827 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12830 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12831 for ncn_progname in windmc; do
12832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12833 set dummy ${ncn_progname}; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 if test -n "$WINDMC_FOR_TARGET"; then
12840 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12841 else
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12853 done
12854 done
12855 IFS=$as_save_IFS
12859 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12860 if test -n "$WINDMC_FOR_TARGET"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12862 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12863 else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12869 done
12872 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12873 for ncn_progname in windmc; do
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12875 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12876 if test -x $with_build_time_tools/${ncn_progname}; then
12877 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879 $as_echo "yes" >&6; }
12880 break
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12885 done
12888 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12889 for ncn_progname in windmc; do
12890 if test -n "$ncn_target_tool_prefix"; then
12891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12892 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894 $as_echo_n "checking for $ac_word... " >&6; }
12895 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 if test -n "$WINDMC_FOR_TARGET"; then
12899 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12900 else
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12912 done
12913 done
12914 IFS=$as_save_IFS
12918 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12919 if test -n "$WINDMC_FOR_TARGET"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12921 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12922 else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12929 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12931 set dummy ${ncn_progname}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 if test -n "$WINDMC_FOR_TARGET"; then
12938 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12939 else
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12951 done
12952 done
12953 IFS=$as_save_IFS
12957 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12958 if test -n "$WINDMC_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12960 $as_echo "$WINDMC_FOR_TARGET" >&6; }
12961 else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12968 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12969 done
12972 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12973 set dummy windmc
12974 if test $build = $target ; then
12975 WINDMC_FOR_TARGET="$2"
12976 else
12977 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12979 else
12980 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12983 else
12984 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12988 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12991 $as_echo_n "checking where to find the target ar... " >&6; }
12992 if test "x${build}" != "x${host}" ; then
12993 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12994 # We already found the complete path
12995 ac_dir=`dirname $AR_FOR_TARGET`
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12997 $as_echo "pre-installed in $ac_dir" >&6; }
12998 else
12999 # Canadian cross, just use what we found
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13001 $as_echo "pre-installed" >&6; }
13003 else
13004 ok=yes
13005 case " ${configdirs} " in
13006 *" binutils "*) ;;
13007 *) ok=no ;;
13008 esac
13010 if test $ok = yes; then
13011 # An in-tree tool is available and we can use it
13012 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13014 $as_echo "just compiled" >&6; }
13015 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13016 # We already found the complete path
13017 ac_dir=`dirname $AR_FOR_TARGET`
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13019 $as_echo "pre-installed in $ac_dir" >&6; }
13020 elif test "x$target" = "x$host"; then
13021 # We can use an host tool
13022 AR_FOR_TARGET='$(AR)'
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13024 $as_echo "host tool" >&6; }
13025 else
13026 # We need a cross tool
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13028 $as_echo "pre-installed" >&6; }
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13033 $as_echo_n "checking where to find the target as... " >&6; }
13034 if test "x${build}" != "x${host}" ; then
13035 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13036 # We already found the complete path
13037 ac_dir=`dirname $AS_FOR_TARGET`
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13039 $as_echo "pre-installed in $ac_dir" >&6; }
13040 else
13041 # Canadian cross, just use what we found
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13043 $as_echo "pre-installed" >&6; }
13045 else
13046 ok=yes
13047 case " ${configdirs} " in
13048 *" gas "*) ;;
13049 *) ok=no ;;
13050 esac
13052 if test $ok = yes; then
13053 # An in-tree tool is available and we can use it
13054 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13056 $as_echo "just compiled" >&6; }
13057 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13058 # We already found the complete path
13059 ac_dir=`dirname $AS_FOR_TARGET`
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13061 $as_echo "pre-installed in $ac_dir" >&6; }
13062 elif test "x$target" = "x$host"; then
13063 # We can use an host tool
13064 AS_FOR_TARGET='$(AS)'
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13066 $as_echo "host tool" >&6; }
13067 else
13068 # We need a cross tool
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13070 $as_echo "pre-installed" >&6; }
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13075 $as_echo_n "checking where to find the target cc... " >&6; }
13076 if test "x${build}" != "x${host}" ; then
13077 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13078 # We already found the complete path
13079 ac_dir=`dirname $CC_FOR_TARGET`
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13081 $as_echo "pre-installed in $ac_dir" >&6; }
13082 else
13083 # Canadian cross, just use what we found
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13085 $as_echo "pre-installed" >&6; }
13087 else
13088 ok=yes
13089 case " ${configdirs} " in
13090 *" gcc "*) ;;
13091 *) ok=no ;;
13092 esac
13094 if test $ok = yes; then
13095 # An in-tree tool is available and we can use it
13096 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13098 $as_echo "just compiled" >&6; }
13099 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13100 # We already found the complete path
13101 ac_dir=`dirname $CC_FOR_TARGET`
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13103 $as_echo "pre-installed in $ac_dir" >&6; }
13104 elif test "x$target" = "x$host"; then
13105 # We can use an host tool
13106 CC_FOR_TARGET='$(CC)'
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13108 $as_echo "host tool" >&6; }
13109 else
13110 # We need a cross tool
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13112 $as_echo "pre-installed" >&6; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13117 $as_echo_n "checking where to find the target c++... " >&6; }
13118 if test "x${build}" != "x${host}" ; then
13119 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13120 # We already found the complete path
13121 ac_dir=`dirname $CXX_FOR_TARGET`
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13123 $as_echo "pre-installed in $ac_dir" >&6; }
13124 else
13125 # Canadian cross, just use what we found
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13127 $as_echo "pre-installed" >&6; }
13129 else
13130 ok=yes
13131 case " ${configdirs} " in
13132 *" gcc "*) ;;
13133 *) ok=no ;;
13134 esac
13135 case ,${enable_languages}, in
13136 *,c++,*) ;;
13137 *) ok=no ;;
13138 esac
13139 if test $ok = yes; then
13140 # An in-tree tool is available and we can use it
13141 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13143 $as_echo "just compiled" >&6; }
13144 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13145 # We already found the complete path
13146 ac_dir=`dirname $CXX_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 CXX_FOR_TARGET='$(CXX)'
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 c++ for libstdc++" >&5
13162 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13163 if test "x${build}" != "x${host}" ; then
13164 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13165 # We already found the complete path
13166 ac_dir=`dirname $RAW_CXX_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 *" gcc "*) ;;
13178 *) ok=no ;;
13179 esac
13180 case ,${enable_languages}, in
13181 *,c++,*) ;;
13182 *) ok=no ;;
13183 esac
13184 if test $ok = yes; then
13185 # An in-tree tool is available and we can use it
13186 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'
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13188 $as_echo "just compiled" >&6; }
13189 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13190 # We already found the complete path
13191 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13193 $as_echo "pre-installed in $ac_dir" >&6; }
13194 elif test "x$target" = "x$host"; then
13195 # We can use an host tool
13196 RAW_CXX_FOR_TARGET='$(CXX)'
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13198 $as_echo "host tool" >&6; }
13199 else
13200 # We need a cross tool
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13202 $as_echo "pre-installed" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13207 $as_echo_n "checking where to find the target dlltool... " >&6; }
13208 if test "x${build}" != "x${host}" ; then
13209 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13210 # We already found the complete path
13211 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13213 $as_echo "pre-installed in $ac_dir" >&6; }
13214 else
13215 # Canadian cross, just use what we found
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13217 $as_echo "pre-installed" >&6; }
13219 else
13220 ok=yes
13221 case " ${configdirs} " in
13222 *" binutils "*) ;;
13223 *) ok=no ;;
13224 esac
13226 if test $ok = yes; then
13227 # An in-tree tool is available and we can use it
13228 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13230 $as_echo "just compiled" >&6; }
13231 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13232 # We already found the complete path
13233 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13235 $as_echo "pre-installed in $ac_dir" >&6; }
13236 elif test "x$target" = "x$host"; then
13237 # We can use an host tool
13238 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13240 $as_echo "host tool" >&6; }
13241 else
13242 # We need a cross tool
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13244 $as_echo "pre-installed" >&6; }
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13249 $as_echo_n "checking where to find the target gcc... " >&6; }
13250 if test "x${build}" != "x${host}" ; then
13251 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13252 # We already found the complete path
13253 ac_dir=`dirname $GCC_FOR_TARGET`
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13255 $as_echo "pre-installed in $ac_dir" >&6; }
13256 else
13257 # Canadian cross, just use what we found
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13259 $as_echo "pre-installed" >&6; }
13261 else
13262 ok=yes
13263 case " ${configdirs} " in
13264 *" gcc "*) ;;
13265 *) ok=no ;;
13266 esac
13268 if test $ok = yes; then
13269 # An in-tree tool is available and we can use it
13270 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13272 $as_echo "just compiled" >&6; }
13273 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13274 # We already found the complete path
13275 ac_dir=`dirname $GCC_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 GCC_FOR_TARGET='$()'
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 gcj" >&5
13291 $as_echo_n "checking where to find the target gcj... " >&6; }
13292 if test "x${build}" != "x${host}" ; then
13293 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13294 # We already found the complete path
13295 ac_dir=`dirname $GCJ_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 *,java,*) ;;
13311 *) ok=no ;;
13312 esac
13313 if test $ok = yes; then
13314 # An in-tree tool is available and we can use it
13315 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13317 $as_echo "just compiled" >&6; }
13318 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13319 # We already found the complete path
13320 ac_dir=`dirname $GCJ_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 GCJ_FOR_TARGET='$(GCJ)'
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 gfortran" >&5
13336 $as_echo_n "checking where to find the target gfortran... " >&6; }
13337 if test "x${build}" != "x${host}" ; then
13338 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13339 # We already found the complete path
13340 ac_dir=`dirname $GFORTRAN_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 *" gcc "*) ;;
13352 *) ok=no ;;
13353 esac
13354 case ,${enable_languages}, in
13355 *,fortran,*) ;;
13356 *) ok=no ;;
13357 esac
13358 if test $ok = yes; then
13359 # An in-tree tool is available and we can use it
13360 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13362 $as_echo "just compiled" >&6; }
13363 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13364 # We already found the complete path
13365 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13367 $as_echo "pre-installed in $ac_dir" >&6; }
13368 elif test "x$target" = "x$host"; then
13369 # We can use an host tool
13370 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13372 $as_echo "host tool" >&6; }
13373 else
13374 # We need a cross tool
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13376 $as_echo "pre-installed" >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13381 $as_echo_n "checking where to find the target ld... " >&6; }
13382 if test "x${build}" != "x${host}" ; then
13383 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13384 # We already found the complete path
13385 ac_dir=`dirname $LD_FOR_TARGET`
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13387 $as_echo "pre-installed in $ac_dir" >&6; }
13388 else
13389 # Canadian cross, just use what we found
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13391 $as_echo "pre-installed" >&6; }
13393 else
13394 ok=yes
13395 case " ${configdirs} " in
13396 *" ld "*) ;;
13397 *) ok=no ;;
13398 esac
13400 if test $ok = yes; then
13401 # An in-tree tool is available and we can use it
13402 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13404 $as_echo "just compiled" >&6; }
13405 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13406 # We already found the complete path
13407 ac_dir=`dirname $LD_FOR_TARGET`
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13409 $as_echo "pre-installed in $ac_dir" >&6; }
13410 elif test "x$target" = "x$host"; then
13411 # We can use an host tool
13412 LD_FOR_TARGET='$(LD)'
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13414 $as_echo "host tool" >&6; }
13415 else
13416 # We need a cross tool
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13418 $as_echo "pre-installed" >&6; }
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13423 $as_echo_n "checking where to find the target lipo... " >&6; }
13424 if test "x${build}" != "x${host}" ; then
13425 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13426 # We already found the complete path
13427 ac_dir=`dirname $LIPO_FOR_TARGET`
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13429 $as_echo "pre-installed in $ac_dir" >&6; }
13430 else
13431 # Canadian cross, just use what we found
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13433 $as_echo "pre-installed" >&6; }
13435 else
13436 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13437 # We already found the complete path
13438 ac_dir=`dirname $LIPO_FOR_TARGET`
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13440 $as_echo "pre-installed in $ac_dir" >&6; }
13441 elif test "x$target" = "x$host"; then
13442 # We can use an host tool
13443 LIPO_FOR_TARGET='$(LIPO)'
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13445 $as_echo "host tool" >&6; }
13446 else
13447 # We need a cross tool
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13449 $as_echo "pre-installed" >&6; }
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13454 $as_echo_n "checking where to find the target nm... " >&6; }
13455 if test "x${build}" != "x${host}" ; then
13456 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13457 # We already found the complete path
13458 ac_dir=`dirname $NM_FOR_TARGET`
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13460 $as_echo "pre-installed in $ac_dir" >&6; }
13461 else
13462 # Canadian cross, just use what we found
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13464 $as_echo "pre-installed" >&6; }
13466 else
13467 ok=yes
13468 case " ${configdirs} " in
13469 *" binutils "*) ;;
13470 *) ok=no ;;
13471 esac
13473 if test $ok = yes; then
13474 # An in-tree tool is available and we can use it
13475 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13477 $as_echo "just compiled" >&6; }
13478 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13479 # We already found the complete path
13480 ac_dir=`dirname $NM_FOR_TARGET`
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13482 $as_echo "pre-installed in $ac_dir" >&6; }
13483 elif test "x$target" = "x$host"; then
13484 # We can use an host tool
13485 NM_FOR_TARGET='$(NM)'
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13487 $as_echo "host tool" >&6; }
13488 else
13489 # We need a cross tool
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13491 $as_echo "pre-installed" >&6; }
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13496 $as_echo_n "checking where to find the target objdump... " >&6; }
13497 if test "x${build}" != "x${host}" ; then
13498 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
13500 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502 $as_echo "pre-installed in $ac_dir" >&6; }
13503 else
13504 # Canadian cross, just use what we found
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13506 $as_echo "pre-installed" >&6; }
13508 else
13509 ok=yes
13510 case " ${configdirs} " in
13511 *" binutils "*) ;;
13512 *) ok=no ;;
13513 esac
13515 if test $ok = yes; then
13516 # An in-tree tool is available and we can use it
13517 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13519 $as_echo "just compiled" >&6; }
13520 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13521 # We already found the complete path
13522 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13524 $as_echo "pre-installed in $ac_dir" >&6; }
13525 elif test "x$target" = "x$host"; then
13526 # We can use an host tool
13527 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13529 $as_echo "host tool" >&6; }
13530 else
13531 # We need a cross tool
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13533 $as_echo "pre-installed" >&6; }
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13538 $as_echo_n "checking where to find the target ranlib... " >&6; }
13539 if test "x${build}" != "x${host}" ; then
13540 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13541 # We already found the complete path
13542 ac_dir=`dirname $RANLIB_FOR_TARGET`
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13544 $as_echo "pre-installed in $ac_dir" >&6; }
13545 else
13546 # Canadian cross, just use what we found
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13548 $as_echo "pre-installed" >&6; }
13550 else
13551 ok=yes
13552 case " ${configdirs} " in
13553 *" binutils "*) ;;
13554 *) ok=no ;;
13555 esac
13557 if test $ok = yes; then
13558 # An in-tree tool is available and we can use it
13559 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13561 $as_echo "just compiled" >&6; }
13562 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13563 # We already found the complete path
13564 ac_dir=`dirname $RANLIB_FOR_TARGET`
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13566 $as_echo "pre-installed in $ac_dir" >&6; }
13567 elif test "x$target" = "x$host"; then
13568 # We can use an host tool
13569 RANLIB_FOR_TARGET='$(RANLIB)'
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13571 $as_echo "host tool" >&6; }
13572 else
13573 # We need a cross tool
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13575 $as_echo "pre-installed" >&6; }
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13580 $as_echo_n "checking where to find the target strip... " >&6; }
13581 if test "x${build}" != "x${host}" ; then
13582 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13583 # We already found the complete path
13584 ac_dir=`dirname $STRIP_FOR_TARGET`
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13586 $as_echo "pre-installed in $ac_dir" >&6; }
13587 else
13588 # Canadian cross, just use what we found
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590 $as_echo "pre-installed" >&6; }
13592 else
13593 ok=yes
13594 case " ${configdirs} " in
13595 *" binutils "*) ;;
13596 *) ok=no ;;
13597 esac
13599 if test $ok = yes; then
13600 # An in-tree tool is available and we can use it
13601 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13603 $as_echo "just compiled" >&6; }
13604 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13605 # We already found the complete path
13606 ac_dir=`dirname $STRIP_FOR_TARGET`
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13608 $as_echo "pre-installed in $ac_dir" >&6; }
13609 elif test "x$target" = "x$host"; then
13610 # We can use an host tool
13611 STRIP_FOR_TARGET='$(STRIP)'
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13613 $as_echo "host tool" >&6; }
13614 else
13615 # We need a cross tool
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13617 $as_echo "pre-installed" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13622 $as_echo_n "checking where to find the target windres... " >&6; }
13623 if test "x${build}" != "x${host}" ; then
13624 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13625 # We already found the complete path
13626 ac_dir=`dirname $WINDRES_FOR_TARGET`
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13628 $as_echo "pre-installed in $ac_dir" >&6; }
13629 else
13630 # Canadian cross, just use what we found
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13632 $as_echo "pre-installed" >&6; }
13634 else
13635 ok=yes
13636 case " ${configdirs} " in
13637 *" binutils "*) ;;
13638 *) ok=no ;;
13639 esac
13641 if test $ok = yes; then
13642 # An in-tree tool is available and we can use it
13643 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13645 $as_echo "just compiled" >&6; }
13646 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13647 # We already found the complete path
13648 ac_dir=`dirname $WINDRES_FOR_TARGET`
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13650 $as_echo "pre-installed in $ac_dir" >&6; }
13651 elif test "x$target" = "x$host"; then
13652 # We can use an host tool
13653 WINDRES_FOR_TARGET='$(WINDRES)'
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13655 $as_echo "host tool" >&6; }
13656 else
13657 # We need a cross tool
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659 $as_echo "pre-installed" >&6; }
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13664 $as_echo_n "checking where to find the target windmc... " >&6; }
13665 if test "x${build}" != "x${host}" ; then
13666 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13667 # We already found the complete path
13668 ac_dir=`dirname $WINDMC_FOR_TARGET`
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670 $as_echo "pre-installed in $ac_dir" >&6; }
13671 else
13672 # Canadian cross, just use what we found
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674 $as_echo "pre-installed" >&6; }
13676 else
13677 ok=yes
13678 case " ${configdirs} " in
13679 *" binutils "*) ;;
13680 *) ok=no ;;
13681 esac
13683 if test $ok = yes; then
13684 # An in-tree tool is available and we can use it
13685 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13687 $as_echo "just compiled" >&6; }
13688 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13689 # We already found the complete path
13690 ac_dir=`dirname $WINDMC_FOR_TARGET`
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13692 $as_echo "pre-installed in $ac_dir" >&6; }
13693 elif test "x$target" = "x$host"; then
13694 # We can use an host tool
13695 WINDMC_FOR_TARGET='$(WINDMC)'
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13697 $as_echo "host tool" >&6; }
13698 else
13699 # We need a cross tool
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701 $as_echo "pre-installed" >&6; }
13709 # Certain tools may need extra flags.
13710 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13711 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13712 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13714 # When building target libraries, except in a Canadian cross, we use
13715 # the same toolchain as the compiler we just built.
13716 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13717 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13718 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13719 if test $host = $build; then
13720 case " $configdirs " in
13721 *" gcc "*)
13722 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13723 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13724 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13726 esac
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13734 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13735 # Check whether --enable-maintainer-mode was given.
13736 if test "${enable_maintainer_mode+set}" = set; then :
13737 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13738 else
13739 USE_MAINTAINER_MODE=no
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13743 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13746 if test "$USE_MAINTAINER_MODE" = yes; then
13747 MAINTAINER_MODE_TRUE=
13748 MAINTAINER_MODE_FALSE='#'
13749 else
13750 MAINTAINER_MODE_TRUE='#'
13751 MAINTAINER_MODE_FALSE=
13753 MAINT=$MAINTAINER_MODE_TRUE
13755 # ---------------------
13756 # GCC bootstrap support
13757 # ---------------------
13759 # Stage specific cflags for build.
13760 stage1_cflags="-g"
13761 case $build in
13762 vax-*-*)
13763 case ${GCC} in
13764 yes) stage1_cflags="-g -Wa,-J" ;;
13765 *) stage1_cflags="-g -J" ;;
13766 esac ;;
13767 esac
13769 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
13770 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
13771 saved_CFLAGS="$CFLAGS"
13773 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13774 CFLAGS="$CFLAGS -fkeep-inline-functions"
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13776 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13780 #if (__GNUC__ < 3) \
13781 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13782 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13783 #error http://gcc.gnu.org/PR29382
13784 #endif
13787 main ()
13791 return 0;
13793 _ACEOF
13794 if ac_fn_c_try_compile "$LINENO"; then :
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
13797 else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13799 $as_echo "no" >&6; }
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13803 CFLAGS="$saved_CFLAGS"
13808 # Enable --enable-checking in stage1 of the compiler.
13809 # Check whether --enable-stage1-checking was given.
13810 if test "${enable_stage1_checking+set}" = set; then :
13811 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
13812 else
13813 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
13814 stage1_checking=--enable-checking=yes,types
13815 else
13816 stage1_checking=--enable-checking=$enable_checking,types
13822 # Enable -Werror in bootstrap stage2 and later.
13823 # Check whether --enable-werror was given.
13824 if test "${enable_werror+set}" = set; then :
13825 enableval=$enable_werror;
13826 else
13827 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
13828 enable_werror=yes
13829 else
13830 enable_werror=no
13834 case ${enable_werror} in
13835 yes) stage2_werror_flag="--enable-werror-always" ;;
13836 *) stage2_werror_flag="" ;;
13837 esac
13840 # Specify what files to not compare during bootstrap.
13842 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13843 case "$target" in
13844 hppa*64*-*-hpux*) ;;
13845 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13846 esac
13847 case " $configdirs " in
13848 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13849 esac
13852 ac_config_files="$ac_config_files Makefile"
13854 cat >confcache <<\_ACEOF
13855 # This file is a shell script that caches the results of configure
13856 # tests run on this system so they can be shared between configure
13857 # scripts and configure runs, see configure's option --config-cache.
13858 # It is not useful on other systems. If it contains results you don't
13859 # want to keep, you may remove or edit it.
13861 # config.status only pays attention to the cache file if you give it
13862 # the --recheck option to rerun configure.
13864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13866 # following values.
13868 _ACEOF
13870 # The following way of writing the cache mishandles newlines in values,
13871 # but we know of no workaround that is simple, portable, and efficient.
13872 # So, we kill variables containing newlines.
13873 # Ultrix sh set writes to stderr and can't be redirected directly,
13874 # and sets the high bit in the cache file unless we assign to the vars.
13876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13877 eval ac_val=\$$ac_var
13878 case $ac_val in #(
13879 *${as_nl}*)
13880 case $ac_var in #(
13881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13883 esac
13884 case $ac_var in #(
13885 _ | IFS | as_nl) ;; #(
13886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13887 *) { eval $ac_var=; unset $ac_var;} ;;
13888 esac ;;
13889 esac
13890 done
13892 (set) 2>&1 |
13893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13894 *${as_nl}ac_space=\ *)
13895 # `set' does not quote correctly, so add quotes: double-quote
13896 # substitution turns \\\\ into \\, and sed turns \\ into \.
13897 sed -n \
13898 "s/'/'\\\\''/g;
13899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13900 ;; #(
13902 # `set' quotes correctly as required by POSIX, so do not add quotes.
13903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13905 esac |
13906 sort
13908 sed '
13909 /^ac_cv_env_/b end
13910 t clear
13911 :clear
13912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13913 t end
13914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13915 :end' >>confcache
13916 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13917 if test -w "$cache_file"; then
13918 test "x$cache_file" != "x/dev/null" &&
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13920 $as_echo "$as_me: updating cache $cache_file" >&6;}
13921 cat confcache >$cache_file
13922 else
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13927 rm -f confcache
13929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13930 # Let make expand exec_prefix.
13931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13933 # Transform confdefs.h into DEFS.
13934 # Protect against shell expansion while executing Makefile rules.
13935 # Protect against Makefile macro expansion.
13937 # If the first sed substitution is executed (which looks for macros that
13938 # take arguments), then branch to the quote section. Otherwise,
13939 # look for a macro that doesn't take arguments.
13940 ac_script='
13941 :mline
13942 /\\$/{
13944 s,\\\n,,
13945 b mline
13947 t clear
13948 :clear
13949 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13950 t quote
13951 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13952 t quote
13953 b any
13954 :quote
13955 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13956 s/\[/\\&/g
13957 s/\]/\\&/g
13958 s/\$/$$/g
13960 :any
13963 s/^\n//
13964 s/\n/ /g
13968 DEFS=`sed -n "$ac_script" confdefs.h`
13971 ac_libobjs=
13972 ac_ltlibobjs=
13973 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13974 # 1. Remove the extension, and $U if already installed.
13975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13976 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13978 # will be set to the directory where LIBOBJS objects are built.
13979 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13980 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13981 done
13982 LIBOBJS=$ac_libobjs
13984 LTLIBOBJS=$ac_ltlibobjs
13988 : ${CONFIG_STATUS=./config.status}
13989 ac_write_fail=0
13990 ac_clean_files_save=$ac_clean_files
13991 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13993 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13994 as_write_fail=0
13995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13996 #! $SHELL
13997 # Generated by $as_me.
13998 # Run this file to recreate the current configuration.
13999 # Compiler output produced by configure, useful for debugging
14000 # configure, is in config.log if it exists.
14002 debug=false
14003 ac_cs_recheck=false
14004 ac_cs_silent=false
14006 SHELL=\${CONFIG_SHELL-$SHELL}
14007 export SHELL
14008 _ASEOF
14009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14010 ## -------------------- ##
14011 ## M4sh Initialization. ##
14012 ## -------------------- ##
14014 # Be more Bourne compatible
14015 DUALCASE=1; export DUALCASE # for MKS sh
14016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14017 emulate sh
14018 NULLCMD=:
14019 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14020 # is contrary to our usage. Disable this feature.
14021 alias -g '${1+"$@"}'='"$@"'
14022 setopt NO_GLOB_SUBST
14023 else
14024 case `(set -o) 2>/dev/null` in #(
14025 *posix*) :
14026 set -o posix ;; #(
14027 *) :
14029 esac
14033 as_nl='
14035 export as_nl
14036 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14037 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14040 # Prefer a ksh shell builtin over an external printf program on Solaris,
14041 # but without wasting forks for bash or zsh.
14042 if test -z "$BASH_VERSION$ZSH_VERSION" \
14043 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14044 as_echo='print -r --'
14045 as_echo_n='print -rn --'
14046 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14047 as_echo='printf %s\n'
14048 as_echo_n='printf %s'
14049 else
14050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14051 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14052 as_echo_n='/usr/ucb/echo -n'
14053 else
14054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14055 as_echo_n_body='eval
14056 arg=$1;
14057 case $arg in #(
14058 *"$as_nl"*)
14059 expr "X$arg" : "X\\(.*\\)$as_nl";
14060 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14061 esac;
14062 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14064 export as_echo_n_body
14065 as_echo_n='sh -c $as_echo_n_body as_echo'
14067 export as_echo_body
14068 as_echo='sh -c $as_echo_body as_echo'
14071 # The user is always right.
14072 if test "${PATH_SEPARATOR+set}" != set; then
14073 PATH_SEPARATOR=:
14074 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14075 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14076 PATH_SEPARATOR=';'
14081 # IFS
14082 # We need space, tab and new line, in precisely that order. Quoting is
14083 # there to prevent editors from complaining about space-tab.
14084 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14085 # splitting by setting IFS to empty value.)
14086 IFS=" "" $as_nl"
14088 # Find who we are. Look in the path if we contain no directory separator.
14089 case $0 in #((
14090 *[\\/]* ) as_myself=$0 ;;
14091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092 for as_dir in $PATH
14094 IFS=$as_save_IFS
14095 test -z "$as_dir" && as_dir=.
14096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14097 done
14098 IFS=$as_save_IFS
14101 esac
14102 # We did not find ourselves, most probably we were run as `sh COMMAND'
14103 # in which case we are not to be found in the path.
14104 if test "x$as_myself" = x; then
14105 as_myself=$0
14107 if test ! -f "$as_myself"; then
14108 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14109 exit 1
14112 # Unset variables that we do not need and which cause bugs (e.g. in
14113 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14114 # suppresses any "Segmentation fault" message there. '((' could
14115 # trigger a bug in pdksh 5.2.14.
14116 for as_var in BASH_ENV ENV MAIL MAILPATH
14117 do eval test x\${$as_var+set} = xset \
14118 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14119 done
14120 PS1='$ '
14121 PS2='> '
14122 PS4='+ '
14124 # NLS nuisances.
14125 LC_ALL=C
14126 export LC_ALL
14127 LANGUAGE=C
14128 export LANGUAGE
14130 # CDPATH.
14131 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14134 # as_fn_error ERROR [LINENO LOG_FD]
14135 # ---------------------------------
14136 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14137 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14138 # script with status $?, using 1 if that was 0.
14139 as_fn_error ()
14141 as_status=$?; test $as_status -eq 0 && as_status=1
14142 if test "$3"; then
14143 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14144 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14146 $as_echo "$as_me: error: $1" >&2
14147 as_fn_exit $as_status
14148 } # as_fn_error
14151 # as_fn_set_status STATUS
14152 # -----------------------
14153 # Set $? to STATUS, without forking.
14154 as_fn_set_status ()
14156 return $1
14157 } # as_fn_set_status
14159 # as_fn_exit STATUS
14160 # -----------------
14161 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14162 as_fn_exit ()
14164 set +e
14165 as_fn_set_status $1
14166 exit $1
14167 } # as_fn_exit
14169 # as_fn_unset VAR
14170 # ---------------
14171 # Portably unset VAR.
14172 as_fn_unset ()
14174 { eval $1=; unset $1;}
14176 as_unset=as_fn_unset
14177 # as_fn_append VAR VALUE
14178 # ----------------------
14179 # Append the text in VALUE to the end of the definition contained in VAR. Take
14180 # advantage of any shell optimizations that allow amortized linear growth over
14181 # repeated appends, instead of the typical quadratic growth present in naive
14182 # implementations.
14183 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14184 eval 'as_fn_append ()
14186 eval $1+=\$2
14188 else
14189 as_fn_append ()
14191 eval $1=\$$1\$2
14193 fi # as_fn_append
14195 # as_fn_arith ARG...
14196 # ------------------
14197 # Perform arithmetic evaluation on the ARGs, and store the result in the
14198 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14199 # must be portable across $(()) and expr.
14200 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14201 eval 'as_fn_arith ()
14203 as_val=$(( $* ))
14205 else
14206 as_fn_arith ()
14208 as_val=`expr "$@" || test $? -eq 1`
14210 fi # as_fn_arith
14213 if expr a : '\(a\)' >/dev/null 2>&1 &&
14214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14215 as_expr=expr
14216 else
14217 as_expr=false
14220 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14221 as_basename=basename
14222 else
14223 as_basename=false
14226 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14227 as_dirname=dirname
14228 else
14229 as_dirname=false
14232 as_me=`$as_basename -- "$0" ||
14233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14234 X"$0" : 'X\(//\)$' \| \
14235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14236 $as_echo X/"$0" |
14237 sed '/^.*\/\([^/][^/]*\)\/*$/{
14238 s//\1/
14241 /^X\/\(\/\/\)$/{
14242 s//\1/
14245 /^X\/\(\/\).*/{
14246 s//\1/
14249 s/.*/./; q'`
14251 # Avoid depending upon Character Ranges.
14252 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14253 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14254 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14255 as_cr_digits='0123456789'
14256 as_cr_alnum=$as_cr_Letters$as_cr_digits
14258 ECHO_C= ECHO_N= ECHO_T=
14259 case `echo -n x` in #(((((
14260 -n*)
14261 case `echo 'xy\c'` in
14262 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14263 xy) ECHO_C='\c';;
14264 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14265 ECHO_T=' ';;
14266 esac;;
14268 ECHO_N='-n';;
14269 esac
14271 rm -f conf$$ conf$$.exe conf$$.file
14272 if test -d conf$$.dir; then
14273 rm -f conf$$.dir/conf$$.file
14274 else
14275 rm -f conf$$.dir
14276 mkdir conf$$.dir 2>/dev/null
14278 if (echo >conf$$.file) 2>/dev/null; then
14279 if ln -s conf$$.file conf$$ 2>/dev/null; then
14280 as_ln_s='ln -s'
14281 # ... but there are two gotchas:
14282 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14283 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14284 # In both cases, we have to default to `cp -p'.
14285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14286 as_ln_s='cp -p'
14287 elif ln conf$$.file conf$$ 2>/dev/null; then
14288 as_ln_s=ln
14289 else
14290 as_ln_s='cp -p'
14292 else
14293 as_ln_s='cp -p'
14295 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14296 rmdir conf$$.dir 2>/dev/null
14299 # as_fn_mkdir_p
14300 # -------------
14301 # Create "$as_dir" as a directory, including parents if necessary.
14302 as_fn_mkdir_p ()
14305 case $as_dir in #(
14306 -*) as_dir=./$as_dir;;
14307 esac
14308 test -d "$as_dir" || eval $as_mkdir_p || {
14309 as_dirs=
14310 while :; do
14311 case $as_dir in #(
14312 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14313 *) as_qdir=$as_dir;;
14314 esac
14315 as_dirs="'$as_qdir' $as_dirs"
14316 as_dir=`$as_dirname -- "$as_dir" ||
14317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14318 X"$as_dir" : 'X\(//\)[^/]' \| \
14319 X"$as_dir" : 'X\(//\)$' \| \
14320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14321 $as_echo X"$as_dir" |
14322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14323 s//\1/
14326 /^X\(\/\/\)[^/].*/{
14327 s//\1/
14330 /^X\(\/\/\)$/{
14331 s//\1/
14334 /^X\(\/\).*/{
14335 s//\1/
14338 s/.*/./; q'`
14339 test -d "$as_dir" && break
14340 done
14341 test -z "$as_dirs" || eval "mkdir $as_dirs"
14342 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14345 } # as_fn_mkdir_p
14346 if mkdir -p . 2>/dev/null; then
14347 as_mkdir_p='mkdir -p "$as_dir"'
14348 else
14349 test -d ./-p && rmdir ./-p
14350 as_mkdir_p=false
14353 if test -x / >/dev/null 2>&1; then
14354 as_test_x='test -x'
14355 else
14356 if ls -dL / >/dev/null 2>&1; then
14357 as_ls_L_option=L
14358 else
14359 as_ls_L_option=
14361 as_test_x='
14362 eval sh -c '\''
14363 if test -d "$1"; then
14364 test -d "$1/.";
14365 else
14366 case $1 in #(
14367 -*)set "./$1";;
14368 esac;
14369 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14370 ???[sx]*):;;*)false;;esac;fi
14371 '\'' sh
14374 as_executable_p=$as_test_x
14376 # Sed expression to map a string onto a valid CPP name.
14377 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14379 # Sed expression to map a string onto a valid variable name.
14380 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14383 exec 6>&1
14384 ## ----------------------------------- ##
14385 ## Main body of $CONFIG_STATUS script. ##
14386 ## ----------------------------------- ##
14387 _ASEOF
14388 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391 # Save the log message, to keep $0 and so on meaningful, and to
14392 # report actual input values of CONFIG_FILES etc. instead of their
14393 # values after options handling.
14394 ac_log="
14395 This file was extended by $as_me, which was
14396 generated by GNU Autoconf 2.64. Invocation command line was
14398 CONFIG_FILES = $CONFIG_FILES
14399 CONFIG_HEADERS = $CONFIG_HEADERS
14400 CONFIG_LINKS = $CONFIG_LINKS
14401 CONFIG_COMMANDS = $CONFIG_COMMANDS
14402 $ $0 $@
14404 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14407 _ACEOF
14409 case $ac_config_files in *"
14410 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14411 esac
14415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14416 # Files that config.status was made for.
14417 config_files="$ac_config_files"
14419 _ACEOF
14421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14422 ac_cs_usage="\
14423 \`$as_me' instantiates files and other configuration actions
14424 from templates according to the current configuration. Unless the files
14425 and actions are specified as TAGs, all are instantiated by default.
14427 Usage: $0 [OPTION]... [TAG]...
14429 -h, --help print this help, then exit
14430 -V, --version print version number and configuration settings, then exit
14431 -q, --quiet, --silent
14432 do not print progress messages
14433 -d, --debug don't remove temporary files
14434 --recheck update $as_me by reconfiguring in the same conditions
14435 --file=FILE[:TEMPLATE]
14436 instantiate the configuration file FILE
14438 Configuration files:
14439 $config_files
14441 Report bugs to the package provider."
14443 _ACEOF
14444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14445 ac_cs_version="\\
14446 config.status
14447 configured by $0, generated by GNU Autoconf 2.64,
14448 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14450 Copyright (C) 2009 Free Software Foundation, Inc.
14451 This config.status script is free software; the Free Software Foundation
14452 gives unlimited permission to copy, distribute and modify it."
14454 ac_pwd='$ac_pwd'
14455 srcdir='$srcdir'
14456 INSTALL='$INSTALL'
14457 AWK='$AWK'
14458 test -n "\$AWK" || AWK=awk
14459 _ACEOF
14461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14462 # The default lists apply if the user does not specify any file.
14463 ac_need_defaults=:
14464 while test $# != 0
14466 case $1 in
14467 --*=*)
14468 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14469 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14470 ac_shift=:
14473 ac_option=$1
14474 ac_optarg=$2
14475 ac_shift=shift
14477 esac
14479 case $ac_option in
14480 # Handling of the options.
14481 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14482 ac_cs_recheck=: ;;
14483 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14484 $as_echo "$ac_cs_version"; exit ;;
14485 --debug | --debu | --deb | --de | --d | -d )
14486 debug=: ;;
14487 --file | --fil | --fi | --f )
14488 $ac_shift
14489 case $ac_optarg in
14490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14491 esac
14492 as_fn_append CONFIG_FILES " '$ac_optarg'"
14493 ac_need_defaults=false;;
14494 --he | --h | --help | --hel | -h )
14495 $as_echo "$ac_cs_usage"; exit ;;
14496 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14497 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14498 ac_cs_silent=: ;;
14500 # This is an error.
14501 -*) as_fn_error "unrecognized option: \`$1'
14502 Try \`$0 --help' for more information." ;;
14504 *) as_fn_append ac_config_targets " $1"
14505 ac_need_defaults=false ;;
14507 esac
14508 shift
14509 done
14511 ac_configure_extra_args=
14513 if $ac_cs_silent; then
14514 exec 6>/dev/null
14515 ac_configure_extra_args="$ac_configure_extra_args --silent"
14518 _ACEOF
14519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14520 if \$ac_cs_recheck; then
14521 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14522 shift
14523 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14524 CONFIG_SHELL='$SHELL'
14525 export CONFIG_SHELL
14526 exec "\$@"
14529 _ACEOF
14530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14531 exec 5>>config.log
14533 echo
14534 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14535 ## Running $as_me. ##
14536 _ASBOX
14537 $as_echo "$ac_log"
14538 } >&5
14540 _ACEOF
14541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14543 # INIT-COMMANDS
14545 extrasub_build="$extrasub_build"
14546 extrasub_host="$extrasub_host"
14547 extrasub_target="$extrasub_target"
14549 _ACEOF
14551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14553 # Handling of arguments.
14554 for ac_config_target in $ac_config_targets
14556 case $ac_config_target in
14557 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14559 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14560 esac
14561 done
14564 # If the user did not use the arguments to specify the items to instantiate,
14565 # then the envvar interface is used. Set only those that are not.
14566 # We use the long form for the default assignment because of an extremely
14567 # bizarre bug on SunOS 4.1.3.
14568 if $ac_need_defaults; then
14569 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14572 # Have a temporary directory for convenience. Make it in the build tree
14573 # simply because there is no reason against having it here, and in addition,
14574 # creating and moving files from /tmp can sometimes cause problems.
14575 # Hook for its removal unless debugging.
14576 # Note that there is a small window in which the directory will not be cleaned:
14577 # after its creation but before its name has been assigned to `$tmp'.
14578 $debug ||
14580 tmp=
14581 trap 'exit_status=$?
14582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14584 trap 'as_fn_exit 1' 1 2 13 15
14586 # Create a (secure) tmp directory for tmp files.
14589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14590 test -n "$tmp" && test -d "$tmp"
14591 } ||
14593 tmp=./conf$$-$RANDOM
14594 (umask 077 && mkdir "$tmp")
14595 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14597 # Set up the scripts for CONFIG_FILES section.
14598 # No need to generate them if there are no CONFIG_FILES.
14599 # This happens for instance with `./config.status config.h'.
14600 if test -n "$CONFIG_FILES"; then
14602 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14603 ac_cs_awk_getline=:
14604 ac_cs_awk_pipe_init=
14605 ac_cs_awk_read_file='
14606 while ((getline aline < (F[key])) > 0)
14607 print(aline)
14608 close(F[key])'
14609 ac_cs_awk_pipe_fini=
14610 else
14611 ac_cs_awk_getline=false
14612 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14613 ac_cs_awk_read_file='
14614 print "|#_!!_#|"
14615 print "cat " F[key] " &&"
14616 '$ac_cs_awk_pipe_init
14617 # The final `:' finishes the AND list.
14618 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14620 ac_cr=`echo X | tr X '\015'`
14621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14622 # But we know of no other shell where ac_cr would be empty at this
14623 # point, so we can use a bashism as a fallback.
14624 if test "x$ac_cr" = x; then
14625 eval ac_cr=\$\'\\r\'
14627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14629 ac_cs_awk_cr='\r'
14630 else
14631 ac_cs_awk_cr=$ac_cr
14634 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14635 _ACEOF
14637 # Create commands to substitute file output variables.
14639 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14640 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14641 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14642 echo "_ACAWK" &&
14643 echo "_ACEOF"
14644 } >conf$$files.sh &&
14645 . ./conf$$files.sh ||
14646 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14647 rm -f conf$$files.sh
14650 echo "cat >conf$$subs.awk <<_ACEOF" &&
14651 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14652 echo "_ACEOF"
14653 } >conf$$subs.sh ||
14654 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14655 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14656 ac_delim='%!_!# '
14657 for ac_last_try in false false false false false :; do
14658 . ./conf$$subs.sh ||
14659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14661 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14662 if test $ac_delim_n = $ac_delim_num; then
14663 break
14664 elif $ac_last_try; then
14665 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14666 else
14667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14669 done
14670 rm -f conf$$subs.sh
14672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14673 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14674 _ACEOF
14675 sed -n '
14677 s/^/S["/; s/!.*/"]=/
14680 s/^[^!]*!//
14681 :repl
14682 t repl
14683 s/'"$ac_delim"'$//
14684 t delim
14687 s/\(.\{148\}\).*/\1/
14688 t more1
14689 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14692 b repl
14693 :more1
14694 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14697 s/.\{148\}//
14698 t nl
14699 :delim
14701 s/\(.\{148\}\).*/\1/
14702 t more2
14703 s/["\\]/\\&/g; s/^/"/; s/$/"/
14706 :more2
14707 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14710 s/.\{148\}//
14711 t delim
14712 ' <conf$$subs.awk | sed '
14713 /^[^""]/{
14715 s/\n//
14717 ' >>$CONFIG_STATUS || ac_write_fail=1
14718 rm -f conf$$subs.awk
14719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14720 _ACAWK
14721 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14722 for (key in S) S_is_set[key] = 1
14723 FS = "\a"
14724 \$ac_cs_awk_pipe_init
14727 line = $ 0
14728 nfields = split(line, field, "@")
14729 substed = 0
14730 len = length(field[1])
14731 for (i = 2; i < nfields; i++) {
14732 key = field[i]
14733 keylen = length(key)
14734 if (S_is_set[key]) {
14735 value = S[key]
14736 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14737 len += length(value) + length(field[++i])
14738 substed = 1
14739 } else
14740 len += 1 + keylen
14742 if (nfields == 3 && !substed) {
14743 key = field[2]
14744 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14745 \$ac_cs_awk_read_file
14746 next
14749 print line
14751 \$ac_cs_awk_pipe_fini
14752 _ACAWK
14753 _ACEOF
14754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14755 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14756 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14757 else
14759 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14760 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14761 _ACEOF
14763 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14764 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14765 # trailing colons and then remove the whole line if VPATH becomes empty
14766 # (actually we leave an empty line to preserve line numbers).
14767 if test "x$srcdir" = x.; then
14768 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14769 s/:*\$(srcdir):*/:/
14770 s/:*\${srcdir}:*/:/
14771 s/:*@srcdir@:*/:/
14772 s/^\([^=]*=[ ]*\):*/\1/
14773 s/:*$//
14774 s/^[^=]*=[ ]*$//
14778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14779 fi # test -n "$CONFIG_FILES"
14782 eval set X " :F $CONFIG_FILES "
14783 shift
14784 for ac_tag
14786 case $ac_tag in
14787 :[FHLC]) ac_mode=$ac_tag; continue;;
14788 esac
14789 case $ac_mode$ac_tag in
14790 :[FHL]*:*);;
14791 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14792 :[FH]-) ac_tag=-:-;;
14793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14794 esac
14795 ac_save_IFS=$IFS
14796 IFS=:
14797 set x $ac_tag
14798 IFS=$ac_save_IFS
14799 shift
14800 ac_file=$1
14801 shift
14803 case $ac_mode in
14804 :L) ac_source=$1;;
14805 :[FH])
14806 ac_file_inputs=
14807 for ac_f
14809 case $ac_f in
14810 -) ac_f="$tmp/stdin";;
14811 *) # Look for the file first in the build tree, then in the source tree
14812 # (if the path is not absolute). The absolute path cannot be DOS-style,
14813 # because $ac_f cannot contain `:'.
14814 test -f "$ac_f" ||
14815 case $ac_f in
14816 [\\/$]*) false;;
14817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14818 esac ||
14819 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14820 esac
14821 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14822 as_fn_append ac_file_inputs " '$ac_f'"
14823 done
14825 # Let's still pretend it is `configure' which instantiates (i.e., don't
14826 # use $as_me), people would be surprised to read:
14827 # /* config.h. Generated by config.status. */
14828 configure_input='Generated from '`
14829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14830 `' by configure.'
14831 if test x"$ac_file" != x-; then
14832 configure_input="$ac_file. $configure_input"
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14834 $as_echo "$as_me: creating $ac_file" >&6;}
14836 # Neutralize special characters interpreted by sed in replacement strings.
14837 case $configure_input in #(
14838 *\&* | *\|* | *\\* )
14839 ac_sed_conf_input=`$as_echo "$configure_input" |
14840 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14841 *) ac_sed_conf_input=$configure_input;;
14842 esac
14844 case $ac_tag in
14845 *:-:* | *:-) cat >"$tmp/stdin" \
14846 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14847 esac
14849 esac
14851 ac_dir=`$as_dirname -- "$ac_file" ||
14852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14853 X"$ac_file" : 'X\(//\)[^/]' \| \
14854 X"$ac_file" : 'X\(//\)$' \| \
14855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14856 $as_echo X"$ac_file" |
14857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14858 s//\1/
14861 /^X\(\/\/\)[^/].*/{
14862 s//\1/
14865 /^X\(\/\/\)$/{
14866 s//\1/
14869 /^X\(\/\).*/{
14870 s//\1/
14873 s/.*/./; q'`
14874 as_dir="$ac_dir"; as_fn_mkdir_p
14875 ac_builddir=.
14877 case "$ac_dir" in
14878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14881 # A ".." for each directory in $ac_dir_suffix.
14882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14883 case $ac_top_builddir_sub in
14884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14886 esac ;;
14887 esac
14888 ac_abs_top_builddir=$ac_pwd
14889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14890 # for backward compatibility:
14891 ac_top_builddir=$ac_top_build_prefix
14893 case $srcdir in
14894 .) # We are building in place.
14895 ac_srcdir=.
14896 ac_top_srcdir=$ac_top_builddir_sub
14897 ac_abs_top_srcdir=$ac_pwd ;;
14898 [\\/]* | ?:[\\/]* ) # Absolute name.
14899 ac_srcdir=$srcdir$ac_dir_suffix;
14900 ac_top_srcdir=$srcdir
14901 ac_abs_top_srcdir=$srcdir ;;
14902 *) # Relative name.
14903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14904 ac_top_srcdir=$ac_top_build_prefix$srcdir
14905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14906 esac
14907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14910 case $ac_mode in
14913 # CONFIG_FILE
14916 case $INSTALL in
14917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14919 esac
14920 _ACEOF
14922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14923 # If the template does not know about datarootdir, expand it.
14924 # FIXME: This hack should be removed a few years after 2.60.
14925 ac_datarootdir_hack=; ac_datarootdir_seen=
14926 ac_sed_dataroot='
14927 /datarootdir/ {
14931 /@datadir@/p
14932 /@docdir@/p
14933 /@infodir@/p
14934 /@localedir@/p
14935 /@mandir@/p'
14936 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14937 *datarootdir*) ac_datarootdir_seen=yes;;
14938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14940 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14941 _ACEOF
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943 ac_datarootdir_hack='
14944 s&@datadir@&$datadir&g
14945 s&@docdir@&$docdir&g
14946 s&@infodir@&$infodir&g
14947 s&@localedir@&$localedir&g
14948 s&@mandir@&$mandir&g
14949 s&\\\${datarootdir}&$datarootdir&g' ;;
14950 esac
14951 _ACEOF
14953 # Neutralize VPATH when `$srcdir' = `.'.
14954 # Shell code in configure.ac might set extrasub.
14955 # FIXME: do we really want to maintain this feature?
14956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14957 ac_sed_extra="$ac_vpsub
14958 $extrasub
14959 _ACEOF
14960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14963 s|@configure_input@|$ac_sed_conf_input|;t t
14964 s&@top_builddir@&$ac_top_builddir_sub&;t t
14965 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14966 s&@srcdir@&$ac_srcdir&;t t
14967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14968 s&@top_srcdir@&$ac_top_srcdir&;t t
14969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14970 s&@builddir@&$ac_builddir&;t t
14971 s&@abs_builddir@&$ac_abs_builddir&;t t
14972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14973 s&@INSTALL@&$ac_INSTALL&;t t
14974 $ac_datarootdir_hack
14976 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14977 if $ac_cs_awk_getline; then
14978 $AWK -f "$tmp/subs.awk"
14979 else
14980 $AWK -f "$tmp/subs.awk" | $SHELL
14981 fi >$tmp/out \
14982 || as_fn_error "could not create $ac_file" "$LINENO" 5
14984 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14985 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14988 which seems to be undefined. Please make sure it is defined." >&5
14989 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14990 which seems to be undefined. Please make sure it is defined." >&2;}
14992 rm -f "$tmp/stdin"
14993 case $ac_file in
14994 -) cat "$tmp/out" && rm -f "$tmp/out";;
14995 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14996 esac \
14997 || as_fn_error "could not create $ac_file" "$LINENO" 5
15002 esac
15005 case $ac_file$ac_mode in
15006 "Makefile":F) sed "$extrasub_build" Makefile |
15007 sed "$extrasub_host" |
15008 sed "$extrasub_target" > mf$$
15009 mv -f mf$$ Makefile ;;
15011 esac
15012 done # for ac_tag
15015 as_fn_exit 0
15016 _ACEOF
15017 ac_clean_files=$ac_clean_files_save
15019 test $ac_write_fail = 0 ||
15020 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15023 # configure is writing to config.log, and then calls config.status.
15024 # config.status does its own redirection, appending to config.log.
15025 # Unfortunately, on DOS this fails, as config.log is still kept open
15026 # by configure, so config.status won't be able to write to it; its
15027 # output is simply discarded. So we exec the FD to /dev/null,
15028 # effectively closing config.log, so it can be properly (re)opened and
15029 # appended to by config.status. When coming back to configure, we
15030 # need to make the FD available again.
15031 if test "$no_create" != yes; then
15032 ac_cs_success=:
15033 ac_config_status_args=
15034 test "$silent" = yes &&
15035 ac_config_status_args="$ac_config_status_args --quiet"
15036 exec 5>/dev/null
15037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15038 exec 5>>config.log
15039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15040 # would make configure fail if this is the last instruction.
15041 $ac_cs_success || as_fn_exit $?
15043 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15045 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}