added addition bin op and print hook again
[official-gcc.git] / configure
blob166deac43652480ff5482e460382d879b682611c
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 GOC_FOR_TARGET
582 GFORTRAN_FOR_TARGET
583 GCJ_FOR_TARGET
584 GCC_FOR_TARGET
585 CXX_FOR_TARGET
586 CC_FOR_TARGET
587 OBJDUMP
588 OBJCOPY
589 WINDMC
590 WINDRES
591 STRIP
592 RANLIB
594 LIPO
596 DLLTOOL
599 RUNTEST
600 EXPECT
601 MAKEINFO
602 FLEX
605 BISON
606 YACC
607 config_shell
608 WINDRES_FOR_BUILD
609 WINDMC_FOR_BUILD
610 RANLIB_FOR_BUILD
611 NM_FOR_BUILD
612 LD_FOR_BUILD
613 LDFLAGS_FOR_BUILD
614 GOC_FOR_BUILD
615 GFORTRAN_FOR_BUILD
616 GCJ_FOR_BUILD
617 DLLTOOL_FOR_BUILD
618 CXX_FOR_BUILD
619 CXXFLAGS_FOR_BUILD
620 CFLAGS_FOR_BUILD
621 CC_FOR_BUILD
622 AS_FOR_BUILD
623 AR_FOR_BUILD
624 target_configdirs
625 configdirs
626 build_configdirs
627 INSTALL_GDB_TK
628 GDB_TK
629 CONFIGURE_GDB_TK
630 build_tooldir
631 tooldir
632 GCC_SHLIB_SUBDIR
633 RPATH_ENVVAR
634 target_configargs
635 host_configargs
636 build_configargs
637 BUILD_CONFIG
638 CXXFLAGS_FOR_TARGET
639 CFLAGS_FOR_TARGET
640 DEBUG_PREFIX_CFLAGS_FOR_TARGET
641 SYSROOT_CFLAGS_FOR_TARGET
642 stage1_languages
643 extra_host_libiberty_configure_flags
644 clooginc
645 clooglibs
646 pplinc
647 ppllibs
648 poststage1_ldflags
649 poststage1_libs
650 stage1_libs
651 stage1_ldflags
652 extra_mpc_mpfr_configure_flags
653 extra_mpc_gmp_configure_flags
654 extra_mpfr_configure_flags
655 gmpinc
656 gmplibs
657 do_compare
658 GNATMAKE
659 GNATBIND
660 ac_ct_CXX
661 CXXFLAGS
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
670 target_subdir
671 host_subdir
672 build_subdir
673 build_libsubdir
676 LN_S
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 target_noncanonical
690 host_noncanonical
691 build_noncanonical
692 build_os
693 build_vendor
694 build_cpu
695 build
696 TOPLEVEL_CONFIGURE_ARGUMENTS
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files='serialization_dependencies
736 host_makefile_frag
737 target_makefile_frag
738 alphaieee_frag
739 ospace_frag'
740 ac_user_opts='
741 enable_option_checking
742 with_build_libsubdir
743 enable_gold
744 enable_ld
745 enable_libquadmath
746 enable_libquadmath_support
747 enable_libada
748 enable_libssp
749 enable_build_with_cxx
750 with_mpc
751 with_mpc_include
752 with_mpc_lib
753 with_mpfr_dir
754 with_mpfr
755 with_mpfr_include
756 with_mpfr_lib
757 with_gmp_dir
758 with_gmp
759 with_gmp_include
760 with_gmp_lib
761 with_host_libstdcxx
762 with_stage1_ldflags
763 with_stage1_libs
764 with_boot_libs
765 with_boot_ldflags
766 with_ppl
767 with_ppl_include
768 with_ppl_lib
769 enable_ppl_version_check
770 with_cloog
771 with_cloog_include
772 with_cloog_lib
773 enable_cloog_backend
774 enable_cloog_version_check
775 enable_lto
776 enable_stage1_languages
777 enable_objc_gc
778 with_build_sysroot
779 with_debug_prefix_map
780 enable_bootstrap
781 with_build_config
782 enable_serial_configure
783 with_build_time_tools
784 enable_maintainer_mode
785 enable_stage1_checking
786 enable_werror
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
797 CXXFLAGS
799 build_configargs
800 host_configargs
801 target_configargs
804 DLLTOOL
806 LIPO
808 RANLIB
809 STRIP
810 WINDRES
811 WINDMC
812 OBJCOPY
813 OBJDUMP
814 CC_FOR_TARGET
815 CXX_FOR_TARGET
816 GCC_FOR_TARGET
817 GCJ_FOR_TARGET
818 GFORTRAN_FOR_TARGET
819 GOC_FOR_TARGET
820 AR_FOR_TARGET
821 AS_FOR_TARGET
822 DLLTOOL_FOR_TARGET
823 LD_FOR_TARGET
824 LIPO_FOR_TARGET
825 NM_FOR_TARGET
826 OBJDUMP_FOR_TARGET
827 RANLIB_FOR_TARGET
828 STRIP_FOR_TARGET
829 WINDRES_FOR_TARGET
830 WINDMC_FOR_TARGET'
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
881 ac_prev=
882 ac_dashdash=
883 for ac_option
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
897 # Accept the important Cygnus configure options, so we can diagnose typos.
899 case $ac_dashdash$ac_option in
901 ac_dashdash=yes ;;
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
920 --config-cache | -C)
921 cache_file=config.cache ;;
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1215 -*) as_fn_error "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information."
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1237 esac
1238 done
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error "missing argument to $ac_option"
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1286 If a cross compiler is detected then cross compile mode will be used." >&2
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1295 test "$silent" = yes && exec 6>/dev/null
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error "pwd does not report name of working directory"
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1324 /^X\(\/\/\)$/{
1325 s//\1/
1328 /^X\(\/\).*/{
1329 s//\1/
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1337 else
1338 ac_srcdir_defaulted=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 case $srcdir in
1359 *" "*)
1360 as_fn_error "path to source, $srcdir, contains spaces"
1362 esac
1363 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379 \`configure' configures this package to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1388 Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1403 [PREFIX]
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1432 _ACEOF
1434 cat <<\_ACEOF
1436 Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1448 if test -n "$ac_init_help"; then
1450 cat <<\_ACEOF
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1457 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1458 --disable-libquadmath do not build libquadmath directory
1459 --disable-libquadmath-support
1460 disable libquadmath support for Fortran
1461 --enable-libada build libada directory
1462 --enable-libssp build libssp directory
1463 --enable-build-with-cxx build with C++ compiler instead of C compiler
1464 --disable-ppl-version-check disable check for PPL version
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
1468 --disable-cloog-version-check
1469 disable check for CLooG version
1470 --enable-lto enable link time optimization support
1471 --enable-stage1-languages[=all] choose additional languages to build during
1472 stage1. Mostly useful for compiler development.
1473 --enable-objc-gc enable use of Boehm's garbage collector with the
1474 GNU Objective-C runtime
1475 --enable-bootstrap enable bootstrapping [yes if native build]
1476 --enable-serial-[{host,target,build}-]configure
1477 force sequential configuration of
1478 sub-packages for the host, target or build
1479 machine, or all sub-packages
1480 --enable-maintainer-mode enable make rules and dependencies not useful
1481 (and sometimes confusing) to the casual installer
1482 --enable-stage1-checking[=all] choose additional checking for stage1
1483 of the compiler
1484 --enable-werror enable -Werror in bootstrap stage2 and later
1486 Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-build-libsubdir=DIR Directory where to find libraries for build system
1490 --with-mpc=PATH specify prefix directory for installed MPC package.
1491 Equivalent to --with-mpc-include=PATH/include
1492 plus --with-mpc-lib=PATH/lib
1493 --with-mpc-include=PATH
1494 specify directory for installed MPC include files
1495 --with-mpc-lib=PATH specify directory for the installed MPC library
1496 --with-mpfr-dir=PATH this option has been REMOVED
1497 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1498 Equivalent to --with-mpfr-include=PATH/include
1499 plus --with-mpfr-lib=PATH/lib
1500 --with-mpfr-include=PATH
1501 specify directory for installed MPFR include files
1502 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1503 --with-gmp-dir=PATH this option has been REMOVED
1504 --with-gmp=PATH specify prefix directory for the installed GMP package.
1505 Equivalent to --with-gmp-include=PATH/include
1506 plus --with-gmp-lib=PATH/lib
1507 --with-gmp-include=PATH specify directory for installed GMP include files
1508 --with-gmp-lib=PATH specify directory for the installed GMP library
1509 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1510 when linking with PPL
1511 --with-stage1-ldflags=FLAGS Linker flags for stage1
1512 -with-stage1-libs=LIBS Libraries for stage1
1513 --with-boot-libs=LIBS Libraries for stage2 and later
1514 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1515 --with-ppl=PATH Specify prefix directory for the installed PPL package
1516 Equivalent to --with-ppl-include=PATH/include
1517 plus --with-ppl-lib=PATH/lib
1518 --with-ppl-include=PATH Specify directory for installed PPL include files
1519 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1520 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1521 package. Equivalent to
1522 --with-cloog-include=PATH/include plus
1523 --with-cloog-lib=PATH/lib
1524 --with-cloog-include=PATH
1525 Specify directory for installed CLooG include files
1526 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1527 library
1528 --with-build-sysroot=SYSROOT
1529 use sysroot as the system root during the build
1530 --with-debug-prefix-map='A=B C=D ...'
1531 map A to B, C to D ... in debug information
1532 --with-build-config='NAME NAME2...'
1533 Use config/NAME.mk build configuration
1534 --with-build-time-tools=PATH
1535 use given path to find target tools during the build
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CXX C++ compiler command
1546 CXXFLAGS C++ compiler flags
1547 build_configargs
1548 additional configure arguments for build directories
1549 host_configargs
1550 additional configure arguments for host directories
1551 target_configargs
1552 additional configure arguments for target directories
1553 AR AR for the host
1554 AS AS for the host
1555 DLLTOOL DLLTOOL for the host
1556 LD LD for the host
1557 LIPO LIPO for the host
1558 NM NM for the host
1559 RANLIB RANLIB for the host
1560 STRIP STRIP for the host
1561 WINDRES WINDRES for the host
1562 WINDMC WINDMC for the host
1563 OBJCOPY OBJCOPY for the host
1564 OBJDUMP OBJDUMP for the host
1565 CC_FOR_TARGET
1566 CC for the target
1567 CXX_FOR_TARGET
1568 CXX for the target
1569 GCC_FOR_TARGET
1570 GCC for the target
1571 GCJ_FOR_TARGET
1572 GCJ for the target
1573 GFORTRAN_FOR_TARGET
1574 GFORTRAN for the target
1575 GOC_FOR_TARGET
1576 GOC for the target
1577 AR_FOR_TARGET
1578 AR for the target
1579 AS_FOR_TARGET
1580 AS for the target
1581 DLLTOOL_FOR_TARGET
1582 DLLTOOL for the target
1583 LD_FOR_TARGET
1584 LD for the target
1585 LIPO_FOR_TARGET
1586 LIPO for the target
1587 NM_FOR_TARGET
1588 NM for the target
1589 OBJDUMP_FOR_TARGET
1590 OBJDUMP for the target
1591 RANLIB_FOR_TARGET
1592 RANLIB for the target
1593 STRIP_FOR_TARGET
1594 STRIP for the target
1595 WINDRES_FOR_TARGET
1596 WINDRES for the target
1597 WINDMC_FOR_TARGET
1598 WINDMC for the target
1600 Use these variables to override the choices made by `configure' or to help
1601 it to find libraries and programs with nonstandard names/locations.
1603 Report bugs to the package provider.
1604 _ACEOF
1605 ac_status=$?
1608 if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613 continue
1614 ac_builddir=.
1616 case "$ac_dir" in
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 esac ;;
1626 esac
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1632 case $srcdir in
1633 .) # We are building in place.
1634 ac_srcdir=.
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1638 ac_srcdir=$srcdir$ac_dir_suffix;
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1641 *) # Relative name.
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 esac
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1656 else
1657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 fi || ac_status=$?
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1660 done
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1665 cat <<\_ACEOF
1666 configure
1667 generated by GNU Autoconf 2.64
1669 Copyright (C) 2009 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1672 _ACEOF
1673 exit
1676 ## ------------------------ ##
1677 ## Autoconf initialization. ##
1678 ## ------------------------ ##
1680 # ac_fn_c_try_compile LINENO
1681 # --------------------------
1682 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=1
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 return $ac_retval
1716 } # ac_fn_c_try_compile
1718 # ac_fn_cxx_try_compile LINENO
1719 # ----------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_cxx_try_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_cxx_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=1
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 return $ac_retval
1754 } # ac_fn_cxx_try_compile
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_link ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 $as_test_x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=1
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 return $ac_retval
1800 } # ac_fn_c_try_link
1801 cat >config.log <<_ACEOF
1802 This file contains any messages produced by compilers while
1803 running configure, to aid debugging if configure makes a mistake.
1805 It was created by $as_me, which was
1806 generated by GNU Autoconf 2.64. Invocation command line was
1808 $ $0 $@
1810 _ACEOF
1811 exec 5>>config.log
1813 cat <<_ASUNAME
1814 ## --------- ##
1815 ## Platform. ##
1816 ## --------- ##
1818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1827 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1831 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1835 _ASUNAME
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838 for as_dir in $PATH
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 $as_echo "PATH: $as_dir"
1843 done
1844 IFS=$as_save_IFS
1846 } >&5
1848 cat >&5 <<_ACEOF
1851 ## ----------- ##
1852 ## Core tests. ##
1853 ## ----------- ##
1855 _ACEOF
1858 # Keep a trace of the command line.
1859 # Strip out --no-create and --no-recursion so they do not pile up.
1860 # Strip out --silent because we don't want to record it for future runs.
1861 # Also quote any args containing shell meta-characters.
1862 # Make two passes to allow for proper duplicate-argument suppression.
1863 ac_configure_args=
1864 ac_configure_args0=
1865 ac_configure_args1=
1866 ac_must_keep_next=false
1867 for ac_pass in 1 2
1869 for ac_arg
1871 case $ac_arg in
1872 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874 | -silent | --silent | --silen | --sile | --sil)
1875 continue ;;
1876 *\'*)
1877 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 esac
1879 case $ac_pass in
1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1882 as_fn_append ac_configure_args1 " '$ac_arg'"
1883 if test $ac_must_keep_next = true; then
1884 ac_must_keep_next=false # Got value, back to normal.
1885 else
1886 case $ac_arg in
1887 *=* | --config-cache | -C | -disable-* | --disable-* \
1888 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890 | -with-* | --with-* | -without-* | --without-* | --x)
1891 case "$ac_configure_args0 " in
1892 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1893 esac
1895 -* ) ac_must_keep_next=true ;;
1896 esac
1898 as_fn_append ac_configure_args " '$ac_arg'"
1900 esac
1901 done
1902 done
1903 { ac_configure_args0=; unset ac_configure_args0;}
1904 { ac_configure_args1=; unset ac_configure_args1;}
1906 # When interrupted or exit'd, cleanup temporary files, and complete
1907 # config.log. We remove comments because anyway the quotes in there
1908 # would cause problems or look ugly.
1909 # WARNING: Use '\'' to represent an apostrophe within the trap.
1910 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1911 trap 'exit_status=$?
1912 # Save into config.log some information that might help in debugging.
1914 echo
1916 cat <<\_ASBOX
1917 ## ---------------- ##
1918 ## Cache variables. ##
1919 ## ---------------- ##
1920 _ASBOX
1921 echo
1922 # The following way of writing the cache mishandles newlines in values,
1924 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1925 eval ac_val=\$$ac_var
1926 case $ac_val in #(
1927 *${as_nl}*)
1928 case $ac_var in #(
1929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1931 esac
1932 case $ac_var in #(
1933 _ | IFS | as_nl) ;; #(
1934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1935 *) { eval $ac_var=; unset $ac_var;} ;;
1936 esac ;;
1937 esac
1938 done
1939 (set) 2>&1 |
1940 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1941 *${as_nl}ac_space=\ *)
1942 sed -n \
1943 "s/'\''/'\''\\\\'\'''\''/g;
1944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1945 ;; #(
1947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1949 esac |
1950 sort
1952 echo
1954 cat <<\_ASBOX
1955 ## ----------------- ##
1956 ## Output variables. ##
1957 ## ----------------- ##
1958 _ASBOX
1959 echo
1960 for ac_var in $ac_subst_vars
1962 eval ac_val=\$$ac_var
1963 case $ac_val in
1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965 esac
1966 $as_echo "$ac_var='\''$ac_val'\''"
1967 done | sort
1968 echo
1970 if test -n "$ac_subst_files"; then
1971 cat <<\_ASBOX
1972 ## ------------------- ##
1973 ## File substitutions. ##
1974 ## ------------------- ##
1975 _ASBOX
1976 echo
1977 for ac_var in $ac_subst_files
1979 eval ac_val=\$$ac_var
1980 case $ac_val in
1981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 esac
1983 $as_echo "$ac_var='\''$ac_val'\''"
1984 done | sort
1985 echo
1988 if test -s confdefs.h; then
1989 cat <<\_ASBOX
1990 ## ----------- ##
1991 ## confdefs.h. ##
1992 ## ----------- ##
1993 _ASBOX
1994 echo
1995 cat confdefs.h
1996 echo
1998 test "$ac_signal" != 0 &&
1999 $as_echo "$as_me: caught signal $ac_signal"
2000 $as_echo "$as_me: exit $exit_status"
2001 } >&5
2002 rm -f core *.core core.conftest.* &&
2003 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2004 exit $exit_status
2006 for ac_signal in 1 2 13 15; do
2007 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2008 done
2009 ac_signal=0
2011 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2012 rm -f -r conftest* confdefs.h
2014 $as_echo "/* confdefs.h */" > confdefs.h
2016 # Predefined preprocessor variables.
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_NAME "$PACKAGE_NAME"
2020 _ACEOF
2022 cat >>confdefs.h <<_ACEOF
2023 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2024 _ACEOF
2026 cat >>confdefs.h <<_ACEOF
2027 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2028 _ACEOF
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_STRING "$PACKAGE_STRING"
2032 _ACEOF
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2036 _ACEOF
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_URL "$PACKAGE_URL"
2040 _ACEOF
2043 # Let the site file select an alternate cache file if it wants to.
2044 # Prefer an explicitly selected file to automatically selected ones.
2045 ac_site_file1=NONE
2046 ac_site_file2=NONE
2047 if test -n "$CONFIG_SITE"; then
2048 ac_site_file1=$CONFIG_SITE
2049 elif test "x$prefix" != xNONE; then
2050 ac_site_file1=$prefix/share/config.site
2051 ac_site_file2=$prefix/etc/config.site
2052 else
2053 ac_site_file1=$ac_default_prefix/share/config.site
2054 ac_site_file2=$ac_default_prefix/etc/config.site
2056 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2058 test "x$ac_site_file" = xNONE && continue
2059 if test -r "$ac_site_file"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2062 sed 's/^/| /' "$ac_site_file" >&5
2063 . "$ac_site_file"
2065 done
2067 if test -r "$cache_file"; then
2068 # Some versions of bash will fail to source /dev/null (special
2069 # files actually), so we avoid doing that.
2070 if test -f "$cache_file"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072 $as_echo "$as_me: loading cache $cache_file" >&6;}
2073 case $cache_file in
2074 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075 *) . "./$cache_file";;
2076 esac
2078 else
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080 $as_echo "$as_me: creating cache $cache_file" >&6;}
2081 >$cache_file
2084 # Check that the precious variables saved in the cache have kept the same
2085 # value.
2086 ac_cache_corrupted=false
2087 for ac_var in $ac_precious_vars; do
2088 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2089 eval ac_new_set=\$ac_env_${ac_var}_set
2090 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2091 eval ac_new_val=\$ac_env_${ac_var}_value
2092 case $ac_old_set,$ac_new_set in
2093 set,)
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2095 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2096 ac_cache_corrupted=: ;;
2097 ,set)
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2099 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2100 ac_cache_corrupted=: ;;
2101 ,);;
2103 if test "x$ac_old_val" != "x$ac_new_val"; then
2104 # differences in whitespace do not lead to failure.
2105 ac_old_val_w=`echo x $ac_old_val`
2106 ac_new_val_w=`echo x $ac_new_val`
2107 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2109 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2110 ac_cache_corrupted=:
2111 else
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2113 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2114 eval $ac_var=\$ac_old_val
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2117 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2119 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2120 fi;;
2121 esac
2122 # Pass precious variables to config.status.
2123 if test "$ac_new_set" = set; then
2124 case $ac_new_val in
2125 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2126 *) ac_arg=$ac_var=$ac_new_val ;;
2127 esac
2128 case " $ac_configure_args " in
2129 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2130 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2131 esac
2133 done
2134 if $ac_cache_corrupted; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2138 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2139 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2141 ## -------------------- ##
2142 ## Main body of script. ##
2143 ## -------------------- ##
2145 ac_ext=c
2146 ac_cpp='$CPP $CPPFLAGS'
2147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159 progname=$0
2160 # if PWD already has a value, it is probably wrong.
2161 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2163 # Export original configure arguments for use by sub-configures.
2164 # Quote arguments with shell meta charatcers.
2165 TOPLEVEL_CONFIGURE_ARGUMENTS=
2166 set -- "$progname" "$@"
2167 for ac_arg
2169 case "$ac_arg" in
2170 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2171 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2172 # if the argument is of the form -foo=baz, quote the baz part only
2173 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2174 *) ;;
2175 esac
2176 # Add the quoted argument to the list.
2177 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2178 done
2179 if test "$silent" = yes; then
2180 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2182 # Remove the initial space we just introduced and, as these will be
2183 # expanded by make, quote '$'.
2184 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2187 # Find the build, host, and target systems.
2188 ac_aux_dir=
2189 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2190 for ac_t in install-sh install.sh shtool; do
2191 if test -f "$ac_dir/$ac_t"; then
2192 ac_aux_dir=$ac_dir
2193 ac_install_sh="$ac_aux_dir/$ac_t -c"
2194 break 2
2196 done
2197 done
2198 if test -z "$ac_aux_dir"; then
2199 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2202 # These three variables are undocumented and unsupported,
2203 # and are intended to be withdrawn in a future Autoconf release.
2204 # They can cause serious problems if a builder's source tree is in a directory
2205 # whose full name contains unusual characters.
2206 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2207 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2208 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2211 # Make sure we can run config.sub.
2212 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2213 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2216 $as_echo_n "checking build system type... " >&6; }
2217 if test "${ac_cv_build+set}" = set; then :
2218 $as_echo_n "(cached) " >&6
2219 else
2220 ac_build_alias=$build_alias
2221 test "x$ac_build_alias" = x &&
2222 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2223 test "x$ac_build_alias" = x &&
2224 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2225 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2226 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2230 $as_echo "$ac_cv_build" >&6; }
2231 case $ac_cv_build in
2232 *-*-*) ;;
2233 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2234 esac
2235 build=$ac_cv_build
2236 ac_save_IFS=$IFS; IFS='-'
2237 set x $ac_cv_build
2238 shift
2239 build_cpu=$1
2240 build_vendor=$2
2241 shift; shift
2242 # Remember, the first character of IFS is used to create $*,
2243 # except with old shells:
2244 build_os=$*
2245 IFS=$ac_save_IFS
2246 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2249 case ${build_alias} in
2250 "") build_noncanonical=${build} ;;
2251 *) build_noncanonical=${build_alias} ;;
2252 esac
2256 case ${host_alias} in
2257 "") host_noncanonical=${build_noncanonical} ;;
2258 *) host_noncanonical=${host_alias} ;;
2259 esac
2263 case ${target_alias} in
2264 "") target_noncanonical=${host_noncanonical} ;;
2265 *) target_noncanonical=${target_alias} ;;
2266 esac
2271 test "$host_noncanonical" = "$target_noncanonical" &&
2272 test "$program_prefix$program_suffix$program_transform_name" = \
2273 NONENONEs,x,x, &&
2274 program_transform_name=s,y,y,
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2277 $as_echo_n "checking host system type... " >&6; }
2278 if test "${ac_cv_host+set}" = set; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 if test "x$host_alias" = x; then
2282 ac_cv_host=$ac_cv_build
2283 else
2284 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2285 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2290 $as_echo "$ac_cv_host" >&6; }
2291 case $ac_cv_host in
2292 *-*-*) ;;
2293 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2294 esac
2295 host=$ac_cv_host
2296 ac_save_IFS=$IFS; IFS='-'
2297 set x $ac_cv_host
2298 shift
2299 host_cpu=$1
2300 host_vendor=$2
2301 shift; shift
2302 # Remember, the first character of IFS is used to create $*,
2303 # except with old shells:
2304 host_os=$*
2305 IFS=$ac_save_IFS
2306 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2310 $as_echo_n "checking target system type... " >&6; }
2311 if test "${ac_cv_target+set}" = set; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 if test "x$target_alias" = x; then
2315 ac_cv_target=$ac_cv_host
2316 else
2317 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2318 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2323 $as_echo "$ac_cv_target" >&6; }
2324 case $ac_cv_target in
2325 *-*-*) ;;
2326 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2327 esac
2328 target=$ac_cv_target
2329 ac_save_IFS=$IFS; IFS='-'
2330 set x $ac_cv_target
2331 shift
2332 target_cpu=$1
2333 target_vendor=$2
2334 shift; shift
2335 # Remember, the first character of IFS is used to create $*,
2336 # except with old shells:
2337 target_os=$*
2338 IFS=$ac_save_IFS
2339 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2342 # The aliases save the names the user supplied, while $host etc.
2343 # will get canonicalized.
2344 test -n "$target_alias" &&
2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
2347 program_prefix=${target_alias}-
2349 test "$program_prefix" != NONE &&
2350 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2351 # Use a double $ so make ignores it.
2352 test "$program_suffix" != NONE &&
2353 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354 # Double any \ or $.
2355 # By default was `s,x,x', remove it if useless.
2356 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2361 # Get 'install' or 'install-sh' and its variants.
2362 # Find a good install program. We prefer a C program (faster),
2363 # so one script is as good as another. But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2368 # AIX /bin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 # Reject install programs that cannot install multiple files.
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2378 if test -z "$INSTALL"; then
2379 if test "${ac_cv_path_install+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 # Account for people who put trailing slashes in PATH elements.
2388 case $as_dir/ in #((
2389 ./ | .// | /[cC]/* | \
2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392 /usr/ucb/* ) ;;
2394 # OSF1 and SCO ODT 3.0 have their own names for install.
2395 # Don't use installbsd from OSF since it installs stuff as root
2396 # by default.
2397 for ac_prog in ginstall scoinst install; do
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2400 if test $ac_prog = install &&
2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402 # AIX install. It has an incompatible calling convention.
2404 elif test $ac_prog = install &&
2405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406 # program-specific install script used by HP pwplus--don't use.
2408 else
2409 rm -rf conftest.one conftest.two conftest.dir
2410 echo one > conftest.one
2411 echo two > conftest.two
2412 mkdir conftest.dir
2413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414 test -s conftest.one && test -s conftest.two &&
2415 test -s conftest.dir/conftest.one &&
2416 test -s conftest.dir/conftest.two
2417 then
2418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419 break 3
2423 done
2424 done
2426 esac
2428 done
2429 IFS=$as_save_IFS
2431 rm -rf conftest.one conftest.two conftest.dir
2434 if test "${ac_cv_path_install+set}" = set; then
2435 INSTALL=$ac_cv_path_install
2436 else
2437 # As a last resort, use the slow shell script. Don't cache a
2438 # value for INSTALL within a source directory, because that will
2439 # break other packages using the cache if that directory is
2440 # removed, or if the value is a relative name.
2441 INSTALL=$ac_install_sh
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445 $as_echo "$INSTALL" >&6; }
2447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448 # It thinks the first close brace ends the variable substitution.
2449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2456 $as_echo_n "checking whether ln works... " >&6; }
2457 if test "${acx_cv_prog_LN+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 rm -f conftestdata_t
2461 echo >conftestdata_f
2462 if ln conftestdata_f conftestdata_t 2>/dev/null
2463 then
2464 acx_cv_prog_LN=ln
2465 else
2466 acx_cv_prog_LN=no
2468 rm -f conftestdata_f conftestdata_t
2471 if test $acx_cv_prog_LN = no; then
2472 LN="cp"
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2474 $as_echo "no, using $LN" >&6; }
2475 else
2476 LN="$acx_cv_prog_LN"
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2478 $as_echo "yes" >&6; }
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2482 $as_echo_n "checking whether ln -s works... " >&6; }
2483 LN_S=$as_ln_s
2484 if test "$LN_S" = "ln -s"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2486 $as_echo "yes" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2489 $as_echo "no, using $LN_S" >&6; }
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2493 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2494 if test "${ac_cv_path_SED+set}" = set; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2498 for ac_i in 1 2 3 4 5 6 7; do
2499 ac_script="$ac_script$as_nl$ac_script"
2500 done
2501 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2502 { ac_script=; unset ac_script;}
2503 if test -z "$SED"; then
2504 ac_path_SED_found=false
2505 # Loop through the user's path and test for each of PROGNAME-LIST
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_prog in sed gsed; do
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2514 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2515 # Check for GNU ac_path_SED and select it if it is found.
2516 # Check for GNU $ac_path_SED
2517 case `"$ac_path_SED" --version 2>&1` in
2518 *GNU*)
2519 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2521 ac_count=0
2522 $as_echo_n 0123456789 >"conftest.in"
2523 while :
2525 cat "conftest.in" "conftest.in" >"conftest.tmp"
2526 mv "conftest.tmp" "conftest.in"
2527 cp "conftest.in" "conftest.nl"
2528 $as_echo '' >> "conftest.nl"
2529 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2531 as_fn_arith $ac_count + 1 && ac_count=$as_val
2532 if test $ac_count -gt ${ac_path_SED_max-0}; then
2533 # Best one so far, save it but keep looking for a better one
2534 ac_cv_path_SED="$ac_path_SED"
2535 ac_path_SED_max=$ac_count
2537 # 10*(2^10) chars as input seems more than enough
2538 test $ac_count -gt 10 && break
2539 done
2540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2541 esac
2543 $ac_path_SED_found && break 3
2544 done
2545 done
2546 done
2547 IFS=$as_save_IFS
2548 if test -z "$ac_cv_path_SED"; then
2549 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2551 else
2552 ac_cv_path_SED=$SED
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2557 $as_echo "$ac_cv_path_SED" >&6; }
2558 SED="$ac_cv_path_SED"
2559 rm -f conftest.sed
2561 for ac_prog in gawk mawk nawk awk
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566 $as_echo_n "checking for $ac_word... " >&6; }
2567 if test "${ac_cv_prog_AWK+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 if test -n "$AWK"; then
2571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_AWK="$ac_prog"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2584 done
2585 done
2586 IFS=$as_save_IFS
2590 AWK=$ac_cv_prog_AWK
2591 if test -n "$AWK"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2593 $as_echo "$AWK" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2600 test -n "$AWK" && break
2601 done
2604 ### we might need to use some other shell than /bin/sh for running subshells
2605 ### If we are on Windows, search for the shell. This will permit people
2606 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2607 ### without also having to set CONFIG_SHELL. This code will work when
2608 ### using bash, which sets OSTYPE.
2609 case "${OSTYPE}" in
2610 *win32*)
2611 if test x${CONFIG_SHELL} = x ; then
2612 if test ! -f /bin/sh ; then
2613 if test x${SHELL} != x && test -f ${SHELL} ; then
2614 CONFIG_SHELL=${SHELL}
2615 export CONFIG_SHELL
2616 else
2617 for prog in sh sh.exe bash bash.exe; do
2618 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2619 for dir in $PATH; do
2620 test -z "$dir" && dir=.
2621 if test -f $dir/$prog; then
2622 CONFIG_SHELL=$dir/$prog
2623 export CONFIG_SHELL
2624 break
2626 done
2627 IFS="$save_ifs"
2628 test -n "${CONFIG_SHELL}" && break
2629 done
2634 esac
2636 config_shell=${CONFIG_SHELL-/bin/sh}
2638 moveifchange=${srcdir}/move-if-change
2640 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2642 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2643 # a relative path.
2644 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2645 INSTALL="${srcpwd}/install-sh -c"
2648 # Set srcdir to "." if that's what it is.
2649 # This is important for multilib support.
2650 pwd=`${PWDCMD-pwd}`
2651 if test "${pwd}" = "${srcpwd}" ; then
2652 srcdir=.
2655 topsrcdir=$srcpwd
2657 extra_host_args=
2659 ### To add a new directory to the tree, first choose whether it is a target
2660 ### or a host dependent tool. Then put it into the appropriate list
2661 ### (library or tools, host or target), doing a dependency sort.
2663 # Subdirs will be configured in the order listed in build_configdirs,
2664 # configdirs, or target_configdirs; see the serialization section below.
2666 # Dependency sorting is only needed when *configuration* must be done in
2667 # a particular order. In all cases a dependency should be specified in
2668 # the Makefile, whether or not it's implicitly specified here.
2670 # Double entries in build_configdirs, configdirs, or target_configdirs may
2671 # cause circular dependencies and break everything horribly.
2673 # these library is used by various programs built for the build
2674 # environment
2676 build_libs="build-libiberty"
2678 # these tools are built for the build environment
2679 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2681 # these libraries are used by various programs built for the host environment
2683 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2685 # these tools are built for the host environment
2686 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2687 # know that we are building the simulator.
2688 # binutils, gas and ld appear in that order because it makes sense to run
2689 # "make check" in that particular order.
2690 # If --enable-gold is used, "gold" may replace "ld".
2691 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"
2693 # libgcj represents the runtime libraries only used by gcj.
2694 libgcj="target-libffi \
2695 target-zlib \
2696 target-qthreads \
2697 target-libjava"
2699 # these libraries are built for the target environment, and are built after
2700 # the host libraries and the host tools (which may be a cross compiler)
2702 target_libraries="target-libgcc \
2703 target-libiberty \
2704 target-libgloss \
2705 target-newlib \
2706 target-libgomp \
2707 target-libstdc++-v3 \
2708 target-libmudflap \
2709 target-libssp \
2710 target-libquadmath \
2711 target-libgfortran \
2712 target-boehm-gc \
2713 ${libgcj} \
2714 target-libobjc \
2715 target-libada \
2716 target-libgo \
2717 target-libgpython"
2719 # these tools are built using the target libraries, and are intended to
2720 # run only in the target environment
2722 # note: any program that *uses* libraries that are in the "target_libraries"
2723 # list belongs in this list. those programs are also very likely
2724 # candidates for the "native_only" list which follows
2726 target_tools="target-examples target-groff target-gperf target-rda"
2728 ################################################################################
2730 ## All tools belong in one of the four categories, and are assigned above
2731 ## We assign ${configdirs} this way to remove all embedded newlines. This
2732 ## is important because configure will choke if they ever get through.
2733 ## ${configdirs} is directories we build using the host tools.
2734 ## ${target_configdirs} is directories we build using the target tools.
2735 configdirs=`echo ${host_libs} ${host_tools}`
2736 target_configdirs=`echo ${target_libraries} ${target_tools}`
2737 build_configdirs=`echo ${build_libs} ${build_tools}`
2741 ################################################################################
2743 srcname="gnu development package"
2745 # This gets set non-empty for some net releases of packages.
2746 appdirs=""
2748 # Define is_cross_compiler to save on calls to 'test'.
2749 is_cross_compiler=
2750 if test x"${host}" = x"${target}" ; then
2751 is_cross_compiler=no
2752 else
2753 is_cross_compiler=yes
2756 # Find the build and target subdir names.
2758 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2759 # have matching libraries, they should use host libraries: Makefile.tpl
2760 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2761 # However, they still use the build modules, because the corresponding
2762 # host modules (e.g. bison) are only built for the host when bootstrap
2763 # finishes. So:
2764 # - build_subdir is where we find build modules, and never changes.
2765 # - build_libsubdir is where we find build libraries, and can be overridden.
2767 # Prefix 'build-' so this never conflicts with target_subdir.
2768 build_subdir="build-${build_noncanonical}"
2770 # Check whether --with-build-libsubdir was given.
2771 if test "${with_build_libsubdir+set}" = set; then :
2772 withval=$with_build_libsubdir; build_libsubdir="$withval"
2773 else
2774 build_libsubdir="$build_subdir"
2777 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2778 if ( test $srcdir = . && test -d gcc ) \
2779 || test -d $srcdir/../host-${host_noncanonical}; then
2780 host_subdir="host-${host_noncanonical}"
2781 else
2782 host_subdir=.
2784 # No prefix.
2785 target_subdir=${target_noncanonical}
2787 # Be sure to cover against remnants of an in-tree build.
2788 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2789 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2790 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2793 # Skipdirs are removed silently.
2794 skipdirs=
2795 # Noconfigdirs are removed loudly.
2796 noconfigdirs=""
2798 use_gnu_ld=
2799 # Make sure we don't let GNU ld be added if we didn't want it.
2800 if test x$with_gnu_ld = xno ; then
2801 use_gnu_ld=no
2802 noconfigdirs="$noconfigdirs ld gold"
2805 use_gnu_as=
2806 # Make sure we don't let GNU as be added if we didn't want it.
2807 if test x$with_gnu_as = xno ; then
2808 use_gnu_as=no
2809 noconfigdirs="$noconfigdirs gas"
2812 use_included_zlib=
2813 # Make sure we don't let ZLIB be added if we didn't want it.
2814 if test x$with_system_zlib = xyes ; then
2815 use_included_zlib=no
2816 noconfigdirs="$noconfigdirs zlib"
2819 # some tools are so dependent upon X11 that if we're not building with X,
2820 # it's not even worth trying to configure, much less build, that tool.
2822 case ${with_x} in
2823 yes | "") ;; # the default value for this tree is that X11 is available
2825 skipdirs="${skipdirs} tk itcl libgui"
2826 # We won't be able to build gdbtk without X.
2827 enable_gdbtk=no
2829 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2830 esac
2832 # Some tools are only suitable for building in a "native" situation.
2833 # Remove these if host!=target.
2834 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"
2836 # Similarly, some are only suitable for cross toolchains.
2837 # Remove these if host=target.
2838 cross_only="target-libgloss target-newlib target-opcodes"
2840 case $is_cross_compiler in
2841 no) skipdirs="${skipdirs} ${cross_only}" ;;
2842 yes) skipdirs="${skipdirs} ${native_only}" ;;
2843 esac
2845 # If both --with-headers and --with-libs are specified, default to
2846 # --without-newlib.
2847 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2848 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2849 if test x"${with_newlib}" = x ; then
2850 with_newlib=no
2854 # Recognize --with-newlib/--without-newlib.
2855 case ${with_newlib} in
2856 no) skipdirs="${skipdirs} target-newlib" ;;
2857 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2858 esac
2860 # Handle --enable-gold, --enable-ld.
2861 # --disable-gold [--enable-ld]
2862 # Build only ld. Default option.
2863 # --enable-gold [--enable-ld]
2864 # Build both gold and ld. Install gold as "ld.gold", install ld
2865 # as "ld.bfd" and "ld".
2866 # --enable-gold=default [--enable-ld]
2867 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2868 # install ld as "ld.bfd".
2869 # --enable-gold[=default] --disable-ld
2870 # Build only gold, which is then installed as both "ld.gold" and "ld".
2871 # --enable-gold --enable-ld=default
2872 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2873 # and ld.bfd).
2874 # In other words, ld is default
2875 # --enable-gold=default --enable-ld=default
2876 # Error.
2878 default_ld=
2879 # Check whether --enable-gold was given.
2880 if test "${enable_gold+set}" = set; then :
2881 enableval=$enable_gold; ENABLE_GOLD=$enableval
2882 else
2883 ENABLE_GOLD=no
2886 case "${ENABLE_GOLD}" in
2887 yes|default)
2888 # Check for ELF target.
2889 is_elf=no
2890 case "${target}" in
2891 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2892 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2893 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2894 case "${target}" in
2895 *-*-linux*aout* | *-*-linux*oldld*)
2898 is_elf=yes
2900 esac
2901 esac
2903 if test "$is_elf" = "yes"; then
2904 # Check for target supported by gold.
2905 case "${target}" in
2906 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2907 configdirs="$configdirs gold"
2908 if test x${ENABLE_GOLD} = xdefault; then
2909 default_ld=gold
2911 ENABLE_GOLD=yes
2913 esac
2919 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2921 esac
2923 # Check whether --enable-ld was given.
2924 if test "${enable_ld+set}" = set; then :
2925 enableval=$enable_ld; ENABLE_LD=$enableval
2926 else
2927 ENABLE_LD=yes
2931 case "${ENABLE_LD}" in
2932 default)
2933 if test x${default_ld} != x; then
2934 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2937 yes)
2940 if test x${ENABLE_GOLD} != xyes; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2942 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2944 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2947 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2949 esac
2951 # Configure extra directories which are host specific
2953 case "${host}" in
2954 *-cygwin*)
2955 configdirs="$configdirs libtermcap" ;;
2956 esac
2958 # A target can indicate whether a language isn't supported for some reason.
2959 # Only spaces may be used in this macro; not newlines or tabs.
2960 unsupported_languages=
2962 # Remove more programs from consideration, based on the host or
2963 # target this usually means that a port of the program doesn't
2964 # exist yet.
2966 case "${host}" in
2967 hppa*64*-*-*)
2968 noconfigdirs="$noconfigdirs byacc"
2970 i[3456789]86-*-vsta)
2971 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2973 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2974 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2976 x86_64-*-mingw*)
2977 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2979 i[3456789]86-*-mingw32*)
2980 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2981 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2983 i[3456789]86-*-beos*)
2984 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2986 *-*-cygwin*)
2987 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2989 *-*-netbsd*)
2990 noconfigdirs="$noconfigdirs rcs"
2992 ppc*-*-pe)
2993 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2995 powerpc-*-beos*)
2996 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2998 esac
3001 # Check whether --enable-libquadmath was given.
3002 if test "${enable_libquadmath+set}" = set; then :
3003 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3004 else
3005 ENABLE_LIBQUADMATH=yes
3008 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3009 noconfigdirs="$noconfigdirs target-libquadmath"
3013 # Check whether --enable-libquadmath-support was given.
3014 if test "${enable_libquadmath_support+set}" = set; then :
3015 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3016 else
3017 ENABLE_LIBQUADMATH_SUPPORT=yes
3020 enable_libquadmath_support=
3021 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3022 enable_libquadmath_support=no
3026 # Check whether --enable-libada was given.
3027 if test "${enable_libada+set}" = set; then :
3028 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3029 else
3030 ENABLE_LIBADA=yes
3033 if test "${ENABLE_LIBADA}" != "yes" ; then
3034 noconfigdirs="$noconfigdirs gnattools"
3037 # Check whether --enable-libssp was given.
3038 if test "${enable_libssp+set}" = set; then :
3039 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3040 else
3041 ENABLE_LIBSSP=yes
3045 # Save it here so that, even in case of --enable-libgcj, if the Java
3046 # front-end isn't enabled, we still get libgcj disabled.
3047 libgcj_saved=$libgcj
3048 case $enable_libgcj in
3049 yes)
3050 # If we reset it here, it won't get added to noconfigdirs in the
3051 # target-specific build rules, so it will be forcibly enabled
3052 # (unless the Java language itself isn't enabled).
3053 libgcj=
3056 # Make sure we get it printed in the list of not supported target libs.
3057 # Don't disable libffi, though, other languages use it.
3058 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3059 # Clear libgcj_saved so that even if java is enabled libffi won't be
3060 # built.
3061 libgcj_saved=
3063 esac
3066 # Disable libmudflap on some systems.
3067 if test x$enable_libmudflap = x ; then
3068 case "${target}" in
3069 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3070 # Enable libmudflap by default in GNU and friends.
3072 *-*-freebsd*)
3073 # Enable libmudflap by default in FreeBSD.
3076 # Disable it by default everywhere else.
3077 noconfigdirs="$noconfigdirs target-libmudflap"
3079 esac
3082 # Disable libgomp on non POSIX hosted systems.
3083 if test x$enable_libgomp = x ; then
3084 # Enable libgomp by default on hosted POSIX systems.
3085 case "${target}" in
3086 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3088 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3090 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3092 *-*-darwin* | *-*-aix*)
3095 noconfigdirs="$noconfigdirs target-libgomp"
3097 esac
3100 # Default libgloss CPU subdirectory.
3101 libgloss_dir="$target_cpu"
3103 case "${target}" in
3104 *-*-chorusos)
3105 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3107 powerpc-*-darwin*)
3108 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3109 noconfigdirs="$noconfigdirs sim target-rda"
3111 i[3456789]86-*-darwin*)
3112 noconfigdirs="$noconfigdirs ld gprof"
3113 noconfigdirs="$noconfigdirs sim target-rda"
3115 x86_64-*-darwin[912]*)
3116 noconfigdirs="$noconfigdirs ld gas gprof"
3117 noconfigdirs="$noconfigdirs sim target-rda"
3119 *-*-darwin*)
3120 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3121 noconfigdirs="$noconfigdirs sim target-rda"
3122 noconfigdirs="$noconfigdirs ${libgcj}"
3124 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3125 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3127 *-*-freebsd*)
3128 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3129 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3130 && test -f /usr/local/include/gmp.h; then
3131 with_gmp=/usr/local
3134 # Skip some stuff that's unsupported on some FreeBSD configurations.
3135 case "${target}" in
3136 i*86-*-*) ;;
3137 alpha*-*-*) ;;
3138 x86_64-*-*) ;;
3140 noconfigdirs="$noconfigdirs ${libgcj}"
3142 esac
3144 *-*-kaos*)
3145 # Remove unsupported stuff on all kaOS configurations.
3146 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3147 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3148 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3149 noconfigdirs="$noconfigdirs target-libgloss"
3151 *-*-netbsd*)
3152 # Skip some stuff on all NetBSD configurations.
3153 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3155 # Skip some stuff that's unsupported on some NetBSD configurations.
3156 case "${target}" in
3157 i*86-*-netbsdelf*) ;;
3158 arm*-*-netbsdelf*) ;;
3160 noconfigdirs="$noconfigdirs ${libgcj}"
3162 esac
3164 *-*-netware*)
3165 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3167 *-*-rtems*)
3168 skipdirs="${skipdirs} target-libiberty"
3169 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3171 # The tpf target doesn't support gdb yet.
3172 *-*-tpf*)
3173 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3175 *-*-uclinux*)
3176 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3178 *-*-vxworks*)
3179 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3181 alpha*-dec-osf*)
3182 # ld works, but does not support shared libraries.
3183 # newlib is not 64 bit ready. I'm not sure about fileutils.
3184 # gas doesn't generate exception information.
3185 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3187 alpha*-*-*vms*)
3188 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3190 alpha*-*-linux*)
3191 # newlib is not 64 bit ready
3192 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3194 alpha*-*-*)
3195 # newlib is not 64 bit ready
3196 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3198 am33_2.0-*-linux*)
3199 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3201 sh-*-linux*)
3202 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3204 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3205 noconfigdirs="$noconfigdirs ${libgcj}"
3206 noconfigdirs="$noconfigdirs target-examples"
3207 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3208 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3209 noconfigdirs="$noconfigdirs expect dejagnu"
3210 # the C++ libraries don't build on top of CE's C libraries
3211 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3212 noconfigdirs="$noconfigdirs target-newlib"
3213 case "${host}" in
3214 *-*-cygwin*) ;; # keep gdb and readline
3215 *) noconfigdirs="$noconfigdirs gdb readline"
3217 esac
3218 libgloss_dir=wince
3220 arc-*-*)
3221 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3223 arm-semi-aof )
3225 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3226 noconfigdirs="$noconfigdirs ${libgcj}"
3227 libgloss_dir=arm
3229 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3230 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3231 libgloss_dir=arm
3233 arm*-*-linux-gnueabi)
3234 noconfigdirs="$noconfigdirs target-qthreads"
3235 case ${with_newlib} in
3236 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3237 esac
3238 libgloss_dir=arm
3240 arm*-*-symbianelf*)
3241 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3242 libgloss_dir=arm
3244 arm-*-pe*)
3245 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3247 thumb-*-coff)
3248 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3250 thumb-*-elf)
3251 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3253 thumb-*-pe)
3254 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3256 arm-*-riscix*)
3257 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3259 avr-*-*)
3260 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3262 bfin-*-*)
3263 unsupported_languages="$unsupported_languages java"
3264 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3265 if test x${is_cross_compiler} != xno ; then
3266 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3269 c4x-*-* | tic4x-*-*)
3270 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3272 c54x*-*-* | tic54x-*-*)
3273 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3275 cr16-*-*)
3276 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3278 cris-*-* | crisv32-*-*)
3279 unsupported_languages="$unsupported_languages java"
3280 case "${target}" in
3281 *-*-aout)
3282 unsupported_languages="$unsupported_languages fortran"
3283 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3284 *-*-elf) # See PR46792 regarding target-libffi.
3285 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3286 *-*-linux*)
3287 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3289 unsupported_languages="$unsupported_languages fortran"
3290 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3291 esac
3292 libgloss_dir=cris
3294 crx-*-*)
3295 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3297 d10v-*-*)
3298 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3300 d30v-*-*)
3301 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3303 ep9312-*-elf | ep9312-*-coff)
3304 libgloss_dir=arm
3306 fr30-*-elf*)
3307 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3309 frv-*-*)
3310 noconfigdirs="$noconfigdirs ${libgcj}"
3312 moxie-*-*)
3313 noconfigdirs="$noconfigdirs ${libgcj}"
3314 noconfigdirs="$noconfigdirs gprof"
3316 h8300*-*-*)
3317 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3319 h8500-*-*)
3320 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3322 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3324 hppa*64*-*-linux* | parisc*64*-*-linux*)
3325 # In this case, it's because the hppa64-linux target is for
3326 # the kernel only at this point and has no libc, and thus no
3327 # headers, crt*.o, etc., all of which are needed by these.
3328 noconfigdirs="$noconfigdirs target-zlib"
3330 parisc*-*-linux* | hppa*-*-linux*)
3332 hppa*-*-*elf* | \
3333 hppa*-*-lites* | \
3334 hppa*-*-openbsd* | \
3335 hppa*64*-*-*)
3336 noconfigdirs="$noconfigdirs ${libgcj}"
3338 hppa*-hp-hpux11*)
3339 noconfigdirs="$noconfigdirs ld shellutils"
3341 hppa*-*-pro*)
3342 libgloss_dir=pa
3344 hppa*-*-*)
3345 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3346 # build on HP-UX 10.20.
3347 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3349 i960-*-*)
3350 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3352 ia64*-*-elf*)
3353 # No gdb support yet.
3354 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3356 ia64*-**-hpux*)
3357 # No gdb or ld support yet.
3358 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3360 ia64*-*-*vms*)
3361 # No gdb or ld support yet.
3362 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3364 i370-*-opened*)
3366 i[3456789]86-*-coff | i[3456789]86-*-elf)
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3368 libgloss_dir=i386
3370 i[3456789]86-*-linux*)
3371 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3372 # not build java stuff by default.
3373 case "${target}" in
3374 *-*-*libc1*)
3375 noconfigdirs="$noconfigdirs ${libgcj}";;
3376 esac
3378 # This section makes it possible to build newlib natively on linux.
3379 # If we are using a cross compiler then don't configure newlib.
3380 if test x${is_cross_compiler} != xno ; then
3381 noconfigdirs="$noconfigdirs target-newlib"
3383 noconfigdirs="$noconfigdirs target-libgloss"
3384 # If we are not using a cross compiler, do configure newlib.
3385 # Note however, that newlib will only be configured in this situation
3386 # if the --with-newlib option has been given, because otherwise
3387 # 'target-newlib' will appear in skipdirs.
3389 i[3456789]86-w64-mingw*)
3390 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3392 i[3456789]86-*-mingw*)
3393 target_configdirs="$target_configdirs target-winsup"
3394 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3396 x86_64-*-mingw*)
3397 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3399 *-*-cygwin*)
3400 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3401 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3402 # always build newlib if winsup directory is present.
3403 if test -d "$srcdir/winsup/cygwin"; then
3404 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3405 elif test -d "$srcdir/newlib"; then
3406 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3409 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3410 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3412 i[3456789]86-*-pe)
3413 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3415 i[3456789]86-*-sco3.2v5*)
3416 # The linker does not yet know about weak symbols in COFF,
3417 # and is not configured to handle mixed ELF and COFF.
3418 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3420 i[3456789]86-*-sco*)
3421 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3423 i[3456789]86-*-solaris2*)
3424 noconfigdirs="$noconfigdirs target-libgloss"
3426 i[3456789]86-*-sysv4*)
3427 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3429 i[3456789]86-*-beos*)
3430 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3432 i[3456789]86-*-rdos*)
3433 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3435 m32r-*-*)
3436 noconfigdirs="$noconfigdirs ${libgcj}"
3438 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3439 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3440 libgloss_dir=m68hc11
3442 m68k-*-elf*)
3443 noconfigdirs="$noconfigdirs ${libgcj}"
3445 m68k-*-coff*)
3446 noconfigdirs="$noconfigdirs ${libgcj}"
3448 m68*-*-* | fido-*-*)
3449 libgloss_dir=m68k
3451 mcore-*-pe*)
3452 # The EPOC C++ environment does not support exceptions or rtti,
3453 # and so building libstdc++-v3 tends not to always work.
3454 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3456 mmix-*-*)
3457 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3458 unsupported_languages="$unsupported_languages fortran java"
3460 mn10200-*-*)
3461 noconfigdirs="$noconfigdirs ${libgcj}"
3463 mn10300-*-*)
3464 noconfigdirs="$noconfigdirs ${libgcj}"
3466 mt-*-*)
3467 noconfigdirs="$noconfigdirs sim"
3469 powerpc-*-aix*)
3470 # copied from rs6000-*-* entry
3471 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3473 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3474 target_configdirs="$target_configdirs target-winsup"
3475 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3476 # always build newlib.
3477 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3479 # This is temporary until we can link against shared libraries
3480 powerpcle-*-solaris*)
3481 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3482 libgloss_dir=rs6000
3484 powerpc-*-beos*)
3485 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3487 powerpc-*-eabi)
3488 noconfigdirs="$noconfigdirs ${libgcj}"
3489 libgloss_dir=rs6000
3491 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3492 libgloss_dir=rs6000
3494 rs6000-*-lynxos*)
3495 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3497 rs6000-*-aix*)
3498 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3500 rs6000-*-*)
3501 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3503 m68k-apollo-*)
3504 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3506 microblaze*)
3507 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3509 mips*-sde-elf*)
3510 skipdirs="$skipdirs target-libiberty"
3511 noconfigdirs="$noconfigdirs ${libgcj}"
3512 if test x$with_newlib = xyes; then
3513 noconfigdirs="$noconfigdirs gprof"
3515 libgloss_dir=mips
3517 mips*-*-irix5*)
3518 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3520 mips*-*-irix6*)
3521 # Linking libjava exceeds command-line length limits on at least
3522 # IRIX 6.2, but not on IRIX 6.5.
3523 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3524 # <oldham@codesourcery.com>
3525 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3527 mips*-*-bsd*)
3528 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3530 mips*-*-linux*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3533 mips*-*-*)
3534 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3535 libgloss_dir=mips
3537 romp-*-*)
3538 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3540 sh-*-* | sh64-*-*)
3541 case "${host}" in
3542 i[3456789]86-*-vsta) ;; # don't add gprof back in
3543 i[3456789]86-*-go32*) ;; # don't add gprof back in
3544 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3545 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3546 esac
3547 case "${target}" in
3548 sh*-*-elf)
3549 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3551 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3552 esac
3554 sparclet-*-aout* | sparc86x-*-*)
3555 libgloss_dir=sparc
3557 sparc-*-elf*)
3558 noconfigdirs="$noconfigdirs ${libgcj}"
3560 sparc64-*-elf*)
3561 noconfigdirs="$noconfigdirs ${libgcj}"
3562 libgloss_dir=sparc
3564 sparclite-*-*)
3565 noconfigdirs="$noconfigdirs ${libgcj}"
3566 libgloss_dir=sparc
3568 sparc-*-sunos4*)
3569 noconfigdirs="$noconfigdirs ${libgcj}"
3570 if test x${is_cross_compiler} != xno ; then
3571 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3572 else
3573 use_gnu_ld=no
3576 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3577 noconfigdirs="$noconfigdirs ${libgcj}"
3579 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3581 tic6x-*-*)
3582 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3584 v810-*-*)
3585 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3587 v850*-*-*)
3588 noconfigdirs="$noconfigdirs ${libgcj}"
3590 vax-*-vms)
3591 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3593 vax-*-*)
3594 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3596 xtensa*-*-*)
3597 noconfigdirs="$noconfigdirs ${libgcj}"
3599 ip2k-*-*)
3600 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3602 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3603 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3605 *-*-lynxos*)
3606 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3608 *-*-*)
3609 noconfigdirs="$noconfigdirs ${libgcj}"
3611 esac
3613 # If we aren't building newlib, then don't build libgloss, since libgloss
3614 # depends upon some newlib header files.
3615 case "${noconfigdirs}" in
3616 *target-libgloss*) ;;
3617 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3618 esac
3620 # Work in distributions that contain no compiler tools, like Autoconf.
3621 tentative_cc=""
3622 host_makefile_frag=/dev/null
3623 if test -d ${srcdir}/config ; then
3624 case "${host}" in
3625 m68k-hp-hpux*)
3626 # Avoid "too much defining" errors from HPUX compiler.
3627 tentative_cc="cc -Wp,-H256000"
3628 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3629 # If it's HP/UX ar, this should be harmless.
3630 RANLIB="ar ts"
3632 m68k-apollo-sysv*)
3633 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3635 m68k-apollo-bsd*)
3636 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3637 # chokes on bfd, the compiler won't let you assign integers to enums, and
3638 # other problems. Defining CC to gcc is a questionable way to say "don't use
3639 # the apollo compiler" (the preferred version of GCC could be called cc,
3640 # or whatever), but I'm not sure leaving CC as cc is any better...
3641 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3642 # Used to have BISON=yacc.
3643 tentative_cc=gcc
3645 m88k-dg-dgux*)
3646 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3648 m88k-harris-cxux*)
3649 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3650 tentative_cc="cc -Xa"
3651 host_makefile_frag="config/mh-cxux"
3653 m88k-motorola-sysv*)
3655 mips*-dec-ultrix*)
3656 tentative_cc="cc -Wf,-XNg1000"
3657 host_makefile_frag="config/mh-decstation"
3659 mips*-nec-sysv4*)
3660 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3661 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3662 host_makefile_frag="config/mh-necv4"
3664 mips*-sgi-irix4*)
3665 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3666 # environment. Also bump switch table size so that cp-parse will
3667 # compile. Bump string length limit so linker builds.
3668 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3670 mips*-*-sysv4*)
3671 host_makefile_frag="config/mh-sysv4"
3673 mips*-*-sysv*)
3674 # This is for a MIPS running RISC/os 4.52C.
3676 # This is needed for GDB, but needs to be in the top-level make because
3677 # if a library is compiled with the bsd headers and gets linked with the
3678 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3679 # a different size).
3680 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3681 # known except to select the sysv environment. Could we use /proc instead?
3682 # These "sysv environments" and "bsd environments" often end up being a pain.
3684 # This is not part of CFLAGS because perhaps not all C compilers have this
3685 # option.
3686 tentative_cc="cc -systype sysv"
3688 i370-ibm-opened*)
3689 tentative_cc="c89"
3691 i[3456789]86-*-sysv5*)
3692 host_makefile_frag="config/mh-sysv5"
3694 i[3456789]86-*-dgux*)
3695 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3696 host_makefile_frag="config/mh-dgux386"
3698 i[3456789]86-ncr-sysv4.3*)
3699 # The MetaWare compiler will generate a copyright message unless you
3700 # turn it off by adding the -Hnocopyr flag.
3701 tentative_cc="cc -Hnocopyr"
3703 i[3456789]86-ncr-sysv4*)
3704 # for an NCR 3000 (i486/SVR4) system.
3705 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3706 # This compiler not only emits obnoxious copyright messages every time
3707 # you run it, but it chokes and dies on a whole bunch of GNU source
3708 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3709 tentative_cc="/usr/ccs/ATT/cc"
3710 host_makefile_frag="config/mh-ncr3000"
3712 i[3456789]86-*-sco3.2v5*)
3714 i[3456789]86-*-sco*)
3715 # The native C compiler botches some simple uses of const. Unfortunately,
3716 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3717 tentative_cc="cc -Dconst="
3718 host_makefile_frag="config/mh-sco"
3720 i[3456789]86-*-udk*)
3721 host_makefile_frag="config/mh-sysv5"
3723 i[3456789]86-*-solaris2*)
3724 host_makefile_frag="config/mh-sysv4"
3726 i[3456789]86-*-msdosdjgpp*)
3727 host_makefile_frag="config/mh-djgpp"
3729 *-cygwin*)
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3732 $as_echo_n "checking to see if cat works as expected... " >&6; }
3733 echo a >cygwin-cat-check
3734 if test `cat cygwin-cat-check` = a ; then
3735 rm cygwin-cat-check
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3737 $as_echo "yes" >&6; }
3738 else
3739 rm cygwin-cat-check
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3742 as_fn_error "The cat command does not ignore carriage return characters.
3743 Please either mount the build directory in binary mode or run the following
3744 commands before running any configure script:
3745 set -o igncr
3746 export SHELLOPTS
3747 " "$LINENO" 5
3750 host_makefile_frag="config/mh-cygwin"
3752 *-mingw*)
3753 host_makefile_frag="config/mh-mingw"
3755 *-interix*)
3756 host_makefile_frag="config/mh-interix"
3758 vax-*-ultrix2*)
3759 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3760 tentative_cc=gcc
3762 *-*-solaris2*)
3763 host_makefile_frag="config/mh-solaris"
3765 m68k-sun-sunos*)
3766 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3767 # without overflowing the jump tables (-J says to use a 32 bit table)
3768 tentative_cc="cc -J"
3770 hppa*-hp-hpux10*)
3771 tentative_cc="cc -Wp,-H256000"
3772 host_makefile_frag="config/mh-pa-hpux10"
3774 hppa*-hp-hpux* | hppa*-*-hiux*)
3775 tentative_cc="cc -Wp,-H256000"
3776 host_makefile_frag="config/mh-pa"
3778 hppa*-*)
3779 host_makefile_frag="config/mh-pa"
3781 *-hp-hpux* | *-*-hiux*)
3782 tentative_cc="cc -Wp,-H256000"
3784 rs6000-*-lynxos*)
3785 # /bin/cc is less than useful for our purposes. Always use GCC
3786 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3787 host_makefile_frag="config/mh-lynxrs6k"
3789 *-*-darwin*)
3790 host_makefile_frag="config/mh-darwin"
3792 powerpc-*-aix*)
3793 host_makefile_frag="config/mh-ppc-aix"
3795 rs6000-*-aix*)
3796 host_makefile_frag="config/mh-ppc-aix"
3798 *-*-lynxos*)
3799 # /bin/cc is less than useful for our purposes. Always use GCC
3800 tentative_cc="/bin/gcc"
3802 *-*-sysv4*)
3803 host_makefile_frag="config/mh-sysv4"
3805 # This is placed last to prevent interfering with the cases above.
3806 i[3456789]86-*-*)
3807 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3808 host_makefile_frag="config/mh-x86omitfp"
3810 esac
3813 # If we aren't going to be using gcc, see if we can extract a definition
3814 # of CC from the fragment.
3815 # Actually, use the 'pre-extracted' version above.
3816 if test -z "${CC}" && test "${build}" = "${host}" ; then
3817 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3818 found=
3819 for dir in $PATH; do
3820 test -z "$dir" && dir=.
3821 if test -f $dir/gcc; then
3822 found=yes
3823 break
3825 done
3826 IFS="$save_ifs"
3827 if test -z "${found}" && test -n "${tentative_cc}" ; then
3828 CC=$tentative_cc
3832 if test "${build}" != "${host}" ; then
3833 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3834 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3835 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3836 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3837 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3838 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3839 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3840 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3841 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3842 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3843 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3844 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3845 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3846 else
3847 AR_FOR_BUILD="\$(AR)"
3848 AS_FOR_BUILD="\$(AS)"
3849 CC_FOR_BUILD="\$(CC)"
3850 CXX_FOR_BUILD="\$(CXX)"
3851 GCJ_FOR_BUILD="\$(GCJ)"
3852 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3853 GOC_FOR_BUILD="\$(GOC)"
3854 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3855 LD_FOR_BUILD="\$(LD)"
3856 NM_FOR_BUILD="\$(NM)"
3857 RANLIB_FOR_BUILD="\$(RANLIB)"
3858 WINDRES_FOR_BUILD="\$(WINDRES)"
3859 WINDMC_FOR_BUILD="\$(WINDMC)"
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 if test -n "$ac_tool_prefix"; then
3868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871 $as_echo_n "checking for $ac_word... " >&6; }
3872 if test "${ac_cv_prog_CC+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3889 done
3890 done
3891 IFS=$as_save_IFS
3895 CC=$ac_cv_prog_CC
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3899 else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3906 if test -z "$ac_cv_prog_CC"; then
3907 ac_ct_CC=$CC
3908 # Extract the first word of "gcc", so it can be a program name with args.
3909 set dummy gcc; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -n "$ac_ct_CC"; then
3916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 ac_cv_prog_ac_ct_CC="gcc"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3929 done
3930 done
3931 IFS=$as_save_IFS
3935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936 if test -n "$ac_ct_CC"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3938 $as_echo "$ac_ct_CC" >&6; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3944 if test "x$ac_ct_CC" = x; then
3945 CC=""
3946 else
3947 case $cross_compiling:$ac_tool_warned in
3948 yes:)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3951 ac_tool_warned=yes ;;
3952 esac
3953 CC=$ac_ct_CC
3955 else
3956 CC="$ac_cv_prog_CC"
3959 if test -z "$CC"; then
3960 if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}cc; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if test "${ac_cv_prog_CC+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_prog_CC="${ac_tool_prefix}cc"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3984 IFS=$as_save_IFS
3988 CC=$ac_cv_prog_CC
3989 if test -n "$CC"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3991 $as_echo "$CC" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
4000 if test -z "$CC"; then
4001 # Extract the first word of "cc", so it can be a program name with args.
4002 set dummy cc; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if test "${ac_cv_prog_CC+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 if test -n "$CC"; then
4009 ac_cv_prog_CC="$CC" # Let the user override the test.
4010 else
4011 ac_prog_rejected=no
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4020 ac_prog_rejected=yes
4021 continue
4023 ac_cv_prog_CC="cc"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4027 done
4028 done
4029 IFS=$as_save_IFS
4031 if test $ac_prog_rejected = yes; then
4032 # We found a bogon in the path, so make sure we never use it.
4033 set dummy $ac_cv_prog_CC
4034 shift
4035 if test $# != 0; then
4036 # We chose a different compiler from the bogus one.
4037 # However, it has the same basename, so the bogon will be chosen
4038 # first if we set CC to just the basename; use the full file name.
4039 shift
4040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4045 CC=$ac_cv_prog_CC
4046 if test -n "$CC"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048 $as_echo "$CC" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4056 if test -z "$CC"; then
4057 if test -n "$ac_tool_prefix"; then
4058 for ac_prog in cl.exe
4060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if test "${ac_cv_prog_CC+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -n "$CC"; then
4068 ac_cv_prog_CC="$CC" # Let the user override the test.
4069 else
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4081 done
4082 done
4083 IFS=$as_save_IFS
4087 CC=$ac_cv_prog_CC
4088 if test -n "$CC"; then
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4090 $as_echo "$CC" >&6; }
4091 else
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4097 test -n "$CC" && break
4098 done
4100 if test -z "$CC"; then
4101 ac_ct_CC=$CC
4102 for ac_prog in cl.exe
4104 # Extract the first word of "$ac_prog", so it can be a program name with args.
4105 set dummy $ac_prog; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if test -n "$ac_ct_CC"; then
4112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4117 IFS=$as_save_IFS
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121 ac_cv_prog_ac_ct_CC="$ac_prog"
4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 break 2
4125 done
4126 done
4127 IFS=$as_save_IFS
4131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4132 if test -n "$ac_ct_CC"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4134 $as_echo "$ac_ct_CC" >&6; }
4135 else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4141 test -n "$ac_ct_CC" && break
4142 done
4144 if test "x$ac_ct_CC" = x; then
4145 CC=""
4146 else
4147 case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4151 ac_tool_warned=yes ;;
4152 esac
4153 CC=$ac_ct_CC
4160 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error "no acceptable C compiler found in \$PATH
4163 See \`config.log' for more details." "$LINENO" 5; }
4165 # Provide some information about the compiler.
4166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4167 set X $ac_compile
4168 ac_compiler=$2
4169 for ac_option in --version -v -V -qversion; do
4170 { { ac_try="$ac_compiler $ac_option >&5"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4178 ac_status=$?
4179 if test -s conftest.err; then
4180 sed '10a\
4181 ... rest of stderr output deleted ...
4182 10q' conftest.err >conftest.er1
4183 cat conftest.er1 >&5
4184 rm -f conftest.er1 conftest.err
4186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187 test $ac_status = 0; }
4188 done
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4194 main ()
4198 return 0;
4200 _ACEOF
4201 ac_clean_files_save=$ac_clean_files
4202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4203 # Try to create an executable without -o first, disregard a.out.
4204 # It will help us diagnose broken compilers, and finding out an intuition
4205 # of exeext.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4207 $as_echo_n "checking for C compiler default output file name... " >&6; }
4208 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4210 # The possible output files:
4211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4213 ac_rmfiles=
4214 for ac_file in $ac_files
4216 case $ac_file in
4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4219 esac
4220 done
4221 rm -f $ac_rmfiles
4223 if { { ac_try="$ac_link_default"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4229 $as_echo "$ac_try_echo"; } >&5
4230 (eval "$ac_link_default") 2>&5
4231 ac_status=$?
4232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; }; then :
4234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4236 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4237 # so that the user can short-circuit this test for compilers unknown to
4238 # Autoconf.
4239 for ac_file in $ac_files ''
4241 test -f "$ac_file" || continue
4242 case $ac_file in
4243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4245 [ab].out )
4246 # We found the default executable, but exeext='' is most
4247 # certainly right.
4248 break;;
4249 *.* )
4250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4251 then :; else
4252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4254 # We set ac_cv_exeext here because the later test for it is not
4255 # safe: cross compilers may not add the suffix if given an `-o'
4256 # argument, so we may need to know it at that point already.
4257 # Even if this section looks crufty: it has the advantage of
4258 # actually working.
4259 break;;
4261 break;;
4262 esac
4263 done
4264 test "$ac_cv_exeext" = no && ac_cv_exeext=
4266 else
4267 ac_file=''
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4270 $as_echo "$ac_file" >&6; }
4271 if test -z "$ac_file"; then :
4272 $as_echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 { as_fn_set_status 77
4278 as_fn_error "C compiler cannot create executables
4279 See \`config.log' for more details." "$LINENO" 5; }; }
4281 ac_exeext=$ac_cv_exeext
4283 # Check that the compiler produces executables we can run. If not, either
4284 # the compiler is broken, or we cross compile.
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4286 $as_echo_n "checking whether the C compiler works... " >&6; }
4287 # If not cross compiling, check that we can run a simple program.
4288 if test "$cross_compiling" != yes; then
4289 if { ac_try='./$ac_file'
4290 { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }; }; then
4300 cross_compiling=no
4301 else
4302 if test "$cross_compiling" = maybe; then
4303 cross_compiling=yes
4304 else
4305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4307 as_fn_error "cannot run C compiled programs.
4308 If you meant to cross compile, use \`--host'.
4309 See \`config.log' for more details." "$LINENO" 5; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4314 $as_echo "yes" >&6; }
4316 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4317 ac_clean_files=$ac_clean_files_save
4318 # Check that the compiler produces executables we can run. If not, either
4319 # the compiler is broken, or we cross compile.
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4321 $as_echo_n "checking whether we are cross compiling... " >&6; }
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4323 $as_echo "$cross_compiling" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4326 $as_echo_n "checking for suffix of executables... " >&6; }
4327 if { { ac_try="$ac_link"
4328 case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_link") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; then :
4338 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4339 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4340 # work properly (i.e., refer to `conftest.exe'), while it won't with
4341 # `rm'.
4342 for ac_file in conftest.exe conftest conftest.*; do
4343 test -f "$ac_file" || continue
4344 case $ac_file in
4345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4347 break;;
4348 * ) break;;
4349 esac
4350 done
4351 else
4352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4354 as_fn_error "cannot compute suffix of executables: cannot compile and link
4355 See \`config.log' for more details." "$LINENO" 5; }
4357 rm -f conftest$ac_cv_exeext
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4359 $as_echo "$ac_cv_exeext" >&6; }
4361 rm -f conftest.$ac_ext
4362 EXEEXT=$ac_cv_exeext
4363 ac_exeext=$EXEEXT
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4365 $as_echo_n "checking for suffix of object files... " >&6; }
4366 if test "${ac_cv_objext+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4373 main ()
4377 return 0;
4379 _ACEOF
4380 rm -f conftest.o conftest.obj
4381 if { { ac_try="$ac_compile"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_compile") 2>&5
4389 ac_status=$?
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; then :
4392 for ac_file in conftest.o conftest.obj conftest.*; do
4393 test -f "$ac_file" || continue;
4394 case $ac_file in
4395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4396 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4397 break;;
4398 esac
4399 done
4400 else
4401 $as_echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 as_fn_error "cannot compute suffix of object files: cannot compile
4407 See \`config.log' for more details." "$LINENO" 5; }
4409 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4412 $as_echo "$ac_cv_objext" >&6; }
4413 OBJEXT=$ac_cv_objext
4414 ac_objext=$OBJEXT
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4416 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4417 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4424 main ()
4426 #ifndef __GNUC__
4427 choke me
4428 #endif
4431 return 0;
4433 _ACEOF
4434 if ac_fn_c_try_compile "$LINENO"; then :
4435 ac_compiler_gnu=yes
4436 else
4437 ac_compiler_gnu=no
4439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4440 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4444 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4445 if test $ac_compiler_gnu = yes; then
4446 GCC=yes
4447 else
4448 GCC=
4450 ac_test_CFLAGS=${CFLAGS+set}
4451 ac_save_CFLAGS=$CFLAGS
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4453 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4454 if test "${ac_cv_prog_cc_g+set}" = set; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 ac_save_c_werror_flag=$ac_c_werror_flag
4458 ac_c_werror_flag=yes
4459 ac_cv_prog_cc_g=no
4460 CFLAGS="-g"
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4465 main ()
4469 return 0;
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"; then :
4473 ac_cv_prog_cc_g=yes
4474 else
4475 CFLAGS=""
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4480 main ()
4484 return 0;
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4489 else
4490 ac_c_werror_flag=$ac_save_c_werror_flag
4491 CFLAGS="-g"
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 ac_cv_prog_cc_g=yes
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 ac_c_werror_flag=$ac_save_c_werror_flag
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4514 $as_echo "$ac_cv_prog_cc_g" >&6; }
4515 if test "$ac_test_CFLAGS" = set; then
4516 CFLAGS=$ac_save_CFLAGS
4517 elif test $ac_cv_prog_cc_g = yes; then
4518 if test "$GCC" = yes; then
4519 CFLAGS="-g -O2"
4520 else
4521 CFLAGS="-g"
4523 else
4524 if test "$GCC" = yes; then
4525 CFLAGS="-O2"
4526 else
4527 CFLAGS=
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4531 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4532 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 ac_cv_prog_cc_c89=no
4536 ac_save_CC=$CC
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 #include <stdarg.h>
4540 #include <stdio.h>
4541 #include <sys/types.h>
4542 #include <sys/stat.h>
4543 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4544 struct buf { int x; };
4545 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4546 static char *e (p, i)
4547 char **p;
4548 int i;
4550 return p[i];
4552 static char *f (char * (*g) (char **, int), char **p, ...)
4554 char *s;
4555 va_list v;
4556 va_start (v,p);
4557 s = g (p, va_arg (v,int));
4558 va_end (v);
4559 return s;
4562 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4563 function prototypes and stuff, but not '\xHH' hex character constants.
4564 These don't provoke an error unfortunately, instead are silently treated
4565 as 'x'. The following induces an error, until -std is added to get
4566 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4567 array size at least. It's necessary to write '\x00'==0 to get something
4568 that's true only with -std. */
4569 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4571 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4572 inside strings and character constants. */
4573 #define FOO(x) 'x'
4574 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4576 int test (int i, double x);
4577 struct s1 {int (*f) (int a);};
4578 struct s2 {int (*f) (double a);};
4579 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4580 int argc;
4581 char **argv;
4583 main ()
4585 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4587 return 0;
4589 _ACEOF
4590 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4591 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4593 CC="$ac_save_CC $ac_arg"
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_cv_prog_cc_c89=$ac_arg
4597 rm -f core conftest.err conftest.$ac_objext
4598 test "x$ac_cv_prog_cc_c89" != "xno" && break
4599 done
4600 rm -f conftest.$ac_ext
4601 CC=$ac_save_CC
4604 # AC_CACHE_VAL
4605 case "x$ac_cv_prog_cc_c89" in
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4608 $as_echo "none needed" >&6; } ;;
4609 xno)
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4611 $as_echo "unsupported" >&6; } ;;
4613 CC="$CC $ac_cv_prog_cc_c89"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4615 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4616 esac
4617 if test "x$ac_cv_prog_cc_c89" != xno; then :
4621 ac_ext=c
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 ac_ext=cpp
4628 ac_cpp='$CXXCPP $CPPFLAGS'
4629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4632 if test -z "$CXX"; then
4633 if test -n "$CCC"; then
4634 CXX=$CCC
4635 else
4636 if test -n "$ac_tool_prefix"; then
4637 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_CXX+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$CXX"; then
4647 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 CXX=$ac_cv_prog_CXX
4667 if test -n "$CXX"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4669 $as_echo "$CXX" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$CXX" && break
4677 done
4679 if test -z "$CXX"; then
4680 ac_ct_CXX=$CXX
4681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if test -n "$ac_ct_CXX"; then
4691 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700 ac_cv_prog_ac_ct_CXX="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4706 IFS=$as_save_IFS
4710 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4711 if test -n "$ac_ct_CXX"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4713 $as_echo "$ac_ct_CXX" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$ac_ct_CXX" && break
4721 done
4723 if test "x$ac_ct_CXX" = x; then
4724 CXX="g++"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 CXX=$ac_ct_CXX
4738 # Provide some information about the compiler.
4739 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4740 set X $ac_compile
4741 ac_compiler=$2
4742 for ac_option in --version -v -V -qversion; do
4743 { { ac_try="$ac_compiler $ac_option >&5"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4749 $as_echo "$ac_try_echo"; } >&5
4750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4751 ac_status=$?
4752 if test -s conftest.err; then
4753 sed '10a\
4754 ... rest of stderr output deleted ...
4755 10q' conftest.err >conftest.er1
4756 cat conftest.er1 >&5
4757 rm -f conftest.er1 conftest.err
4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760 test $ac_status = 0; }
4761 done
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4764 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4765 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4772 main ()
4774 #ifndef __GNUC__
4775 choke me
4776 #endif
4779 return 0;
4781 _ACEOF
4782 if ac_fn_cxx_try_compile "$LINENO"; then :
4783 ac_compiler_gnu=yes
4784 else
4785 ac_compiler_gnu=no
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4792 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4793 if test $ac_compiler_gnu = yes; then
4794 GXX=yes
4795 else
4796 GXX=
4798 ac_test_CXXFLAGS=${CXXFLAGS+set}
4799 ac_save_CXXFLAGS=$CXXFLAGS
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4801 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4802 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4806 ac_cxx_werror_flag=yes
4807 ac_cv_prog_cxx_g=no
4808 CXXFLAGS="-g"
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4813 main ()
4817 return 0;
4819 _ACEOF
4820 if ac_fn_cxx_try_compile "$LINENO"; then :
4821 ac_cv_prog_cxx_g=yes
4822 else
4823 CXXFLAGS=""
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4828 main ()
4832 return 0;
4834 _ACEOF
4835 if ac_fn_cxx_try_compile "$LINENO"; then :
4837 else
4838 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4839 CXXFLAGS="-g"
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4844 main ()
4848 return 0;
4850 _ACEOF
4851 if ac_fn_cxx_try_compile "$LINENO"; then :
4852 ac_cv_prog_cxx_g=yes
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4862 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4863 if test "$ac_test_CXXFLAGS" = set; then
4864 CXXFLAGS=$ac_save_CXXFLAGS
4865 elif test $ac_cv_prog_cxx_g = yes; then
4866 if test "$GXX" = yes; then
4867 CXXFLAGS="-g -O2"
4868 else
4869 CXXFLAGS="-g"
4871 else
4872 if test "$GXX" = yes; then
4873 CXXFLAGS="-O2"
4874 else
4875 CXXFLAGS=
4878 ac_ext=c
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885 # We must set the default linker to the linker used by gcc for the correct
4886 # operation of libtool. If LD is not defined and we are using gcc, try to
4887 # set the LD default to the ld used by gcc.
4888 if test -z "$LD"; then
4889 if test "$GCC" = yes; then
4890 case $build in
4891 *-*-mingw*)
4892 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4894 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4895 esac
4896 case $gcc_prog_ld in
4897 # Accept absolute paths.
4898 [\\/]* | [A-Za-z]:[\\/]*)
4899 LD="$gcc_prog_ld" ;;
4900 esac
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$GNATBIND"; then
4916 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4931 IFS=$as_save_IFS
4935 GNATBIND=$ac_cv_prog_GNATBIND
4936 if test -n "$GNATBIND"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4938 $as_echo "$GNATBIND" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4946 if test -z "$ac_cv_prog_GNATBIND"; then
4947 ac_ct_GNATBIND=$GNATBIND
4948 # Extract the first word of "gnatbind", so it can be a program name with args.
4949 set dummy gnatbind; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -n "$ac_ct_GNATBIND"; then
4956 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4969 done
4970 done
4971 IFS=$as_save_IFS
4975 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4976 if test -n "$ac_ct_GNATBIND"; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4978 $as_echo "$ac_ct_GNATBIND" >&6; }
4979 else
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4984 if test "x$ac_ct_GNATBIND" = x; then
4985 GNATBIND="no"
4986 else
4987 case $cross_compiling:$ac_tool_warned in
4988 yes:)
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 ac_tool_warned=yes ;;
4992 esac
4993 GNATBIND=$ac_ct_GNATBIND
4995 else
4996 GNATBIND="$ac_cv_prog_GNATBIND"
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5001 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$GNATMAKE"; then
5008 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 GNATMAKE=$ac_cv_prog_GNATMAKE
5028 if test -n "$GNATMAKE"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5030 $as_echo "$GNATMAKE" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5038 if test -z "$ac_cv_prog_GNATMAKE"; then
5039 ac_ct_GNATMAKE=$GNATMAKE
5040 # Extract the first word of "gnatmake", so it can be a program name with args.
5041 set dummy gnatmake; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$ac_ct_GNATMAKE"; then
5048 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5067 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5068 if test -n "$ac_ct_GNATMAKE"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5070 $as_echo "$ac_ct_GNATMAKE" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5076 if test "x$ac_ct_GNATMAKE" = x; then
5077 GNATMAKE="no"
5078 else
5079 case $cross_compiling:$ac_tool_warned in
5080 yes:)
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083 ac_tool_warned=yes ;;
5084 esac
5085 GNATMAKE=$ac_ct_GNATMAKE
5087 else
5088 GNATMAKE="$ac_cv_prog_GNATMAKE"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5092 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5093 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 cat >conftest.adb <<EOF
5097 procedure conftest is begin null; end conftest;
5099 acx_cv_cc_gcc_supports_ada=no
5100 # There is a bug in old released versions of GCC which causes the
5101 # driver to exit successfully when the appropriate language module
5102 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5103 # Therefore we must check for the error message as well as an
5104 # unsuccessful exit.
5105 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5106 # given a .adb file, but produce no object file. So we must check
5107 # if an object file was really produced to guard against this.
5108 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5109 if test x"$errors" = x && test -f conftest.$ac_objext; then
5110 acx_cv_cc_gcc_supports_ada=yes
5112 rm -f conftest.*
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5115 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5117 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5118 have_gnat=yes
5119 else
5120 have_gnat=no
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5124 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5125 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 echo abfoo >t1
5129 echo cdfoo >t2
5130 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5131 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5132 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5134 else
5135 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5138 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5139 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5141 else
5142 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5145 rm t1 t2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5149 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5150 do_compare="$gcc_cv_prog_cmp_skip"
5154 # See if we are building gcc with C++.
5155 # Check whether --enable-build-with-cxx was given.
5156 if test "${enable_build_with_cxx+set}" = set; then :
5157 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5158 else
5159 ENABLE_BUILD_WITH_CXX=no
5163 # Used for setting $lt_cv_objdir
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5165 $as_echo_n "checking for objdir... " >&6; }
5166 if test "${lt_cv_objdir+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 rm -f .libs 2>/dev/null
5170 mkdir .libs 2>/dev/null
5171 if test -d .libs; then
5172 lt_cv_objdir=.libs
5173 else
5174 # MS-DOS does not allow filenames that begin with a dot.
5175 lt_cv_objdir=_libs
5177 rmdir .libs 2>/dev/null
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5180 $as_echo "$lt_cv_objdir" >&6; }
5181 objdir=$lt_cv_objdir
5187 cat >>confdefs.h <<_ACEOF
5188 #define LT_OBJDIR "$lt_cv_objdir/"
5189 _ACEOF
5193 # Check for GMP, MPFR and MPC
5194 gmplibs="-lmpc -lmpfr -lgmp"
5195 gmpinc=
5196 have_gmp=no
5198 # Specify a location for mpc
5199 # check for this first so it ends up on the link line before mpfr.
5201 # Check whether --with-mpc was given.
5202 if test "${with_mpc+set}" = set; then :
5203 withval=$with_mpc;
5207 # Check whether --with-mpc-include was given.
5208 if test "${with_mpc_include+set}" = set; then :
5209 withval=$with_mpc_include;
5213 # Check whether --with-mpc-lib was given.
5214 if test "${with_mpc_lib+set}" = set; then :
5215 withval=$with_mpc_lib;
5219 if test "x$with_mpc" != x; then
5220 gmplibs="-L$with_mpc/lib $gmplibs"
5221 gmpinc="-I$with_mpc/include $gmpinc"
5223 if test "x$with_mpc_include" != x; then
5224 gmpinc="-I$with_mpc_include $gmpinc"
5226 if test "x$with_mpc_lib" != x; then
5227 gmplibs="-L$with_mpc_lib $gmplibs"
5229 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5230 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5231 gmpinc='-I$$s/mpc/src '"$gmpinc"
5232 # Do not test the mpc version. Assume that it is sufficient, since
5233 # it is in the source tree, and the library has not been built yet
5234 # but it would be included on the link line in the version check below
5235 # hence making the test fail.
5236 have_gmp=yes
5239 # Specify a location for mpfr
5240 # check for this first so it ends up on the link line before gmp.
5242 # Check whether --with-mpfr-dir was given.
5243 if test "${with_mpfr_dir+set}" = set; then :
5244 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5245 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5250 # Check whether --with-mpfr was given.
5251 if test "${with_mpfr+set}" = set; then :
5252 withval=$with_mpfr;
5256 # Check whether --with-mpfr-include was given.
5257 if test "${with_mpfr_include+set}" = set; then :
5258 withval=$with_mpfr_include;
5262 # Check whether --with-mpfr-lib was given.
5263 if test "${with_mpfr_lib+set}" = set; then :
5264 withval=$with_mpfr_lib;
5268 if test "x$with_mpfr" != x; then
5269 gmplibs="-L$with_mpfr/lib $gmplibs"
5270 gmpinc="-I$with_mpfr/include $gmpinc"
5272 if test "x$with_mpfr_include" != x; then
5273 gmpinc="-I$with_mpfr_include $gmpinc"
5275 if test "x$with_mpfr_lib" != x; then
5276 gmplibs="-L$with_mpfr_lib $gmplibs"
5278 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5279 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5280 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5281 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5282 # Do not test the mpfr version. Assume that it is sufficient, since
5283 # it is in the source tree, and the library has not been built yet
5284 # but it would be included on the link line in the version check below
5285 # hence making the test fail.
5286 have_gmp=yes
5289 # Specify a location for gmp
5291 # Check whether --with-gmp-dir was given.
5292 if test "${with_gmp_dir+set}" = set; then :
5293 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5294 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5299 # Check whether --with-gmp was given.
5300 if test "${with_gmp+set}" = set; then :
5301 withval=$with_gmp;
5305 # Check whether --with-gmp-include was given.
5306 if test "${with_gmp_include+set}" = set; then :
5307 withval=$with_gmp_include;
5311 # Check whether --with-gmp-lib was given.
5312 if test "${with_gmp_lib+set}" = set; then :
5313 withval=$with_gmp_lib;
5318 if test "x$with_gmp" != x; then
5319 gmplibs="-L$with_gmp/lib $gmplibs"
5320 gmpinc="-I$with_gmp/include $gmpinc"
5322 if test "x$with_gmp_include" != x; then
5323 gmpinc="-I$with_gmp_include $gmpinc"
5325 if test "x$with_gmp_lib" != x; then
5326 gmplibs="-L$with_gmp_lib $gmplibs"
5328 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5329 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5330 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5331 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5332 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5333 # Do not test the gmp version. Assume that it is sufficient, since
5334 # it is in the source tree, and the library has not been built yet
5335 # but it would be included on the link line in the version check below
5336 # hence making the test fail.
5337 have_gmp=yes
5340 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5341 have_gmp=yes
5342 saved_CFLAGS="$CFLAGS"
5343 CFLAGS="$CFLAGS $gmpinc"
5344 # Check for the recommended and required versions of GMP.
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5346 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #include "gmp.h"
5352 main ()
5355 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5356 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5357 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5358 choke me
5359 #endif
5362 return 0;
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <gmp.h>
5370 main ()
5373 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5374 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5375 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5376 choke me
5377 #endif
5380 return 0;
5382 _ACEOF
5383 if ac_fn_c_try_compile "$LINENO"; then :
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5385 $as_echo "yes" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5388 $as_echo "buggy but acceptable" >&6; }
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }; have_gmp=no
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 # If we have GMP, check the MPFR version.
5398 if test x"$have_gmp" = xyes; then
5399 # Check for the recommended and required versions of MPFR.
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5401 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <gmp.h>
5405 #include <mpfr.h>
5407 main ()
5410 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5411 choke me
5412 #endif
5415 return 0;
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421 #include <gmp.h>
5422 #include <mpfr.h>
5424 main ()
5427 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5428 choke me
5429 #endif
5432 return 0;
5434 _ACEOF
5435 if ac_fn_c_try_compile "$LINENO"; then :
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5437 $as_echo "yes" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5440 $as_echo "buggy but acceptable" >&6; }
5442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }; have_gmp=no
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 # Check for the MPC header version.
5451 if test x"$have_gmp" = xyes ; then
5452 # Check for the recommended and required versions of MPC.
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5454 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #include <mpc.h>
5459 main ()
5462 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5463 choke me
5464 #endif
5467 return 0;
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473 #include <mpc.h>
5475 main ()
5478 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5479 choke me
5480 #endif
5483 return 0;
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488 $as_echo "yes" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5491 $as_echo "buggy but acceptable" >&6; }
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }; have_gmp=no
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501 # Now check the MPFR library.
5502 if test x"$have_gmp" = xyes; then
5503 saved_LIBS="$LIBS"
5504 LIBS="$LIBS $gmplibs"
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5506 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5509 #include <mpc.h>
5511 main ()
5514 mpfr_t n;
5515 mpfr_t x;
5516 mpc_t c;
5517 int t;
5518 mpfr_init (n);
5519 mpfr_init (x);
5520 mpfr_atan2 (n, n, x, GMP_RNDN);
5521 mpfr_erfc (n, x, GMP_RNDN);
5522 mpfr_subnormalize (x, t, GMP_RNDN);
5523 mpfr_clear(n);
5524 mpfr_clear(x);
5525 mpc_init2 (c, 53);
5526 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5527 mpc_cosh (c, c, MPC_RNDNN);
5528 mpc_pow (c, c, c, MPC_RNDNN);
5529 mpc_acosh (c, c, MPC_RNDNN);
5530 mpc_clear (c);
5533 return 0;
5535 _ACEOF
5536 if ac_fn_c_try_link "$LINENO"; then :
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538 $as_echo "yes" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }; have_gmp=no
5543 rm -f core conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545 LIBS="$saved_LIBS"
5548 CFLAGS="$saved_CFLAGS"
5550 # The library versions listed in the error message below should match
5551 # the HARD-minimums enforced above.
5552 if test x$have_gmp != xyes; then
5553 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5554 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5555 their locations. Source code for these libraries can be found at
5556 their respective hosting sites as well as at
5557 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5558 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5559 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5560 make sure that you have installed both the libraries and the header
5561 files. They may be located in separate packages." "$LINENO" 5
5565 # Flags needed for both GMP, MPFR and/or MPC.
5572 # Allow host libstdc++ to be specified for static linking with PPL.
5574 # Check whether --with-host-libstdcxx was given.
5575 if test "${with_host_libstdcxx+set}" = set; then :
5576 withval=$with_host_libstdcxx;
5580 case $with_host_libstdcxx in
5581 no|yes)
5582 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5584 esac
5586 # Linker flags to use for stage1 or when not boostrapping.
5588 # Check whether --with-stage1-ldflags was given.
5589 if test "${with_stage1_ldflags+set}" = set; then :
5590 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5591 stage1_ldflags=
5592 else
5593 stage1_ldflags=$withval
5595 else
5596 stage1_ldflags=
5601 # Libraries to use for stage1 or when not bootstrapping.
5603 # Check whether --with-stage1-libs was given.
5604 if test "${with_stage1_libs+set}" = set; then :
5605 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5606 stage1_libs=
5607 else
5608 stage1_libs=$withval
5610 else
5611 stage1_libs=$with_host_libstdcxx
5616 # Libraries to use for stage2 and later builds. This defaults to the
5617 # argument passed to --with-host-libstdcxx.
5619 # Check whether --with-boot-libs was given.
5620 if test "${with_boot_libs+set}" = set; then :
5621 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5622 poststage1_libs=
5623 else
5624 poststage1_libs=$withval
5626 else
5627 poststage1_libs=$with_host_libstdcxx
5632 # Linker flags to use for stage2 and later builds.
5634 # Check whether --with-boot-ldflags was given.
5635 if test "${with_boot_ldflags+set}" = set; then :
5636 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5637 poststage1_ldflags=
5638 else
5639 poststage1_ldflags=$withval
5641 else
5642 poststage1_ldflags=
5643 # In stages 2 and 3, default to linking libstdc++ and libgcc
5644 # statically. But if the user explicitly specified the libraries to
5645 # use, trust that they are doing what they want.
5646 if test "$poststage1_libs" = ""; then
5647 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5653 # Check for PPL
5654 ppllibs=" -lppl_c -lppl -lgmpxx"
5655 pplinc=
5658 # Check whether --with-ppl was given.
5659 if test "${with_ppl+set}" = set; then :
5660 withval=$with_ppl;
5664 # Check whether --with-ppl-include was given.
5665 if test "${with_ppl_include+set}" = set; then :
5666 withval=$with_ppl_include;
5670 # Check whether --with-ppl-lib was given.
5671 if test "${with_ppl_lib+set}" = set; then :
5672 withval=$with_ppl_lib;
5676 case $with_ppl in
5678 ppllibs=
5680 "" | yes)
5683 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5684 pplinc="-I$with_ppl/include $pplinc"
5686 esac
5687 if test "x$with_ppl_include" != x; then
5688 pplinc="-I$with_ppl_include $pplinc"
5690 if test "x$with_ppl_lib" != x; then
5691 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5693 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5694 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5695 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5696 enable_ppl_version_check=no
5699 # Check whether --enable-ppl-version-check was given.
5700 if test "${enable_ppl_version_check+set}" = set; then :
5701 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5702 else
5703 ENABLE_PPL_CHECK=yes
5707 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5708 saved_CFLAGS="$CFLAGS"
5709 CFLAGS="$CFLAGS $pplinc $gmpinc"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5711 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include "ppl_c.h"
5716 main ()
5719 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5720 choke me
5721 #endif
5724 return 0;
5726 _ACEOF
5727 if ac_fn_c_try_compile "$LINENO"; then :
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5729 $as_echo "yes" >&6; }
5730 else
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 CFLAGS="$saved_CFLAGS"
5738 # Flags needed for PPL
5743 # Check for CLOOG
5747 # Check whether --with-cloog was given.
5748 if test "${with_cloog+set}" = set; then :
5749 withval=$with_cloog;
5753 # Check whether --with-cloog-include was given.
5754 if test "${with_cloog_include+set}" = set; then :
5755 withval=$with_cloog_include;
5759 # Check whether --with-cloog-lib was given.
5760 if test "${with_cloog_lib+set}" = set; then :
5761 withval=$with_cloog_lib;
5765 # Check whether --enable-cloog-backend was given.
5766 if test "${enable_cloog_backend+set}" = set; then :
5767 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5768 cloog_backend=isl
5769 elif test "x${enableval}" = "xppl"; then
5770 cloog_backend=ppl
5771 else
5772 cloog_backend=ppl-legacy
5774 else
5775 cloog_backend=ppl-legacy
5778 # Check whether --enable-cloog-version-check was given.
5779 if test "${enable_cloog_version_check+set}" = set; then :
5780 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5781 else
5782 ENABLE_CLOOG_CHECK=yes
5786 # Initialize clooglibs and clooginc.
5787 case $with_cloog in
5789 clooglibs=
5790 clooginc=
5792 "" | yes)
5795 clooglibs="-L$with_cloog/lib"
5796 clooginc="-I$with_cloog/include"
5798 esac
5799 if test "x${with_cloog_include}" != x ; then
5800 clooginc="-I$with_cloog_include"
5802 if test "x${with_cloog_lib}" != x; then
5803 clooglibs="-L$with_cloog_lib"
5810 if test "x$with_ppl" = "xno"; then
5811 with_cloog=no
5813 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5814 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5815 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5816 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5818 if test "x$with_cloog" != "xno"; then
5822 _cloog_saved_CFLAGS=$CFLAGS
5823 _cloog_saved_CPPFLAGS=$CPPFLAGS
5824 _cloog_saved_LDFLAGS=$LDFLAGS
5825 _cloog_saved_LIBS=$LIBS
5827 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5829 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5830 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5831 LDFLAGS="${LDFLAGS} ${clooglibs}"
5833 case $cloog_backend in
5834 "ppl-legacy")
5835 CFLAGS="${CFLAGS} ${pplinc}"
5836 LDFLAGS="${LDFLAGS} ${ppllibs}"
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5838 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5839 if test "${gcc_cv_cloog_type+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 LIBS="-lcloog ${_cloog_saved_LIBS}"
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 #include "cloog/cloog.h"
5847 main ()
5849 #ifndef CLOOG_PPL_BACKEND
5850 choke me
5851 #endif
5853 return 0;
5855 _ACEOF
5856 if ac_fn_c_try_link "$LINENO"; then :
5857 gcc_cv_cloog_type="PPL Legacy"
5858 else
5859 gcc_cv_cloog_type=no
5861 rm -f core conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5865 $as_echo "$gcc_cv_cloog_type" >&6; }
5867 "isl")
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5869 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5870 if test "${gcc_cv_cloog_type+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #include "cloog/cloog.h"
5878 main ()
5880 cloog_version ()
5882 return 0;
5884 _ACEOF
5885 if ac_fn_c_try_link "$LINENO"; then :
5886 gcc_cv_cloog_type="ISL"
5887 else
5888 gcc_cv_cloog_type=no
5890 rm -f core conftest.err conftest.$ac_objext \
5891 conftest$ac_exeext conftest.$ac_ext
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5894 $as_echo "$gcc_cv_cloog_type" >&6; }
5896 "ppl")
5897 CFLAGS="${CFLAGS} ${pplinc}"
5898 LDFLAGS="${LDFLAGS} ${ppllibs}"
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5900 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5901 if test "${gcc_cv_cloog_type+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 #include "cloog/cloog.h"
5908 #include "cloog/ppl/cloog.h"
5910 main ()
5912 cloog_version ()
5914 return 0;
5916 _ACEOF
5917 if ac_fn_c_try_link "$LINENO"; then :
5918 gcc_cv_cloog_type="PPL"
5919 else
5920 gcc_cv_cloog_type=no
5922 rm -f core conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5926 $as_echo "$gcc_cv_cloog_type" >&6; }
5929 gcc_cv_cloog_type=""
5930 esac
5932 case $gcc_cv_cloog_type in
5933 "PPL Legacy")
5934 clooginc="${clooginc}"
5935 clooglibs="${clooglibs} -lcloog"
5936 cloog_org=no
5938 "ISL")
5939 clooginc="${clooginc} ${_cloogorginc}"
5940 clooglibs="${clooglibs} -lcloog-isl"
5941 cloog_org=yes
5943 "PPL")
5944 clooginc="${clooginc} ${_cloogorginc}"
5945 clooglibs="${clooglibs} -lcloog-ppl"
5946 cloog_org=yes
5949 clooglibs=
5950 clooginc=
5951 cloog_org=
5953 esac
5955 LIBS=$_cloog_saved_LIBS
5956 CFLAGS=$_cloog_saved_CFLAGS
5957 CPPFLAGS=$_cloog_saved_CPPFLAGS
5958 LDFLAGS=$_cloog_saved_LDFLAGS
5964 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5965 _cloog_saved_CFLAGS=$CFLAGS
5966 _cloog_saved_LDFLAGS=$LDFLAGS
5968 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5969 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5971 if test "${cloog_org}" = yes ; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5973 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5974 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 #include "cloog/cloog.h"
5981 main ()
5983 #if CLOOG_VERSION_MAJOR != 0 \
5984 || CLOOG_VERSION_MINOR != 14 \
5985 || CLOOG_VERSION_REVISION < 0
5986 choke me
5987 #endif
5989 return 0;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993 gcc_cv_cloog_ct_0_14_0=yes
5994 else
5995 gcc_cv_cloog_ct_0_14_0=no
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
6000 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
6001 elif test "${cloog_org}" = no ; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
6003 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
6004 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include "cloog/cloog.h"
6011 main ()
6013 #if CLOOG_VERSION_MAJOR != 0 \
6014 || CLOOG_VERSION_MINOR != 15 \
6015 || CLOOG_VERSION_REVISION < 5
6016 choke me
6017 #endif
6019 return 0;
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include "cloog/cloog.h"
6027 main ()
6029 #if CLOOG_VERSION_MAJOR != 0 \
6030 || CLOOG_VERSION_MINOR != 15 \
6031 || CLOOG_VERSION_REVISION < 9
6032 choke me
6033 #endif
6035 return 0;
6037 _ACEOF
6038 if ac_fn_c_try_compile "$LINENO"; then :
6039 gcc_cv_cloog_ct_0_15_5=yes
6040 else
6041 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 else
6045 gcc_cv_cloog_ct_0_15_5=no
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6050 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6053 CFLAGS=$_cloog_saved_CFLAGS
6054 LDFLAGS=$_cloog_saved_LDFLAGS
6063 if test "x${with_cloog}" != x \
6064 || test "x${with_cloog_include}" != x \
6065 || test "x${with_cloog_lib}" != x ; then
6066 graphite_requested=yes
6067 else
6068 graphite_requested=no
6073 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6074 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6075 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6076 clooglibs=
6077 clooginc=
6080 if test "${graphite_requested}" = yes \
6081 && test "x${clooglibs}" = x \
6082 && test "x${clooginc}" = x ; then
6084 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6090 # Check for LTO support.
6091 # Check whether --enable-lto was given.
6092 if test "${enable_lto+set}" = set; then :
6093 enableval=$enable_lto; enable_lto=$enableval
6094 else
6095 enable_lto=yes; default_enable_lto=yes
6102 target_elf=no
6103 case $target in
6104 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6105 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6106 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6107 target_elf=no
6110 target_elf=yes
6112 esac
6114 if test $target_elf = yes; then :
6115 # ELF platforms build the lto-plugin always.
6116 build_lto_plugin=yes
6118 else
6119 if test x"$default_enable_lto" = x"yes" ; then
6120 case $target in
6121 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6122 # On other non-ELF platforms, LTO has yet to be validated.
6123 *) enable_lto=no ;;
6124 esac
6125 else
6126 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6127 # It would also be nice to check the binutils support, but we don't
6128 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6129 # warn during gcc/ subconfigure; unless you're bootstrapping with
6130 # -flto it won't be needed until after installation anyway.
6131 case $target in
6132 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6133 *) if test x"$enable_lto" = x"yes"; then
6134 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6137 esac
6139 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6140 # Build it unless LTO was explicitly disabled.
6141 case $target in
6142 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6143 *) ;;
6144 esac
6150 # By default, C is the only stage 1 language.
6151 stage1_languages=,c,
6153 # Target libraries that we bootstrap.
6154 bootstrap_target_libs=,target-libgcc,
6156 # Figure out what language subdirectories are present.
6157 # Look if the user specified --enable-languages="..."; if not, use
6158 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6159 # go away some day.
6160 # NB: embedded tabs in this IF block -- do not untabify
6161 if test -d ${srcdir}/gcc; then
6162 if test x"${enable_languages+set}" != xset; then
6163 if test x"${LANGUAGES+set}" = xset; then
6164 enable_languages="${LANGUAGES}"
6165 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6166 else
6167 enable_languages=all
6169 else
6170 if test x"${enable_languages}" = x ||
6171 test x"${enable_languages}" = xyes;
6172 then
6173 echo configure.in: --enable-languages needs at least one language argument 1>&2
6174 exit 1
6177 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6179 # 'f95' is the old name for the 'fortran' language. We issue a warning
6180 # and make the substitution.
6181 case ,${enable_languages}, in
6182 *,f95,*)
6183 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6184 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6186 esac
6188 # First scan to see if an enabled language requires some other language.
6189 # We assume that a given config-lang.in will list all the language
6190 # front ends it requires, even if some are required indirectly.
6191 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6192 case ${lang_frag} in
6193 ..) ;;
6194 # The odd quoting in the next line works around
6195 # an apparent bug in bash 1.12 on linux.
6196 ${srcdir}/gcc/[*]/config-lang.in) ;;
6198 # From the config-lang.in, get $language, $lang_requires, and
6199 # $lang_requires_boot_languages.
6200 language=
6201 lang_requires=
6202 lang_requires_boot_languages=
6203 . ${lang_frag}
6204 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6205 case ,${enable_languages}, in
6206 *,$other,*) ;;
6207 *,all,*) ;;
6208 *,$language,*)
6209 echo " \`$other' language required by \`$language'; enabling" 1>&2
6210 enable_languages="${enable_languages},${other}"
6212 esac
6213 done
6214 for other in ${lang_requires_boot_languages} ; do
6215 if test "$other" != "c"; then
6216 case ,${enable_stage1_languages}, in
6217 *,$other,*) ;;
6218 *,all,*) ;;
6220 case ,${enable_languages}, in
6221 *,$language,*)
6222 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6223 enable_stage1_languages="$enable_stage1_languages,${other}"
6225 esac
6227 esac
6229 done
6231 esac
6232 done
6234 new_enable_languages=,c,
6236 # If LTO is enabled, add the LTO front end.
6237 extra_host_libiberty_configure_flags=
6238 if test "$enable_lto" = "yes" ; then
6239 case ,${enable_languages}, in
6240 *,lto,*) ;;
6241 *) enable_languages="${enable_languages},lto" ;;
6242 esac
6243 if test "${build_lto_plugin}" = "yes" ; then
6244 configdirs="$configdirs lto-plugin"
6245 extra_host_libiberty_configure_flags=--enable-shared
6250 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6251 potential_languages=,c,
6253 enabled_target_libs=
6254 disabled_target_libs=
6256 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6257 case ${lang_frag} in
6258 ..) ;;
6259 # The odd quoting in the next line works around
6260 # an apparent bug in bash 1.12 on linux.
6261 ${srcdir}/gcc/[*]/config-lang.in) ;;
6263 # From the config-lang.in, get $language, $target_libs,
6264 # $lang_dirs, $boot_language, and $build_by_default
6265 language=
6266 target_libs=
6267 lang_dirs=
6268 subdir_requires=
6269 boot_language=no
6270 build_by_default=yes
6271 . ${lang_frag}
6272 if test x${language} = x; then
6273 echo "${lang_frag} doesn't set \$language." 1>&2
6274 exit 1
6277 if test "$language" = "c++" \
6278 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6279 boot_language=yes
6282 case ,${enable_languages}, in
6283 *,${language},*)
6284 # Language was explicitly selected; include it.
6285 add_this_lang=yes
6287 *,all,*)
6288 # 'all' was selected, select it if it is a default language
6289 add_this_lang=${build_by_default}
6292 add_this_lang=no
6294 esac
6296 # Disable languages that need other directories if these aren't available.
6297 for i in $subdir_requires; do
6298 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6299 case ,${enable_languages}, in
6300 *,${language},*)
6301 # Specifically requested language; tell them.
6302 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6305 # Silently disable.
6306 add_this_lang=unsupported
6308 esac
6309 done
6311 # Disable Ada if no preexisting GNAT is available.
6312 case ,${enable_languages},:${language}:${have_gnat} in
6313 *,${language},*:ada:no)
6314 # Specifically requested language; tell them.
6315 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6317 *:ada:no)
6318 # Silently disable.
6319 add_this_lang=unsupported
6321 esac
6323 # Disable a language that is unsupported by the target.
6324 case " $unsupported_languages " in
6325 *" $language "*)
6326 add_this_lang=unsupported
6328 esac
6330 case $add_this_lang in
6331 unsupported)
6332 # Remove language-dependent dirs.
6333 disabled_target_libs="$disabled_target_libs $target_libs"
6334 noconfigdirs="$noconfigdirs $lang_dirs"
6337 # Remove language-dependent dirs; still show language as supported.
6338 disabled_target_libs="$disabled_target_libs $target_libs"
6339 noconfigdirs="$noconfigdirs $lang_dirs"
6340 potential_languages="${potential_languages}${language},"
6342 yes)
6343 new_enable_languages="${new_enable_languages}${language},"
6344 potential_languages="${potential_languages}${language},"
6345 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6346 enabled_target_libs="$enabled_target_libs $target_libs"
6347 case "${boot_language}:,$enable_stage1_languages," in
6348 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6349 # Add to (comma-separated) list of stage 1 languages.
6350 case ",$stage1_languages," in
6351 *,$language,* | ,yes, | ,all,) ;;
6352 *) stage1_languages="${stage1_languages}${language}," ;;
6353 esac
6354 # We need to bootstrap any supporting libraries.
6355 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6357 esac
6359 esac
6361 esac
6362 done
6364 # Add target libraries which are only needed for disabled languages
6365 # to noconfigdirs.
6366 if test -n "$disabled_target_libs"; then
6367 for dir in $disabled_target_libs; do
6368 case " $enabled_target_libs " in
6369 *" ${dir} "*) ;;
6370 *) noconfigdirs="$noconfigdirs $dir" ;;
6371 esac
6372 done
6375 # Check whether --enable-stage1-languages was given.
6376 if test "${enable_stage1_languages+set}" = set; then :
6377 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6378 ,no,|,,)
6379 # Set it to something that will have no effect in the loop below
6380 enable_stage1_languages=c ;;
6381 ,yes,)
6382 enable_stage1_languages=`echo $new_enable_languages | \
6383 sed -e "s/^,//" -e "s/,$//" ` ;;
6384 *,all,*)
6385 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6386 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6387 esac
6389 # Add "good" languages from enable_stage1_languages to stage1_languages,
6390 # while "bad" languages go in missing_languages. Leave no duplicates.
6391 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6392 case $potential_languages in
6393 *,$i,*)
6394 case $stage1_languages in
6395 *,$i,*) ;;
6396 *) stage1_languages="$stage1_languages$i," ;;
6397 esac ;;
6399 case $missing_languages in
6400 *,$i,*) ;;
6401 *) missing_languages="$missing_languages$i," ;;
6402 esac ;;
6403 esac
6404 done
6408 # Remove leading/trailing commas that were added for simplicity
6409 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6410 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6411 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6412 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6414 if test "x$missing_languages" != x; then
6415 as_fn_error "
6416 The following requested languages could not be built: ${missing_languages}
6417 Supported languages are: ${potential_languages}" "$LINENO" 5
6419 if test "x$new_enable_languages" != "x$enable_languages"; then
6420 echo The following languages will be built: ${new_enable_languages}
6421 enable_languages="$new_enable_languages"
6425 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6428 # Handle --disable-<component> generically.
6429 for dir in $configdirs $build_configdirs $target_configdirs ; do
6430 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6431 varname=`echo $dirname | sed -e s/+/_/g`
6432 if eval test x\${enable_${varname}} "=" xno ; then
6433 noconfigdirs="$noconfigdirs $dir"
6435 done
6437 # Check for Boehm's garbage collector
6438 # Check whether --enable-objc-gc was given.
6439 if test "${enable_objc_gc+set}" = set; then :
6440 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6441 *,objc,*:*:yes:*target-boehm-gc*)
6442 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6444 esac
6448 # Make sure we only build Boehm's garbage collector if required.
6449 case ,${enable_languages},:${enable_objc_gc} in
6450 *,objc,*:yes)
6451 # Keep target-boehm-gc if requested for Objective-C.
6454 # Otherwise remove target-boehm-gc depending on target-libjava.
6455 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6456 noconfigdirs="$noconfigdirs target-boehm-gc"
6459 esac
6461 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6462 # $build_configdirs and $target_configdirs.
6463 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6465 notsupp=""
6466 for dir in . $skipdirs $noconfigdirs ; do
6467 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6468 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6469 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6470 if test -r $srcdir/$dirname/configure ; then
6471 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6472 true
6473 else
6474 notsupp="$notsupp $dir"
6478 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6479 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6480 if test -r $srcdir/$dirname/configure ; then
6481 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6482 true
6483 else
6484 notsupp="$notsupp $dir"
6488 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6489 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6490 if test -r $srcdir/$dirname/configure ; then
6491 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6492 true
6493 else
6494 notsupp="$notsupp $dir"
6498 done
6500 # Sometimes the tools are distributed with libiberty but with no other
6501 # libraries. In that case, we don't want to build target-libiberty.
6502 # Don't let libgcc imply libiberty either.
6503 if test -n "${target_configdirs}" ; then
6504 libgcc=
6505 others=
6506 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6507 if test "$i" = "libgcc"; then
6508 libgcc=target-libgcc
6509 elif test "$i" != "libiberty" ; then
6510 if test -r $srcdir/$i/configure ; then
6511 others=yes;
6512 break;
6515 done
6516 if test -z "${others}" ; then
6517 target_configdirs=$libgcc
6521 # Quietly strip out all directories which aren't configurable in this tree.
6522 # This relies on all configurable subdirectories being autoconfiscated, which
6523 # is now the case.
6524 build_configdirs_all="$build_configdirs"
6525 build_configdirs=
6526 for i in ${build_configdirs_all} ; do
6527 j=`echo $i | sed -e s/build-//g`
6528 if test -f ${srcdir}/$j/configure ; then
6529 build_configdirs="${build_configdirs} $i"
6531 done
6533 configdirs_all="$configdirs"
6534 configdirs=
6535 for i in ${configdirs_all} ; do
6536 if test -f ${srcdir}/$i/configure ; then
6537 configdirs="${configdirs} $i"
6539 done
6541 target_configdirs_all="$target_configdirs"
6542 target_configdirs=
6543 for i in ${target_configdirs_all} ; do
6544 j=`echo $i | sed -e s/target-//g`
6545 if test -f ${srcdir}/$j/configure ; then
6546 target_configdirs="${target_configdirs} $i"
6548 done
6550 # Produce a warning message for the subdirs we can't configure.
6551 # This isn't especially interesting in the Cygnus tree, but in the individual
6552 # FSF releases, it's important to let people know when their machine isn't
6553 # supported by the one or two programs in a package.
6555 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6556 # If $appdirs is non-empty, at least one of those directories must still
6557 # be configured, or we error out. (E.g., if the gas release supports a
6558 # specified target in some subdirs but not the gas subdir, we shouldn't
6559 # pretend that all is well.)
6560 if test -n "$appdirs" ; then
6561 for dir in $appdirs ; do
6562 if test -r $dir/Makefile.in ; then
6563 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6564 appdirs=""
6565 break
6567 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6568 appdirs=""
6569 break
6572 done
6573 if test -n "$appdirs" ; then
6574 echo "*** This configuration is not supported by this package." 1>&2
6575 exit 1
6578 # Okay, some application will build, or we don't care to check. Still
6579 # notify of subdirs not getting built.
6580 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6581 echo " ${notsupp}" 1>&2
6582 echo " (Any other directories should still work fine.)" 1>&2
6585 case "$host" in
6586 *msdosdjgpp*)
6587 enable_gdbtk=no ;;
6588 esac
6590 # To find our prefix, in gcc_cv_tool_prefix.
6592 # The user is always right.
6593 if test "${PATH_SEPARATOR+set}" != set; then
6594 echo "#! /bin/sh" >conf$$.sh
6595 echo "exit 0" >>conf$$.sh
6596 chmod +x conf$$.sh
6597 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6598 PATH_SEPARATOR=';'
6599 else
6600 PATH_SEPARATOR=:
6602 rm -f conf$$.sh
6607 if test "x$exec_prefix" = xNONE; then
6608 if test "x$prefix" = xNONE; then
6609 gcc_cv_tool_prefix=$ac_default_prefix
6610 else
6611 gcc_cv_tool_prefix=$prefix
6613 else
6614 gcc_cv_tool_prefix=$exec_prefix
6617 # If there is no compiler in the tree, use the PATH only. In any
6618 # case, if there is no compiler in the tree nobody should use
6619 # AS_FOR_TARGET and LD_FOR_TARGET.
6620 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6621 gcc_version=`cat $srcdir/gcc/BASE-VER`
6622 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6623 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6624 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6625 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6626 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6627 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6628 else
6629 gcc_cv_tool_dirs=
6632 if test x$build = x$target && test -n "$md_exec_prefix"; then
6633 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6638 copy_dirs=
6641 # Check whether --with-build-sysroot was given.
6642 if test "${with_build_sysroot+set}" = set; then :
6643 withval=$with_build_sysroot; if test x"$withval" != x ; then
6644 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6646 else
6647 SYSROOT_CFLAGS_FOR_TARGET=
6653 # Check whether --with-debug-prefix-map was given.
6654 if test "${with_debug_prefix_map+set}" = set; then :
6655 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6656 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6657 for debug_map in $withval; do
6658 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6659 done
6661 else
6662 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6667 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6668 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6669 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6670 # We want to ensure that TARGET libraries (which we know are built with
6671 # gcc) are built with "-O2 -g", so include those options when setting
6672 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6673 if test "x$CFLAGS_FOR_TARGET" = x; then
6674 CFLAGS_FOR_TARGET=$CFLAGS
6675 case " $CFLAGS " in
6676 *" -O2 "*) ;;
6677 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6678 esac
6679 case " $CFLAGS " in
6680 *" -g "* | *" -g3 "*) ;;
6681 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6682 esac
6686 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6687 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6688 case " $CXXFLAGS " in
6689 *" -O2 "*) ;;
6690 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6691 esac
6692 case " $CXXFLAGS " in
6693 *" -g "* | *" -g3 "*) ;;
6694 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6695 esac
6699 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6700 # the named directory are copied to $(tooldir)/sys-include.
6701 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6702 if test x${is_cross_compiler} = xno ; then
6703 echo 1>&2 '***' --with-headers is only supported when cross compiling
6704 exit 1
6706 if test x"${with_headers}" != xyes ; then
6707 x=${gcc_cv_tool_prefix}
6708 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6712 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6713 # the name directories are copied to $(tooldir)/lib. Multiple directories
6714 # are permitted.
6715 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6716 if test x${is_cross_compiler} = xno ; then
6717 echo 1>&2 '***' --with-libs is only supported when cross compiling
6718 exit 1
6720 if test x"${with_libs}" != xyes ; then
6721 # Copy the libraries in reverse order, so that files in the first named
6722 # library override files in subsequent libraries.
6723 x=${gcc_cv_tool_prefix}
6724 for l in ${with_libs}; do
6725 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6726 done
6730 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6732 # This is done by determining whether or not the appropriate directory
6733 # is available, and by checking whether or not specific configurations
6734 # have requested that this magic not happen.
6736 # The command line options always override the explicit settings in
6737 # configure.in, and the settings in configure.in override this magic.
6739 # If the default for a toolchain is to use GNU as and ld, and you don't
6740 # want to do that, then you should use the --without-gnu-as and
6741 # --without-gnu-ld options for the configure script. Similarly, if
6742 # the default is to use the included zlib and you don't want to do that,
6743 # you should use the --with-system-zlib option for the configure script.
6745 if test x${use_gnu_as} = x &&
6746 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6747 with_gnu_as=yes
6748 extra_host_args="$extra_host_args --with-gnu-as"
6751 if test x${use_gnu_ld} = x &&
6752 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6753 with_gnu_ld=yes
6754 extra_host_args="$extra_host_args --with-gnu-ld"
6757 if test x${use_included_zlib} = x &&
6758 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6760 else
6761 with_system_zlib=yes
6762 extra_host_args="$extra_host_args --with-system-zlib"
6765 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6766 # can detect this case.
6768 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6769 with_newlib=yes
6770 extra_host_args="$extra_host_args --with-newlib"
6773 # Handle ${copy_dirs}
6774 set fnord ${copy_dirs}
6775 shift
6776 while test $# != 0 ; do
6777 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6779 else
6780 echo Copying $1 to $2
6782 # Use the install script to create the directory and all required
6783 # parent directories.
6784 if test -d $2 ; then
6786 else
6787 echo >config.temp
6788 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6791 # Copy the directory, assuming we have tar.
6792 # FIXME: Should we use B in the second tar? Not all systems support it.
6793 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6795 # It is the responsibility of the user to correctly adjust all
6796 # symlinks. If somebody can figure out how to handle them correctly
6797 # here, feel free to add the code.
6799 echo $1 > $2/COPIED
6801 shift; shift
6802 done
6804 # Determine a target-dependent exec_prefix that the installed
6805 # gcc will search in. Keep this list sorted by triplet, with
6806 # the *-*-osname triplets last.
6807 md_exec_prefix=
6808 case "${target}" in
6809 alpha*-*-*vms*)
6810 md_exec_prefix=/gnu/lib/gcc-lib
6812 i[34567]86-pc-msdosdjgpp*)
6813 md_exec_prefix=/dev/env/DJDIR/bin
6815 i[34567]86-*-sco3.2v5*)
6816 if test $with_gnu_as = yes; then
6817 md_exec_prefix=/usr/gnu/bin
6818 else
6819 md_exec_prefix=/usr/ccs/bin/elf
6823 mn10300-*-* | \
6824 powerpc-*-chorusos* | \
6825 powerpc*-*-eabi* | \
6826 powerpc*-*-sysv* | \
6827 powerpc*-*-kaos* | \
6828 s390x-ibm-tpf*)
6829 md_exec_prefix=/usr/ccs/bin
6831 sparc64-*-elf*)
6833 v850*-*-*)
6834 md_exec_prefix=/usr/ccs/bin
6836 xtensa*-*-elf*)
6839 *-*-beos* | \
6840 *-*-elf* | \
6841 *-*-hpux* | \
6842 *-*-netware* | \
6843 *-*-nto-qnx* | \
6844 *-*-rtems* | \
6845 *-*-solaris2* | \
6846 *-*-sysv[45]* | \
6847 *-*-vxworks* | \
6848 *-wrs-windiss)
6849 md_exec_prefix=/usr/ccs/bin
6851 esac
6853 extra_arflags_for_target=
6854 extra_nmflags_for_target=
6855 extra_ranlibflags_for_target=
6856 target_makefile_frag=/dev/null
6857 case "${target}" in
6858 mep*-*-*)
6859 target_makefile_frag="config/mt-mep"
6861 spu-*-*)
6862 target_makefile_frag="config/mt-spu"
6864 mips*-sde-elf*)
6865 target_makefile_frag="config/mt-sde"
6867 mipsisa*-*-elfoabi*)
6868 target_makefile_frag="config/mt-mips-elfoabi"
6870 mips*-*-*linux* | mips*-*-gnu*)
6871 target_makefile_frag="config/mt-mips-gnu"
6873 *-*-netware*)
6874 target_makefile_frag="config/mt-netware"
6876 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6877 target_makefile_frag="config/mt-gnu"
6879 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6880 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6881 # commands to handle both 32-bit and 64-bit objects. These flags are
6882 # harmless if we're using GNU nm or ar.
6883 extra_arflags_for_target=" -X32_64"
6884 extra_nmflags_for_target=" -B -X32_64"
6886 *-*-darwin[3-9]*)
6887 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6888 extra_ranlibflags_for_target=" -c"
6890 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6891 target_makefile_frag="config/mt-wince"
6893 esac
6895 alphaieee_frag=/dev/null
6896 case $target in
6897 alpha*-*-*)
6898 # This just makes sure to use the -mieee option to build target libs.
6899 # This should probably be set individually by each library.
6900 alphaieee_frag="config/mt-alphaieee"
6902 esac
6904 # If --enable-target-optspace always use -Os instead of -O2 to build
6905 # the target libraries, similarly if it is not specified, use -Os
6906 # on selected platforms.
6907 ospace_frag=/dev/null
6908 case "${enable_target_optspace}:${target}" in
6909 yes:*)
6910 ospace_frag="config/mt-ospace"
6912 :d30v-*)
6913 ospace_frag="config/mt-d30v"
6915 :m32r-* | :d10v-* | :fr30-*)
6916 ospace_frag="config/mt-ospace"
6918 no:* | :*)
6921 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6923 esac
6925 # Default to using --with-stabs for certain targets.
6926 if test x${with_stabs} = x ; then
6927 case "${target}" in
6928 mips*-*-irix[56]*)
6930 mips*-*-* | alpha*-*-osf*)
6931 with_stabs=yes;
6932 extra_host_args="${extra_host_args} --with-stabs"
6934 esac
6937 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6938 # them automatically.
6939 case "${host}" in
6940 hppa*64*-*-hpux11*)
6941 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6943 esac
6945 # Some systems (e.g., one of the i386-aix systems the gas testers are
6946 # using) don't handle "\$" correctly, so don't use it here.
6947 tooldir='${exec_prefix}'/${target_noncanonical}
6948 build_tooldir=${tooldir}
6950 # Create a .gdbinit file which runs the one in srcdir
6951 # and tells GDB to look there for source files.
6953 if test -r ${srcdir}/.gdbinit ; then
6954 case ${srcdir} in
6955 .) ;;
6956 *) cat > ./.gdbinit <<EOF
6957 # ${NO_EDIT}
6958 dir ${srcdir}
6959 dir .
6960 source ${srcdir}/.gdbinit
6963 esac
6966 # Make sure that the compiler is able to generate an executable. If it
6967 # can't, we are probably in trouble. We don't care whether we can run the
6968 # executable--we might be using a cross compiler--we only care whether it
6969 # can be created. At this point the main configure script has set CC.
6970 we_are_ok=no
6971 echo "int main () { return 0; }" > conftest.c
6972 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6973 if test $? = 0 ; then
6974 if test -s conftest || test -s conftest.exe ; then
6975 we_are_ok=yes
6978 case $we_are_ok in
6980 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6981 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6982 rm -f conftest*
6983 exit 1
6985 esac
6986 rm -f conftest*
6988 # The Solaris /usr/ucb/cc compiler does not appear to work.
6989 case "${host}" in
6990 sparc-sun-solaris2*)
6991 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6992 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6993 could_use=
6994 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6995 if test -d /opt/cygnus/bin ; then
6996 if test "$could_use" = "" ; then
6997 could_use="/opt/cygnus/bin"
6998 else
6999 could_use="$could_use or /opt/cygnus/bin"
7002 if test "$could_use" = "" ; then
7003 echo "Warning: compilation may fail because you're using"
7004 echo "/usr/ucb/cc. You should change your PATH or CC "
7005 echo "variable and rerun configure."
7006 else
7007 echo "Warning: compilation may fail because you're using"
7008 echo "/usr/ucb/cc, when you should use the C compiler from"
7009 echo "$could_use. You should change your"
7010 echo "PATH or CC variable and rerun configure."
7014 esac
7016 # Decide which environment variable is used to find dynamic libraries.
7017 case "${host}" in
7018 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7019 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7020 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7021 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7022 esac
7024 # On systems where the dynamic library environment variable is PATH,
7025 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7026 # built executables to PATH.
7027 if test "$RPATH_ENVVAR" = PATH; then
7028 GCC_SHLIB_SUBDIR=/shlib
7029 else
7030 GCC_SHLIB_SUBDIR=
7033 # Record target_configdirs and the configure arguments for target and
7034 # build configuration in Makefile.
7035 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7036 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7038 # If we are building libgomp, bootstrap it.
7039 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7040 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7043 # Determine whether gdb needs tk/tcl or not.
7044 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7045 # and in that case we want gdb to be built without tk. Ugh!
7046 # In fact I believe gdb is the *only* package directly dependent on tk,
7047 # so we should be able to put the 'maybe's in unconditionally and
7048 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7049 # 100% sure that that's safe though.
7051 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7052 case "$enable_gdbtk" in
7054 GDB_TK="" ;;
7055 yes)
7056 GDB_TK="${gdb_tk}" ;;
7058 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7059 # distro. Eventually someone will fix this and move Insight, nee
7060 # gdbtk to a separate directory.
7061 if test -d ${srcdir}/gdb/gdbtk ; then
7062 GDB_TK="${gdb_tk}"
7063 else
7064 GDB_TK=""
7067 esac
7068 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7069 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7071 # Strip out unwanted targets.
7073 # While at that, we remove Makefiles if we were started for recursive
7074 # configuration, so that the top-level Makefile reconfigures them,
7075 # like we used to do when configure itself was recursive.
7077 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7078 # but now we're fixing up the Makefile ourselves with the additional
7079 # commands passed to AC_CONFIG_FILES. Use separate variables
7080 # extrasub-{build,host,target} not because there is any reason to split
7081 # the substitutions up that way, but only to remain below the limit of
7082 # 99 commands in a script, for HP-UX sed.
7083 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7085 # Check whether --enable-bootstrap was given.
7086 if test "${enable_bootstrap+set}" = set; then :
7087 enableval=$enable_bootstrap;
7088 else
7089 enable_bootstrap=default
7093 # Issue errors and warnings for invalid/strange bootstrap combinations.
7094 case "$configdirs" in
7095 *gcc*) have_compiler=yes ;;
7096 *) have_compiler=no ;;
7097 esac
7099 case "$have_compiler:$host:$target:$enable_bootstrap" in
7100 *:*:*:no) ;;
7102 # Default behavior. Enable bootstrap if we have a compiler
7103 # and we are in a native configuration.
7104 yes:$build:$build:default)
7105 enable_bootstrap=yes ;;
7107 *:*:*:default)
7108 enable_bootstrap=no ;;
7110 # We have a compiler and we are in a native configuration, bootstrap is ok
7111 yes:$build:$build:yes)
7114 # Other configurations, but we have a compiler. Assume the user knows
7115 # what he's doing.
7116 yes:*:*:yes)
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7118 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7121 # No compiler: if they passed --enable-bootstrap explicitly, fail
7122 no:*:*:yes)
7123 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7125 # Fail if wrong command line
7127 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7129 esac
7131 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7132 *,c++,*:yes:yes) ;;
7133 *:yes:yes)
7134 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7136 esac
7138 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7139 yes:yes:*\ gold\ *:*,c++,*) ;;
7140 yes:yes:*\ gold\ *:*)
7141 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7143 esac
7145 # Adjust the toplevel makefile according to whether bootstrap was selected.
7146 case $enable_bootstrap in
7147 yes)
7148 bootstrap_suffix=bootstrap
7149 BUILD_CONFIG=bootstrap-debug
7152 bootstrap_suffix=no-bootstrap
7153 BUILD_CONFIG=
7155 esac
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7158 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7161 # Check whether --with-build-config was given.
7162 if test "${with_build_config+set}" = set; then :
7163 withval=$with_build_config; case $with_build_config in
7164 yes) with_build_config= ;;
7165 no) with_build_config= BUILD_CONFIG= ;;
7166 esac
7170 if test "x${with_build_config}" != x; then
7171 BUILD_CONFIG=$with_build_config
7172 else
7173 case $BUILD_CONFIG in
7174 bootstrap-debug)
7175 if echo "int f (void) { return 0; }" > conftest.c &&
7176 ${CC} -c conftest.c &&
7177 mv conftest.o conftest.o.g0 &&
7178 ${CC} -c -g conftest.c &&
7179 mv conftest.o conftest.o.g &&
7180 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7182 else
7183 BUILD_CONFIG=
7185 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7187 esac
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7190 $as_echo "$BUILD_CONFIG" >&6; }
7193 extrasub_build=
7194 for module in ${build_configdirs} ; do
7195 if test -z "${no_recursion}" \
7196 && test -f ${build_subdir}/${module}/Makefile; then
7197 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7198 rm -f ${build_subdir}/${module}/Makefile
7200 extrasub_build="$extrasub_build
7201 /^@if build-$module\$/d
7202 /^@endif build-$module\$/d
7203 /^@if build-$module-$bootstrap_suffix\$/d
7204 /^@endif build-$module-$bootstrap_suffix\$/d"
7205 done
7206 extrasub_host=
7207 for module in ${configdirs} ; do
7208 if test -z "${no_recursion}"; then
7209 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7210 if test -f ${file}; then
7211 echo 1>&2 "*** removing ${file} to force reconfigure"
7212 rm -f ${file}
7214 done
7216 extrasub_host="$extrasub_host
7217 /^@if $module\$/d
7218 /^@endif $module\$/d
7219 /^@if $module-$bootstrap_suffix\$/d
7220 /^@endif $module-$bootstrap_suffix\$/d"
7221 done
7222 extrasub_target=
7223 for module in ${target_configdirs} ; do
7224 if test -z "${no_recursion}" \
7225 && test -f ${target_subdir}/${module}/Makefile; then
7226 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7227 rm -f ${target_subdir}/${module}/Makefile
7230 # We only bootstrap target libraries listed in bootstrap_target_libs.
7231 case $bootstrap_target_libs in
7232 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7233 *) target_bootstrap_suffix=no-bootstrap ;;
7234 esac
7236 extrasub_target="$extrasub_target
7237 /^@if target-$module\$/d
7238 /^@endif target-$module\$/d
7239 /^@if target-$module-$target_bootstrap_suffix\$/d
7240 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7241 done
7243 # Do the final fixup along with target modules.
7244 extrasub_target="$extrasub_target
7245 /^@if /,/^@endif /d"
7247 # Create the serialization dependencies. This uses a temporary file.
7249 # Check whether --enable-serial-configure was given.
7250 if test "${enable_serial_configure+set}" = set; then :
7251 enableval=$enable_serial_configure;
7255 case ${enable_serial_configure} in
7256 yes)
7257 enable_serial_build_configure=yes
7258 enable_serial_host_configure=yes
7259 enable_serial_target_configure=yes
7261 esac
7263 # These force 'configure's to be done one at a time, to avoid problems
7264 # with contention over a shared config.cache.
7265 rm -f serdep.tmp
7266 echo '# serdep.tmp' > serdep.tmp
7267 olditem=
7268 test "x${enable_serial_build_configure}" = xyes &&
7269 for item in ${build_configdirs} ; do
7270 case ${olditem} in
7271 "") ;;
7272 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7273 esac
7274 olditem=${item}
7275 done
7276 olditem=
7277 test "x${enable_serial_host_configure}" = xyes &&
7278 for item in ${configdirs} ; do
7279 case ${olditem} in
7280 "") ;;
7281 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7282 esac
7283 olditem=${item}
7284 done
7285 olditem=
7286 test "x${enable_serial_target_configure}" = xyes &&
7287 for item in ${target_configdirs} ; do
7288 case ${olditem} in
7289 "") ;;
7290 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7291 esac
7292 olditem=${item}
7293 done
7294 serialization_dependencies=serdep.tmp
7297 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7298 # target, nonopt, and variable assignments. These are the ones we
7299 # might not want to pass down to subconfigures. The exception being
7300 # --cache-file=/dev/null, which is used to turn off the use of cache
7301 # files altogether, and which should be passed on to subconfigures.
7302 # Also strip program-prefix, program-suffix, and program-transform-name,
7303 # so that we can pass down a consistent program-transform-name.
7304 baseargs=
7305 keep_next=no
7306 skip_next=no
7307 eval "set -- $ac_configure_args"
7308 for ac_arg
7310 if test X"$skip_next" = X"yes"; then
7311 skip_next=no
7312 continue
7314 if test X"$keep_next" = X"yes"; then
7315 case $ac_arg in
7316 *\'*)
7317 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7318 esac
7319 baseargs="$baseargs '$ac_arg'"
7320 keep_next=no
7321 continue
7324 # Handle separated arguments. Based on the logic generated by
7325 # autoconf 2.59.
7326 case $ac_arg in
7327 *=* | --config-cache | -C | -disable-* | --disable-* \
7328 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7329 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7330 | -with-* | --with-* | -without-* | --without-* | --x)
7331 separate_arg=no
7334 separate_arg=yes
7337 separate_arg=no
7339 esac
7341 case "$ac_arg" in
7342 --cache-file=/dev/null | \
7343 -cache-file=/dev/null )
7344 # Handled here to avoid the test to skip args below.
7345 baseargs="$baseargs '$ac_arg'"
7346 # Assert: $separate_arg should always be no.
7347 keep_next=$separate_arg
7349 --no*)
7350 continue
7352 --c* | \
7353 --sr* | \
7354 --ho* | \
7355 --bu* | \
7356 --t* | \
7357 --program-* | \
7358 -cache_file* | \
7359 -srcdir* | \
7360 -host* | \
7361 -build* | \
7362 -target* | \
7363 -program-prefix* | \
7364 -program-suffix* | \
7365 -program-transform-name* )
7366 skip_next=$separate_arg
7367 continue
7370 # An option. Add it.
7371 case $ac_arg in
7372 *\'*)
7373 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7374 esac
7375 baseargs="$baseargs '$ac_arg'"
7376 keep_next=$separate_arg
7379 # Either a variable assignment, or a nonopt (triplet). Don't
7380 # pass it down; let the Makefile handle this.
7381 continue
7383 esac
7384 done
7385 # Remove the initial space we just introduced and, as these will be
7386 # expanded by make, quote '$'.
7387 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7389 # Add in --program-transform-name, after --program-prefix and
7390 # --program-suffix have been applied to it. Autoconf has already
7391 # doubled dollar signs and backslashes in program_transform_name; we want
7392 # the backslashes un-doubled, and then the entire thing wrapped in single
7393 # quotes, because this will be expanded first by make and then by the shell.
7394 # Also, because we want to override the logic in subdir configure scripts to
7395 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7396 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7397 ${program_transform_name}
7398 EOF_SED
7399 gcc_transform_name=`cat conftestsed.out`
7400 rm -f conftestsed.out
7401 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7402 if test "$silent" = yes; then
7403 baseargs="$baseargs --silent"
7405 baseargs="$baseargs --disable-option-checking"
7407 # Record and document user additions to sub configure arguments.
7412 # For the build-side libraries, we just need to pretend we're native,
7413 # and not use the same cache file. Multilibs are neither needed nor
7414 # desired.
7415 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7417 # For host modules, accept cache file option, or specification as blank.
7418 case "${cache_file}" in
7419 "") # empty
7420 cache_file_option="" ;;
7421 /* | [A-Za-z]:[\\/]* ) # absolute path
7422 cache_file_option="--cache-file=${cache_file}" ;;
7423 *) # relative path
7424 cache_file_option="--cache-file=../${cache_file}" ;;
7425 esac
7427 # Host dirs don't like to share a cache file either, horribly enough.
7428 # This seems to be due to autoconf 2.5x stupidity.
7429 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7431 target_configargs="$target_configargs ${baseargs}"
7433 # Passing a --with-cross-host argument lets the target libraries know
7434 # whether they are being built with a cross-compiler or being built
7435 # native. However, it would be better to use other mechanisms to make the
7436 # sorts of decisions they want to make on this basis. Please consider
7437 # this option to be deprecated. FIXME.
7438 if test x${is_cross_compiler} = xyes ; then
7439 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7442 # Default to --enable-multilib.
7443 if test x${enable_multilib} = x ; then
7444 target_configargs="--enable-multilib ${target_configargs}"
7447 # Pass --with-newlib if appropriate. Note that target_configdirs has
7448 # changed from the earlier setting of with_newlib.
7449 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7450 target_configargs="--with-newlib ${target_configargs}"
7453 # Different target subdirs use different values of certain variables
7454 # (notably CXX). Worse, multilibs use *lots* of different values.
7455 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7456 # it doesn't automatically accept command-line overrides of them.
7457 # This means it's not safe for target subdirs to share a cache file,
7458 # which is disgusting, but there you have it. Hopefully this can be
7459 # fixed in future. It's still worthwhile to use a cache file for each
7460 # directory. I think.
7462 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7463 # We need to pass --target, as newer autoconf's requires consistency
7464 # for target_alias and gcc doesn't manage it consistently.
7465 target_configargs="--cache-file=./config.cache ${target_configargs}"
7467 FLAGS_FOR_TARGET=
7468 case " $target_configdirs " in
7469 *" newlib "*)
7470 case " $target_configargs " in
7471 *" --with-newlib "*)
7472 case "$target" in
7473 *-cygwin*)
7474 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'
7476 esac
7478 # If we're not building GCC, don't discard standard headers.
7479 if test -d ${srcdir}/gcc; then
7480 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7482 if test "${build}" != "${host}"; then
7483 # On Canadian crosses, CC_FOR_TARGET will have already been set
7484 # by `configure', so we won't have an opportunity to add -Bgcc/
7485 # to it. This is right: we don't want to search that directory
7486 # for binaries, but we want the header files in there, so add
7487 # them explicitly.
7488 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7490 # Someone might think of using the pre-installed headers on
7491 # Canadian crosses, in case the installed compiler is not fully
7492 # compatible with the compiler being built. In this case, it
7493 # would be better to flag an error than risking having
7494 # incompatible object files being constructed. We can't
7495 # guarantee that an error will be flagged, but let's hope the
7496 # compiler will do it, when presented with incompatible header
7497 # files.
7501 case "${target}-${is_cross_compiler}" in
7502 i[3456789]86-*-linux*-no)
7503 # Here host == target, so we don't need to build gcc,
7504 # so we don't want to discard standard headers.
7505 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7508 # If we're building newlib, use its generic headers last, but search
7509 # for any libc-related directories first (so make it the last -B
7510 # switch).
7511 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7513 # If we're building libgloss, find the startup file, simulator library
7514 # and linker script.
7515 case " $target_configdirs " in
7516 *" libgloss "*)
7517 # Look for startup file, simulator library and maybe linker script.
7518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7519 # Look for libnosys.a in case the target needs it.
7520 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7521 # Most targets have the linker script in the source directory.
7522 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7524 esac
7526 esac
7528 esac
7530 esac
7532 case "$target" in
7533 x86_64-*mingw* | *-w64-mingw*)
7534 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7535 # however, use a symlink named 'mingw' in ${prefix} .
7536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7538 *-mingw*)
7539 # MinGW can't be handled as Cygwin above since it does not use newlib.
7540 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'
7542 esac
7544 # Allow the user to override the flags for
7545 # our build compiler if desired.
7546 if test x"${build}" = x"${host}" ; then
7547 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7548 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7549 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7552 # On Canadian crosses, we'll be searching the right directories for
7553 # the previously-installed cross compiler, so don't bother to add
7554 # flags for directories within the install tree of the compiler
7555 # being built; programs in there won't even run.
7556 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7557 # Search for pre-installed headers if nothing else fits.
7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7561 if test "x${use_gnu_ld}" = x &&
7562 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7563 # Arrange for us to find uninstalled linker scripts.
7564 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7567 # Search for other target-specific linker scripts and such.
7568 case "${target}" in
7569 mep*)
7570 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7572 esac
7574 # Makefile fragments.
7575 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7577 eval fragval=\$$frag
7578 if test $fragval != /dev/null; then
7579 eval $frag=${srcdir}/$fragval
7581 done
7587 # Miscellanea: directories, flags, etc.
7596 # Build module lists & subconfigure args.
7600 # Host module lists & subconfigure args.
7605 # Target module lists & subconfigure args.
7609 # Build tools.
7628 # Generate default definitions for YACC, M4, LEX and other programs that run
7629 # on the build machine. These are used if the Makefile can't locate these
7630 # programs in objdir.
7631 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7633 for ac_prog in 'bison -y' byacc yacc
7635 # Extract the first word of "$ac_prog", so it can be a program name with args.
7636 set dummy $ac_prog; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if test "${ac_cv_prog_YACC+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 if test -n "$YACC"; then
7643 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7644 else
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 for as_dir in $PATH
7648 IFS=$as_save_IFS
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652 ac_cv_prog_YACC="$ac_prog"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 break 2
7656 done
7657 done
7658 IFS=$as_save_IFS
7662 YACC=$ac_cv_prog_YACC
7663 if test -n "$YACC"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7665 $as_echo "$YACC" >&6; }
7666 else
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7672 test -n "$YACC" && break
7673 done
7674 test -n "$YACC" || YACC="$MISSING bison -y"
7676 case " $build_configdirs " in
7677 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7678 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7679 esac
7681 for ac_prog in bison
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if test "${ac_cv_prog_BISON+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 if test -n "$BISON"; then
7691 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7700 ac_cv_prog_BISON="$ac_prog"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7702 break 2
7704 done
7705 done
7706 IFS=$as_save_IFS
7710 BISON=$ac_cv_prog_BISON
7711 if test -n "$BISON"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7713 $as_echo "$BISON" >&6; }
7714 else
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7720 test -n "$BISON" && break
7721 done
7722 test -n "$BISON" || BISON="$MISSING bison"
7724 case " $build_configdirs " in
7725 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7726 esac
7728 for ac_prog in gm4 gnum4 m4
7730 # Extract the first word of "$ac_prog", so it can be a program name with args.
7731 set dummy $ac_prog; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if test "${ac_cv_prog_M4+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 if test -n "$M4"; then
7738 ac_cv_prog_M4="$M4" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_prog_M4="$ac_prog"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7751 done
7752 done
7753 IFS=$as_save_IFS
7757 M4=$ac_cv_prog_M4
7758 if test -n "$M4"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7760 $as_echo "$M4" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7767 test -n "$M4" && break
7768 done
7769 test -n "$M4" || M4="$MISSING m4"
7771 case " $build_configdirs " in
7772 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7773 esac
7775 for ac_prog in flex lex
7777 # Extract the first word of "$ac_prog", so it can be a program name with args.
7778 set dummy $ac_prog; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if test "${ac_cv_prog_LEX+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 if test -n "$LEX"; then
7785 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_prog_LEX="$ac_prog"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 break 2
7798 done
7799 done
7800 IFS=$as_save_IFS
7804 LEX=$ac_cv_prog_LEX
7805 if test -n "$LEX"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7807 $as_echo "$LEX" >&6; }
7808 else
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7814 test -n "$LEX" && break
7815 done
7816 test -n "$LEX" || LEX="$MISSING flex"
7818 case " $build_configdirs " in
7819 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7820 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7821 esac
7823 for ac_prog in flex
7825 # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if test "${ac_cv_prog_FLEX+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 if test -n "$FLEX"; then
7833 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_prog_FLEX="$ac_prog"
7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 break 2
7846 done
7847 done
7848 IFS=$as_save_IFS
7852 FLEX=$ac_cv_prog_FLEX
7853 if test -n "$FLEX"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7855 $as_echo "$FLEX" >&6; }
7856 else
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7862 test -n "$FLEX" && break
7863 done
7864 test -n "$FLEX" || FLEX="$MISSING flex"
7866 case " $build_configdirs " in
7867 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7868 esac
7870 for ac_prog in makeinfo
7872 # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$MAKEINFO"; then
7880 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7889 ac_cv_prog_MAKEINFO="$ac_prog"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7893 done
7894 done
7895 IFS=$as_save_IFS
7899 MAKEINFO=$ac_cv_prog_MAKEINFO
7900 if test -n "$MAKEINFO"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7902 $as_echo "$MAKEINFO" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7909 test -n "$MAKEINFO" && break
7910 done
7911 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7913 case " $build_configdirs " in
7914 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7917 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7918 # higher, else we use the "missing" dummy.
7919 if ${MAKEINFO} --version \
7920 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7922 else
7923 MAKEINFO="$MISSING makeinfo"
7927 esac
7929 # FIXME: expect and dejagnu may become build tools?
7931 for ac_prog in expect
7933 # Extract the first word of "$ac_prog", so it can be a program name with args.
7934 set dummy $ac_prog; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 if test -n "$EXPECT"; then
7941 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_prog_EXPECT="$ac_prog"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7954 done
7955 done
7956 IFS=$as_save_IFS
7960 EXPECT=$ac_cv_prog_EXPECT
7961 if test -n "$EXPECT"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7963 $as_echo "$EXPECT" >&6; }
7964 else
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7970 test -n "$EXPECT" && break
7971 done
7972 test -n "$EXPECT" || EXPECT="expect"
7974 case " $configdirs " in
7975 *" expect "*)
7976 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7978 esac
7980 for ac_prog in runtest
7982 # Extract the first word of "$ac_prog", so it can be a program name with args.
7983 set dummy $ac_prog; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$RUNTEST"; then
7990 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_RUNTEST="$ac_prog"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8009 RUNTEST=$ac_cv_prog_RUNTEST
8010 if test -n "$RUNTEST"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8012 $as_echo "$RUNTEST" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8019 test -n "$RUNTEST" && break
8020 done
8021 test -n "$RUNTEST" || RUNTEST="runtest"
8023 case " $configdirs " in
8024 *" dejagnu "*)
8025 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8027 esac
8030 # Host tools.
8031 ncn_tool_prefix=
8032 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8033 ncn_target_tool_prefix=
8034 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8038 if test -n "$AR"; then
8039 ac_cv_prog_AR=$AR
8040 elif test -n "$ac_cv_prog_AR"; then
8041 AR=$ac_cv_prog_AR
8044 if test -n "$ac_cv_prog_AR"; then
8045 for ncn_progname in ar; do
8046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8047 set dummy ${ncn_progname}; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if test "${ac_cv_prog_AR+set}" = set; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 if test -n "$AR"; then
8054 ac_cv_prog_AR="$AR" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_prog_AR="${ncn_progname}"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8067 done
8068 done
8069 IFS=$as_save_IFS
8073 AR=$ac_cv_prog_AR
8074 if test -n "$AR"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8076 $as_echo "$AR" >&6; }
8077 else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8083 done
8086 for ncn_progname in ar; do
8087 if test -n "$ncn_tool_prefix"; then
8088 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8089 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091 $as_echo_n "checking for $ac_word... " >&6; }
8092 if test "${ac_cv_prog_AR+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 if test -n "$AR"; then
8096 ac_cv_prog_AR="$AR" # Let the user override the test.
8097 else
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8109 done
8110 done
8111 IFS=$as_save_IFS
8115 AR=$ac_cv_prog_AR
8116 if test -n "$AR"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8118 $as_echo "$AR" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8126 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8128 set dummy ${ncn_progname}; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_AR="${ncn_progname}"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8150 IFS=$as_save_IFS
8154 AR=$ac_cv_prog_AR
8155 if test -n "$AR"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157 $as_echo "$AR" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8165 test -n "$ac_cv_prog_AR" && break
8166 done
8168 if test -z "$ac_cv_prog_AR" ; then
8169 set dummy ar
8170 if test $build = $host ; then
8171 AR="$2"
8172 else
8173 AR="${ncn_tool_prefix}$2"
8179 if test -n "$AS"; then
8180 ac_cv_prog_AS=$AS
8181 elif test -n "$ac_cv_prog_AS"; then
8182 AS=$ac_cv_prog_AS
8185 if test -n "$ac_cv_prog_AS"; then
8186 for ncn_progname in as; do
8187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8188 set dummy ${ncn_progname}; ac_word=$2
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 $as_echo_n "checking for $ac_word... " >&6; }
8191 if test "${ac_cv_prog_AS+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 if test -n "$AS"; then
8195 ac_cv_prog_AS="$AS" # Let the user override the test.
8196 else
8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198 for as_dir in $PATH
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_prog_AS="${ncn_progname}"
8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 break 2
8208 done
8209 done
8210 IFS=$as_save_IFS
8214 AS=$ac_cv_prog_AS
8215 if test -n "$AS"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8217 $as_echo "$AS" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8224 done
8227 for ncn_progname in as; do
8228 if test -n "$ncn_tool_prefix"; then
8229 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8230 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 $as_echo_n "checking for $ac_word... " >&6; }
8233 if test "${ac_cv_prog_AS+set}" = set; then :
8234 $as_echo_n "(cached) " >&6
8235 else
8236 if test -n "$AS"; then
8237 ac_cv_prog_AS="$AS" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8246 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8250 done
8251 done
8252 IFS=$as_save_IFS
8256 AS=$ac_cv_prog_AS
8257 if test -n "$AS"; then
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8259 $as_echo "$AS" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262 $as_echo "no" >&6; }
8267 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8269 set dummy ${ncn_progname}; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_AS+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$AS"; then
8276 ac_cv_prog_AS="$AS" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_AS="${ncn_progname}"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8289 done
8290 done
8291 IFS=$as_save_IFS
8295 AS=$ac_cv_prog_AS
8296 if test -n "$AS"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8298 $as_echo "$AS" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8306 test -n "$ac_cv_prog_AS" && break
8307 done
8309 if test -z "$ac_cv_prog_AS" ; then
8310 set dummy as
8311 if test $build = $host ; then
8312 AS="$2"
8313 else
8314 AS="${ncn_tool_prefix}$2"
8320 if test -n "$DLLTOOL"; then
8321 ac_cv_prog_DLLTOOL=$DLLTOOL
8322 elif test -n "$ac_cv_prog_DLLTOOL"; then
8323 DLLTOOL=$ac_cv_prog_DLLTOOL
8326 if test -n "$ac_cv_prog_DLLTOOL"; then
8327 for ncn_progname in dlltool; do
8328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8329 set dummy ${ncn_progname}; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test -n "$DLLTOOL"; then
8336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_DLLTOOL="${ncn_progname}"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8355 DLLTOOL=$ac_cv_prog_DLLTOOL
8356 if test -n "$DLLTOOL"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8358 $as_echo "$DLLTOOL" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8365 done
8368 for ncn_progname in dlltool; do
8369 if test -n "$ncn_tool_prefix"; then
8370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8371 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8373 $as_echo_n "checking for $ac_word... " >&6; }
8374 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 if test -n "$DLLTOOL"; then
8378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8379 else
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8391 done
8392 done
8393 IFS=$as_save_IFS
8397 DLLTOOL=$ac_cv_prog_DLLTOOL
8398 if test -n "$DLLTOOL"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8400 $as_echo "$DLLTOOL" >&6; }
8401 else
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8408 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8410 set dummy ${ncn_progname}; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$DLLTOOL"; then
8417 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_prog_DLLTOOL="${ncn_progname}"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8436 DLLTOOL=$ac_cv_prog_DLLTOOL
8437 if test -n "$DLLTOOL"; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8439 $as_echo "$DLLTOOL" >&6; }
8440 else
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442 $as_echo "no" >&6; }
8447 test -n "$ac_cv_prog_DLLTOOL" && break
8448 done
8450 if test -z "$ac_cv_prog_DLLTOOL" ; then
8451 set dummy dlltool
8452 if test $build = $host ; then
8453 DLLTOOL="$2"
8454 else
8455 DLLTOOL="${ncn_tool_prefix}$2"
8461 if test -n "$LD"; then
8462 ac_cv_prog_LD=$LD
8463 elif test -n "$ac_cv_prog_LD"; then
8464 LD=$ac_cv_prog_LD
8467 if test -n "$ac_cv_prog_LD"; then
8468 for ncn_progname in ld; do
8469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8470 set dummy ${ncn_progname}; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_LD+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$LD"; then
8477 ac_cv_prog_LD="$LD" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_LD="${ncn_progname}"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8496 LD=$ac_cv_prog_LD
8497 if test -n "$LD"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8499 $as_echo "$LD" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8506 done
8509 for ncn_progname in ld; do
8510 if test -n "$ncn_tool_prefix"; then
8511 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8512 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if test "${ac_cv_prog_LD+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 if test -n "$LD"; then
8519 ac_cv_prog_LD="$LD" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8532 done
8533 done
8534 IFS=$as_save_IFS
8538 LD=$ac_cv_prog_LD
8539 if test -n "$LD"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8541 $as_echo "$LD" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8549 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8551 set dummy ${ncn_progname}; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_prog_LD+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 if test -n "$LD"; then
8558 ac_cv_prog_LD="$LD" # Let the user override the test.
8559 else
8560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561 for as_dir in $PATH
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8567 ac_cv_prog_LD="${ncn_progname}"
8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 break 2
8571 done
8572 done
8573 IFS=$as_save_IFS
8577 LD=$ac_cv_prog_LD
8578 if test -n "$LD"; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8580 $as_echo "$LD" >&6; }
8581 else
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8588 test -n "$ac_cv_prog_LD" && break
8589 done
8591 if test -z "$ac_cv_prog_LD" ; then
8592 set dummy ld
8593 if test $build = $host ; then
8594 LD="$2"
8595 else
8596 LD="${ncn_tool_prefix}$2"
8602 if test -n "$LIPO"; then
8603 ac_cv_prog_LIPO=$LIPO
8604 elif test -n "$ac_cv_prog_LIPO"; then
8605 LIPO=$ac_cv_prog_LIPO
8608 if test -n "$ac_cv_prog_LIPO"; then
8609 for ncn_progname in lipo; do
8610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8611 set dummy ${ncn_progname}; ac_word=$2
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 $as_echo_n "checking for $ac_word... " >&6; }
8614 if test "${ac_cv_prog_LIPO+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 if test -n "$LIPO"; then
8618 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8619 else
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_prog_LIPO="${ncn_progname}"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8637 LIPO=$ac_cv_prog_LIPO
8638 if test -n "$LIPO"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8640 $as_echo "$LIPO" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8647 done
8650 for ncn_progname in lipo; do
8651 if test -n "$ncn_tool_prefix"; then
8652 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8653 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if test "${ac_cv_prog_LIPO+set}" = set; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if test -n "$LIPO"; then
8660 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8669 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8673 done
8674 done
8675 IFS=$as_save_IFS
8679 LIPO=$ac_cv_prog_LIPO
8680 if test -n "$LIPO"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8682 $as_echo "$LIPO" >&6; }
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8690 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8692 set dummy ${ncn_progname}; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_prog_LIPO+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 if test -n "$LIPO"; then
8699 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8700 else
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8708 ac_cv_prog_LIPO="${ncn_progname}"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 break 2
8712 done
8713 done
8714 IFS=$as_save_IFS
8718 LIPO=$ac_cv_prog_LIPO
8719 if test -n "$LIPO"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8721 $as_echo "$LIPO" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8729 test -n "$ac_cv_prog_LIPO" && break
8730 done
8732 if test -z "$ac_cv_prog_LIPO" ; then
8733 set dummy lipo
8734 if test $build = $host ; then
8735 LIPO="$2"
8736 else
8737 LIPO="${ncn_tool_prefix}$2"
8743 if test -n "$NM"; then
8744 ac_cv_prog_NM=$NM
8745 elif test -n "$ac_cv_prog_NM"; then
8746 NM=$ac_cv_prog_NM
8749 if test -n "$ac_cv_prog_NM"; then
8750 for ncn_progname in nm; do
8751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8752 set dummy ${ncn_progname}; ac_word=$2
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754 $as_echo_n "checking for $ac_word... " >&6; }
8755 if test "${ac_cv_prog_NM+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 if test -n "$NM"; then
8759 ac_cv_prog_NM="$NM" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_prog_NM="${ncn_progname}"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8774 IFS=$as_save_IFS
8778 NM=$ac_cv_prog_NM
8779 if test -n "$NM"; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8781 $as_echo "$NM" >&6; }
8782 else
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8788 done
8791 for ncn_progname in nm; do
8792 if test -n "$ncn_tool_prefix"; then
8793 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8794 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if test "${ac_cv_prog_NM+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 if test -n "$NM"; then
8801 ac_cv_prog_NM="$NM" # Let the user override the test.
8802 else
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8804 for as_dir in $PATH
8806 IFS=$as_save_IFS
8807 test -z "$as_dir" && as_dir=.
8808 for ac_exec_ext in '' $ac_executable_extensions; do
8809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8810 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8812 break 2
8814 done
8815 done
8816 IFS=$as_save_IFS
8820 NM=$ac_cv_prog_NM
8821 if test -n "$NM"; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8823 $as_echo "$NM" >&6; }
8824 else
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8831 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8833 set dummy ${ncn_progname}; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if test "${ac_cv_prog_NM+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 if test -n "$NM"; then
8840 ac_cv_prog_NM="$NM" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_NM="${ncn_progname}"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8853 done
8854 done
8855 IFS=$as_save_IFS
8859 NM=$ac_cv_prog_NM
8860 if test -n "$NM"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8862 $as_echo "$NM" >&6; }
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8870 test -n "$ac_cv_prog_NM" && break
8871 done
8873 if test -z "$ac_cv_prog_NM" ; then
8874 set dummy nm
8875 if test $build = $host ; then
8876 NM="$2"
8877 else
8878 NM="${ncn_tool_prefix}$2"
8884 if test -n "$RANLIB"; then
8885 ac_cv_prog_RANLIB=$RANLIB
8886 elif test -n "$ac_cv_prog_RANLIB"; then
8887 RANLIB=$ac_cv_prog_RANLIB
8890 if test -n "$ac_cv_prog_RANLIB"; then
8891 for ncn_progname in ranlib; do
8892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8893 set dummy ${ncn_progname}; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 if test -n "$RANLIB"; then
8900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909 ac_cv_prog_RANLIB="${ncn_progname}"
8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911 break 2
8913 done
8914 done
8915 IFS=$as_save_IFS
8919 RANLIB=$ac_cv_prog_RANLIB
8920 if test -n "$RANLIB"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8922 $as_echo "$RANLIB" >&6; }
8923 else
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8929 done
8932 for ncn_progname in ranlib; do
8933 if test -n "$ncn_tool_prefix"; then
8934 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8935 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$RANLIB"; then
8942 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8961 RANLIB=$ac_cv_prog_RANLIB
8962 if test -n "$RANLIB"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8964 $as_echo "$RANLIB" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8972 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8974 set dummy ${ncn_progname}; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 if test -n "$RANLIB"; then
8981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8982 else
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_prog_RANLIB="${ncn_progname}"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
9000 RANLIB=$ac_cv_prog_RANLIB
9001 if test -n "$RANLIB"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9003 $as_echo "$RANLIB" >&6; }
9004 else
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006 $as_echo "no" >&6; }
9011 test -n "$ac_cv_prog_RANLIB" && break
9012 done
9014 if test -z "$ac_cv_prog_RANLIB" ; then
9015 RANLIB="true"
9020 if test -n "$STRIP"; then
9021 ac_cv_prog_STRIP=$STRIP
9022 elif test -n "$ac_cv_prog_STRIP"; then
9023 STRIP=$ac_cv_prog_STRIP
9026 if test -n "$ac_cv_prog_STRIP"; then
9027 for ncn_progname in strip; do
9028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9029 set dummy ${ncn_progname}; ac_word=$2
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 $as_echo_n "checking for $ac_word... " >&6; }
9032 if test "${ac_cv_prog_STRIP+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 if test -n "$STRIP"; then
9036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9037 else
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_prog_STRIP="${ncn_progname}"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9049 done
9050 done
9051 IFS=$as_save_IFS
9055 STRIP=$ac_cv_prog_STRIP
9056 if test -n "$STRIP"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9058 $as_echo "$STRIP" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061 $as_echo "no" >&6; }
9065 done
9068 for ncn_progname in strip; do
9069 if test -n "$ncn_tool_prefix"; then
9070 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9071 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073 $as_echo_n "checking for $ac_word... " >&6; }
9074 if test "${ac_cv_prog_STRIP+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 if test -n "$STRIP"; then
9078 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9079 else
9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9083 IFS=$as_save_IFS
9084 test -z "$as_dir" && as_dir=.
9085 for ac_exec_ext in '' $ac_executable_extensions; do
9086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 break 2
9091 done
9092 done
9093 IFS=$as_save_IFS
9097 STRIP=$ac_cv_prog_STRIP
9098 if test -n "$STRIP"; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9100 $as_echo "$STRIP" >&6; }
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9108 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9110 set dummy ${ncn_progname}; ac_word=$2
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 $as_echo_n "checking for $ac_word... " >&6; }
9113 if test "${ac_cv_prog_STRIP+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 if test -n "$STRIP"; then
9117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_prog_STRIP="${ncn_progname}"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9136 STRIP=$ac_cv_prog_STRIP
9137 if test -n "$STRIP"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9139 $as_echo "$STRIP" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9147 test -n "$ac_cv_prog_STRIP" && break
9148 done
9150 if test -z "$ac_cv_prog_STRIP" ; then
9151 STRIP="true"
9156 if test -n "$WINDRES"; then
9157 ac_cv_prog_WINDRES=$WINDRES
9158 elif test -n "$ac_cv_prog_WINDRES"; then
9159 WINDRES=$ac_cv_prog_WINDRES
9162 if test -n "$ac_cv_prog_WINDRES"; then
9163 for ncn_progname in windres; do
9164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9165 set dummy ${ncn_progname}; ac_word=$2
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167 $as_echo_n "checking for $ac_word... " >&6; }
9168 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 if test -n "$WINDRES"; then
9172 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9173 else
9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175 for as_dir in $PATH
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9181 ac_cv_prog_WINDRES="${ncn_progname}"
9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9183 break 2
9185 done
9186 done
9187 IFS=$as_save_IFS
9191 WINDRES=$ac_cv_prog_WINDRES
9192 if test -n "$WINDRES"; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9194 $as_echo "$WINDRES" >&6; }
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197 $as_echo "no" >&6; }
9201 done
9204 for ncn_progname in windres; do
9205 if test -n "$ncn_tool_prefix"; then
9206 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9207 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 if test -n "$WINDRES"; then
9214 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9215 else
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $PATH
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9223 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9227 done
9228 done
9229 IFS=$as_save_IFS
9233 WINDRES=$ac_cv_prog_WINDRES
9234 if test -n "$WINDRES"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9236 $as_echo "$WINDRES" >&6; }
9237 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9244 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9245 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9246 set dummy ${ncn_progname}; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 if test -n "$WINDRES"; then
9253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9254 else
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256 for as_dir in $PATH
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_prog_WINDRES="${ncn_progname}"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 break 2
9266 done
9267 done
9268 IFS=$as_save_IFS
9272 WINDRES=$ac_cv_prog_WINDRES
9273 if test -n "$WINDRES"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9275 $as_echo "$WINDRES" >&6; }
9276 else
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9283 test -n "$ac_cv_prog_WINDRES" && break
9284 done
9286 if test -z "$ac_cv_prog_WINDRES" ; then
9287 set dummy windres
9288 if test $build = $host ; then
9289 WINDRES="$2"
9290 else
9291 WINDRES="${ncn_tool_prefix}$2"
9297 if test -n "$WINDMC"; then
9298 ac_cv_prog_WINDMC=$WINDMC
9299 elif test -n "$ac_cv_prog_WINDMC"; then
9300 WINDMC=$ac_cv_prog_WINDMC
9303 if test -n "$ac_cv_prog_WINDMC"; then
9304 for ncn_progname in windmc; do
9305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9306 set dummy ${ncn_progname}; ac_word=$2
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308 $as_echo_n "checking for $ac_word... " >&6; }
9309 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 if test -n "$WINDMC"; then
9313 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9314 else
9315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316 for as_dir in $PATH
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9322 ac_cv_prog_WINDMC="${ncn_progname}"
9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 break 2
9326 done
9327 done
9328 IFS=$as_save_IFS
9332 WINDMC=$ac_cv_prog_WINDMC
9333 if test -n "$WINDMC"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9335 $as_echo "$WINDMC" >&6; }
9336 else
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9342 done
9345 for ncn_progname in windmc; do
9346 if test -n "$ncn_tool_prefix"; then
9347 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9348 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9350 $as_echo_n "checking for $ac_word... " >&6; }
9351 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 if test -n "$WINDMC"; then
9355 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9356 else
9357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358 for as_dir in $PATH
9360 IFS=$as_save_IFS
9361 test -z "$as_dir" && as_dir=.
9362 for ac_exec_ext in '' $ac_executable_extensions; do
9363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9364 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366 break 2
9368 done
9369 done
9370 IFS=$as_save_IFS
9374 WINDMC=$ac_cv_prog_WINDMC
9375 if test -n "$WINDMC"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9377 $as_echo "$WINDMC" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9385 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9386 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9387 set dummy ${ncn_progname}; ac_word=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 if test -n "$WINDMC"; then
9394 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9395 else
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9403 ac_cv_prog_WINDMC="${ncn_progname}"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9405 break 2
9407 done
9408 done
9409 IFS=$as_save_IFS
9413 WINDMC=$ac_cv_prog_WINDMC
9414 if test -n "$WINDMC"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9416 $as_echo "$WINDMC" >&6; }
9417 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9424 test -n "$ac_cv_prog_WINDMC" && break
9425 done
9427 if test -z "$ac_cv_prog_WINDMC" ; then
9428 set dummy windmc
9429 if test $build = $host ; then
9430 WINDMC="$2"
9431 else
9432 WINDMC="${ncn_tool_prefix}$2"
9438 if test -n "$OBJCOPY"; then
9439 ac_cv_prog_OBJCOPY=$OBJCOPY
9440 elif test -n "$ac_cv_prog_OBJCOPY"; then
9441 OBJCOPY=$ac_cv_prog_OBJCOPY
9444 if test -n "$ac_cv_prog_OBJCOPY"; then
9445 for ncn_progname in objcopy; do
9446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9447 set dummy ${ncn_progname}; ac_word=$2
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 $as_echo_n "checking for $ac_word... " >&6; }
9450 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 if test -n "$OBJCOPY"; then
9454 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9455 else
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_prog_OBJCOPY="${ncn_progname}"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9467 done
9468 done
9469 IFS=$as_save_IFS
9473 OBJCOPY=$ac_cv_prog_OBJCOPY
9474 if test -n "$OBJCOPY"; then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9476 $as_echo "$OBJCOPY" >&6; }
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479 $as_echo "no" >&6; }
9483 done
9486 for ncn_progname in objcopy; do
9487 if test -n "$ncn_tool_prefix"; then
9488 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9489 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 if test -n "$OBJCOPY"; then
9496 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9497 else
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 for ac_exec_ext in '' $ac_executable_extensions; do
9504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9505 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9507 break 2
9509 done
9510 done
9511 IFS=$as_save_IFS
9515 OBJCOPY=$ac_cv_prog_OBJCOPY
9516 if test -n "$OBJCOPY"; then
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9518 $as_echo "$OBJCOPY" >&6; }
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9521 $as_echo "no" >&6; }
9526 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9527 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9528 set dummy ${ncn_progname}; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 if test -n "$OBJCOPY"; then
9535 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9536 else
9537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9544 ac_cv_prog_OBJCOPY="${ncn_progname}"
9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546 break 2
9548 done
9549 done
9550 IFS=$as_save_IFS
9554 OBJCOPY=$ac_cv_prog_OBJCOPY
9555 if test -n "$OBJCOPY"; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9557 $as_echo "$OBJCOPY" >&6; }
9558 else
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 $as_echo "no" >&6; }
9565 test -n "$ac_cv_prog_OBJCOPY" && break
9566 done
9568 if test -z "$ac_cv_prog_OBJCOPY" ; then
9569 set dummy objcopy
9570 if test $build = $host ; then
9571 OBJCOPY="$2"
9572 else
9573 OBJCOPY="${ncn_tool_prefix}$2"
9579 if test -n "$OBJDUMP"; then
9580 ac_cv_prog_OBJDUMP=$OBJDUMP
9581 elif test -n "$ac_cv_prog_OBJDUMP"; then
9582 OBJDUMP=$ac_cv_prog_OBJDUMP
9585 if test -n "$ac_cv_prog_OBJDUMP"; then
9586 for ncn_progname in objdump; do
9587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9588 set dummy ${ncn_progname}; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 if test -n "$OBJDUMP"; then
9595 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9596 else
9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 for as_dir in $PATH
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604 ac_cv_prog_OBJDUMP="${ncn_progname}"
9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 break 2
9608 done
9609 done
9610 IFS=$as_save_IFS
9614 OBJDUMP=$ac_cv_prog_OBJDUMP
9615 if test -n "$OBJDUMP"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9617 $as_echo "$OBJDUMP" >&6; }
9618 else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9624 done
9627 for ncn_progname in objdump; do
9628 if test -n "$ncn_tool_prefix"; then
9629 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9630 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 $as_echo_n "checking for $ac_word... " >&6; }
9633 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 if test -n "$OBJDUMP"; then
9637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9638 else
9639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9640 for as_dir in $PATH
9642 IFS=$as_save_IFS
9643 test -z "$as_dir" && as_dir=.
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9646 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9648 break 2
9650 done
9651 done
9652 IFS=$as_save_IFS
9656 OBJDUMP=$ac_cv_prog_OBJDUMP
9657 if test -n "$OBJDUMP"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9659 $as_echo "$OBJDUMP" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9667 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9668 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9669 set dummy ${ncn_progname}; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 if test -n "$OBJDUMP"; then
9676 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9677 else
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9685 ac_cv_prog_OBJDUMP="${ncn_progname}"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 break 2
9689 done
9690 done
9691 IFS=$as_save_IFS
9695 OBJDUMP=$ac_cv_prog_OBJDUMP
9696 if test -n "$OBJDUMP"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9698 $as_echo "$OBJDUMP" >&6; }
9699 else
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9706 test -n "$ac_cv_prog_OBJDUMP" && break
9707 done
9709 if test -z "$ac_cv_prog_OBJDUMP" ; then
9710 set dummy objdump
9711 if test $build = $host ; then
9712 OBJDUMP="$2"
9713 else
9714 OBJDUMP="${ncn_tool_prefix}$2"
9723 # Target tools.
9725 # Check whether --with-build-time-tools was given.
9726 if test "${with_build_time_tools+set}" = set; then :
9727 withval=$with_build_time_tools; case x"$withval" in
9728 x/*) ;;
9730 with_build_time_tools=
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9732 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9734 esac
9735 else
9736 with_build_time_tools=
9742 if test -n "$CC_FOR_TARGET"; then
9743 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9744 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9745 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9748 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9749 for ncn_progname in cc gcc; do
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; }
9787 done
9790 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9791 for ncn_progname in cc gcc; do
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9793 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9794 if test -x $with_build_time_tools/${ncn_progname}; then
9795 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9797 $as_echo "yes" >&6; }
9798 break
9799 else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; }
9803 done
9806 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9807 for ncn_progname in cc gcc; do
9808 if test -n "$ncn_target_tool_prefix"; then
9809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9810 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 $as_echo_n "checking for $ac_word... " >&6; }
9813 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 if test -n "$CC_FOR_TARGET"; then
9817 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9818 else
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 break 2
9830 done
9831 done
9832 IFS=$as_save_IFS
9836 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9837 if test -n "$CC_FOR_TARGET"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9839 $as_echo "$CC_FOR_TARGET" >&6; }
9840 else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9847 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9849 set dummy ${ncn_progname}; ac_word=$2
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851 $as_echo_n "checking for $ac_word... " >&6; }
9852 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9854 else
9855 if test -n "$CC_FOR_TARGET"; then
9856 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9857 else
9858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 for as_dir in $PATH
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9865 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9867 break 2
9869 done
9870 done
9871 IFS=$as_save_IFS
9875 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9876 if test -n "$CC_FOR_TARGET"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9878 $as_echo "$CC_FOR_TARGET" >&6; }
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; }
9886 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9887 done
9890 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9891 set dummy cc gcc
9892 if test $build = $target ; then
9893 CC_FOR_TARGET="$2"
9894 else
9895 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9897 else
9898 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9903 if test -n "$CXX_FOR_TARGET"; then
9904 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9905 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9906 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9909 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9910 for ncn_progname in c++ g++ cxx gxx; do
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; }
9948 done
9951 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9952 for ncn_progname in c++ g++ cxx gxx; do
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9954 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9955 if test -x $with_build_time_tools/${ncn_progname}; then
9956 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9958 $as_echo "yes" >&6; }
9959 break
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9964 done
9967 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9968 for ncn_progname in c++ g++ cxx gxx; do
9969 if test -n "$ncn_target_tool_prefix"; then
9970 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9971 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973 $as_echo_n "checking for $ac_word... " >&6; }
9974 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 if test -n "$CXX_FOR_TARGET"; then
9978 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9979 else
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9983 IFS=$as_save_IFS
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989 break 2
9991 done
9992 done
9993 IFS=$as_save_IFS
9997 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9998 if test -n "$CXX_FOR_TARGET"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10000 $as_echo "$CXX_FOR_TARGET" >&6; }
10001 else
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10008 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10010 set dummy ${ncn_progname}; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 if test -n "$CXX_FOR_TARGET"; then
10017 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10018 else
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10022 IFS=$as_save_IFS
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 break 2
10030 done
10031 done
10032 IFS=$as_save_IFS
10036 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10037 if test -n "$CXX_FOR_TARGET"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10039 $as_echo "$CXX_FOR_TARGET" >&6; }
10040 else
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10047 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10048 done
10051 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10052 set dummy c++ g++ cxx gxx
10053 if test $build = $target ; then
10054 CXX_FOR_TARGET="$2"
10055 else
10056 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10058 else
10059 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10064 if test -n "$GCC_FOR_TARGET"; then
10065 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10066 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10067 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10070 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10071 for ncn_progname in gcc; do
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; }
10109 done
10112 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10113 for ncn_progname in gcc; do
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10115 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10116 if test -x $with_build_time_tools/${ncn_progname}; then
10117 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10119 $as_echo "yes" >&6; }
10120 break
10121 else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123 $as_echo "no" >&6; }
10125 done
10128 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10129 for ncn_progname in gcc; do
10130 if test -n "$ncn_target_tool_prefix"; then
10131 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10132 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10137 else
10138 if test -n "$GCC_FOR_TARGET"; then
10139 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10152 done
10153 done
10154 IFS=$as_save_IFS
10158 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10159 if test -n "$GCC_FOR_TARGET"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10161 $as_echo "$GCC_FOR_TARGET" >&6; }
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10169 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10171 set dummy ${ncn_progname}; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10175 $as_echo_n "(cached) " >&6
10176 else
10177 if test -n "$GCC_FOR_TARGET"; then
10178 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10179 else
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10183 IFS=$as_save_IFS
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189 break 2
10191 done
10192 done
10193 IFS=$as_save_IFS
10197 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10198 if test -n "$GCC_FOR_TARGET"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10200 $as_echo "$GCC_FOR_TARGET" >&6; }
10201 else
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10208 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10209 done
10212 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10213 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10214 else
10215 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10220 if test -n "$GCJ_FOR_TARGET"; then
10221 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10222 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10223 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10226 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10227 for ncn_progname in gcj; do
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; }
10265 done
10268 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10269 for ncn_progname in gcj; do
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10271 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10272 if test -x $with_build_time_tools/${ncn_progname}; then
10273 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10275 $as_echo "yes" >&6; }
10276 break
10277 else
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10281 done
10284 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10285 for ncn_progname in gcj; do
10286 if test -n "$ncn_target_tool_prefix"; then
10287 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10288 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290 $as_echo_n "checking for $ac_word... " >&6; }
10291 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10292 $as_echo_n "(cached) " >&6
10293 else
10294 if test -n "$GCJ_FOR_TARGET"; then
10295 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10296 else
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10304 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10308 done
10309 done
10310 IFS=$as_save_IFS
10314 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10315 if test -n "$GCJ_FOR_TARGET"; then
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10317 $as_echo "$GCJ_FOR_TARGET" >&6; }
10318 else
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10325 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10327 set dummy ${ncn_progname}; ac_word=$2
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329 $as_echo_n "checking for $ac_word... " >&6; }
10330 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10331 $as_echo_n "(cached) " >&6
10332 else
10333 if test -n "$GCJ_FOR_TARGET"; then
10334 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10335 else
10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337 for as_dir in $PATH
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
10341 for ac_exec_ext in '' $ac_executable_extensions; do
10342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10343 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 break 2
10347 done
10348 done
10349 IFS=$as_save_IFS
10353 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10354 if test -n "$GCJ_FOR_TARGET"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10356 $as_echo "$GCJ_FOR_TARGET" >&6; }
10357 else
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10364 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10365 done
10368 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10369 set dummy gcj
10370 if test $build = $target ; then
10371 GCJ_FOR_TARGET="$2"
10372 else
10373 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10375 else
10376 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10381 if test -n "$GFORTRAN_FOR_TARGET"; then
10382 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10383 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10384 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10387 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10388 for ncn_progname in gfortran; do
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; }
10426 done
10429 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10430 for ncn_progname in gfortran; do
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10432 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10433 if test -x $with_build_time_tools/${ncn_progname}; then
10434 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10436 $as_echo "yes" >&6; }
10437 break
10438 else
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10440 $as_echo "no" >&6; }
10442 done
10445 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10446 for ncn_progname in gfortran; do
10447 if test -n "$ncn_target_tool_prefix"; then
10448 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10449 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10451 $as_echo_n "checking for $ac_word... " >&6; }
10452 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10453 $as_echo_n "(cached) " >&6
10454 else
10455 if test -n "$GFORTRAN_FOR_TARGET"; then
10456 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10457 else
10458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10459 for as_dir in $PATH
10461 IFS=$as_save_IFS
10462 test -z "$as_dir" && as_dir=.
10463 for ac_exec_ext in '' $ac_executable_extensions; do
10464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10465 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 break 2
10469 done
10470 done
10471 IFS=$as_save_IFS
10475 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10476 if test -n "$GFORTRAN_FOR_TARGET"; then
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10478 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10479 else
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10481 $as_echo "no" >&6; }
10486 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10488 set dummy ${ncn_progname}; ac_word=$2
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10490 $as_echo_n "checking for $ac_word... " >&6; }
10491 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 if test -n "$GFORTRAN_FOR_TARGET"; then
10495 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10496 else
10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10504 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10506 break 2
10508 done
10509 done
10510 IFS=$as_save_IFS
10514 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10515 if test -n "$GFORTRAN_FOR_TARGET"; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10517 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10518 else
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10520 $as_echo "no" >&6; }
10525 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10526 done
10529 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10530 set dummy gfortran
10531 if test $build = $target ; then
10532 GFORTRAN_FOR_TARGET="$2"
10533 else
10534 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10536 else
10537 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10542 if test -n "$GOC_FOR_TARGET"; then
10543 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10544 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10545 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10548 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10549 for ncn_progname in gccgo; do
10550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10551 set dummy ${ncn_progname}; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 if test -n "$GOC_FOR_TARGET"; then
10558 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10559 else
10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10563 IFS=$as_save_IFS
10564 test -z "$as_dir" && as_dir=.
10565 for ac_exec_ext in '' $ac_executable_extensions; do
10566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10567 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569 break 2
10571 done
10572 done
10573 IFS=$as_save_IFS
10577 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10578 if test -n "$GOC_FOR_TARGET"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10580 $as_echo "$GOC_FOR_TARGET" >&6; }
10581 else
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10587 done
10590 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10591 for ncn_progname in gccgo; do
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10593 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10594 if test -x $with_build_time_tools/${ncn_progname}; then
10595 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10597 $as_echo "yes" >&6; }
10598 break
10599 else
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10603 done
10606 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10607 for ncn_progname in gccgo; do
10608 if test -n "$ncn_target_tool_prefix"; then
10609 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10610 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10612 $as_echo_n "checking for $ac_word... " >&6; }
10613 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 if test -n "$GOC_FOR_TARGET"; then
10617 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10618 else
10619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620 for as_dir in $PATH
10622 IFS=$as_save_IFS
10623 test -z "$as_dir" && as_dir=.
10624 for ac_exec_ext in '' $ac_executable_extensions; do
10625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10626 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10628 break 2
10630 done
10631 done
10632 IFS=$as_save_IFS
10636 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10637 if test -n "$GOC_FOR_TARGET"; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10639 $as_echo "$GOC_FOR_TARGET" >&6; }
10640 else
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10647 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10649 set dummy ${ncn_progname}; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 if test -n "$GOC_FOR_TARGET"; then
10656 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10657 else
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10665 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10669 done
10670 done
10671 IFS=$as_save_IFS
10675 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10676 if test -n "$GOC_FOR_TARGET"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10678 $as_echo "$GOC_FOR_TARGET" >&6; }
10679 else
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10686 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10687 done
10690 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10691 set dummy gccgo
10692 if test $build = $target ; then
10693 GOC_FOR_TARGET="$2"
10694 else
10695 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10697 else
10698 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10703 cat > conftest.c << \EOF
10704 #ifdef __GNUC__
10705 gcc_yay;
10706 #endif
10708 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10709 have_gcc_for_target=yes
10710 else
10711 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10712 have_gcc_for_target=no
10714 rm conftest.c
10719 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10720 if test -n "$with_build_time_tools"; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10722 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10723 if test -x $with_build_time_tools/ar; then
10724 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10725 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10727 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10732 elif test $build != $host && test $have_gcc_for_target = yes; then
10733 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10734 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10735 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10738 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10739 # Extract the first word of "ar", so it can be a program name with args.
10740 set dummy ar; ac_word=$2
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10742 $as_echo_n "checking for $ac_word... " >&6; }
10743 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10744 $as_echo_n "(cached) " >&6
10745 else
10746 case $AR_FOR_TARGET in
10747 [\\/]* | ?:[\\/]*)
10748 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $gcc_cv_tool_dirs
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10762 done
10763 done
10764 IFS=$as_save_IFS
10767 esac
10769 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10770 if test -n "$AR_FOR_TARGET"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10772 $as_echo "$AR_FOR_TARGET" >&6; }
10773 else
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10775 $as_echo "no" >&6; }
10780 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10783 if test -n "$AR_FOR_TARGET"; then
10784 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10785 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10786 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10789 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10790 for ncn_progname in ar; do
10791 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10792 set dummy ${ncn_progname}; ac_word=$2
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794 $as_echo_n "checking for $ac_word... " >&6; }
10795 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 if test -n "$AR_FOR_TARGET"; then
10799 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10800 else
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10804 IFS=$as_save_IFS
10805 test -z "$as_dir" && as_dir=.
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10808 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10810 break 2
10812 done
10813 done
10814 IFS=$as_save_IFS
10818 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10819 if test -n "$AR_FOR_TARGET"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10821 $as_echo "$AR_FOR_TARGET" >&6; }
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10828 done
10831 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10832 for ncn_progname in ar; do
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10834 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10835 if test -x $with_build_time_tools/${ncn_progname}; then
10836 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10838 $as_echo "yes" >&6; }
10839 break
10840 else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10844 done
10847 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10848 for ncn_progname in ar; do
10849 if test -n "$ncn_target_tool_prefix"; then
10850 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10851 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853 $as_echo_n "checking for $ac_word... " >&6; }
10854 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10856 else
10857 if test -n "$AR_FOR_TARGET"; then
10858 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10859 else
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10871 done
10872 done
10873 IFS=$as_save_IFS
10877 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10878 if test -n "$AR_FOR_TARGET"; then
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10880 $as_echo "$AR_FOR_TARGET" >&6; }
10881 else
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10883 $as_echo "no" >&6; }
10888 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10890 set dummy ${ncn_progname}; ac_word=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 if test -n "$AR_FOR_TARGET"; then
10897 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10898 else
10899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10900 for as_dir in $PATH
10902 IFS=$as_save_IFS
10903 test -z "$as_dir" && as_dir=.
10904 for ac_exec_ext in '' $ac_executable_extensions; do
10905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10906 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 break 2
10910 done
10911 done
10912 IFS=$as_save_IFS
10916 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10917 if test -n "$AR_FOR_TARGET"; then
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10919 $as_echo "$AR_FOR_TARGET" >&6; }
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10927 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10928 done
10931 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10932 set dummy ar
10933 if test $build = $target ; then
10934 AR_FOR_TARGET="$2"
10935 else
10936 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10938 else
10939 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10942 else
10943 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10949 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10950 if test -n "$with_build_time_tools"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10952 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10953 if test -x $with_build_time_tools/as; then
10954 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10955 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10957 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10958 else
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10960 $as_echo "no" >&6; }
10962 elif test $build != $host && test $have_gcc_for_target = yes; then
10963 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10964 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10965 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10968 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10969 # Extract the first word of "as", so it can be a program name with args.
10970 set dummy as; ac_word=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 case $AS_FOR_TARGET in
10977 [\\/]* | ?:[\\/]*)
10978 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982 for as_dir in $gcc_cv_tool_dirs
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10988 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10992 done
10993 done
10994 IFS=$as_save_IFS
10997 esac
10999 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11000 if test -n "$AS_FOR_TARGET"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11002 $as_echo "$AS_FOR_TARGET" >&6; }
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11010 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11013 if test -n "$AS_FOR_TARGET"; then
11014 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11015 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11016 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11019 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11020 for ncn_progname in as; do
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022 set dummy ${ncn_progname}; ac_word=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 if test -n "$AS_FOR_TARGET"; then
11029 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11030 else
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11040 break 2
11042 done
11043 done
11044 IFS=$as_save_IFS
11048 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11049 if test -n "$AS_FOR_TARGET"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11051 $as_echo "$AS_FOR_TARGET" >&6; }
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; }
11058 done
11061 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11062 for ncn_progname in as; do
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11064 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11065 if test -x $with_build_time_tools/${ncn_progname}; then
11066 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; }
11069 break
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11074 done
11077 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11078 for ncn_progname in as; do
11079 if test -n "$ncn_target_tool_prefix"; then
11080 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11081 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083 $as_echo_n "checking for $ac_word... " >&6; }
11084 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 if test -n "$AS_FOR_TARGET"; then
11088 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11089 else
11090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091 for as_dir in $PATH
11093 IFS=$as_save_IFS
11094 test -z "$as_dir" && as_dir=.
11095 for ac_exec_ext in '' $ac_executable_extensions; do
11096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11097 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 break 2
11101 done
11102 done
11103 IFS=$as_save_IFS
11107 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11108 if test -n "$AS_FOR_TARGET"; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11110 $as_echo "$AS_FOR_TARGET" >&6; }
11111 else
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113 $as_echo "no" >&6; }
11118 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11120 set dummy ${ncn_progname}; ac_word=$2
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11122 $as_echo_n "checking for $ac_word... " >&6; }
11123 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 if test -n "$AS_FOR_TARGET"; then
11127 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11128 else
11129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11130 for as_dir in $PATH
11132 IFS=$as_save_IFS
11133 test -z "$as_dir" && as_dir=.
11134 for ac_exec_ext in '' $ac_executable_extensions; do
11135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11136 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 break 2
11140 done
11141 done
11142 IFS=$as_save_IFS
11146 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11147 if test -n "$AS_FOR_TARGET"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11149 $as_echo "$AS_FOR_TARGET" >&6; }
11150 else
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152 $as_echo "no" >&6; }
11157 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11158 done
11161 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11162 set dummy as
11163 if test $build = $target ; then
11164 AS_FOR_TARGET="$2"
11165 else
11166 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11168 else
11169 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11172 else
11173 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11179 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11180 if test -n "$with_build_time_tools"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11182 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11183 if test -x $with_build_time_tools/dlltool; then
11184 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11185 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11187 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11188 else
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190 $as_echo "no" >&6; }
11192 elif test $build != $host && test $have_gcc_for_target = yes; then
11193 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11194 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11195 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11198 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11199 # Extract the first word of "dlltool", so it can be a program name with args.
11200 set dummy dlltool; ac_word=$2
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 $as_echo_n "checking for $ac_word... " >&6; }
11203 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 case $DLLTOOL_FOR_TARGET in
11207 [\\/]* | ?:[\\/]*)
11208 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212 for as_dir in $gcc_cv_tool_dirs
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11218 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 break 2
11222 done
11223 done
11224 IFS=$as_save_IFS
11227 esac
11229 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11230 if test -n "$DLLTOOL_FOR_TARGET"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11232 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11233 else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235 $as_echo "no" >&6; }
11240 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11243 if test -n "$DLLTOOL_FOR_TARGET"; then
11244 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11245 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11246 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11249 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11250 for ncn_progname in dlltool; do
11251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11252 set dummy ${ncn_progname}; ac_word=$2
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11254 $as_echo_n "checking for $ac_word... " >&6; }
11255 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
11257 else
11258 if test -n "$DLLTOOL_FOR_TARGET"; then
11259 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11260 else
11261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11268 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270 break 2
11272 done
11273 done
11274 IFS=$as_save_IFS
11278 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11279 if test -n "$DLLTOOL_FOR_TARGET"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11281 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11288 done
11291 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11292 for ncn_progname in dlltool; do
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11294 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11295 if test -x $with_build_time_tools/${ncn_progname}; then
11296 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11298 $as_echo "yes" >&6; }
11299 break
11300 else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302 $as_echo "no" >&6; }
11304 done
11307 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11308 for ncn_progname in dlltool; do
11309 if test -n "$ncn_target_tool_prefix"; then
11310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313 $as_echo_n "checking for $ac_word... " >&6; }
11314 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 if test -n "$DLLTOOL_FOR_TARGET"; then
11318 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11319 else
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11323 IFS=$as_save_IFS
11324 test -z "$as_dir" && as_dir=.
11325 for ac_exec_ext in '' $ac_executable_extensions; do
11326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 break 2
11331 done
11332 done
11333 IFS=$as_save_IFS
11337 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11338 if test -n "$DLLTOOL_FOR_TARGET"; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11340 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11348 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11350 set dummy ${ncn_progname}; ac_word=$2
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 $as_echo_n "checking for $ac_word... " >&6; }
11353 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 if test -n "$DLLTOOL_FOR_TARGET"; then
11357 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11358 else
11359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360 for as_dir in $PATH
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11366 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11370 done
11371 done
11372 IFS=$as_save_IFS
11376 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11377 if test -n "$DLLTOOL_FOR_TARGET"; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11379 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11380 else
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 $as_echo "no" >&6; }
11387 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11388 done
11391 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11392 set dummy dlltool
11393 if test $build = $target ; then
11394 DLLTOOL_FOR_TARGET="$2"
11395 else
11396 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11398 else
11399 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11402 else
11403 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11409 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11410 if test -n "$with_build_time_tools"; then
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11412 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11413 if test -x $with_build_time_tools/ld; then
11414 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11415 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11417 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420 $as_echo "no" >&6; }
11422 elif test $build != $host && test $have_gcc_for_target = yes; then
11423 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11424 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11425 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11428 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11429 # Extract the first word of "ld", so it can be a program name with args.
11430 set dummy ld; ac_word=$2
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 $as_echo_n "checking for $ac_word... " >&6; }
11433 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 case $LD_FOR_TARGET in
11437 [\\/]* | ?:[\\/]*)
11438 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442 for as_dir in $gcc_cv_tool_dirs
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11448 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 break 2
11452 done
11453 done
11454 IFS=$as_save_IFS
11457 esac
11459 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11460 if test -n "$LD_FOR_TARGET"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11462 $as_echo "$LD_FOR_TARGET" >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11470 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11473 if test -n "$LD_FOR_TARGET"; then
11474 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11475 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11476 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11479 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11480 for ncn_progname in ld; do
11481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11482 set dummy ${ncn_progname}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484 $as_echo_n "checking for $ac_word... " >&6; }
11485 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 if test -n "$LD_FOR_TARGET"; then
11489 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11498 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11500 break 2
11502 done
11503 done
11504 IFS=$as_save_IFS
11508 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11509 if test -n "$LD_FOR_TARGET"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11511 $as_echo "$LD_FOR_TARGET" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11518 done
11521 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11522 for ncn_progname in ld; do
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11524 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11525 if test -x $with_build_time_tools/${ncn_progname}; then
11526 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11528 $as_echo "yes" >&6; }
11529 break
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 $as_echo "no" >&6; }
11534 done
11537 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11538 for ncn_progname in ld; do
11539 if test -n "$ncn_target_tool_prefix"; then
11540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543 $as_echo_n "checking for $ac_word... " >&6; }
11544 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 if test -n "$LD_FOR_TARGET"; then
11548 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11549 else
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11553 IFS=$as_save_IFS
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11557 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 break 2
11561 done
11562 done
11563 IFS=$as_save_IFS
11567 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11568 if test -n "$LD_FOR_TARGET"; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11570 $as_echo "$LD_FOR_TARGET" >&6; }
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11578 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11580 set dummy ${ncn_progname}; ac_word=$2
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 $as_echo_n "checking for $ac_word... " >&6; }
11583 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test -n "$LD_FOR_TARGET"; then
11587 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11588 else
11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH
11592 IFS=$as_save_IFS
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11596 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598 break 2
11600 done
11601 done
11602 IFS=$as_save_IFS
11606 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11607 if test -n "$LD_FOR_TARGET"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11609 $as_echo "$LD_FOR_TARGET" >&6; }
11610 else
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11617 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11618 done
11621 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11622 set dummy ld
11623 if test $build = $target ; then
11624 LD_FOR_TARGET="$2"
11625 else
11626 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11628 else
11629 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11632 else
11633 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11639 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11640 if test -n "$with_build_time_tools"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11642 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11643 if test -x $with_build_time_tools/lipo; then
11644 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11645 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11647 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11652 elif test $build != $host && test $have_gcc_for_target = yes; then
11653 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11654 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11655 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11658 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11659 # Extract the first word of "lipo", so it can be a program name with args.
11660 set dummy lipo; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11662 $as_echo_n "checking for $ac_word... " >&6; }
11663 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 case $LIPO_FOR_TARGET in
11667 [\\/]* | ?:[\\/]*)
11668 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $gcc_cv_tool_dirs
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 break 2
11682 done
11683 done
11684 IFS=$as_save_IFS
11687 esac
11689 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11690 if test -n "$LIPO_FOR_TARGET"; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11692 $as_echo "$LIPO_FOR_TARGET" >&6; }
11693 else
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11695 $as_echo "no" >&6; }
11700 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11703 if test -n "$LIPO_FOR_TARGET"; then
11704 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11705 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11706 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11709 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11710 for ncn_progname in lipo; do
11711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11712 set dummy ${ncn_progname}; ac_word=$2
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714 $as_echo_n "checking for $ac_word... " >&6; }
11715 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 if test -n "$LIPO_FOR_TARGET"; then
11719 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11720 else
11721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11732 done
11733 done
11734 IFS=$as_save_IFS
11738 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11739 if test -n "$LIPO_FOR_TARGET"; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11741 $as_echo "$LIPO_FOR_TARGET" >&6; }
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11748 done
11751 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11752 for ncn_progname in lipo; do
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11754 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11755 if test -x $with_build_time_tools/${ncn_progname}; then
11756 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758 $as_echo "yes" >&6; }
11759 break
11760 else
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11764 done
11767 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11768 for ncn_progname in lipo; do
11769 if test -n "$ncn_target_tool_prefix"; then
11770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773 $as_echo_n "checking for $ac_word... " >&6; }
11774 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 if test -n "$LIPO_FOR_TARGET"; then
11778 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11779 else
11780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11781 for as_dir in $PATH
11783 IFS=$as_save_IFS
11784 test -z "$as_dir" && as_dir=.
11785 for ac_exec_ext in '' $ac_executable_extensions; do
11786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11787 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 break 2
11791 done
11792 done
11793 IFS=$as_save_IFS
11797 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11798 if test -n "$LIPO_FOR_TARGET"; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11800 $as_echo "$LIPO_FOR_TARGET" >&6; }
11801 else
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11808 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11810 set dummy ${ncn_progname}; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 if test -n "$LIPO_FOR_TARGET"; then
11817 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11830 done
11831 done
11832 IFS=$as_save_IFS
11836 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11837 if test -n "$LIPO_FOR_TARGET"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11839 $as_echo "$LIPO_FOR_TARGET" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11847 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11848 done
11851 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11852 set dummy lipo
11853 if test $build = $target ; then
11854 LIPO_FOR_TARGET="$2"
11855 else
11856 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11858 else
11859 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11862 else
11863 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11869 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11870 if test -n "$with_build_time_tools"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11872 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11873 if test -x $with_build_time_tools/nm; then
11874 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11875 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11877 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11882 elif test $build != $host && test $have_gcc_for_target = yes; then
11883 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11884 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11885 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11888 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11889 # Extract the first word of "nm", so it can be a program name with args.
11890 set dummy nm; ac_word=$2
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892 $as_echo_n "checking for $ac_word... " >&6; }
11893 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 case $NM_FOR_TARGET in
11897 [\\/]* | ?:[\\/]*)
11898 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902 for as_dir in $gcc_cv_tool_dirs
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11908 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11910 break 2
11912 done
11913 done
11914 IFS=$as_save_IFS
11917 esac
11919 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11920 if test -n "$NM_FOR_TARGET"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11922 $as_echo "$NM_FOR_TARGET" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11930 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11933 if test -n "$NM_FOR_TARGET"; then
11934 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11935 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11936 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11939 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11940 for ncn_progname in nm; do
11941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 if test -n "$NM_FOR_TARGET"; then
11949 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11950 else
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960 break 2
11962 done
11963 done
11964 IFS=$as_save_IFS
11968 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11969 if test -n "$NM_FOR_TARGET"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11971 $as_echo "$NM_FOR_TARGET" >&6; }
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11978 done
11981 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11982 for ncn_progname in nm; do
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11984 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11985 if test -x $with_build_time_tools/${ncn_progname}; then
11986 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 $as_echo "yes" >&6; }
11989 break
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11994 done
11997 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11998 for ncn_progname in nm; do
11999 if test -n "$ncn_target_tool_prefix"; then
12000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12003 $as_echo_n "checking for $ac_word... " >&6; }
12004 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 if test -n "$NM_FOR_TARGET"; then
12008 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12009 else
12010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12011 for as_dir in $PATH
12013 IFS=$as_save_IFS
12014 test -z "$as_dir" && as_dir=.
12015 for ac_exec_ext in '' $ac_executable_extensions; do
12016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12017 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 break 2
12021 done
12022 done
12023 IFS=$as_save_IFS
12027 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12028 if test -n "$NM_FOR_TARGET"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12030 $as_echo "$NM_FOR_TARGET" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12038 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12040 set dummy ${ncn_progname}; ac_word=$2
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042 $as_echo_n "checking for $ac_word... " >&6; }
12043 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 if test -n "$NM_FOR_TARGET"; then
12047 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12048 else
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12052 IFS=$as_save_IFS
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12056 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 break 2
12060 done
12061 done
12062 IFS=$as_save_IFS
12066 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12067 if test -n "$NM_FOR_TARGET"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12069 $as_echo "$NM_FOR_TARGET" >&6; }
12070 else
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12077 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12078 done
12081 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12082 set dummy nm
12083 if test $build = $target ; then
12084 NM_FOR_TARGET="$2"
12085 else
12086 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12088 else
12089 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12092 else
12093 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12099 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12100 if test -n "$with_build_time_tools"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12102 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12103 if test -x $with_build_time_tools/objdump; then
12104 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12105 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12107 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12112 elif test $build != $host && test $have_gcc_for_target = yes; then
12113 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12114 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12115 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12118 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12119 # Extract the first word of "objdump", so it can be a program name with args.
12120 set dummy objdump; ac_word=$2
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122 $as_echo_n "checking for $ac_word... " >&6; }
12123 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126 case $OBJDUMP_FOR_TARGET in
12127 [\\/]* | ?:[\\/]*)
12128 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $gcc_cv_tool_dirs
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12138 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12140 break 2
12142 done
12143 done
12144 IFS=$as_save_IFS
12147 esac
12149 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12150 if test -n "$OBJDUMP_FOR_TARGET"; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12152 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12160 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12163 if test -n "$OBJDUMP_FOR_TARGET"; then
12164 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12165 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12166 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12169 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12170 for ncn_progname in objdump; do
12171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12172 set dummy ${ncn_progname}; ac_word=$2
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174 $as_echo_n "checking for $ac_word... " >&6; }
12175 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 if test -n "$OBJDUMP_FOR_TARGET"; then
12179 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12180 else
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182 for as_dir in $PATH
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12188 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 break 2
12192 done
12193 done
12194 IFS=$as_save_IFS
12198 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12199 if test -n "$OBJDUMP_FOR_TARGET"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12201 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12208 done
12211 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12212 for ncn_progname in objdump; do
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12214 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12215 if test -x $with_build_time_tools/${ncn_progname}; then
12216 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12218 $as_echo "yes" >&6; }
12219 break
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12224 done
12227 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12228 for ncn_progname in objdump; do
12229 if test -n "$ncn_target_tool_prefix"; then
12230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -n "$OBJDUMP_FOR_TARGET"; then
12238 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12239 else
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12251 done
12252 done
12253 IFS=$as_save_IFS
12257 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12258 if test -n "$OBJDUMP_FOR_TARGET"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12260 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12268 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12270 set dummy ${ncn_progname}; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 if test -n "$OBJDUMP_FOR_TARGET"; then
12277 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12278 else
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12282 IFS=$as_save_IFS
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288 break 2
12290 done
12291 done
12292 IFS=$as_save_IFS
12296 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12297 if test -n "$OBJDUMP_FOR_TARGET"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12299 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12300 else
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12307 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12308 done
12311 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12312 set dummy objdump
12313 if test $build = $target ; then
12314 OBJDUMP_FOR_TARGET="$2"
12315 else
12316 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12318 else
12319 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12322 else
12323 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12329 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12330 if test -n "$with_build_time_tools"; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12332 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12333 if test -x $with_build_time_tools/ranlib; then
12334 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12335 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12337 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12342 elif test $build != $host && test $have_gcc_for_target = yes; then
12343 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12344 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12345 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12348 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12349 # Extract the first word of "ranlib", so it can be a program name with args.
12350 set dummy ranlib; ac_word=$2
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352 $as_echo_n "checking for $ac_word... " >&6; }
12353 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 case $RANLIB_FOR_TARGET in
12357 [\\/]* | ?:[\\/]*)
12358 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $gcc_cv_tool_dirs
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12372 done
12373 done
12374 IFS=$as_save_IFS
12377 esac
12379 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12380 if test -n "$RANLIB_FOR_TARGET"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12382 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12383 else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12390 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12393 if test -n "$RANLIB_FOR_TARGET"; then
12394 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12395 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12396 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12399 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12400 for ncn_progname in ranlib; do
12401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12402 set dummy ${ncn_progname}; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 if test -n "$RANLIB_FOR_TARGET"; then
12409 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12410 else
12411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12414 IFS=$as_save_IFS
12415 test -z "$as_dir" && as_dir=.
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12418 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420 break 2
12422 done
12423 done
12424 IFS=$as_save_IFS
12428 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12429 if test -n "$RANLIB_FOR_TARGET"; then
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12431 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12432 else
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434 $as_echo "no" >&6; }
12438 done
12441 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12442 for ncn_progname in ranlib; do
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12444 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12445 if test -x $with_build_time_tools/${ncn_progname}; then
12446 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12448 $as_echo "yes" >&6; }
12449 break
12450 else
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12452 $as_echo "no" >&6; }
12454 done
12457 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12458 for ncn_progname in ranlib; do
12459 if test -n "$ncn_target_tool_prefix"; then
12460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463 $as_echo_n "checking for $ac_word... " >&6; }
12464 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 if test -n "$RANLIB_FOR_TARGET"; then
12468 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12469 else
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471 for as_dir in $PATH
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12477 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12481 done
12482 done
12483 IFS=$as_save_IFS
12487 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12488 if test -n "$RANLIB_FOR_TARGET"; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12490 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12498 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12500 set dummy ${ncn_progname}; ac_word=$2
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12505 else
12506 if test -n "$RANLIB_FOR_TARGET"; then
12507 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12508 else
12509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12510 for as_dir in $PATH
12512 IFS=$as_save_IFS
12513 test -z "$as_dir" && as_dir=.
12514 for ac_exec_ext in '' $ac_executable_extensions; do
12515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12516 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12518 break 2
12520 done
12521 done
12522 IFS=$as_save_IFS
12526 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12527 if test -n "$RANLIB_FOR_TARGET"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12529 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12530 else
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532 $as_echo "no" >&6; }
12537 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12538 done
12541 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12542 set dummy ranlib
12543 if test $build = $target ; then
12544 RANLIB_FOR_TARGET="$2"
12545 else
12546 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12548 else
12549 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12552 else
12553 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12559 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12560 if test -n "$with_build_time_tools"; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12562 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12563 if test -x $with_build_time_tools/strip; then
12564 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12565 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12567 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12568 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12572 elif test $build != $host && test $have_gcc_for_target = yes; then
12573 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12574 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12575 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12578 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12579 # Extract the first word of "strip", so it can be a program name with args.
12580 set dummy strip; ac_word=$2
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582 $as_echo_n "checking for $ac_word... " >&6; }
12583 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12586 case $STRIP_FOR_TARGET in
12587 [\\/]* | ?:[\\/]*)
12588 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $gcc_cv_tool_dirs
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 break 2
12602 done
12603 done
12604 IFS=$as_save_IFS
12607 esac
12609 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12610 if test -n "$STRIP_FOR_TARGET"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12612 $as_echo "$STRIP_FOR_TARGET" >&6; }
12613 else
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12620 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12623 if test -n "$STRIP_FOR_TARGET"; then
12624 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12625 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12626 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12629 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12630 for ncn_progname in strip; do
12631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12632 set dummy ${ncn_progname}; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
12637 else
12638 if test -n "$STRIP_FOR_TARGET"; then
12639 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12640 else
12641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642 for as_dir in $PATH
12644 IFS=$as_save_IFS
12645 test -z "$as_dir" && as_dir=.
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12648 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650 break 2
12652 done
12653 done
12654 IFS=$as_save_IFS
12658 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12659 if test -n "$STRIP_FOR_TARGET"; then
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12661 $as_echo "$STRIP_FOR_TARGET" >&6; }
12662 else
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664 $as_echo "no" >&6; }
12668 done
12671 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12672 for ncn_progname in strip; do
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12674 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12675 if test -x $with_build_time_tools/${ncn_progname}; then
12676 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12678 $as_echo "yes" >&6; }
12679 break
12680 else
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682 $as_echo "no" >&6; }
12684 done
12687 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12688 for ncn_progname in strip; do
12689 if test -n "$ncn_target_tool_prefix"; then
12690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
12696 else
12697 if test -n "$STRIP_FOR_TARGET"; then
12698 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12699 else
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12703 IFS=$as_save_IFS
12704 test -z "$as_dir" && as_dir=.
12705 for ac_exec_ext in '' $ac_executable_extensions; do
12706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709 break 2
12711 done
12712 done
12713 IFS=$as_save_IFS
12717 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12718 if test -n "$STRIP_FOR_TARGET"; then
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12720 $as_echo "$STRIP_FOR_TARGET" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12728 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12730 set dummy ${ncn_progname}; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736 if test -n "$STRIP_FOR_TARGET"; then
12737 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12738 else
12739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12740 for as_dir in $PATH
12742 IFS=$as_save_IFS
12743 test -z "$as_dir" && as_dir=.
12744 for ac_exec_ext in '' $ac_executable_extensions; do
12745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12746 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12748 break 2
12750 done
12751 done
12752 IFS=$as_save_IFS
12756 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12757 if test -n "$STRIP_FOR_TARGET"; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12759 $as_echo "$STRIP_FOR_TARGET" >&6; }
12760 else
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12767 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12768 done
12771 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12772 set dummy strip
12773 if test $build = $target ; then
12774 STRIP_FOR_TARGET="$2"
12775 else
12776 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12778 else
12779 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12782 else
12783 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12789 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12790 if test -n "$with_build_time_tools"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12792 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12793 if test -x $with_build_time_tools/windres; then
12794 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12795 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12797 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800 $as_echo "no" >&6; }
12802 elif test $build != $host && test $have_gcc_for_target = yes; then
12803 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12804 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12805 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12808 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12809 # Extract the first word of "windres", so it can be a program name with args.
12810 set dummy windres; ac_word=$2
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812 $as_echo_n "checking for $ac_word... " >&6; }
12813 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 case $WINDRES_FOR_TARGET in
12817 [\\/]* | ?:[\\/]*)
12818 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $gcc_cv_tool_dirs
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12832 done
12833 done
12834 IFS=$as_save_IFS
12837 esac
12839 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12840 if test -n "$WINDRES_FOR_TARGET"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12842 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12843 else
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12850 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12853 if test -n "$WINDRES_FOR_TARGET"; then
12854 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12855 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12856 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12859 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12860 for ncn_progname in windres; do
12861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12862 set dummy ${ncn_progname}; ac_word=$2
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864 $as_echo_n "checking for $ac_word... " >&6; }
12865 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12866 $as_echo_n "(cached) " >&6
12867 else
12868 if test -n "$WINDRES_FOR_TARGET"; then
12869 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12870 else
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12874 IFS=$as_save_IFS
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880 break 2
12882 done
12883 done
12884 IFS=$as_save_IFS
12888 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12889 if test -n "$WINDRES_FOR_TARGET"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12891 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12892 else
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12898 done
12901 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12902 for ncn_progname in windres; do
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12904 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12905 if test -x $with_build_time_tools/${ncn_progname}; then
12906 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908 $as_echo "yes" >&6; }
12909 break
12910 else
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 $as_echo "no" >&6; }
12914 done
12917 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12918 for ncn_progname in windres; do
12919 if test -n "$ncn_target_tool_prefix"; then
12920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12921 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 if test -n "$WINDRES_FOR_TARGET"; then
12928 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12929 else
12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12933 IFS=$as_save_IFS
12934 test -z "$as_dir" && as_dir=.
12935 for ac_exec_ext in '' $ac_executable_extensions; do
12936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12937 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939 break 2
12941 done
12942 done
12943 IFS=$as_save_IFS
12947 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12948 if test -n "$WINDRES_FOR_TARGET"; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12950 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12951 else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12958 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12960 set dummy ${ncn_progname}; ac_word=$2
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12962 $as_echo_n "checking for $ac_word... " >&6; }
12963 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
12965 else
12966 if test -n "$WINDRES_FOR_TARGET"; then
12967 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12968 else
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12972 IFS=$as_save_IFS
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12978 break 2
12980 done
12981 done
12982 IFS=$as_save_IFS
12986 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12987 if test -n "$WINDRES_FOR_TARGET"; then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12989 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12990 else
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992 $as_echo "no" >&6; }
12997 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12998 done
13001 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13002 set dummy windres
13003 if test $build = $target ; then
13004 WINDRES_FOR_TARGET="$2"
13005 else
13006 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13008 else
13009 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13012 else
13013 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13019 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13020 if test -n "$with_build_time_tools"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13022 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13023 if test -x $with_build_time_tools/windmc; then
13024 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13025 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13027 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13028 else
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13032 elif test $build != $host && test $have_gcc_for_target = yes; then
13033 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13034 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13035 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13038 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13039 # Extract the first word of "windmc", so it can be a program name with args.
13040 set dummy windmc; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13042 $as_echo_n "checking for $ac_word... " >&6; }
13043 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 case $WINDMC_FOR_TARGET in
13047 [\\/]* | ?:[\\/]*)
13048 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $gcc_cv_tool_dirs
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13058 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13060 break 2
13062 done
13063 done
13064 IFS=$as_save_IFS
13067 esac
13069 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13070 if test -n "$WINDMC_FOR_TARGET"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13072 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13080 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13083 if test -n "$WINDMC_FOR_TARGET"; then
13084 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13085 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13086 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13089 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13090 for ncn_progname in windmc; do
13091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13092 set dummy ${ncn_progname}; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 if test -n "$WINDMC_FOR_TARGET"; then
13099 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13100 else
13101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102 for as_dir in $PATH
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13108 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13112 done
13113 done
13114 IFS=$as_save_IFS
13118 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13119 if test -n "$WINDMC_FOR_TARGET"; then
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13121 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13122 else
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
13128 done
13131 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13132 for ncn_progname in windmc; do
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13134 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13135 if test -x $with_build_time_tools/${ncn_progname}; then
13136 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138 $as_echo "yes" >&6; }
13139 break
13140 else
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13144 done
13147 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13148 for ncn_progname in windmc; do
13149 if test -n "$ncn_target_tool_prefix"; then
13150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 if test -n "$WINDMC_FOR_TARGET"; then
13158 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13163 IFS=$as_save_IFS
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 break 2
13171 done
13172 done
13173 IFS=$as_save_IFS
13177 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13178 if test -n "$WINDMC_FOR_TARGET"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13180 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13188 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13190 set dummy ${ncn_progname}; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 if test -n "$WINDMC_FOR_TARGET"; then
13197 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13198 else
13199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13200 for as_dir in $PATH
13202 IFS=$as_save_IFS
13203 test -z "$as_dir" && as_dir=.
13204 for ac_exec_ext in '' $ac_executable_extensions; do
13205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13206 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13208 break 2
13210 done
13211 done
13212 IFS=$as_save_IFS
13216 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13217 if test -n "$WINDMC_FOR_TARGET"; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13219 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13227 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13228 done
13231 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13232 set dummy windmc
13233 if test $build = $target ; then
13234 WINDMC_FOR_TARGET="$2"
13235 else
13236 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13238 else
13239 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13242 else
13243 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13247 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13250 $as_echo_n "checking where to find the target ar... " >&6; }
13251 if test "x${build}" != "x${host}" ; then
13252 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13253 # We already found the complete path
13254 ac_dir=`dirname $AR_FOR_TARGET`
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13256 $as_echo "pre-installed in $ac_dir" >&6; }
13257 else
13258 # Canadian cross, just use what we found
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13260 $as_echo "pre-installed" >&6; }
13262 else
13263 ok=yes
13264 case " ${configdirs} " in
13265 *" binutils "*) ;;
13266 *) ok=no ;;
13267 esac
13269 if test $ok = yes; then
13270 # An in-tree tool is available and we can use it
13271 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13273 $as_echo "just compiled" >&6; }
13274 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13275 # We already found the complete path
13276 ac_dir=`dirname $AR_FOR_TARGET`
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13278 $as_echo "pre-installed in $ac_dir" >&6; }
13279 elif test "x$target" = "x$host"; then
13280 # We can use an host tool
13281 AR_FOR_TARGET='$(AR)'
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13283 $as_echo "host tool" >&6; }
13284 else
13285 # We need a cross tool
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13287 $as_echo "pre-installed" >&6; }
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13292 $as_echo_n "checking where to find the target as... " >&6; }
13293 if test "x${build}" != "x${host}" ; then
13294 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13295 # We already found the complete path
13296 ac_dir=`dirname $AS_FOR_TARGET`
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13298 $as_echo "pre-installed in $ac_dir" >&6; }
13299 else
13300 # Canadian cross, just use what we found
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13302 $as_echo "pre-installed" >&6; }
13304 else
13305 ok=yes
13306 case " ${configdirs} " in
13307 *" gas "*) ;;
13308 *) ok=no ;;
13309 esac
13311 if test $ok = yes; then
13312 # An in-tree tool is available and we can use it
13313 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13315 $as_echo "just compiled" >&6; }
13316 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13317 # We already found the complete path
13318 ac_dir=`dirname $AS_FOR_TARGET`
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13320 $as_echo "pre-installed in $ac_dir" >&6; }
13321 elif test "x$target" = "x$host"; then
13322 # We can use an host tool
13323 AS_FOR_TARGET='$(AS)'
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13325 $as_echo "host tool" >&6; }
13326 else
13327 # We need a cross tool
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13329 $as_echo "pre-installed" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13334 $as_echo_n "checking where to find the target cc... " >&6; }
13335 if test "x${build}" != "x${host}" ; then
13336 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13337 # We already found the complete path
13338 ac_dir=`dirname $CC_FOR_TARGET`
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13340 $as_echo "pre-installed in $ac_dir" >&6; }
13341 else
13342 # Canadian cross, just use what we found
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13344 $as_echo "pre-installed" >&6; }
13346 else
13347 ok=yes
13348 case " ${configdirs} " in
13349 *" gcc "*) ;;
13350 *) ok=no ;;
13351 esac
13353 if test $ok = yes; then
13354 # An in-tree tool is available and we can use it
13355 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13357 $as_echo "just compiled" >&6; }
13358 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13359 # We already found the complete path
13360 ac_dir=`dirname $CC_FOR_TARGET`
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13362 $as_echo "pre-installed in $ac_dir" >&6; }
13363 elif test "x$target" = "x$host"; then
13364 # We can use an host tool
13365 CC_FOR_TARGET='$(CC)'
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13367 $as_echo "host tool" >&6; }
13368 else
13369 # We need a cross tool
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371 $as_echo "pre-installed" >&6; }
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13376 $as_echo_n "checking where to find the target c++... " >&6; }
13377 if test "x${build}" != "x${host}" ; then
13378 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13379 # We already found the complete path
13380 ac_dir=`dirname $CXX_FOR_TARGET`
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13382 $as_echo "pre-installed in $ac_dir" >&6; }
13383 else
13384 # Canadian cross, just use what we found
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13386 $as_echo "pre-installed" >&6; }
13388 else
13389 ok=yes
13390 case " ${configdirs} " in
13391 *" gcc "*) ;;
13392 *) ok=no ;;
13393 esac
13394 case ,${enable_languages}, in
13395 *,c++,*) ;;
13396 *) ok=no ;;
13397 esac
13398 if test $ok = yes; then
13399 # An in-tree tool is available and we can use it
13400 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13402 $as_echo "just compiled" >&6; }
13403 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13404 # We already found the complete path
13405 ac_dir=`dirname $CXX_FOR_TARGET`
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13407 $as_echo "pre-installed in $ac_dir" >&6; }
13408 elif test "x$target" = "x$host"; then
13409 # We can use an host tool
13410 CXX_FOR_TARGET='$(CXX)'
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13412 $as_echo "host tool" >&6; }
13413 else
13414 # We need a cross tool
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13416 $as_echo "pre-installed" >&6; }
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13421 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13422 if test "x${build}" != "x${host}" ; then
13423 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13424 # We already found the complete path
13425 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13427 $as_echo "pre-installed in $ac_dir" >&6; }
13428 else
13429 # Canadian cross, just use what we found
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13431 $as_echo "pre-installed" >&6; }
13433 else
13434 ok=yes
13435 case " ${configdirs} " in
13436 *" gcc "*) ;;
13437 *) ok=no ;;
13438 esac
13439 case ,${enable_languages}, in
13440 *,c++,*) ;;
13441 *) ok=no ;;
13442 esac
13443 if test $ok = yes; then
13444 # An in-tree tool is available and we can use it
13445 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'
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13447 $as_echo "just compiled" >&6; }
13448 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13449 # We already found the complete path
13450 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13452 $as_echo "pre-installed in $ac_dir" >&6; }
13453 elif test "x$target" = "x$host"; then
13454 # We can use an host tool
13455 RAW_CXX_FOR_TARGET='$(CXX)'
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13457 $as_echo "host tool" >&6; }
13458 else
13459 # We need a cross tool
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13461 $as_echo "pre-installed" >&6; }
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13466 $as_echo_n "checking where to find the target dlltool... " >&6; }
13467 if test "x${build}" != "x${host}" ; then
13468 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13469 # We already found the complete path
13470 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13472 $as_echo "pre-installed in $ac_dir" >&6; }
13473 else
13474 # Canadian cross, just use what we found
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13476 $as_echo "pre-installed" >&6; }
13478 else
13479 ok=yes
13480 case " ${configdirs} " in
13481 *" binutils "*) ;;
13482 *) ok=no ;;
13483 esac
13485 if test $ok = yes; then
13486 # An in-tree tool is available and we can use it
13487 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13489 $as_echo "just compiled" >&6; }
13490 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13491 # We already found the complete path
13492 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13494 $as_echo "pre-installed in $ac_dir" >&6; }
13495 elif test "x$target" = "x$host"; then
13496 # We can use an host tool
13497 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13499 $as_echo "host tool" >&6; }
13500 else
13501 # We need a cross tool
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13503 $as_echo "pre-installed" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13508 $as_echo_n "checking where to find the target gcc... " >&6; }
13509 if test "x${build}" != "x${host}" ; then
13510 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13511 # We already found the complete path
13512 ac_dir=`dirname $GCC_FOR_TARGET`
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13514 $as_echo "pre-installed in $ac_dir" >&6; }
13515 else
13516 # Canadian cross, just use what we found
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13518 $as_echo "pre-installed" >&6; }
13520 else
13521 ok=yes
13522 case " ${configdirs} " in
13523 *" gcc "*) ;;
13524 *) ok=no ;;
13525 esac
13527 if test $ok = yes; then
13528 # An in-tree tool is available and we can use it
13529 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13531 $as_echo "just compiled" >&6; }
13532 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13533 # We already found the complete path
13534 ac_dir=`dirname $GCC_FOR_TARGET`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13536 $as_echo "pre-installed in $ac_dir" >&6; }
13537 elif test "x$target" = "x$host"; then
13538 # We can use an host tool
13539 GCC_FOR_TARGET='$()'
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13541 $as_echo "host tool" >&6; }
13542 else
13543 # We need a cross tool
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545 $as_echo "pre-installed" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13550 $as_echo_n "checking where to find the target gcj... " >&6; }
13551 if test "x${build}" != "x${host}" ; then
13552 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13553 # We already found the complete path
13554 ac_dir=`dirname $GCJ_FOR_TARGET`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13556 $as_echo "pre-installed in $ac_dir" >&6; }
13557 else
13558 # Canadian cross, just use what we found
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13560 $as_echo "pre-installed" >&6; }
13562 else
13563 ok=yes
13564 case " ${configdirs} " in
13565 *" gcc "*) ;;
13566 *) ok=no ;;
13567 esac
13568 case ,${enable_languages}, in
13569 *,java,*) ;;
13570 *) ok=no ;;
13571 esac
13572 if test $ok = yes; then
13573 # An in-tree tool is available and we can use it
13574 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13576 $as_echo "just compiled" >&6; }
13577 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13578 # We already found the complete path
13579 ac_dir=`dirname $GCJ_FOR_TARGET`
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13581 $as_echo "pre-installed in $ac_dir" >&6; }
13582 elif test "x$target" = "x$host"; then
13583 # We can use an host tool
13584 GCJ_FOR_TARGET='$(GCJ)'
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13586 $as_echo "host tool" >&6; }
13587 else
13588 # We need a cross tool
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590 $as_echo "pre-installed" >&6; }
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13595 $as_echo_n "checking where to find the target gfortran... " >&6; }
13596 if test "x${build}" != "x${host}" ; then
13597 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13598 # We already found the complete path
13599 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13601 $as_echo "pre-installed in $ac_dir" >&6; }
13602 else
13603 # Canadian cross, just use what we found
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13605 $as_echo "pre-installed" >&6; }
13607 else
13608 ok=yes
13609 case " ${configdirs} " in
13610 *" gcc "*) ;;
13611 *) ok=no ;;
13612 esac
13613 case ,${enable_languages}, in
13614 *,fortran,*) ;;
13615 *) ok=no ;;
13616 esac
13617 if test $ok = yes; then
13618 # An in-tree tool is available and we can use it
13619 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13621 $as_echo "just compiled" >&6; }
13622 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13623 # We already found the complete path
13624 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13626 $as_echo "pre-installed in $ac_dir" >&6; }
13627 elif test "x$target" = "x$host"; then
13628 # We can use an host tool
13629 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13631 $as_echo "host tool" >&6; }
13632 else
13633 # We need a cross tool
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13635 $as_echo "pre-installed" >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13640 $as_echo_n "checking where to find the target gccgo... " >&6; }
13641 if test "x${build}" != "x${host}" ; then
13642 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13643 # We already found the complete path
13644 ac_dir=`dirname $GOC_FOR_TARGET`
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13646 $as_echo "pre-installed in $ac_dir" >&6; }
13647 else
13648 # Canadian cross, just use what we found
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13650 $as_echo "pre-installed" >&6; }
13652 else
13653 ok=yes
13654 case " ${configdirs} " in
13655 *" gcc "*) ;;
13656 *) ok=no ;;
13657 esac
13658 case ,${enable_languages}, in
13659 *,go,*) ;;
13660 *) ok=no ;;
13661 esac
13662 if test $ok = yes; then
13663 # An in-tree tool is available and we can use it
13664 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13666 $as_echo "just compiled" >&6; }
13667 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13668 # We already found the complete path
13669 ac_dir=`dirname $GOC_FOR_TARGET`
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13671 $as_echo "pre-installed in $ac_dir" >&6; }
13672 elif test "x$target" = "x$host"; then
13673 # We can use an host tool
13674 GOC_FOR_TARGET='$(GOC)'
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13676 $as_echo "host tool" >&6; }
13677 else
13678 # We need a cross tool
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13680 $as_echo "pre-installed" >&6; }
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13685 $as_echo_n "checking where to find the target ld... " >&6; }
13686 if test "x${build}" != "x${host}" ; then
13687 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13688 # We already found the complete path
13689 ac_dir=`dirname $LD_FOR_TARGET`
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13691 $as_echo "pre-installed in $ac_dir" >&6; }
13692 else
13693 # Canadian cross, just use what we found
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13695 $as_echo "pre-installed" >&6; }
13697 else
13698 ok=yes
13699 case " ${configdirs} " in
13700 *" ld "*) ;;
13701 *) ok=no ;;
13702 esac
13704 if test $ok = yes; then
13705 # An in-tree tool is available and we can use it
13706 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13708 $as_echo "just compiled" >&6; }
13709 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13710 # We already found the complete path
13711 ac_dir=`dirname $LD_FOR_TARGET`
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13713 $as_echo "pre-installed in $ac_dir" >&6; }
13714 elif test "x$target" = "x$host"; then
13715 # We can use an host tool
13716 LD_FOR_TARGET='$(LD)'
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13718 $as_echo "host tool" >&6; }
13719 else
13720 # We need a cross tool
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13722 $as_echo "pre-installed" >&6; }
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13727 $as_echo_n "checking where to find the target lipo... " >&6; }
13728 if test "x${build}" != "x${host}" ; then
13729 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13730 # We already found the complete path
13731 ac_dir=`dirname $LIPO_FOR_TARGET`
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13733 $as_echo "pre-installed in $ac_dir" >&6; }
13734 else
13735 # Canadian cross, just use what we found
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737 $as_echo "pre-installed" >&6; }
13739 else
13740 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13741 # We already found the complete path
13742 ac_dir=`dirname $LIPO_FOR_TARGET`
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13744 $as_echo "pre-installed in $ac_dir" >&6; }
13745 elif test "x$target" = "x$host"; then
13746 # We can use an host tool
13747 LIPO_FOR_TARGET='$(LIPO)'
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13749 $as_echo "host tool" >&6; }
13750 else
13751 # We need a cross tool
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13753 $as_echo "pre-installed" >&6; }
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13758 $as_echo_n "checking where to find the target nm... " >&6; }
13759 if test "x${build}" != "x${host}" ; then
13760 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13761 # We already found the complete path
13762 ac_dir=`dirname $NM_FOR_TARGET`
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13764 $as_echo "pre-installed in $ac_dir" >&6; }
13765 else
13766 # Canadian cross, just use what we found
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13768 $as_echo "pre-installed" >&6; }
13770 else
13771 ok=yes
13772 case " ${configdirs} " in
13773 *" binutils "*) ;;
13774 *) ok=no ;;
13775 esac
13777 if test $ok = yes; then
13778 # An in-tree tool is available and we can use it
13779 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13781 $as_echo "just compiled" >&6; }
13782 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13783 # We already found the complete path
13784 ac_dir=`dirname $NM_FOR_TARGET`
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13786 $as_echo "pre-installed in $ac_dir" >&6; }
13787 elif test "x$target" = "x$host"; then
13788 # We can use an host tool
13789 NM_FOR_TARGET='$(NM)'
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13791 $as_echo "host tool" >&6; }
13792 else
13793 # We need a cross tool
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13795 $as_echo "pre-installed" >&6; }
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13800 $as_echo_n "checking where to find the target objdump... " >&6; }
13801 if test "x${build}" != "x${host}" ; then
13802 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13803 # We already found the complete path
13804 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13806 $as_echo "pre-installed in $ac_dir" >&6; }
13807 else
13808 # Canadian cross, just use what we found
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13810 $as_echo "pre-installed" >&6; }
13812 else
13813 ok=yes
13814 case " ${configdirs} " in
13815 *" binutils "*) ;;
13816 *) ok=no ;;
13817 esac
13819 if test $ok = yes; then
13820 # An in-tree tool is available and we can use it
13821 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13823 $as_echo "just compiled" >&6; }
13824 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13825 # We already found the complete path
13826 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13828 $as_echo "pre-installed in $ac_dir" >&6; }
13829 elif test "x$target" = "x$host"; then
13830 # We can use an host tool
13831 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13833 $as_echo "host tool" >&6; }
13834 else
13835 # We need a cross tool
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837 $as_echo "pre-installed" >&6; }
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13842 $as_echo_n "checking where to find the target ranlib... " >&6; }
13843 if test "x${build}" != "x${host}" ; then
13844 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13845 # We already found the complete path
13846 ac_dir=`dirname $RANLIB_FOR_TARGET`
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13848 $as_echo "pre-installed in $ac_dir" >&6; }
13849 else
13850 # Canadian cross, just use what we found
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13852 $as_echo "pre-installed" >&6; }
13854 else
13855 ok=yes
13856 case " ${configdirs} " in
13857 *" binutils "*) ;;
13858 *) ok=no ;;
13859 esac
13861 if test $ok = yes; then
13862 # An in-tree tool is available and we can use it
13863 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13865 $as_echo "just compiled" >&6; }
13866 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
13868 ac_dir=`dirname $RANLIB_FOR_TARGET`
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870 $as_echo "pre-installed in $ac_dir" >&6; }
13871 elif test "x$target" = "x$host"; then
13872 # We can use an host tool
13873 RANLIB_FOR_TARGET='$(RANLIB)'
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13875 $as_echo "host tool" >&6; }
13876 else
13877 # We need a cross tool
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879 $as_echo "pre-installed" >&6; }
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13884 $as_echo_n "checking where to find the target strip... " >&6; }
13885 if test "x${build}" != "x${host}" ; then
13886 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13887 # We already found the complete path
13888 ac_dir=`dirname $STRIP_FOR_TARGET`
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13890 $as_echo "pre-installed in $ac_dir" >&6; }
13891 else
13892 # Canadian cross, just use what we found
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13894 $as_echo "pre-installed" >&6; }
13896 else
13897 ok=yes
13898 case " ${configdirs} " in
13899 *" binutils "*) ;;
13900 *) ok=no ;;
13901 esac
13903 if test $ok = yes; then
13904 # An in-tree tool is available and we can use it
13905 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13907 $as_echo "just compiled" >&6; }
13908 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
13910 ac_dir=`dirname $STRIP_FOR_TARGET`
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912 $as_echo "pre-installed in $ac_dir" >&6; }
13913 elif test "x$target" = "x$host"; then
13914 # We can use an host tool
13915 STRIP_FOR_TARGET='$(STRIP)'
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13917 $as_echo "host tool" >&6; }
13918 else
13919 # We need a cross tool
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921 $as_echo "pre-installed" >&6; }
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13926 $as_echo_n "checking where to find the target windres... " >&6; }
13927 if test "x${build}" != "x${host}" ; then
13928 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13929 # We already found the complete path
13930 ac_dir=`dirname $WINDRES_FOR_TARGET`
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13932 $as_echo "pre-installed in $ac_dir" >&6; }
13933 else
13934 # Canadian cross, just use what we found
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13936 $as_echo "pre-installed" >&6; }
13938 else
13939 ok=yes
13940 case " ${configdirs} " in
13941 *" binutils "*) ;;
13942 *) ok=no ;;
13943 esac
13945 if test $ok = yes; then
13946 # An in-tree tool is available and we can use it
13947 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13949 $as_echo "just compiled" >&6; }
13950 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13951 # We already found the complete path
13952 ac_dir=`dirname $WINDRES_FOR_TARGET`
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13954 $as_echo "pre-installed in $ac_dir" >&6; }
13955 elif test "x$target" = "x$host"; then
13956 # We can use an host tool
13957 WINDRES_FOR_TARGET='$(WINDRES)'
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13959 $as_echo "host tool" >&6; }
13960 else
13961 # We need a cross tool
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963 $as_echo "pre-installed" >&6; }
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13968 $as_echo_n "checking where to find the target windmc... " >&6; }
13969 if test "x${build}" != "x${host}" ; then
13970 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13971 # We already found the complete path
13972 ac_dir=`dirname $WINDMC_FOR_TARGET`
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13974 $as_echo "pre-installed in $ac_dir" >&6; }
13975 else
13976 # Canadian cross, just use what we found
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13978 $as_echo "pre-installed" >&6; }
13980 else
13981 ok=yes
13982 case " ${configdirs} " in
13983 *" binutils "*) ;;
13984 *) ok=no ;;
13985 esac
13987 if test $ok = yes; then
13988 # An in-tree tool is available and we can use it
13989 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13991 $as_echo "just compiled" >&6; }
13992 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13993 # We already found the complete path
13994 ac_dir=`dirname $WINDMC_FOR_TARGET`
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13996 $as_echo "pre-installed in $ac_dir" >&6; }
13997 elif test "x$target" = "x$host"; then
13998 # We can use an host tool
13999 WINDMC_FOR_TARGET='$(WINDMC)'
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14001 $as_echo "host tool" >&6; }
14002 else
14003 # We need a cross tool
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14005 $as_echo "pre-installed" >&6; }
14013 # Certain tools may need extra flags.
14014 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14015 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14016 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14018 # When building target libraries, except in a Canadian cross, we use
14019 # the same toolchain as the compiler we just built.
14020 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14021 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14022 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14023 if test $host = $build; then
14024 case " $configdirs " in
14025 *" gcc "*)
14026 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14027 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14028 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14030 esac
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14038 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14039 # Check whether --enable-maintainer-mode was given.
14040 if test "${enable_maintainer_mode+set}" = set; then :
14041 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14042 else
14043 USE_MAINTAINER_MODE=no
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14047 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14050 if test "$USE_MAINTAINER_MODE" = yes; then
14051 MAINTAINER_MODE_TRUE=
14052 MAINTAINER_MODE_FALSE='#'
14053 else
14054 MAINTAINER_MODE_TRUE='#'
14055 MAINTAINER_MODE_FALSE=
14057 MAINT=$MAINTAINER_MODE_TRUE
14059 # ---------------------
14060 # GCC bootstrap support
14061 # ---------------------
14063 # Stage specific cflags for build.
14064 stage1_cflags="-g"
14065 case $build in
14066 vax-*-*)
14067 case ${GCC} in
14068 yes) stage1_cflags="-g -Wa,-J" ;;
14069 *) stage1_cflags="-g -J" ;;
14070 esac ;;
14071 esac
14073 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14074 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14075 saved_CFLAGS="$CFLAGS"
14077 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14078 CFLAGS="$CFLAGS -fkeep-inline-functions"
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14080 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14084 #if (__GNUC__ < 3) \
14085 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14086 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14087 #error http://gcc.gnu.org/PR29382
14088 #endif
14091 main ()
14095 return 0;
14097 _ACEOF
14098 if ac_fn_c_try_compile "$LINENO"; then :
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14100 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14101 else
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 CFLAGS="$saved_CFLAGS"
14112 # Enable --enable-checking in stage1 of the compiler.
14113 # Check whether --enable-stage1-checking was given.
14114 if test "${enable_stage1_checking+set}" = set; then :
14115 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14116 else
14117 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14118 stage1_checking=--enable-checking=yes,types
14119 else
14120 stage1_checking=--enable-checking=$enable_checking,types
14126 # Enable -Werror in bootstrap stage2 and later.
14127 # Check whether --enable-werror was given.
14128 if test "${enable_werror+set}" = set; then :
14129 enableval=$enable_werror;
14130 else
14131 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14132 enable_werror=yes
14133 else
14134 enable_werror=no
14138 case ${enable_werror} in
14139 yes) stage2_werror_flag="--enable-werror-always" ;;
14140 *) stage2_werror_flag="" ;;
14141 esac
14144 # Specify what files to not compare during bootstrap.
14146 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14147 case "$target" in
14148 hppa*64*-*-hpux*) ;;
14149 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14150 esac
14151 case " $configdirs " in
14152 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14153 esac
14156 ac_config_files="$ac_config_files Makefile"
14158 cat >confcache <<\_ACEOF
14159 # This file is a shell script that caches the results of configure
14160 # tests run on this system so they can be shared between configure
14161 # scripts and configure runs, see configure's option --config-cache.
14162 # It is not useful on other systems. If it contains results you don't
14163 # want to keep, you may remove or edit it.
14165 # config.status only pays attention to the cache file if you give it
14166 # the --recheck option to rerun configure.
14168 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14169 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14170 # following values.
14172 _ACEOF
14174 # The following way of writing the cache mishandles newlines in values,
14175 # but we know of no workaround that is simple, portable, and efficient.
14176 # So, we kill variables containing newlines.
14177 # Ultrix sh set writes to stderr and can't be redirected directly,
14178 # and sets the high bit in the cache file unless we assign to the vars.
14180 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14181 eval ac_val=\$$ac_var
14182 case $ac_val in #(
14183 *${as_nl}*)
14184 case $ac_var in #(
14185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14187 esac
14188 case $ac_var in #(
14189 _ | IFS | as_nl) ;; #(
14190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14191 *) { eval $ac_var=; unset $ac_var;} ;;
14192 esac ;;
14193 esac
14194 done
14196 (set) 2>&1 |
14197 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14198 *${as_nl}ac_space=\ *)
14199 # `set' does not quote correctly, so add quotes: double-quote
14200 # substitution turns \\\\ into \\, and sed turns \\ into \.
14201 sed -n \
14202 "s/'/'\\\\''/g;
14203 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14204 ;; #(
14206 # `set' quotes correctly as required by POSIX, so do not add quotes.
14207 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14209 esac |
14210 sort
14212 sed '
14213 /^ac_cv_env_/b end
14214 t clear
14215 :clear
14216 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14217 t end
14218 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14219 :end' >>confcache
14220 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14221 if test -w "$cache_file"; then
14222 test "x$cache_file" != "x/dev/null" &&
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14224 $as_echo "$as_me: updating cache $cache_file" >&6;}
14225 cat confcache >$cache_file
14226 else
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14228 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14231 rm -f confcache
14233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14234 # Let make expand exec_prefix.
14235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14237 # Transform confdefs.h into DEFS.
14238 # Protect against shell expansion while executing Makefile rules.
14239 # Protect against Makefile macro expansion.
14241 # If the first sed substitution is executed (which looks for macros that
14242 # take arguments), then branch to the quote section. Otherwise,
14243 # look for a macro that doesn't take arguments.
14244 ac_script='
14245 :mline
14246 /\\$/{
14248 s,\\\n,,
14249 b mline
14251 t clear
14252 :clear
14253 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14254 t quote
14255 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14256 t quote
14257 b any
14258 :quote
14259 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14260 s/\[/\\&/g
14261 s/\]/\\&/g
14262 s/\$/$$/g
14264 :any
14267 s/^\n//
14268 s/\n/ /g
14272 DEFS=`sed -n "$ac_script" confdefs.h`
14275 ac_libobjs=
14276 ac_ltlibobjs=
14277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14278 # 1. Remove the extension, and $U if already installed.
14279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14282 # will be set to the directory where LIBOBJS objects are built.
14283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14285 done
14286 LIBOBJS=$ac_libobjs
14288 LTLIBOBJS=$ac_ltlibobjs
14292 : ${CONFIG_STATUS=./config.status}
14293 ac_write_fail=0
14294 ac_clean_files_save=$ac_clean_files
14295 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14297 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14298 as_write_fail=0
14299 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14300 #! $SHELL
14301 # Generated by $as_me.
14302 # Run this file to recreate the current configuration.
14303 # Compiler output produced by configure, useful for debugging
14304 # configure, is in config.log if it exists.
14306 debug=false
14307 ac_cs_recheck=false
14308 ac_cs_silent=false
14310 SHELL=\${CONFIG_SHELL-$SHELL}
14311 export SHELL
14312 _ASEOF
14313 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14314 ## -------------------- ##
14315 ## M4sh Initialization. ##
14316 ## -------------------- ##
14318 # Be more Bourne compatible
14319 DUALCASE=1; export DUALCASE # for MKS sh
14320 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14321 emulate sh
14322 NULLCMD=:
14323 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14324 # is contrary to our usage. Disable this feature.
14325 alias -g '${1+"$@"}'='"$@"'
14326 setopt NO_GLOB_SUBST
14327 else
14328 case `(set -o) 2>/dev/null` in #(
14329 *posix*) :
14330 set -o posix ;; #(
14331 *) :
14333 esac
14337 as_nl='
14339 export as_nl
14340 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14341 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14342 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14344 # Prefer a ksh shell builtin over an external printf program on Solaris,
14345 # but without wasting forks for bash or zsh.
14346 if test -z "$BASH_VERSION$ZSH_VERSION" \
14347 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14348 as_echo='print -r --'
14349 as_echo_n='print -rn --'
14350 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14351 as_echo='printf %s\n'
14352 as_echo_n='printf %s'
14353 else
14354 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14355 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14356 as_echo_n='/usr/ucb/echo -n'
14357 else
14358 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14359 as_echo_n_body='eval
14360 arg=$1;
14361 case $arg in #(
14362 *"$as_nl"*)
14363 expr "X$arg" : "X\\(.*\\)$as_nl";
14364 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14365 esac;
14366 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14368 export as_echo_n_body
14369 as_echo_n='sh -c $as_echo_n_body as_echo'
14371 export as_echo_body
14372 as_echo='sh -c $as_echo_body as_echo'
14375 # The user is always right.
14376 if test "${PATH_SEPARATOR+set}" != set; then
14377 PATH_SEPARATOR=:
14378 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14379 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14380 PATH_SEPARATOR=';'
14385 # IFS
14386 # We need space, tab and new line, in precisely that order. Quoting is
14387 # there to prevent editors from complaining about space-tab.
14388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14389 # splitting by setting IFS to empty value.)
14390 IFS=" "" $as_nl"
14392 # Find who we are. Look in the path if we contain no directory separator.
14393 case $0 in #((
14394 *[\\/]* ) as_myself=$0 ;;
14395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396 for as_dir in $PATH
14398 IFS=$as_save_IFS
14399 test -z "$as_dir" && as_dir=.
14400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14401 done
14402 IFS=$as_save_IFS
14405 esac
14406 # We did not find ourselves, most probably we were run as `sh COMMAND'
14407 # in which case we are not to be found in the path.
14408 if test "x$as_myself" = x; then
14409 as_myself=$0
14411 if test ! -f "$as_myself"; then
14412 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14413 exit 1
14416 # Unset variables that we do not need and which cause bugs (e.g. in
14417 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14418 # suppresses any "Segmentation fault" message there. '((' could
14419 # trigger a bug in pdksh 5.2.14.
14420 for as_var in BASH_ENV ENV MAIL MAILPATH
14421 do eval test x\${$as_var+set} = xset \
14422 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14423 done
14424 PS1='$ '
14425 PS2='> '
14426 PS4='+ '
14428 # NLS nuisances.
14429 LC_ALL=C
14430 export LC_ALL
14431 LANGUAGE=C
14432 export LANGUAGE
14434 # CDPATH.
14435 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14438 # as_fn_error ERROR [LINENO LOG_FD]
14439 # ---------------------------------
14440 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14441 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14442 # script with status $?, using 1 if that was 0.
14443 as_fn_error ()
14445 as_status=$?; test $as_status -eq 0 && as_status=1
14446 if test "$3"; then
14447 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14448 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14450 $as_echo "$as_me: error: $1" >&2
14451 as_fn_exit $as_status
14452 } # as_fn_error
14455 # as_fn_set_status STATUS
14456 # -----------------------
14457 # Set $? to STATUS, without forking.
14458 as_fn_set_status ()
14460 return $1
14461 } # as_fn_set_status
14463 # as_fn_exit STATUS
14464 # -----------------
14465 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14466 as_fn_exit ()
14468 set +e
14469 as_fn_set_status $1
14470 exit $1
14471 } # as_fn_exit
14473 # as_fn_unset VAR
14474 # ---------------
14475 # Portably unset VAR.
14476 as_fn_unset ()
14478 { eval $1=; unset $1;}
14480 as_unset=as_fn_unset
14481 # as_fn_append VAR VALUE
14482 # ----------------------
14483 # Append the text in VALUE to the end of the definition contained in VAR. Take
14484 # advantage of any shell optimizations that allow amortized linear growth over
14485 # repeated appends, instead of the typical quadratic growth present in naive
14486 # implementations.
14487 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14488 eval 'as_fn_append ()
14490 eval $1+=\$2
14492 else
14493 as_fn_append ()
14495 eval $1=\$$1\$2
14497 fi # as_fn_append
14499 # as_fn_arith ARG...
14500 # ------------------
14501 # Perform arithmetic evaluation on the ARGs, and store the result in the
14502 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14503 # must be portable across $(()) and expr.
14504 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14505 eval 'as_fn_arith ()
14507 as_val=$(( $* ))
14509 else
14510 as_fn_arith ()
14512 as_val=`expr "$@" || test $? -eq 1`
14514 fi # as_fn_arith
14517 if expr a : '\(a\)' >/dev/null 2>&1 &&
14518 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14519 as_expr=expr
14520 else
14521 as_expr=false
14524 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14525 as_basename=basename
14526 else
14527 as_basename=false
14530 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14531 as_dirname=dirname
14532 else
14533 as_dirname=false
14536 as_me=`$as_basename -- "$0" ||
14537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14538 X"$0" : 'X\(//\)$' \| \
14539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14540 $as_echo X/"$0" |
14541 sed '/^.*\/\([^/][^/]*\)\/*$/{
14542 s//\1/
14545 /^X\/\(\/\/\)$/{
14546 s//\1/
14549 /^X\/\(\/\).*/{
14550 s//\1/
14553 s/.*/./; q'`
14555 # Avoid depending upon Character Ranges.
14556 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14557 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14558 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14559 as_cr_digits='0123456789'
14560 as_cr_alnum=$as_cr_Letters$as_cr_digits
14562 ECHO_C= ECHO_N= ECHO_T=
14563 case `echo -n x` in #(((((
14564 -n*)
14565 case `echo 'xy\c'` in
14566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14567 xy) ECHO_C='\c';;
14568 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14569 ECHO_T=' ';;
14570 esac;;
14572 ECHO_N='-n';;
14573 esac
14575 rm -f conf$$ conf$$.exe conf$$.file
14576 if test -d conf$$.dir; then
14577 rm -f conf$$.dir/conf$$.file
14578 else
14579 rm -f conf$$.dir
14580 mkdir conf$$.dir 2>/dev/null
14582 if (echo >conf$$.file) 2>/dev/null; then
14583 if ln -s conf$$.file conf$$ 2>/dev/null; then
14584 as_ln_s='ln -s'
14585 # ... but there are two gotchas:
14586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14588 # In both cases, we have to default to `cp -p'.
14589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14590 as_ln_s='cp -p'
14591 elif ln conf$$.file conf$$ 2>/dev/null; then
14592 as_ln_s=ln
14593 else
14594 as_ln_s='cp -p'
14596 else
14597 as_ln_s='cp -p'
14599 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14600 rmdir conf$$.dir 2>/dev/null
14603 # as_fn_mkdir_p
14604 # -------------
14605 # Create "$as_dir" as a directory, including parents if necessary.
14606 as_fn_mkdir_p ()
14609 case $as_dir in #(
14610 -*) as_dir=./$as_dir;;
14611 esac
14612 test -d "$as_dir" || eval $as_mkdir_p || {
14613 as_dirs=
14614 while :; do
14615 case $as_dir in #(
14616 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14617 *) as_qdir=$as_dir;;
14618 esac
14619 as_dirs="'$as_qdir' $as_dirs"
14620 as_dir=`$as_dirname -- "$as_dir" ||
14621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14622 X"$as_dir" : 'X\(//\)[^/]' \| \
14623 X"$as_dir" : 'X\(//\)$' \| \
14624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14625 $as_echo X"$as_dir" |
14626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14627 s//\1/
14630 /^X\(\/\/\)[^/].*/{
14631 s//\1/
14634 /^X\(\/\/\)$/{
14635 s//\1/
14638 /^X\(\/\).*/{
14639 s//\1/
14642 s/.*/./; q'`
14643 test -d "$as_dir" && break
14644 done
14645 test -z "$as_dirs" || eval "mkdir $as_dirs"
14646 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14649 } # as_fn_mkdir_p
14650 if mkdir -p . 2>/dev/null; then
14651 as_mkdir_p='mkdir -p "$as_dir"'
14652 else
14653 test -d ./-p && rmdir ./-p
14654 as_mkdir_p=false
14657 if test -x / >/dev/null 2>&1; then
14658 as_test_x='test -x'
14659 else
14660 if ls -dL / >/dev/null 2>&1; then
14661 as_ls_L_option=L
14662 else
14663 as_ls_L_option=
14665 as_test_x='
14666 eval sh -c '\''
14667 if test -d "$1"; then
14668 test -d "$1/.";
14669 else
14670 case $1 in #(
14671 -*)set "./$1";;
14672 esac;
14673 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14674 ???[sx]*):;;*)false;;esac;fi
14675 '\'' sh
14678 as_executable_p=$as_test_x
14680 # Sed expression to map a string onto a valid CPP name.
14681 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14683 # Sed expression to map a string onto a valid variable name.
14684 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14687 exec 6>&1
14688 ## ----------------------------------- ##
14689 ## Main body of $CONFIG_STATUS script. ##
14690 ## ----------------------------------- ##
14691 _ASEOF
14692 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14695 # Save the log message, to keep $0 and so on meaningful, and to
14696 # report actual input values of CONFIG_FILES etc. instead of their
14697 # values after options handling.
14698 ac_log="
14699 This file was extended by $as_me, which was
14700 generated by GNU Autoconf 2.64. Invocation command line was
14702 CONFIG_FILES = $CONFIG_FILES
14703 CONFIG_HEADERS = $CONFIG_HEADERS
14704 CONFIG_LINKS = $CONFIG_LINKS
14705 CONFIG_COMMANDS = $CONFIG_COMMANDS
14706 $ $0 $@
14708 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14711 _ACEOF
14713 case $ac_config_files in *"
14714 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14715 esac
14719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14720 # Files that config.status was made for.
14721 config_files="$ac_config_files"
14723 _ACEOF
14725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14726 ac_cs_usage="\
14727 \`$as_me' instantiates files and other configuration actions
14728 from templates according to the current configuration. Unless the files
14729 and actions are specified as TAGs, all are instantiated by default.
14731 Usage: $0 [OPTION]... [TAG]...
14733 -h, --help print this help, then exit
14734 -V, --version print version number and configuration settings, then exit
14735 -q, --quiet, --silent
14736 do not print progress messages
14737 -d, --debug don't remove temporary files
14738 --recheck update $as_me by reconfiguring in the same conditions
14739 --file=FILE[:TEMPLATE]
14740 instantiate the configuration file FILE
14742 Configuration files:
14743 $config_files
14745 Report bugs to the package provider."
14747 _ACEOF
14748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14749 ac_cs_version="\\
14750 config.status
14751 configured by $0, generated by GNU Autoconf 2.64,
14752 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14754 Copyright (C) 2009 Free Software Foundation, Inc.
14755 This config.status script is free software; the Free Software Foundation
14756 gives unlimited permission to copy, distribute and modify it."
14758 ac_pwd='$ac_pwd'
14759 srcdir='$srcdir'
14760 INSTALL='$INSTALL'
14761 AWK='$AWK'
14762 test -n "\$AWK" || AWK=awk
14763 _ACEOF
14765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14766 # The default lists apply if the user does not specify any file.
14767 ac_need_defaults=:
14768 while test $# != 0
14770 case $1 in
14771 --*=*)
14772 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14773 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14774 ac_shift=:
14777 ac_option=$1
14778 ac_optarg=$2
14779 ac_shift=shift
14781 esac
14783 case $ac_option in
14784 # Handling of the options.
14785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14786 ac_cs_recheck=: ;;
14787 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14788 $as_echo "$ac_cs_version"; exit ;;
14789 --debug | --debu | --deb | --de | --d | -d )
14790 debug=: ;;
14791 --file | --fil | --fi | --f )
14792 $ac_shift
14793 case $ac_optarg in
14794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14795 esac
14796 as_fn_append CONFIG_FILES " '$ac_optarg'"
14797 ac_need_defaults=false;;
14798 --he | --h | --help | --hel | -h )
14799 $as_echo "$ac_cs_usage"; exit ;;
14800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14801 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14802 ac_cs_silent=: ;;
14804 # This is an error.
14805 -*) as_fn_error "unrecognized option: \`$1'
14806 Try \`$0 --help' for more information." ;;
14808 *) as_fn_append ac_config_targets " $1"
14809 ac_need_defaults=false ;;
14811 esac
14812 shift
14813 done
14815 ac_configure_extra_args=
14817 if $ac_cs_silent; then
14818 exec 6>/dev/null
14819 ac_configure_extra_args="$ac_configure_extra_args --silent"
14822 _ACEOF
14823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14824 if \$ac_cs_recheck; then
14825 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14826 shift
14827 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14828 CONFIG_SHELL='$SHELL'
14829 export CONFIG_SHELL
14830 exec "\$@"
14833 _ACEOF
14834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14835 exec 5>>config.log
14837 echo
14838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14839 ## Running $as_me. ##
14840 _ASBOX
14841 $as_echo "$ac_log"
14842 } >&5
14844 _ACEOF
14845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14847 # INIT-COMMANDS
14849 extrasub_build="$extrasub_build"
14850 extrasub_host="$extrasub_host"
14851 extrasub_target="$extrasub_target"
14853 _ACEOF
14855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14857 # Handling of arguments.
14858 for ac_config_target in $ac_config_targets
14860 case $ac_config_target in
14861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14863 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14864 esac
14865 done
14868 # If the user did not use the arguments to specify the items to instantiate,
14869 # then the envvar interface is used. Set only those that are not.
14870 # We use the long form for the default assignment because of an extremely
14871 # bizarre bug on SunOS 4.1.3.
14872 if $ac_need_defaults; then
14873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14876 # Have a temporary directory for convenience. Make it in the build tree
14877 # simply because there is no reason against having it here, and in addition,
14878 # creating and moving files from /tmp can sometimes cause problems.
14879 # Hook for its removal unless debugging.
14880 # Note that there is a small window in which the directory will not be cleaned:
14881 # after its creation but before its name has been assigned to `$tmp'.
14882 $debug ||
14884 tmp=
14885 trap 'exit_status=$?
14886 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14888 trap 'as_fn_exit 1' 1 2 13 15
14890 # Create a (secure) tmp directory for tmp files.
14893 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14894 test -n "$tmp" && test -d "$tmp"
14895 } ||
14897 tmp=./conf$$-$RANDOM
14898 (umask 077 && mkdir "$tmp")
14899 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14901 # Set up the scripts for CONFIG_FILES section.
14902 # No need to generate them if there are no CONFIG_FILES.
14903 # This happens for instance with `./config.status config.h'.
14904 if test -n "$CONFIG_FILES"; then
14906 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14907 ac_cs_awk_getline=:
14908 ac_cs_awk_pipe_init=
14909 ac_cs_awk_read_file='
14910 while ((getline aline < (F[key])) > 0)
14911 print(aline)
14912 close(F[key])'
14913 ac_cs_awk_pipe_fini=
14914 else
14915 ac_cs_awk_getline=false
14916 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14917 ac_cs_awk_read_file='
14918 print "|#_!!_#|"
14919 print "cat " F[key] " &&"
14920 '$ac_cs_awk_pipe_init
14921 # The final `:' finishes the AND list.
14922 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14924 ac_cr=`echo X | tr X '\015'`
14925 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14926 # But we know of no other shell where ac_cr would be empty at this
14927 # point, so we can use a bashism as a fallback.
14928 if test "x$ac_cr" = x; then
14929 eval ac_cr=\$\'\\r\'
14931 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14932 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14933 ac_cs_awk_cr='\r'
14934 else
14935 ac_cs_awk_cr=$ac_cr
14938 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14939 _ACEOF
14941 # Create commands to substitute file output variables.
14943 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14944 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14945 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14946 echo "_ACAWK" &&
14947 echo "_ACEOF"
14948 } >conf$$files.sh &&
14949 . ./conf$$files.sh ||
14950 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14951 rm -f conf$$files.sh
14954 echo "cat >conf$$subs.awk <<_ACEOF" &&
14955 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14956 echo "_ACEOF"
14957 } >conf$$subs.sh ||
14958 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14959 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14960 ac_delim='%!_!# '
14961 for ac_last_try in false false false false false :; do
14962 . ./conf$$subs.sh ||
14963 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14965 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14966 if test $ac_delim_n = $ac_delim_num; then
14967 break
14968 elif $ac_last_try; then
14969 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14970 else
14971 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14973 done
14974 rm -f conf$$subs.sh
14976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14977 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14978 _ACEOF
14979 sed -n '
14981 s/^/S["/; s/!.*/"]=/
14984 s/^[^!]*!//
14985 :repl
14986 t repl
14987 s/'"$ac_delim"'$//
14988 t delim
14991 s/\(.\{148\}\).*/\1/
14992 t more1
14993 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14996 b repl
14997 :more1
14998 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15001 s/.\{148\}//
15002 t nl
15003 :delim
15005 s/\(.\{148\}\).*/\1/
15006 t more2
15007 s/["\\]/\\&/g; s/^/"/; s/$/"/
15010 :more2
15011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15014 s/.\{148\}//
15015 t delim
15016 ' <conf$$subs.awk | sed '
15017 /^[^""]/{
15019 s/\n//
15021 ' >>$CONFIG_STATUS || ac_write_fail=1
15022 rm -f conf$$subs.awk
15023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15024 _ACAWK
15025 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15026 for (key in S) S_is_set[key] = 1
15027 FS = "\a"
15028 \$ac_cs_awk_pipe_init
15031 line = $ 0
15032 nfields = split(line, field, "@")
15033 substed = 0
15034 len = length(field[1])
15035 for (i = 2; i < nfields; i++) {
15036 key = field[i]
15037 keylen = length(key)
15038 if (S_is_set[key]) {
15039 value = S[key]
15040 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15041 len += length(value) + length(field[++i])
15042 substed = 1
15043 } else
15044 len += 1 + keylen
15046 if (nfields == 3 && !substed) {
15047 key = field[2]
15048 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15049 \$ac_cs_awk_read_file
15050 next
15053 print line
15055 \$ac_cs_awk_pipe_fini
15056 _ACAWK
15057 _ACEOF
15058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15059 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15060 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15061 else
15063 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15064 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15065 _ACEOF
15067 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15068 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15069 # trailing colons and then remove the whole line if VPATH becomes empty
15070 # (actually we leave an empty line to preserve line numbers).
15071 if test "x$srcdir" = x.; then
15072 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15073 s/:*\$(srcdir):*/:/
15074 s/:*\${srcdir}:*/:/
15075 s/:*@srcdir@:*/:/
15076 s/^\([^=]*=[ ]*\):*/\1/
15077 s/:*$//
15078 s/^[^=]*=[ ]*$//
15082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15083 fi # test -n "$CONFIG_FILES"
15086 eval set X " :F $CONFIG_FILES "
15087 shift
15088 for ac_tag
15090 case $ac_tag in
15091 :[FHLC]) ac_mode=$ac_tag; continue;;
15092 esac
15093 case $ac_mode$ac_tag in
15094 :[FHL]*:*);;
15095 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15096 :[FH]-) ac_tag=-:-;;
15097 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15098 esac
15099 ac_save_IFS=$IFS
15100 IFS=:
15101 set x $ac_tag
15102 IFS=$ac_save_IFS
15103 shift
15104 ac_file=$1
15105 shift
15107 case $ac_mode in
15108 :L) ac_source=$1;;
15109 :[FH])
15110 ac_file_inputs=
15111 for ac_f
15113 case $ac_f in
15114 -) ac_f="$tmp/stdin";;
15115 *) # Look for the file first in the build tree, then in the source tree
15116 # (if the path is not absolute). The absolute path cannot be DOS-style,
15117 # because $ac_f cannot contain `:'.
15118 test -f "$ac_f" ||
15119 case $ac_f in
15120 [\\/$]*) false;;
15121 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15122 esac ||
15123 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15124 esac
15125 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15126 as_fn_append ac_file_inputs " '$ac_f'"
15127 done
15129 # Let's still pretend it is `configure' which instantiates (i.e., don't
15130 # use $as_me), people would be surprised to read:
15131 # /* config.h. Generated by config.status. */
15132 configure_input='Generated from '`
15133 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15134 `' by configure.'
15135 if test x"$ac_file" != x-; then
15136 configure_input="$ac_file. $configure_input"
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15138 $as_echo "$as_me: creating $ac_file" >&6;}
15140 # Neutralize special characters interpreted by sed in replacement strings.
15141 case $configure_input in #(
15142 *\&* | *\|* | *\\* )
15143 ac_sed_conf_input=`$as_echo "$configure_input" |
15144 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15145 *) ac_sed_conf_input=$configure_input;;
15146 esac
15148 case $ac_tag in
15149 *:-:* | *:-) cat >"$tmp/stdin" \
15150 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15151 esac
15153 esac
15155 ac_dir=`$as_dirname -- "$ac_file" ||
15156 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15157 X"$ac_file" : 'X\(//\)[^/]' \| \
15158 X"$ac_file" : 'X\(//\)$' \| \
15159 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15160 $as_echo X"$ac_file" |
15161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15162 s//\1/
15165 /^X\(\/\/\)[^/].*/{
15166 s//\1/
15169 /^X\(\/\/\)$/{
15170 s//\1/
15173 /^X\(\/\).*/{
15174 s//\1/
15177 s/.*/./; q'`
15178 as_dir="$ac_dir"; as_fn_mkdir_p
15179 ac_builddir=.
15181 case "$ac_dir" in
15182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15184 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15185 # A ".." for each directory in $ac_dir_suffix.
15186 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15187 case $ac_top_builddir_sub in
15188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15190 esac ;;
15191 esac
15192 ac_abs_top_builddir=$ac_pwd
15193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15194 # for backward compatibility:
15195 ac_top_builddir=$ac_top_build_prefix
15197 case $srcdir in
15198 .) # We are building in place.
15199 ac_srcdir=.
15200 ac_top_srcdir=$ac_top_builddir_sub
15201 ac_abs_top_srcdir=$ac_pwd ;;
15202 [\\/]* | ?:[\\/]* ) # Absolute name.
15203 ac_srcdir=$srcdir$ac_dir_suffix;
15204 ac_top_srcdir=$srcdir
15205 ac_abs_top_srcdir=$srcdir ;;
15206 *) # Relative name.
15207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15208 ac_top_srcdir=$ac_top_build_prefix$srcdir
15209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15210 esac
15211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15214 case $ac_mode in
15217 # CONFIG_FILE
15220 case $INSTALL in
15221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15222 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15223 esac
15224 _ACEOF
15226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15227 # If the template does not know about datarootdir, expand it.
15228 # FIXME: This hack should be removed a few years after 2.60.
15229 ac_datarootdir_hack=; ac_datarootdir_seen=
15230 ac_sed_dataroot='
15231 /datarootdir/ {
15235 /@datadir@/p
15236 /@docdir@/p
15237 /@infodir@/p
15238 /@localedir@/p
15239 /@mandir@/p'
15240 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15241 *datarootdir*) ac_datarootdir_seen=yes;;
15242 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15244 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15245 _ACEOF
15246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15247 ac_datarootdir_hack='
15248 s&@datadir@&$datadir&g
15249 s&@docdir@&$docdir&g
15250 s&@infodir@&$infodir&g
15251 s&@localedir@&$localedir&g
15252 s&@mandir@&$mandir&g
15253 s&\\\${datarootdir}&$datarootdir&g' ;;
15254 esac
15255 _ACEOF
15257 # Neutralize VPATH when `$srcdir' = `.'.
15258 # Shell code in configure.ac might set extrasub.
15259 # FIXME: do we really want to maintain this feature?
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 ac_sed_extra="$ac_vpsub
15262 $extrasub
15263 _ACEOF
15264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15267 s|@configure_input@|$ac_sed_conf_input|;t t
15268 s&@top_builddir@&$ac_top_builddir_sub&;t t
15269 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15270 s&@srcdir@&$ac_srcdir&;t t
15271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15272 s&@top_srcdir@&$ac_top_srcdir&;t t
15273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15274 s&@builddir@&$ac_builddir&;t t
15275 s&@abs_builddir@&$ac_abs_builddir&;t t
15276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15277 s&@INSTALL@&$ac_INSTALL&;t t
15278 $ac_datarootdir_hack
15280 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15281 if $ac_cs_awk_getline; then
15282 $AWK -f "$tmp/subs.awk"
15283 else
15284 $AWK -f "$tmp/subs.awk" | $SHELL
15285 fi >$tmp/out \
15286 || as_fn_error "could not create $ac_file" "$LINENO" 5
15288 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15289 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15290 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15292 which seems to be undefined. Please make sure it is defined." >&5
15293 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15294 which seems to be undefined. Please make sure it is defined." >&2;}
15296 rm -f "$tmp/stdin"
15297 case $ac_file in
15298 -) cat "$tmp/out" && rm -f "$tmp/out";;
15299 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15300 esac \
15301 || as_fn_error "could not create $ac_file" "$LINENO" 5
15306 esac
15309 case $ac_file$ac_mode in
15310 "Makefile":F) sed "$extrasub_build" Makefile |
15311 sed "$extrasub_host" |
15312 sed "$extrasub_target" > mf$$
15313 mv -f mf$$ Makefile ;;
15315 esac
15316 done # for ac_tag
15319 as_fn_exit 0
15320 _ACEOF
15321 ac_clean_files=$ac_clean_files_save
15323 test $ac_write_fail = 0 ||
15324 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15327 # configure is writing to config.log, and then calls config.status.
15328 # config.status does its own redirection, appending to config.log.
15329 # Unfortunately, on DOS this fails, as config.log is still kept open
15330 # by configure, so config.status won't be able to write to it; its
15331 # output is simply discarded. So we exec the FD to /dev/null,
15332 # effectively closing config.log, so it can be properly (re)opened and
15333 # appended to by config.status. When coming back to configure, we
15334 # need to make the FD available again.
15335 if test "$no_create" != yes; then
15336 ac_cs_success=:
15337 ac_config_status_args=
15338 test "$silent" = yes &&
15339 ac_config_status_args="$ac_config_status_args --quiet"
15340 exec 5>/dev/null
15341 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15342 exec 5>>config.log
15343 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15344 # would make configure fail if this is the last instruction.
15345 $ac_cs_success || as_fn_exit $?
15347 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15349 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}