2010-12-29 Gary Funck <gary@intrepid.com>
[official-gcc.git] / configure
blob81a06a62e144ca03002e110cb27d9ab8d161e0b6
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_libada
746 enable_libssp
747 enable_build_with_cxx
748 with_mpc
749 with_mpc_include
750 with_mpc_lib
751 with_mpfr_dir
752 with_mpfr
753 with_mpfr_include
754 with_mpfr_lib
755 with_gmp_dir
756 with_gmp
757 with_gmp_include
758 with_gmp_lib
759 with_host_libstdcxx
760 with_stage1_ldflags
761 with_stage1_libs
762 with_boot_libs
763 with_boot_ldflags
764 with_ppl
765 with_ppl_include
766 with_ppl_lib
767 enable_ppl_version_check
768 with_cloog
769 with_cloog_include
770 with_cloog_lib
771 enable_cloog_backend
772 enable_cloog_version_check
773 enable_lto
774 enable_stage1_languages
775 enable_objc_gc
776 with_upc_pts
777 with_build_sysroot
778 with_debug_prefix_map
779 enable_bootstrap
780 with_build_config
781 enable_serial_configure
782 enable_upc_link_script
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 --enable-libada build libada directory
1459 --enable-libssp build libssp directory
1460 --enable-build-with-cxx build with C++ compiler instead of C compiler
1461 --disable-ppl-version-check disable check for PPL version
1462 --enable-cloog-backend[=BACKEND]
1463 set the CLooG BACKEND used to either isl, ppl or
1464 ppl-legacy (default)
1465 --disable-cloog-version-check
1466 disable check for CLooG version
1467 --enable-lto enable link time optimization support
1468 --enable-stage1-languages[=all] choose additional languages to build during
1469 stage1. Mostly useful for compiler development.
1470 --enable-objc-gc enable use of Boehm's garbage collector with the
1471 GNU Objective-C runtime
1472 --enable-bootstrap enable bootstrapping [yes if native build]
1473 --enable-serial-[{host,target,build}-]configure
1474 force sequential configuration of
1475 sub-packages for the host, target or build
1476 machine, or all sub-packages
1477 --enable-upc-link-script Enable UPC's use of a custom linker script.
1478 This will define the UPC shared section as a no load section on
1479 targets where this feature is supported. Requires GNU LD.
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-upc-pts={struct,word-pair,packed} choose the representation
1529 of a UPC pointer-to-shared
1530 --with-build-sysroot=SYSROOT
1531 use sysroot as the system root during the build
1532 --with-debug-prefix-map='A=B C=D ...'
1533 map A to B, C to D ... in debug information
1534 --with-build-config='NAME NAME2...'
1535 Use config/NAME.mk build configuration
1536 --with-build-time-tools=PATH
1537 use given path to find target tools during the build
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1547 CXX C++ compiler command
1548 CXXFLAGS C++ compiler flags
1549 build_configargs
1550 additional configure arguments for build directories
1551 host_configargs
1552 additional configure arguments for host directories
1553 target_configargs
1554 additional configure arguments for target directories
1555 AR AR for the host
1556 AS AS for the host
1557 DLLTOOL DLLTOOL for the host
1558 LD LD for the host
1559 LIPO LIPO for the host
1560 NM NM for the host
1561 RANLIB RANLIB for the host
1562 STRIP STRIP for the host
1563 WINDRES WINDRES for the host
1564 WINDMC WINDMC for the host
1565 OBJCOPY OBJCOPY for the host
1566 OBJDUMP OBJDUMP for the host
1567 CC_FOR_TARGET
1568 CC for the target
1569 CXX_FOR_TARGET
1570 CXX for the target
1571 GCC_FOR_TARGET
1572 GCC for the target
1573 GCJ_FOR_TARGET
1574 GCJ for the target
1575 GFORTRAN_FOR_TARGET
1576 GFORTRAN for the target
1577 GOC_FOR_TARGET
1578 GOC for the target
1579 AR_FOR_TARGET
1580 AR for the target
1581 AS_FOR_TARGET
1582 AS for the target
1583 DLLTOOL_FOR_TARGET
1584 DLLTOOL for the target
1585 LD_FOR_TARGET
1586 LD for the target
1587 LIPO_FOR_TARGET
1588 LIPO for the target
1589 NM_FOR_TARGET
1590 NM for the target
1591 OBJDUMP_FOR_TARGET
1592 OBJDUMP for the target
1593 RANLIB_FOR_TARGET
1594 RANLIB for the target
1595 STRIP_FOR_TARGET
1596 STRIP for the target
1597 WINDRES_FOR_TARGET
1598 WINDRES for the target
1599 WINDMC_FOR_TARGET
1600 WINDMC for the target
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to the package provider.
1606 _ACEOF
1607 ac_status=$?
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 continue
1616 ac_builddir=.
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1634 case $srcdir in
1635 .) # We are building in place.
1636 ac_srcdir=.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1658 else
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1662 done
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667 cat <<\_ACEOF
1668 configure
1669 generated by GNU Autoconf 2.64
1671 Copyright (C) 2009 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 return $ac_retval
1718 } # ac_fn_c_try_compile
1720 # ac_fn_cxx_try_compile LINENO
1721 # ----------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_cxx_try_compile ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_cxx_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1751 ac_retval=1
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1756 } # ac_fn_cxx_try_compile
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_link ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext conftest$ac_exeext
1765 if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest$ac_exeext && {
1784 test "$cross_compiling" = yes ||
1785 $as_test_x conftest$ac_exeext
1786 }; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=1
1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796 # interfere with the next link command; also delete a directory that is
1797 # left behind by Apple's compiler. We do this before executing the actions.
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 return $ac_retval
1802 } # ac_fn_c_try_link
1803 cat >config.log <<_ACEOF
1804 This file contains any messages produced by compilers while
1805 running configure, to aid debugging if configure makes a mistake.
1807 It was created by $as_me, which was
1808 generated by GNU Autoconf 2.64. Invocation command line was
1810 $ $0 $@
1812 _ACEOF
1813 exec 5>>config.log
1815 cat <<_ASUNAME
1816 ## --------- ##
1817 ## Platform. ##
1818 ## --------- ##
1820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1832 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1837 _ASUNAME
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 $as_echo "PATH: $as_dir"
1845 done
1846 IFS=$as_save_IFS
1848 } >&5
1850 cat >&5 <<_ACEOF
1853 ## ----------- ##
1854 ## Core tests. ##
1855 ## ----------- ##
1857 _ACEOF
1860 # Keep a trace of the command line.
1861 # Strip out --no-create and --no-recursion so they do not pile up.
1862 # Strip out --silent because we don't want to record it for future runs.
1863 # Also quote any args containing shell meta-characters.
1864 # Make two passes to allow for proper duplicate-argument suppression.
1865 ac_configure_args=
1866 ac_configure_args0=
1867 ac_configure_args1=
1868 ac_must_keep_next=false
1869 for ac_pass in 1 2
1871 for ac_arg
1873 case $ac_arg in
1874 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1875 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1876 | -silent | --silent | --silen | --sile | --sil)
1877 continue ;;
1878 *\'*)
1879 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 esac
1881 case $ac_pass in
1882 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1884 as_fn_append ac_configure_args1 " '$ac_arg'"
1885 if test $ac_must_keep_next = true; then
1886 ac_must_keep_next=false # Got value, back to normal.
1887 else
1888 case $ac_arg in
1889 *=* | --config-cache | -C | -disable-* | --disable-* \
1890 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1891 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1892 | -with-* | --with-* | -without-* | --without-* | --x)
1893 case "$ac_configure_args0 " in
1894 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1895 esac
1897 -* ) ac_must_keep_next=true ;;
1898 esac
1900 as_fn_append ac_configure_args " '$ac_arg'"
1902 esac
1903 done
1904 done
1905 { ac_configure_args0=; unset ac_configure_args0;}
1906 { ac_configure_args1=; unset ac_configure_args1;}
1908 # When interrupted or exit'd, cleanup temporary files, and complete
1909 # config.log. We remove comments because anyway the quotes in there
1910 # would cause problems or look ugly.
1911 # WARNING: Use '\'' to represent an apostrophe within the trap.
1912 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1913 trap 'exit_status=$?
1914 # Save into config.log some information that might help in debugging.
1916 echo
1918 cat <<\_ASBOX
1919 ## ---------------- ##
1920 ## Cache variables. ##
1921 ## ---------------- ##
1922 _ASBOX
1923 echo
1924 # The following way of writing the cache mishandles newlines in values,
1926 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1927 eval ac_val=\$$ac_var
1928 case $ac_val in #(
1929 *${as_nl}*)
1930 case $ac_var in #(
1931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1932 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1933 esac
1934 case $ac_var in #(
1935 _ | IFS | as_nl) ;; #(
1936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1937 *) { eval $ac_var=; unset $ac_var;} ;;
1938 esac ;;
1939 esac
1940 done
1941 (set) 2>&1 |
1942 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1943 *${as_nl}ac_space=\ *)
1944 sed -n \
1945 "s/'\''/'\''\\\\'\'''\''/g;
1946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1947 ;; #(
1949 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 esac |
1952 sort
1954 echo
1956 cat <<\_ASBOX
1957 ## ----------------- ##
1958 ## Output variables. ##
1959 ## ----------------- ##
1960 _ASBOX
1961 echo
1962 for ac_var in $ac_subst_vars
1964 eval ac_val=\$$ac_var
1965 case $ac_val in
1966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 esac
1968 $as_echo "$ac_var='\''$ac_val'\''"
1969 done | sort
1970 echo
1972 if test -n "$ac_subst_files"; then
1973 cat <<\_ASBOX
1974 ## ------------------- ##
1975 ## File substitutions. ##
1976 ## ------------------- ##
1977 _ASBOX
1978 echo
1979 for ac_var in $ac_subst_files
1981 eval ac_val=\$$ac_var
1982 case $ac_val in
1983 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1984 esac
1985 $as_echo "$ac_var='\''$ac_val'\''"
1986 done | sort
1987 echo
1990 if test -s confdefs.h; then
1991 cat <<\_ASBOX
1992 ## ----------- ##
1993 ## confdefs.h. ##
1994 ## ----------- ##
1995 _ASBOX
1996 echo
1997 cat confdefs.h
1998 echo
2000 test "$ac_signal" != 0 &&
2001 $as_echo "$as_me: caught signal $ac_signal"
2002 $as_echo "$as_me: exit $exit_status"
2003 } >&5
2004 rm -f core *.core core.conftest.* &&
2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2006 exit $exit_status
2008 for ac_signal in 1 2 13 15; do
2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2010 done
2011 ac_signal=0
2013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2014 rm -f -r conftest* confdefs.h
2016 $as_echo "/* confdefs.h */" > confdefs.h
2018 # Predefined preprocessor variables.
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_NAME "$PACKAGE_NAME"
2022 _ACEOF
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2026 _ACEOF
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2030 _ACEOF
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_STRING "$PACKAGE_STRING"
2034 _ACEOF
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2038 _ACEOF
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_URL "$PACKAGE_URL"
2042 _ACEOF
2045 # Let the site file select an alternate cache file if it wants to.
2046 # Prefer an explicitly selected file to automatically selected ones.
2047 ac_site_file1=NONE
2048 ac_site_file2=NONE
2049 if test -n "$CONFIG_SITE"; then
2050 ac_site_file1=$CONFIG_SITE
2051 elif test "x$prefix" != xNONE; then
2052 ac_site_file1=$prefix/share/config.site
2053 ac_site_file2=$prefix/etc/config.site
2054 else
2055 ac_site_file1=$ac_default_prefix/share/config.site
2056 ac_site_file2=$ac_default_prefix/etc/config.site
2058 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2060 test "x$ac_site_file" = xNONE && continue
2061 if test -r "$ac_site_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2063 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2064 sed 's/^/| /' "$ac_site_file" >&5
2065 . "$ac_site_file"
2067 done
2069 if test -r "$cache_file"; then
2070 # Some versions of bash will fail to source /dev/null (special
2071 # files actually), so we avoid doing that.
2072 if test -f "$cache_file"; then
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2074 $as_echo "$as_me: loading cache $cache_file" >&6;}
2075 case $cache_file in
2076 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077 *) . "./$cache_file";;
2078 esac
2080 else
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2082 $as_echo "$as_me: creating cache $cache_file" >&6;}
2083 >$cache_file
2086 # Check that the precious variables saved in the cache have kept the same
2087 # value.
2088 ac_cache_corrupted=false
2089 for ac_var in $ac_precious_vars; do
2090 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2091 eval ac_new_set=\$ac_env_${ac_var}_set
2092 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2093 eval ac_new_val=\$ac_env_${ac_var}_value
2094 case $ac_old_set,$ac_new_set in
2095 set,)
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2097 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2098 ac_cache_corrupted=: ;;
2099 ,set)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,);;
2105 if test "x$ac_old_val" != "x$ac_new_val"; then
2106 # differences in whitespace do not lead to failure.
2107 ac_old_val_w=`echo x $ac_old_val`
2108 ac_new_val_w=`echo x $ac_new_val`
2109 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2111 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2112 ac_cache_corrupted=:
2113 else
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2115 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2116 eval $ac_var=\$ac_old_val
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2119 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2121 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2122 fi;;
2123 esac
2124 # Pass precious variables to config.status.
2125 if test "$ac_new_set" = set; then
2126 case $ac_new_val in
2127 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2128 *) ac_arg=$ac_var=$ac_new_val ;;
2129 esac
2130 case " $ac_configure_args " in
2131 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2132 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2133 esac
2135 done
2136 if $ac_cache_corrupted; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2140 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2141 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2143 ## -------------------- ##
2144 ## Main body of script. ##
2145 ## -------------------- ##
2147 ac_ext=c
2148 ac_cpp='$CPP $CPPFLAGS'
2149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161 progname=$0
2162 # if PWD already has a value, it is probably wrong.
2163 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2165 # Export original configure arguments for use by sub-configures.
2166 # Quote arguments with shell meta charatcers.
2167 TOPLEVEL_CONFIGURE_ARGUMENTS=
2168 set -- "$progname" "$@"
2169 for ac_arg
2171 case "$ac_arg" in
2172 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2173 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2174 # if the argument is of the form -foo=baz, quote the baz part only
2175 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2176 *) ;;
2177 esac
2178 # Add the quoted argument to the list.
2179 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2180 done
2181 if test "$silent" = yes; then
2182 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2184 # Remove the initial space we just introduced and, as these will be
2185 # expanded by make, quote '$'.
2186 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2189 # Find the build, host, and target systems.
2190 ac_aux_dir=
2191 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2192 for ac_t in install-sh install.sh shtool; do
2193 if test -f "$ac_dir/$ac_t"; then
2194 ac_aux_dir=$ac_dir
2195 ac_install_sh="$ac_aux_dir/$ac_t -c"
2196 break 2
2198 done
2199 done
2200 if test -z "$ac_aux_dir"; then
2201 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2204 # These three variables are undocumented and unsupported,
2205 # and are intended to be withdrawn in a future Autoconf release.
2206 # They can cause serious problems if a builder's source tree is in a directory
2207 # whose full name contains unusual characters.
2208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2213 # Make sure we can run config.sub.
2214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2215 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2218 $as_echo_n "checking build system type... " >&6; }
2219 if test "${ac_cv_build+set}" = set; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 ac_build_alias=$build_alias
2223 test "x$ac_build_alias" = x &&
2224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2225 test "x$ac_build_alias" = x &&
2226 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2228 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2232 $as_echo "$ac_cv_build" >&6; }
2233 case $ac_cv_build in
2234 *-*-*) ;;
2235 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2236 esac
2237 build=$ac_cv_build
2238 ac_save_IFS=$IFS; IFS='-'
2239 set x $ac_cv_build
2240 shift
2241 build_cpu=$1
2242 build_vendor=$2
2243 shift; shift
2244 # Remember, the first character of IFS is used to create $*,
2245 # except with old shells:
2246 build_os=$*
2247 IFS=$ac_save_IFS
2248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2251 case ${build_alias} in
2252 "") build_noncanonical=${build} ;;
2253 *) build_noncanonical=${build_alias} ;;
2254 esac
2258 case ${host_alias} in
2259 "") host_noncanonical=${build_noncanonical} ;;
2260 *) host_noncanonical=${host_alias} ;;
2261 esac
2265 case ${target_alias} in
2266 "") target_noncanonical=${host_noncanonical} ;;
2267 *) target_noncanonical=${target_alias} ;;
2268 esac
2273 test "$host_noncanonical" = "$target_noncanonical" &&
2274 test "$program_prefix$program_suffix$program_transform_name" = \
2275 NONENONEs,x,x, &&
2276 program_transform_name=s,y,y,
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2279 $as_echo_n "checking host system type... " >&6; }
2280 if test "${ac_cv_host+set}" = set; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 if test "x$host_alias" = x; then
2284 ac_cv_host=$ac_cv_build
2285 else
2286 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2287 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2292 $as_echo "$ac_cv_host" >&6; }
2293 case $ac_cv_host in
2294 *-*-*) ;;
2295 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2296 esac
2297 host=$ac_cv_host
2298 ac_save_IFS=$IFS; IFS='-'
2299 set x $ac_cv_host
2300 shift
2301 host_cpu=$1
2302 host_vendor=$2
2303 shift; shift
2304 # Remember, the first character of IFS is used to create $*,
2305 # except with old shells:
2306 host_os=$*
2307 IFS=$ac_save_IFS
2308 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2312 $as_echo_n "checking target system type... " >&6; }
2313 if test "${ac_cv_target+set}" = set; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test "x$target_alias" = x; then
2317 ac_cv_target=$ac_cv_host
2318 else
2319 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2320 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2325 $as_echo "$ac_cv_target" >&6; }
2326 case $ac_cv_target in
2327 *-*-*) ;;
2328 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2329 esac
2330 target=$ac_cv_target
2331 ac_save_IFS=$IFS; IFS='-'
2332 set x $ac_cv_target
2333 shift
2334 target_cpu=$1
2335 target_vendor=$2
2336 shift; shift
2337 # Remember, the first character of IFS is used to create $*,
2338 # except with old shells:
2339 target_os=$*
2340 IFS=$ac_save_IFS
2341 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2344 # The aliases save the names the user supplied, while $host etc.
2345 # will get canonicalized.
2346 test -n "$target_alias" &&
2347 test "$program_prefix$program_suffix$program_transform_name" = \
2348 NONENONEs,x,x, &&
2349 program_prefix=${target_alias}-
2351 test "$program_prefix" != NONE &&
2352 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2353 # Use a double $ so make ignores it.
2354 test "$program_suffix" != NONE &&
2355 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2356 # Double any \ or $.
2357 # By default was `s,x,x', remove it if useless.
2358 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2359 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2363 # Get 'install' or 'install-sh' and its variants.
2364 # Find a good install program. We prefer a C program (faster),
2365 # so one script is as good as another. But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2370 # AIX /bin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 # Reject install programs that cannot install multiple files.
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2380 if test -z "$INSTALL"; then
2381 if test "${ac_cv_path_install+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 # Account for people who put trailing slashes in PATH elements.
2390 case $as_dir/ in #((
2391 ./ | .// | /[cC]/* | \
2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394 /usr/ucb/* ) ;;
2396 # OSF1 and SCO ODT 3.0 have their own names for install.
2397 # Don't use installbsd from OSF since it installs stuff as root
2398 # by default.
2399 for ac_prog in ginstall scoinst install; do
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2402 if test $ac_prog = install &&
2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404 # AIX install. It has an incompatible calling convention.
2406 elif test $ac_prog = install &&
2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # program-specific install script used by HP pwplus--don't use.
2410 else
2411 rm -rf conftest.one conftest.two conftest.dir
2412 echo one > conftest.one
2413 echo two > conftest.two
2414 mkdir conftest.dir
2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416 test -s conftest.one && test -s conftest.two &&
2417 test -s conftest.dir/conftest.one &&
2418 test -s conftest.dir/conftest.two
2419 then
2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421 break 3
2425 done
2426 done
2428 esac
2430 done
2431 IFS=$as_save_IFS
2433 rm -rf conftest.one conftest.two conftest.dir
2436 if test "${ac_cv_path_install+set}" = set; then
2437 INSTALL=$ac_cv_path_install
2438 else
2439 # As a last resort, use the slow shell script. Don't cache a
2440 # value for INSTALL within a source directory, because that will
2441 # break other packages using the cache if that directory is
2442 # removed, or if the value is a relative name.
2443 INSTALL=$ac_install_sh
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447 $as_echo "$INSTALL" >&6; }
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2458 $as_echo_n "checking whether ln works... " >&6; }
2459 if test "${acx_cv_prog_LN+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
2461 else
2462 rm -f conftestdata_t
2463 echo >conftestdata_f
2464 if ln conftestdata_f conftestdata_t 2>/dev/null
2465 then
2466 acx_cv_prog_LN=ln
2467 else
2468 acx_cv_prog_LN=no
2470 rm -f conftestdata_f conftestdata_t
2473 if test $acx_cv_prog_LN = no; then
2474 LN="cp"
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2476 $as_echo "no, using $LN" >&6; }
2477 else
2478 LN="$acx_cv_prog_LN"
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2480 $as_echo "yes" >&6; }
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2484 $as_echo_n "checking whether ln -s works... " >&6; }
2485 LN_S=$as_ln_s
2486 if test "$LN_S" = "ln -s"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2488 $as_echo "yes" >&6; }
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2491 $as_echo "no, using $LN_S" >&6; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2495 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2496 if test "${ac_cv_path_SED+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2500 for ac_i in 1 2 3 4 5 6 7; do
2501 ac_script="$ac_script$as_nl$ac_script"
2502 done
2503 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2504 { ac_script=; unset ac_script;}
2505 if test -z "$SED"; then
2506 ac_path_SED_found=false
2507 # Loop through the user's path and test for each of PROGNAME-LIST
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_prog in sed gsed; do
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2516 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2517 # Check for GNU ac_path_SED and select it if it is found.
2518 # Check for GNU $ac_path_SED
2519 case `"$ac_path_SED" --version 2>&1` in
2520 *GNU*)
2521 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2523 ac_count=0
2524 $as_echo_n 0123456789 >"conftest.in"
2525 while :
2527 cat "conftest.in" "conftest.in" >"conftest.tmp"
2528 mv "conftest.tmp" "conftest.in"
2529 cp "conftest.in" "conftest.nl"
2530 $as_echo '' >> "conftest.nl"
2531 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2533 as_fn_arith $ac_count + 1 && ac_count=$as_val
2534 if test $ac_count -gt ${ac_path_SED_max-0}; then
2535 # Best one so far, save it but keep looking for a better one
2536 ac_cv_path_SED="$ac_path_SED"
2537 ac_path_SED_max=$ac_count
2539 # 10*(2^10) chars as input seems more than enough
2540 test $ac_count -gt 10 && break
2541 done
2542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2543 esac
2545 $ac_path_SED_found && break 3
2546 done
2547 done
2548 done
2549 IFS=$as_save_IFS
2550 if test -z "$ac_cv_path_SED"; then
2551 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2553 else
2554 ac_cv_path_SED=$SED
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2559 $as_echo "$ac_cv_path_SED" >&6; }
2560 SED="$ac_cv_path_SED"
2561 rm -f conftest.sed
2563 for ac_prog in gawk mawk nawk awk
2565 # Extract the first word of "$ac_prog", so it can be a program name with args.
2566 set dummy $ac_prog; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_AWK+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$AWK"; then
2573 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_AWK="$ac_prog"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2586 done
2587 done
2588 IFS=$as_save_IFS
2592 AWK=$ac_cv_prog_AWK
2593 if test -n "$AWK"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2595 $as_echo "$AWK" >&6; }
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2602 test -n "$AWK" && break
2603 done
2606 ### we might need to use some other shell than /bin/sh for running subshells
2607 ### If we are on Windows, search for the shell. This will permit people
2608 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2609 ### without also having to set CONFIG_SHELL. This code will work when
2610 ### using bash, which sets OSTYPE.
2611 case "${OSTYPE}" in
2612 *win32*)
2613 if test x${CONFIG_SHELL} = x ; then
2614 if test ! -f /bin/sh ; then
2615 if test x${SHELL} != x && test -f ${SHELL} ; then
2616 CONFIG_SHELL=${SHELL}
2617 export CONFIG_SHELL
2618 else
2619 for prog in sh sh.exe bash bash.exe; do
2620 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2621 for dir in $PATH; do
2622 test -z "$dir" && dir=.
2623 if test -f $dir/$prog; then
2624 CONFIG_SHELL=$dir/$prog
2625 export CONFIG_SHELL
2626 break
2628 done
2629 IFS="$save_ifs"
2630 test -n "${CONFIG_SHELL}" && break
2631 done
2636 esac
2638 config_shell=${CONFIG_SHELL-/bin/sh}
2640 moveifchange=${srcdir}/move-if-change
2642 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2644 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2645 # a relative path.
2646 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2647 INSTALL="${srcpwd}/install-sh -c"
2650 # Set srcdir to "." if that's what it is.
2651 # This is important for multilib support.
2652 pwd=`${PWDCMD-pwd}`
2653 if test "${pwd}" = "${srcpwd}" ; then
2654 srcdir=.
2657 topsrcdir=$srcpwd
2659 extra_host_args=
2661 ### To add a new directory to the tree, first choose whether it is a target
2662 ### or a host dependent tool. Then put it into the appropriate list
2663 ### (library or tools, host or target), doing a dependency sort.
2665 # Subdirs will be configured in the order listed in build_configdirs,
2666 # configdirs, or target_configdirs; see the serialization section below.
2668 # Dependency sorting is only needed when *configuration* must be done in
2669 # a particular order. In all cases a dependency should be specified in
2670 # the Makefile, whether or not it's implicitly specified here.
2672 # Double entries in build_configdirs, configdirs, or target_configdirs may
2673 # cause circular dependencies and break everything horribly.
2675 # these library is used by various programs built for the build
2676 # environment
2678 build_libs="build-libiberty"
2680 # these tools are built for the build environment
2681 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2683 # these libraries are used by various programs built for the host environment
2685 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2687 # these tools are built for the host environment
2688 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2689 # know that we are building the simulator.
2690 # binutils, gas and ld appear in that order because it makes sense to run
2691 # "make check" in that particular order.
2692 # If --enable-gold is used, "gold" may replace "ld".
2693 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"
2695 # libgcj represents the runtime libraries only used by gcj.
2696 libgcj="target-libffi \
2697 target-zlib \
2698 target-qthreads \
2699 target-libjava"
2701 # these libraries are built for the target environment, and are built after
2702 # the host libraries and the host tools (which may be a cross compiler)
2704 target_libraries="target-libgcc \
2705 target-libiberty \
2706 target-libgloss \
2707 target-newlib \
2708 target-libgomp \
2709 target-libstdc++-v3 \
2710 target-libmudflap \
2711 target-libssp \
2712 target-libquadmath \
2713 target-libgfortran \
2714 target-boehm-gc \
2715 ${libgcj} \
2716 target-libobjc \
2717 target-libupc \
2718 target-libada \
2719 target-libgo"
2721 # these tools are built using the target libraries, and are intended to
2722 # run only in the target environment
2724 # note: any program that *uses* libraries that are in the "target_libraries"
2725 # list belongs in this list. those programs are also very likely
2726 # candidates for the "native_only" list which follows
2728 target_tools="target-examples target-groff target-gperf target-rda"
2730 ################################################################################
2732 ## All tools belong in one of the four categories, and are assigned above
2733 ## We assign ${configdirs} this way to remove all embedded newlines. This
2734 ## is important because configure will choke if they ever get through.
2735 ## ${configdirs} is directories we build using the host tools.
2736 ## ${target_configdirs} is directories we build using the target tools.
2737 configdirs=`echo ${host_libs} ${host_tools}`
2738 target_configdirs=`echo ${target_libraries} ${target_tools}`
2739 build_configdirs=`echo ${build_libs} ${build_tools}`
2743 ################################################################################
2745 srcname="gnu development package"
2747 # This gets set non-empty for some net releases of packages.
2748 appdirs=""
2750 # Define is_cross_compiler to save on calls to 'test'.
2751 is_cross_compiler=
2752 if test x"${host}" = x"${target}" ; then
2753 is_cross_compiler=no
2754 else
2755 is_cross_compiler=yes
2758 # Find the build and target subdir names.
2760 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2761 # have matching libraries, they should use host libraries: Makefile.tpl
2762 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2763 # However, they still use the build modules, because the corresponding
2764 # host modules (e.g. bison) are only built for the host when bootstrap
2765 # finishes. So:
2766 # - build_subdir is where we find build modules, and never changes.
2767 # - build_libsubdir is where we find build libraries, and can be overridden.
2769 # Prefix 'build-' so this never conflicts with target_subdir.
2770 build_subdir="build-${build_noncanonical}"
2772 # Check whether --with-build-libsubdir was given.
2773 if test "${with_build_libsubdir+set}" = set; then :
2774 withval=$with_build_libsubdir; build_libsubdir="$withval"
2775 else
2776 build_libsubdir="$build_subdir"
2779 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2780 if ( test $srcdir = . && test -d gcc ) \
2781 || test -d $srcdir/../host-${host_noncanonical}; then
2782 host_subdir="host-${host_noncanonical}"
2783 else
2784 host_subdir=.
2786 # No prefix.
2787 target_subdir=${target_noncanonical}
2789 # Be sure to cover against remnants of an in-tree build.
2790 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2791 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2792 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2795 # Skipdirs are removed silently.
2796 skipdirs=
2797 # Noconfigdirs are removed loudly.
2798 noconfigdirs=""
2800 use_gnu_ld=
2801 # Make sure we don't let GNU ld be added if we didn't want it.
2802 if test x$with_gnu_ld = xno ; then
2803 use_gnu_ld=no
2804 noconfigdirs="$noconfigdirs ld gold"
2807 use_gnu_as=
2808 # Make sure we don't let GNU as be added if we didn't want it.
2809 if test x$with_gnu_as = xno ; then
2810 use_gnu_as=no
2811 noconfigdirs="$noconfigdirs gas"
2814 use_included_zlib=
2815 # Make sure we don't let ZLIB be added if we didn't want it.
2816 if test x$with_system_zlib = xyes ; then
2817 use_included_zlib=no
2818 noconfigdirs="$noconfigdirs zlib"
2821 # some tools are so dependent upon X11 that if we're not building with X,
2822 # it's not even worth trying to configure, much less build, that tool.
2824 case ${with_x} in
2825 yes | "") ;; # the default value for this tree is that X11 is available
2827 skipdirs="${skipdirs} tk itcl libgui"
2828 # We won't be able to build gdbtk without X.
2829 enable_gdbtk=no
2831 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2832 esac
2834 # Some tools are only suitable for building in a "native" situation.
2835 # Remove these if host!=target.
2836 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"
2838 # Similarly, some are only suitable for cross toolchains.
2839 # Remove these if host=target.
2840 cross_only="target-libgloss target-newlib target-opcodes"
2842 case $is_cross_compiler in
2843 no) skipdirs="${skipdirs} ${cross_only}" ;;
2844 yes) skipdirs="${skipdirs} ${native_only}" ;;
2845 esac
2847 # If both --with-headers and --with-libs are specified, default to
2848 # --without-newlib.
2849 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2850 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2851 if test x"${with_newlib}" = x ; then
2852 with_newlib=no
2856 # Recognize --with-newlib/--without-newlib.
2857 case ${with_newlib} in
2858 no) skipdirs="${skipdirs} target-newlib" ;;
2859 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2860 esac
2862 # Handle --enable-gold, --enable-ld.
2863 # --disable-gold [--enable-ld]
2864 # Build only ld. Default option.
2865 # --enable-gold [--enable-ld]
2866 # Build both gold and ld. Install gold as "ld.gold", install ld
2867 # as "ld.bfd" and "ld".
2868 # --enable-gold=default [--enable-ld]
2869 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2870 # install ld as "ld.bfd".
2871 # --enable-gold[=default] --disable-ld
2872 # Build only gold, which is then installed as both "ld.gold" and "ld".
2873 # --enable-gold --enable-ld=default
2874 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2875 # and ld.bfd).
2876 # In other words, ld is default
2877 # --enable-gold=default --enable-ld=default
2878 # Error.
2880 default_ld=
2881 # Check whether --enable-gold was given.
2882 if test "${enable_gold+set}" = set; then :
2883 enableval=$enable_gold; ENABLE_GOLD=$enableval
2884 else
2885 ENABLE_GOLD=no
2888 case "${ENABLE_GOLD}" in
2889 yes|default)
2890 # Check for ELF target.
2891 is_elf=no
2892 case "${target}" in
2893 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2894 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2895 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2896 case "${target}" in
2897 *-*-linux*aout* | *-*-linux*oldld*)
2900 is_elf=yes
2902 esac
2903 esac
2905 if test "$is_elf" = "yes"; then
2906 # Check for target supported by gold.
2907 case "${target}" in
2908 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2909 configdirs="$configdirs gold"
2910 if test x${ENABLE_GOLD} = xdefault; then
2911 default_ld=gold
2913 ENABLE_GOLD=yes
2915 esac
2921 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2923 esac
2925 # Check whether --enable-ld was given.
2926 if test "${enable_ld+set}" = set; then :
2927 enableval=$enable_ld; ENABLE_LD=$enableval
2928 else
2929 ENABLE_LD=yes
2933 case "${ENABLE_LD}" in
2934 default)
2935 if test x${default_ld} != x; then
2936 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2939 yes)
2942 if test x${ENABLE_GOLD} != xyes; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2944 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2946 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2949 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2951 esac
2953 # Configure extra directories which are host specific
2955 case "${host}" in
2956 *-cygwin*)
2957 configdirs="$configdirs libtermcap" ;;
2958 esac
2960 # A target can indicate whether a language isn't supported for some reason.
2961 # Only spaces may be used in this macro; not newlines or tabs.
2962 unsupported_languages=
2964 # Remove more programs from consideration, based on the host or
2965 # target this usually means that a port of the program doesn't
2966 # exist yet.
2968 case "${host}" in
2969 hppa*64*-*-*)
2970 noconfigdirs="$noconfigdirs byacc"
2972 i[3456789]86-*-vsta)
2973 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2975 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2976 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2978 x86_64-*-mingw*)
2979 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2981 i[3456789]86-*-mingw32*)
2982 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2983 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2985 i[3456789]86-*-beos*)
2986 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2988 *-*-cygwin*)
2989 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2991 *-*-netbsd*)
2992 noconfigdirs="$noconfigdirs rcs"
2994 ppc*-*-pe)
2995 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2997 powerpc-*-beos*)
2998 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
3000 esac
3003 # Check whether --enable-libada was given.
3004 if test "${enable_libada+set}" = set; then :
3005 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3006 else
3007 ENABLE_LIBADA=yes
3010 if test "${ENABLE_LIBADA}" != "yes" ; then
3011 noconfigdirs="$noconfigdirs gnattools"
3014 # Check whether --enable-libssp was given.
3015 if test "${enable_libssp+set}" = set; then :
3016 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3017 else
3018 ENABLE_LIBSSP=yes
3022 # Save it here so that, even in case of --enable-libgcj, if the Java
3023 # front-end isn't enabled, we still get libgcj disabled.
3024 libgcj_saved=$libgcj
3025 case $enable_libgcj in
3026 yes)
3027 # If we reset it here, it won't get added to noconfigdirs in the
3028 # target-specific build rules, so it will be forcibly enabled
3029 # (unless the Java language itself isn't enabled).
3030 libgcj=
3033 # Make sure we get it printed in the list of not supported target libs.
3034 # Don't disable libffi, though, other languages use it.
3035 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3037 esac
3040 # Disable libmudflap on some systems.
3041 if test x$enable_libmudflap = x ; then
3042 case "${target}" in
3043 *-catamount-*)
3044 # Disable for Cray catamount machine
3045 noconfigdirs="$noconfigdirs target-libmudflap"
3047 *-cnl-*)
3048 # Disable for Cray XT CNL machine
3049 noconfigdirs="$noconfigdirs target-libmudflap"
3051 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3052 # Enable libmudflap by default in GNU and friends.
3054 *-*-freebsd*)
3055 # Enable libmudflap by default in FreeBSD.
3058 # Disable it by default everywhere else.
3059 noconfigdirs="$noconfigdirs target-libmudflap"
3061 esac
3064 # Disable libgomp on non POSIX hosted systems.
3065 if test x$enable_libgomp = x ; then
3066 # Enable libgomp by default on hosted POSIX systems.
3067 case "${target}" in
3068 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3070 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3072 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3074 *-*-darwin* | *-*-aix*)
3077 noconfigdirs="$noconfigdirs target-libgomp"
3079 esac
3082 # Default libgloss CPU subdirectory.
3083 libgloss_dir="$target_cpu"
3085 case "${target}" in
3086 *-*-chorusos)
3087 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3089 powerpc-*-darwin*)
3090 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3091 noconfigdirs="$noconfigdirs sim target-rda"
3093 i[3456789]86-*-darwin*)
3094 noconfigdirs="$noconfigdirs ld gprof"
3095 noconfigdirs="$noconfigdirs sim target-rda"
3097 x86_64-*-darwin[912]*)
3098 noconfigdirs="$noconfigdirs ld gas gprof"
3099 noconfigdirs="$noconfigdirs sim target-rda"
3101 *-*-darwin*)
3102 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3103 noconfigdirs="$noconfigdirs sim target-rda"
3104 noconfigdirs="$noconfigdirs ${libgcj}"
3106 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3107 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3109 *-*-freebsd*)
3110 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3111 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3112 && test -f /usr/local/include/gmp.h; then
3113 with_gmp=/usr/local
3116 # Skip some stuff that's unsupported on some FreeBSD configurations.
3117 case "${target}" in
3118 i*86-*-*) ;;
3119 alpha*-*-*) ;;
3120 x86_64-*-*) ;;
3122 noconfigdirs="$noconfigdirs ${libgcj}"
3124 esac
3126 *-*-kaos*)
3127 # Remove unsupported stuff on all kaOS configurations.
3128 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3129 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3130 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3131 noconfigdirs="$noconfigdirs target-libgloss"
3133 *-*-netbsd*)
3134 # Skip some stuff on all NetBSD configurations.
3135 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3137 # Skip some stuff that's unsupported on some NetBSD configurations.
3138 case "${target}" in
3139 i*86-*-netbsdelf*) ;;
3140 arm*-*-netbsdelf*) ;;
3142 noconfigdirs="$noconfigdirs ${libgcj}"
3144 esac
3146 *-*-netware*)
3147 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3149 *-*-rtems*)
3150 skipdirs="${skipdirs} target-libiberty"
3151 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3153 # The tpf target doesn't support gdb yet.
3154 *-*-tpf*)
3155 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3157 *-*-uclinux*)
3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3160 *-*-vxworks*)
3161 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3163 alpha*-dec-osf*)
3164 # ld works, but does not support shared libraries.
3165 # newlib is not 64 bit ready. I'm not sure about fileutils.
3166 # gas doesn't generate exception information.
3167 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3169 alpha*-*-*vms*)
3170 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3172 alpha*-*-linux*)
3173 # newlib is not 64 bit ready
3174 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3176 alpha*-*-*)
3177 # newlib is not 64 bit ready
3178 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3180 am33_2.0-*-linux*)
3181 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3183 sh-*-linux*)
3184 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3186 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3187 noconfigdirs="$noconfigdirs ${libgcj}"
3188 noconfigdirs="$noconfigdirs target-examples"
3189 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3190 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3191 noconfigdirs="$noconfigdirs expect dejagnu"
3192 # the C++ libraries don't build on top of CE's C libraries
3193 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3194 noconfigdirs="$noconfigdirs target-newlib"
3195 case "${host}" in
3196 *-*-cygwin*) ;; # keep gdb and readline
3197 *) noconfigdirs="$noconfigdirs gdb readline"
3199 esac
3200 libgloss_dir=wince
3202 arc-*-*)
3203 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3205 arm-semi-aof )
3207 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3208 noconfigdirs="$noconfigdirs ${libgcj}"
3209 libgloss_dir=arm
3211 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3212 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3213 libgloss_dir=arm
3215 arm*-*-linux-gnueabi)
3216 noconfigdirs="$noconfigdirs target-qthreads"
3217 case ${with_newlib} in
3218 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3219 esac
3220 libgloss_dir=arm
3222 arm*-*-symbianelf*)
3223 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3224 libgloss_dir=arm
3226 arm-*-pe*)
3227 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3229 thumb-*-coff)
3230 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3232 thumb-*-elf)
3233 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3235 thumb-*-pe)
3236 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3238 arm-*-riscix*)
3239 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3241 avr-*-*)
3242 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3244 bfin-*-*)
3245 unsupported_languages="$unsupported_languages java"
3246 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3247 if test x${is_cross_compiler} != xno ; then
3248 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3251 c4x-*-* | tic4x-*-*)
3252 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3254 c54x*-*-* | tic54x-*-*)
3255 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3257 cr16-*-*)
3258 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3260 cris-*-* | crisv32-*-*)
3261 unsupported_languages="$unsupported_languages java"
3262 case "${target}" in
3263 *-*-aout)
3264 unsupported_languages="$unsupported_languages fortran"
3265 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3266 *-*-elf)
3267 noconfigdirs="$noconfigdirs target-boehm-gc";;
3268 *-*-linux*)
3269 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3271 unsupported_languages="$unsupported_languages fortran"
3272 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3273 esac
3274 libgloss_dir=cris
3276 crx-*-*)
3277 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3279 d10v-*-*)
3280 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3282 d30v-*-*)
3283 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3285 ep9312-*-elf | ep9312-*-coff)
3286 libgloss_dir=arm
3288 fr30-*-elf*)
3289 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3291 frv-*-*)
3292 noconfigdirs="$noconfigdirs ${libgcj}"
3294 moxie-*-*)
3295 noconfigdirs="$noconfigdirs ${libgcj}"
3296 noconfigdirs="$noconfigdirs gprof"
3298 h8300*-*-*)
3299 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3301 h8500-*-*)
3302 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3304 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3306 hppa*64*-*-linux* | parisc*64*-*-linux*)
3307 # In this case, it's because the hppa64-linux target is for
3308 # the kernel only at this point and has no libc, and thus no
3309 # headers, crt*.o, etc., all of which are needed by these.
3310 noconfigdirs="$noconfigdirs target-zlib"
3312 parisc*-*-linux* | hppa*-*-linux*)
3314 hppa*-*-*elf* | \
3315 hppa*-*-lites* | \
3316 hppa*-*-openbsd* | \
3317 hppa*64*-*-*)
3318 noconfigdirs="$noconfigdirs ${libgcj}"
3320 hppa*-hp-hpux11*)
3321 noconfigdirs="$noconfigdirs ld shellutils"
3323 hppa*-*-pro*)
3324 libgloss_dir=pa
3326 hppa*-*-*)
3327 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3328 # build on HP-UX 10.20.
3329 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3331 i960-*-*)
3332 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3334 ia64*-*-elf*)
3335 # No gdb support yet.
3336 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3338 ia64*-**-hpux*)
3339 # No gdb or ld support yet.
3340 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3342 ia64*-*-*vms*)
3343 # No gdb or ld support yet.
3344 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3346 i370-*-opened*)
3348 i[3456789]86-*-coff | i[3456789]86-*-elf)
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3350 libgloss_dir=i386
3352 i[3456789]86-*-linux*)
3353 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3354 # not build java stuff by default.
3355 case "${target}" in
3356 *-*-*libc1*)
3357 noconfigdirs="$noconfigdirs ${libgcj}";;
3358 esac
3360 # This section makes it possible to build newlib natively on linux.
3361 # If we are using a cross compiler then don't configure newlib.
3362 if test x${is_cross_compiler} != xno ; then
3363 noconfigdirs="$noconfigdirs target-newlib"
3365 noconfigdirs="$noconfigdirs target-libgloss"
3366 # If we are not using a cross compiler, do configure newlib.
3367 # Note however, that newlib will only be configured in this situation
3368 # if the --with-newlib option has been given, because otherwise
3369 # 'target-newlib' will appear in skipdirs.
3371 i[3456789]86-w64-mingw*)
3372 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3374 i[3456789]86-*-mingw*)
3375 target_configdirs="$target_configdirs target-winsup"
3376 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3378 x86_64-*-mingw*)
3379 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3381 *-*-cygwin*)
3382 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3383 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3384 # always build newlib if winsup directory is present.
3385 if test -d "$srcdir/winsup/cygwin"; then
3386 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3387 elif test -d "$srcdir/newlib"; then
3388 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3391 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3392 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3394 i[3456789]86-*-pe)
3395 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3397 i[3456789]86-*-sco3.2v5*)
3398 # The linker does not yet know about weak symbols in COFF,
3399 # and is not configured to handle mixed ELF and COFF.
3400 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3402 i[3456789]86-*-sco*)
3403 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3405 i[3456789]86-*-solaris2*)
3406 noconfigdirs="$noconfigdirs target-libgloss"
3408 i[3456789]86-*-sysv4*)
3409 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3411 i[3456789]86-*-beos*)
3412 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3414 i[3456789]86-*-rdos*)
3415 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3417 m32r-*-*)
3418 noconfigdirs="$noconfigdirs ${libgcj}"
3420 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3421 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3422 libgloss_dir=m68hc11
3424 m68k-*-elf*)
3425 noconfigdirs="$noconfigdirs ${libgcj}"
3427 m68k-*-coff*)
3428 noconfigdirs="$noconfigdirs ${libgcj}"
3430 m68*-*-* | fido-*-*)
3431 libgloss_dir=m68k
3433 mcore-*-pe*)
3434 # The EPOC C++ environment does not support exceptions or rtti,
3435 # and so building libstdc++-v3 tends not to always work.
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3438 mmix-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3440 unsupported_languages="$unsupported_languages fortran java"
3442 mn10200-*-*)
3443 noconfigdirs="$noconfigdirs ${libgcj}"
3445 mn10300-*-*)
3446 noconfigdirs="$noconfigdirs ${libgcj}"
3448 mt-*-*)
3449 noconfigdirs="$noconfigdirs sim"
3451 picochip-*-*)
3452 noconfigdirs="$noconfigdirs target-libiberty"
3454 powerpc-*-aix*)
3455 # copied from rs6000-*-* entry
3456 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3458 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3459 target_configdirs="$target_configdirs target-winsup"
3460 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3461 # always build newlib.
3462 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3464 # This is temporary until we can link against shared libraries
3465 powerpcle-*-solaris*)
3466 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3467 libgloss_dir=rs6000
3469 powerpc-*-beos*)
3470 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3472 powerpc-*-eabi)
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3474 libgloss_dir=rs6000
3476 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3477 libgloss_dir=rs6000
3479 rs6000-*-lynxos*)
3480 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3482 rs6000-*-aix*)
3483 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3485 rs6000-*-*)
3486 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3488 m68k-apollo-*)
3489 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3491 microblaze*)
3492 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3494 mips*-sde-elf*)
3495 skipdirs="$skipdirs target-libiberty"
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3497 if test x$with_newlib = xyes; then
3498 noconfigdirs="$noconfigdirs gprof"
3500 libgloss_dir=mips
3502 mips*-*-irix5*)
3503 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3505 mips*-*-irix6*)
3506 # Linking libjava exceeds command-line length limits on at least
3507 # IRIX 6.2, but not on IRIX 6.5.
3508 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3509 # <oldham@codesourcery.com>
3510 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3512 mips*-*-bsd*)
3513 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3515 mips*-*-linux*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3518 mips*-*-*)
3519 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3520 libgloss_dir=mips
3522 romp-*-*)
3523 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3525 sh-*-* | sh64-*-*)
3526 case "${host}" in
3527 i[3456789]86-*-vsta) ;; # don't add gprof back in
3528 i[3456789]86-*-go32*) ;; # don't add gprof back in
3529 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3530 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3531 esac
3532 case "${target}" in
3533 sh*-*-elf)
3534 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3536 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3537 esac
3539 sparclet-*-aout* | sparc86x-*-*)
3540 libgloss_dir=sparc
3542 sparc-*-elf*)
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3545 sparc64-*-elf*)
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3547 libgloss_dir=sparc
3549 sparclite-*-*)
3550 noconfigdirs="$noconfigdirs ${libgcj}"
3551 libgloss_dir=sparc
3553 sparc-*-sunos4*)
3554 noconfigdirs="$noconfigdirs ${libgcj}"
3555 if test x${is_cross_compiler} != xno ; then
3556 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3557 else
3558 use_gnu_ld=no
3561 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3562 noconfigdirs="$noconfigdirs ${libgcj}"
3564 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3566 tic6x-*-*)
3567 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3569 v810-*-*)
3570 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3572 v850*-*-*)
3573 noconfigdirs="$noconfigdirs ${libgcj}"
3575 vax-*-vms)
3576 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3578 vax-*-*)
3579 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3581 xtensa*-*-*)
3582 noconfigdirs="$noconfigdirs ${libgcj}"
3584 ip2k-*-*)
3585 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3587 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3588 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3590 *-*-lynxos*)
3591 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3593 *-*-*)
3594 noconfigdirs="$noconfigdirs ${libgcj}"
3596 esac
3598 # If we aren't building newlib, then don't build libgloss, since libgloss
3599 # depends upon some newlib header files.
3600 case "${noconfigdirs}" in
3601 *target-libgloss*) ;;
3602 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3603 esac
3605 # Work in distributions that contain no compiler tools, like Autoconf.
3606 tentative_cc=""
3607 host_makefile_frag=/dev/null
3608 if test -d ${srcdir}/config ; then
3609 case "${host}" in
3610 m68k-hp-hpux*)
3611 # Avoid "too much defining" errors from HPUX compiler.
3612 tentative_cc="cc -Wp,-H256000"
3613 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3614 # If it's HP/UX ar, this should be harmless.
3615 RANLIB="ar ts"
3617 m68k-apollo-sysv*)
3618 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3620 m68k-apollo-bsd*)
3621 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3622 # chokes on bfd, the compiler won't let you assign integers to enums, and
3623 # other problems. Defining CC to gcc is a questionable way to say "don't use
3624 # the apollo compiler" (the preferred version of GCC could be called cc,
3625 # or whatever), but I'm not sure leaving CC as cc is any better...
3626 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3627 # Used to have BISON=yacc.
3628 tentative_cc=gcc
3630 m88k-dg-dgux*)
3631 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3633 m88k-harris-cxux*)
3634 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3635 tentative_cc="cc -Xa"
3636 host_makefile_frag="config/mh-cxux"
3638 m88k-motorola-sysv*)
3640 mips*-dec-ultrix*)
3641 tentative_cc="cc -Wf,-XNg1000"
3642 host_makefile_frag="config/mh-decstation"
3644 mips*-nec-sysv4*)
3645 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3646 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3647 host_makefile_frag="config/mh-necv4"
3649 mips*-sgi-irix4*)
3650 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3651 # environment. Also bump switch table size so that cp-parse will
3652 # compile. Bump string length limit so linker builds.
3653 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3655 mips*-*-sysv4*)
3656 host_makefile_frag="config/mh-sysv4"
3658 mips*-*-sysv*)
3659 # This is for a MIPS running RISC/os 4.52C.
3661 # This is needed for GDB, but needs to be in the top-level make because
3662 # if a library is compiled with the bsd headers and gets linked with the
3663 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3664 # a different size).
3665 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3666 # known except to select the sysv environment. Could we use /proc instead?
3667 # These "sysv environments" and "bsd environments" often end up being a pain.
3669 # This is not part of CFLAGS because perhaps not all C compilers have this
3670 # option.
3671 tentative_cc="cc -systype sysv"
3673 i370-ibm-opened*)
3674 tentative_cc="c89"
3676 i[3456789]86-*-sysv5*)
3677 host_makefile_frag="config/mh-sysv5"
3679 i[3456789]86-*-dgux*)
3680 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3681 host_makefile_frag="config/mh-dgux386"
3683 i[3456789]86-ncr-sysv4.3*)
3684 # The MetaWare compiler will generate a copyright message unless you
3685 # turn it off by adding the -Hnocopyr flag.
3686 tentative_cc="cc -Hnocopyr"
3688 i[3456789]86-ncr-sysv4*)
3689 # for an NCR 3000 (i486/SVR4) system.
3690 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3691 # This compiler not only emits obnoxious copyright messages every time
3692 # you run it, but it chokes and dies on a whole bunch of GNU source
3693 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3694 tentative_cc="/usr/ccs/ATT/cc"
3695 host_makefile_frag="config/mh-ncr3000"
3697 i[3456789]86-*-sco3.2v5*)
3699 i[3456789]86-*-sco*)
3700 # The native C compiler botches some simple uses of const. Unfortunately,
3701 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3702 tentative_cc="cc -Dconst="
3703 host_makefile_frag="config/mh-sco"
3705 i[3456789]86-*-udk*)
3706 host_makefile_frag="config/mh-sysv5"
3708 i[3456789]86-*-solaris2*)
3709 host_makefile_frag="config/mh-sysv4"
3711 i[3456789]86-*-msdosdjgpp*)
3712 host_makefile_frag="config/mh-djgpp"
3714 *-cygwin*)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3717 $as_echo_n "checking to see if cat works as expected... " >&6; }
3718 echo a >cygwin-cat-check
3719 if test `cat cygwin-cat-check` = a ; then
3720 rm cygwin-cat-check
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3723 else
3724 rm cygwin-cat-check
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 as_fn_error "The cat command does not ignore carriage return characters.
3728 Please either mount the build directory in binary mode or run the following
3729 commands before running any configure script:
3730 set -o igncr
3731 export SHELLOPTS
3732 " "$LINENO" 5
3735 host_makefile_frag="config/mh-cygwin"
3737 *-mingw*)
3738 host_makefile_frag="config/mh-mingw"
3740 *-interix*)
3741 host_makefile_frag="config/mh-interix"
3743 vax-*-ultrix2*)
3744 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3745 tentative_cc=gcc
3747 *-*-solaris2*)
3748 host_makefile_frag="config/mh-solaris"
3750 m68k-sun-sunos*)
3751 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3752 # without overflowing the jump tables (-J says to use a 32 bit table)
3753 tentative_cc="cc -J"
3755 hppa*-hp-hpux10*)
3756 tentative_cc="cc -Wp,-H256000"
3757 host_makefile_frag="config/mh-pa-hpux10"
3759 hppa*-hp-hpux* | hppa*-*-hiux*)
3760 tentative_cc="cc -Wp,-H256000"
3761 host_makefile_frag="config/mh-pa"
3763 hppa*-*)
3764 host_makefile_frag="config/mh-pa"
3766 *-hp-hpux* | *-*-hiux*)
3767 tentative_cc="cc -Wp,-H256000"
3769 rs6000-*-lynxos*)
3770 # /bin/cc is less than useful for our purposes. Always use GCC
3771 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3772 host_makefile_frag="config/mh-lynxrs6k"
3774 *-*-darwin*)
3775 host_makefile_frag="config/mh-darwin"
3777 powerpc-*-aix*)
3778 host_makefile_frag="config/mh-ppc-aix"
3780 rs6000-*-aix*)
3781 host_makefile_frag="config/mh-ppc-aix"
3783 *-*-lynxos*)
3784 # /bin/cc is less than useful for our purposes. Always use GCC
3785 tentative_cc="/bin/gcc"
3787 *-*-sysv4*)
3788 host_makefile_frag="config/mh-sysv4"
3790 # This is placed last to prevent interfering with the cases above.
3791 i[3456789]86-*-*)
3792 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3793 host_makefile_frag="config/mh-x86omitfp"
3795 esac
3798 # If we aren't going to be using gcc, see if we can extract a definition
3799 # of CC from the fragment.
3800 # Actually, use the 'pre-extracted' version above.
3801 if test -z "${CC}" && test "${build}" = "${host}" ; then
3802 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3803 found=
3804 for dir in $PATH; do
3805 test -z "$dir" && dir=.
3806 if test -f $dir/gcc; then
3807 found=yes
3808 break
3810 done
3811 IFS="$save_ifs"
3812 if test -z "${found}" && test -n "${tentative_cc}" ; then
3813 CC=$tentative_cc
3817 if test "${build}" != "${host}" ; then
3818 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3819 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3820 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3821 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3822 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3823 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3824 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3825 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3826 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3827 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3828 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3829 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3830 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3831 else
3832 AR_FOR_BUILD="\$(AR)"
3833 AS_FOR_BUILD="\$(AS)"
3834 CC_FOR_BUILD="\$(CC)"
3835 CXX_FOR_BUILD="\$(CXX)"
3836 GCJ_FOR_BUILD="\$(GCJ)"
3837 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3838 GOC_FOR_BUILD="\$(GOC)"
3839 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3840 LD_FOR_BUILD="\$(LD)"
3841 NM_FOR_BUILD="\$(NM)"
3842 RANLIB_FOR_BUILD="\$(RANLIB)"
3843 WINDRES_FOR_BUILD="\$(WINDRES)"
3844 WINDMC_FOR_BUILD="\$(WINDMC)"
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_CC+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3876 IFS=$as_save_IFS
3880 CC=$ac_cv_prog_CC
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test -z "$ac_cv_prog_CC"; then
3892 ac_ct_CC=$CC
3893 # Extract the first word of "gcc", so it can be a program name with args.
3894 set dummy gcc; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$ac_ct_CC"; then
3901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_ac_ct_CC="gcc"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3921 if test -n "$ac_ct_CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3923 $as_echo "$ac_ct_CC" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3929 if test "x$ac_ct_CC" = x; then
3930 CC=""
3931 else
3932 case $cross_compiling:$ac_tool_warned in
3933 yes:)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938 CC=$ac_ct_CC
3940 else
3941 CC="$ac_cv_prog_CC"
3944 if test -z "$CC"; then
3945 if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3947 set dummy ${ac_tool_prefix}cc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_CC="${ac_tool_prefix}cc"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3985 if test -z "$CC"; then
3986 # Extract the first word of "cc", so it can be a program name with args.
3987 set dummy cc; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if test "${ac_cv_prog_CC+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 if test -n "$CC"; then
3994 ac_cv_prog_CC="$CC" # Let the user override the test.
3995 else
3996 ac_prog_rejected=no
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4005 ac_prog_rejected=yes
4006 continue
4008 ac_cv_prog_CC="cc"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4012 done
4013 done
4014 IFS=$as_save_IFS
4016 if test $ac_prog_rejected = yes; then
4017 # We found a bogon in the path, so make sure we never use it.
4018 set dummy $ac_cv_prog_CC
4019 shift
4020 if test $# != 0; then
4021 # We chose a different compiler from the bogus one.
4022 # However, it has the same basename, so the bogon will be chosen
4023 # first if we set CC to just the basename; use the full file name.
4024 shift
4025 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4030 CC=$ac_cv_prog_CC
4031 if test -n "$CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4033 $as_echo "$CC" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4041 if test -z "$CC"; then
4042 if test -n "$ac_tool_prefix"; then
4043 for ac_prog in cl.exe
4045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if test "${ac_cv_prog_CC+set}" = set; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 if test -n "$CC"; then
4053 ac_cv_prog_CC="$CC" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 break 2
4066 done
4067 done
4068 IFS=$as_save_IFS
4072 CC=$ac_cv_prog_CC
4073 if test -n "$CC"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4075 $as_echo "$CC" >&6; }
4076 else
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4082 test -n "$CC" && break
4083 done
4085 if test -z "$CC"; then
4086 ac_ct_CC=$CC
4087 for ac_prog in cl.exe
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$ac_ct_CC"; then
4097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_ac_ct_CC="$ac_prog"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4110 done
4111 done
4112 IFS=$as_save_IFS
4116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4117 if test -n "$ac_ct_CC"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4119 $as_echo "$ac_ct_CC" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4126 test -n "$ac_ct_CC" && break
4127 done
4129 if test "x$ac_ct_CC" = x; then
4130 CC=""
4131 else
4132 case $cross_compiling:$ac_tool_warned in
4133 yes:)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136 ac_tool_warned=yes ;;
4137 esac
4138 CC=$ac_ct_CC
4145 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error "no acceptable C compiler found in \$PATH
4148 See \`config.log' for more details." "$LINENO" 5; }
4150 # Provide some information about the compiler.
4151 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4152 set X $ac_compile
4153 ac_compiler=$2
4154 for ac_option in --version -v -V -qversion; do
4155 { { ac_try="$ac_compiler $ac_option >&5"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4161 $as_echo "$ac_try_echo"; } >&5
4162 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4163 ac_status=$?
4164 if test -s conftest.err; then
4165 sed '10a\
4166 ... rest of stderr output deleted ...
4167 10q' conftest.err >conftest.er1
4168 cat conftest.er1 >&5
4169 rm -f conftest.er1 conftest.err
4171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4172 test $ac_status = 0; }
4173 done
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 main ()
4183 return 0;
4185 _ACEOF
4186 ac_clean_files_save=$ac_clean_files
4187 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4188 # Try to create an executable without -o first, disregard a.out.
4189 # It will help us diagnose broken compilers, and finding out an intuition
4190 # of exeext.
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4192 $as_echo_n "checking for C compiler default output file name... " >&6; }
4193 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4195 # The possible output files:
4196 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4198 ac_rmfiles=
4199 for ac_file in $ac_files
4201 case $ac_file in
4202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4203 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4204 esac
4205 done
4206 rm -f $ac_rmfiles
4208 if { { ac_try="$ac_link_default"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_link_default") 2>&5
4216 ac_status=$?
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }; then :
4219 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4220 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4221 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4222 # so that the user can short-circuit this test for compilers unknown to
4223 # Autoconf.
4224 for ac_file in $ac_files ''
4226 test -f "$ac_file" || continue
4227 case $ac_file in
4228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4230 [ab].out )
4231 # We found the default executable, but exeext='' is most
4232 # certainly right.
4233 break;;
4234 *.* )
4235 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4236 then :; else
4237 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239 # We set ac_cv_exeext here because the later test for it is not
4240 # safe: cross compilers may not add the suffix if given an `-o'
4241 # argument, so we may need to know it at that point already.
4242 # Even if this section looks crufty: it has the advantage of
4243 # actually working.
4244 break;;
4246 break;;
4247 esac
4248 done
4249 test "$ac_cv_exeext" = no && ac_cv_exeext=
4251 else
4252 ac_file=''
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4255 $as_echo "$ac_file" >&6; }
4256 if test -z "$ac_file"; then :
4257 $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 { as_fn_set_status 77
4263 as_fn_error "C compiler cannot create executables
4264 See \`config.log' for more details." "$LINENO" 5; }; }
4266 ac_exeext=$ac_cv_exeext
4268 # Check that the compiler produces executables we can run. If not, either
4269 # the compiler is broken, or we cross compile.
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4271 $as_echo_n "checking whether the C compiler works... " >&6; }
4272 # If not cross compiling, check that we can run a simple program.
4273 if test "$cross_compiling" != yes; then
4274 if { ac_try='./$ac_file'
4275 { { case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }; }; then
4285 cross_compiling=no
4286 else
4287 if test "$cross_compiling" = maybe; then
4288 cross_compiling=yes
4289 else
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "cannot run C compiled programs.
4293 If you meant to cross compile, use \`--host'.
4294 See \`config.log' for more details." "$LINENO" 5; }
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4299 $as_echo "yes" >&6; }
4301 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4302 ac_clean_files=$ac_clean_files_save
4303 # Check that the compiler produces executables we can run. If not, either
4304 # the compiler is broken, or we cross compile.
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4306 $as_echo_n "checking whether we are cross compiling... " >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4308 $as_echo "$cross_compiling" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4311 $as_echo_n "checking for suffix of executables... " >&6; }
4312 if { { ac_try="$ac_link"
4313 case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319 (eval "$ac_link") 2>&5
4320 ac_status=$?
4321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322 test $ac_status = 0; }; then :
4323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4324 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4325 # work properly (i.e., refer to `conftest.exe'), while it won't with
4326 # `rm'.
4327 for ac_file in conftest.exe conftest conftest.*; do
4328 test -f "$ac_file" || continue
4329 case $ac_file in
4330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4332 break;;
4333 * ) break;;
4334 esac
4335 done
4336 else
4337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4339 as_fn_error "cannot compute suffix of executables: cannot compile and link
4340 See \`config.log' for more details." "$LINENO" 5; }
4342 rm -f conftest$ac_cv_exeext
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4344 $as_echo "$ac_cv_exeext" >&6; }
4346 rm -f conftest.$ac_ext
4347 EXEEXT=$ac_cv_exeext
4348 ac_exeext=$EXEEXT
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4350 $as_echo_n "checking for suffix of object files... " >&6; }
4351 if test "${ac_cv_objext+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4358 main ()
4362 return 0;
4364 _ACEOF
4365 rm -f conftest.o conftest.obj
4366 if { { ac_try="$ac_compile"
4367 case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370 esac
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_compile") 2>&5
4374 ac_status=$?
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }; then :
4377 for ac_file in conftest.o conftest.obj conftest.*; do
4378 test -f "$ac_file" || continue;
4379 case $ac_file in
4380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4381 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4382 break;;
4383 esac
4384 done
4385 else
4386 $as_echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4391 as_fn_error "cannot compute suffix of object files: cannot compile
4392 See \`config.log' for more details." "$LINENO" 5; }
4394 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4397 $as_echo "$ac_cv_objext" >&6; }
4398 OBJEXT=$ac_cv_objext
4399 ac_objext=$OBJEXT
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4401 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4402 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4409 main ()
4411 #ifndef __GNUC__
4412 choke me
4413 #endif
4416 return 0;
4418 _ACEOF
4419 if ac_fn_c_try_compile "$LINENO"; then :
4420 ac_compiler_gnu=yes
4421 else
4422 ac_compiler_gnu=no
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4429 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4430 if test $ac_compiler_gnu = yes; then
4431 GCC=yes
4432 else
4433 GCC=
4435 ac_test_CFLAGS=${CFLAGS+set}
4436 ac_save_CFLAGS=$CFLAGS
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4438 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4439 if test "${ac_cv_prog_cc_g+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 ac_save_c_werror_flag=$ac_c_werror_flag
4443 ac_c_werror_flag=yes
4444 ac_cv_prog_cc_g=no
4445 CFLAGS="-g"
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4450 main ()
4454 return 0;
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458 ac_cv_prog_cc_g=yes
4459 else
4460 CFLAGS=""
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 :
4474 else
4475 ac_c_werror_flag=$ac_save_c_werror_flag
4476 CFLAGS="-g"
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4481 main ()
4485 return 0;
4487 _ACEOF
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_prog_cc_g=yes
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 ac_c_werror_flag=$ac_save_c_werror_flag
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4499 $as_echo "$ac_cv_prog_cc_g" >&6; }
4500 if test "$ac_test_CFLAGS" = set; then
4501 CFLAGS=$ac_save_CFLAGS
4502 elif test $ac_cv_prog_cc_g = yes; then
4503 if test "$GCC" = yes; then
4504 CFLAGS="-g -O2"
4505 else
4506 CFLAGS="-g"
4508 else
4509 if test "$GCC" = yes; then
4510 CFLAGS="-O2"
4511 else
4512 CFLAGS=
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4516 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4517 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 ac_cv_prog_cc_c89=no
4521 ac_save_CC=$CC
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <stdarg.h>
4525 #include <stdio.h>
4526 #include <sys/types.h>
4527 #include <sys/stat.h>
4528 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4529 struct buf { int x; };
4530 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4531 static char *e (p, i)
4532 char **p;
4533 int i;
4535 return p[i];
4537 static char *f (char * (*g) (char **, int), char **p, ...)
4539 char *s;
4540 va_list v;
4541 va_start (v,p);
4542 s = g (p, va_arg (v,int));
4543 va_end (v);
4544 return s;
4547 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4548 function prototypes and stuff, but not '\xHH' hex character constants.
4549 These don't provoke an error unfortunately, instead are silently treated
4550 as 'x'. The following induces an error, until -std is added to get
4551 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4552 array size at least. It's necessary to write '\x00'==0 to get something
4553 that's true only with -std. */
4554 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4556 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4557 inside strings and character constants. */
4558 #define FOO(x) 'x'
4559 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4561 int test (int i, double x);
4562 struct s1 {int (*f) (int a);};
4563 struct s2 {int (*f) (double a);};
4564 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4565 int argc;
4566 char **argv;
4568 main ()
4570 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4572 return 0;
4574 _ACEOF
4575 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4576 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4578 CC="$ac_save_CC $ac_arg"
4579 if ac_fn_c_try_compile "$LINENO"; then :
4580 ac_cv_prog_cc_c89=$ac_arg
4582 rm -f core conftest.err conftest.$ac_objext
4583 test "x$ac_cv_prog_cc_c89" != "xno" && break
4584 done
4585 rm -f conftest.$ac_ext
4586 CC=$ac_save_CC
4589 # AC_CACHE_VAL
4590 case "x$ac_cv_prog_cc_c89" in
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4593 $as_echo "none needed" >&6; } ;;
4594 xno)
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4596 $as_echo "unsupported" >&6; } ;;
4598 CC="$CC $ac_cv_prog_cc_c89"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4600 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4601 esac
4602 if test "x$ac_cv_prog_cc_c89" != xno; then :
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612 ac_ext=cpp
4613 ac_cpp='$CXXCPP $CPPFLAGS'
4614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4617 if test -z "$CXX"; then
4618 if test -n "$CCC"; then
4619 CXX=$CCC
4620 else
4621 if test -n "$ac_tool_prefix"; then
4622 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_CXX+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$CXX"; then
4632 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4645 done
4646 done
4647 IFS=$as_save_IFS
4651 CXX=$ac_cv_prog_CXX
4652 if test -n "$CXX"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4654 $as_echo "$CXX" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4661 test -n "$CXX" && break
4662 done
4664 if test -z "$CXX"; then
4665 ac_ct_CXX=$CXX
4666 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4668 # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$ac_ct_CXX"; then
4676 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CXX="$ac_prog"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4696 if test -n "$ac_ct_CXX"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4698 $as_echo "$ac_ct_CXX" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4705 test -n "$ac_ct_CXX" && break
4706 done
4708 if test "x$ac_ct_CXX" = x; then
4709 CXX="g++"
4710 else
4711 case $cross_compiling:$ac_tool_warned in
4712 yes:)
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 CXX=$ac_ct_CXX
4723 # Provide some information about the compiler.
4724 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4725 set X $ac_compile
4726 ac_compiler=$2
4727 for ac_option in --version -v -V -qversion; do
4728 { { ac_try="$ac_compiler $ac_option >&5"
4729 case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4732 esac
4733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4734 $as_echo "$ac_try_echo"; } >&5
4735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4736 ac_status=$?
4737 if test -s conftest.err; then
4738 sed '10a\
4739 ... rest of stderr output deleted ...
4740 10q' conftest.err >conftest.er1
4741 cat conftest.er1 >&5
4742 rm -f conftest.er1 conftest.err
4744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4745 test $ac_status = 0; }
4746 done
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4749 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4750 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4757 main ()
4759 #ifndef __GNUC__
4760 choke me
4761 #endif
4764 return 0;
4766 _ACEOF
4767 if ac_fn_cxx_try_compile "$LINENO"; then :
4768 ac_compiler_gnu=yes
4769 else
4770 ac_compiler_gnu=no
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4777 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4778 if test $ac_compiler_gnu = yes; then
4779 GXX=yes
4780 else
4781 GXX=
4783 ac_test_CXXFLAGS=${CXXFLAGS+set}
4784 ac_save_CXXFLAGS=$CXXFLAGS
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4786 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4787 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4791 ac_cxx_werror_flag=yes
4792 ac_cv_prog_cxx_g=no
4793 CXXFLAGS="-g"
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4798 main ()
4802 return 0;
4804 _ACEOF
4805 if ac_fn_cxx_try_compile "$LINENO"; then :
4806 ac_cv_prog_cxx_g=yes
4807 else
4808 CXXFLAGS=""
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 :
4822 else
4823 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4824 CXXFLAGS="-g"
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4829 main ()
4833 return 0;
4835 _ACEOF
4836 if ac_fn_cxx_try_compile "$LINENO"; then :
4837 ac_cv_prog_cxx_g=yes
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4847 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4848 if test "$ac_test_CXXFLAGS" = set; then
4849 CXXFLAGS=$ac_save_CXXFLAGS
4850 elif test $ac_cv_prog_cxx_g = yes; then
4851 if test "$GXX" = yes; then
4852 CXXFLAGS="-g -O2"
4853 else
4854 CXXFLAGS="-g"
4856 else
4857 if test "$GXX" = yes; then
4858 CXXFLAGS="-O2"
4859 else
4860 CXXFLAGS=
4863 ac_ext=c
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4870 # We must set the default linker to the linker used by gcc for the correct
4871 # operation of libtool. If LD is not defined and we are using gcc, try to
4872 # set the LD default to the ld used by gcc.
4873 if test -z "$LD"; then
4874 if test "$GCC" = yes; then
4875 case $build in
4876 *-*-mingw*)
4877 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4879 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4880 esac
4881 case $gcc_prog_ld in
4882 # Accept absolute paths.
4883 [\\/]* | [A-Za-z]:[\\/]*)
4884 LD="$gcc_prog_ld" ;;
4885 esac
4892 if test -n "$ac_tool_prefix"; then
4893 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4894 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$GNATBIND"; then
4901 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4920 GNATBIND=$ac_cv_prog_GNATBIND
4921 if test -n "$GNATBIND"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4923 $as_echo "$GNATBIND" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4931 if test -z "$ac_cv_prog_GNATBIND"; then
4932 ac_ct_GNATBIND=$GNATBIND
4933 # Extract the first word of "gnatbind", so it can be a program name with args.
4934 set dummy gnatbind; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$ac_ct_GNATBIND"; then
4941 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4960 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4961 if test -n "$ac_ct_GNATBIND"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4963 $as_echo "$ac_ct_GNATBIND" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4969 if test "x$ac_ct_GNATBIND" = x; then
4970 GNATBIND="no"
4971 else
4972 case $cross_compiling:$ac_tool_warned in
4973 yes:)
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4976 ac_tool_warned=yes ;;
4977 esac
4978 GNATBIND=$ac_ct_GNATBIND
4980 else
4981 GNATBIND="$ac_cv_prog_GNATBIND"
4984 if test -n "$ac_tool_prefix"; then
4985 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4986 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 if test -n "$GNATMAKE"; then
4993 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5006 done
5007 done
5008 IFS=$as_save_IFS
5012 GNATMAKE=$ac_cv_prog_GNATMAKE
5013 if test -n "$GNATMAKE"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5015 $as_echo "$GNATMAKE" >&6; }
5016 else
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5023 if test -z "$ac_cv_prog_GNATMAKE"; then
5024 ac_ct_GNATMAKE=$GNATMAKE
5025 # Extract the first word of "gnatmake", so it can be a program name with args.
5026 set dummy gnatmake; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if test -n "$ac_ct_GNATMAKE"; then
5033 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5046 done
5047 done
5048 IFS=$as_save_IFS
5052 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5053 if test -n "$ac_ct_GNATMAKE"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5055 $as_echo "$ac_ct_GNATMAKE" >&6; }
5056 else
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5061 if test "x$ac_ct_GNATMAKE" = x; then
5062 GNATMAKE="no"
5063 else
5064 case $cross_compiling:$ac_tool_warned in
5065 yes:)
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068 ac_tool_warned=yes ;;
5069 esac
5070 GNATMAKE=$ac_ct_GNATMAKE
5072 else
5073 GNATMAKE="$ac_cv_prog_GNATMAKE"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5077 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5078 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 cat >conftest.adb <<EOF
5082 procedure conftest is begin null; end conftest;
5084 acx_cv_cc_gcc_supports_ada=no
5085 # There is a bug in old released versions of GCC which causes the
5086 # driver to exit successfully when the appropriate language module
5087 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5088 # Therefore we must check for the error message as well as an
5089 # unsuccessful exit.
5090 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5091 # given a .adb file, but produce no object file. So we must check
5092 # if an object file was really produced to guard against this.
5093 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5094 if test x"$errors" = x && test -f conftest.$ac_objext; then
5095 acx_cv_cc_gcc_supports_ada=yes
5097 rm -f conftest.*
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5100 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5102 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5103 have_gnat=yes
5104 else
5105 have_gnat=no
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5109 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5110 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 echo abfoo >t1
5114 echo cdfoo >t2
5115 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5116 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5117 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5119 else
5120 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5123 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5124 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5126 else
5127 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5130 rm t1 t2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5134 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5135 do_compare="$gcc_cv_prog_cmp_skip"
5139 # See if we are building gcc with C++.
5140 # Check whether --enable-build-with-cxx was given.
5141 if test "${enable_build_with_cxx+set}" = set; then :
5142 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5143 else
5144 ENABLE_BUILD_WITH_CXX=no
5148 # Used for setting $lt_cv_objdir
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5150 $as_echo_n "checking for objdir... " >&6; }
5151 if test "${lt_cv_objdir+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 rm -f .libs 2>/dev/null
5155 mkdir .libs 2>/dev/null
5156 if test -d .libs; then
5157 lt_cv_objdir=.libs
5158 else
5159 # MS-DOS does not allow filenames that begin with a dot.
5160 lt_cv_objdir=_libs
5162 rmdir .libs 2>/dev/null
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5165 $as_echo "$lt_cv_objdir" >&6; }
5166 objdir=$lt_cv_objdir
5172 cat >>confdefs.h <<_ACEOF
5173 #define LT_OBJDIR "$lt_cv_objdir/"
5174 _ACEOF
5178 # Check for GMP, MPFR and MPC
5179 gmplibs="-lmpc -lmpfr -lgmp"
5180 gmpinc=
5181 have_gmp=no
5183 # Specify a location for mpc
5184 # check for this first so it ends up on the link line before mpfr.
5186 # Check whether --with-mpc was given.
5187 if test "${with_mpc+set}" = set; then :
5188 withval=$with_mpc;
5192 # Check whether --with-mpc-include was given.
5193 if test "${with_mpc_include+set}" = set; then :
5194 withval=$with_mpc_include;
5198 # Check whether --with-mpc-lib was given.
5199 if test "${with_mpc_lib+set}" = set; then :
5200 withval=$with_mpc_lib;
5204 if test "x$with_mpc" != x; then
5205 gmplibs="-L$with_mpc/lib $gmplibs"
5206 gmpinc="-I$with_mpc/include $gmpinc"
5208 if test "x$with_mpc_include" != x; then
5209 gmpinc="-I$with_mpc_include $gmpinc"
5211 if test "x$with_mpc_lib" != x; then
5212 gmplibs="-L$with_mpc_lib $gmplibs"
5214 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5215 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5216 gmpinc='-I$$s/mpc/src '"$gmpinc"
5217 # Do not test the mpc version. Assume that it is sufficient, since
5218 # it is in the source tree, and the library has not been built yet
5219 # but it would be included on the link line in the version check below
5220 # hence making the test fail.
5221 have_gmp=yes
5224 # Specify a location for mpfr
5225 # check for this first so it ends up on the link line before gmp.
5227 # Check whether --with-mpfr-dir was given.
5228 if test "${with_mpfr_dir+set}" = set; then :
5229 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5230 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5235 # Check whether --with-mpfr was given.
5236 if test "${with_mpfr+set}" = set; then :
5237 withval=$with_mpfr;
5241 # Check whether --with-mpfr-include was given.
5242 if test "${with_mpfr_include+set}" = set; then :
5243 withval=$with_mpfr_include;
5247 # Check whether --with-mpfr-lib was given.
5248 if test "${with_mpfr_lib+set}" = set; then :
5249 withval=$with_mpfr_lib;
5253 if test "x$with_mpfr" != x; then
5254 gmplibs="-L$with_mpfr/lib $gmplibs"
5255 gmpinc="-I$with_mpfr/include $gmpinc"
5257 if test "x$with_mpfr_include" != x; then
5258 gmpinc="-I$with_mpfr_include $gmpinc"
5260 if test "x$with_mpfr_lib" != x; then
5261 gmplibs="-L$with_mpfr_lib $gmplibs"
5263 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5264 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5265 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5266 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5267 # Do not test the mpfr version. Assume that it is sufficient, since
5268 # it is in the source tree, and the library has not been built yet
5269 # but it would be included on the link line in the version check below
5270 # hence making the test fail.
5271 have_gmp=yes
5274 # Specify a location for gmp
5276 # Check whether --with-gmp-dir was given.
5277 if test "${with_gmp_dir+set}" = set; then :
5278 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5279 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5284 # Check whether --with-gmp was given.
5285 if test "${with_gmp+set}" = set; then :
5286 withval=$with_gmp;
5290 # Check whether --with-gmp-include was given.
5291 if test "${with_gmp_include+set}" = set; then :
5292 withval=$with_gmp_include;
5296 # Check whether --with-gmp-lib was given.
5297 if test "${with_gmp_lib+set}" = set; then :
5298 withval=$with_gmp_lib;
5303 if test "x$with_gmp" != x; then
5304 gmplibs="-L$with_gmp/lib $gmplibs"
5305 gmpinc="-I$with_gmp/include $gmpinc"
5307 if test "x$with_gmp_include" != x; then
5308 gmpinc="-I$with_gmp_include $gmpinc"
5310 if test "x$with_gmp_lib" != x; then
5311 gmplibs="-L$with_gmp_lib $gmplibs"
5313 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5314 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5315 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5316 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5317 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5318 # Do not test the gmp version. Assume that it is sufficient, since
5319 # it is in the source tree, and the library has not been built yet
5320 # but it would be included on the link line in the version check below
5321 # hence making the test fail.
5322 have_gmp=yes
5325 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5326 have_gmp=yes
5327 saved_CFLAGS="$CFLAGS"
5328 CFLAGS="$CFLAGS $gmpinc"
5329 # Check for the recommended and required versions of GMP.
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5331 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #include "gmp.h"
5337 main ()
5340 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5341 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5342 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5343 choke me
5344 #endif
5347 return 0;
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #include <gmp.h>
5355 main ()
5358 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5359 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5360 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5361 choke me
5362 #endif
5365 return 0;
5367 _ACEOF
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5370 $as_echo "yes" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5373 $as_echo "buggy but acceptable" >&6; }
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }; have_gmp=no
5380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 # If we have GMP, check the MPFR version.
5383 if test x"$have_gmp" = xyes; then
5384 # Check for the recommended and required versions of MPFR.
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5386 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <gmp.h>
5390 #include <mpfr.h>
5392 main ()
5395 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5396 choke me
5397 #endif
5400 return 0;
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 #include <gmp.h>
5407 #include <mpfr.h>
5409 main ()
5412 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5413 choke me
5414 #endif
5417 return 0;
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5422 $as_echo "yes" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5425 $as_echo "buggy but acceptable" >&6; }
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }; have_gmp=no
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 # Check for the MPC header version.
5436 if test x"$have_gmp" = xyes ; then
5437 # Check for the recommended and required versions of MPC.
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5439 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #include <mpc.h>
5444 main ()
5447 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5448 choke me
5449 #endif
5452 return 0;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 #include <mpc.h>
5460 main ()
5463 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5464 choke me
5465 #endif
5468 return 0;
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"; then :
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473 $as_echo "yes" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5476 $as_echo "buggy but acceptable" >&6; }
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }; have_gmp=no
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 # Now check the MPFR library.
5487 if test x"$have_gmp" = xyes; then
5488 saved_LIBS="$LIBS"
5489 LIBS="$LIBS $gmplibs"
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5491 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <mpc.h>
5496 main ()
5499 mpfr_t n;
5500 mpfr_t x;
5501 mpc_t c;
5502 int t;
5503 mpfr_init (n);
5504 mpfr_init (x);
5505 mpfr_atan2 (n, n, x, GMP_RNDN);
5506 mpfr_erfc (n, x, GMP_RNDN);
5507 mpfr_subnormalize (x, t, GMP_RNDN);
5508 mpfr_clear(n);
5509 mpfr_clear(x);
5510 mpc_init2 (c, 53);
5511 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5512 mpc_cosh (c, c, MPC_RNDNN);
5513 mpc_pow (c, c, c, MPC_RNDNN);
5514 mpc_acosh (c, c, MPC_RNDNN);
5515 mpc_clear (c);
5518 return 0;
5520 _ACEOF
5521 if ac_fn_c_try_link "$LINENO"; then :
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5523 $as_echo "yes" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }; have_gmp=no
5528 rm -f core conftest.err conftest.$ac_objext \
5529 conftest$ac_exeext conftest.$ac_ext
5530 LIBS="$saved_LIBS"
5533 CFLAGS="$saved_CFLAGS"
5535 # The library versions listed in the error message below should match
5536 # the HARD-minimums enforced above.
5537 if test x$have_gmp != xyes; then
5538 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5539 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5540 their locations. Source code for these libraries can be found at
5541 their respective hosting sites as well as at
5542 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5543 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5544 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5545 make sure that you have installed both the libraries and the header
5546 files. They may be located in separate packages." "$LINENO" 5
5550 # Flags needed for both GMP, MPFR and/or MPC.
5557 # Allow host libstdc++ to be specified for static linking with PPL.
5559 # Check whether --with-host-libstdcxx was given.
5560 if test "${with_host_libstdcxx+set}" = set; then :
5561 withval=$with_host_libstdcxx;
5565 case $with_host_libstdcxx in
5566 no|yes)
5567 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5569 esac
5571 # Linker flags to use for stage1 or when not boostrapping.
5573 # Check whether --with-stage1-ldflags was given.
5574 if test "${with_stage1_ldflags+set}" = set; then :
5575 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5576 stage1_ldflags=
5577 else
5578 stage1_ldflags=$withval
5580 else
5581 stage1_ldflags=
5586 # Libraries to use for stage1 or when not bootstrapping.
5588 # Check whether --with-stage1-libs was given.
5589 if test "${with_stage1_libs+set}" = set; then :
5590 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5591 stage1_libs=
5592 else
5593 stage1_libs=$withval
5595 else
5596 stage1_libs=$with_host_libstdcxx
5601 # Libraries to use for stage2 and later builds. This defaults to the
5602 # argument passed to --with-host-libstdcxx.
5604 # Check whether --with-boot-libs was given.
5605 if test "${with_boot_libs+set}" = set; then :
5606 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5607 poststage1_libs=
5608 else
5609 poststage1_libs=$withval
5611 else
5612 poststage1_libs=$with_host_libstdcxx
5617 # Linker flags to use for stage2 and later builds.
5619 # Check whether --with-boot-ldflags was given.
5620 if test "${with_boot_ldflags+set}" = set; then :
5621 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5622 poststage1_ldflags=
5623 else
5624 poststage1_ldflags=$withval
5626 else
5627 poststage1_ldflags=
5628 # With --enable-build-with-cxx, default to linking libstdc++ and
5629 # libgcc statically. But if the user explicitly specified the
5630 # libraries to use, trust that they are doing what they want.
5631 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5632 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5638 # Check for PPL
5639 ppllibs=" -lppl_c -lppl -lgmpxx"
5640 pplinc=
5643 # Check whether --with-ppl was given.
5644 if test "${with_ppl+set}" = set; then :
5645 withval=$with_ppl;
5649 # Check whether --with-ppl-include was given.
5650 if test "${with_ppl_include+set}" = set; then :
5651 withval=$with_ppl_include;
5655 # Check whether --with-ppl-lib was given.
5656 if test "${with_ppl_lib+set}" = set; then :
5657 withval=$with_ppl_lib;
5661 case $with_ppl in
5663 ppllibs=
5665 "" | yes)
5668 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5669 pplinc="-I$with_ppl/include $pplinc"
5671 esac
5672 if test "x$with_ppl_include" != x; then
5673 pplinc="-I$with_ppl_include $pplinc"
5675 if test "x$with_ppl_lib" != x; then
5676 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5678 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5679 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5680 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5681 enable_ppl_version_check=no
5684 # Check whether --enable-ppl-version-check was given.
5685 if test "${enable_ppl_version_check+set}" = set; then :
5686 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5687 else
5688 ENABLE_PPL_CHECK=yes
5692 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5693 saved_CFLAGS="$CFLAGS"
5694 CFLAGS="$CFLAGS $pplinc $gmpinc"
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5696 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 #include "ppl_c.h"
5701 main ()
5704 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5705 choke me
5706 #endif
5709 return 0;
5711 _ACEOF
5712 if ac_fn_c_try_compile "$LINENO"; then :
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5714 $as_echo "yes" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 CFLAGS="$saved_CFLAGS"
5723 # Flags needed for PPL
5728 # Check for CLOOG
5732 # Check whether --with-cloog was given.
5733 if test "${with_cloog+set}" = set; then :
5734 withval=$with_cloog;
5738 # Check whether --with-cloog-include was given.
5739 if test "${with_cloog_include+set}" = set; then :
5740 withval=$with_cloog_include;
5744 # Check whether --with-cloog-lib was given.
5745 if test "${with_cloog_lib+set}" = set; then :
5746 withval=$with_cloog_lib;
5750 # Check whether --enable-cloog-backend was given.
5751 if test "${enable_cloog_backend+set}" = set; then :
5752 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5753 cloog_backend=isl
5754 elif test "x${enableval}" = "xppl"; then
5755 cloog_backend=ppl
5756 else
5757 cloog_backend=ppl-legacy
5759 else
5760 cloog_backend=ppl-legacy
5763 # Check whether --enable-cloog-version-check was given.
5764 if test "${enable_cloog_version_check+set}" = set; then :
5765 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5766 else
5767 ENABLE_CLOOG_CHECK=yes
5771 # Initialize clooglibs and clooginc.
5772 case $with_cloog in
5774 clooglibs=
5775 clooginc=
5777 "" | yes)
5780 clooglibs="-L$with_cloog/lib"
5781 clooginc="-I$with_cloog/include"
5783 esac
5784 if test "x${with_cloog_include}" != x ; then
5785 clooginc="-I$with_cloog_include"
5787 if test "x${with_cloog_lib}" != x; then
5788 clooglibs="-L$with_cloog_lib"
5795 if test "x$with_ppl" = "xno"; then
5796 with_cloog=no
5798 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5799 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5800 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5801 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5803 if test "x$with_cloog" != "xno"; then
5807 _cloog_saved_CFLAGS=$CFLAGS
5808 _cloog_saved_CPPFLAGS=$CPPFLAGS
5809 _cloog_saved_LDFLAGS=$LDFLAGS
5810 _cloog_saved_LIBS=$LIBS
5812 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5814 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5815 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5816 LDFLAGS="${LDFLAGS} ${clooglibs}"
5818 case $cloog_backend in
5819 "ppl-legacy")
5820 CFLAGS="${CFLAGS} ${pplinc}"
5821 LDFLAGS="${LDFLAGS} ${ppllibs}"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5823 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5824 if test "${gcc_cv_cloog_type+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 LIBS="-lcloog ${_cloog_saved_LIBS}"
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include "cloog/cloog.h"
5832 main ()
5834 #ifndef CLOOG_PPL_BACKEND
5835 choke me
5836 #endif
5838 return 0;
5840 _ACEOF
5841 if ac_fn_c_try_link "$LINENO"; then :
5842 gcc_cv_cloog_type="PPL Legacy"
5843 else
5844 gcc_cv_cloog_type=no
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5850 $as_echo "$gcc_cv_cloog_type" >&6; }
5852 "isl")
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5854 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5855 if test "${gcc_cv_cloog_type+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #include "cloog/cloog.h"
5863 main ()
5865 cloog_version ()
5867 return 0;
5869 _ACEOF
5870 if ac_fn_c_try_link "$LINENO"; then :
5871 gcc_cv_cloog_type="ISL"
5872 else
5873 gcc_cv_cloog_type=no
5875 rm -f core conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5879 $as_echo "$gcc_cv_cloog_type" >&6; }
5881 "ppl")
5882 CFLAGS="${CFLAGS} ${pplinc}"
5883 LDFLAGS="${LDFLAGS} ${ppllibs}"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5885 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5886 if test "${gcc_cv_cloog_type+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
5888 else
5889 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h. */
5892 #include "cloog/cloog.h"
5893 #include "cloog/ppl/cloog.h"
5895 main ()
5897 cloog_version ()
5899 return 0;
5901 _ACEOF
5902 if ac_fn_c_try_link "$LINENO"; then :
5903 gcc_cv_cloog_type="PPL"
5904 else
5905 gcc_cv_cloog_type=no
5907 rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5911 $as_echo "$gcc_cv_cloog_type" >&6; }
5914 gcc_cv_cloog_type=""
5915 esac
5917 case $gcc_cv_cloog_type in
5918 "PPL Legacy")
5919 clooginc="${clooginc}"
5920 clooglibs="${clooglibs} -lcloog"
5921 cloog_org=no
5923 "ISL")
5924 clooginc="${clooginc} ${_cloogorginc}"
5925 clooglibs="${clooglibs} -lcloog-isl"
5926 cloog_org=yes
5928 "PPL")
5929 clooginc="${clooginc} ${_cloogorginc}"
5930 clooglibs="${clooglibs} -lcloog-ppl"
5931 cloog_org=yes
5934 clooglibs=
5935 clooginc=
5936 cloog_org=
5938 esac
5940 LIBS=$_cloog_saved_LIBS
5941 CFLAGS=$_cloog_saved_CFLAGS
5942 CPPFLAGS=$_cloog_saved_CPPFLAGS
5943 LDFLAGS=$_cloog_saved_LDFLAGS
5949 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5950 _cloog_saved_CFLAGS=$CFLAGS
5951 _cloog_saved_LDFLAGS=$LDFLAGS
5953 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5954 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5956 if test "${cloog_org}" = yes ; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5958 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5959 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 #include "cloog/cloog.h"
5966 main ()
5968 #if CLOOG_VERSION_MAJOR != 0 \
5969 || CLOOG_VERSION_MINOR != 14 \
5970 || CLOOG_VERSION_REVISION < 0
5971 choke me
5972 #endif
5974 return 0;
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"; then :
5978 gcc_cv_cloog_ct_0_14_0=yes
5979 else
5980 gcc_cv_cloog_ct_0_14_0=no
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5985 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5986 elif test "${cloog_org}" = no ; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5988 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5989 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 #include "cloog/cloog.h"
5996 main ()
5998 #if CLOOG_VERSION_MAJOR != 0 \
5999 || CLOOG_VERSION_MINOR != 15 \
6000 || CLOOG_VERSION_REVISION < 5
6001 choke me
6002 #endif
6004 return 0;
6006 _ACEOF
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #include "cloog/cloog.h"
6012 main ()
6014 #if CLOOG_VERSION_MAJOR != 0 \
6015 || CLOOG_VERSION_MINOR != 15 \
6016 || CLOOG_VERSION_REVISION < 9
6017 choke me
6018 #endif
6020 return 0;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"; then :
6024 gcc_cv_cloog_ct_0_15_5=yes
6025 else
6026 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 else
6030 gcc_cv_cloog_ct_0_15_5=no
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6035 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6038 CFLAGS=$_cloog_saved_CFLAGS
6039 LDFLAGS=$_cloog_saved_LDFLAGS
6048 if test "x${with_cloog}" != x \
6049 || test "x${with_cloog_include}" != x \
6050 || test "x${with_cloog_lib}" != x ; then
6051 graphite_requested=yes
6052 else
6053 graphite_requested=no
6058 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6059 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6060 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6061 clooglibs=
6062 clooginc=
6065 if test "${graphite_requested}" = yes \
6066 && test "x${clooglibs}" = x \
6067 && test "x${clooginc}" = x ; then
6069 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6075 # Check for LTO support.
6076 # Check whether --enable-lto was given.
6077 if test "${enable_lto+set}" = set; then :
6078 enableval=$enable_lto; enable_lto=$enableval
6079 else
6080 enable_lto=yes; default_enable_lto=yes
6087 target_elf=no
6088 case $target in
6089 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6090 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6091 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6092 target_elf=no
6095 target_elf=yes
6097 esac
6099 if test $target_elf = yes; then :
6100 # ELF platforms build the lto-plugin always.
6101 build_lto_plugin=yes
6103 else
6104 if test x"$default_enable_lto" = x"yes" ; then
6105 case $target in
6106 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6107 # On other non-ELF platforms, LTO has yet to be validated.
6108 *) enable_lto=no ;;
6109 esac
6110 else
6111 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6112 # It would also be nice to check the binutils support, but we don't
6113 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6114 # warn during gcc/ subconfigure; unless you're bootstrapping with
6115 # -flto it won't be needed until after installation anyway.
6116 case $target in
6117 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6118 *) if test x"$enable_lto" = x"yes"; then
6119 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6122 esac
6124 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6125 # Build it unless LTO was explicitly disabled.
6126 case $target in
6127 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6128 *) ;;
6129 esac
6135 # By default, C is the only stage 1 language.
6136 stage1_languages=,c,
6138 # Target libraries that we bootstrap.
6139 bootstrap_target_libs=,target-libgcc,
6141 # Figure out what language subdirectories are present.
6142 # Look if the user specified --enable-languages="..."; if not, use
6143 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6144 # go away some day.
6145 # NB: embedded tabs in this IF block -- do not untabify
6146 if test -d ${srcdir}/gcc; then
6147 if test x"${enable_languages+set}" != xset; then
6148 if test x"${LANGUAGES+set}" = xset; then
6149 enable_languages="${LANGUAGES}"
6150 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6151 else
6152 enable_languages=all
6154 else
6155 if test x"${enable_languages}" = x ||
6156 test x"${enable_languages}" = xyes;
6157 then
6158 echo configure.in: --enable-languages needs at least one language argument 1>&2
6159 exit 1
6162 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6164 # 'f95' is the old name for the 'fortran' language. We issue a warning
6165 # and make the substitution.
6166 case ,${enable_languages}, in
6167 *,f95,*)
6168 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6169 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6171 esac
6173 # First scan to see if an enabled language requires some other language.
6174 # We assume that a given config-lang.in will list all the language
6175 # front ends it requires, even if some are required indirectly.
6176 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6177 case ${lang_frag} in
6178 ..) ;;
6179 # The odd quoting in the next line works around
6180 # an apparent bug in bash 1.12 on linux.
6181 ${srcdir}/gcc/[*]/config-lang.in) ;;
6183 # From the config-lang.in, get $language, $lang_requires, and
6184 # $lang_requires_boot_languages.
6185 language=
6186 lang_requires=
6187 lang_requires_boot_languages=
6188 . ${lang_frag}
6189 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6190 case ,${enable_languages}, in
6191 *,$other,*) ;;
6192 *,all,*) ;;
6193 *,$language,*)
6194 echo " \`$other' language required by \`$language'; enabling" 1>&2
6195 enable_languages="${enable_languages},${other}"
6197 esac
6198 done
6199 for other in ${lang_requires_boot_languages} ; do
6200 if test "$other" != "c"; then
6201 case ,${enable_stage1_languages}, in
6202 *,$other,*) ;;
6203 *,all,*) ;;
6205 case ,${enable_languages}, in
6206 *,$language,*)
6207 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6208 enable_stage1_languages="$enable_stage1_languages,${other}"
6210 esac
6212 esac
6214 done
6216 esac
6217 done
6219 new_enable_languages=,c,
6221 # If LTO is enabled, add the LTO front end.
6222 extra_host_libiberty_configure_flags=
6223 if test "$enable_lto" = "yes" ; then
6224 case ,${enable_languages}, in
6225 *,lto,*) ;;
6226 *) enable_languages="${enable_languages},lto" ;;
6227 esac
6228 if test "${build_lto_plugin}" = "yes" ; then
6229 configdirs="$configdirs lto-plugin"
6230 extra_host_libiberty_configure_flags=--enable-shared
6235 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6236 potential_languages=,c,
6238 enabled_target_libs=
6239 disabled_target_libs=
6241 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6242 case ${lang_frag} in
6243 ..) ;;
6244 # The odd quoting in the next line works around
6245 # an apparent bug in bash 1.12 on linux.
6246 ${srcdir}/gcc/[*]/config-lang.in) ;;
6248 # From the config-lang.in, get $language, $target_libs,
6249 # $lang_dirs, $boot_language, and $build_by_default
6250 language=
6251 target_libs=
6252 lang_dirs=
6253 subdir_requires=
6254 boot_language=no
6255 build_by_default=yes
6256 . ${lang_frag}
6257 if test x${language} = x; then
6258 echo "${lang_frag} doesn't set \$language." 1>&2
6259 exit 1
6262 if test "$language" = "c++" \
6263 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6264 boot_language=yes
6267 case ,${enable_languages}, in
6268 *,${language},*)
6269 # Language was explicitly selected; include it.
6270 add_this_lang=yes
6272 *,all,*)
6273 # 'all' was selected, select it if it is a default language
6274 add_this_lang=${build_by_default}
6277 add_this_lang=no
6279 esac
6281 # Disable languages that need other directories if these aren't available.
6282 for i in $subdir_requires; do
6283 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6284 case ,${enable_languages}, in
6285 *,${language},*)
6286 # Specifically requested language; tell them.
6287 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6290 # Silently disable.
6291 add_this_lang=unsupported
6293 esac
6294 done
6296 # Disable Ada if no preexisting GNAT is available.
6297 case ,${enable_languages},:${language}:${have_gnat} in
6298 *,${language},*:ada:no)
6299 # Specifically requested language; tell them.
6300 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6302 *:ada:no)
6303 # Silently disable.
6304 add_this_lang=unsupported
6306 esac
6308 # Disable a language that is unsupported by the target.
6309 case " $unsupported_languages " in
6310 *" $language "*)
6311 add_this_lang=unsupported
6313 esac
6315 case $add_this_lang in
6316 unsupported)
6317 # Remove language-dependent dirs.
6318 disabled_target_libs="$disabled_target_libs $target_libs"
6319 noconfigdirs="$noconfigdirs $lang_dirs"
6322 # Remove language-dependent dirs; still show language as supported.
6323 disabled_target_libs="$disabled_target_libs $target_libs"
6324 noconfigdirs="$noconfigdirs $lang_dirs"
6325 potential_languages="${potential_languages}${language},"
6327 yes)
6328 new_enable_languages="${new_enable_languages}${language},"
6329 potential_languages="${potential_languages}${language},"
6330 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6331 enabled_target_libs="$enabled_target_libs $target_libs"
6332 case "${boot_language}:,$enable_stage1_languages," in
6333 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6334 # Add to (comma-separated) list of stage 1 languages.
6335 case ",$stage1_languages," in
6336 *,$language,* | ,yes, | ,all,) ;;
6337 *) stage1_languages="${stage1_languages}${language}," ;;
6338 esac
6339 # We need to bootstrap any supporting libraries.
6340 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6342 esac
6344 esac
6346 esac
6347 done
6349 # Add target libraries which are only needed for disabled languages
6350 # to noconfigdirs.
6351 if test -n "$disabled_target_libs"; then
6352 for dir in $disabled_target_libs; do
6353 case " $enabled_target_libs " in
6354 *" ${dir} "*) ;;
6355 *) noconfigdirs="$noconfigdirs $dir" ;;
6356 esac
6357 done
6360 # Check whether --enable-stage1-languages was given.
6361 if test "${enable_stage1_languages+set}" = set; then :
6362 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6363 ,no,|,,)
6364 # Set it to something that will have no effect in the loop below
6365 enable_stage1_languages=c ;;
6366 ,yes,)
6367 enable_stage1_languages=`echo $new_enable_languages | \
6368 sed -e "s/^,//" -e "s/,$//" ` ;;
6369 *,all,*)
6370 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6371 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6372 esac
6374 # Add "good" languages from enable_stage1_languages to stage1_languages,
6375 # while "bad" languages go in missing_languages. Leave no duplicates.
6376 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6377 case $potential_languages in
6378 *,$i,*)
6379 case $stage1_languages in
6380 *,$i,*) ;;
6381 *) stage1_languages="$stage1_languages$i," ;;
6382 esac ;;
6384 case $missing_languages in
6385 *,$i,*) ;;
6386 *) missing_languages="$missing_languages$i," ;;
6387 esac ;;
6388 esac
6389 done
6393 # Remove leading/trailing commas that were added for simplicity
6394 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6395 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6396 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6397 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6399 if test "x$missing_languages" != x; then
6400 as_fn_error "
6401 The following requested languages could not be built: ${missing_languages}
6402 Supported languages are: ${potential_languages}" "$LINENO" 5
6404 if test "x$new_enable_languages" != "x$enable_languages"; then
6405 echo The following languages will be built: ${new_enable_languages}
6406 enable_languages="$new_enable_languages"
6410 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6413 # Handle --disable-<component> generically.
6414 for dir in $configdirs $build_configdirs $target_configdirs ; do
6415 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6416 varname=`echo $dirname | sed -e s/+/_/g`
6417 if eval test x\${enable_${varname}} "=" xno ; then
6418 noconfigdirs="$noconfigdirs $dir"
6420 done
6422 # Check for Boehm's garbage collector
6423 # Check whether --enable-objc-gc was given.
6424 if test "${enable_objc_gc+set}" = set; then :
6425 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6426 *,objc,*:*:yes:*target-boehm-gc*)
6427 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6429 esac
6433 # Make sure we only build Boehm's garbage collector if required.
6434 case ,${enable_languages},:${enable_objc_gc} in
6435 *,objc,*:yes)
6436 # Keep target-boehm-gc if requested for Objective-C.
6439 # Otherwise remove target-boehm-gc depending on target-libjava.
6440 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6441 noconfigdirs="$noconfigdirs target-boehm-gc"
6444 esac
6447 # Check whether --with-upc-pts was given.
6448 if test "${with_upc_pts+set}" = set; then :
6449 withval=$with_upc_pts;
6450 case ,${enable_languages}, in
6451 *,upc,)
6452 case "$withval" in
6453 struct|word-pair|packed)
6454 true
6457 as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
6459 esac
6462 as_fn_error "--with-upc-pts supplied, but UPC language not enabled" "$LINENO" 5
6464 esac
6469 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6470 # $build_configdirs and $target_configdirs.
6471 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6473 notsupp=""
6474 for dir in . $skipdirs $noconfigdirs ; do
6475 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6476 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6477 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6478 if test -r $srcdir/$dirname/configure ; then
6479 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6480 true
6481 else
6482 notsupp="$notsupp $dir"
6486 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6487 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6488 if test -r $srcdir/$dirname/configure ; then
6489 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6490 true
6491 else
6492 notsupp="$notsupp $dir"
6496 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6497 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6498 if test -r $srcdir/$dirname/configure ; then
6499 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6500 true
6501 else
6502 notsupp="$notsupp $dir"
6506 done
6508 # Sometimes the tools are distributed with libiberty but with no other
6509 # libraries. In that case, we don't want to build target-libiberty.
6510 # Don't let libgcc imply libiberty either.
6511 if test -n "${target_configdirs}" ; then
6512 libgcc=
6513 others=
6514 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6515 if test "$i" = "libgcc"; then
6516 libgcc=target-libgcc
6517 elif test "$i" != "libiberty" ; then
6518 if test -r $srcdir/$i/configure ; then
6519 others=yes;
6520 break;
6523 done
6524 if test -z "${others}" ; then
6525 target_configdirs=$libgcc
6529 # Quietly strip out all directories which aren't configurable in this tree.
6530 # This relies on all configurable subdirectories being autoconfiscated, which
6531 # is now the case.
6532 build_configdirs_all="$build_configdirs"
6533 build_configdirs=
6534 for i in ${build_configdirs_all} ; do
6535 j=`echo $i | sed -e s/build-//g`
6536 if test -f ${srcdir}/$j/configure ; then
6537 build_configdirs="${build_configdirs} $i"
6539 done
6541 configdirs_all="$configdirs"
6542 configdirs=
6543 for i in ${configdirs_all} ; do
6544 if test -f ${srcdir}/$i/configure ; then
6545 configdirs="${configdirs} $i"
6547 done
6549 target_configdirs_all="$target_configdirs"
6550 target_configdirs=
6551 for i in ${target_configdirs_all} ; do
6552 j=`echo $i | sed -e s/target-//g`
6553 if test -f ${srcdir}/$j/configure ; then
6554 target_configdirs="${target_configdirs} $i"
6556 done
6558 # Produce a warning message for the subdirs we can't configure.
6559 # This isn't especially interesting in the Cygnus tree, but in the individual
6560 # FSF releases, it's important to let people know when their machine isn't
6561 # supported by the one or two programs in a package.
6563 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6564 # If $appdirs is non-empty, at least one of those directories must still
6565 # be configured, or we error out. (E.g., if the gas release supports a
6566 # specified target in some subdirs but not the gas subdir, we shouldn't
6567 # pretend that all is well.)
6568 if test -n "$appdirs" ; then
6569 for dir in $appdirs ; do
6570 if test -r $dir/Makefile.in ; then
6571 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6572 appdirs=""
6573 break
6575 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6576 appdirs=""
6577 break
6580 done
6581 if test -n "$appdirs" ; then
6582 echo "*** This configuration is not supported by this package." 1>&2
6583 exit 1
6586 # Okay, some application will build, or we don't care to check. Still
6587 # notify of subdirs not getting built.
6588 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6589 echo " ${notsupp}" 1>&2
6590 echo " (Any other directories should still work fine.)" 1>&2
6593 case "$host" in
6594 *msdosdjgpp*)
6595 enable_gdbtk=no ;;
6596 esac
6598 # To find our prefix, in gcc_cv_tool_prefix.
6600 # The user is always right.
6601 if test "${PATH_SEPARATOR+set}" != set; then
6602 echo "#! /bin/sh" >conf$$.sh
6603 echo "exit 0" >>conf$$.sh
6604 chmod +x conf$$.sh
6605 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6606 PATH_SEPARATOR=';'
6607 else
6608 PATH_SEPARATOR=:
6610 rm -f conf$$.sh
6615 if test "x$exec_prefix" = xNONE; then
6616 if test "x$prefix" = xNONE; then
6617 gcc_cv_tool_prefix=$ac_default_prefix
6618 else
6619 gcc_cv_tool_prefix=$prefix
6621 else
6622 gcc_cv_tool_prefix=$exec_prefix
6625 # If there is no compiler in the tree, use the PATH only. In any
6626 # case, if there is no compiler in the tree nobody should use
6627 # AS_FOR_TARGET and LD_FOR_TARGET.
6628 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6629 gcc_version=`cat $srcdir/gcc/BASE-VER`
6630 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6631 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6632 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6633 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6634 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6635 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6636 else
6637 gcc_cv_tool_dirs=
6640 if test x$build = x$target && test -n "$md_exec_prefix"; then
6641 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6646 copy_dirs=
6649 # Check whether --with-build-sysroot was given.
6650 if test "${with_build_sysroot+set}" = set; then :
6651 withval=$with_build_sysroot; if test x"$withval" != x ; then
6652 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6654 else
6655 SYSROOT_CFLAGS_FOR_TARGET=
6661 # Check whether --with-debug-prefix-map was given.
6662 if test "${with_debug_prefix_map+set}" = set; then :
6663 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6664 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6665 for debug_map in $withval; do
6666 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6667 done
6669 else
6670 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6675 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6676 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6677 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6678 # We want to ensure that TARGET libraries (which we know are built with
6679 # gcc) are built with "-O2 -g", so include those options when setting
6680 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6681 if test "x$CFLAGS_FOR_TARGET" = x; then
6682 CFLAGS_FOR_TARGET=$CFLAGS
6683 case " $CFLAGS " in
6684 *" -O2 "*) ;;
6685 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6686 esac
6687 case " $CFLAGS " in
6688 *" -g "* | *" -g3 "*) ;;
6689 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6690 esac
6694 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6695 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6696 case " $CXXFLAGS " in
6697 *" -O2 "*) ;;
6698 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6699 esac
6700 case " $CXXFLAGS " in
6701 *" -g "* | *" -g3 "*) ;;
6702 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6703 esac
6707 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6708 # the named directory are copied to $(tooldir)/sys-include.
6709 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6710 if test x${is_cross_compiler} = xno ; then
6711 echo 1>&2 '***' --with-headers is only supported when cross compiling
6712 exit 1
6714 if test x"${with_headers}" != xyes ; then
6715 x=${gcc_cv_tool_prefix}
6716 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6720 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6721 # the name directories are copied to $(tooldir)/lib. Multiple directories
6722 # are permitted.
6723 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6724 if test x${is_cross_compiler} = xno ; then
6725 echo 1>&2 '***' --with-libs is only supported when cross compiling
6726 exit 1
6728 if test x"${with_libs}" != xyes ; then
6729 # Copy the libraries in reverse order, so that files in the first named
6730 # library override files in subsequent libraries.
6731 x=${gcc_cv_tool_prefix}
6732 for l in ${with_libs}; do
6733 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6734 done
6738 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6740 # This is done by determining whether or not the appropriate directory
6741 # is available, and by checking whether or not specific configurations
6742 # have requested that this magic not happen.
6744 # The command line options always override the explicit settings in
6745 # configure.in, and the settings in configure.in override this magic.
6747 # If the default for a toolchain is to use GNU as and ld, and you don't
6748 # want to do that, then you should use the --without-gnu-as and
6749 # --without-gnu-ld options for the configure script. Similarly, if
6750 # the default is to use the included zlib and you don't want to do that,
6751 # you should use the --with-system-zlib option for the configure script.
6753 if test x${use_gnu_as} = x &&
6754 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6755 with_gnu_as=yes
6756 extra_host_args="$extra_host_args --with-gnu-as"
6759 if test x${use_gnu_ld} = x &&
6760 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6761 with_gnu_ld=yes
6762 extra_host_args="$extra_host_args --with-gnu-ld"
6765 if test x${use_included_zlib} = x &&
6766 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6768 else
6769 with_system_zlib=yes
6770 extra_host_args="$extra_host_args --with-system-zlib"
6773 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6774 # can detect this case.
6776 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6777 with_newlib=yes
6778 extra_host_args="$extra_host_args --with-newlib"
6781 # Handle ${copy_dirs}
6782 set fnord ${copy_dirs}
6783 shift
6784 while test $# != 0 ; do
6785 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6787 else
6788 echo Copying $1 to $2
6790 # Use the install script to create the directory and all required
6791 # parent directories.
6792 if test -d $2 ; then
6794 else
6795 echo >config.temp
6796 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6799 # Copy the directory, assuming we have tar.
6800 # FIXME: Should we use B in the second tar? Not all systems support it.
6801 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6803 # It is the responsibility of the user to correctly adjust all
6804 # symlinks. If somebody can figure out how to handle them correctly
6805 # here, feel free to add the code.
6807 echo $1 > $2/COPIED
6809 shift; shift
6810 done
6812 # Determine a target-dependent exec_prefix that the installed
6813 # gcc will search in. Keep this list sorted by triplet, with
6814 # the *-*-osname triplets last.
6815 md_exec_prefix=
6816 case "${target}" in
6817 alpha*-*-*vms*)
6818 md_exec_prefix=/gnu/lib/gcc-lib
6820 i[34567]86-pc-msdosdjgpp*)
6821 md_exec_prefix=/dev/env/DJDIR/bin
6823 i[34567]86-*-sco3.2v5*)
6824 if test $with_gnu_as = yes; then
6825 md_exec_prefix=/usr/gnu/bin
6826 else
6827 md_exec_prefix=/usr/ccs/bin/elf
6831 mn10300-*-* | \
6832 powerpc-*-chorusos* | \
6833 powerpc*-*-eabi* | \
6834 powerpc*-*-sysv* | \
6835 powerpc*-*-kaos* | \
6836 s390x-ibm-tpf*)
6837 md_exec_prefix=/usr/ccs/bin
6839 sparc64-*-elf*)
6841 v850*-*-*)
6842 md_exec_prefix=/usr/ccs/bin
6844 xtensa*-*-elf*)
6847 *-*-beos* | \
6848 *-*-elf* | \
6849 *-*-hpux* | \
6850 *-*-netware* | \
6851 *-*-nto-qnx* | \
6852 *-*-rtems* | \
6853 *-*-solaris2* | \
6854 *-*-sysv[45]* | \
6855 *-*-vxworks* | \
6856 *-wrs-windiss)
6857 md_exec_prefix=/usr/ccs/bin
6859 esac
6861 extra_arflags_for_target=
6862 extra_nmflags_for_target=
6863 extra_ranlibflags_for_target=
6864 target_makefile_frag=/dev/null
6865 case "${target}" in
6866 mep*-*-*)
6867 target_makefile_frag="config/mt-mep"
6869 spu-*-*)
6870 target_makefile_frag="config/mt-spu"
6872 mips*-sde-elf*)
6873 target_makefile_frag="config/mt-sde"
6875 mipsisa*-*-elfoabi*)
6876 target_makefile_frag="config/mt-mips-elfoabi"
6878 mips*-*-*linux* | mips*-*-gnu*)
6879 target_makefile_frag="config/mt-mips-gnu"
6881 *-*-netware*)
6882 target_makefile_frag="config/mt-netware"
6884 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6885 target_makefile_frag="config/mt-gnu"
6887 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6888 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6889 # commands to handle both 32-bit and 64-bit objects. These flags are
6890 # harmless if we're using GNU nm or ar.
6891 extra_arflags_for_target=" -X32_64"
6892 extra_nmflags_for_target=" -B -X32_64"
6894 *-*-darwin[3-9]*)
6895 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6896 extra_ranlibflags_for_target=" -c"
6898 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6899 target_makefile_frag="config/mt-wince"
6901 esac
6903 alphaieee_frag=/dev/null
6904 case $target in
6905 alpha*-*-*)
6906 # This just makes sure to use the -mieee option to build target libs.
6907 # This should probably be set individually by each library.
6908 alphaieee_frag="config/mt-alphaieee"
6910 esac
6912 # If --enable-target-optspace always use -Os instead of -O2 to build
6913 # the target libraries, similarly if it is not specified, use -Os
6914 # on selected platforms.
6915 ospace_frag=/dev/null
6916 case "${enable_target_optspace}:${target}" in
6917 yes:*)
6918 ospace_frag="config/mt-ospace"
6920 :d30v-*)
6921 ospace_frag="config/mt-d30v"
6923 :m32r-* | :d10v-* | :fr30-*)
6924 ospace_frag="config/mt-ospace"
6926 no:* | :*)
6929 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6931 esac
6933 # Default to using --with-stabs for certain targets.
6934 if test x${with_stabs} = x ; then
6935 case "${target}" in
6936 mips*-*-irix[56]*)
6938 mips*-*-* | alpha*-*-osf*)
6939 with_stabs=yes;
6940 extra_host_args="${extra_host_args} --with-stabs"
6942 esac
6945 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6946 # them automatically.
6947 case "${host}" in
6948 hppa*64*-*-hpux11*)
6949 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6951 esac
6953 # Some systems (e.g., one of the i386-aix systems the gas testers are
6954 # using) don't handle "\$" correctly, so don't use it here.
6955 tooldir='${exec_prefix}'/${target_noncanonical}
6956 build_tooldir=${tooldir}
6958 # Create a .gdbinit file which runs the one in srcdir
6959 # and tells GDB to look there for source files.
6961 if test -r ${srcdir}/.gdbinit ; then
6962 case ${srcdir} in
6963 .) ;;
6964 *) cat > ./.gdbinit <<EOF
6965 # ${NO_EDIT}
6966 dir ${srcdir}
6967 dir .
6968 source ${srcdir}/.gdbinit
6971 esac
6974 # Make sure that the compiler is able to generate an executable. If it
6975 # can't, we are probably in trouble. We don't care whether we can run the
6976 # executable--we might be using a cross compiler--we only care whether it
6977 # can be created. At this point the main configure script has set CC.
6978 we_are_ok=no
6979 echo "int main () { return 0; }" > conftest.c
6980 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6981 if test $? = 0 ; then
6982 if test -s conftest || test -s conftest.exe ; then
6983 we_are_ok=yes
6986 case $we_are_ok in
6988 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6989 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6990 rm -f conftest*
6991 exit 1
6993 esac
6994 rm -f conftest*
6996 # The Solaris /usr/ucb/cc compiler does not appear to work.
6997 case "${host}" in
6998 sparc-sun-solaris2*)
6999 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7000 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7001 could_use=
7002 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7003 if test -d /opt/cygnus/bin ; then
7004 if test "$could_use" = "" ; then
7005 could_use="/opt/cygnus/bin"
7006 else
7007 could_use="$could_use or /opt/cygnus/bin"
7010 if test "$could_use" = "" ; then
7011 echo "Warning: compilation may fail because you're using"
7012 echo "/usr/ucb/cc. You should change your PATH or CC "
7013 echo "variable and rerun configure."
7014 else
7015 echo "Warning: compilation may fail because you're using"
7016 echo "/usr/ucb/cc, when you should use the C compiler from"
7017 echo "$could_use. You should change your"
7018 echo "PATH or CC variable and rerun configure."
7022 esac
7024 # Decide which environment variable is used to find dynamic libraries.
7025 case "${host}" in
7026 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
7027 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7028 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
7029 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7030 esac
7032 # On systems where the dynamic library environment variable is PATH,
7033 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
7034 # built executables to PATH.
7035 if test "$RPATH_ENVVAR" = PATH; then
7036 GCC_SHLIB_SUBDIR=/shlib
7037 else
7038 GCC_SHLIB_SUBDIR=
7041 # Record target_configdirs and the configure arguments for target and
7042 # build configuration in Makefile.
7043 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7044 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7046 # If we are building libgomp, bootstrap it.
7047 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7048 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7051 # Determine whether gdb needs tk/tcl or not.
7052 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7053 # and in that case we want gdb to be built without tk. Ugh!
7054 # In fact I believe gdb is the *only* package directly dependent on tk,
7055 # so we should be able to put the 'maybe's in unconditionally and
7056 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7057 # 100% sure that that's safe though.
7059 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7060 case "$enable_gdbtk" in
7062 GDB_TK="" ;;
7063 yes)
7064 GDB_TK="${gdb_tk}" ;;
7066 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7067 # distro. Eventually someone will fix this and move Insight, nee
7068 # gdbtk to a separate directory.
7069 if test -d ${srcdir}/gdb/gdbtk ; then
7070 GDB_TK="${gdb_tk}"
7071 else
7072 GDB_TK=""
7075 esac
7076 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7077 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7079 # Strip out unwanted targets.
7081 # While at that, we remove Makefiles if we were started for recursive
7082 # configuration, so that the top-level Makefile reconfigures them,
7083 # like we used to do when configure itself was recursive.
7085 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7086 # but now we're fixing up the Makefile ourselves with the additional
7087 # commands passed to AC_CONFIG_FILES. Use separate variables
7088 # extrasub-{build,host,target} not because there is any reason to split
7089 # the substitutions up that way, but only to remain below the limit of
7090 # 99 commands in a script, for HP-UX sed.
7091 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7093 # Check whether --enable-bootstrap was given.
7094 if test "${enable_bootstrap+set}" = set; then :
7095 enableval=$enable_bootstrap;
7096 else
7097 enable_bootstrap=default
7101 # Issue errors and warnings for invalid/strange bootstrap combinations.
7102 case "$configdirs" in
7103 *gcc*) have_compiler=yes ;;
7104 *) have_compiler=no ;;
7105 esac
7107 case "$have_compiler:$host:$target:$enable_bootstrap" in
7108 *:*:*:no) ;;
7110 # Default behavior. Enable bootstrap if we have a compiler
7111 # and we are in a native configuration.
7112 yes:$build:$build:default)
7113 enable_bootstrap=yes ;;
7115 *:*:*:default)
7116 enable_bootstrap=no ;;
7118 # We have a compiler and we are in a native configuration, bootstrap is ok
7119 yes:$build:$build:yes)
7122 # Other configurations, but we have a compiler. Assume the user knows
7123 # what he's doing.
7124 yes:*:*:yes)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7126 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7129 # No compiler: if they passed --enable-bootstrap explicitly, fail
7130 no:*:*:yes)
7131 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7133 # Fail if wrong command line
7135 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7137 esac
7139 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7140 *,c++,*:yes:yes) ;;
7141 *:yes:yes)
7142 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7144 esac
7146 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7147 yes:yes:*\ gold\ *:*,c++,*) ;;
7148 yes:yes:*\ gold\ *:*)
7149 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7151 esac
7153 # Adjust the toplevel makefile according to whether bootstrap was selected.
7154 case $enable_bootstrap in
7155 yes)
7156 bootstrap_suffix=bootstrap
7157 BUILD_CONFIG=bootstrap-debug
7160 bootstrap_suffix=no-bootstrap
7161 BUILD_CONFIG=
7163 esac
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7166 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7169 # Check whether --with-build-config was given.
7170 if test "${with_build_config+set}" = set; then :
7171 withval=$with_build_config; case $with_build_config in
7172 yes) with_build_config= ;;
7173 no) with_build_config= BUILD_CONFIG= ;;
7174 esac
7178 if test "x${with_build_config}" != x; then
7179 BUILD_CONFIG=$with_build_config
7180 else
7181 case $BUILD_CONFIG in
7182 bootstrap-debug)
7183 if echo "int f (void) { return 0; }" > conftest.c &&
7184 ${CC} -c conftest.c &&
7185 mv conftest.o conftest.o.g0 &&
7186 ${CC} -c -g conftest.c &&
7187 mv conftest.o conftest.o.g &&
7188 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7190 else
7191 BUILD_CONFIG=
7193 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7195 esac
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7198 $as_echo "$BUILD_CONFIG" >&6; }
7201 extrasub_build=
7202 for module in ${build_configdirs} ; do
7203 if test -z "${no_recursion}" \
7204 && test -f ${build_subdir}/${module}/Makefile; then
7205 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7206 rm -f ${build_subdir}/${module}/Makefile
7208 extrasub_build="$extrasub_build
7209 /^@if build-$module\$/d
7210 /^@endif build-$module\$/d
7211 /^@if build-$module-$bootstrap_suffix\$/d
7212 /^@endif build-$module-$bootstrap_suffix\$/d"
7213 done
7214 extrasub_host=
7215 for module in ${configdirs} ; do
7216 if test -z "${no_recursion}"; then
7217 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7218 if test -f ${file}; then
7219 echo 1>&2 "*** removing ${file} to force reconfigure"
7220 rm -f ${file}
7222 done
7224 extrasub_host="$extrasub_host
7225 /^@if $module\$/d
7226 /^@endif $module\$/d
7227 /^@if $module-$bootstrap_suffix\$/d
7228 /^@endif $module-$bootstrap_suffix\$/d"
7229 done
7230 extrasub_target=
7231 for module in ${target_configdirs} ; do
7232 if test -z "${no_recursion}" \
7233 && test -f ${target_subdir}/${module}/Makefile; then
7234 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7235 rm -f ${target_subdir}/${module}/Makefile
7238 # We only bootstrap target libraries listed in bootstrap_target_libs.
7239 case $bootstrap_target_libs in
7240 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7241 *) target_bootstrap_suffix=no-bootstrap ;;
7242 esac
7244 extrasub_target="$extrasub_target
7245 /^@if target-$module\$/d
7246 /^@endif target-$module\$/d
7247 /^@if target-$module-$target_bootstrap_suffix\$/d
7248 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7249 done
7251 # Do the final fixup along with target modules.
7252 extrasub_target="$extrasub_target
7253 /^@if /,/^@endif /d"
7255 # Create the serialization dependencies. This uses a temporary file.
7257 # Check whether --enable-serial-configure was given.
7258 if test "${enable_serial_configure+set}" = set; then :
7259 enableval=$enable_serial_configure;
7263 case ${enable_serial_configure} in
7264 yes)
7265 enable_serial_build_configure=yes
7266 enable_serial_host_configure=yes
7267 enable_serial_target_configure=yes
7269 esac
7271 # These force 'configure's to be done one at a time, to avoid problems
7272 # with contention over a shared config.cache.
7273 rm -f serdep.tmp
7274 echo '# serdep.tmp' > serdep.tmp
7275 olditem=
7276 test "x${enable_serial_build_configure}" = xyes &&
7277 for item in ${build_configdirs} ; do
7278 case ${olditem} in
7279 "") ;;
7280 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7281 esac
7282 olditem=${item}
7283 done
7284 olditem=
7285 test "x${enable_serial_host_configure}" = xyes &&
7286 for item in ${configdirs} ; do
7287 case ${olditem} in
7288 "") ;;
7289 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7290 esac
7291 olditem=${item}
7292 done
7293 olditem=
7294 test "x${enable_serial_target_configure}" = xyes &&
7295 for item in ${target_configdirs} ; do
7296 case ${olditem} in
7297 "") ;;
7298 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7299 esac
7300 olditem=${item}
7301 done
7302 serialization_dependencies=serdep.tmp
7305 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7306 # target, nonopt, and variable assignments. These are the ones we
7307 # might not want to pass down to subconfigures. The exception being
7308 # --cache-file=/dev/null, which is used to turn off the use of cache
7309 # files altogether, and which should be passed on to subconfigures.
7310 # Also strip program-prefix, program-suffix, and program-transform-name,
7311 # so that we can pass down a consistent program-transform-name.
7312 baseargs=
7313 keep_next=no
7314 skip_next=no
7315 eval "set -- $ac_configure_args"
7316 for ac_arg
7318 if test X"$skip_next" = X"yes"; then
7319 skip_next=no
7320 continue
7322 if test X"$keep_next" = X"yes"; then
7323 case $ac_arg in
7324 *\'*)
7325 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7326 esac
7327 baseargs="$baseargs '$ac_arg'"
7328 keep_next=no
7329 continue
7332 # Handle separated arguments. Based on the logic generated by
7333 # autoconf 2.59.
7334 case $ac_arg in
7335 *=* | --config-cache | -C | -disable-* | --disable-* \
7336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7338 | -with-* | --with-* | -without-* | --without-* | --x)
7339 separate_arg=no
7342 separate_arg=yes
7345 separate_arg=no
7347 esac
7349 case "$ac_arg" in
7350 --cache-file=/dev/null | \
7351 -cache-file=/dev/null )
7352 # Handled here to avoid the test to skip args below.
7353 baseargs="$baseargs '$ac_arg'"
7354 # Assert: $separate_arg should always be no.
7355 keep_next=$separate_arg
7357 --no*)
7358 continue
7360 --c* | \
7361 --sr* | \
7362 --ho* | \
7363 --bu* | \
7364 --t* | \
7365 --program-* | \
7366 -cache_file* | \
7367 -srcdir* | \
7368 -host* | \
7369 -build* | \
7370 -target* | \
7371 -program-prefix* | \
7372 -program-suffix* | \
7373 -program-transform-name* )
7374 skip_next=$separate_arg
7375 continue
7378 # An option. Add it.
7379 case $ac_arg in
7380 *\'*)
7381 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7382 esac
7383 baseargs="$baseargs '$ac_arg'"
7384 keep_next=$separate_arg
7387 # Either a variable assignment, or a nonopt (triplet). Don't
7388 # pass it down; let the Makefile handle this.
7389 continue
7391 esac
7392 done
7393 # Remove the initial space we just introduced and, as these will be
7394 # expanded by make, quote '$'.
7395 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7397 # Add in --program-transform-name, after --program-prefix and
7398 # --program-suffix have been applied to it. Autoconf has already
7399 # doubled dollar signs and backslashes in program_transform_name; we want
7400 # the backslashes un-doubled, and then the entire thing wrapped in single
7401 # quotes, because this will be expanded first by make and then by the shell.
7402 # Also, because we want to override the logic in subdir configure scripts to
7403 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7404 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7405 ${program_transform_name}
7406 EOF_SED
7407 gcc_transform_name=`cat conftestsed.out`
7408 rm -f conftestsed.out
7409 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7410 if test "$silent" = yes; then
7411 baseargs="$baseargs --silent"
7413 baseargs="$baseargs --disable-option-checking"
7415 # Record and document user additions to sub configure arguments.
7420 # For the build-side libraries, we just need to pretend we're native,
7421 # and not use the same cache file. Multilibs are neither needed nor
7422 # desired.
7423 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7425 # For host modules, accept cache file option, or specification as blank.
7426 case "${cache_file}" in
7427 "") # empty
7428 cache_file_option="" ;;
7429 /* | [A-Za-z]:[\\/]* ) # absolute path
7430 cache_file_option="--cache-file=${cache_file}" ;;
7431 *) # relative path
7432 cache_file_option="--cache-file=../${cache_file}" ;;
7433 esac
7435 # Host dirs don't like to share a cache file either, horribly enough.
7436 # This seems to be due to autoconf 2.5x stupidity.
7437 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7439 target_configargs="$target_configargs ${baseargs}"
7441 # Passing a --with-cross-host argument lets the target libraries know
7442 # whether they are being built with a cross-compiler or being built
7443 # native. However, it would be better to use other mechanisms to make the
7444 # sorts of decisions they want to make on this basis. Please consider
7445 # this option to be deprecated. FIXME.
7446 if test x${is_cross_compiler} = xyes ; then
7447 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7450 # Default to --enable-multilib.
7451 if test x${enable_multilib} = x ; then
7452 case "${host}" in
7453 *-catamount-*)
7454 # no multilib for Cray catamount machine
7456 *-cnl-*)
7457 # or Cray XT CNL machine
7460 target_configargs="--enable-multilib ${target_configargs}"
7462 esac
7465 # Pass --with-newlib if appropriate. Note that target_configdirs has
7466 # changed from the earlier setting of with_newlib.
7467 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7468 target_configargs="--with-newlib ${target_configargs}"
7471 # Different target subdirs use different values of certain variables
7472 # (notably CXX). Worse, multilibs use *lots* of different values.
7473 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7474 # it doesn't automatically accept command-line overrides of them.
7475 # This means it's not safe for target subdirs to share a cache file,
7476 # which is disgusting, but there you have it. Hopefully this can be
7477 # fixed in future. It's still worthwhile to use a cache file for each
7478 # directory. I think.
7480 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7481 # We need to pass --target, as newer autoconf's requires consistency
7482 # for target_alias and gcc doesn't manage it consistently.
7483 target_configargs="--cache-file=./config.cache ${target_configargs}"
7485 FLAGS_FOR_TARGET=
7486 case " $target_configdirs " in
7487 *" newlib "*)
7488 case " $target_configargs " in
7489 *" --with-newlib "*)
7490 case "$target" in
7491 *-cygwin*)
7492 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'
7494 esac
7496 # If we're not building GCC, don't discard standard headers.
7497 if test -d ${srcdir}/gcc; then
7498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7500 if test "${build}" != "${host}"; then
7501 # On Canadian crosses, CC_FOR_TARGET will have already been set
7502 # by `configure', so we won't have an opportunity to add -Bgcc/
7503 # to it. This is right: we don't want to search that directory
7504 # for binaries, but we want the header files in there, so add
7505 # them explicitly.
7506 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7508 # Someone might think of using the pre-installed headers on
7509 # Canadian crosses, in case the installed compiler is not fully
7510 # compatible with the compiler being built. In this case, it
7511 # would be better to flag an error than risking having
7512 # incompatible object files being constructed. We can't
7513 # guarantee that an error will be flagged, but let's hope the
7514 # compiler will do it, when presented with incompatible header
7515 # files.
7519 case "${target}-${is_cross_compiler}" in
7520 i[3456789]86-*-linux*-no)
7521 # Here host == target, so we don't need to build gcc,
7522 # so we don't want to discard standard headers.
7523 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7526 # If we're building newlib, use its generic headers last, but search
7527 # for any libc-related directories first (so make it the last -B
7528 # switch).
7529 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7531 # If we're building libgloss, find the startup file, simulator library
7532 # and linker script.
7533 case " $target_configdirs " in
7534 *" libgloss "*)
7535 # Look for startup file, simulator library and maybe linker script.
7536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7537 # Look for libnosys.a in case the target needs it.
7538 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7539 # Most targets have the linker script in the source directory.
7540 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7542 esac
7544 esac
7546 esac
7548 esac
7550 case "$target" in
7551 x86_64-*mingw* | *-w64-mingw*)
7552 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7553 # however, use a symlink named 'mingw' in ${prefix} .
7554 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7556 *-mingw*)
7557 # MinGW can't be handled as Cygwin above since it does not use newlib.
7558 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'
7560 esac
7562 # Allow the user to override the flags for
7563 # our build compiler if desired.
7564 if test x"${build}" = x"${host}" ; then
7565 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7566 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7567 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7570 # On Canadian crosses, we'll be searching the right directories for
7571 # the previously-installed cross compiler, so don't bother to add
7572 # flags for directories within the install tree of the compiler
7573 # being built; programs in there won't even run.
7574 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7575 # Search for pre-installed headers if nothing else fits.
7576 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7579 if test "x${use_gnu_ld}" = x &&
7580 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7581 # Arrange for us to find uninstalled linker scripts.
7582 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7585 # Search for other target-specific linker scripts and such.
7586 case "${target}" in
7587 mep*)
7588 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7590 esac
7592 # UPC linker script check
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7594 $as_echo_n "checking for UPC link script support... " >&6; }
7595 # Check whether --enable-upc-link-script was given.
7596 if test "${enable_upc_link_script+set}" = set; then :
7597 enableval=$enable_upc_link_script;
7598 case $enableval in
7599 yes | no) ;;
7601 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7603 esac
7605 else
7607 if test x${use_gnu_ld} = x ; then
7608 case "$target" in
7609 # disable linker script for CRAY XT3/4 cnl/catamount
7610 *-catamount-*)
7611 enable_upc_link_script=no
7613 *-cnl-*)
7614 enable_upc_link_script=no
7616 # disable linker script for Apple Mac OS X
7617 *-*-darwin*)
7618 enable_upc_link_script=no
7621 enable_upc_link_script=yes
7623 esac
7624 else
7625 enable_upc_link_script=no
7627 if test "$enable_upc_link_script" = yes; then
7628 target_configargs="${target_configargs} --enable-upc-link-script"
7629 host_configargs="${host_configargs} --enable-upc-link-script"
7634 if test "$enable_upc_link_script" = yes; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7636 $as_echo "yes" >&6; };
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; };
7643 # Makefile fragments.
7644 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7646 eval fragval=\$$frag
7647 if test $fragval != /dev/null; then
7648 eval $frag=${srcdir}/$fragval
7650 done
7656 # Miscellanea: directories, flags, etc.
7665 # Build module lists & subconfigure args.
7669 # Host module lists & subconfigure args.
7674 # Target module lists & subconfigure args.
7678 # Build tools.
7697 # Generate default definitions for YACC, M4, LEX and other programs that run
7698 # on the build machine. These are used if the Makefile can't locate these
7699 # programs in objdir.
7700 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7702 for ac_prog in 'bison -y' byacc yacc
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if test "${ac_cv_prog_YACC+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$YACC"; then
7712 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_YACC="$ac_prog"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7725 done
7726 done
7727 IFS=$as_save_IFS
7731 YACC=$ac_cv_prog_YACC
7732 if test -n "$YACC"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7734 $as_echo "$YACC" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7741 test -n "$YACC" && break
7742 done
7743 test -n "$YACC" || YACC="$MISSING bison -y"
7745 case " $build_configdirs " in
7746 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7747 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7748 esac
7750 for ac_prog in bison
7752 # Extract the first word of "$ac_prog", so it can be a program name with args.
7753 set dummy $ac_prog; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_BISON+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7758 else
7759 if test -n "$BISON"; then
7760 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7761 else
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_BISON="$ac_prog"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7773 done
7774 done
7775 IFS=$as_save_IFS
7779 BISON=$ac_cv_prog_BISON
7780 if test -n "$BISON"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7782 $as_echo "$BISON" >&6; }
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7789 test -n "$BISON" && break
7790 done
7791 test -n "$BISON" || BISON="$MISSING bison"
7793 case " $build_configdirs " in
7794 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7795 esac
7797 for ac_prog in gm4 gnum4 m4
7799 # Extract the first word of "$ac_prog", so it can be a program name with args.
7800 set dummy $ac_prog; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if test "${ac_cv_prog_M4+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 if test -n "$M4"; then
7807 ac_cv_prog_M4="$M4" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7816 ac_cv_prog_M4="$ac_prog"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7820 done
7821 done
7822 IFS=$as_save_IFS
7826 M4=$ac_cv_prog_M4
7827 if test -n "$M4"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7829 $as_echo "$M4" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7836 test -n "$M4" && break
7837 done
7838 test -n "$M4" || M4="$MISSING m4"
7840 case " $build_configdirs " in
7841 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7842 esac
7844 for ac_prog in flex lex
7846 # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_LEX+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 if test -n "$LEX"; then
7854 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 ac_cv_prog_LEX="$ac_prog"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 break 2
7867 done
7868 done
7869 IFS=$as_save_IFS
7873 LEX=$ac_cv_prog_LEX
7874 if test -n "$LEX"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7876 $as_echo "$LEX" >&6; }
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7883 test -n "$LEX" && break
7884 done
7885 test -n "$LEX" || LEX="$MISSING flex"
7887 case " $build_configdirs " in
7888 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7889 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7890 esac
7892 for ac_prog in flex
7894 # Extract the first word of "$ac_prog", so it can be a program name with args.
7895 set dummy $ac_prog; ac_word=$2
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897 $as_echo_n "checking for $ac_word... " >&6; }
7898 if test "${ac_cv_prog_FLEX+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 if test -n "$FLEX"; then
7902 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7903 else
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 ac_cv_prog_FLEX="$ac_prog"
7912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 break 2
7915 done
7916 done
7917 IFS=$as_save_IFS
7921 FLEX=$ac_cv_prog_FLEX
7922 if test -n "$FLEX"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7924 $as_echo "$FLEX" >&6; }
7925 else
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7931 test -n "$FLEX" && break
7932 done
7933 test -n "$FLEX" || FLEX="$MISSING flex"
7935 case " $build_configdirs " in
7936 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7937 esac
7939 for ac_prog in makeinfo
7941 # Extract the first word of "$ac_prog", so it can be a program name with args.
7942 set dummy $ac_prog; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 if test -n "$MAKEINFO"; then
7949 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7958 ac_cv_prog_MAKEINFO="$ac_prog"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7962 done
7963 done
7964 IFS=$as_save_IFS
7968 MAKEINFO=$ac_cv_prog_MAKEINFO
7969 if test -n "$MAKEINFO"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7971 $as_echo "$MAKEINFO" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7978 test -n "$MAKEINFO" && break
7979 done
7980 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7982 case " $build_configdirs " in
7983 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7986 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7987 # higher, else we use the "missing" dummy.
7988 if ${MAKEINFO} --version \
7989 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7991 else
7992 MAKEINFO="$MISSING makeinfo"
7996 esac
7998 # FIXME: expect and dejagnu may become build tools?
8000 for ac_prog in expect
8002 # Extract the first word of "$ac_prog", so it can be a program name with args.
8003 set dummy $ac_prog; ac_word=$2
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8005 $as_echo_n "checking for $ac_word... " >&6; }
8006 if test "${ac_cv_prog_EXPECT+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 if test -n "$EXPECT"; then
8010 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8011 else
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 for as_dir in $PATH
8015 IFS=$as_save_IFS
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8019 ac_cv_prog_EXPECT="$ac_prog"
8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 break 2
8023 done
8024 done
8025 IFS=$as_save_IFS
8029 EXPECT=$ac_cv_prog_EXPECT
8030 if test -n "$EXPECT"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8032 $as_echo "$EXPECT" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8039 test -n "$EXPECT" && break
8040 done
8041 test -n "$EXPECT" || EXPECT="expect"
8043 case " $configdirs " in
8044 *" expect "*)
8045 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8047 esac
8049 for ac_prog in runtest
8051 # Extract the first word of "$ac_prog", so it can be a program name with args.
8052 set dummy $ac_prog; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 if test -n "$RUNTEST"; then
8059 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_prog_RUNTEST="$ac_prog"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8074 IFS=$as_save_IFS
8078 RUNTEST=$ac_cv_prog_RUNTEST
8079 if test -n "$RUNTEST"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8081 $as_echo "$RUNTEST" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8088 test -n "$RUNTEST" && break
8089 done
8090 test -n "$RUNTEST" || RUNTEST="runtest"
8092 case " $configdirs " in
8093 *" dejagnu "*)
8094 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
8096 esac
8099 # Host tools.
8100 ncn_tool_prefix=
8101 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8102 ncn_target_tool_prefix=
8103 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8107 if test -n "$AR"; then
8108 ac_cv_prog_AR=$AR
8109 elif test -n "$ac_cv_prog_AR"; then
8110 AR=$ac_cv_prog_AR
8113 if test -n "$ac_cv_prog_AR"; then
8114 for ncn_progname in ar; do
8115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8116 set dummy ${ncn_progname}; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if test "${ac_cv_prog_AR+set}" = set; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$AR"; then
8123 ac_cv_prog_AR="$AR" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8132 ac_cv_prog_AR="${ncn_progname}"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8136 done
8137 done
8138 IFS=$as_save_IFS
8142 AR=$ac_cv_prog_AR
8143 if test -n "$AR"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8145 $as_echo "$AR" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8152 done
8155 for ncn_progname in ar; do
8156 if test -n "$ncn_tool_prefix"; then
8157 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8158 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if test "${ac_cv_prog_AR+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 if test -n "$AR"; then
8165 ac_cv_prog_AR="$AR" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8178 done
8179 done
8180 IFS=$as_save_IFS
8184 AR=$ac_cv_prog_AR
8185 if test -n "$AR"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8187 $as_echo "$AR" >&6; }
8188 else
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8195 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8197 set dummy ${ncn_progname}; ac_word=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if test "${ac_cv_prog_AR+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 if test -n "$AR"; then
8204 ac_cv_prog_AR="$AR" # Let the user override the test.
8205 else
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_prog_AR="${ncn_progname}"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8217 done
8218 done
8219 IFS=$as_save_IFS
8223 AR=$ac_cv_prog_AR
8224 if test -n "$AR"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8226 $as_echo "$AR" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8234 test -n "$ac_cv_prog_AR" && break
8235 done
8237 if test -z "$ac_cv_prog_AR" ; then
8238 set dummy ar
8239 if test $build = $host ; then
8240 AR="$2"
8241 else
8242 AR="${ncn_tool_prefix}$2"
8248 if test -n "$AS"; then
8249 ac_cv_prog_AS=$AS
8250 elif test -n "$ac_cv_prog_AS"; then
8251 AS=$ac_cv_prog_AS
8254 if test -n "$ac_cv_prog_AS"; then
8255 for ncn_progname in as; do
8256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8257 set dummy ${ncn_progname}; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_AS+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$AS"; then
8264 ac_cv_prog_AS="$AS" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_AS="${ncn_progname}"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8277 done
8278 done
8279 IFS=$as_save_IFS
8283 AS=$ac_cv_prog_AS
8284 if test -n "$AS"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8286 $as_echo "$AS" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8293 done
8296 for ncn_progname in as; do
8297 if test -n "$ncn_tool_prefix"; then
8298 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8299 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if test "${ac_cv_prog_AS+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 if test -n "$AS"; then
8306 ac_cv_prog_AS="$AS" # Let the user override the test.
8307 else
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 break 2
8319 done
8320 done
8321 IFS=$as_save_IFS
8325 AS=$ac_cv_prog_AS
8326 if test -n "$AS"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8328 $as_echo "$AS" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8336 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8338 set dummy ${ncn_progname}; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if test "${ac_cv_prog_AS+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 if test -n "$AS"; then
8345 ac_cv_prog_AS="$AS" # Let the user override the test.
8346 else
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 for as_dir in $PATH
8350 IFS=$as_save_IFS
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_AS="${ncn_progname}"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 break 2
8358 done
8359 done
8360 IFS=$as_save_IFS
8364 AS=$ac_cv_prog_AS
8365 if test -n "$AS"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8367 $as_echo "$AS" >&6; }
8368 else
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8375 test -n "$ac_cv_prog_AS" && break
8376 done
8378 if test -z "$ac_cv_prog_AS" ; then
8379 set dummy as
8380 if test $build = $host ; then
8381 AS="$2"
8382 else
8383 AS="${ncn_tool_prefix}$2"
8389 if test -n "$DLLTOOL"; then
8390 ac_cv_prog_DLLTOOL=$DLLTOOL
8391 elif test -n "$ac_cv_prog_DLLTOOL"; then
8392 DLLTOOL=$ac_cv_prog_DLLTOOL
8395 if test -n "$ac_cv_prog_DLLTOOL"; then
8396 for ncn_progname in dlltool; do
8397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8398 set dummy ${ncn_progname}; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 if test -n "$DLLTOOL"; then
8405 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8406 else
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_DLLTOOL="${ncn_progname}"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8420 IFS=$as_save_IFS
8424 DLLTOOL=$ac_cv_prog_DLLTOOL
8425 if test -n "$DLLTOOL"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8427 $as_echo "$DLLTOOL" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8434 done
8437 for ncn_progname in dlltool; do
8438 if test -n "$ncn_tool_prefix"; then
8439 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8440 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 if test -n "$DLLTOOL"; then
8447 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8448 else
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8460 done
8461 done
8462 IFS=$as_save_IFS
8466 DLLTOOL=$ac_cv_prog_DLLTOOL
8467 if test -n "$DLLTOOL"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8469 $as_echo "$DLLTOOL" >&6; }
8470 else
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8477 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8479 set dummy ${ncn_progname}; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 if test -n "$DLLTOOL"; then
8486 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8487 else
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495 ac_cv_prog_DLLTOOL="${ncn_progname}"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8499 done
8500 done
8501 IFS=$as_save_IFS
8505 DLLTOOL=$ac_cv_prog_DLLTOOL
8506 if test -n "$DLLTOOL"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8508 $as_echo "$DLLTOOL" >&6; }
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8516 test -n "$ac_cv_prog_DLLTOOL" && break
8517 done
8519 if test -z "$ac_cv_prog_DLLTOOL" ; then
8520 set dummy dlltool
8521 if test $build = $host ; then
8522 DLLTOOL="$2"
8523 else
8524 DLLTOOL="${ncn_tool_prefix}$2"
8530 if test -n "$LD"; then
8531 ac_cv_prog_LD=$LD
8532 elif test -n "$ac_cv_prog_LD"; then
8533 LD=$ac_cv_prog_LD
8536 if test -n "$ac_cv_prog_LD"; then
8537 for ncn_progname in ld; do
8538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8539 set dummy ${ncn_progname}; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if test "${ac_cv_prog_LD+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 if test -n "$LD"; then
8546 ac_cv_prog_LD="$LD" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_prog_LD="${ncn_progname}"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8559 done
8560 done
8561 IFS=$as_save_IFS
8565 LD=$ac_cv_prog_LD
8566 if test -n "$LD"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8568 $as_echo "$LD" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8575 done
8578 for ncn_progname in ld; do
8579 if test -n "$ncn_tool_prefix"; then
8580 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8581 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_prog_LD+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 if test -n "$LD"; then
8588 ac_cv_prog_LD="$LD" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8601 done
8602 done
8603 IFS=$as_save_IFS
8607 LD=$ac_cv_prog_LD
8608 if test -n "$LD"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8610 $as_echo "$LD" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8618 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8620 set dummy ${ncn_progname}; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if test "${ac_cv_prog_LD+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 if test -n "$LD"; then
8627 ac_cv_prog_LD="$LD" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8636 ac_cv_prog_LD="${ncn_progname}"
8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 break 2
8640 done
8641 done
8642 IFS=$as_save_IFS
8646 LD=$ac_cv_prog_LD
8647 if test -n "$LD"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8649 $as_echo "$LD" >&6; }
8650 else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8657 test -n "$ac_cv_prog_LD" && break
8658 done
8660 if test -z "$ac_cv_prog_LD" ; then
8661 set dummy ld
8662 if test $build = $host ; then
8663 LD="$2"
8664 else
8665 LD="${ncn_tool_prefix}$2"
8671 if test -n "$LIPO"; then
8672 ac_cv_prog_LIPO=$LIPO
8673 elif test -n "$ac_cv_prog_LIPO"; then
8674 LIPO=$ac_cv_prog_LIPO
8677 if test -n "$ac_cv_prog_LIPO"; then
8678 for ncn_progname in lipo; do
8679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8680 set dummy ${ncn_progname}; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_LIPO+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 if test -n "$LIPO"; then
8687 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8692 IFS=$as_save_IFS
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696 ac_cv_prog_LIPO="${ncn_progname}"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 break 2
8700 done
8701 done
8702 IFS=$as_save_IFS
8706 LIPO=$ac_cv_prog_LIPO
8707 if test -n "$LIPO"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8709 $as_echo "$LIPO" >&6; }
8710 else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8716 done
8719 for ncn_progname in lipo; do
8720 if test -n "$ncn_tool_prefix"; then
8721 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8722 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if test "${ac_cv_prog_LIPO+set}" = set; then :
8726 $as_echo_n "(cached) " >&6
8727 else
8728 if test -n "$LIPO"; then
8729 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8734 IFS=$as_save_IFS
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8738 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 break 2
8742 done
8743 done
8744 IFS=$as_save_IFS
8748 LIPO=$ac_cv_prog_LIPO
8749 if test -n "$LIPO"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8751 $as_echo "$LIPO" >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8759 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8761 set dummy ${ncn_progname}; ac_word=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if test "${ac_cv_prog_LIPO+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
8766 else
8767 if test -n "$LIPO"; then
8768 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8769 else
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8773 IFS=$as_save_IFS
8774 test -z "$as_dir" && as_dir=.
8775 for ac_exec_ext in '' $ac_executable_extensions; do
8776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8777 ac_cv_prog_LIPO="${ncn_progname}"
8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779 break 2
8781 done
8782 done
8783 IFS=$as_save_IFS
8787 LIPO=$ac_cv_prog_LIPO
8788 if test -n "$LIPO"; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8790 $as_echo "$LIPO" >&6; }
8791 else
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8798 test -n "$ac_cv_prog_LIPO" && break
8799 done
8801 if test -z "$ac_cv_prog_LIPO" ; then
8802 set dummy lipo
8803 if test $build = $host ; then
8804 LIPO="$2"
8805 else
8806 LIPO="${ncn_tool_prefix}$2"
8812 if test -n "$NM"; then
8813 ac_cv_prog_NM=$NM
8814 elif test -n "$ac_cv_prog_NM"; then
8815 NM=$ac_cv_prog_NM
8818 if test -n "$ac_cv_prog_NM"; then
8819 for ncn_progname in nm; do
8820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8821 set dummy ${ncn_progname}; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if test "${ac_cv_prog_NM+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 if test -n "$NM"; then
8828 ac_cv_prog_NM="$NM" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837 ac_cv_prog_NM="${ncn_progname}"
8838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8841 done
8842 done
8843 IFS=$as_save_IFS
8847 NM=$ac_cv_prog_NM
8848 if test -n "$NM"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8850 $as_echo "$NM" >&6; }
8851 else
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8857 done
8860 for ncn_progname in nm; do
8861 if test -n "$ncn_tool_prefix"; then
8862 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8863 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if test "${ac_cv_prog_NM+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 if test -n "$NM"; then
8870 ac_cv_prog_NM="$NM" # Let the user override the test.
8871 else
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8883 done
8884 done
8885 IFS=$as_save_IFS
8889 NM=$ac_cv_prog_NM
8890 if test -n "$NM"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8892 $as_echo "$NM" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8900 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8902 set dummy ${ncn_progname}; ac_word=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if test "${ac_cv_prog_NM+set}" = set; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 if test -n "$NM"; then
8909 ac_cv_prog_NM="$NM" # Let the user override the test.
8910 else
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $PATH
8914 IFS=$as_save_IFS
8915 test -z "$as_dir" && as_dir=.
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8918 ac_cv_prog_NM="${ncn_progname}"
8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 break 2
8922 done
8923 done
8924 IFS=$as_save_IFS
8928 NM=$ac_cv_prog_NM
8929 if test -n "$NM"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8931 $as_echo "$NM" >&6; }
8932 else
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8939 test -n "$ac_cv_prog_NM" && break
8940 done
8942 if test -z "$ac_cv_prog_NM" ; then
8943 set dummy nm
8944 if test $build = $host ; then
8945 NM="$2"
8946 else
8947 NM="${ncn_tool_prefix}$2"
8953 if test -n "$RANLIB"; then
8954 ac_cv_prog_RANLIB=$RANLIB
8955 elif test -n "$ac_cv_prog_RANLIB"; then
8956 RANLIB=$ac_cv_prog_RANLIB
8959 if test -n "$ac_cv_prog_RANLIB"; then
8960 for ncn_progname in ranlib; do
8961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8962 set dummy ${ncn_progname}; ac_word=$2
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964 $as_echo_n "checking for $ac_word... " >&6; }
8965 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 if test -n "$RANLIB"; then
8969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8970 else
8971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972 for as_dir in $PATH
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8978 ac_cv_prog_RANLIB="${ncn_progname}"
8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8980 break 2
8982 done
8983 done
8984 IFS=$as_save_IFS
8988 RANLIB=$ac_cv_prog_RANLIB
8989 if test -n "$RANLIB"; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8991 $as_echo "$RANLIB" >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8998 done
9001 for ncn_progname in ranlib; do
9002 if test -n "$ncn_tool_prefix"; then
9003 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9004 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 if test -n "$RANLIB"; then
9011 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 break 2
9024 done
9025 done
9026 IFS=$as_save_IFS
9030 RANLIB=$ac_cv_prog_RANLIB
9031 if test -n "$RANLIB"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9033 $as_echo "$RANLIB" >&6; }
9034 else
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9041 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9043 set dummy ${ncn_progname}; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 if test -n "$RANLIB"; then
9050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9051 else
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_prog_RANLIB="${ncn_progname}"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9063 done
9064 done
9065 IFS=$as_save_IFS
9069 RANLIB=$ac_cv_prog_RANLIB
9070 if test -n "$RANLIB"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9072 $as_echo "$RANLIB" >&6; }
9073 else
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9080 test -n "$ac_cv_prog_RANLIB" && break
9081 done
9083 if test -z "$ac_cv_prog_RANLIB" ; then
9084 RANLIB="true"
9089 if test -n "$STRIP"; then
9090 ac_cv_prog_STRIP=$STRIP
9091 elif test -n "$ac_cv_prog_STRIP"; then
9092 STRIP=$ac_cv_prog_STRIP
9095 if test -n "$ac_cv_prog_STRIP"; then
9096 for ncn_progname in strip; do
9097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9098 set dummy ${ncn_progname}; ac_word=$2
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100 $as_echo_n "checking for $ac_word... " >&6; }
9101 if test "${ac_cv_prog_STRIP+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 if test -n "$STRIP"; then
9105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114 ac_cv_prog_STRIP="${ncn_progname}"
9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 break 2
9118 done
9119 done
9120 IFS=$as_save_IFS
9124 STRIP=$ac_cv_prog_STRIP
9125 if test -n "$STRIP"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9127 $as_echo "$STRIP" >&6; }
9128 else
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130 $as_echo "no" >&6; }
9134 done
9137 for ncn_progname in strip; do
9138 if test -n "$ncn_tool_prefix"; then
9139 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9140 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if test "${ac_cv_prog_STRIP+set}" = set; then :
9144 $as_echo_n "(cached) " >&6
9145 else
9146 if test -n "$STRIP"; then
9147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9148 else
9149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9150 for as_dir in $PATH
9152 IFS=$as_save_IFS
9153 test -z "$as_dir" && as_dir=.
9154 for ac_exec_ext in '' $ac_executable_extensions; do
9155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9156 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9158 break 2
9160 done
9161 done
9162 IFS=$as_save_IFS
9166 STRIP=$ac_cv_prog_STRIP
9167 if test -n "$STRIP"; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9169 $as_echo "$STRIP" >&6; }
9170 else
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9177 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9179 set dummy ${ncn_progname}; ac_word=$2
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9181 $as_echo_n "checking for $ac_word... " >&6; }
9182 if test "${ac_cv_prog_STRIP+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 if test -n "$STRIP"; then
9186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9187 else
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9191 IFS=$as_save_IFS
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9195 ac_cv_prog_STRIP="${ncn_progname}"
9196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197 break 2
9199 done
9200 done
9201 IFS=$as_save_IFS
9205 STRIP=$ac_cv_prog_STRIP
9206 if test -n "$STRIP"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9208 $as_echo "$STRIP" >&6; }
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9216 test -n "$ac_cv_prog_STRIP" && break
9217 done
9219 if test -z "$ac_cv_prog_STRIP" ; then
9220 STRIP="true"
9225 if test -n "$WINDRES"; then
9226 ac_cv_prog_WINDRES=$WINDRES
9227 elif test -n "$ac_cv_prog_WINDRES"; then
9228 WINDRES=$ac_cv_prog_WINDRES
9231 if test -n "$ac_cv_prog_WINDRES"; then
9232 for ncn_progname in windres; do
9233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9234 set dummy ${ncn_progname}; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 if test -n "$WINDRES"; then
9241 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9242 else
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250 ac_cv_prog_WINDRES="${ncn_progname}"
9251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 break 2
9254 done
9255 done
9256 IFS=$as_save_IFS
9260 WINDRES=$ac_cv_prog_WINDRES
9261 if test -n "$WINDRES"; then
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9263 $as_echo "$WINDRES" >&6; }
9264 else
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 $as_echo "no" >&6; }
9270 done
9273 for ncn_progname in windres; do
9274 if test -n "$ncn_tool_prefix"; then
9275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9276 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9278 $as_echo_n "checking for $ac_word... " >&6; }
9279 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
9281 else
9282 if test -n "$WINDRES"; then
9283 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9284 else
9285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9286 for as_dir in $PATH
9288 IFS=$as_save_IFS
9289 test -z "$as_dir" && as_dir=.
9290 for ac_exec_ext in '' $ac_executable_extensions; do
9291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9292 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9294 break 2
9296 done
9297 done
9298 IFS=$as_save_IFS
9302 WINDRES=$ac_cv_prog_WINDRES
9303 if test -n "$WINDRES"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9305 $as_echo "$WINDRES" >&6; }
9306 else
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308 $as_echo "no" >&6; }
9313 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9315 set dummy ${ncn_progname}; ac_word=$2
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9317 $as_echo_n "checking for $ac_word... " >&6; }
9318 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 if test -n "$WINDRES"; then
9322 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_prog_WINDRES="${ncn_progname}"
9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9335 done
9336 done
9337 IFS=$as_save_IFS
9341 WINDRES=$ac_cv_prog_WINDRES
9342 if test -n "$WINDRES"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9344 $as_echo "$WINDRES" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9352 test -n "$ac_cv_prog_WINDRES" && break
9353 done
9355 if test -z "$ac_cv_prog_WINDRES" ; then
9356 set dummy windres
9357 if test $build = $host ; then
9358 WINDRES="$2"
9359 else
9360 WINDRES="${ncn_tool_prefix}$2"
9366 if test -n "$WINDMC"; then
9367 ac_cv_prog_WINDMC=$WINDMC
9368 elif test -n "$ac_cv_prog_WINDMC"; then
9369 WINDMC=$ac_cv_prog_WINDMC
9372 if test -n "$ac_cv_prog_WINDMC"; then
9373 for ncn_progname in windmc; do
9374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9375 set dummy ${ncn_progname}; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 if test -n "$WINDMC"; then
9382 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9383 else
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9387 IFS=$as_save_IFS
9388 test -z "$as_dir" && as_dir=.
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391 ac_cv_prog_WINDMC="${ncn_progname}"
9392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9393 break 2
9395 done
9396 done
9397 IFS=$as_save_IFS
9401 WINDMC=$ac_cv_prog_WINDMC
9402 if test -n "$WINDMC"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9404 $as_echo "$WINDMC" >&6; }
9405 else
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9411 done
9414 for ncn_progname in windmc; do
9415 if test -n "$ncn_tool_prefix"; then
9416 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9417 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9419 $as_echo_n "checking for $ac_word... " >&6; }
9420 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422 else
9423 if test -n "$WINDMC"; then
9424 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9437 done
9438 done
9439 IFS=$as_save_IFS
9443 WINDMC=$ac_cv_prog_WINDMC
9444 if test -n "$WINDMC"; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9446 $as_echo "$WINDMC" >&6; }
9447 else
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; }
9454 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9456 set dummy ${ncn_progname}; ac_word=$2
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458 $as_echo_n "checking for $ac_word... " >&6; }
9459 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 if test -n "$WINDMC"; then
9463 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9464 else
9465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466 for as_dir in $PATH
9468 IFS=$as_save_IFS
9469 test -z "$as_dir" && as_dir=.
9470 for ac_exec_ext in '' $ac_executable_extensions; do
9471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472 ac_cv_prog_WINDMC="${ncn_progname}"
9473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9474 break 2
9476 done
9477 done
9478 IFS=$as_save_IFS
9482 WINDMC=$ac_cv_prog_WINDMC
9483 if test -n "$WINDMC"; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9485 $as_echo "$WINDMC" >&6; }
9486 else
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9493 test -n "$ac_cv_prog_WINDMC" && break
9494 done
9496 if test -z "$ac_cv_prog_WINDMC" ; then
9497 set dummy windmc
9498 if test $build = $host ; then
9499 WINDMC="$2"
9500 else
9501 WINDMC="${ncn_tool_prefix}$2"
9507 if test -n "$OBJCOPY"; then
9508 ac_cv_prog_OBJCOPY=$OBJCOPY
9509 elif test -n "$ac_cv_prog_OBJCOPY"; then
9510 OBJCOPY=$ac_cv_prog_OBJCOPY
9513 if test -n "$ac_cv_prog_OBJCOPY"; then
9514 for ncn_progname in objcopy; do
9515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9516 set dummy ${ncn_progname}; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 if test -n "$OBJCOPY"; then
9523 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9524 else
9525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9526 for as_dir in $PATH
9528 IFS=$as_save_IFS
9529 test -z "$as_dir" && as_dir=.
9530 for ac_exec_ext in '' $ac_executable_extensions; do
9531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9532 ac_cv_prog_OBJCOPY="${ncn_progname}"
9533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9534 break 2
9536 done
9537 done
9538 IFS=$as_save_IFS
9542 OBJCOPY=$ac_cv_prog_OBJCOPY
9543 if test -n "$OBJCOPY"; then
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9545 $as_echo "$OBJCOPY" >&6; }
9546 else
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9552 done
9555 for ncn_progname in objcopy; do
9556 if test -n "$ncn_tool_prefix"; then
9557 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9558 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 if test -n "$OBJCOPY"; then
9565 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9566 else
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9568 for as_dir in $PATH
9570 IFS=$as_save_IFS
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9574 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 break 2
9578 done
9579 done
9580 IFS=$as_save_IFS
9584 OBJCOPY=$ac_cv_prog_OBJCOPY
9585 if test -n "$OBJCOPY"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9587 $as_echo "$OBJCOPY" >&6; }
9588 else
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9595 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9597 set dummy ${ncn_progname}; ac_word=$2
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599 $as_echo_n "checking for $ac_word... " >&6; }
9600 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 if test -n "$OBJCOPY"; then
9604 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9605 else
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_prog_OBJCOPY="${ncn_progname}"
9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9615 break 2
9617 done
9618 done
9619 IFS=$as_save_IFS
9623 OBJCOPY=$ac_cv_prog_OBJCOPY
9624 if test -n "$OBJCOPY"; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9626 $as_echo "$OBJCOPY" >&6; }
9627 else
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629 $as_echo "no" >&6; }
9634 test -n "$ac_cv_prog_OBJCOPY" && break
9635 done
9637 if test -z "$ac_cv_prog_OBJCOPY" ; then
9638 set dummy objcopy
9639 if test $build = $host ; then
9640 OBJCOPY="$2"
9641 else
9642 OBJCOPY="${ncn_tool_prefix}$2"
9648 if test -n "$OBJDUMP"; then
9649 ac_cv_prog_OBJDUMP=$OBJDUMP
9650 elif test -n "$ac_cv_prog_OBJDUMP"; then
9651 OBJDUMP=$ac_cv_prog_OBJDUMP
9654 if test -n "$ac_cv_prog_OBJDUMP"; then
9655 for ncn_progname in objdump; do
9656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9657 set dummy ${ncn_progname}; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 if test -n "$OBJDUMP"; then
9664 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9665 else
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673 ac_cv_prog_OBJDUMP="${ncn_progname}"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 break 2
9677 done
9678 done
9679 IFS=$as_save_IFS
9683 OBJDUMP=$ac_cv_prog_OBJDUMP
9684 if test -n "$OBJDUMP"; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9686 $as_echo "$OBJDUMP" >&6; }
9687 else
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9693 done
9696 for ncn_progname in objdump; do
9697 if test -n "$ncn_tool_prefix"; then
9698 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9699 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701 $as_echo_n "checking for $ac_word... " >&6; }
9702 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 if test -n "$OBJDUMP"; then
9706 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9707 else
9708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 for as_dir in $PATH
9711 IFS=$as_save_IFS
9712 test -z "$as_dir" && as_dir=.
9713 for ac_exec_ext in '' $ac_executable_extensions; do
9714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9715 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 break 2
9719 done
9720 done
9721 IFS=$as_save_IFS
9725 OBJDUMP=$ac_cv_prog_OBJDUMP
9726 if test -n "$OBJDUMP"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9728 $as_echo "$OBJDUMP" >&6; }
9729 else
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731 $as_echo "no" >&6; }
9736 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9738 set dummy ${ncn_progname}; ac_word=$2
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9740 $as_echo_n "checking for $ac_word... " >&6; }
9741 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9742 $as_echo_n "(cached) " >&6
9743 else
9744 if test -n "$OBJDUMP"; then
9745 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9746 else
9747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 for as_dir in $PATH
9750 IFS=$as_save_IFS
9751 test -z "$as_dir" && as_dir=.
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9754 ac_cv_prog_OBJDUMP="${ncn_progname}"
9755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 break 2
9758 done
9759 done
9760 IFS=$as_save_IFS
9764 OBJDUMP=$ac_cv_prog_OBJDUMP
9765 if test -n "$OBJDUMP"; then
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9767 $as_echo "$OBJDUMP" >&6; }
9768 else
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770 $as_echo "no" >&6; }
9775 test -n "$ac_cv_prog_OBJDUMP" && break
9776 done
9778 if test -z "$ac_cv_prog_OBJDUMP" ; then
9779 set dummy objdump
9780 if test $build = $host ; then
9781 OBJDUMP="$2"
9782 else
9783 OBJDUMP="${ncn_tool_prefix}$2"
9792 # Target tools.
9794 # Check whether --with-build-time-tools was given.
9795 if test "${with_build_time_tools+set}" = set; then :
9796 withval=$with_build_time_tools; case x"$withval" in
9797 x/*) ;;
9799 with_build_time_tools=
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9801 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9803 esac
9804 else
9805 with_build_time_tools=
9811 if test -n "$CC_FOR_TARGET"; then
9812 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9813 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9814 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9817 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9818 for ncn_progname in cc gcc; do
9819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9820 set dummy ${ncn_progname}; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 if test -n "$CC_FOR_TARGET"; then
9827 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9828 else
9829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830 for as_dir in $PATH
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
9834 for ac_exec_ext in '' $ac_executable_extensions; do
9835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9836 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9838 break 2
9840 done
9841 done
9842 IFS=$as_save_IFS
9846 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9847 if test -n "$CC_FOR_TARGET"; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9849 $as_echo "$CC_FOR_TARGET" >&6; }
9850 else
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9852 $as_echo "no" >&6; }
9856 done
9859 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9860 for ncn_progname in cc gcc; do
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9862 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9863 if test -x $with_build_time_tools/${ncn_progname}; then
9864 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9866 $as_echo "yes" >&6; }
9867 break
9868 else
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9872 done
9875 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9876 for ncn_progname in cc gcc; do
9877 if test -n "$ncn_target_tool_prefix"; then
9878 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9879 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 if test -n "$CC_FOR_TARGET"; then
9886 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9887 else
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in $PATH
9891 IFS=$as_save_IFS
9892 test -z "$as_dir" && as_dir=.
9893 for ac_exec_ext in '' $ac_executable_extensions; do
9894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9895 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9899 done
9900 done
9901 IFS=$as_save_IFS
9905 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9906 if test -n "$CC_FOR_TARGET"; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9908 $as_echo "$CC_FOR_TARGET" >&6; }
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911 $as_echo "no" >&6; }
9916 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9918 set dummy ${ncn_progname}; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 if test -n "$CC_FOR_TARGET"; then
9925 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9926 else
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9930 IFS=$as_save_IFS
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936 break 2
9938 done
9939 done
9940 IFS=$as_save_IFS
9944 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9945 if test -n "$CC_FOR_TARGET"; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9947 $as_echo "$CC_FOR_TARGET" >&6; }
9948 else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9955 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9956 done
9959 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9960 set dummy cc gcc
9961 if test $build = $target ; then
9962 CC_FOR_TARGET="$2"
9963 else
9964 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9966 else
9967 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9972 if test -n "$CXX_FOR_TARGET"; then
9973 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9974 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9975 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9978 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9979 for ncn_progname in c++ g++ cxx gxx; do
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9981 set dummy ${ncn_progname}; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 if test -n "$CXX_FOR_TARGET"; then
9988 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9989 else
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10001 done
10002 done
10003 IFS=$as_save_IFS
10007 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10008 if test -n "$CXX_FOR_TARGET"; then
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10010 $as_echo "$CXX_FOR_TARGET" >&6; }
10011 else
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013 $as_echo "no" >&6; }
10017 done
10020 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
10021 for ncn_progname in c++ g++ cxx gxx; do
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10023 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10024 if test -x $with_build_time_tools/${ncn_progname}; then
10025 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10027 $as_echo "yes" >&6; }
10028 break
10029 else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031 $as_echo "no" >&6; }
10033 done
10036 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10037 for ncn_progname in c++ g++ cxx gxx; do
10038 if test -n "$ncn_target_tool_prefix"; then
10039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10042 $as_echo_n "checking for $ac_word... " >&6; }
10043 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10044 $as_echo_n "(cached) " >&6
10045 else
10046 if test -n "$CXX_FOR_TARGET"; then
10047 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10048 else
10049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
10054 for ac_exec_ext in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058 break 2
10060 done
10061 done
10062 IFS=$as_save_IFS
10066 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10067 if test -n "$CXX_FOR_TARGET"; then
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10069 $as_echo "$CXX_FOR_TARGET" >&6; }
10070 else
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10077 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10079 set dummy ${ncn_progname}; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 if test -n "$CXX_FOR_TARGET"; then
10086 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10087 else
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10099 done
10100 done
10101 IFS=$as_save_IFS
10105 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10106 if test -n "$CXX_FOR_TARGET"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10108 $as_echo "$CXX_FOR_TARGET" >&6; }
10109 else
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10116 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10117 done
10120 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10121 set dummy c++ g++ cxx gxx
10122 if test $build = $target ; then
10123 CXX_FOR_TARGET="$2"
10124 else
10125 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10127 else
10128 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10133 if test -n "$GCC_FOR_TARGET"; then
10134 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10135 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10136 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10139 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10140 for ncn_progname in gcc; do
10141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10142 set dummy ${ncn_progname}; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
10147 else
10148 if test -n "$GCC_FOR_TARGET"; then
10149 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10150 else
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160 break 2
10162 done
10163 done
10164 IFS=$as_save_IFS
10168 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10169 if test -n "$GCC_FOR_TARGET"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10171 $as_echo "$GCC_FOR_TARGET" >&6; }
10172 else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10178 done
10181 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10182 for ncn_progname in gcc; do
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10184 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10185 if test -x $with_build_time_tools/${ncn_progname}; then
10186 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10188 $as_echo "yes" >&6; }
10189 break
10190 else
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192 $as_echo "no" >&6; }
10194 done
10197 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10198 for ncn_progname in gcc; do
10199 if test -n "$ncn_target_tool_prefix"; then
10200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 if test -n "$GCC_FOR_TARGET"; then
10208 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10209 else
10210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $PATH
10213 IFS=$as_save_IFS
10214 test -z "$as_dir" && as_dir=.
10215 for ac_exec_ext in '' $ac_executable_extensions; do
10216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10217 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219 break 2
10221 done
10222 done
10223 IFS=$as_save_IFS
10227 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10228 if test -n "$GCC_FOR_TARGET"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10230 $as_echo "$GCC_FOR_TARGET" >&6; }
10231 else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233 $as_echo "no" >&6; }
10238 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10240 set dummy ${ncn_progname}; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 if test -n "$GCC_FOR_TARGET"; then
10247 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10248 else
10249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250 for as_dir in $PATH
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10256 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10260 done
10261 done
10262 IFS=$as_save_IFS
10266 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10267 if test -n "$GCC_FOR_TARGET"; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10269 $as_echo "$GCC_FOR_TARGET" >&6; }
10270 else
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10272 $as_echo "no" >&6; }
10277 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10278 done
10281 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10282 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10283 else
10284 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10289 if test -n "$GCJ_FOR_TARGET"; then
10290 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10291 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10292 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10295 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10296 for ncn_progname in gcj; do
10297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10298 set dummy ${ncn_progname}; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
10303 else
10304 if test -n "$GCJ_FOR_TARGET"; then
10305 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10306 else
10307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308 for as_dir in $PATH
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10314 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10316 break 2
10318 done
10319 done
10320 IFS=$as_save_IFS
10324 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10325 if test -n "$GCJ_FOR_TARGET"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10327 $as_echo "$GCJ_FOR_TARGET" >&6; }
10328 else
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330 $as_echo "no" >&6; }
10334 done
10337 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10338 for ncn_progname in gcj; do
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10340 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10341 if test -x $with_build_time_tools/${ncn_progname}; then
10342 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344 $as_echo "yes" >&6; }
10345 break
10346 else
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10350 done
10353 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10354 for ncn_progname in gcj; do
10355 if test -n "$ncn_target_tool_prefix"; then
10356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10357 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359 $as_echo_n "checking for $ac_word... " >&6; }
10360 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10361 $as_echo_n "(cached) " >&6
10362 else
10363 if test -n "$GCJ_FOR_TARGET"; then
10364 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10365 else
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10373 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 break 2
10377 done
10378 done
10379 IFS=$as_save_IFS
10383 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10384 if test -n "$GCJ_FOR_TARGET"; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10386 $as_echo "$GCJ_FOR_TARGET" >&6; }
10387 else
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389 $as_echo "no" >&6; }
10394 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10396 set dummy ${ncn_progname}; ac_word=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398 $as_echo_n "checking for $ac_word... " >&6; }
10399 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 if test -n "$GCJ_FOR_TARGET"; then
10403 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10404 else
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10412 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 break 2
10416 done
10417 done
10418 IFS=$as_save_IFS
10422 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10423 if test -n "$GCJ_FOR_TARGET"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10425 $as_echo "$GCJ_FOR_TARGET" >&6; }
10426 else
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10433 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10434 done
10437 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10438 set dummy gcj
10439 if test $build = $target ; then
10440 GCJ_FOR_TARGET="$2"
10441 else
10442 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10444 else
10445 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10450 if test -n "$GFORTRAN_FOR_TARGET"; then
10451 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10452 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10453 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10456 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10457 for ncn_progname in gfortran; do
10458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10459 set dummy ${ncn_progname}; ac_word=$2
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461 $as_echo_n "checking for $ac_word... " >&6; }
10462 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 if test -n "$GFORTRAN_FOR_TARGET"; then
10466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10467 else
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 break 2
10479 done
10480 done
10481 IFS=$as_save_IFS
10485 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10486 if test -n "$GFORTRAN_FOR_TARGET"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10488 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10495 done
10498 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10499 for ncn_progname in gfortran; do
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10501 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10502 if test -x $with_build_time_tools/${ncn_progname}; then
10503 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10505 $as_echo "yes" >&6; }
10506 break
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10511 done
10514 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10515 for ncn_progname in gfortran; do
10516 if test -n "$ncn_target_tool_prefix"; then
10517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10518 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 if test -n "$GFORTRAN_FOR_TARGET"; then
10525 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10526 else
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10534 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10538 done
10539 done
10540 IFS=$as_save_IFS
10544 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10545 if test -n "$GFORTRAN_FOR_TARGET"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10547 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10548 else
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10550 $as_echo "no" >&6; }
10555 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10557 set dummy ${ncn_progname}; ac_word=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 if test -n "$GFORTRAN_FOR_TARGET"; then
10564 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10565 else
10566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10573 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10577 done
10578 done
10579 IFS=$as_save_IFS
10583 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10584 if test -n "$GFORTRAN_FOR_TARGET"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10586 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10587 else
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10594 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10595 done
10598 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10599 set dummy gfortran
10600 if test $build = $target ; then
10601 GFORTRAN_FOR_TARGET="$2"
10602 else
10603 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10605 else
10606 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10611 if test -n "$GOC_FOR_TARGET"; then
10612 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10613 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10614 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10617 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10618 for ncn_progname in gccgo; do
10619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10620 set dummy ${ncn_progname}; ac_word=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625 else
10626 if test -n "$GOC_FOR_TARGET"; then
10627 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10628 else
10629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630 for as_dir in $PATH
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10640 done
10641 done
10642 IFS=$as_save_IFS
10646 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10647 if test -n "$GOC_FOR_TARGET"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10649 $as_echo "$GOC_FOR_TARGET" >&6; }
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10656 done
10659 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10660 for ncn_progname in gccgo; do
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10662 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10663 if test -x $with_build_time_tools/${ncn_progname}; then
10664 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666 $as_echo "yes" >&6; }
10667 break
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10672 done
10675 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10676 for ncn_progname in gccgo; do
10677 if test -n "$ncn_target_tool_prefix"; then
10678 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10679 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681 $as_echo_n "checking for $ac_word... " >&6; }
10682 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10683 $as_echo_n "(cached) " >&6
10684 else
10685 if test -n "$GOC_FOR_TARGET"; then
10686 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10687 else
10688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689 for as_dir in $PATH
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10699 done
10700 done
10701 IFS=$as_save_IFS
10705 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10706 if test -n "$GOC_FOR_TARGET"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10708 $as_echo "$GOC_FOR_TARGET" >&6; }
10709 else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711 $as_echo "no" >&6; }
10716 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10718 set dummy ${ncn_progname}; ac_word=$2
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10720 $as_echo_n "checking for $ac_word... " >&6; }
10721 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 if test -n "$GOC_FOR_TARGET"; then
10725 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10726 else
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10738 done
10739 done
10740 IFS=$as_save_IFS
10744 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10745 if test -n "$GOC_FOR_TARGET"; then
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10747 $as_echo "$GOC_FOR_TARGET" >&6; }
10748 else
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10750 $as_echo "no" >&6; }
10755 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10756 done
10759 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10760 set dummy gccgo
10761 if test $build = $target ; then
10762 GOC_FOR_TARGET="$2"
10763 else
10764 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10766 else
10767 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10772 cat > conftest.c << \EOF
10773 #ifdef __GNUC__
10774 gcc_yay;
10775 #endif
10777 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10778 have_gcc_for_target=yes
10779 else
10780 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10781 have_gcc_for_target=no
10783 rm conftest.c
10788 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10789 if test -n "$with_build_time_tools"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10791 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10792 if test -x $with_build_time_tools/ar; then
10793 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10794 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10796 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10797 else
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799 $as_echo "no" >&6; }
10801 elif test $build != $host && test $have_gcc_for_target = yes; then
10802 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10803 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10804 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10807 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10808 # Extract the first word of "ar", so it can be a program name with args.
10809 set dummy ar; ac_word=$2
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811 $as_echo_n "checking for $ac_word... " >&6; }
10812 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 case $AR_FOR_TARGET in
10816 [\\/]* | ?:[\\/]*)
10817 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10821 for as_dir in $gcc_cv_tool_dirs
10823 IFS=$as_save_IFS
10824 test -z "$as_dir" && as_dir=.
10825 for ac_exec_ext in '' $ac_executable_extensions; do
10826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10827 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10829 break 2
10831 done
10832 done
10833 IFS=$as_save_IFS
10836 esac
10838 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10839 if test -n "$AR_FOR_TARGET"; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10841 $as_echo "$AR_FOR_TARGET" >&6; }
10842 else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844 $as_echo "no" >&6; }
10849 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10852 if test -n "$AR_FOR_TARGET"; then
10853 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10854 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10855 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10858 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10859 for ncn_progname in ar; do
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10861 set dummy ${ncn_progname}; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10867 if test -n "$AR_FOR_TARGET"; then
10868 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10869 else
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10879 break 2
10881 done
10882 done
10883 IFS=$as_save_IFS
10887 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10888 if test -n "$AR_FOR_TARGET"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10890 $as_echo "$AR_FOR_TARGET" >&6; }
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10897 done
10900 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10901 for ncn_progname in ar; do
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10903 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10904 if test -x $with_build_time_tools/${ncn_progname}; then
10905 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10907 $as_echo "yes" >&6; }
10908 break
10909 else
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10911 $as_echo "no" >&6; }
10913 done
10916 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10917 for ncn_progname in ar; do
10918 if test -n "$ncn_target_tool_prefix"; then
10919 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10920 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922 $as_echo_n "checking for $ac_word... " >&6; }
10923 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 if test -n "$AR_FOR_TARGET"; then
10927 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10928 else
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
10934 for ac_exec_ext in '' $ac_executable_extensions; do
10935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10936 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 break 2
10940 done
10941 done
10942 IFS=$as_save_IFS
10946 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10947 if test -n "$AR_FOR_TARGET"; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10949 $as_echo "$AR_FOR_TARGET" >&6; }
10950 else
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952 $as_echo "no" >&6; }
10957 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10959 set dummy ${ncn_progname}; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 if test -n "$AR_FOR_TARGET"; then
10966 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10967 else
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10971 IFS=$as_save_IFS
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10977 break 2
10979 done
10980 done
10981 IFS=$as_save_IFS
10985 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10986 if test -n "$AR_FOR_TARGET"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10988 $as_echo "$AR_FOR_TARGET" >&6; }
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10996 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10997 done
11000 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11001 set dummy ar
11002 if test $build = $target ; then
11003 AR_FOR_TARGET="$2"
11004 else
11005 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
11007 else
11008 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
11011 else
11012 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
11018 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11019 if test -n "$with_build_time_tools"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11021 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
11022 if test -x $with_build_time_tools/as; then
11023 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11024 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11026 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11031 elif test $build != $host && test $have_gcc_for_target = yes; then
11032 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
11033 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11034 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
11037 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11038 # Extract the first word of "as", so it can be a program name with args.
11039 set dummy as; ac_word=$2
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041 $as_echo_n "checking for $ac_word... " >&6; }
11042 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044 else
11045 case $AS_FOR_TARGET in
11046 [\\/]* | ?:[\\/]*)
11047 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11051 for as_dir in $gcc_cv_tool_dirs
11053 IFS=$as_save_IFS
11054 test -z "$as_dir" && as_dir=.
11055 for ac_exec_ext in '' $ac_executable_extensions; do
11056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11057 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11059 break 2
11061 done
11062 done
11063 IFS=$as_save_IFS
11066 esac
11068 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11069 if test -n "$AS_FOR_TARGET"; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11071 $as_echo "$AS_FOR_TARGET" >&6; }
11072 else
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074 $as_echo "no" >&6; }
11079 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11082 if test -n "$AS_FOR_TARGET"; then
11083 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11084 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11085 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11088 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11089 for ncn_progname in as; do
11090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11091 set dummy ${ncn_progname}; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 if test -n "$AS_FOR_TARGET"; then
11098 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11099 else
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109 break 2
11111 done
11112 done
11113 IFS=$as_save_IFS
11117 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11118 if test -n "$AS_FOR_TARGET"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11120 $as_echo "$AS_FOR_TARGET" >&6; }
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11127 done
11130 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11131 for ncn_progname in as; do
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11133 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11134 if test -x $with_build_time_tools/${ncn_progname}; then
11135 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11137 $as_echo "yes" >&6; }
11138 break
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11143 done
11146 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11147 for ncn_progname in as; do
11148 if test -n "$ncn_target_tool_prefix"; then
11149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11150 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152 $as_echo_n "checking for $ac_word... " >&6; }
11153 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 if test -n "$AS_FOR_TARGET"; then
11157 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11158 else
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in $PATH
11162 IFS=$as_save_IFS
11163 test -z "$as_dir" && as_dir=.
11164 for ac_exec_ext in '' $ac_executable_extensions; do
11165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11166 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168 break 2
11170 done
11171 done
11172 IFS=$as_save_IFS
11176 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11177 if test -n "$AS_FOR_TARGET"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11179 $as_echo "$AS_FOR_TARGET" >&6; }
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11187 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11189 set dummy ${ncn_progname}; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 if test -n "$AS_FOR_TARGET"; then
11196 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11197 else
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11201 IFS=$as_save_IFS
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 break 2
11209 done
11210 done
11211 IFS=$as_save_IFS
11215 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11216 if test -n "$AS_FOR_TARGET"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11218 $as_echo "$AS_FOR_TARGET" >&6; }
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11226 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11227 done
11230 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11231 set dummy as
11232 if test $build = $target ; then
11233 AS_FOR_TARGET="$2"
11234 else
11235 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11237 else
11238 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11241 else
11242 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11248 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11249 if test -n "$with_build_time_tools"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11251 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11252 if test -x $with_build_time_tools/dlltool; then
11253 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11254 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11256 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259 $as_echo "no" >&6; }
11261 elif test $build != $host && test $have_gcc_for_target = yes; then
11262 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11263 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11264 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11267 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11268 # Extract the first word of "dlltool", so it can be a program name with args.
11269 set dummy dlltool; ac_word=$2
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11271 $as_echo_n "checking for $ac_word... " >&6; }
11272 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 case $DLLTOOL_FOR_TARGET in
11276 [\\/]* | ?:[\\/]*)
11277 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281 for as_dir in $gcc_cv_tool_dirs
11283 IFS=$as_save_IFS
11284 test -z "$as_dir" && as_dir=.
11285 for ac_exec_ext in '' $ac_executable_extensions; do
11286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11287 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11289 break 2
11291 done
11292 done
11293 IFS=$as_save_IFS
11296 esac
11298 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11299 if test -n "$DLLTOOL_FOR_TARGET"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11301 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11302 else
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; }
11309 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11312 if test -n "$DLLTOOL_FOR_TARGET"; then
11313 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11314 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11315 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11318 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11319 for ncn_progname in dlltool; do
11320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11321 set dummy ${ncn_progname}; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 if test -n "$DLLTOOL_FOR_TARGET"; then
11328 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11329 else
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11341 done
11342 done
11343 IFS=$as_save_IFS
11347 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11348 if test -n "$DLLTOOL_FOR_TARGET"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11350 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353 $as_echo "no" >&6; }
11357 done
11360 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11361 for ncn_progname in dlltool; do
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11363 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11364 if test -x $with_build_time_tools/${ncn_progname}; then
11365 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367 $as_echo "yes" >&6; }
11368 break
11369 else
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11373 done
11376 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11377 for ncn_progname in dlltool; do
11378 if test -n "$ncn_target_tool_prefix"; then
11379 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11380 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 if test -n "$DLLTOOL_FOR_TARGET"; then
11387 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11388 else
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11400 done
11401 done
11402 IFS=$as_save_IFS
11406 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11407 if test -n "$DLLTOOL_FOR_TARGET"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11409 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11417 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11419 set dummy ${ncn_progname}; ac_word=$2
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421 $as_echo_n "checking for $ac_word... " >&6; }
11422 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 if test -n "$DLLTOOL_FOR_TARGET"; then
11426 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11427 else
11428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429 for as_dir in $PATH
11431 IFS=$as_save_IFS
11432 test -z "$as_dir" && as_dir=.
11433 for ac_exec_ext in '' $ac_executable_extensions; do
11434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11435 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437 break 2
11439 done
11440 done
11441 IFS=$as_save_IFS
11445 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11446 if test -n "$DLLTOOL_FOR_TARGET"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11448 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451 $as_echo "no" >&6; }
11456 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11457 done
11460 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11461 set dummy dlltool
11462 if test $build = $target ; then
11463 DLLTOOL_FOR_TARGET="$2"
11464 else
11465 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11467 else
11468 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11471 else
11472 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11478 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11479 if test -n "$with_build_time_tools"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11481 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11482 if test -x $with_build_time_tools/ld; then
11483 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11484 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11486 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 $as_echo "no" >&6; }
11491 elif test $build != $host && test $have_gcc_for_target = yes; then
11492 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11493 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11494 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11497 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11498 # Extract the first word of "ld", so it can be a program name with args.
11499 set dummy ld; ac_word=$2
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 case $LD_FOR_TARGET in
11506 [\\/]* | ?:[\\/]*)
11507 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11511 for as_dir in $gcc_cv_tool_dirs
11513 IFS=$as_save_IFS
11514 test -z "$as_dir" && as_dir=.
11515 for ac_exec_ext in '' $ac_executable_extensions; do
11516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11517 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11519 break 2
11521 done
11522 done
11523 IFS=$as_save_IFS
11526 esac
11528 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11529 if test -n "$LD_FOR_TARGET"; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11531 $as_echo "$LD_FOR_TARGET" >&6; }
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11539 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11542 if test -n "$LD_FOR_TARGET"; then
11543 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11544 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11545 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11548 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11549 for ncn_progname in ld; do
11550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11551 set dummy ${ncn_progname}; ac_word=$2
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553 $as_echo_n "checking for $ac_word... " >&6; }
11554 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 if test -n "$LD_FOR_TARGET"; then
11558 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11559 else
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11571 done
11572 done
11573 IFS=$as_save_IFS
11577 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11578 if test -n "$LD_FOR_TARGET"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11580 $as_echo "$LD_FOR_TARGET" >&6; }
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11587 done
11590 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11591 for ncn_progname in ld; do
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11593 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11594 if test -x $with_build_time_tools/${ncn_progname}; then
11595 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11597 $as_echo "yes" >&6; }
11598 break
11599 else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11603 done
11606 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11607 for ncn_progname in ld; do
11608 if test -n "$ncn_target_tool_prefix"; then
11609 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11610 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612 $as_echo_n "checking for $ac_word... " >&6; }
11613 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 if test -n "$LD_FOR_TARGET"; then
11617 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11618 else
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11622 IFS=$as_save_IFS
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11626 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 break 2
11630 done
11631 done
11632 IFS=$as_save_IFS
11636 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11637 if test -n "$LD_FOR_TARGET"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11639 $as_echo "$LD_FOR_TARGET" >&6; }
11640 else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11647 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11649 set dummy ${ncn_progname}; ac_word=$2
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11651 $as_echo_n "checking for $ac_word... " >&6; }
11652 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 if test -n "$LD_FOR_TARGET"; then
11656 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11657 else
11658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11661 IFS=$as_save_IFS
11662 test -z "$as_dir" && as_dir=.
11663 for ac_exec_ext in '' $ac_executable_extensions; do
11664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11665 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11667 break 2
11669 done
11670 done
11671 IFS=$as_save_IFS
11675 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11676 if test -n "$LD_FOR_TARGET"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11678 $as_echo "$LD_FOR_TARGET" >&6; }
11679 else
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11686 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11687 done
11690 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11691 set dummy ld
11692 if test $build = $target ; then
11693 LD_FOR_TARGET="$2"
11694 else
11695 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11697 else
11698 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11701 else
11702 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11708 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11709 if test -n "$with_build_time_tools"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11711 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11712 if test -x $with_build_time_tools/lipo; then
11713 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11714 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11716 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11721 elif test $build != $host && test $have_gcc_for_target = yes; then
11722 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11723 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11724 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11727 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11728 # Extract the first word of "lipo", so it can be a program name with args.
11729 set dummy lipo; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 case $LIPO_FOR_TARGET in
11736 [\\/]* | ?:[\\/]*)
11737 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $gcc_cv_tool_dirs
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11751 done
11752 done
11753 IFS=$as_save_IFS
11756 esac
11758 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11759 if test -n "$LIPO_FOR_TARGET"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11761 $as_echo "$LIPO_FOR_TARGET" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11769 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11772 if test -n "$LIPO_FOR_TARGET"; then
11773 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11774 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11775 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11778 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11779 for ncn_progname in lipo; do
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11781 set dummy ${ncn_progname}; ac_word=$2
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783 $as_echo_n "checking for $ac_word... " >&6; }
11784 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 if test -n "$LIPO_FOR_TARGET"; then
11788 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11789 else
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11797 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11799 break 2
11801 done
11802 done
11803 IFS=$as_save_IFS
11807 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11808 if test -n "$LIPO_FOR_TARGET"; then
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11810 $as_echo "$LIPO_FOR_TARGET" >&6; }
11811 else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11817 done
11820 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11821 for ncn_progname in lipo; do
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11823 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11824 if test -x $with_build_time_tools/${ncn_progname}; then
11825 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827 $as_echo "yes" >&6; }
11828 break
11829 else
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11831 $as_echo "no" >&6; }
11833 done
11836 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11837 for ncn_progname in lipo; do
11838 if test -n "$ncn_target_tool_prefix"; then
11839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11840 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842 $as_echo_n "checking for $ac_word... " >&6; }
11843 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 if test -n "$LIPO_FOR_TARGET"; then
11847 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11848 else
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11856 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 break 2
11860 done
11861 done
11862 IFS=$as_save_IFS
11866 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11867 if test -n "$LIPO_FOR_TARGET"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11869 $as_echo "$LIPO_FOR_TARGET" >&6; }
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11877 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11879 set dummy ${ncn_progname}; ac_word=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11881 $as_echo_n "checking for $ac_word... " >&6; }
11882 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 if test -n "$LIPO_FOR_TARGET"; then
11886 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11887 else
11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11891 IFS=$as_save_IFS
11892 test -z "$as_dir" && as_dir=.
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11895 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 break 2
11899 done
11900 done
11901 IFS=$as_save_IFS
11905 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11906 if test -n "$LIPO_FOR_TARGET"; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11908 $as_echo "$LIPO_FOR_TARGET" >&6; }
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11916 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11917 done
11920 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11921 set dummy lipo
11922 if test $build = $target ; then
11923 LIPO_FOR_TARGET="$2"
11924 else
11925 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11927 else
11928 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11931 else
11932 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11938 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11939 if test -n "$with_build_time_tools"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11941 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11942 if test -x $with_build_time_tools/nm; then
11943 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11944 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11946 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11947 else
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11951 elif test $build != $host && test $have_gcc_for_target = yes; then
11952 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11953 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11954 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11957 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11958 # Extract the first word of "nm", so it can be a program name with args.
11959 set dummy nm; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 case $NM_FOR_TARGET in
11966 [\\/]* | ?:[\\/]*)
11967 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $gcc_cv_tool_dirs
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11977 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 break 2
11981 done
11982 done
11983 IFS=$as_save_IFS
11986 esac
11988 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11989 if test -n "$NM_FOR_TARGET"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11991 $as_echo "$NM_FOR_TARGET" >&6; }
11992 else
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11999 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12002 if test -n "$NM_FOR_TARGET"; then
12003 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12004 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12005 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12008 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12009 for ncn_progname in nm; do
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 if test -n "$NM_FOR_TARGET"; then
12018 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12019 else
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12027 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12029 break 2
12031 done
12032 done
12033 IFS=$as_save_IFS
12037 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12038 if test -n "$NM_FOR_TARGET"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12040 $as_echo "$NM_FOR_TARGET" >&6; }
12041 else
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12047 done
12050 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
12051 for ncn_progname in nm; do
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12053 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12054 if test -x $with_build_time_tools/${ncn_progname}; then
12055 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12057 $as_echo "yes" >&6; }
12058 break
12059 else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12063 done
12066 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12067 for ncn_progname in nm; do
12068 if test -n "$ncn_target_tool_prefix"; then
12069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12070 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072 $as_echo_n "checking for $ac_word... " >&6; }
12073 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 if test -n "$NM_FOR_TARGET"; then
12077 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12078 else
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
12085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12086 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 break 2
12090 done
12091 done
12092 IFS=$as_save_IFS
12096 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12097 if test -n "$NM_FOR_TARGET"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12099 $as_echo "$NM_FOR_TARGET" >&6; }
12100 else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12107 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12109 set dummy ${ncn_progname}; ac_word=$2
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12111 $as_echo_n "checking for $ac_word... " >&6; }
12112 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 if test -n "$NM_FOR_TARGET"; then
12116 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12117 else
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12125 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12127 break 2
12129 done
12130 done
12131 IFS=$as_save_IFS
12135 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12136 if test -n "$NM_FOR_TARGET"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12138 $as_echo "$NM_FOR_TARGET" >&6; }
12139 else
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12146 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12147 done
12150 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12151 set dummy nm
12152 if test $build = $target ; then
12153 NM_FOR_TARGET="$2"
12154 else
12155 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12157 else
12158 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12161 else
12162 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12168 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12169 if test -n "$with_build_time_tools"; then
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12171 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12172 if test -x $with_build_time_tools/objdump; then
12173 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12174 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12176 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12177 else
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179 $as_echo "no" >&6; }
12181 elif test $build != $host && test $have_gcc_for_target = yes; then
12182 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12183 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12184 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12187 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12188 # Extract the first word of "objdump", so it can be a program name with args.
12189 set dummy objdump; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 case $OBJDUMP_FOR_TARGET in
12196 [\\/]* | ?:[\\/]*)
12197 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201 for as_dir in $gcc_cv_tool_dirs
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12207 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12211 done
12212 done
12213 IFS=$as_save_IFS
12216 esac
12218 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12219 if test -n "$OBJDUMP_FOR_TARGET"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12221 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12222 else
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224 $as_echo "no" >&6; }
12229 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12232 if test -n "$OBJDUMP_FOR_TARGET"; then
12233 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12234 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12235 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12238 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12239 for ncn_progname in objdump; do
12240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12241 set dummy ${ncn_progname}; ac_word=$2
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243 $as_echo_n "checking for $ac_word... " >&6; }
12244 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 if test -n "$OBJDUMP_FOR_TARGET"; then
12248 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12249 else
12250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251 for as_dir in $PATH
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12261 done
12262 done
12263 IFS=$as_save_IFS
12267 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12268 if test -n "$OBJDUMP_FOR_TARGET"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12270 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12271 else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 $as_echo "no" >&6; }
12277 done
12280 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12281 for ncn_progname in objdump; do
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12283 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12284 if test -x $with_build_time_tools/${ncn_progname}; then
12285 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12287 $as_echo "yes" >&6; }
12288 break
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12293 done
12296 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12297 for ncn_progname in objdump; do
12298 if test -n "$ncn_target_tool_prefix"; then
12299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 if test -n "$OBJDUMP_FOR_TARGET"; then
12307 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12308 else
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
12314 for ac_exec_ext in '' $ac_executable_extensions; do
12315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12316 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12318 break 2
12320 done
12321 done
12322 IFS=$as_save_IFS
12326 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12327 if test -n "$OBJDUMP_FOR_TARGET"; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12329 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12330 else
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12337 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12339 set dummy ${ncn_progname}; ac_word=$2
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12341 $as_echo_n "checking for $ac_word... " >&6; }
12342 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 if test -n "$OBJDUMP_FOR_TARGET"; then
12346 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12347 else
12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349 for as_dir in $PATH
12351 IFS=$as_save_IFS
12352 test -z "$as_dir" && as_dir=.
12353 for ac_exec_ext in '' $ac_executable_extensions; do
12354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12355 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 break 2
12359 done
12360 done
12361 IFS=$as_save_IFS
12365 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12366 if test -n "$OBJDUMP_FOR_TARGET"; then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12368 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12369 else
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371 $as_echo "no" >&6; }
12376 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12377 done
12380 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12381 set dummy objdump
12382 if test $build = $target ; then
12383 OBJDUMP_FOR_TARGET="$2"
12384 else
12385 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12387 else
12388 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12391 else
12392 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12398 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12399 if test -n "$with_build_time_tools"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12401 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12402 if test -x $with_build_time_tools/ranlib; then
12403 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12404 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12406 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12411 elif test $build != $host && test $have_gcc_for_target = yes; then
12412 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12413 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12414 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12417 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12418 # Extract the first word of "ranlib", so it can be a program name with args.
12419 set dummy ranlib; ac_word=$2
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421 $as_echo_n "checking for $ac_word... " >&6; }
12422 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12423 $as_echo_n "(cached) " >&6
12424 else
12425 case $RANLIB_FOR_TARGET in
12426 [\\/]* | ?:[\\/]*)
12427 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431 for as_dir in $gcc_cv_tool_dirs
12433 IFS=$as_save_IFS
12434 test -z "$as_dir" && as_dir=.
12435 for ac_exec_ext in '' $ac_executable_extensions; do
12436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12437 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12439 break 2
12441 done
12442 done
12443 IFS=$as_save_IFS
12446 esac
12448 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12449 if test -n "$RANLIB_FOR_TARGET"; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12451 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12452 else
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454 $as_echo "no" >&6; }
12459 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12462 if test -n "$RANLIB_FOR_TARGET"; then
12463 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12464 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12465 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12468 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12469 for ncn_progname in ranlib; do
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12471 set dummy ${ncn_progname}; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 if test -n "$RANLIB_FOR_TARGET"; then
12478 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 break 2
12491 done
12492 done
12493 IFS=$as_save_IFS
12497 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12498 if test -n "$RANLIB_FOR_TARGET"; then
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12500 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12501 else
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503 $as_echo "no" >&6; }
12507 done
12510 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12511 for ncn_progname in ranlib; do
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12513 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12514 if test -x $with_build_time_tools/${ncn_progname}; then
12515 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12517 $as_echo "yes" >&6; }
12518 break
12519 else
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12523 done
12526 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12527 for ncn_progname in ranlib; do
12528 if test -n "$ncn_target_tool_prefix"; then
12529 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12530 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532 $as_echo_n "checking for $ac_word... " >&6; }
12533 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 if test -n "$RANLIB_FOR_TARGET"; then
12537 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12538 else
12539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12540 for as_dir in $PATH
12542 IFS=$as_save_IFS
12543 test -z "$as_dir" && as_dir=.
12544 for ac_exec_ext in '' $ac_executable_extensions; do
12545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12546 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12548 break 2
12550 done
12551 done
12552 IFS=$as_save_IFS
12556 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12557 if test -n "$RANLIB_FOR_TARGET"; then
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12559 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12560 else
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562 $as_echo "no" >&6; }
12567 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12569 set dummy ${ncn_progname}; ac_word=$2
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12571 $as_echo_n "checking for $ac_word... " >&6; }
12572 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 if test -n "$RANLIB_FOR_TARGET"; then
12576 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12577 else
12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579 for as_dir in $PATH
12581 IFS=$as_save_IFS
12582 test -z "$as_dir" && as_dir=.
12583 for ac_exec_ext in '' $ac_executable_extensions; do
12584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12585 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12587 break 2
12589 done
12590 done
12591 IFS=$as_save_IFS
12595 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12596 if test -n "$RANLIB_FOR_TARGET"; then
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12598 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12599 else
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12606 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12607 done
12610 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12611 set dummy ranlib
12612 if test $build = $target ; then
12613 RANLIB_FOR_TARGET="$2"
12614 else
12615 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12617 else
12618 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12621 else
12622 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12628 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12629 if test -n "$with_build_time_tools"; then
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12631 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12632 if test -x $with_build_time_tools/strip; then
12633 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12634 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12636 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12637 else
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12641 elif test $build != $host && test $have_gcc_for_target = yes; then
12642 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12643 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12644 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12647 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12648 # Extract the first word of "strip", so it can be a program name with args.
12649 set dummy strip; ac_word=$2
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651 $as_echo_n "checking for $ac_word... " >&6; }
12652 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 case $STRIP_FOR_TARGET in
12656 [\\/]* | ?:[\\/]*)
12657 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 for as_dir in $gcc_cv_tool_dirs
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 for ac_exec_ext in '' $ac_executable_extensions; do
12666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12667 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669 break 2
12671 done
12672 done
12673 IFS=$as_save_IFS
12676 esac
12678 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12679 if test -n "$STRIP_FOR_TARGET"; then
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12681 $as_echo "$STRIP_FOR_TARGET" >&6; }
12682 else
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; }
12689 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12692 if test -n "$STRIP_FOR_TARGET"; then
12693 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12694 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12695 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12698 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12699 for ncn_progname in strip; do
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12701 set dummy ${ncn_progname}; ac_word=$2
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703 $as_echo_n "checking for $ac_word... " >&6; }
12704 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 if test -n "$STRIP_FOR_TARGET"; then
12708 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12709 else
12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711 for as_dir in $PATH
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12717 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719 break 2
12721 done
12722 done
12723 IFS=$as_save_IFS
12727 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12728 if test -n "$STRIP_FOR_TARGET"; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12730 $as_echo "$STRIP_FOR_TARGET" >&6; }
12731 else
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12737 done
12740 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12741 for ncn_progname in strip; do
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12743 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12744 if test -x $with_build_time_tools/${ncn_progname}; then
12745 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12747 $as_echo "yes" >&6; }
12748 break
12749 else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751 $as_echo "no" >&6; }
12753 done
12756 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12757 for ncn_progname in strip; do
12758 if test -n "$ncn_target_tool_prefix"; then
12759 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12760 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 if test -n "$STRIP_FOR_TARGET"; then
12767 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12768 else
12769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770 for as_dir in $PATH
12772 IFS=$as_save_IFS
12773 test -z "$as_dir" && as_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12776 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12778 break 2
12780 done
12781 done
12782 IFS=$as_save_IFS
12786 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12787 if test -n "$STRIP_FOR_TARGET"; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12789 $as_echo "$STRIP_FOR_TARGET" >&6; }
12790 else
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12797 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12799 set dummy ${ncn_progname}; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 if test -n "$STRIP_FOR_TARGET"; then
12806 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12807 else
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12819 done
12820 done
12821 IFS=$as_save_IFS
12825 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12826 if test -n "$STRIP_FOR_TARGET"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12828 $as_echo "$STRIP_FOR_TARGET" >&6; }
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12836 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12837 done
12840 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12841 set dummy strip
12842 if test $build = $target ; then
12843 STRIP_FOR_TARGET="$2"
12844 else
12845 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12847 else
12848 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12851 else
12852 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12858 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12859 if test -n "$with_build_time_tools"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12861 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12862 if test -x $with_build_time_tools/windres; then
12863 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12864 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12866 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12871 elif test $build != $host && test $have_gcc_for_target = yes; then
12872 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12873 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12874 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12877 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12878 # Extract the first word of "windres", so it can be a program name with args.
12879 set dummy windres; ac_word=$2
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12881 $as_echo_n "checking for $ac_word... " >&6; }
12882 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 case $WINDRES_FOR_TARGET in
12886 [\\/]* | ?:[\\/]*)
12887 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $gcc_cv_tool_dirs
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
12896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12897 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12899 break 2
12901 done
12902 done
12903 IFS=$as_save_IFS
12906 esac
12908 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12909 if test -n "$WINDRES_FOR_TARGET"; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12911 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12912 else
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 $as_echo "no" >&6; }
12919 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12922 if test -n "$WINDRES_FOR_TARGET"; then
12923 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12924 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12925 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12928 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12929 for ncn_progname in windres; do
12930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12931 set dummy ${ncn_progname}; ac_word=$2
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933 $as_echo_n "checking for $ac_word... " >&6; }
12934 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 if test -n "$WINDRES_FOR_TARGET"; then
12938 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12939 else
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12951 done
12952 done
12953 IFS=$as_save_IFS
12957 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12958 if test -n "$WINDRES_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12960 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12961 else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12967 done
12970 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12971 for ncn_progname in windres; do
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12973 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12974 if test -x $with_build_time_tools/${ncn_progname}; then
12975 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12977 $as_echo "yes" >&6; }
12978 break
12979 else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 $as_echo "no" >&6; }
12983 done
12986 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12987 for ncn_progname in windres; do
12988 if test -n "$ncn_target_tool_prefix"; then
12989 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12990 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992 $as_echo_n "checking for $ac_word... " >&6; }
12993 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12995 else
12996 if test -n "$WINDRES_FOR_TARGET"; then
12997 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12998 else
12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000 for as_dir in $PATH
13002 IFS=$as_save_IFS
13003 test -z "$as_dir" && as_dir=.
13004 for ac_exec_ext in '' $ac_executable_extensions; do
13005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13006 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 break 2
13010 done
13011 done
13012 IFS=$as_save_IFS
13016 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13017 if test -n "$WINDRES_FOR_TARGET"; then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13019 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13020 else
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13022 $as_echo "no" >&6; }
13027 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13029 set dummy ${ncn_progname}; ac_word=$2
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13031 $as_echo_n "checking for $ac_word... " >&6; }
13032 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035 if test -n "$WINDRES_FOR_TARGET"; then
13036 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13037 else
13038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039 for as_dir in $PATH
13041 IFS=$as_save_IFS
13042 test -z "$as_dir" && as_dir=.
13043 for ac_exec_ext in '' $ac_executable_extensions; do
13044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13045 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 break 2
13049 done
13050 done
13051 IFS=$as_save_IFS
13055 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13056 if test -n "$WINDRES_FOR_TARGET"; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13058 $as_echo "$WINDRES_FOR_TARGET" >&6; }
13059 else
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13061 $as_echo "no" >&6; }
13066 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13067 done
13070 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13071 set dummy windres
13072 if test $build = $target ; then
13073 WINDRES_FOR_TARGET="$2"
13074 else
13075 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
13077 else
13078 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
13081 else
13082 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
13088 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13089 if test -n "$with_build_time_tools"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13091 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
13092 if test -x $with_build_time_tools/windmc; then
13093 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13094 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13096 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13101 elif test $build != $host && test $have_gcc_for_target = yes; then
13102 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13103 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13104 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13107 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13108 # Extract the first word of "windmc", so it can be a program name with args.
13109 set dummy windmc; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111 $as_echo_n "checking for $ac_word... " >&6; }
13112 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 case $WINDMC_FOR_TARGET in
13116 [\\/]* | ?:[\\/]*)
13117 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $gcc_cv_tool_dirs
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 break 2
13131 done
13132 done
13133 IFS=$as_save_IFS
13136 esac
13138 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13139 if test -n "$WINDMC_FOR_TARGET"; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13141 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13142 else
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13149 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13152 if test -n "$WINDMC_FOR_TARGET"; then
13153 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13154 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13155 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13158 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13159 for ncn_progname in windmc; do
13160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13161 set dummy ${ncn_progname}; ac_word=$2
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163 $as_echo_n "checking for $ac_word... " >&6; }
13164 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 if test -n "$WINDMC_FOR_TARGET"; then
13168 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13169 else
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171 for as_dir in $PATH
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13177 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13179 break 2
13181 done
13182 done
13183 IFS=$as_save_IFS
13187 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13188 if test -n "$WINDMC_FOR_TARGET"; then
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13190 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13191 else
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193 $as_echo "no" >&6; }
13197 done
13200 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13201 for ncn_progname in windmc; do
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13203 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13204 if test -x $with_build_time_tools/${ncn_progname}; then
13205 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13207 $as_echo "yes" >&6; }
13208 break
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13213 done
13216 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13217 for ncn_progname in windmc; do
13218 if test -n "$ncn_target_tool_prefix"; then
13219 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13220 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 if test -n "$WINDMC_FOR_TARGET"; then
13227 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13228 else
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13232 IFS=$as_save_IFS
13233 test -z "$as_dir" && as_dir=.
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13236 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 break 2
13240 done
13241 done
13242 IFS=$as_save_IFS
13246 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13247 if test -n "$WINDMC_FOR_TARGET"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13249 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13257 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13259 set dummy ${ncn_progname}; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13261 $as_echo_n "checking for $ac_word... " >&6; }
13262 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 if test -n "$WINDMC_FOR_TARGET"; then
13266 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13267 else
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13279 done
13280 done
13281 IFS=$as_save_IFS
13285 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13286 if test -n "$WINDMC_FOR_TARGET"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13288 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13289 else
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13296 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13297 done
13300 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13301 set dummy windmc
13302 if test $build = $target ; then
13303 WINDMC_FOR_TARGET="$2"
13304 else
13305 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13307 else
13308 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13311 else
13312 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13316 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13319 $as_echo_n "checking where to find the target ar... " >&6; }
13320 if test "x${build}" != "x${host}" ; then
13321 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13322 # We already found the complete path
13323 ac_dir=`dirname $AR_FOR_TARGET`
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13325 $as_echo "pre-installed in $ac_dir" >&6; }
13326 else
13327 # Canadian cross, just use what we found
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13329 $as_echo "pre-installed" >&6; }
13331 else
13332 ok=yes
13333 case " ${configdirs} " in
13334 *" binutils "*) ;;
13335 *) ok=no ;;
13336 esac
13338 if test $ok = yes; then
13339 # An in-tree tool is available and we can use it
13340 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13342 $as_echo "just compiled" >&6; }
13343 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13344 # We already found the complete path
13345 ac_dir=`dirname $AR_FOR_TARGET`
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13347 $as_echo "pre-installed in $ac_dir" >&6; }
13348 elif test "x$target" = "x$host"; then
13349 # We can use an host tool
13350 AR_FOR_TARGET='$(AR)'
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13352 $as_echo "host tool" >&6; }
13353 else
13354 # We need a cross tool
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13356 $as_echo "pre-installed" >&6; }
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13361 $as_echo_n "checking where to find the target as... " >&6; }
13362 if test "x${build}" != "x${host}" ; then
13363 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13364 # We already found the complete path
13365 ac_dir=`dirname $AS_FOR_TARGET`
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13367 $as_echo "pre-installed in $ac_dir" >&6; }
13368 else
13369 # Canadian cross, just use what we found
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13371 $as_echo "pre-installed" >&6; }
13373 else
13374 ok=yes
13375 case " ${configdirs} " in
13376 *" gas "*) ;;
13377 *) ok=no ;;
13378 esac
13380 if test $ok = yes; then
13381 # An in-tree tool is available and we can use it
13382 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13384 $as_echo "just compiled" >&6; }
13385 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13386 # We already found the complete path
13387 ac_dir=`dirname $AS_FOR_TARGET`
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13389 $as_echo "pre-installed in $ac_dir" >&6; }
13390 elif test "x$target" = "x$host"; then
13391 # We can use an host tool
13392 AS_FOR_TARGET='$(AS)'
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13394 $as_echo "host tool" >&6; }
13395 else
13396 # We need a cross tool
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13398 $as_echo "pre-installed" >&6; }
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13403 $as_echo_n "checking where to find the target cc... " >&6; }
13404 if test "x${build}" != "x${host}" ; then
13405 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13406 # We already found the complete path
13407 ac_dir=`dirname $CC_FOR_TARGET`
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13409 $as_echo "pre-installed in $ac_dir" >&6; }
13410 else
13411 # Canadian cross, just use what we found
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13413 $as_echo "pre-installed" >&6; }
13415 else
13416 ok=yes
13417 case " ${configdirs} " in
13418 *" gcc "*) ;;
13419 *) ok=no ;;
13420 esac
13422 if test $ok = yes; then
13423 # An in-tree tool is available and we can use it
13424 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13426 $as_echo "just compiled" >&6; }
13427 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13428 # We already found the complete path
13429 ac_dir=`dirname $CC_FOR_TARGET`
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13431 $as_echo "pre-installed in $ac_dir" >&6; }
13432 elif test "x$target" = "x$host"; then
13433 # We can use an host tool
13434 CC_FOR_TARGET='$(CC)'
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13436 $as_echo "host tool" >&6; }
13437 else
13438 # We need a cross tool
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13440 $as_echo "pre-installed" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13445 $as_echo_n "checking where to find the target c++... " >&6; }
13446 if test "x${build}" != "x${host}" ; then
13447 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13448 # We already found the complete path
13449 ac_dir=`dirname $CXX_FOR_TARGET`
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13451 $as_echo "pre-installed in $ac_dir" >&6; }
13452 else
13453 # Canadian cross, just use what we found
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455 $as_echo "pre-installed" >&6; }
13457 else
13458 ok=yes
13459 case " ${configdirs} " in
13460 *" gcc "*) ;;
13461 *) ok=no ;;
13462 esac
13463 case ,${enable_languages}, in
13464 *,c++,*) ;;
13465 *) ok=no ;;
13466 esac
13467 if test $ok = yes; then
13468 # An in-tree tool is available and we can use it
13469 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'
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13471 $as_echo "just compiled" >&6; }
13472 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13473 # We already found the complete path
13474 ac_dir=`dirname $CXX_FOR_TARGET`
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13476 $as_echo "pre-installed in $ac_dir" >&6; }
13477 elif test "x$target" = "x$host"; then
13478 # We can use an host tool
13479 CXX_FOR_TARGET='$(CXX)'
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13481 $as_echo "host tool" >&6; }
13482 else
13483 # We need a cross tool
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13485 $as_echo "pre-installed" >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13490 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13491 if test "x${build}" != "x${host}" ; then
13492 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13493 # We already found the complete path
13494 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13496 $as_echo "pre-installed in $ac_dir" >&6; }
13497 else
13498 # Canadian cross, just use what we found
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13500 $as_echo "pre-installed" >&6; }
13502 else
13503 ok=yes
13504 case " ${configdirs} " in
13505 *" gcc "*) ;;
13506 *) ok=no ;;
13507 esac
13508 case ,${enable_languages}, in
13509 *,c++,*) ;;
13510 *) ok=no ;;
13511 esac
13512 if test $ok = yes; then
13513 # An in-tree tool is available and we can use it
13514 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'
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13516 $as_echo "just compiled" >&6; }
13517 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13518 # We already found the complete path
13519 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13521 $as_echo "pre-installed in $ac_dir" >&6; }
13522 elif test "x$target" = "x$host"; then
13523 # We can use an host tool
13524 RAW_CXX_FOR_TARGET='$(CXX)'
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13526 $as_echo "host tool" >&6; }
13527 else
13528 # We need a cross tool
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13530 $as_echo "pre-installed" >&6; }
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13535 $as_echo_n "checking where to find the target dlltool... " >&6; }
13536 if test "x${build}" != "x${host}" ; then
13537 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13538 # We already found the complete path
13539 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13541 $as_echo "pre-installed in $ac_dir" >&6; }
13542 else
13543 # Canadian cross, just use what we found
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13545 $as_echo "pre-installed" >&6; }
13547 else
13548 ok=yes
13549 case " ${configdirs} " in
13550 *" binutils "*) ;;
13551 *) ok=no ;;
13552 esac
13554 if test $ok = yes; then
13555 # An in-tree tool is available and we can use it
13556 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13558 $as_echo "just compiled" >&6; }
13559 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13560 # We already found the complete path
13561 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13563 $as_echo "pre-installed in $ac_dir" >&6; }
13564 elif test "x$target" = "x$host"; then
13565 # We can use an host tool
13566 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13568 $as_echo "host tool" >&6; }
13569 else
13570 # We need a cross tool
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13572 $as_echo "pre-installed" >&6; }
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13577 $as_echo_n "checking where to find the target gcc... " >&6; }
13578 if test "x${build}" != "x${host}" ; then
13579 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13580 # We already found the complete path
13581 ac_dir=`dirname $GCC_FOR_TARGET`
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13583 $as_echo "pre-installed in $ac_dir" >&6; }
13584 else
13585 # Canadian cross, just use what we found
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13587 $as_echo "pre-installed" >&6; }
13589 else
13590 ok=yes
13591 case " ${configdirs} " in
13592 *" gcc "*) ;;
13593 *) ok=no ;;
13594 esac
13596 if test $ok = yes; then
13597 # An in-tree tool is available and we can use it
13598 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13600 $as_echo "just compiled" >&6; }
13601 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13602 # We already found the complete path
13603 ac_dir=`dirname $GCC_FOR_TARGET`
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13605 $as_echo "pre-installed in $ac_dir" >&6; }
13606 elif test "x$target" = "x$host"; then
13607 # We can use an host tool
13608 GCC_FOR_TARGET='$()'
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13610 $as_echo "host tool" >&6; }
13611 else
13612 # We need a cross tool
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13614 $as_echo "pre-installed" >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13619 $as_echo_n "checking where to find the target gcj... " >&6; }
13620 if test "x${build}" != "x${host}" ; then
13621 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13622 # We already found the complete path
13623 ac_dir=`dirname $GCJ_FOR_TARGET`
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13625 $as_echo "pre-installed in $ac_dir" >&6; }
13626 else
13627 # Canadian cross, just use what we found
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13629 $as_echo "pre-installed" >&6; }
13631 else
13632 ok=yes
13633 case " ${configdirs} " in
13634 *" gcc "*) ;;
13635 *) ok=no ;;
13636 esac
13637 case ,${enable_languages}, in
13638 *,java,*) ;;
13639 *) ok=no ;;
13640 esac
13641 if test $ok = yes; then
13642 # An in-tree tool is available and we can use it
13643 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13645 $as_echo "just compiled" >&6; }
13646 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13647 # We already found the complete path
13648 ac_dir=`dirname $GCJ_FOR_TARGET`
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13650 $as_echo "pre-installed in $ac_dir" >&6; }
13651 elif test "x$target" = "x$host"; then
13652 # We can use an host tool
13653 GCJ_FOR_TARGET='$(GCJ)'
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13655 $as_echo "host tool" >&6; }
13656 else
13657 # We need a cross tool
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659 $as_echo "pre-installed" >&6; }
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13664 $as_echo_n "checking where to find the target gfortran... " >&6; }
13665 if test "x${build}" != "x${host}" ; then
13666 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13667 # We already found the complete path
13668 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670 $as_echo "pre-installed in $ac_dir" >&6; }
13671 else
13672 # Canadian cross, just use what we found
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674 $as_echo "pre-installed" >&6; }
13676 else
13677 ok=yes
13678 case " ${configdirs} " in
13679 *" gcc "*) ;;
13680 *) ok=no ;;
13681 esac
13682 case ,${enable_languages}, in
13683 *,fortran,*) ;;
13684 *) ok=no ;;
13685 esac
13686 if test $ok = yes; then
13687 # An in-tree tool is available and we can use it
13688 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13690 $as_echo "just compiled" >&6; }
13691 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13692 # We already found the complete path
13693 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13695 $as_echo "pre-installed in $ac_dir" >&6; }
13696 elif test "x$target" = "x$host"; then
13697 # We can use an host tool
13698 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13700 $as_echo "host tool" >&6; }
13701 else
13702 # We need a cross tool
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13704 $as_echo "pre-installed" >&6; }
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13709 $as_echo_n "checking where to find the target gccgo... " >&6; }
13710 if test "x${build}" != "x${host}" ; then
13711 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13712 # We already found the complete path
13713 ac_dir=`dirname $GOC_FOR_TARGET`
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13715 $as_echo "pre-installed in $ac_dir" >&6; }
13716 else
13717 # Canadian cross, just use what we found
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13719 $as_echo "pre-installed" >&6; }
13721 else
13722 ok=yes
13723 case " ${configdirs} " in
13724 *" gcc "*) ;;
13725 *) ok=no ;;
13726 esac
13727 case ,${enable_languages}, in
13728 *,go,*) ;;
13729 *) ok=no ;;
13730 esac
13731 if test $ok = yes; then
13732 # An in-tree tool is available and we can use it
13733 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13735 $as_echo "just compiled" >&6; }
13736 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13737 # We already found the complete path
13738 ac_dir=`dirname $GOC_FOR_TARGET`
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13740 $as_echo "pre-installed in $ac_dir" >&6; }
13741 elif test "x$target" = "x$host"; then
13742 # We can use an host tool
13743 GOC_FOR_TARGET='$(GOC)'
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13745 $as_echo "host tool" >&6; }
13746 else
13747 # We need a cross tool
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13749 $as_echo "pre-installed" >&6; }
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13754 $as_echo_n "checking where to find the target ld... " >&6; }
13755 if test "x${build}" != "x${host}" ; then
13756 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13757 # We already found the complete path
13758 ac_dir=`dirname $LD_FOR_TARGET`
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13760 $as_echo "pre-installed in $ac_dir" >&6; }
13761 else
13762 # Canadian cross, just use what we found
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13764 $as_echo "pre-installed" >&6; }
13766 else
13767 ok=yes
13768 case " ${configdirs} " in
13769 *" ld "*) ;;
13770 *) ok=no ;;
13771 esac
13773 if test $ok = yes; then
13774 # An in-tree tool is available and we can use it
13775 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13777 $as_echo "just compiled" >&6; }
13778 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13779 # We already found the complete path
13780 ac_dir=`dirname $LD_FOR_TARGET`
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13782 $as_echo "pre-installed in $ac_dir" >&6; }
13783 elif test "x$target" = "x$host"; then
13784 # We can use an host tool
13785 LD_FOR_TARGET='$(LD)'
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13787 $as_echo "host tool" >&6; }
13788 else
13789 # We need a cross tool
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13791 $as_echo "pre-installed" >&6; }
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13796 $as_echo_n "checking where to find the target lipo... " >&6; }
13797 if test "x${build}" != "x${host}" ; then
13798 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13799 # We already found the complete path
13800 ac_dir=`dirname $LIPO_FOR_TARGET`
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802 $as_echo "pre-installed in $ac_dir" >&6; }
13803 else
13804 # Canadian cross, just use what we found
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806 $as_echo "pre-installed" >&6; }
13808 else
13809 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
13811 ac_dir=`dirname $LIPO_FOR_TARGET`
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813 $as_echo "pre-installed in $ac_dir" >&6; }
13814 elif test "x$target" = "x$host"; then
13815 # We can use an host tool
13816 LIPO_FOR_TARGET='$(LIPO)'
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13818 $as_echo "host tool" >&6; }
13819 else
13820 # We need a cross tool
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822 $as_echo "pre-installed" >&6; }
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13827 $as_echo_n "checking where to find the target nm... " >&6; }
13828 if test "x${build}" != "x${host}" ; then
13829 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13830 # We already found the complete path
13831 ac_dir=`dirname $NM_FOR_TARGET`
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13833 $as_echo "pre-installed in $ac_dir" >&6; }
13834 else
13835 # Canadian cross, just use what we found
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13837 $as_echo "pre-installed" >&6; }
13839 else
13840 ok=yes
13841 case " ${configdirs} " in
13842 *" binutils "*) ;;
13843 *) ok=no ;;
13844 esac
13846 if test $ok = yes; then
13847 # An in-tree tool is available and we can use it
13848 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13850 $as_echo "just compiled" >&6; }
13851 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13852 # We already found the complete path
13853 ac_dir=`dirname $NM_FOR_TARGET`
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13855 $as_echo "pre-installed in $ac_dir" >&6; }
13856 elif test "x$target" = "x$host"; then
13857 # We can use an host tool
13858 NM_FOR_TARGET='$(NM)'
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13860 $as_echo "host tool" >&6; }
13861 else
13862 # We need a cross tool
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13864 $as_echo "pre-installed" >&6; }
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13869 $as_echo_n "checking where to find the target objdump... " >&6; }
13870 if test "x${build}" != "x${host}" ; then
13871 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13872 # We already found the complete path
13873 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13875 $as_echo "pre-installed in $ac_dir" >&6; }
13876 else
13877 # Canadian cross, just use what we found
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879 $as_echo "pre-installed" >&6; }
13881 else
13882 ok=yes
13883 case " ${configdirs} " in
13884 *" binutils "*) ;;
13885 *) ok=no ;;
13886 esac
13888 if test $ok = yes; then
13889 # An in-tree tool is available and we can use it
13890 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13892 $as_echo "just compiled" >&6; }
13893 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13894 # We already found the complete path
13895 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13897 $as_echo "pre-installed in $ac_dir" >&6; }
13898 elif test "x$target" = "x$host"; then
13899 # We can use an host tool
13900 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13902 $as_echo "host tool" >&6; }
13903 else
13904 # We need a cross tool
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13906 $as_echo "pre-installed" >&6; }
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13911 $as_echo_n "checking where to find the target ranlib... " >&6; }
13912 if test "x${build}" != "x${host}" ; then
13913 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13914 # We already found the complete path
13915 ac_dir=`dirname $RANLIB_FOR_TARGET`
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13917 $as_echo "pre-installed in $ac_dir" >&6; }
13918 else
13919 # Canadian cross, just use what we found
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921 $as_echo "pre-installed" >&6; }
13923 else
13924 ok=yes
13925 case " ${configdirs} " in
13926 *" binutils "*) ;;
13927 *) ok=no ;;
13928 esac
13930 if test $ok = yes; then
13931 # An in-tree tool is available and we can use it
13932 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13934 $as_echo "just compiled" >&6; }
13935 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13936 # We already found the complete path
13937 ac_dir=`dirname $RANLIB_FOR_TARGET`
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13939 $as_echo "pre-installed in $ac_dir" >&6; }
13940 elif test "x$target" = "x$host"; then
13941 # We can use an host tool
13942 RANLIB_FOR_TARGET='$(RANLIB)'
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13944 $as_echo "host tool" >&6; }
13945 else
13946 # We need a cross tool
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13948 $as_echo "pre-installed" >&6; }
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13953 $as_echo_n "checking where to find the target strip... " >&6; }
13954 if test "x${build}" != "x${host}" ; then
13955 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
13957 ac_dir=`dirname $STRIP_FOR_TARGET`
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959 $as_echo "pre-installed in $ac_dir" >&6; }
13960 else
13961 # Canadian cross, just use what we found
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13963 $as_echo "pre-installed" >&6; }
13965 else
13966 ok=yes
13967 case " ${configdirs} " in
13968 *" binutils "*) ;;
13969 *) ok=no ;;
13970 esac
13972 if test $ok = yes; then
13973 # An in-tree tool is available and we can use it
13974 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13976 $as_echo "just compiled" >&6; }
13977 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13978 # We already found the complete path
13979 ac_dir=`dirname $STRIP_FOR_TARGET`
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13981 $as_echo "pre-installed in $ac_dir" >&6; }
13982 elif test "x$target" = "x$host"; then
13983 # We can use an host tool
13984 STRIP_FOR_TARGET='$(STRIP)'
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13986 $as_echo "host tool" >&6; }
13987 else
13988 # We need a cross tool
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990 $as_echo "pre-installed" >&6; }
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13995 $as_echo_n "checking where to find the target windres... " >&6; }
13996 if test "x${build}" != "x${host}" ; then
13997 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13998 # We already found the complete path
13999 ac_dir=`dirname $WINDRES_FOR_TARGET`
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14001 $as_echo "pre-installed in $ac_dir" >&6; }
14002 else
14003 # Canadian cross, just use what we found
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14005 $as_echo "pre-installed" >&6; }
14007 else
14008 ok=yes
14009 case " ${configdirs} " in
14010 *" binutils "*) ;;
14011 *) ok=no ;;
14012 esac
14014 if test $ok = yes; then
14015 # An in-tree tool is available and we can use it
14016 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14018 $as_echo "just compiled" >&6; }
14019 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14020 # We already found the complete path
14021 ac_dir=`dirname $WINDRES_FOR_TARGET`
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14023 $as_echo "pre-installed in $ac_dir" >&6; }
14024 elif test "x$target" = "x$host"; then
14025 # We can use an host tool
14026 WINDRES_FOR_TARGET='$(WINDRES)'
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14028 $as_echo "host tool" >&6; }
14029 else
14030 # We need a cross tool
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14032 $as_echo "pre-installed" >&6; }
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14037 $as_echo_n "checking where to find the target windmc... " >&6; }
14038 if test "x${build}" != "x${host}" ; then
14039 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14040 # We already found the complete path
14041 ac_dir=`dirname $WINDMC_FOR_TARGET`
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14043 $as_echo "pre-installed in $ac_dir" >&6; }
14044 else
14045 # Canadian cross, just use what we found
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14047 $as_echo "pre-installed" >&6; }
14049 else
14050 ok=yes
14051 case " ${configdirs} " in
14052 *" binutils "*) ;;
14053 *) ok=no ;;
14054 esac
14056 if test $ok = yes; then
14057 # An in-tree tool is available and we can use it
14058 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14060 $as_echo "just compiled" >&6; }
14061 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14062 # We already found the complete path
14063 ac_dir=`dirname $WINDMC_FOR_TARGET`
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14065 $as_echo "pre-installed in $ac_dir" >&6; }
14066 elif test "x$target" = "x$host"; then
14067 # We can use an host tool
14068 WINDMC_FOR_TARGET='$(WINDMC)'
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14070 $as_echo "host tool" >&6; }
14071 else
14072 # We need a cross tool
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14074 $as_echo "pre-installed" >&6; }
14082 # Certain tools may need extra flags.
14083 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14084 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14085 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14087 # When building target libraries, except in a Canadian cross, we use
14088 # the same toolchain as the compiler we just built.
14089 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14090 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14091 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14092 if test $host = $build; then
14093 case " $configdirs " in
14094 *" gcc "*)
14095 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14096 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14097 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14099 esac
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14107 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14108 # Check whether --enable-maintainer-mode was given.
14109 if test "${enable_maintainer_mode+set}" = set; then :
14110 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14111 else
14112 USE_MAINTAINER_MODE=no
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14116 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14119 if test "$USE_MAINTAINER_MODE" = yes; then
14120 MAINTAINER_MODE_TRUE=
14121 MAINTAINER_MODE_FALSE='#'
14122 else
14123 MAINTAINER_MODE_TRUE='#'
14124 MAINTAINER_MODE_FALSE=
14126 MAINT=$MAINTAINER_MODE_TRUE
14128 # ---------------------
14129 # GCC bootstrap support
14130 # ---------------------
14132 # Stage specific cflags for build.
14133 stage1_cflags="-g"
14134 case $build in
14135 vax-*-*)
14136 case ${GCC} in
14137 yes) stage1_cflags="-g -Wa,-J" ;;
14138 *) stage1_cflags="-g -J" ;;
14139 esac ;;
14140 esac
14142 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14143 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14144 saved_CFLAGS="$CFLAGS"
14146 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14147 CFLAGS="$CFLAGS -fkeep-inline-functions"
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14149 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 #if (__GNUC__ < 3) \
14154 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14155 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14156 #error http://gcc.gnu.org/PR29382
14157 #endif
14160 main ()
14164 return 0;
14166 _ACEOF
14167 if ac_fn_c_try_compile "$LINENO"; then :
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14169 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14170 else
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 $as_echo "no" >&6; }
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 CFLAGS="$saved_CFLAGS"
14181 # Enable --enable-checking in stage1 of the compiler.
14182 # Check whether --enable-stage1-checking was given.
14183 if test "${enable_stage1_checking+set}" = set; then :
14184 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14185 else
14186 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14187 stage1_checking=--enable-checking=yes,types
14188 else
14189 stage1_checking=--enable-checking=$enable_checking,types
14195 # Enable -Werror in bootstrap stage2 and later.
14196 # Check whether --enable-werror was given.
14197 if test "${enable_werror+set}" = set; then :
14198 enableval=$enable_werror;
14199 else
14200 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14201 enable_werror=yes
14202 else
14203 enable_werror=no
14207 case ${enable_werror} in
14208 yes) stage2_werror_flag="--enable-werror-always" ;;
14209 *) stage2_werror_flag="" ;;
14210 esac
14213 # Specify what files to not compare during bootstrap.
14215 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14216 case "$target" in
14217 hppa*64*-*-hpux*) ;;
14218 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14219 esac
14220 case " $configdirs " in
14221 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14222 esac
14225 ac_config_files="$ac_config_files Makefile"
14227 cat >confcache <<\_ACEOF
14228 # This file is a shell script that caches the results of configure
14229 # tests run on this system so they can be shared between configure
14230 # scripts and configure runs, see configure's option --config-cache.
14231 # It is not useful on other systems. If it contains results you don't
14232 # want to keep, you may remove or edit it.
14234 # config.status only pays attention to the cache file if you give it
14235 # the --recheck option to rerun configure.
14237 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14238 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14239 # following values.
14241 _ACEOF
14243 # The following way of writing the cache mishandles newlines in values,
14244 # but we know of no workaround that is simple, portable, and efficient.
14245 # So, we kill variables containing newlines.
14246 # Ultrix sh set writes to stderr and can't be redirected directly,
14247 # and sets the high bit in the cache file unless we assign to the vars.
14249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14250 eval ac_val=\$$ac_var
14251 case $ac_val in #(
14252 *${as_nl}*)
14253 case $ac_var in #(
14254 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14255 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14256 esac
14257 case $ac_var in #(
14258 _ | IFS | as_nl) ;; #(
14259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14260 *) { eval $ac_var=; unset $ac_var;} ;;
14261 esac ;;
14262 esac
14263 done
14265 (set) 2>&1 |
14266 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14267 *${as_nl}ac_space=\ *)
14268 # `set' does not quote correctly, so add quotes: double-quote
14269 # substitution turns \\\\ into \\, and sed turns \\ into \.
14270 sed -n \
14271 "s/'/'\\\\''/g;
14272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14273 ;; #(
14275 # `set' quotes correctly as required by POSIX, so do not add quotes.
14276 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14278 esac |
14279 sort
14281 sed '
14282 /^ac_cv_env_/b end
14283 t clear
14284 :clear
14285 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14286 t end
14287 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14288 :end' >>confcache
14289 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14290 if test -w "$cache_file"; then
14291 test "x$cache_file" != "x/dev/null" &&
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14293 $as_echo "$as_me: updating cache $cache_file" >&6;}
14294 cat confcache >$cache_file
14295 else
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14297 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14300 rm -f confcache
14302 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14303 # Let make expand exec_prefix.
14304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14306 # Transform confdefs.h into DEFS.
14307 # Protect against shell expansion while executing Makefile rules.
14308 # Protect against Makefile macro expansion.
14310 # If the first sed substitution is executed (which looks for macros that
14311 # take arguments), then branch to the quote section. Otherwise,
14312 # look for a macro that doesn't take arguments.
14313 ac_script='
14314 :mline
14315 /\\$/{
14317 s,\\\n,,
14318 b mline
14320 t clear
14321 :clear
14322 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14323 t quote
14324 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14325 t quote
14326 b any
14327 :quote
14328 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14329 s/\[/\\&/g
14330 s/\]/\\&/g
14331 s/\$/$$/g
14333 :any
14336 s/^\n//
14337 s/\n/ /g
14341 DEFS=`sed -n "$ac_script" confdefs.h`
14344 ac_libobjs=
14345 ac_ltlibobjs=
14346 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14347 # 1. Remove the extension, and $U if already installed.
14348 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14349 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14350 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14351 # will be set to the directory where LIBOBJS objects are built.
14352 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14353 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14354 done
14355 LIBOBJS=$ac_libobjs
14357 LTLIBOBJS=$ac_ltlibobjs
14361 : ${CONFIG_STATUS=./config.status}
14362 ac_write_fail=0
14363 ac_clean_files_save=$ac_clean_files
14364 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14366 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14367 as_write_fail=0
14368 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14369 #! $SHELL
14370 # Generated by $as_me.
14371 # Run this file to recreate the current configuration.
14372 # Compiler output produced by configure, useful for debugging
14373 # configure, is in config.log if it exists.
14375 debug=false
14376 ac_cs_recheck=false
14377 ac_cs_silent=false
14379 SHELL=\${CONFIG_SHELL-$SHELL}
14380 export SHELL
14381 _ASEOF
14382 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14383 ## -------------------- ##
14384 ## M4sh Initialization. ##
14385 ## -------------------- ##
14387 # Be more Bourne compatible
14388 DUALCASE=1; export DUALCASE # for MKS sh
14389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14390 emulate sh
14391 NULLCMD=:
14392 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14393 # is contrary to our usage. Disable this feature.
14394 alias -g '${1+"$@"}'='"$@"'
14395 setopt NO_GLOB_SUBST
14396 else
14397 case `(set -o) 2>/dev/null` in #(
14398 *posix*) :
14399 set -o posix ;; #(
14400 *) :
14402 esac
14406 as_nl='
14408 export as_nl
14409 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14410 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14411 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14413 # Prefer a ksh shell builtin over an external printf program on Solaris,
14414 # but without wasting forks for bash or zsh.
14415 if test -z "$BASH_VERSION$ZSH_VERSION" \
14416 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14417 as_echo='print -r --'
14418 as_echo_n='print -rn --'
14419 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14420 as_echo='printf %s\n'
14421 as_echo_n='printf %s'
14422 else
14423 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14424 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14425 as_echo_n='/usr/ucb/echo -n'
14426 else
14427 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14428 as_echo_n_body='eval
14429 arg=$1;
14430 case $arg in #(
14431 *"$as_nl"*)
14432 expr "X$arg" : "X\\(.*\\)$as_nl";
14433 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14434 esac;
14435 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14437 export as_echo_n_body
14438 as_echo_n='sh -c $as_echo_n_body as_echo'
14440 export as_echo_body
14441 as_echo='sh -c $as_echo_body as_echo'
14444 # The user is always right.
14445 if test "${PATH_SEPARATOR+set}" != set; then
14446 PATH_SEPARATOR=:
14447 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14448 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14449 PATH_SEPARATOR=';'
14454 # IFS
14455 # We need space, tab and new line, in precisely that order. Quoting is
14456 # there to prevent editors from complaining about space-tab.
14457 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14458 # splitting by setting IFS to empty value.)
14459 IFS=" "" $as_nl"
14461 # Find who we are. Look in the path if we contain no directory separator.
14462 case $0 in #((
14463 *[\\/]* ) as_myself=$0 ;;
14464 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14465 for as_dir in $PATH
14467 IFS=$as_save_IFS
14468 test -z "$as_dir" && as_dir=.
14469 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14470 done
14471 IFS=$as_save_IFS
14474 esac
14475 # We did not find ourselves, most probably we were run as `sh COMMAND'
14476 # in which case we are not to be found in the path.
14477 if test "x$as_myself" = x; then
14478 as_myself=$0
14480 if test ! -f "$as_myself"; then
14481 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14482 exit 1
14485 # Unset variables that we do not need and which cause bugs (e.g. in
14486 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14487 # suppresses any "Segmentation fault" message there. '((' could
14488 # trigger a bug in pdksh 5.2.14.
14489 for as_var in BASH_ENV ENV MAIL MAILPATH
14490 do eval test x\${$as_var+set} = xset \
14491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14492 done
14493 PS1='$ '
14494 PS2='> '
14495 PS4='+ '
14497 # NLS nuisances.
14498 LC_ALL=C
14499 export LC_ALL
14500 LANGUAGE=C
14501 export LANGUAGE
14503 # CDPATH.
14504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14507 # as_fn_error ERROR [LINENO LOG_FD]
14508 # ---------------------------------
14509 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14510 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14511 # script with status $?, using 1 if that was 0.
14512 as_fn_error ()
14514 as_status=$?; test $as_status -eq 0 && as_status=1
14515 if test "$3"; then
14516 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14517 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14519 $as_echo "$as_me: error: $1" >&2
14520 as_fn_exit $as_status
14521 } # as_fn_error
14524 # as_fn_set_status STATUS
14525 # -----------------------
14526 # Set $? to STATUS, without forking.
14527 as_fn_set_status ()
14529 return $1
14530 } # as_fn_set_status
14532 # as_fn_exit STATUS
14533 # -----------------
14534 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14535 as_fn_exit ()
14537 set +e
14538 as_fn_set_status $1
14539 exit $1
14540 } # as_fn_exit
14542 # as_fn_unset VAR
14543 # ---------------
14544 # Portably unset VAR.
14545 as_fn_unset ()
14547 { eval $1=; unset $1;}
14549 as_unset=as_fn_unset
14550 # as_fn_append VAR VALUE
14551 # ----------------------
14552 # Append the text in VALUE to the end of the definition contained in VAR. Take
14553 # advantage of any shell optimizations that allow amortized linear growth over
14554 # repeated appends, instead of the typical quadratic growth present in naive
14555 # implementations.
14556 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14557 eval 'as_fn_append ()
14559 eval $1+=\$2
14561 else
14562 as_fn_append ()
14564 eval $1=\$$1\$2
14566 fi # as_fn_append
14568 # as_fn_arith ARG...
14569 # ------------------
14570 # Perform arithmetic evaluation on the ARGs, and store the result in the
14571 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14572 # must be portable across $(()) and expr.
14573 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14574 eval 'as_fn_arith ()
14576 as_val=$(( $* ))
14578 else
14579 as_fn_arith ()
14581 as_val=`expr "$@" || test $? -eq 1`
14583 fi # as_fn_arith
14586 if expr a : '\(a\)' >/dev/null 2>&1 &&
14587 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14588 as_expr=expr
14589 else
14590 as_expr=false
14593 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14594 as_basename=basename
14595 else
14596 as_basename=false
14599 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14600 as_dirname=dirname
14601 else
14602 as_dirname=false
14605 as_me=`$as_basename -- "$0" ||
14606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14607 X"$0" : 'X\(//\)$' \| \
14608 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14609 $as_echo X/"$0" |
14610 sed '/^.*\/\([^/][^/]*\)\/*$/{
14611 s//\1/
14614 /^X\/\(\/\/\)$/{
14615 s//\1/
14618 /^X\/\(\/\).*/{
14619 s//\1/
14622 s/.*/./; q'`
14624 # Avoid depending upon Character Ranges.
14625 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14626 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14627 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14628 as_cr_digits='0123456789'
14629 as_cr_alnum=$as_cr_Letters$as_cr_digits
14631 ECHO_C= ECHO_N= ECHO_T=
14632 case `echo -n x` in #(((((
14633 -n*)
14634 case `echo 'xy\c'` in
14635 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14636 xy) ECHO_C='\c';;
14637 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14638 ECHO_T=' ';;
14639 esac;;
14641 ECHO_N='-n';;
14642 esac
14644 rm -f conf$$ conf$$.exe conf$$.file
14645 if test -d conf$$.dir; then
14646 rm -f conf$$.dir/conf$$.file
14647 else
14648 rm -f conf$$.dir
14649 mkdir conf$$.dir 2>/dev/null
14651 if (echo >conf$$.file) 2>/dev/null; then
14652 if ln -s conf$$.file conf$$ 2>/dev/null; then
14653 as_ln_s='ln -s'
14654 # ... but there are two gotchas:
14655 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14656 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14657 # In both cases, we have to default to `cp -p'.
14658 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14659 as_ln_s='cp -p'
14660 elif ln conf$$.file conf$$ 2>/dev/null; then
14661 as_ln_s=ln
14662 else
14663 as_ln_s='cp -p'
14665 else
14666 as_ln_s='cp -p'
14668 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14669 rmdir conf$$.dir 2>/dev/null
14672 # as_fn_mkdir_p
14673 # -------------
14674 # Create "$as_dir" as a directory, including parents if necessary.
14675 as_fn_mkdir_p ()
14678 case $as_dir in #(
14679 -*) as_dir=./$as_dir;;
14680 esac
14681 test -d "$as_dir" || eval $as_mkdir_p || {
14682 as_dirs=
14683 while :; do
14684 case $as_dir in #(
14685 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14686 *) as_qdir=$as_dir;;
14687 esac
14688 as_dirs="'$as_qdir' $as_dirs"
14689 as_dir=`$as_dirname -- "$as_dir" ||
14690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14691 X"$as_dir" : 'X\(//\)[^/]' \| \
14692 X"$as_dir" : 'X\(//\)$' \| \
14693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14694 $as_echo X"$as_dir" |
14695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14696 s//\1/
14699 /^X\(\/\/\)[^/].*/{
14700 s//\1/
14703 /^X\(\/\/\)$/{
14704 s//\1/
14707 /^X\(\/\).*/{
14708 s//\1/
14711 s/.*/./; q'`
14712 test -d "$as_dir" && break
14713 done
14714 test -z "$as_dirs" || eval "mkdir $as_dirs"
14715 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14718 } # as_fn_mkdir_p
14719 if mkdir -p . 2>/dev/null; then
14720 as_mkdir_p='mkdir -p "$as_dir"'
14721 else
14722 test -d ./-p && rmdir ./-p
14723 as_mkdir_p=false
14726 if test -x / >/dev/null 2>&1; then
14727 as_test_x='test -x'
14728 else
14729 if ls -dL / >/dev/null 2>&1; then
14730 as_ls_L_option=L
14731 else
14732 as_ls_L_option=
14734 as_test_x='
14735 eval sh -c '\''
14736 if test -d "$1"; then
14737 test -d "$1/.";
14738 else
14739 case $1 in #(
14740 -*)set "./$1";;
14741 esac;
14742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14743 ???[sx]*):;;*)false;;esac;fi
14744 '\'' sh
14747 as_executable_p=$as_test_x
14749 # Sed expression to map a string onto a valid CPP name.
14750 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14752 # Sed expression to map a string onto a valid variable name.
14753 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14756 exec 6>&1
14757 ## ----------------------------------- ##
14758 ## Main body of $CONFIG_STATUS script. ##
14759 ## ----------------------------------- ##
14760 _ASEOF
14761 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14764 # Save the log message, to keep $0 and so on meaningful, and to
14765 # report actual input values of CONFIG_FILES etc. instead of their
14766 # values after options handling.
14767 ac_log="
14768 This file was extended by $as_me, which was
14769 generated by GNU Autoconf 2.64. Invocation command line was
14771 CONFIG_FILES = $CONFIG_FILES
14772 CONFIG_HEADERS = $CONFIG_HEADERS
14773 CONFIG_LINKS = $CONFIG_LINKS
14774 CONFIG_COMMANDS = $CONFIG_COMMANDS
14775 $ $0 $@
14777 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14780 _ACEOF
14782 case $ac_config_files in *"
14783 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14784 esac
14788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14789 # Files that config.status was made for.
14790 config_files="$ac_config_files"
14792 _ACEOF
14794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14795 ac_cs_usage="\
14796 \`$as_me' instantiates files and other configuration actions
14797 from templates according to the current configuration. Unless the files
14798 and actions are specified as TAGs, all are instantiated by default.
14800 Usage: $0 [OPTION]... [TAG]...
14802 -h, --help print this help, then exit
14803 -V, --version print version number and configuration settings, then exit
14804 -q, --quiet, --silent
14805 do not print progress messages
14806 -d, --debug don't remove temporary files
14807 --recheck update $as_me by reconfiguring in the same conditions
14808 --file=FILE[:TEMPLATE]
14809 instantiate the configuration file FILE
14811 Configuration files:
14812 $config_files
14814 Report bugs to the package provider."
14816 _ACEOF
14817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14818 ac_cs_version="\\
14819 config.status
14820 configured by $0, generated by GNU Autoconf 2.64,
14821 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14823 Copyright (C) 2009 Free Software Foundation, Inc.
14824 This config.status script is free software; the Free Software Foundation
14825 gives unlimited permission to copy, distribute and modify it."
14827 ac_pwd='$ac_pwd'
14828 srcdir='$srcdir'
14829 INSTALL='$INSTALL'
14830 AWK='$AWK'
14831 test -n "\$AWK" || AWK=awk
14832 _ACEOF
14834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14835 # The default lists apply if the user does not specify any file.
14836 ac_need_defaults=:
14837 while test $# != 0
14839 case $1 in
14840 --*=*)
14841 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14842 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14843 ac_shift=:
14846 ac_option=$1
14847 ac_optarg=$2
14848 ac_shift=shift
14850 esac
14852 case $ac_option in
14853 # Handling of the options.
14854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14855 ac_cs_recheck=: ;;
14856 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14857 $as_echo "$ac_cs_version"; exit ;;
14858 --debug | --debu | --deb | --de | --d | -d )
14859 debug=: ;;
14860 --file | --fil | --fi | --f )
14861 $ac_shift
14862 case $ac_optarg in
14863 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14864 esac
14865 as_fn_append CONFIG_FILES " '$ac_optarg'"
14866 ac_need_defaults=false;;
14867 --he | --h | --help | --hel | -h )
14868 $as_echo "$ac_cs_usage"; exit ;;
14869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14871 ac_cs_silent=: ;;
14873 # This is an error.
14874 -*) as_fn_error "unrecognized option: \`$1'
14875 Try \`$0 --help' for more information." ;;
14877 *) as_fn_append ac_config_targets " $1"
14878 ac_need_defaults=false ;;
14880 esac
14881 shift
14882 done
14884 ac_configure_extra_args=
14886 if $ac_cs_silent; then
14887 exec 6>/dev/null
14888 ac_configure_extra_args="$ac_configure_extra_args --silent"
14891 _ACEOF
14892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14893 if \$ac_cs_recheck; then
14894 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14895 shift
14896 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14897 CONFIG_SHELL='$SHELL'
14898 export CONFIG_SHELL
14899 exec "\$@"
14902 _ACEOF
14903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14904 exec 5>>config.log
14906 echo
14907 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14908 ## Running $as_me. ##
14909 _ASBOX
14910 $as_echo "$ac_log"
14911 } >&5
14913 _ACEOF
14914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14916 # INIT-COMMANDS
14918 extrasub_build="$extrasub_build"
14919 extrasub_host="$extrasub_host"
14920 extrasub_target="$extrasub_target"
14922 _ACEOF
14924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14926 # Handling of arguments.
14927 for ac_config_target in $ac_config_targets
14929 case $ac_config_target in
14930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14932 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14933 esac
14934 done
14937 # If the user did not use the arguments to specify the items to instantiate,
14938 # then the envvar interface is used. Set only those that are not.
14939 # We use the long form for the default assignment because of an extremely
14940 # bizarre bug on SunOS 4.1.3.
14941 if $ac_need_defaults; then
14942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14945 # Have a temporary directory for convenience. Make it in the build tree
14946 # simply because there is no reason against having it here, and in addition,
14947 # creating and moving files from /tmp can sometimes cause problems.
14948 # Hook for its removal unless debugging.
14949 # Note that there is a small window in which the directory will not be cleaned:
14950 # after its creation but before its name has been assigned to `$tmp'.
14951 $debug ||
14953 tmp=
14954 trap 'exit_status=$?
14955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14957 trap 'as_fn_exit 1' 1 2 13 15
14959 # Create a (secure) tmp directory for tmp files.
14962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14963 test -n "$tmp" && test -d "$tmp"
14964 } ||
14966 tmp=./conf$$-$RANDOM
14967 (umask 077 && mkdir "$tmp")
14968 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14970 # Set up the scripts for CONFIG_FILES section.
14971 # No need to generate them if there are no CONFIG_FILES.
14972 # This happens for instance with `./config.status config.h'.
14973 if test -n "$CONFIG_FILES"; then
14975 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14976 ac_cs_awk_getline=:
14977 ac_cs_awk_pipe_init=
14978 ac_cs_awk_read_file='
14979 while ((getline aline < (F[key])) > 0)
14980 print(aline)
14981 close(F[key])'
14982 ac_cs_awk_pipe_fini=
14983 else
14984 ac_cs_awk_getline=false
14985 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14986 ac_cs_awk_read_file='
14987 print "|#_!!_#|"
14988 print "cat " F[key] " &&"
14989 '$ac_cs_awk_pipe_init
14990 # The final `:' finishes the AND list.
14991 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14993 ac_cr=`echo X | tr X '\015'`
14994 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14995 # But we know of no other shell where ac_cr would be empty at this
14996 # point, so we can use a bashism as a fallback.
14997 if test "x$ac_cr" = x; then
14998 eval ac_cr=\$\'\\r\'
15000 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15001 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15002 ac_cs_awk_cr='\r'
15003 else
15004 ac_cs_awk_cr=$ac_cr
15007 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15008 _ACEOF
15010 # Create commands to substitute file output variables.
15012 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15013 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15014 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15015 echo "_ACAWK" &&
15016 echo "_ACEOF"
15017 } >conf$$files.sh &&
15018 . ./conf$$files.sh ||
15019 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15020 rm -f conf$$files.sh
15023 echo "cat >conf$$subs.awk <<_ACEOF" &&
15024 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15025 echo "_ACEOF"
15026 } >conf$$subs.sh ||
15027 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15029 ac_delim='%!_!# '
15030 for ac_last_try in false false false false false :; do
15031 . ./conf$$subs.sh ||
15032 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15034 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15035 if test $ac_delim_n = $ac_delim_num; then
15036 break
15037 elif $ac_last_try; then
15038 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15039 else
15040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15042 done
15043 rm -f conf$$subs.sh
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15047 _ACEOF
15048 sed -n '
15050 s/^/S["/; s/!.*/"]=/
15053 s/^[^!]*!//
15054 :repl
15055 t repl
15056 s/'"$ac_delim"'$//
15057 t delim
15060 s/\(.\{148\}\).*/\1/
15061 t more1
15062 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15065 b repl
15066 :more1
15067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15070 s/.\{148\}//
15071 t nl
15072 :delim
15074 s/\(.\{148\}\).*/\1/
15075 t more2
15076 s/["\\]/\\&/g; s/^/"/; s/$/"/
15079 :more2
15080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15083 s/.\{148\}//
15084 t delim
15085 ' <conf$$subs.awk | sed '
15086 /^[^""]/{
15088 s/\n//
15090 ' >>$CONFIG_STATUS || ac_write_fail=1
15091 rm -f conf$$subs.awk
15092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15093 _ACAWK
15094 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15095 for (key in S) S_is_set[key] = 1
15096 FS = "\a"
15097 \$ac_cs_awk_pipe_init
15100 line = $ 0
15101 nfields = split(line, field, "@")
15102 substed = 0
15103 len = length(field[1])
15104 for (i = 2; i < nfields; i++) {
15105 key = field[i]
15106 keylen = length(key)
15107 if (S_is_set[key]) {
15108 value = S[key]
15109 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15110 len += length(value) + length(field[++i])
15111 substed = 1
15112 } else
15113 len += 1 + keylen
15115 if (nfields == 3 && !substed) {
15116 key = field[2]
15117 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15118 \$ac_cs_awk_read_file
15119 next
15122 print line
15124 \$ac_cs_awk_pipe_fini
15125 _ACAWK
15126 _ACEOF
15127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15128 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15129 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15130 else
15132 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15133 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15134 _ACEOF
15136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15138 # trailing colons and then remove the whole line if VPATH becomes empty
15139 # (actually we leave an empty line to preserve line numbers).
15140 if test "x$srcdir" = x.; then
15141 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15142 s/:*\$(srcdir):*/:/
15143 s/:*\${srcdir}:*/:/
15144 s/:*@srcdir@:*/:/
15145 s/^\([^=]*=[ ]*\):*/\1/
15146 s/:*$//
15147 s/^[^=]*=[ ]*$//
15151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15152 fi # test -n "$CONFIG_FILES"
15155 eval set X " :F $CONFIG_FILES "
15156 shift
15157 for ac_tag
15159 case $ac_tag in
15160 :[FHLC]) ac_mode=$ac_tag; continue;;
15161 esac
15162 case $ac_mode$ac_tag in
15163 :[FHL]*:*);;
15164 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15165 :[FH]-) ac_tag=-:-;;
15166 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15167 esac
15168 ac_save_IFS=$IFS
15169 IFS=:
15170 set x $ac_tag
15171 IFS=$ac_save_IFS
15172 shift
15173 ac_file=$1
15174 shift
15176 case $ac_mode in
15177 :L) ac_source=$1;;
15178 :[FH])
15179 ac_file_inputs=
15180 for ac_f
15182 case $ac_f in
15183 -) ac_f="$tmp/stdin";;
15184 *) # Look for the file first in the build tree, then in the source tree
15185 # (if the path is not absolute). The absolute path cannot be DOS-style,
15186 # because $ac_f cannot contain `:'.
15187 test -f "$ac_f" ||
15188 case $ac_f in
15189 [\\/$]*) false;;
15190 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15191 esac ||
15192 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15193 esac
15194 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15195 as_fn_append ac_file_inputs " '$ac_f'"
15196 done
15198 # Let's still pretend it is `configure' which instantiates (i.e., don't
15199 # use $as_me), people would be surprised to read:
15200 # /* config.h. Generated by config.status. */
15201 configure_input='Generated from '`
15202 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15203 `' by configure.'
15204 if test x"$ac_file" != x-; then
15205 configure_input="$ac_file. $configure_input"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15207 $as_echo "$as_me: creating $ac_file" >&6;}
15209 # Neutralize special characters interpreted by sed in replacement strings.
15210 case $configure_input in #(
15211 *\&* | *\|* | *\\* )
15212 ac_sed_conf_input=`$as_echo "$configure_input" |
15213 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15214 *) ac_sed_conf_input=$configure_input;;
15215 esac
15217 case $ac_tag in
15218 *:-:* | *:-) cat >"$tmp/stdin" \
15219 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15220 esac
15222 esac
15224 ac_dir=`$as_dirname -- "$ac_file" ||
15225 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15226 X"$ac_file" : 'X\(//\)[^/]' \| \
15227 X"$ac_file" : 'X\(//\)$' \| \
15228 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15229 $as_echo X"$ac_file" |
15230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15231 s//\1/
15234 /^X\(\/\/\)[^/].*/{
15235 s//\1/
15238 /^X\(\/\/\)$/{
15239 s//\1/
15242 /^X\(\/\).*/{
15243 s//\1/
15246 s/.*/./; q'`
15247 as_dir="$ac_dir"; as_fn_mkdir_p
15248 ac_builddir=.
15250 case "$ac_dir" in
15251 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15253 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15254 # A ".." for each directory in $ac_dir_suffix.
15255 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15256 case $ac_top_builddir_sub in
15257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15259 esac ;;
15260 esac
15261 ac_abs_top_builddir=$ac_pwd
15262 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15263 # for backward compatibility:
15264 ac_top_builddir=$ac_top_build_prefix
15266 case $srcdir in
15267 .) # We are building in place.
15268 ac_srcdir=.
15269 ac_top_srcdir=$ac_top_builddir_sub
15270 ac_abs_top_srcdir=$ac_pwd ;;
15271 [\\/]* | ?:[\\/]* ) # Absolute name.
15272 ac_srcdir=$srcdir$ac_dir_suffix;
15273 ac_top_srcdir=$srcdir
15274 ac_abs_top_srcdir=$srcdir ;;
15275 *) # Relative name.
15276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15277 ac_top_srcdir=$ac_top_build_prefix$srcdir
15278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15279 esac
15280 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15283 case $ac_mode in
15286 # CONFIG_FILE
15289 case $INSTALL in
15290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15292 esac
15293 _ACEOF
15295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15296 # If the template does not know about datarootdir, expand it.
15297 # FIXME: This hack should be removed a few years after 2.60.
15298 ac_datarootdir_hack=; ac_datarootdir_seen=
15299 ac_sed_dataroot='
15300 /datarootdir/ {
15304 /@datadir@/p
15305 /@docdir@/p
15306 /@infodir@/p
15307 /@localedir@/p
15308 /@mandir@/p'
15309 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15310 *datarootdir*) ac_datarootdir_seen=yes;;
15311 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15313 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15314 _ACEOF
15315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15316 ac_datarootdir_hack='
15317 s&@datadir@&$datadir&g
15318 s&@docdir@&$docdir&g
15319 s&@infodir@&$infodir&g
15320 s&@localedir@&$localedir&g
15321 s&@mandir@&$mandir&g
15322 s&\\\${datarootdir}&$datarootdir&g' ;;
15323 esac
15324 _ACEOF
15326 # Neutralize VPATH when `$srcdir' = `.'.
15327 # Shell code in configure.ac might set extrasub.
15328 # FIXME: do we really want to maintain this feature?
15329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15330 ac_sed_extra="$ac_vpsub
15331 $extrasub
15332 _ACEOF
15333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15336 s|@configure_input@|$ac_sed_conf_input|;t t
15337 s&@top_builddir@&$ac_top_builddir_sub&;t t
15338 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15339 s&@srcdir@&$ac_srcdir&;t t
15340 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15341 s&@top_srcdir@&$ac_top_srcdir&;t t
15342 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15343 s&@builddir@&$ac_builddir&;t t
15344 s&@abs_builddir@&$ac_abs_builddir&;t t
15345 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15346 s&@INSTALL@&$ac_INSTALL&;t t
15347 $ac_datarootdir_hack
15349 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15350 if $ac_cs_awk_getline; then
15351 $AWK -f "$tmp/subs.awk"
15352 else
15353 $AWK -f "$tmp/subs.awk" | $SHELL
15354 fi >$tmp/out \
15355 || as_fn_error "could not create $ac_file" "$LINENO" 5
15357 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15358 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15359 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15361 which seems to be undefined. Please make sure it is defined." >&5
15362 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15363 which seems to be undefined. Please make sure it is defined." >&2;}
15365 rm -f "$tmp/stdin"
15366 case $ac_file in
15367 -) cat "$tmp/out" && rm -f "$tmp/out";;
15368 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15369 esac \
15370 || as_fn_error "could not create $ac_file" "$LINENO" 5
15375 esac
15378 case $ac_file$ac_mode in
15379 "Makefile":F) sed "$extrasub_build" Makefile |
15380 sed "$extrasub_host" |
15381 sed "$extrasub_target" > mf$$
15382 mv -f mf$$ Makefile ;;
15384 esac
15385 done # for ac_tag
15388 as_fn_exit 0
15389 _ACEOF
15390 ac_clean_files=$ac_clean_files_save
15392 test $ac_write_fail = 0 ||
15393 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15396 # configure is writing to config.log, and then calls config.status.
15397 # config.status does its own redirection, appending to config.log.
15398 # Unfortunately, on DOS this fails, as config.log is still kept open
15399 # by configure, so config.status won't be able to write to it; its
15400 # output is simply discarded. So we exec the FD to /dev/null,
15401 # effectively closing config.log, so it can be properly (re)opened and
15402 # appended to by config.status. When coming back to configure, we
15403 # need to make the FD available again.
15404 if test "$no_create" != yes; then
15405 ac_cs_success=:
15406 ac_config_status_args=
15407 test "$silent" = yes &&
15408 ac_config_status_args="$ac_config_status_args --quiet"
15409 exec 5>/dev/null
15410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15411 exec 5>>config.log
15412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15413 # would make configure fail if this is the last instruction.
15414 $ac_cs_success || as_fn_exit $?
15416 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15418 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}