* binemul.h (do_ar_emul_append): Declare.
[binutils.git] / configure
blob6dde71a00d7da9802d67831785431199fdc4c677
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_build_sysroot
777 with_debug_prefix_map
778 enable_bootstrap
779 with_build_config
780 enable_serial_configure
781 with_build_time_tools
782 enable_maintainer_mode
783 enable_stage1_checking
784 enable_werror
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
795 CXXFLAGS
797 build_configargs
798 host_configargs
799 target_configargs
802 DLLTOOL
804 LIPO
806 RANLIB
807 STRIP
808 WINDRES
809 WINDMC
810 OBJCOPY
811 OBJDUMP
812 CC_FOR_TARGET
813 CXX_FOR_TARGET
814 GCC_FOR_TARGET
815 GCJ_FOR_TARGET
816 GFORTRAN_FOR_TARGET
817 GOC_FOR_TARGET
818 AR_FOR_TARGET
819 AS_FOR_TARGET
820 DLLTOOL_FOR_TARGET
821 LD_FOR_TARGET
822 LIPO_FOR_TARGET
823 NM_FOR_TARGET
824 OBJDUMP_FOR_TARGET
825 RANLIB_FOR_TARGET
826 STRIP_FOR_TARGET
827 WINDRES_FOR_TARGET
828 WINDMC_FOR_TARGET'
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
899 ac_dashdash=yes ;;
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
918 --config-cache | -C)
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information."
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 esac
1236 done
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error "missing argument to $ac_option"
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1322 /^X\(\/\/\)$/{
1323 s//\1/
1326 /^X\(\/\).*/{
1327 s//\1/
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1335 else
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 case $srcdir in
1357 *" "*)
1358 as_fn_error "path to source, $srcdir, contains spaces"
1360 esac
1361 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1363 for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1371 # Report the --help message.
1373 if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377 \`configure' configures this package to adapt to many kinds of systems.
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE. See below for descriptions of some of the useful variables.
1384 Defaults for the options are specified in brackets.
1386 Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397 Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1408 For better control, use the options below.
1410 Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430 _ACEOF
1432 cat <<\_ACEOF
1434 Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439 System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 --target=TARGET configure for building compilers for TARGET [HOST]
1443 _ACEOF
1446 if test -n "$ac_init_help"; then
1448 cat <<\_ACEOF
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1455 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1456 --enable-libada build libada directory
1457 --enable-libssp build libssp directory
1458 --enable-build-with-cxx build with C++ compiler instead of C compiler
1459 --disable-ppl-version-check disable check for PPL version
1460 --enable-cloog-backend[=BACKEND]
1461 set the CLooG BACKEND used to either isl, ppl or
1462 ppl-legacy (default)
1463 --disable-cloog-version-check
1464 disable check for CLooG version
1465 --enable-lto enable link time optimization support
1466 --enable-stage1-languages[=all] choose additional languages to build during
1467 stage1. Mostly useful for compiler development.
1468 --enable-objc-gc enable use of Boehm's garbage collector with the
1469 GNU Objective-C runtime
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --enable-serial-[{host,target,build}-]configure
1472 force sequential configuration of
1473 sub-packages for the host, target or build
1474 machine, or all sub-packages
1475 --enable-maintainer-mode enable make rules and dependencies not useful
1476 (and sometimes confusing) to the casual installer
1477 --enable-stage1-checking[=all] choose additional checking for stage1
1478 of the compiler
1479 --enable-werror enable -Werror in bootstrap stage2 and later
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-build-libsubdir=DIR Directory where to find libraries for build system
1485 --with-mpc=PATH specify prefix directory for installed MPC package.
1486 Equivalent to --with-mpc-include=PATH/include
1487 plus --with-mpc-lib=PATH/lib
1488 --with-mpc-include=PATH
1489 specify directory for installed MPC include files
1490 --with-mpc-lib=PATH specify directory for the installed MPC library
1491 --with-mpfr-dir=PATH this option has been REMOVED
1492 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1493 Equivalent to --with-mpfr-include=PATH/include
1494 plus --with-mpfr-lib=PATH/lib
1495 --with-mpfr-include=PATH
1496 specify directory for installed MPFR include files
1497 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1498 --with-gmp-dir=PATH this option has been REMOVED
1499 --with-gmp=PATH specify prefix directory for the installed GMP package.
1500 Equivalent to --with-gmp-include=PATH/include
1501 plus --with-gmp-lib=PATH/lib
1502 --with-gmp-include=PATH specify directory for installed GMP include files
1503 --with-gmp-lib=PATH specify directory for the installed GMP library
1504 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1505 when linking with PPL
1506 --with-stage1-ldflags=FLAGS Linker flags for stage1
1507 -with-stage1-libs=LIBS Libraries for stage1
1508 --with-boot-libs=LIBS Libraries for stage2 and later
1509 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1510 --with-ppl=PATH Specify prefix directory for the installed PPL package
1511 Equivalent to --with-ppl-include=PATH/include
1512 plus --with-ppl-lib=PATH/lib
1513 --with-ppl-include=PATH Specify directory for installed PPL include files
1514 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1515 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1516 package. Equivalent to
1517 --with-cloog-include=PATH/include plus
1518 --with-cloog-lib=PATH/lib
1519 --with-cloog-include=PATH
1520 Specify directory for installed CLooG include files
1521 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1522 library
1523 --with-build-sysroot=SYSROOT
1524 use sysroot as the system root during the build
1525 --with-debug-prefix-map='A=B C=D ...'
1526 map A to B, C to D ... in debug information
1527 --with-build-config='NAME NAME2...'
1528 Use config/NAME.mk build configuration
1529 --with-build-time-tools=PATH
1530 use given path to find target tools during the build
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1542 build_configargs
1543 additional configure arguments for build directories
1544 host_configargs
1545 additional configure arguments for host directories
1546 target_configargs
1547 additional configure arguments for target directories
1548 AR AR for the host
1549 AS AS for the host
1550 DLLTOOL DLLTOOL for the host
1551 LD LD for the host
1552 LIPO LIPO for the host
1553 NM NM for the host
1554 RANLIB RANLIB for the host
1555 STRIP STRIP for the host
1556 WINDRES WINDRES for the host
1557 WINDMC WINDMC for the host
1558 OBJCOPY OBJCOPY for the host
1559 OBJDUMP OBJDUMP for the host
1560 CC_FOR_TARGET
1561 CC for the target
1562 CXX_FOR_TARGET
1563 CXX for the target
1564 GCC_FOR_TARGET
1565 GCC for the target
1566 GCJ_FOR_TARGET
1567 GCJ for the target
1568 GFORTRAN_FOR_TARGET
1569 GFORTRAN for the target
1570 GOC_FOR_TARGET
1571 GOC for the target
1572 AR_FOR_TARGET
1573 AR for the target
1574 AS_FOR_TARGET
1575 AS for the target
1576 DLLTOOL_FOR_TARGET
1577 DLLTOOL for the target
1578 LD_FOR_TARGET
1579 LD for the target
1580 LIPO_FOR_TARGET
1581 LIPO for the target
1582 NM_FOR_TARGET
1583 NM for the target
1584 OBJDUMP_FOR_TARGET
1585 OBJDUMP for the target
1586 RANLIB_FOR_TARGET
1587 RANLIB for the target
1588 STRIP_FOR_TARGET
1589 STRIP for the target
1590 WINDRES_FOR_TARGET
1591 WINDRES for the target
1592 WINDMC_FOR_TARGET
1593 WINDMC for the target
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1598 Report bugs to the package provider.
1599 _ACEOF
1600 ac_status=$?
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
1609 ac_builddir=.
1611 case "$ac_dir" in
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621 esac
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1627 case $srcdir in
1628 .) # We are building in place.
1629 ac_srcdir=.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 esac
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1651 else
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660 cat <<\_ACEOF
1661 configure
1662 generated by GNU Autoconf 2.64
1664 Copyright (C) 2009 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668 exit
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1706 ac_retval=1
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 return $ac_retval
1711 } # ac_fn_c_try_compile
1713 # ac_fn_cxx_try_compile LINENO
1714 # ----------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_cxx_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=1
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1749 } # ac_fn_cxx_try_compile
1751 # ac_fn_c_try_link LINENO
1752 # -----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_link ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 $as_test_x conftest$ac_exeext
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 return $ac_retval
1795 } # ac_fn_c_try_link
1796 cat >config.log <<_ACEOF
1797 This file contains any messages produced by compilers while
1798 running configure, to aid debugging if configure makes a mistake.
1800 It was created by $as_me, which was
1801 generated by GNU Autoconf 2.64. Invocation command line was
1803 $ $0 $@
1805 _ACEOF
1806 exec 5>>config.log
1808 cat <<_ASUNAME
1809 ## --------- ##
1810 ## Platform. ##
1811 ## --------- ##
1813 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1814 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1815 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1816 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1817 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1819 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1820 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1822 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1823 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1824 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1825 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1826 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1827 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1828 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1830 _ASUNAME
1832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833 for as_dir in $PATH
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 $as_echo "PATH: $as_dir"
1838 done
1839 IFS=$as_save_IFS
1841 } >&5
1843 cat >&5 <<_ACEOF
1846 ## ----------- ##
1847 ## Core tests. ##
1848 ## ----------- ##
1850 _ACEOF
1853 # Keep a trace of the command line.
1854 # Strip out --no-create and --no-recursion so they do not pile up.
1855 # Strip out --silent because we don't want to record it for future runs.
1856 # Also quote any args containing shell meta-characters.
1857 # Make two passes to allow for proper duplicate-argument suppression.
1858 ac_configure_args=
1859 ac_configure_args0=
1860 ac_configure_args1=
1861 ac_must_keep_next=false
1862 for ac_pass in 1 2
1864 for ac_arg
1866 case $ac_arg in
1867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1869 | -silent | --silent | --silen | --sile | --sil)
1870 continue ;;
1871 *\'*)
1872 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 esac
1874 case $ac_pass in
1875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1877 as_fn_append ac_configure_args1 " '$ac_arg'"
1878 if test $ac_must_keep_next = true; then
1879 ac_must_keep_next=false # Got value, back to normal.
1880 else
1881 case $ac_arg in
1882 *=* | --config-cache | -C | -disable-* | --disable-* \
1883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1885 | -with-* | --with-* | -without-* | --without-* | --x)
1886 case "$ac_configure_args0 " in
1887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1888 esac
1890 -* ) ac_must_keep_next=true ;;
1891 esac
1893 as_fn_append ac_configure_args " '$ac_arg'"
1895 esac
1896 done
1897 done
1898 { ac_configure_args0=; unset ac_configure_args0;}
1899 { ac_configure_args1=; unset ac_configure_args1;}
1901 # When interrupted or exit'd, cleanup temporary files, and complete
1902 # config.log. We remove comments because anyway the quotes in there
1903 # would cause problems or look ugly.
1904 # WARNING: Use '\'' to represent an apostrophe within the trap.
1905 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1906 trap 'exit_status=$?
1907 # Save into config.log some information that might help in debugging.
1909 echo
1911 cat <<\_ASBOX
1912 ## ---------------- ##
1913 ## Cache variables. ##
1914 ## ---------------- ##
1915 _ASBOX
1916 echo
1917 # The following way of writing the cache mishandles newlines in values,
1919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in #(
1922 *${as_nl}*)
1923 case $ac_var in #(
1924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926 esac
1927 case $ac_var in #(
1928 _ | IFS | as_nl) ;; #(
1929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930 *) { eval $ac_var=; unset $ac_var;} ;;
1931 esac ;;
1932 esac
1933 done
1934 (set) 2>&1 |
1935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936 *${as_nl}ac_space=\ *)
1937 sed -n \
1938 "s/'\''/'\''\\\\'\'''\''/g;
1939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940 ;; #(
1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1944 esac |
1945 sort
1947 echo
1949 cat <<\_ASBOX
1950 ## ----------------- ##
1951 ## Output variables. ##
1952 ## ----------------- ##
1953 _ASBOX
1954 echo
1955 for ac_var in $ac_subst_vars
1957 eval ac_val=\$$ac_var
1958 case $ac_val in
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960 esac
1961 $as_echo "$ac_var='\''$ac_val'\''"
1962 done | sort
1963 echo
1965 if test -n "$ac_subst_files"; then
1966 cat <<\_ASBOX
1967 ## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##
1970 _ASBOX
1971 echo
1972 for ac_var in $ac_subst_files
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 $as_echo "$ac_var='\''$ac_val'\''"
1979 done | sort
1980 echo
1983 if test -s confdefs.h; then
1984 cat <<\_ASBOX
1985 ## ----------- ##
1986 ## confdefs.h. ##
1987 ## ----------- ##
1988 _ASBOX
1989 echo
1990 cat confdefs.h
1991 echo
1993 test "$ac_signal" != 0 &&
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
1996 } >&5
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1999 exit $exit_status
2001 for ac_signal in 1 2 13 15; do
2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 done
2004 ac_signal=0
2006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2007 rm -f -r conftest* confdefs.h
2009 $as_echo "/* confdefs.h */" > confdefs.h
2011 # Predefined preprocessor variables.
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_NAME "$PACKAGE_NAME"
2015 _ACEOF
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019 _ACEOF
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2023 _ACEOF
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_STRING "$PACKAGE_STRING"
2027 _ACEOF
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031 _ACEOF
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_URL "$PACKAGE_URL"
2035 _ACEOF
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2040 ac_site_file1=NONE
2041 ac_site_file2=NONE
2042 if test -n "$CONFIG_SITE"; then
2043 ac_site_file1=$CONFIG_SITE
2044 elif test "x$prefix" != xNONE; then
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
2047 else
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
2051 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2053 test "x$ac_site_file" = xNONE && continue
2054 if test -r "$ac_site_file"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2057 sed 's/^/| /' "$ac_site_file" >&5
2058 . "$ac_site_file"
2060 done
2062 if test -r "$cache_file"; then
2063 # Some versions of bash will fail to source /dev/null (special
2064 # files actually), so we avoid doing that.
2065 if test -f "$cache_file"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067 $as_echo "$as_me: loading cache $cache_file" >&6;}
2068 case $cache_file in
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
2071 esac
2073 else
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075 $as_echo "$as_me: creating cache $cache_file" >&6;}
2076 >$cache_file
2079 # Check that the precious variables saved in the cache have kept the same
2080 # value.
2081 ac_cache_corrupted=false
2082 for ac_var in $ac_precious_vars; do
2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084 eval ac_new_set=\$ac_env_${ac_var}_set
2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086 eval ac_new_val=\$ac_env_${ac_var}_value
2087 case $ac_old_set,$ac_new_set in
2088 set,)
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2091 ac_cache_corrupted=: ;;
2092 ,set)
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2094 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2095 ac_cache_corrupted=: ;;
2096 ,);;
2098 if test "x$ac_old_val" != "x$ac_new_val"; then
2099 # differences in whitespace do not lead to failure.
2100 ac_old_val_w=`echo x $ac_old_val`
2101 ac_new_val_w=`echo x $ac_new_val`
2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2104 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105 ac_cache_corrupted=:
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109 eval $ac_var=\$ac_old_val
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2112 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2114 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2115 fi;;
2116 esac
2117 # Pass precious variables to config.status.
2118 if test "$ac_new_set" = set; then
2119 case $ac_new_val in
2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 *) ac_arg=$ac_var=$ac_new_val ;;
2122 esac
2123 case " $ac_configure_args " in
2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2125 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2126 esac
2128 done
2129 if $ac_cache_corrupted; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2133 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2136 ## -------------------- ##
2137 ## Main body of script. ##
2138 ## -------------------- ##
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154 progname=$0
2155 # if PWD already has a value, it is probably wrong.
2156 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2158 # Export original configure arguments for use by sub-configures.
2159 # Quote arguments with shell meta charatcers.
2160 TOPLEVEL_CONFIGURE_ARGUMENTS=
2161 set -- "$progname" "$@"
2162 for ac_arg
2164 case "$ac_arg" in
2165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2167 # if the argument is of the form -foo=baz, quote the baz part only
2168 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2169 *) ;;
2170 esac
2171 # Add the quoted argument to the list.
2172 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2173 done
2174 if test "$silent" = yes; then
2175 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2177 # Remove the initial space we just introduced and, as these will be
2178 # expanded by make, quote '$'.
2179 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2182 # Find the build, host, and target systems.
2183 ac_aux_dir=
2184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 for ac_t in install-sh install.sh shtool; do
2186 if test -f "$ac_dir/$ac_t"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/$ac_t -c"
2189 break 2
2191 done
2192 done
2193 if test -z "$ac_aux_dir"; then
2194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2197 # These three variables are undocumented and unsupported,
2198 # and are intended to be withdrawn in a future Autoconf release.
2199 # They can cause serious problems if a builder's source tree is in a directory
2200 # whose full name contains unusual characters.
2201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2206 # Make sure we can run config.sub.
2207 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2211 $as_echo_n "checking build system type... " >&6; }
2212 if test "${ac_cv_build+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2214 else
2215 ac_build_alias=$build_alias
2216 test "x$ac_build_alias" = x &&
2217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2218 test "x$ac_build_alias" = x &&
2219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2220 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2225 $as_echo "$ac_cv_build" >&6; }
2226 case $ac_cv_build in
2227 *-*-*) ;;
2228 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2229 esac
2230 build=$ac_cv_build
2231 ac_save_IFS=$IFS; IFS='-'
2232 set x $ac_cv_build
2233 shift
2234 build_cpu=$1
2235 build_vendor=$2
2236 shift; shift
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2239 build_os=$*
2240 IFS=$ac_save_IFS
2241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2244 case ${build_alias} in
2245 "") build_noncanonical=${build} ;;
2246 *) build_noncanonical=${build_alias} ;;
2247 esac
2251 case ${host_alias} in
2252 "") host_noncanonical=${build_noncanonical} ;;
2253 *) host_noncanonical=${host_alias} ;;
2254 esac
2258 case ${target_alias} in
2259 "") target_noncanonical=${host_noncanonical} ;;
2260 *) target_noncanonical=${target_alias} ;;
2261 esac
2266 test "$host_noncanonical" = "$target_noncanonical" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2268 NONENONEs,x,x, &&
2269 program_transform_name=s,y,y,
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272 $as_echo_n "checking host system type... " >&6; }
2273 if test "${ac_cv_host+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
2275 else
2276 if test "x$host_alias" = x; then
2277 ac_cv_host=$ac_cv_build
2278 else
2279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285 $as_echo "$ac_cv_host" >&6; }
2286 case $ac_cv_host in
2287 *-*-*) ;;
2288 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2289 esac
2290 host=$ac_cv_host
2291 ac_save_IFS=$IFS; IFS='-'
2292 set x $ac_cv_host
2293 shift
2294 host_cpu=$1
2295 host_vendor=$2
2296 shift; shift
2297 # Remember, the first character of IFS is used to create $*,
2298 # except with old shells:
2299 host_os=$*
2300 IFS=$ac_save_IFS
2301 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2305 $as_echo_n "checking target system type... " >&6; }
2306 if test "${ac_cv_target+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
2308 else
2309 if test "x$target_alias" = x; then
2310 ac_cv_target=$ac_cv_host
2311 else
2312 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2313 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2318 $as_echo "$ac_cv_target" >&6; }
2319 case $ac_cv_target in
2320 *-*-*) ;;
2321 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2322 esac
2323 target=$ac_cv_target
2324 ac_save_IFS=$IFS; IFS='-'
2325 set x $ac_cv_target
2326 shift
2327 target_cpu=$1
2328 target_vendor=$2
2329 shift; shift
2330 # Remember, the first character of IFS is used to create $*,
2331 # except with old shells:
2332 target_os=$*
2333 IFS=$ac_save_IFS
2334 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2337 # The aliases save the names the user supplied, while $host etc.
2338 # will get canonicalized.
2339 test -n "$target_alias" &&
2340 test "$program_prefix$program_suffix$program_transform_name" = \
2341 NONENONEs,x,x, &&
2342 program_prefix=${target_alias}-
2344 test "$program_prefix" != NONE &&
2345 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2346 # Use a double $ so make ignores it.
2347 test "$program_suffix" != NONE &&
2348 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349 # Double any \ or $.
2350 # By default was `s,x,x', remove it if useless.
2351 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2356 # Get 'install' or 'install-sh' and its variants.
2357 # Find a good install program. We prefer a C program (faster),
2358 # so one script is as good as another. But avoid the broken or
2359 # incompatible versions:
2360 # SysV /etc/install, /usr/sbin/install
2361 # SunOS /usr/etc/install
2362 # IRIX /sbin/install
2363 # AIX /bin/install
2364 # AmigaOS /C/install, which installs bootblocks on floppy discs
2365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2368 # OS/2's system install, which has a completely different semantic
2369 # ./install, which can be erroneously created by make from ./install.sh.
2370 # Reject install programs that cannot install multiple files.
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2373 if test -z "$INSTALL"; then
2374 if test "${ac_cv_path_install+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
2376 else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 for as_dir in $PATH
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 # Account for people who put trailing slashes in PATH elements.
2383 case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2387 /usr/ucb/* ) ;;
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2391 # by default.
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2395 if test $ac_prog = install &&
2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397 # AIX install. It has an incompatible calling convention.
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2403 else
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2407 mkdir conftest.dir
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2412 then
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414 break 3
2418 done
2419 done
2421 esac
2423 done
2424 IFS=$as_save_IFS
2426 rm -rf conftest.one conftest.two conftest.dir
2429 if test "${ac_cv_path_install+set}" = set; then
2430 INSTALL=$ac_cv_path_install
2431 else
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 INSTALL=$ac_install_sh
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440 $as_echo "$INSTALL" >&6; }
2442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443 # It thinks the first close brace ends the variable substitution.
2444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2451 $as_echo_n "checking whether ln works... " >&6; }
2452 if test "${acx_cv_prog_LN+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 rm -f conftestdata_t
2456 echo >conftestdata_f
2457 if ln conftestdata_f conftestdata_t 2>/dev/null
2458 then
2459 acx_cv_prog_LN=ln
2460 else
2461 acx_cv_prog_LN=no
2463 rm -f conftestdata_f conftestdata_t
2466 if test $acx_cv_prog_LN = no; then
2467 LN="cp"
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2469 $as_echo "no, using $LN" >&6; }
2470 else
2471 LN="$acx_cv_prog_LN"
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473 $as_echo "yes" >&6; }
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2477 $as_echo_n "checking whether ln -s works... " >&6; }
2478 LN_S=$as_ln_s
2479 if test "$LN_S" = "ln -s"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481 $as_echo "yes" >&6; }
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2484 $as_echo "no, using $LN_S" >&6; }
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2488 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2489 if test "${ac_cv_path_SED+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2493 for ac_i in 1 2 3 4 5 6 7; do
2494 ac_script="$ac_script$as_nl$ac_script"
2495 done
2496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2497 { ac_script=; unset ac_script;}
2498 if test -z "$SED"; then
2499 ac_path_SED_found=false
2500 # Loop through the user's path and test for each of PROGNAME-LIST
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_prog in sed gsed; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2509 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2510 # Check for GNU ac_path_SED and select it if it is found.
2511 # Check for GNU $ac_path_SED
2512 case `"$ac_path_SED" --version 2>&1` in
2513 *GNU*)
2514 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2516 ac_count=0
2517 $as_echo_n 0123456789 >"conftest.in"
2518 while :
2520 cat "conftest.in" "conftest.in" >"conftest.tmp"
2521 mv "conftest.tmp" "conftest.in"
2522 cp "conftest.in" "conftest.nl"
2523 $as_echo '' >> "conftest.nl"
2524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2526 as_fn_arith $ac_count + 1 && ac_count=$as_val
2527 if test $ac_count -gt ${ac_path_SED_max-0}; then
2528 # Best one so far, save it but keep looking for a better one
2529 ac_cv_path_SED="$ac_path_SED"
2530 ac_path_SED_max=$ac_count
2532 # 10*(2^10) chars as input seems more than enough
2533 test $ac_count -gt 10 && break
2534 done
2535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2536 esac
2538 $ac_path_SED_found && break 3
2539 done
2540 done
2541 done
2542 IFS=$as_save_IFS
2543 if test -z "$ac_cv_path_SED"; then
2544 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2546 else
2547 ac_cv_path_SED=$SED
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2552 $as_echo "$ac_cv_path_SED" >&6; }
2553 SED="$ac_cv_path_SED"
2554 rm -f conftest.sed
2556 for ac_prog in gawk mawk nawk awk
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if test "${ac_cv_prog_AWK+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2579 done
2580 done
2581 IFS=$as_save_IFS
2585 AWK=$ac_cv_prog_AWK
2586 if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588 $as_echo "$AWK" >&6; }
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2595 test -n "$AWK" && break
2596 done
2599 ### we might need to use some other shell than /bin/sh for running subshells
2600 ### If we are on Windows, search for the shell. This will permit people
2601 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2602 ### without also having to set CONFIG_SHELL. This code will work when
2603 ### using bash, which sets OSTYPE.
2604 case "${OSTYPE}" in
2605 *win32*)
2606 if test x${CONFIG_SHELL} = x ; then
2607 if test ! -f /bin/sh ; then
2608 if test x${SHELL} != x && test -f ${SHELL} ; then
2609 CONFIG_SHELL=${SHELL}
2610 export CONFIG_SHELL
2611 else
2612 for prog in sh sh.exe bash bash.exe; do
2613 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2614 for dir in $PATH; do
2615 test -z "$dir" && dir=.
2616 if test -f $dir/$prog; then
2617 CONFIG_SHELL=$dir/$prog
2618 export CONFIG_SHELL
2619 break
2621 done
2622 IFS="$save_ifs"
2623 test -n "${CONFIG_SHELL}" && break
2624 done
2629 esac
2631 config_shell=${CONFIG_SHELL-/bin/sh}
2633 moveifchange=${srcdir}/move-if-change
2635 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2637 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2638 # a relative path.
2639 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2640 INSTALL="${srcpwd}/install-sh -c"
2643 # Set srcdir to "." if that's what it is.
2644 # This is important for multilib support.
2645 pwd=`${PWDCMD-pwd}`
2646 if test "${pwd}" = "${srcpwd}" ; then
2647 srcdir=.
2650 topsrcdir=$srcpwd
2652 extra_host_args=
2654 ### To add a new directory to the tree, first choose whether it is a target
2655 ### or a host dependent tool. Then put it into the appropriate list
2656 ### (library or tools, host or target), doing a dependency sort.
2658 # Subdirs will be configured in the order listed in build_configdirs,
2659 # configdirs, or target_configdirs; see the serialization section below.
2661 # Dependency sorting is only needed when *configuration* must be done in
2662 # a particular order. In all cases a dependency should be specified in
2663 # the Makefile, whether or not it's implicitly specified here.
2665 # Double entries in build_configdirs, configdirs, or target_configdirs may
2666 # cause circular dependencies and break everything horribly.
2668 # these library is used by various programs built for the build
2669 # environment
2671 build_libs="build-libiberty"
2673 # these tools are built for the build environment
2674 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2676 # these libraries are used by various programs built for the host environment
2678 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2680 # these tools are built for the host environment
2681 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2682 # know that we are building the simulator.
2683 # binutils, gas and ld appear in that order because it makes sense to run
2684 # "make check" in that particular order.
2685 # If --enable-gold is used, "gold" may replace "ld".
2686 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"
2688 # libgcj represents the runtime libraries only used by gcj.
2689 libgcj="target-libffi \
2690 target-zlib \
2691 target-qthreads \
2692 target-libjava"
2694 # these libraries are built for the target environment, and are built after
2695 # the host libraries and the host tools (which may be a cross compiler)
2697 target_libraries="target-libgcc \
2698 target-libiberty \
2699 target-libgloss \
2700 target-newlib \
2701 target-libgomp \
2702 target-libstdc++-v3 \
2703 target-libmudflap \
2704 target-libssp \
2705 target-libquadmath \
2706 target-libgfortran \
2707 target-boehm-gc \
2708 ${libgcj} \
2709 target-libobjc \
2710 target-libada \
2711 target-libgo"
2713 # these tools are built using the target libraries, and are intended to
2714 # run only in the target environment
2716 # note: any program that *uses* libraries that are in the "target_libraries"
2717 # list belongs in this list. those programs are also very likely
2718 # candidates for the "native_only" list which follows
2720 target_tools="target-examples target-groff target-gperf target-rda"
2722 ################################################################################
2724 ## All tools belong in one of the four categories, and are assigned above
2725 ## We assign ${configdirs} this way to remove all embedded newlines. This
2726 ## is important because configure will choke if they ever get through.
2727 ## ${configdirs} is directories we build using the host tools.
2728 ## ${target_configdirs} is directories we build using the target tools.
2729 configdirs=`echo ${host_libs} ${host_tools}`
2730 target_configdirs=`echo ${target_libraries} ${target_tools}`
2731 build_configdirs=`echo ${build_libs} ${build_tools}`
2735 ################################################################################
2737 srcname="gnu development package"
2739 # This gets set non-empty for some net releases of packages.
2740 appdirs=""
2742 # Define is_cross_compiler to save on calls to 'test'.
2743 is_cross_compiler=
2744 if test x"${host}" = x"${target}" ; then
2745 is_cross_compiler=no
2746 else
2747 is_cross_compiler=yes
2750 # Find the build and target subdir names.
2752 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2753 # have matching libraries, they should use host libraries: Makefile.tpl
2754 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2755 # However, they still use the build modules, because the corresponding
2756 # host modules (e.g. bison) are only built for the host when bootstrap
2757 # finishes. So:
2758 # - build_subdir is where we find build modules, and never changes.
2759 # - build_libsubdir is where we find build libraries, and can be overridden.
2761 # Prefix 'build-' so this never conflicts with target_subdir.
2762 build_subdir="build-${build_noncanonical}"
2764 # Check whether --with-build-libsubdir was given.
2765 if test "${with_build_libsubdir+set}" = set; then :
2766 withval=$with_build_libsubdir; build_libsubdir="$withval"
2767 else
2768 build_libsubdir="$build_subdir"
2771 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2772 if ( test $srcdir = . && test -d gcc ) \
2773 || test -d $srcdir/../host-${host_noncanonical}; then
2774 host_subdir="host-${host_noncanonical}"
2775 else
2776 host_subdir=.
2778 # No prefix.
2779 target_subdir=${target_noncanonical}
2781 # Be sure to cover against remnants of an in-tree build.
2782 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2783 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2784 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2787 # Skipdirs are removed silently.
2788 skipdirs=
2789 # Noconfigdirs are removed loudly.
2790 noconfigdirs=""
2792 use_gnu_ld=
2793 # Make sure we don't let GNU ld be added if we didn't want it.
2794 if test x$with_gnu_ld = xno ; then
2795 use_gnu_ld=no
2796 noconfigdirs="$noconfigdirs ld gold"
2799 use_gnu_as=
2800 # Make sure we don't let GNU as be added if we didn't want it.
2801 if test x$with_gnu_as = xno ; then
2802 use_gnu_as=no
2803 noconfigdirs="$noconfigdirs gas"
2806 use_included_zlib=
2807 # Make sure we don't let ZLIB be added if we didn't want it.
2808 if test x$with_system_zlib = xyes ; then
2809 use_included_zlib=no
2810 noconfigdirs="$noconfigdirs zlib"
2813 # some tools are so dependent upon X11 that if we're not building with X,
2814 # it's not even worth trying to configure, much less build, that tool.
2816 case ${with_x} in
2817 yes | "") ;; # the default value for this tree is that X11 is available
2819 skipdirs="${skipdirs} tk itcl libgui"
2820 # We won't be able to build gdbtk without X.
2821 enable_gdbtk=no
2823 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2824 esac
2826 # Some tools are only suitable for building in a "native" situation.
2827 # Remove these if host!=target.
2828 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"
2830 # Similarly, some are only suitable for cross toolchains.
2831 # Remove these if host=target.
2832 cross_only="target-libgloss target-newlib target-opcodes"
2834 case $is_cross_compiler in
2835 no) skipdirs="${skipdirs} ${cross_only}" ;;
2836 yes) skipdirs="${skipdirs} ${native_only}" ;;
2837 esac
2839 # If both --with-headers and --with-libs are specified, default to
2840 # --without-newlib.
2841 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2842 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2843 if test x"${with_newlib}" = x ; then
2844 with_newlib=no
2848 # Recognize --with-newlib/--without-newlib.
2849 case ${with_newlib} in
2850 no) skipdirs="${skipdirs} target-newlib" ;;
2851 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2852 esac
2854 # Handle --enable-gold, --enable-ld.
2855 # --disable-gold [--enable-ld]
2856 # Build only ld. Default option.
2857 # --enable-gold [--enable-ld]
2858 # Build both gold and ld. Install gold as "ld.gold", install ld
2859 # as "ld.bfd" and "ld".
2860 # --enable-gold=default [--enable-ld]
2861 # Build both gold and ld. Install gold as "ld.gold" and "ld",
2862 # install ld as "ld.bfd".
2863 # --enable-gold[=default] --disable-ld
2864 # Build only gold, which is then installed as both "ld.gold" and "ld".
2865 # --enable-gold --enable-ld=default
2866 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
2867 # and ld.bfd).
2868 # In other words, ld is default
2869 # --enable-gold=default --enable-ld=default
2870 # Error.
2872 default_ld=
2873 # Check whether --enable-gold was given.
2874 if test "${enable_gold+set}" = set; then :
2875 enableval=$enable_gold; ENABLE_GOLD=$enableval
2876 else
2877 ENABLE_GOLD=no
2880 case "${ENABLE_GOLD}" in
2881 yes|default)
2882 # Check for ELF target.
2883 is_elf=no
2884 case "${target}" in
2885 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2886 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2887 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2888 case "${target}" in
2889 *-*-linux*aout* | *-*-linux*oldld*)
2892 is_elf=yes
2894 esac
2895 esac
2897 if test "$is_elf" = "yes"; then
2898 # Check for target supported by gold.
2899 case "${target}" in
2900 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2901 configdirs="$configdirs gold"
2902 if test x${ENABLE_GOLD} = xdefault; then
2903 default_ld=gold
2905 ENABLE_GOLD=yes
2907 esac
2913 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2915 esac
2917 # Check whether --enable-ld was given.
2918 if test "${enable_ld+set}" = set; then :
2919 enableval=$enable_ld; ENABLE_LD=$enableval
2920 else
2921 ENABLE_LD=yes
2925 case "${ENABLE_LD}" in
2926 default)
2927 if test x${default_ld} != x; then
2928 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2931 yes)
2934 if test x${ENABLE_GOLD} != xyes; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2936 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2938 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2941 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2943 esac
2945 # Configure extra directories which are host specific
2947 case "${host}" in
2948 *-cygwin*)
2949 configdirs="$configdirs libtermcap" ;;
2950 esac
2952 # A target can indicate whether a language isn't supported for some reason.
2953 # Only spaces may be used in this macro; not newlines or tabs.
2954 unsupported_languages=
2956 # Remove more programs from consideration, based on the host or
2957 # target this usually means that a port of the program doesn't
2958 # exist yet.
2960 case "${host}" in
2961 hppa*64*-*-*)
2962 noconfigdirs="$noconfigdirs byacc"
2964 i[3456789]86-*-vsta)
2965 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2967 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2968 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2970 x86_64-*-mingw*)
2971 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2973 i[3456789]86-*-mingw32*)
2974 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2975 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2977 i[3456789]86-*-beos*)
2978 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2980 *-*-cygwin*)
2981 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2983 *-*-netbsd*)
2984 noconfigdirs="$noconfigdirs rcs"
2986 ppc*-*-pe)
2987 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2989 powerpc-*-beos*)
2990 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2992 esac
2995 # Check whether --enable-libada was given.
2996 if test "${enable_libada+set}" = set; then :
2997 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2998 else
2999 ENABLE_LIBADA=yes
3002 if test "${ENABLE_LIBADA}" != "yes" ; then
3003 noconfigdirs="$noconfigdirs gnattools"
3006 # Check whether --enable-libssp was given.
3007 if test "${enable_libssp+set}" = set; then :
3008 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3009 else
3010 ENABLE_LIBSSP=yes
3014 # Save it here so that, even in case of --enable-libgcj, if the Java
3015 # front-end isn't enabled, we still get libgcj disabled.
3016 libgcj_saved=$libgcj
3017 case $enable_libgcj in
3018 yes)
3019 # If we reset it here, it won't get added to noconfigdirs in the
3020 # target-specific build rules, so it will be forcibly enabled
3021 # (unless the Java language itself isn't enabled).
3022 libgcj=
3025 # Make sure we get it printed in the list of not supported target libs.
3026 # Don't disable libffi, though, other languages use it.
3027 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3029 esac
3032 # Disable libmudflap on some systems.
3033 if test x$enable_libmudflap = x ; then
3034 case "${target}" in
3035 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3036 # Enable libmudflap by default in GNU and friends.
3038 *-*-freebsd*)
3039 # Enable libmudflap by default in FreeBSD.
3042 # Disable it by default everywhere else.
3043 noconfigdirs="$noconfigdirs target-libmudflap"
3045 esac
3048 # Disable libgomp on non POSIX hosted systems.
3049 if test x$enable_libgomp = x ; then
3050 # Enable libgomp by default on hosted POSIX systems.
3051 case "${target}" in
3052 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3054 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3056 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3058 *-*-darwin* | *-*-aix*)
3061 noconfigdirs="$noconfigdirs target-libgomp"
3063 esac
3066 # Default libgloss CPU subdirectory.
3067 libgloss_dir="$target_cpu"
3069 case "${target}" in
3070 *-*-chorusos)
3071 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3073 powerpc-*-darwin*)
3074 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3075 noconfigdirs="$noconfigdirs sim target-rda"
3077 i[3456789]86-*-darwin*)
3078 noconfigdirs="$noconfigdirs ld gprof"
3079 noconfigdirs="$noconfigdirs sim target-rda"
3081 x86_64-*-darwin[912]*)
3082 noconfigdirs="$noconfigdirs ld gas gprof"
3083 noconfigdirs="$noconfigdirs sim target-rda"
3085 *-*-darwin*)
3086 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3087 noconfigdirs="$noconfigdirs sim target-rda"
3088 noconfigdirs="$noconfigdirs ${libgcj}"
3090 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3091 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3093 *-*-freebsd*)
3094 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3095 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3096 && test -f /usr/local/include/gmp.h; then
3097 with_gmp=/usr/local
3100 # Skip some stuff that's unsupported on some FreeBSD configurations.
3101 case "${target}" in
3102 i*86-*-*) ;;
3103 alpha*-*-*) ;;
3104 x86_64-*-*) ;;
3106 noconfigdirs="$noconfigdirs ${libgcj}"
3108 esac
3110 *-*-kaos*)
3111 # Remove unsupported stuff on all kaOS configurations.
3112 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3113 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3114 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3115 noconfigdirs="$noconfigdirs target-libgloss"
3117 *-*-netbsd*)
3118 # Skip some stuff on all NetBSD configurations.
3119 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3121 # Skip some stuff that's unsupported on some NetBSD configurations.
3122 case "${target}" in
3123 i*86-*-netbsdelf*) ;;
3124 arm*-*-netbsdelf*) ;;
3126 noconfigdirs="$noconfigdirs ${libgcj}"
3128 esac
3130 *-*-netware*)
3131 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3133 *-*-rtems*)
3134 skipdirs="${skipdirs} target-libiberty"
3135 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3137 # The tpf target doesn't support gdb yet.
3138 *-*-tpf*)
3139 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3141 *-*-uclinux*)
3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3144 *-*-vxworks*)
3145 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3147 alpha*-dec-osf*)
3148 # ld works, but does not support shared libraries.
3149 # newlib is not 64 bit ready. I'm not sure about fileutils.
3150 # gas doesn't generate exception information.
3151 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3153 alpha*-*-*vms*)
3154 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3156 alpha*-*-linux*)
3157 # newlib is not 64 bit ready
3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3160 alpha*-*-*)
3161 # newlib is not 64 bit ready
3162 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3164 am33_2.0-*-linux*)
3165 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3167 sh-*-linux*)
3168 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3170 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3171 noconfigdirs="$noconfigdirs ${libgcj}"
3172 noconfigdirs="$noconfigdirs target-examples"
3173 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3174 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3175 noconfigdirs="$noconfigdirs expect dejagnu"
3176 # the C++ libraries don't build on top of CE's C libraries
3177 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3178 noconfigdirs="$noconfigdirs target-newlib"
3179 case "${host}" in
3180 *-*-cygwin*) ;; # keep gdb and readline
3181 *) noconfigdirs="$noconfigdirs gdb readline"
3183 esac
3184 libgloss_dir=wince
3186 arc-*-*)
3187 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3189 arm-semi-aof )
3191 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3192 noconfigdirs="$noconfigdirs ${libgcj}"
3193 libgloss_dir=arm
3195 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3196 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3197 libgloss_dir=arm
3199 arm*-*-linux-gnueabi)
3200 noconfigdirs="$noconfigdirs target-qthreads"
3201 case ${with_newlib} in
3202 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3203 esac
3204 libgloss_dir=arm
3206 arm*-*-symbianelf*)
3207 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3208 libgloss_dir=arm
3210 arm-*-pe*)
3211 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3213 thumb-*-coff)
3214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3216 thumb-*-elf)
3217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3219 thumb-*-pe)
3220 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3222 arm-*-riscix*)
3223 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3225 avr-*-*)
3226 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3228 bfin-*-*)
3229 unsupported_languages="$unsupported_languages java"
3230 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3231 if test x${is_cross_compiler} != xno ; then
3232 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3235 c4x-*-* | tic4x-*-*)
3236 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3238 c54x*-*-* | tic54x-*-*)
3239 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3241 cr16-*-*)
3242 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3244 cris-*-* | crisv32-*-*)
3245 unsupported_languages="$unsupported_languages java"
3246 case "${target}" in
3247 *-*-aout)
3248 unsupported_languages="$unsupported_languages fortran"
3249 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3250 *-*-elf) # See PR46792 regarding target-libffi.
3251 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3252 *-*-linux*)
3253 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3255 unsupported_languages="$unsupported_languages fortran"
3256 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3257 esac
3258 libgloss_dir=cris
3260 crx-*-*)
3261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3263 d10v-*-*)
3264 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3266 d30v-*-*)
3267 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3269 ep9312-*-elf | ep9312-*-coff)
3270 libgloss_dir=arm
3272 fr30-*-elf*)
3273 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3275 frv-*-*)
3276 noconfigdirs="$noconfigdirs ${libgcj}"
3278 moxie-*-*)
3279 noconfigdirs="$noconfigdirs ${libgcj}"
3280 noconfigdirs="$noconfigdirs gprof"
3282 h8300*-*-*)
3283 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3285 h8500-*-*)
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3288 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3290 hppa*64*-*-linux* | parisc*64*-*-linux*)
3291 # In this case, it's because the hppa64-linux target is for
3292 # the kernel only at this point and has no libc, and thus no
3293 # headers, crt*.o, etc., all of which are needed by these.
3294 noconfigdirs="$noconfigdirs target-zlib"
3296 parisc*-*-linux* | hppa*-*-linux*)
3298 hppa*-*-*elf* | \
3299 hppa*-*-lites* | \
3300 hppa*-*-openbsd* | \
3301 hppa*64*-*-*)
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3304 hppa*-hp-hpux11*)
3305 noconfigdirs="$noconfigdirs ld shellutils"
3307 hppa*-*-pro*)
3308 libgloss_dir=pa
3310 hppa*-*-*)
3311 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3312 # build on HP-UX 10.20.
3313 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3315 i960-*-*)
3316 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3318 ia64*-*-elf*)
3319 # No gdb support yet.
3320 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3322 ia64*-**-hpux*)
3323 # No gdb or ld support yet.
3324 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3326 ia64*-*-*vms*)
3327 # No gdb or ld support yet.
3328 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3330 i370-*-opened*)
3332 i[3456789]86-*-coff | i[3456789]86-*-elf)
3333 noconfigdirs="$noconfigdirs ${libgcj}"
3334 libgloss_dir=i386
3336 i[3456789]86-*-linux*)
3337 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3338 # not build java stuff by default.
3339 case "${target}" in
3340 *-*-*libc1*)
3341 noconfigdirs="$noconfigdirs ${libgcj}";;
3342 esac
3344 # This section makes it possible to build newlib natively on linux.
3345 # If we are using a cross compiler then don't configure newlib.
3346 if test x${is_cross_compiler} != xno ; then
3347 noconfigdirs="$noconfigdirs target-newlib"
3349 noconfigdirs="$noconfigdirs target-libgloss"
3350 # If we are not using a cross compiler, do configure newlib.
3351 # Note however, that newlib will only be configured in this situation
3352 # if the --with-newlib option has been given, because otherwise
3353 # 'target-newlib' will appear in skipdirs.
3355 i[3456789]86-w64-mingw*)
3356 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3358 i[3456789]86-*-mingw*)
3359 target_configdirs="$target_configdirs target-winsup"
3360 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3362 x86_64-*-mingw*)
3363 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3365 *-*-cygwin*)
3366 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3367 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3368 # always build newlib if winsup directory is present.
3369 if test -d "$srcdir/winsup/cygwin"; then
3370 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3371 elif test -d "$srcdir/newlib"; then
3372 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3375 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3376 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3378 i[3456789]86-*-pe)
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3381 i[3456789]86-*-sco3.2v5*)
3382 # The linker does not yet know about weak symbols in COFF,
3383 # and is not configured to handle mixed ELF and COFF.
3384 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3386 i[3456789]86-*-sco*)
3387 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3389 i[3456789]86-*-solaris2*)
3390 noconfigdirs="$noconfigdirs target-libgloss"
3392 i[3456789]86-*-sysv4*)
3393 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3395 i[3456789]86-*-beos*)
3396 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3398 i[3456789]86-*-rdos*)
3399 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3401 m32r-*-*)
3402 noconfigdirs="$noconfigdirs ${libgcj}"
3404 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3405 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3406 libgloss_dir=m68hc11
3408 m68k-*-elf*)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3411 m68k-*-coff*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3414 m68*-*-* | fido-*-*)
3415 libgloss_dir=m68k
3417 mcore-*-pe*)
3418 # The EPOC C++ environment does not support exceptions or rtti,
3419 # and so building libstdc++-v3 tends not to always work.
3420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3422 mmix-*-*)
3423 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3424 unsupported_languages="$unsupported_languages fortran java"
3426 mn10200-*-*)
3427 noconfigdirs="$noconfigdirs ${libgcj}"
3429 mn10300-*-*)
3430 noconfigdirs="$noconfigdirs ${libgcj}"
3432 mt-*-*)
3433 noconfigdirs="$noconfigdirs sim"
3435 powerpc-*-aix*)
3436 # copied from rs6000-*-* entry
3437 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3439 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3440 target_configdirs="$target_configdirs target-winsup"
3441 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3442 # always build newlib.
3443 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3445 # This is temporary until we can link against shared libraries
3446 powerpcle-*-solaris*)
3447 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3448 libgloss_dir=rs6000
3450 powerpc-*-beos*)
3451 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3453 powerpc-*-eabi)
3454 noconfigdirs="$noconfigdirs ${libgcj}"
3455 libgloss_dir=rs6000
3457 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3458 libgloss_dir=rs6000
3460 rs6000-*-lynxos*)
3461 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3463 rs6000-*-aix*)
3464 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3466 rs6000-*-*)
3467 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3469 m68k-apollo-*)
3470 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3472 microblaze*)
3473 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3475 mips*-sde-elf*)
3476 skipdirs="$skipdirs target-libiberty"
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3478 if test x$with_newlib = xyes; then
3479 noconfigdirs="$noconfigdirs gprof"
3481 libgloss_dir=mips
3483 mips*-*-irix5*)
3484 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3486 mips*-*-irix6*)
3487 # Linking libjava exceeds command-line length limits on at least
3488 # IRIX 6.2, but not on IRIX 6.5.
3489 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3490 # <oldham@codesourcery.com>
3491 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3493 mips*-*-bsd*)
3494 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3496 mips*-*-linux*)
3497 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3499 mips*-*-*)
3500 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3501 libgloss_dir=mips
3503 romp-*-*)
3504 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3506 sh-*-* | sh64-*-*)
3507 case "${host}" in
3508 i[3456789]86-*-vsta) ;; # don't add gprof back in
3509 i[3456789]86-*-go32*) ;; # don't add gprof back in
3510 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3511 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3512 esac
3513 case "${target}" in
3514 sh*-*-elf)
3515 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3517 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3518 esac
3520 sparclet-*-aout* | sparc86x-*-*)
3521 libgloss_dir=sparc
3523 sparc-*-elf*)
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3526 sparc64-*-elf*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 libgloss_dir=sparc
3530 sparclite-*-*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3532 libgloss_dir=sparc
3534 sparc-*-sunos4*)
3535 noconfigdirs="$noconfigdirs ${libgcj}"
3536 if test x${is_cross_compiler} != xno ; then
3537 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3538 else
3539 use_gnu_ld=no
3542 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3545 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3547 tic6x-*-*)
3548 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3550 v810-*-*)
3551 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3553 v850*-*-*)
3554 noconfigdirs="$noconfigdirs ${libgcj}"
3556 vax-*-vms)
3557 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3559 vax-*-*)
3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3562 xtensa*-*-*)
3563 noconfigdirs="$noconfigdirs ${libgcj}"
3565 ip2k-*-*)
3566 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3568 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 *-*-lynxos*)
3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3574 *-*-*)
3575 noconfigdirs="$noconfigdirs ${libgcj}"
3577 esac
3579 # If we aren't building newlib, then don't build libgloss, since libgloss
3580 # depends upon some newlib header files.
3581 case "${noconfigdirs}" in
3582 *target-libgloss*) ;;
3583 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3584 esac
3586 # Work in distributions that contain no compiler tools, like Autoconf.
3587 tentative_cc=""
3588 host_makefile_frag=/dev/null
3589 if test -d ${srcdir}/config ; then
3590 case "${host}" in
3591 m68k-hp-hpux*)
3592 # Avoid "too much defining" errors from HPUX compiler.
3593 tentative_cc="cc -Wp,-H256000"
3594 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3595 # If it's HP/UX ar, this should be harmless.
3596 RANLIB="ar ts"
3598 m68k-apollo-sysv*)
3599 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3601 m68k-apollo-bsd*)
3602 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3603 # chokes on bfd, the compiler won't let you assign integers to enums, and
3604 # other problems. Defining CC to gcc is a questionable way to say "don't use
3605 # the apollo compiler" (the preferred version of GCC could be called cc,
3606 # or whatever), but I'm not sure leaving CC as cc is any better...
3607 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3608 # Used to have BISON=yacc.
3609 tentative_cc=gcc
3611 m88k-dg-dgux*)
3612 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3614 m88k-harris-cxux*)
3615 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3616 tentative_cc="cc -Xa"
3617 host_makefile_frag="config/mh-cxux"
3619 m88k-motorola-sysv*)
3621 mips*-dec-ultrix*)
3622 tentative_cc="cc -Wf,-XNg1000"
3623 host_makefile_frag="config/mh-decstation"
3625 mips*-nec-sysv4*)
3626 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3627 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3628 host_makefile_frag="config/mh-necv4"
3630 mips*-sgi-irix4*)
3631 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3632 # environment. Also bump switch table size so that cp-parse will
3633 # compile. Bump string length limit so linker builds.
3634 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3636 mips*-*-sysv4*)
3637 host_makefile_frag="config/mh-sysv4"
3639 mips*-*-sysv*)
3640 # This is for a MIPS running RISC/os 4.52C.
3642 # This is needed for GDB, but needs to be in the top-level make because
3643 # if a library is compiled with the bsd headers and gets linked with the
3644 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3645 # a different size).
3646 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3647 # known except to select the sysv environment. Could we use /proc instead?
3648 # These "sysv environments" and "bsd environments" often end up being a pain.
3650 # This is not part of CFLAGS because perhaps not all C compilers have this
3651 # option.
3652 tentative_cc="cc -systype sysv"
3654 i370-ibm-opened*)
3655 tentative_cc="c89"
3657 i[3456789]86-*-sysv5*)
3658 host_makefile_frag="config/mh-sysv5"
3660 i[3456789]86-*-dgux*)
3661 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3662 host_makefile_frag="config/mh-dgux386"
3664 i[3456789]86-ncr-sysv4.3*)
3665 # The MetaWare compiler will generate a copyright message unless you
3666 # turn it off by adding the -Hnocopyr flag.
3667 tentative_cc="cc -Hnocopyr"
3669 i[3456789]86-ncr-sysv4*)
3670 # for an NCR 3000 (i486/SVR4) system.
3671 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3672 # This compiler not only emits obnoxious copyright messages every time
3673 # you run it, but it chokes and dies on a whole bunch of GNU source
3674 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3675 tentative_cc="/usr/ccs/ATT/cc"
3676 host_makefile_frag="config/mh-ncr3000"
3678 i[3456789]86-*-sco3.2v5*)
3680 i[3456789]86-*-sco*)
3681 # The native C compiler botches some simple uses of const. Unfortunately,
3682 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3683 tentative_cc="cc -Dconst="
3684 host_makefile_frag="config/mh-sco"
3686 i[3456789]86-*-udk*)
3687 host_makefile_frag="config/mh-sysv5"
3689 i[3456789]86-*-solaris2*)
3690 host_makefile_frag="config/mh-sysv4"
3692 i[3456789]86-*-msdosdjgpp*)
3693 host_makefile_frag="config/mh-djgpp"
3695 *-cygwin*)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3698 $as_echo_n "checking to see if cat works as expected... " >&6; }
3699 echo a >cygwin-cat-check
3700 if test `cat cygwin-cat-check` = a ; then
3701 rm cygwin-cat-check
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3704 else
3705 rm cygwin-cat-check
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 as_fn_error "The cat command does not ignore carriage return characters.
3709 Please either mount the build directory in binary mode or run the following
3710 commands before running any configure script:
3711 set -o igncr
3712 export SHELLOPTS
3713 " "$LINENO" 5
3716 host_makefile_frag="config/mh-cygwin"
3718 *-mingw*)
3719 host_makefile_frag="config/mh-mingw"
3721 *-interix*)
3722 host_makefile_frag="config/mh-interix"
3724 vax-*-ultrix2*)
3725 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3726 tentative_cc=gcc
3728 *-*-solaris2*)
3729 host_makefile_frag="config/mh-solaris"
3731 m68k-sun-sunos*)
3732 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3733 # without overflowing the jump tables (-J says to use a 32 bit table)
3734 tentative_cc="cc -J"
3736 hppa*-hp-hpux10*)
3737 tentative_cc="cc -Wp,-H256000"
3738 host_makefile_frag="config/mh-pa-hpux10"
3740 hppa*-hp-hpux* | hppa*-*-hiux*)
3741 tentative_cc="cc -Wp,-H256000"
3742 host_makefile_frag="config/mh-pa"
3744 hppa*-*)
3745 host_makefile_frag="config/mh-pa"
3747 *-hp-hpux* | *-*-hiux*)
3748 tentative_cc="cc -Wp,-H256000"
3750 rs6000-*-lynxos*)
3751 # /bin/cc is less than useful for our purposes. Always use GCC
3752 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3753 host_makefile_frag="config/mh-lynxrs6k"
3755 *-*-darwin*)
3756 host_makefile_frag="config/mh-darwin"
3758 powerpc-*-aix*)
3759 host_makefile_frag="config/mh-ppc-aix"
3761 rs6000-*-aix*)
3762 host_makefile_frag="config/mh-ppc-aix"
3764 *-*-lynxos*)
3765 # /bin/cc is less than useful for our purposes. Always use GCC
3766 tentative_cc="/bin/gcc"
3768 *-*-sysv4*)
3769 host_makefile_frag="config/mh-sysv4"
3771 # This is placed last to prevent interfering with the cases above.
3772 i[3456789]86-*-*)
3773 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3774 host_makefile_frag="config/mh-x86omitfp"
3776 esac
3779 # If we aren't going to be using gcc, see if we can extract a definition
3780 # of CC from the fragment.
3781 # Actually, use the 'pre-extracted' version above.
3782 if test -z "${CC}" && test "${build}" = "${host}" ; then
3783 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3784 found=
3785 for dir in $PATH; do
3786 test -z "$dir" && dir=.
3787 if test -f $dir/gcc; then
3788 found=yes
3789 break
3791 done
3792 IFS="$save_ifs"
3793 if test -z "${found}" && test -n "${tentative_cc}" ; then
3794 CC=$tentative_cc
3798 if test "${build}" != "${host}" ; then
3799 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3800 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3801 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3802 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3803 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3804 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3805 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3806 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3807 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3808 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3809 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3810 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3811 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3812 else
3813 AR_FOR_BUILD="\$(AR)"
3814 AS_FOR_BUILD="\$(AS)"
3815 CC_FOR_BUILD="\$(CC)"
3816 CXX_FOR_BUILD="\$(CXX)"
3817 GCJ_FOR_BUILD="\$(GCJ)"
3818 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3819 GOC_FOR_BUILD="\$(GOC)"
3820 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3821 LD_FOR_BUILD="\$(LD)"
3822 NM_FOR_BUILD="\$(NM)"
3823 RANLIB_FOR_BUILD="\$(RANLIB)"
3824 WINDRES_FOR_BUILD="\$(WINDRES)"
3825 WINDMC_FOR_BUILD="\$(WINDMC)"
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3835 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_CC+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3855 done
3856 done
3857 IFS=$as_save_IFS
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3872 if test -z "$ac_cv_prog_CC"; then
3873 ac_ct_CC=$CC
3874 # Extract the first word of "gcc", so it can be a program name with args.
3875 set dummy gcc; ac_word=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 if test -n "$ac_ct_CC"; then
3882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3883 else
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_prog_ac_ct_CC="gcc"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3895 done
3896 done
3897 IFS=$as_save_IFS
3901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902 if test -n "$ac_ct_CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3904 $as_echo "$ac_ct_CC" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3910 if test "x$ac_ct_CC" = x; then
3911 CC=""
3912 else
3913 case $cross_compiling:$ac_tool_warned in
3914 yes:)
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917 ac_tool_warned=yes ;;
3918 esac
3919 CC=$ac_ct_CC
3921 else
3922 CC="$ac_cv_prog_CC"
3925 if test -z "$CC"; then
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3928 set dummy ${ac_tool_prefix}cc; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if test "${ac_cv_prog_CC+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_CC="${ac_tool_prefix}cc"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3948 done
3949 done
3950 IFS=$as_save_IFS
3954 CC=$ac_cv_prog_CC
3955 if test -n "$CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957 $as_echo "$CC" >&6; }
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3966 if test -z "$CC"; then
3967 # Extract the first word of "cc", so it can be a program name with args.
3968 set dummy cc; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if test "${ac_cv_prog_CC+set}" = set; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC="$CC" # Let the user override the test.
3976 else
3977 ac_prog_rejected=no
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3986 ac_prog_rejected=yes
3987 continue
3989 ac_cv_prog_CC="cc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3993 done
3994 done
3995 IFS=$as_save_IFS
3997 if test $ac_prog_rejected = yes; then
3998 # We found a bogon in the path, so make sure we never use it.
3999 set dummy $ac_cv_prog_CC
4000 shift
4001 if test $# != 0; then
4002 # We chose a different compiler from the bogus one.
4003 # However, it has the same basename, so the bogon will be chosen
4004 # first if we set CC to just the basename; use the full file name.
4005 shift
4006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4022 if test -z "$CC"; then
4023 if test -n "$ac_tool_prefix"; then
4024 for ac_prog in cl.exe
4026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4027 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_CC+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4047 done
4048 done
4049 IFS=$as_save_IFS
4053 CC=$ac_cv_prog_CC
4054 if test -n "$CC"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056 $as_echo "$CC" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4063 test -n "$CC" && break
4064 done
4066 if test -z "$CC"; then
4067 ac_ct_CC=$CC
4068 for ac_prog in cl.exe
4070 # Extract the first word of "$ac_prog", so it can be a program name with args.
4071 set dummy $ac_prog; ac_word=$2
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 $as_echo_n "checking for $ac_word... " >&6; }
4074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 if test -n "$ac_ct_CC"; then
4078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087 ac_cv_prog_ac_ct_CC="$ac_prog"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4091 done
4092 done
4093 IFS=$as_save_IFS
4097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4098 if test -n "$ac_ct_CC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4100 $as_echo "$ac_ct_CC" >&6; }
4101 else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4107 test -n "$ac_ct_CC" && break
4108 done
4110 if test "x$ac_ct_CC" = x; then
4111 CC=""
4112 else
4113 case $cross_compiling:$ac_tool_warned in
4114 yes:)
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117 ac_tool_warned=yes ;;
4118 esac
4119 CC=$ac_ct_CC
4126 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error "no acceptable C compiler found in \$PATH
4129 See \`config.log' for more details." "$LINENO" 5; }
4131 # Provide some information about the compiler.
4132 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4133 set X $ac_compile
4134 ac_compiler=$2
4135 for ac_option in --version -v -V -qversion; do
4136 { { ac_try="$ac_compiler $ac_option >&5"
4137 case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142 $as_echo "$ac_try_echo"; } >&5
4143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4144 ac_status=$?
4145 if test -s conftest.err; then
4146 sed '10a\
4147 ... rest of stderr output deleted ...
4148 10q' conftest.err >conftest.er1
4149 cat conftest.er1 >&5
4150 rm -f conftest.er1 conftest.err
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }
4154 done
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4160 main ()
4164 return 0;
4166 _ACEOF
4167 ac_clean_files_save=$ac_clean_files
4168 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4169 # Try to create an executable without -o first, disregard a.out.
4170 # It will help us diagnose broken compilers, and finding out an intuition
4171 # of exeext.
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4173 $as_echo_n "checking for C compiler default output file name... " >&6; }
4174 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4176 # The possible output files:
4177 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4179 ac_rmfiles=
4180 for ac_file in $ac_files
4182 case $ac_file in
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4185 esac
4186 done
4187 rm -f $ac_rmfiles
4189 if { { ac_try="$ac_link_default"
4190 case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193 esac
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 $as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_link_default") 2>&5
4197 ac_status=$?
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }; then :
4200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4201 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4202 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4203 # so that the user can short-circuit this test for compilers unknown to
4204 # Autoconf.
4205 for ac_file in $ac_files ''
4207 test -f "$ac_file" || continue
4208 case $ac_file in
4209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4211 [ab].out )
4212 # We found the default executable, but exeext='' is most
4213 # certainly right.
4214 break;;
4215 *.* )
4216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4217 then :; else
4218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4220 # We set ac_cv_exeext here because the later test for it is not
4221 # safe: cross compilers may not add the suffix if given an `-o'
4222 # argument, so we may need to know it at that point already.
4223 # Even if this section looks crufty: it has the advantage of
4224 # actually working.
4225 break;;
4227 break;;
4228 esac
4229 done
4230 test "$ac_cv_exeext" = no && ac_cv_exeext=
4232 else
4233 ac_file=''
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4236 $as_echo "$ac_file" >&6; }
4237 if test -z "$ac_file"; then :
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243 { as_fn_set_status 77
4244 as_fn_error "C compiler cannot create executables
4245 See \`config.log' for more details." "$LINENO" 5; }; }
4247 ac_exeext=$ac_cv_exeext
4249 # Check that the compiler produces executables we can run. If not, either
4250 # the compiler is broken, or we cross compile.
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4252 $as_echo_n "checking whether the C compiler works... " >&6; }
4253 # If not cross compiling, check that we can run a simple program.
4254 if test "$cross_compiling" != yes; then
4255 if { ac_try='./$ac_file'
4256 { { case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; }; then
4266 cross_compiling=no
4267 else
4268 if test "$cross_compiling" = maybe; then
4269 cross_compiling=yes
4270 else
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 as_fn_error "cannot run C compiled programs.
4274 If you meant to cross compile, use \`--host'.
4275 See \`config.log' for more details." "$LINENO" 5; }
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4280 $as_echo "yes" >&6; }
4282 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4283 ac_clean_files=$ac_clean_files_save
4284 # Check that the compiler produces executables we can run. If not, either
4285 # the compiler is broken, or we cross compile.
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4287 $as_echo_n "checking whether we are cross compiling... " >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4289 $as_echo "$cross_compiling" >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4292 $as_echo_n "checking for suffix of executables... " >&6; }
4293 if { { ac_try="$ac_link"
4294 case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_link") 2>&5
4301 ac_status=$?
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
4304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4305 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4306 # work properly (i.e., refer to `conftest.exe'), while it won't with
4307 # `rm'.
4308 for ac_file in conftest.exe conftest conftest.*; do
4309 test -f "$ac_file" || continue
4310 case $ac_file in
4311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4313 break;;
4314 * ) break;;
4315 esac
4316 done
4317 else
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "cannot compute suffix of executables: cannot compile and link
4321 See \`config.log' for more details." "$LINENO" 5; }
4323 rm -f conftest$ac_cv_exeext
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4325 $as_echo "$ac_cv_exeext" >&6; }
4327 rm -f conftest.$ac_ext
4328 EXEEXT=$ac_cv_exeext
4329 ac_exeext=$EXEEXT
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4331 $as_echo_n "checking for suffix of object files... " >&6; }
4332 if test "${ac_cv_objext+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4339 main ()
4343 return 0;
4345 _ACEOF
4346 rm -f conftest.o conftest.obj
4347 if { { ac_try="$ac_compile"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_compile") 2>&5
4355 ac_status=$?
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; then :
4358 for ac_file in conftest.o conftest.obj conftest.*; do
4359 test -f "$ac_file" || continue;
4360 case $ac_file in
4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4363 break;;
4364 esac
4365 done
4366 else
4367 $as_echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error "cannot compute suffix of object files: cannot compile
4373 See \`config.log' for more details." "$LINENO" 5; }
4375 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4378 $as_echo "$ac_cv_objext" >&6; }
4379 OBJEXT=$ac_cv_objext
4380 ac_objext=$OBJEXT
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4382 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4383 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4390 main ()
4392 #ifndef __GNUC__
4393 choke me
4394 #endif
4397 return 0;
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401 ac_compiler_gnu=yes
4402 else
4403 ac_compiler_gnu=no
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4410 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4411 if test $ac_compiler_gnu = yes; then
4412 GCC=yes
4413 else
4414 GCC=
4416 ac_test_CFLAGS=${CFLAGS+set}
4417 ac_save_CFLAGS=$CFLAGS
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4419 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4420 if test "${ac_cv_prog_cc_g+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 ac_save_c_werror_flag=$ac_c_werror_flag
4424 ac_c_werror_flag=yes
4425 ac_cv_prog_cc_g=no
4426 CFLAGS="-g"
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4431 main ()
4435 return 0;
4437 _ACEOF
4438 if ac_fn_c_try_compile "$LINENO"; then :
4439 ac_cv_prog_cc_g=yes
4440 else
4441 CFLAGS=""
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4446 main ()
4450 return 0;
4452 _ACEOF
4453 if ac_fn_c_try_compile "$LINENO"; then :
4455 else
4456 ac_c_werror_flag=$ac_save_c_werror_flag
4457 CFLAGS="-g"
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4462 main ()
4466 return 0;
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_g=yes
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_c_werror_flag=$ac_save_c_werror_flag
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4480 $as_echo "$ac_cv_prog_cc_g" >&6; }
4481 if test "$ac_test_CFLAGS" = set; then
4482 CFLAGS=$ac_save_CFLAGS
4483 elif test $ac_cv_prog_cc_g = yes; then
4484 if test "$GCC" = yes; then
4485 CFLAGS="-g -O2"
4486 else
4487 CFLAGS="-g"
4489 else
4490 if test "$GCC" = yes; then
4491 CFLAGS="-O2"
4492 else
4493 CFLAGS=
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4497 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4498 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 ac_cv_prog_cc_c89=no
4502 ac_save_CC=$CC
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <stdarg.h>
4506 #include <stdio.h>
4507 #include <sys/types.h>
4508 #include <sys/stat.h>
4509 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4510 struct buf { int x; };
4511 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4512 static char *e (p, i)
4513 char **p;
4514 int i;
4516 return p[i];
4518 static char *f (char * (*g) (char **, int), char **p, ...)
4520 char *s;
4521 va_list v;
4522 va_start (v,p);
4523 s = g (p, va_arg (v,int));
4524 va_end (v);
4525 return s;
4528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4529 function prototypes and stuff, but not '\xHH' hex character constants.
4530 These don't provoke an error unfortunately, instead are silently treated
4531 as 'x'. The following induces an error, until -std is added to get
4532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4533 array size at least. It's necessary to write '\x00'==0 to get something
4534 that's true only with -std. */
4535 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4537 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4538 inside strings and character constants. */
4539 #define FOO(x) 'x'
4540 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4542 int test (int i, double x);
4543 struct s1 {int (*f) (int a);};
4544 struct s2 {int (*f) (double a);};
4545 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4546 int argc;
4547 char **argv;
4549 main ()
4551 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4553 return 0;
4555 _ACEOF
4556 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4557 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4559 CC="$ac_save_CC $ac_arg"
4560 if ac_fn_c_try_compile "$LINENO"; then :
4561 ac_cv_prog_cc_c89=$ac_arg
4563 rm -f core conftest.err conftest.$ac_objext
4564 test "x$ac_cv_prog_cc_c89" != "xno" && break
4565 done
4566 rm -f conftest.$ac_ext
4567 CC=$ac_save_CC
4570 # AC_CACHE_VAL
4571 case "x$ac_cv_prog_cc_c89" in
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4574 $as_echo "none needed" >&6; } ;;
4575 xno)
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4577 $as_echo "unsupported" >&6; } ;;
4579 CC="$CC $ac_cv_prog_cc_c89"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4581 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4582 esac
4583 if test "x$ac_cv_prog_cc_c89" != xno; then :
4587 ac_ext=c
4588 ac_cpp='$CPP $CPPFLAGS'
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593 ac_ext=cpp
4594 ac_cpp='$CXXCPP $CPPFLAGS'
4595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4598 if test -z "$CXX"; then
4599 if test -n "$CCC"; then
4600 CXX=$CCC
4601 else
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_CXX+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$CXX"; then
4613 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4626 done
4627 done
4628 IFS=$as_save_IFS
4632 CXX=$ac_cv_prog_CXX
4633 if test -n "$CXX"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4635 $as_echo "$CXX" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4642 test -n "$CXX" && break
4643 done
4645 if test -z "$CXX"; then
4646 ac_ct_CXX=$CXX
4647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650 set dummy $ac_prog; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if test -n "$ac_ct_CXX"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_ac_ct_CXX="$ac_prog"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4672 IFS=$as_save_IFS
4676 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4677 if test -n "$ac_ct_CXX"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4679 $as_echo "$ac_ct_CXX" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4686 test -n "$ac_ct_CXX" && break
4687 done
4689 if test "x$ac_ct_CXX" = x; then
4690 CXX="g++"
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693 yes:)
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696 ac_tool_warned=yes ;;
4697 esac
4698 CXX=$ac_ct_CXX
4704 # Provide some information about the compiler.
4705 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4706 set X $ac_compile
4707 ac_compiler=$2
4708 for ac_option in --version -v -V -qversion; do
4709 { { ac_try="$ac_compiler $ac_option >&5"
4710 case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713 esac
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715 $as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4717 ac_status=$?
4718 if test -s conftest.err; then
4719 sed '10a\
4720 ... rest of stderr output deleted ...
4721 10q' conftest.err >conftest.er1
4722 cat conftest.er1 >&5
4723 rm -f conftest.er1 conftest.err
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }
4727 done
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4730 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4731 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4738 main ()
4740 #ifndef __GNUC__
4741 choke me
4742 #endif
4745 return 0;
4747 _ACEOF
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4749 ac_compiler_gnu=yes
4750 else
4751 ac_compiler_gnu=no
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4758 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4759 if test $ac_compiler_gnu = yes; then
4760 GXX=yes
4761 else
4762 GXX=
4764 ac_test_CXXFLAGS=${CXXFLAGS+set}
4765 ac_save_CXXFLAGS=$CXXFLAGS
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4767 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4768 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4772 ac_cxx_werror_flag=yes
4773 ac_cv_prog_cxx_g=no
4774 CXXFLAGS="-g"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4779 main ()
4783 return 0;
4785 _ACEOF
4786 if ac_fn_cxx_try_compile "$LINENO"; then :
4787 ac_cv_prog_cxx_g=yes
4788 else
4789 CXXFLAGS=""
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4794 main ()
4798 return 0;
4800 _ACEOF
4801 if ac_fn_cxx_try_compile "$LINENO"; then :
4803 else
4804 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4805 CXXFLAGS="-g"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4810 main ()
4814 return 0;
4816 _ACEOF
4817 if ac_fn_cxx_try_compile "$LINENO"; then :
4818 ac_cv_prog_cxx_g=yes
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4828 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4829 if test "$ac_test_CXXFLAGS" = set; then
4830 CXXFLAGS=$ac_save_CXXFLAGS
4831 elif test $ac_cv_prog_cxx_g = yes; then
4832 if test "$GXX" = yes; then
4833 CXXFLAGS="-g -O2"
4834 else
4835 CXXFLAGS="-g"
4837 else
4838 if test "$GXX" = yes; then
4839 CXXFLAGS="-O2"
4840 else
4841 CXXFLAGS=
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 # We must set the default linker to the linker used by gcc for the correct
4852 # operation of libtool. If LD is not defined and we are using gcc, try to
4853 # set the LD default to the ld used by gcc.
4854 if test -z "$LD"; then
4855 if test "$GCC" = yes; then
4856 case $build in
4857 *-*-mingw*)
4858 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4860 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4861 esac
4862 case $gcc_prog_ld in
4863 # Accept absolute paths.
4864 [\\/]* | [A-Za-z]:[\\/]*)
4865 LD="$gcc_prog_ld" ;;
4866 esac
4873 if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4875 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test -n "$GNATBIND"; then
4882 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4895 done
4896 done
4897 IFS=$as_save_IFS
4901 GNATBIND=$ac_cv_prog_GNATBIND
4902 if test -n "$GNATBIND"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4904 $as_echo "$GNATBIND" >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4912 if test -z "$ac_cv_prog_GNATBIND"; then
4913 ac_ct_GNATBIND=$GNATBIND
4914 # Extract the first word of "gnatbind", so it can be a program name with args.
4915 set dummy gnatbind; ac_word=$2
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$ac_ct_GNATBIND"; then
4922 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4937 IFS=$as_save_IFS
4941 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4942 if test -n "$ac_ct_GNATBIND"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4944 $as_echo "$ac_ct_GNATBIND" >&6; }
4945 else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4950 if test "x$ac_ct_GNATBIND" = x; then
4951 GNATBIND="no"
4952 else
4953 case $cross_compiling:$ac_tool_warned in
4954 yes:)
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957 ac_tool_warned=yes ;;
4958 esac
4959 GNATBIND=$ac_ct_GNATBIND
4961 else
4962 GNATBIND="$ac_cv_prog_GNATBIND"
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$GNATMAKE"; then
4974 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 GNATMAKE=$ac_cv_prog_GNATMAKE
4994 if test -n "$GNATMAKE"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4996 $as_echo "$GNATMAKE" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5004 if test -z "$ac_cv_prog_GNATMAKE"; then
5005 ac_ct_GNATMAKE=$GNATMAKE
5006 # Extract the first word of "gnatmake", so it can be a program name with args.
5007 set dummy gnatmake; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$ac_ct_GNATMAKE"; then
5014 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5029 IFS=$as_save_IFS
5033 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5034 if test -n "$ac_ct_GNATMAKE"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5036 $as_echo "$ac_ct_GNATMAKE" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5042 if test "x$ac_ct_GNATMAKE" = x; then
5043 GNATMAKE="no"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046 yes:)
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049 ac_tool_warned=yes ;;
5050 esac
5051 GNATMAKE=$ac_ct_GNATMAKE
5053 else
5054 GNATMAKE="$ac_cv_prog_GNATMAKE"
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5058 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5059 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 cat >conftest.adb <<EOF
5063 procedure conftest is begin null; end conftest;
5065 acx_cv_cc_gcc_supports_ada=no
5066 # There is a bug in old released versions of GCC which causes the
5067 # driver to exit successfully when the appropriate language module
5068 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5069 # Therefore we must check for the error message as well as an
5070 # unsuccessful exit.
5071 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5072 # given a .adb file, but produce no object file. So we must check
5073 # if an object file was really produced to guard against this.
5074 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5075 if test x"$errors" = x && test -f conftest.$ac_objext; then
5076 acx_cv_cc_gcc_supports_ada=yes
5078 rm -f conftest.*
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5081 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5083 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5084 have_gnat=yes
5085 else
5086 have_gnat=no
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5090 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5091 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 echo abfoo >t1
5095 echo cdfoo >t2
5096 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5097 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5098 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5100 else
5101 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5104 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5105 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5107 else
5108 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5111 rm t1 t2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5115 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5116 do_compare="$gcc_cv_prog_cmp_skip"
5120 # See if we are building gcc with C++.
5121 # Check whether --enable-build-with-cxx was given.
5122 if test "${enable_build_with_cxx+set}" = set; then :
5123 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5124 else
5125 ENABLE_BUILD_WITH_CXX=no
5129 # Used for setting $lt_cv_objdir
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5131 $as_echo_n "checking for objdir... " >&6; }
5132 if test "${lt_cv_objdir+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 rm -f .libs 2>/dev/null
5136 mkdir .libs 2>/dev/null
5137 if test -d .libs; then
5138 lt_cv_objdir=.libs
5139 else
5140 # MS-DOS does not allow filenames that begin with a dot.
5141 lt_cv_objdir=_libs
5143 rmdir .libs 2>/dev/null
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5146 $as_echo "$lt_cv_objdir" >&6; }
5147 objdir=$lt_cv_objdir
5153 cat >>confdefs.h <<_ACEOF
5154 #define LT_OBJDIR "$lt_cv_objdir/"
5155 _ACEOF
5159 # Check for GMP, MPFR and MPC
5160 gmplibs="-lmpc -lmpfr -lgmp"
5161 gmpinc=
5162 have_gmp=no
5164 # Specify a location for mpc
5165 # check for this first so it ends up on the link line before mpfr.
5167 # Check whether --with-mpc was given.
5168 if test "${with_mpc+set}" = set; then :
5169 withval=$with_mpc;
5173 # Check whether --with-mpc-include was given.
5174 if test "${with_mpc_include+set}" = set; then :
5175 withval=$with_mpc_include;
5179 # Check whether --with-mpc-lib was given.
5180 if test "${with_mpc_lib+set}" = set; then :
5181 withval=$with_mpc_lib;
5185 if test "x$with_mpc" != x; then
5186 gmplibs="-L$with_mpc/lib $gmplibs"
5187 gmpinc="-I$with_mpc/include $gmpinc"
5189 if test "x$with_mpc_include" != x; then
5190 gmpinc="-I$with_mpc_include $gmpinc"
5192 if test "x$with_mpc_lib" != x; then
5193 gmplibs="-L$with_mpc_lib $gmplibs"
5195 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5196 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5197 gmpinc='-I$$s/mpc/src '"$gmpinc"
5198 # Do not test the mpc version. Assume that it is sufficient, since
5199 # it is in the source tree, and the library has not been built yet
5200 # but it would be included on the link line in the version check below
5201 # hence making the test fail.
5202 have_gmp=yes
5205 # Specify a location for mpfr
5206 # check for this first so it ends up on the link line before gmp.
5208 # Check whether --with-mpfr-dir was given.
5209 if test "${with_mpfr_dir+set}" = set; then :
5210 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5211 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5216 # Check whether --with-mpfr was given.
5217 if test "${with_mpfr+set}" = set; then :
5218 withval=$with_mpfr;
5222 # Check whether --with-mpfr-include was given.
5223 if test "${with_mpfr_include+set}" = set; then :
5224 withval=$with_mpfr_include;
5228 # Check whether --with-mpfr-lib was given.
5229 if test "${with_mpfr_lib+set}" = set; then :
5230 withval=$with_mpfr_lib;
5234 if test "x$with_mpfr" != x; then
5235 gmplibs="-L$with_mpfr/lib $gmplibs"
5236 gmpinc="-I$with_mpfr/include $gmpinc"
5238 if test "x$with_mpfr_include" != x; then
5239 gmpinc="-I$with_mpfr_include $gmpinc"
5241 if test "x$with_mpfr_lib" != x; then
5242 gmplibs="-L$with_mpfr_lib $gmplibs"
5244 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5245 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5246 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5247 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5248 # Do not test the mpfr version. Assume that it is sufficient, since
5249 # it is in the source tree, and the library has not been built yet
5250 # but it would be included on the link line in the version check below
5251 # hence making the test fail.
5252 have_gmp=yes
5255 # Specify a location for gmp
5257 # Check whether --with-gmp-dir was given.
5258 if test "${with_gmp_dir+set}" = set; then :
5259 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5260 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5265 # Check whether --with-gmp was given.
5266 if test "${with_gmp+set}" = set; then :
5267 withval=$with_gmp;
5271 # Check whether --with-gmp-include was given.
5272 if test "${with_gmp_include+set}" = set; then :
5273 withval=$with_gmp_include;
5277 # Check whether --with-gmp-lib was given.
5278 if test "${with_gmp_lib+set}" = set; then :
5279 withval=$with_gmp_lib;
5284 if test "x$with_gmp" != x; then
5285 gmplibs="-L$with_gmp/lib $gmplibs"
5286 gmpinc="-I$with_gmp/include $gmpinc"
5288 if test "x$with_gmp_include" != x; then
5289 gmpinc="-I$with_gmp_include $gmpinc"
5291 if test "x$with_gmp_lib" != x; then
5292 gmplibs="-L$with_gmp_lib $gmplibs"
5294 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5295 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5296 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5297 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5298 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5299 # Do not test the gmp version. Assume that it is sufficient, since
5300 # it is in the source tree, and the library has not been built yet
5301 # but it would be included on the link line in the version check below
5302 # hence making the test fail.
5303 have_gmp=yes
5306 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5307 have_gmp=yes
5308 saved_CFLAGS="$CFLAGS"
5309 CFLAGS="$CFLAGS $gmpinc"
5310 # Check for the recommended and required versions of GMP.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5312 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include "gmp.h"
5318 main ()
5321 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5322 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5323 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5324 choke me
5325 #endif
5328 return 0;
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <gmp.h>
5336 main ()
5339 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5340 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5341 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5342 choke me
5343 #endif
5346 return 0;
5348 _ACEOF
5349 if ac_fn_c_try_compile "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5354 $as_echo "buggy but acceptable" >&6; }
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }; have_gmp=no
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 # If we have GMP, check the MPFR version.
5364 if test x"$have_gmp" = xyes; then
5365 # Check for the recommended and required versions of MPFR.
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5367 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 #include <gmp.h>
5371 #include <mpfr.h>
5373 main ()
5376 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5377 choke me
5378 #endif
5381 return 0;
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5387 #include <gmp.h>
5388 #include <mpfr.h>
5390 main ()
5393 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5394 choke me
5395 #endif
5398 return 0;
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403 $as_echo "yes" >&6; }
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5406 $as_echo "buggy but acceptable" >&6; }
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }; have_gmp=no
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 # Check for the MPC header version.
5417 if test x"$have_gmp" = xyes ; then
5418 # Check for the recommended and required versions of MPC.
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5420 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 #include <mpc.h>
5425 main ()
5428 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5429 choke me
5430 #endif
5433 return 0;
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 #include <mpc.h>
5441 main ()
5444 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5445 choke me
5446 #endif
5449 return 0;
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454 $as_echo "yes" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5457 $as_echo "buggy but acceptable" >&6; }
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }; have_gmp=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 # Now check the MPFR library.
5468 if test x"$have_gmp" = xyes; then
5469 saved_LIBS="$LIBS"
5470 LIBS="$LIBS $gmplibs"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5472 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <mpc.h>
5477 main ()
5480 mpfr_t n;
5481 mpfr_t x;
5482 mpc_t c;
5483 int t;
5484 mpfr_init (n);
5485 mpfr_init (x);
5486 mpfr_atan2 (n, n, x, GMP_RNDN);
5487 mpfr_erfc (n, x, GMP_RNDN);
5488 mpfr_subnormalize (x, t, GMP_RNDN);
5489 mpfr_clear(n);
5490 mpfr_clear(x);
5491 mpc_init2 (c, 53);
5492 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5493 mpc_cosh (c, c, MPC_RNDNN);
5494 mpc_pow (c, c, c, MPC_RNDNN);
5495 mpc_acosh (c, c, MPC_RNDNN);
5496 mpc_clear (c);
5499 return 0;
5501 _ACEOF
5502 if ac_fn_c_try_link "$LINENO"; then :
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }; have_gmp=no
5509 rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5511 LIBS="$saved_LIBS"
5514 CFLAGS="$saved_CFLAGS"
5516 # The library versions listed in the error message below should match
5517 # the HARD-minimums enforced above.
5518 if test x$have_gmp != xyes; then
5519 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5520 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5521 their locations. Source code for these libraries can be found at
5522 their respective hosting sites as well as at
5523 ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5524 http://gcc.gnu.org/install/prerequisites.html for additional info. If
5525 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5526 make sure that you have installed both the libraries and the header
5527 files. They may be located in separate packages." "$LINENO" 5
5531 # Flags needed for both GMP, MPFR and/or MPC.
5538 # Allow host libstdc++ to be specified for static linking with PPL.
5540 # Check whether --with-host-libstdcxx was given.
5541 if test "${with_host_libstdcxx+set}" = set; then :
5542 withval=$with_host_libstdcxx;
5546 case $with_host_libstdcxx in
5547 no|yes)
5548 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5550 esac
5552 # Linker flags to use for stage1 or when not boostrapping.
5554 # Check whether --with-stage1-ldflags was given.
5555 if test "${with_stage1_ldflags+set}" = set; then :
5556 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5557 stage1_ldflags=
5558 else
5559 stage1_ldflags=$withval
5561 else
5562 stage1_ldflags=
5567 # Libraries to use for stage1 or when not bootstrapping.
5569 # Check whether --with-stage1-libs was given.
5570 if test "${with_stage1_libs+set}" = set; then :
5571 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5572 stage1_libs=
5573 else
5574 stage1_libs=$withval
5576 else
5577 stage1_libs=$with_host_libstdcxx
5582 # Libraries to use for stage2 and later builds. This defaults to the
5583 # argument passed to --with-host-libstdcxx.
5585 # Check whether --with-boot-libs was given.
5586 if test "${with_boot_libs+set}" = set; then :
5587 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5588 poststage1_libs=
5589 else
5590 poststage1_libs=$withval
5592 else
5593 poststage1_libs=$with_host_libstdcxx
5598 # Linker flags to use for stage2 and later builds.
5600 # Check whether --with-boot-ldflags was given.
5601 if test "${with_boot_ldflags+set}" = set; then :
5602 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5603 poststage1_ldflags=
5604 else
5605 poststage1_ldflags=$withval
5607 else
5608 poststage1_ldflags=
5609 # In stages 2 and 3, default to linking libstdc++ and libgcc
5610 # statically. But if the user explicitly specified the libraries to
5611 # use, trust that they are doing what they want.
5612 if test "$poststage1_libs" = ""; then
5613 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5619 # Check for PPL
5620 ppllibs=" -lppl_c -lppl -lgmpxx"
5621 pplinc=
5624 # Check whether --with-ppl was given.
5625 if test "${with_ppl+set}" = set; then :
5626 withval=$with_ppl;
5630 # Check whether --with-ppl-include was given.
5631 if test "${with_ppl_include+set}" = set; then :
5632 withval=$with_ppl_include;
5636 # Check whether --with-ppl-lib was given.
5637 if test "${with_ppl_lib+set}" = set; then :
5638 withval=$with_ppl_lib;
5642 case $with_ppl in
5644 ppllibs=
5646 "" | yes)
5649 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5650 pplinc="-I$with_ppl/include $pplinc"
5652 esac
5653 if test "x$with_ppl_include" != x; then
5654 pplinc="-I$with_ppl_include $pplinc"
5656 if test "x$with_ppl_lib" != x; then
5657 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5659 if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5660 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5661 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5662 enable_ppl_version_check=no
5665 # Check whether --enable-ppl-version-check was given.
5666 if test "${enable_ppl_version_check+set}" = set; then :
5667 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5668 else
5669 ENABLE_PPL_CHECK=yes
5673 if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5674 saved_CFLAGS="$CFLAGS"
5675 CFLAGS="$CFLAGS $pplinc $gmpinc"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5677 $as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 #include "ppl_c.h"
5682 main ()
5685 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5686 choke me
5687 #endif
5690 return 0;
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695 $as_echo "yes" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 CFLAGS="$saved_CFLAGS"
5704 # Flags needed for PPL
5709 # Check for CLOOG
5713 # Check whether --with-cloog was given.
5714 if test "${with_cloog+set}" = set; then :
5715 withval=$with_cloog;
5719 # Check whether --with-cloog-include was given.
5720 if test "${with_cloog_include+set}" = set; then :
5721 withval=$with_cloog_include;
5725 # Check whether --with-cloog-lib was given.
5726 if test "${with_cloog_lib+set}" = set; then :
5727 withval=$with_cloog_lib;
5731 # Check whether --enable-cloog-backend was given.
5732 if test "${enable_cloog_backend+set}" = set; then :
5733 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5734 cloog_backend=isl
5735 elif test "x${enableval}" = "xppl"; then
5736 cloog_backend=ppl
5737 else
5738 cloog_backend=ppl-legacy
5740 else
5741 cloog_backend=ppl-legacy
5744 # Check whether --enable-cloog-version-check was given.
5745 if test "${enable_cloog_version_check+set}" = set; then :
5746 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5747 else
5748 ENABLE_CLOOG_CHECK=yes
5752 # Initialize clooglibs and clooginc.
5753 case $with_cloog in
5755 clooglibs=
5756 clooginc=
5758 "" | yes)
5761 clooglibs="-L$with_cloog/lib"
5762 clooginc="-I$with_cloog/include"
5764 esac
5765 if test "x${with_cloog_include}" != x ; then
5766 clooginc="-I$with_cloog_include"
5768 if test "x${with_cloog_lib}" != x; then
5769 clooglibs="-L$with_cloog_lib"
5776 if test "x$with_ppl" = "xno"; then
5777 with_cloog=no
5779 if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5780 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5781 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5782 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5784 if test "x$with_cloog" != "xno"; then
5788 _cloog_saved_CFLAGS=$CFLAGS
5789 _cloog_saved_CPPFLAGS=$CPPFLAGS
5790 _cloog_saved_LDFLAGS=$LDFLAGS
5791 _cloog_saved_LIBS=$LIBS
5793 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5795 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5796 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5797 LDFLAGS="${LDFLAGS} ${clooglibs}"
5799 case $cloog_backend in
5800 "ppl-legacy")
5801 CFLAGS="${CFLAGS} ${pplinc}"
5802 LDFLAGS="${LDFLAGS} ${ppllibs}"
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5804 $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5805 if test "${gcc_cv_cloog_type+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 LIBS="-lcloog ${_cloog_saved_LIBS}"
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 #include "cloog/cloog.h"
5813 main ()
5815 #ifndef CLOOG_PPL_BACKEND
5816 choke me
5817 #endif
5819 return 0;
5821 _ACEOF
5822 if ac_fn_c_try_link "$LINENO"; then :
5823 gcc_cv_cloog_type="PPL Legacy"
5824 else
5825 gcc_cv_cloog_type=no
5827 rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5831 $as_echo "$gcc_cv_cloog_type" >&6; }
5833 "isl")
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5835 $as_echo_n "checking for installed CLooG ISL... " >&6; }
5836 if test "${gcc_cv_cloog_type+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include "cloog/cloog.h"
5844 main ()
5846 cloog_version ()
5848 return 0;
5850 _ACEOF
5851 if ac_fn_c_try_link "$LINENO"; then :
5852 gcc_cv_cloog_type="ISL"
5853 else
5854 gcc_cv_cloog_type=no
5856 rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5860 $as_echo "$gcc_cv_cloog_type" >&6; }
5862 "ppl")
5863 CFLAGS="${CFLAGS} ${pplinc}"
5864 LDFLAGS="${LDFLAGS} ${ppllibs}"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5866 $as_echo_n "checking for installed CLooG PPL... " >&6; }
5867 if test "${gcc_cv_cloog_type+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873 #include "cloog/cloog.h"
5874 #include "cloog/ppl/cloog.h"
5876 main ()
5878 cloog_version ()
5880 return 0;
5882 _ACEOF
5883 if ac_fn_c_try_link "$LINENO"; then :
5884 gcc_cv_cloog_type="PPL"
5885 else
5886 gcc_cv_cloog_type=no
5888 rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5892 $as_echo "$gcc_cv_cloog_type" >&6; }
5895 gcc_cv_cloog_type=""
5896 esac
5898 case $gcc_cv_cloog_type in
5899 "PPL Legacy")
5900 clooginc="${clooginc}"
5901 clooglibs="${clooglibs} -lcloog"
5902 cloog_org=no
5904 "ISL")
5905 clooginc="${clooginc} ${_cloogorginc}"
5906 clooglibs="${clooglibs} -lcloog-isl"
5907 cloog_org=yes
5909 "PPL")
5910 clooginc="${clooginc} ${_cloogorginc}"
5911 clooglibs="${clooglibs} -lcloog-ppl"
5912 cloog_org=yes
5915 clooglibs=
5916 clooginc=
5917 cloog_org=
5919 esac
5921 LIBS=$_cloog_saved_LIBS
5922 CFLAGS=$_cloog_saved_CFLAGS
5923 CPPFLAGS=$_cloog_saved_CPPFLAGS
5924 LDFLAGS=$_cloog_saved_LDFLAGS
5930 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5931 _cloog_saved_CFLAGS=$CFLAGS
5932 _cloog_saved_LDFLAGS=$LDFLAGS
5934 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5935 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5937 if test "${cloog_org}" = yes ; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5939 $as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5940 if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include "cloog/cloog.h"
5947 main ()
5949 #if CLOOG_VERSION_MAJOR != 0 \
5950 || CLOOG_VERSION_MINOR != 14 \
5951 || CLOOG_VERSION_REVISION < 0
5952 choke me
5953 #endif
5955 return 0;
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 gcc_cv_cloog_ct_0_14_0=yes
5960 else
5961 gcc_cv_cloog_ct_0_14_0=no
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5966 $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5967 elif test "${cloog_org}" = no ; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5969 $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5970 if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 #include "cloog/cloog.h"
5977 main ()
5979 #if CLOOG_VERSION_MAJOR != 0 \
5980 || CLOOG_VERSION_MINOR != 15 \
5981 || CLOOG_VERSION_REVISION < 5
5982 choke me
5983 #endif
5985 return 0;
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"; then :
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991 #include "cloog/cloog.h"
5993 main ()
5995 #if CLOOG_VERSION_MAJOR != 0 \
5996 || CLOOG_VERSION_MINOR != 15 \
5997 || CLOOG_VERSION_REVISION < 9
5998 choke me
5999 #endif
6001 return 0;
6003 _ACEOF
6004 if ac_fn_c_try_compile "$LINENO"; then :
6005 gcc_cv_cloog_ct_0_15_5=yes
6006 else
6007 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010 else
6011 gcc_cv_cloog_ct_0_15_5=no
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6016 $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6019 CFLAGS=$_cloog_saved_CFLAGS
6020 LDFLAGS=$_cloog_saved_LDFLAGS
6029 if test "x${with_cloog}" != x \
6030 || test "x${with_cloog_include}" != x \
6031 || test "x${with_cloog_lib}" != x ; then
6032 graphite_requested=yes
6033 else
6034 graphite_requested=no
6039 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6040 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6041 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6042 clooglibs=
6043 clooginc=
6046 if test "${graphite_requested}" = yes \
6047 && test "x${clooglibs}" = x \
6048 && test "x${clooginc}" = x ; then
6050 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6056 # Check for LTO support.
6057 # Check whether --enable-lto was given.
6058 if test "${enable_lto+set}" = set; then :
6059 enableval=$enable_lto; enable_lto=$enableval
6060 else
6061 enable_lto=yes; default_enable_lto=yes
6068 target_elf=no
6069 case $target in
6070 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6071 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6072 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6073 target_elf=no
6076 target_elf=yes
6078 esac
6080 if test $target_elf = yes; then :
6081 # ELF platforms build the lto-plugin always.
6082 build_lto_plugin=yes
6084 else
6085 if test x"$default_enable_lto" = x"yes" ; then
6086 case $target in
6087 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6088 # On other non-ELF platforms, LTO has yet to be validated.
6089 *) enable_lto=no ;;
6090 esac
6091 else
6092 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6093 # It would also be nice to check the binutils support, but we don't
6094 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6095 # warn during gcc/ subconfigure; unless you're bootstrapping with
6096 # -flto it won't be needed until after installation anyway.
6097 case $target in
6098 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6099 *) if test x"$enable_lto" = x"yes"; then
6100 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6103 esac
6105 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6106 # Build it unless LTO was explicitly disabled.
6107 case $target in
6108 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6109 *) ;;
6110 esac
6116 # By default, C is the only stage 1 language.
6117 stage1_languages=,c,
6119 # Target libraries that we bootstrap.
6120 bootstrap_target_libs=,target-libgcc,
6122 # Figure out what language subdirectories are present.
6123 # Look if the user specified --enable-languages="..."; if not, use
6124 # the environment variable $LANGUAGES if defined. $LANGUAGES might
6125 # go away some day.
6126 # NB: embedded tabs in this IF block -- do not untabify
6127 if test -d ${srcdir}/gcc; then
6128 if test x"${enable_languages+set}" != xset; then
6129 if test x"${LANGUAGES+set}" = xset; then
6130 enable_languages="${LANGUAGES}"
6131 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6132 else
6133 enable_languages=all
6135 else
6136 if test x"${enable_languages}" = x ||
6137 test x"${enable_languages}" = xyes;
6138 then
6139 echo configure.in: --enable-languages needs at least one language argument 1>&2
6140 exit 1
6143 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6145 # 'f95' is the old name for the 'fortran' language. We issue a warning
6146 # and make the substitution.
6147 case ,${enable_languages}, in
6148 *,f95,*)
6149 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6150 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6152 esac
6154 # First scan to see if an enabled language requires some other language.
6155 # We assume that a given config-lang.in will list all the language
6156 # front ends it requires, even if some are required indirectly.
6157 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6158 case ${lang_frag} in
6159 ..) ;;
6160 # The odd quoting in the next line works around
6161 # an apparent bug in bash 1.12 on linux.
6162 ${srcdir}/gcc/[*]/config-lang.in) ;;
6164 # From the config-lang.in, get $language, $lang_requires, and
6165 # $lang_requires_boot_languages.
6166 language=
6167 lang_requires=
6168 lang_requires_boot_languages=
6169 . ${lang_frag}
6170 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6171 case ,${enable_languages}, in
6172 *,$other,*) ;;
6173 *,all,*) ;;
6174 *,$language,*)
6175 echo " \`$other' language required by \`$language'; enabling" 1>&2
6176 enable_languages="${enable_languages},${other}"
6178 esac
6179 done
6180 for other in ${lang_requires_boot_languages} ; do
6181 if test "$other" != "c"; then
6182 case ,${enable_stage1_languages}, in
6183 *,$other,*) ;;
6184 *,all,*) ;;
6186 case ,${enable_languages}, in
6187 *,$language,*)
6188 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6189 enable_stage1_languages="$enable_stage1_languages,${other}"
6191 esac
6193 esac
6195 done
6197 esac
6198 done
6200 new_enable_languages=,c,
6202 # If LTO is enabled, add the LTO front end.
6203 extra_host_libiberty_configure_flags=
6204 if test "$enable_lto" = "yes" ; then
6205 case ,${enable_languages}, in
6206 *,lto,*) ;;
6207 *) enable_languages="${enable_languages},lto" ;;
6208 esac
6209 if test "${build_lto_plugin}" = "yes" ; then
6210 configdirs="$configdirs lto-plugin"
6211 extra_host_libiberty_configure_flags=--enable-shared
6216 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6217 potential_languages=,c,
6219 enabled_target_libs=
6220 disabled_target_libs=
6222 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6223 case ${lang_frag} in
6224 ..) ;;
6225 # The odd quoting in the next line works around
6226 # an apparent bug in bash 1.12 on linux.
6227 ${srcdir}/gcc/[*]/config-lang.in) ;;
6229 # From the config-lang.in, get $language, $target_libs,
6230 # $lang_dirs, $boot_language, and $build_by_default
6231 language=
6232 target_libs=
6233 lang_dirs=
6234 subdir_requires=
6235 boot_language=no
6236 build_by_default=yes
6237 . ${lang_frag}
6238 if test x${language} = x; then
6239 echo "${lang_frag} doesn't set \$language." 1>&2
6240 exit 1
6243 if test "$language" = "c++" \
6244 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6245 boot_language=yes
6248 case ,${enable_languages}, in
6249 *,${language},*)
6250 # Language was explicitly selected; include it.
6251 add_this_lang=yes
6253 *,all,*)
6254 # 'all' was selected, select it if it is a default language
6255 add_this_lang=${build_by_default}
6258 add_this_lang=no
6260 esac
6262 # Disable languages that need other directories if these aren't available.
6263 for i in $subdir_requires; do
6264 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6265 case ,${enable_languages}, in
6266 *,${language},*)
6267 # Specifically requested language; tell them.
6268 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6271 # Silently disable.
6272 add_this_lang=unsupported
6274 esac
6275 done
6277 # Disable Ada if no preexisting GNAT is available.
6278 case ,${enable_languages},:${language}:${have_gnat} in
6279 *,${language},*:ada:no)
6280 # Specifically requested language; tell them.
6281 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6283 *:ada:no)
6284 # Silently disable.
6285 add_this_lang=unsupported
6287 esac
6289 # Disable a language that is unsupported by the target.
6290 case " $unsupported_languages " in
6291 *" $language "*)
6292 add_this_lang=unsupported
6294 esac
6296 case $add_this_lang in
6297 unsupported)
6298 # Remove language-dependent dirs.
6299 disabled_target_libs="$disabled_target_libs $target_libs"
6300 noconfigdirs="$noconfigdirs $lang_dirs"
6303 # Remove language-dependent dirs; still show language as supported.
6304 disabled_target_libs="$disabled_target_libs $target_libs"
6305 noconfigdirs="$noconfigdirs $lang_dirs"
6306 potential_languages="${potential_languages}${language},"
6308 yes)
6309 new_enable_languages="${new_enable_languages}${language},"
6310 potential_languages="${potential_languages}${language},"
6311 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6312 enabled_target_libs="$enabled_target_libs $target_libs"
6313 case "${boot_language}:,$enable_stage1_languages," in
6314 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6315 # Add to (comma-separated) list of stage 1 languages.
6316 case ",$stage1_languages," in
6317 *,$language,* | ,yes, | ,all,) ;;
6318 *) stage1_languages="${stage1_languages}${language}," ;;
6319 esac
6320 # We need to bootstrap any supporting libraries.
6321 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6323 esac
6325 esac
6327 esac
6328 done
6330 # Add target libraries which are only needed for disabled languages
6331 # to noconfigdirs.
6332 if test -n "$disabled_target_libs"; then
6333 for dir in $disabled_target_libs; do
6334 case " $enabled_target_libs " in
6335 *" ${dir} "*) ;;
6336 *) noconfigdirs="$noconfigdirs $dir" ;;
6337 esac
6338 done
6341 # Check whether --enable-stage1-languages was given.
6342 if test "${enable_stage1_languages+set}" = set; then :
6343 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6344 ,no,|,,)
6345 # Set it to something that will have no effect in the loop below
6346 enable_stage1_languages=c ;;
6347 ,yes,)
6348 enable_stage1_languages=`echo $new_enable_languages | \
6349 sed -e "s/^,//" -e "s/,$//" ` ;;
6350 *,all,*)
6351 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6352 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6353 esac
6355 # Add "good" languages from enable_stage1_languages to stage1_languages,
6356 # while "bad" languages go in missing_languages. Leave no duplicates.
6357 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6358 case $potential_languages in
6359 *,$i,*)
6360 case $stage1_languages in
6361 *,$i,*) ;;
6362 *) stage1_languages="$stage1_languages$i," ;;
6363 esac ;;
6365 case $missing_languages in
6366 *,$i,*) ;;
6367 *) missing_languages="$missing_languages$i," ;;
6368 esac ;;
6369 esac
6370 done
6374 # Remove leading/trailing commas that were added for simplicity
6375 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6376 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6377 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6378 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6380 if test "x$missing_languages" != x; then
6381 as_fn_error "
6382 The following requested languages could not be built: ${missing_languages}
6383 Supported languages are: ${potential_languages}" "$LINENO" 5
6385 if test "x$new_enable_languages" != "x$enable_languages"; then
6386 echo The following languages will be built: ${new_enable_languages}
6387 enable_languages="$new_enable_languages"
6391 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6394 # Handle --disable-<component> generically.
6395 for dir in $configdirs $build_configdirs $target_configdirs ; do
6396 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6397 varname=`echo $dirname | sed -e s/+/_/g`
6398 if eval test x\${enable_${varname}} "=" xno ; then
6399 noconfigdirs="$noconfigdirs $dir"
6401 done
6403 # Check for Boehm's garbage collector
6404 # Check whether --enable-objc-gc was given.
6405 if test "${enable_objc_gc+set}" = set; then :
6406 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6407 *,objc,*:*:yes:*target-boehm-gc*)
6408 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6410 esac
6414 # Make sure we only build Boehm's garbage collector if required.
6415 case ,${enable_languages},:${enable_objc_gc} in
6416 *,objc,*:yes)
6417 # Keep target-boehm-gc if requested for Objective-C.
6420 # Otherwise remove target-boehm-gc depending on target-libjava.
6421 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6422 noconfigdirs="$noconfigdirs target-boehm-gc"
6425 esac
6427 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6428 # $build_configdirs and $target_configdirs.
6429 # If we have the source for $noconfigdirs entries, add them to $notsupp.
6431 notsupp=""
6432 for dir in . $skipdirs $noconfigdirs ; do
6433 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6434 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6435 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6436 if test -r $srcdir/$dirname/configure ; then
6437 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6438 true
6439 else
6440 notsupp="$notsupp $dir"
6444 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6445 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6446 if test -r $srcdir/$dirname/configure ; then
6447 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 true
6449 else
6450 notsupp="$notsupp $dir"
6454 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6455 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6456 if test -r $srcdir/$dirname/configure ; then
6457 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458 true
6459 else
6460 notsupp="$notsupp $dir"
6464 done
6466 # Sometimes the tools are distributed with libiberty but with no other
6467 # libraries. In that case, we don't want to build target-libiberty.
6468 # Don't let libgcc imply libiberty either.
6469 if test -n "${target_configdirs}" ; then
6470 libgcc=
6471 others=
6472 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6473 if test "$i" = "libgcc"; then
6474 libgcc=target-libgcc
6475 elif test "$i" != "libiberty" ; then
6476 if test -r $srcdir/$i/configure ; then
6477 others=yes;
6478 break;
6481 done
6482 if test -z "${others}" ; then
6483 target_configdirs=$libgcc
6487 # Quietly strip out all directories which aren't configurable in this tree.
6488 # This relies on all configurable subdirectories being autoconfiscated, which
6489 # is now the case.
6490 build_configdirs_all="$build_configdirs"
6491 build_configdirs=
6492 for i in ${build_configdirs_all} ; do
6493 j=`echo $i | sed -e s/build-//g`
6494 if test -f ${srcdir}/$j/configure ; then
6495 build_configdirs="${build_configdirs} $i"
6497 done
6499 configdirs_all="$configdirs"
6500 configdirs=
6501 for i in ${configdirs_all} ; do
6502 if test -f ${srcdir}/$i/configure ; then
6503 configdirs="${configdirs} $i"
6505 done
6507 target_configdirs_all="$target_configdirs"
6508 target_configdirs=
6509 for i in ${target_configdirs_all} ; do
6510 j=`echo $i | sed -e s/target-//g`
6511 if test -f ${srcdir}/$j/configure ; then
6512 target_configdirs="${target_configdirs} $i"
6514 done
6516 # Produce a warning message for the subdirs we can't configure.
6517 # This isn't especially interesting in the Cygnus tree, but in the individual
6518 # FSF releases, it's important to let people know when their machine isn't
6519 # supported by the one or two programs in a package.
6521 if test -n "${notsupp}" && test -z "${norecursion}" ; then
6522 # If $appdirs is non-empty, at least one of those directories must still
6523 # be configured, or we error out. (E.g., if the gas release supports a
6524 # specified target in some subdirs but not the gas subdir, we shouldn't
6525 # pretend that all is well.)
6526 if test -n "$appdirs" ; then
6527 for dir in $appdirs ; do
6528 if test -r $dir/Makefile.in ; then
6529 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6530 appdirs=""
6531 break
6533 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6534 appdirs=""
6535 break
6538 done
6539 if test -n "$appdirs" ; then
6540 echo "*** This configuration is not supported by this package." 1>&2
6541 exit 1
6544 # Okay, some application will build, or we don't care to check. Still
6545 # notify of subdirs not getting built.
6546 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6547 echo " ${notsupp}" 1>&2
6548 echo " (Any other directories should still work fine.)" 1>&2
6551 case "$host" in
6552 *msdosdjgpp*)
6553 enable_gdbtk=no ;;
6554 esac
6556 # To find our prefix, in gcc_cv_tool_prefix.
6558 # The user is always right.
6559 if test "${PATH_SEPARATOR+set}" != set; then
6560 echo "#! /bin/sh" >conf$$.sh
6561 echo "exit 0" >>conf$$.sh
6562 chmod +x conf$$.sh
6563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6564 PATH_SEPARATOR=';'
6565 else
6566 PATH_SEPARATOR=:
6568 rm -f conf$$.sh
6573 if test "x$exec_prefix" = xNONE; then
6574 if test "x$prefix" = xNONE; then
6575 gcc_cv_tool_prefix=$ac_default_prefix
6576 else
6577 gcc_cv_tool_prefix=$prefix
6579 else
6580 gcc_cv_tool_prefix=$exec_prefix
6583 # If there is no compiler in the tree, use the PATH only. In any
6584 # case, if there is no compiler in the tree nobody should use
6585 # AS_FOR_TARGET and LD_FOR_TARGET.
6586 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6587 gcc_version=`cat $srcdir/gcc/BASE-VER`
6588 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6589 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6590 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6591 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6592 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6593 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6594 else
6595 gcc_cv_tool_dirs=
6598 if test x$build = x$target && test -n "$md_exec_prefix"; then
6599 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6604 copy_dirs=
6607 # Check whether --with-build-sysroot was given.
6608 if test "${with_build_sysroot+set}" = set; then :
6609 withval=$with_build_sysroot; if test x"$withval" != x ; then
6610 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6612 else
6613 SYSROOT_CFLAGS_FOR_TARGET=
6619 # Check whether --with-debug-prefix-map was given.
6620 if test "${with_debug_prefix_map+set}" = set; then :
6621 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6622 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6623 for debug_map in $withval; do
6624 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6625 done
6627 else
6628 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6633 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6634 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6635 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6636 # We want to ensure that TARGET libraries (which we know are built with
6637 # gcc) are built with "-O2 -g", so include those options when setting
6638 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6639 if test "x$CFLAGS_FOR_TARGET" = x; then
6640 CFLAGS_FOR_TARGET=$CFLAGS
6641 case " $CFLAGS " in
6642 *" -O2 "*) ;;
6643 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6644 esac
6645 case " $CFLAGS " in
6646 *" -g "* | *" -g3 "*) ;;
6647 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6648 esac
6652 if test "x$CXXFLAGS_FOR_TARGET" = x; then
6653 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6654 case " $CXXFLAGS " in
6655 *" -O2 "*) ;;
6656 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6657 esac
6658 case " $CXXFLAGS " in
6659 *" -g "* | *" -g3 "*) ;;
6660 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6661 esac
6665 # Handle --with-headers=XXX. If the value is not "yes", the contents of
6666 # the named directory are copied to $(tooldir)/sys-include.
6667 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6668 if test x${is_cross_compiler} = xno ; then
6669 echo 1>&2 '***' --with-headers is only supported when cross compiling
6670 exit 1
6672 if test x"${with_headers}" != xyes ; then
6673 x=${gcc_cv_tool_prefix}
6674 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6678 # Handle --with-libs=XXX. If the value is not "yes", the contents of
6679 # the name directories are copied to $(tooldir)/lib. Multiple directories
6680 # are permitted.
6681 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6682 if test x${is_cross_compiler} = xno ; then
6683 echo 1>&2 '***' --with-libs is only supported when cross compiling
6684 exit 1
6686 if test x"${with_libs}" != xyes ; then
6687 # Copy the libraries in reverse order, so that files in the first named
6688 # library override files in subsequent libraries.
6689 x=${gcc_cv_tool_prefix}
6690 for l in ${with_libs}; do
6691 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6692 done
6696 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6698 # This is done by determining whether or not the appropriate directory
6699 # is available, and by checking whether or not specific configurations
6700 # have requested that this magic not happen.
6702 # The command line options always override the explicit settings in
6703 # configure.in, and the settings in configure.in override this magic.
6705 # If the default for a toolchain is to use GNU as and ld, and you don't
6706 # want to do that, then you should use the --without-gnu-as and
6707 # --without-gnu-ld options for the configure script. Similarly, if
6708 # the default is to use the included zlib and you don't want to do that,
6709 # you should use the --with-system-zlib option for the configure script.
6711 if test x${use_gnu_as} = x &&
6712 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6713 with_gnu_as=yes
6714 extra_host_args="$extra_host_args --with-gnu-as"
6717 if test x${use_gnu_ld} = x &&
6718 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6719 with_gnu_ld=yes
6720 extra_host_args="$extra_host_args --with-gnu-ld"
6723 if test x${use_included_zlib} = x &&
6724 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6726 else
6727 with_system_zlib=yes
6728 extra_host_args="$extra_host_args --with-system-zlib"
6731 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6732 # can detect this case.
6734 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6735 with_newlib=yes
6736 extra_host_args="$extra_host_args --with-newlib"
6739 # Handle ${copy_dirs}
6740 set fnord ${copy_dirs}
6741 shift
6742 while test $# != 0 ; do
6743 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6745 else
6746 echo Copying $1 to $2
6748 # Use the install script to create the directory and all required
6749 # parent directories.
6750 if test -d $2 ; then
6752 else
6753 echo >config.temp
6754 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6757 # Copy the directory, assuming we have tar.
6758 # FIXME: Should we use B in the second tar? Not all systems support it.
6759 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6761 # It is the responsibility of the user to correctly adjust all
6762 # symlinks. If somebody can figure out how to handle them correctly
6763 # here, feel free to add the code.
6765 echo $1 > $2/COPIED
6767 shift; shift
6768 done
6770 # Determine a target-dependent exec_prefix that the installed
6771 # gcc will search in. Keep this list sorted by triplet, with
6772 # the *-*-osname triplets last.
6773 md_exec_prefix=
6774 case "${target}" in
6775 alpha*-*-*vms*)
6776 md_exec_prefix=/gnu/lib/gcc-lib
6778 i[34567]86-pc-msdosdjgpp*)
6779 md_exec_prefix=/dev/env/DJDIR/bin
6781 i[34567]86-*-sco3.2v5*)
6782 if test $with_gnu_as = yes; then
6783 md_exec_prefix=/usr/gnu/bin
6784 else
6785 md_exec_prefix=/usr/ccs/bin/elf
6789 mn10300-*-* | \
6790 powerpc-*-chorusos* | \
6791 powerpc*-*-eabi* | \
6792 powerpc*-*-sysv* | \
6793 powerpc*-*-kaos* | \
6794 s390x-ibm-tpf*)
6795 md_exec_prefix=/usr/ccs/bin
6797 sparc64-*-elf*)
6799 v850*-*-*)
6800 md_exec_prefix=/usr/ccs/bin
6802 xtensa*-*-elf*)
6805 *-*-beos* | \
6806 *-*-elf* | \
6807 *-*-hpux* | \
6808 *-*-netware* | \
6809 *-*-nto-qnx* | \
6810 *-*-rtems* | \
6811 *-*-solaris2* | \
6812 *-*-sysv[45]* | \
6813 *-*-vxworks* | \
6814 *-wrs-windiss)
6815 md_exec_prefix=/usr/ccs/bin
6817 esac
6819 extra_arflags_for_target=
6820 extra_nmflags_for_target=
6821 extra_ranlibflags_for_target=
6822 target_makefile_frag=/dev/null
6823 case "${target}" in
6824 mep*-*-*)
6825 target_makefile_frag="config/mt-mep"
6827 spu-*-*)
6828 target_makefile_frag="config/mt-spu"
6830 mips*-sde-elf*)
6831 target_makefile_frag="config/mt-sde"
6833 mipsisa*-*-elfoabi*)
6834 target_makefile_frag="config/mt-mips-elfoabi"
6836 mips*-*-*linux* | mips*-*-gnu*)
6837 target_makefile_frag="config/mt-mips-gnu"
6839 *-*-netware*)
6840 target_makefile_frag="config/mt-netware"
6842 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6843 target_makefile_frag="config/mt-gnu"
6845 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6846 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6847 # commands to handle both 32-bit and 64-bit objects. These flags are
6848 # harmless if we're using GNU nm or ar.
6849 extra_arflags_for_target=" -X32_64"
6850 extra_nmflags_for_target=" -B -X32_64"
6852 *-*-darwin[3-9]*)
6853 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6854 extra_ranlibflags_for_target=" -c"
6856 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6857 target_makefile_frag="config/mt-wince"
6859 esac
6861 alphaieee_frag=/dev/null
6862 case $target in
6863 alpha*-*-*)
6864 # This just makes sure to use the -mieee option to build target libs.
6865 # This should probably be set individually by each library.
6866 alphaieee_frag="config/mt-alphaieee"
6868 esac
6870 # If --enable-target-optspace always use -Os instead of -O2 to build
6871 # the target libraries, similarly if it is not specified, use -Os
6872 # on selected platforms.
6873 ospace_frag=/dev/null
6874 case "${enable_target_optspace}:${target}" in
6875 yes:*)
6876 ospace_frag="config/mt-ospace"
6878 :d30v-*)
6879 ospace_frag="config/mt-d30v"
6881 :m32r-* | :d10v-* | :fr30-*)
6882 ospace_frag="config/mt-ospace"
6884 no:* | :*)
6887 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6889 esac
6891 # Default to using --with-stabs for certain targets.
6892 if test x${with_stabs} = x ; then
6893 case "${target}" in
6894 mips*-*-irix[56]*)
6896 mips*-*-* | alpha*-*-osf*)
6897 with_stabs=yes;
6898 extra_host_args="${extra_host_args} --with-stabs"
6900 esac
6903 # hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6904 # them automatically.
6905 case "${host}" in
6906 hppa*64*-*-hpux11*)
6907 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6909 esac
6911 # Some systems (e.g., one of the i386-aix systems the gas testers are
6912 # using) don't handle "\$" correctly, so don't use it here.
6913 tooldir='${exec_prefix}'/${target_noncanonical}
6914 build_tooldir=${tooldir}
6916 # Create a .gdbinit file which runs the one in srcdir
6917 # and tells GDB to look there for source files.
6919 if test -r ${srcdir}/.gdbinit ; then
6920 case ${srcdir} in
6921 .) ;;
6922 *) cat > ./.gdbinit <<EOF
6923 # ${NO_EDIT}
6924 dir ${srcdir}
6925 dir .
6926 source ${srcdir}/.gdbinit
6929 esac
6932 # Make sure that the compiler is able to generate an executable. If it
6933 # can't, we are probably in trouble. We don't care whether we can run the
6934 # executable--we might be using a cross compiler--we only care whether it
6935 # can be created. At this point the main configure script has set CC.
6936 we_are_ok=no
6937 echo "int main () { return 0; }" > conftest.c
6938 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6939 if test $? = 0 ; then
6940 if test -s conftest || test -s conftest.exe ; then
6941 we_are_ok=yes
6944 case $we_are_ok in
6946 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6947 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6948 rm -f conftest*
6949 exit 1
6951 esac
6952 rm -f conftest*
6954 # The Solaris /usr/ucb/cc compiler does not appear to work.
6955 case "${host}" in
6956 sparc-sun-solaris2*)
6957 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6958 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6959 could_use=
6960 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6961 if test -d /opt/cygnus/bin ; then
6962 if test "$could_use" = "" ; then
6963 could_use="/opt/cygnus/bin"
6964 else
6965 could_use="$could_use or /opt/cygnus/bin"
6968 if test "$could_use" = "" ; then
6969 echo "Warning: compilation may fail because you're using"
6970 echo "/usr/ucb/cc. You should change your PATH or CC "
6971 echo "variable and rerun configure."
6972 else
6973 echo "Warning: compilation may fail because you're using"
6974 echo "/usr/ucb/cc, when you should use the C compiler from"
6975 echo "$could_use. You should change your"
6976 echo "PATH or CC variable and rerun configure."
6980 esac
6982 # Decide which environment variable is used to find dynamic libraries.
6983 case "${host}" in
6984 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6985 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6986 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6987 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6988 esac
6990 # On systems where the dynamic library environment variable is PATH,
6991 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
6992 # built executables to PATH.
6993 if test "$RPATH_ENVVAR" = PATH; then
6994 GCC_SHLIB_SUBDIR=/shlib
6995 else
6996 GCC_SHLIB_SUBDIR=
6999 # Record target_configdirs and the configure arguments for target and
7000 # build configuration in Makefile.
7001 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7002 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7004 # If we are building libgomp, bootstrap it.
7005 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7006 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7009 # Determine whether gdb needs tk/tcl or not.
7010 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7011 # and in that case we want gdb to be built without tk. Ugh!
7012 # In fact I believe gdb is the *only* package directly dependent on tk,
7013 # so we should be able to put the 'maybe's in unconditionally and
7014 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
7015 # 100% sure that that's safe though.
7017 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7018 case "$enable_gdbtk" in
7020 GDB_TK="" ;;
7021 yes)
7022 GDB_TK="${gdb_tk}" ;;
7024 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7025 # distro. Eventually someone will fix this and move Insight, nee
7026 # gdbtk to a separate directory.
7027 if test -d ${srcdir}/gdb/gdbtk ; then
7028 GDB_TK="${gdb_tk}"
7029 else
7030 GDB_TK=""
7033 esac
7034 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7035 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7037 # Strip out unwanted targets.
7039 # While at that, we remove Makefiles if we were started for recursive
7040 # configuration, so that the top-level Makefile reconfigures them,
7041 # like we used to do when configure itself was recursive.
7043 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
7044 # but now we're fixing up the Makefile ourselves with the additional
7045 # commands passed to AC_CONFIG_FILES. Use separate variables
7046 # extrasub-{build,host,target} not because there is any reason to split
7047 # the substitutions up that way, but only to remain below the limit of
7048 # 99 commands in a script, for HP-UX sed.
7049 # Do not nest @if/@endif pairs, because configure will not warn you at all.
7051 # Check whether --enable-bootstrap was given.
7052 if test "${enable_bootstrap+set}" = set; then :
7053 enableval=$enable_bootstrap;
7054 else
7055 enable_bootstrap=default
7059 # Issue errors and warnings for invalid/strange bootstrap combinations.
7060 case "$configdirs" in
7061 *gcc*) have_compiler=yes ;;
7062 *) have_compiler=no ;;
7063 esac
7065 case "$have_compiler:$host:$target:$enable_bootstrap" in
7066 *:*:*:no) ;;
7068 # Default behavior. Enable bootstrap if we have a compiler
7069 # and we are in a native configuration.
7070 yes:$build:$build:default)
7071 enable_bootstrap=yes ;;
7073 *:*:*:default)
7074 enable_bootstrap=no ;;
7076 # We have a compiler and we are in a native configuration, bootstrap is ok
7077 yes:$build:$build:yes)
7080 # Other configurations, but we have a compiler. Assume the user knows
7081 # what he's doing.
7082 yes:*:*:yes)
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7084 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7087 # No compiler: if they passed --enable-bootstrap explicitly, fail
7088 no:*:*:yes)
7089 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7091 # Fail if wrong command line
7093 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7095 esac
7097 case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7098 *,c++,*:yes:yes) ;;
7099 *:yes:yes)
7100 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7102 esac
7104 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7105 yes:yes:*\ gold\ *:*,c++,*) ;;
7106 yes:yes:*\ gold\ *:*)
7107 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7109 esac
7111 # Adjust the toplevel makefile according to whether bootstrap was selected.
7112 case $enable_bootstrap in
7113 yes)
7114 bootstrap_suffix=bootstrap
7115 BUILD_CONFIG=bootstrap-debug
7118 bootstrap_suffix=no-bootstrap
7119 BUILD_CONFIG=
7121 esac
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7124 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7127 # Check whether --with-build-config was given.
7128 if test "${with_build_config+set}" = set; then :
7129 withval=$with_build_config; case $with_build_config in
7130 yes) with_build_config= ;;
7131 no) with_build_config= BUILD_CONFIG= ;;
7132 esac
7136 if test "x${with_build_config}" != x; then
7137 BUILD_CONFIG=$with_build_config
7138 else
7139 case $BUILD_CONFIG in
7140 bootstrap-debug)
7141 if echo "int f (void) { return 0; }" > conftest.c &&
7142 ${CC} -c conftest.c &&
7143 mv conftest.o conftest.o.g0 &&
7144 ${CC} -c -g conftest.c &&
7145 mv conftest.o conftest.o.g &&
7146 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7148 else
7149 BUILD_CONFIG=
7151 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7153 esac
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7156 $as_echo "$BUILD_CONFIG" >&6; }
7159 extrasub_build=
7160 for module in ${build_configdirs} ; do
7161 if test -z "${no_recursion}" \
7162 && test -f ${build_subdir}/${module}/Makefile; then
7163 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7164 rm -f ${build_subdir}/${module}/Makefile
7166 extrasub_build="$extrasub_build
7167 /^@if build-$module\$/d
7168 /^@endif build-$module\$/d
7169 /^@if build-$module-$bootstrap_suffix\$/d
7170 /^@endif build-$module-$bootstrap_suffix\$/d"
7171 done
7172 extrasub_host=
7173 for module in ${configdirs} ; do
7174 if test -z "${no_recursion}"; then
7175 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7176 if test -f ${file}; then
7177 echo 1>&2 "*** removing ${file} to force reconfigure"
7178 rm -f ${file}
7180 done
7182 extrasub_host="$extrasub_host
7183 /^@if $module\$/d
7184 /^@endif $module\$/d
7185 /^@if $module-$bootstrap_suffix\$/d
7186 /^@endif $module-$bootstrap_suffix\$/d"
7187 done
7188 extrasub_target=
7189 for module in ${target_configdirs} ; do
7190 if test -z "${no_recursion}" \
7191 && test -f ${target_subdir}/${module}/Makefile; then
7192 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193 rm -f ${target_subdir}/${module}/Makefile
7196 # We only bootstrap target libraries listed in bootstrap_target_libs.
7197 case $bootstrap_target_libs in
7198 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199 *) target_bootstrap_suffix=no-bootstrap ;;
7200 esac
7202 extrasub_target="$extrasub_target
7203 /^@if target-$module\$/d
7204 /^@endif target-$module\$/d
7205 /^@if target-$module-$target_bootstrap_suffix\$/d
7206 /^@endif target-$module-$target_bootstrap_suffix\$/d"
7207 done
7209 # Do the final fixup along with target modules.
7210 extrasub_target="$extrasub_target
7211 /^@if /,/^@endif /d"
7213 # Create the serialization dependencies. This uses a temporary file.
7215 # Check whether --enable-serial-configure was given.
7216 if test "${enable_serial_configure+set}" = set; then :
7217 enableval=$enable_serial_configure;
7221 case ${enable_serial_configure} in
7222 yes)
7223 enable_serial_build_configure=yes
7224 enable_serial_host_configure=yes
7225 enable_serial_target_configure=yes
7227 esac
7229 # These force 'configure's to be done one at a time, to avoid problems
7230 # with contention over a shared config.cache.
7231 rm -f serdep.tmp
7232 echo '# serdep.tmp' > serdep.tmp
7233 olditem=
7234 test "x${enable_serial_build_configure}" = xyes &&
7235 for item in ${build_configdirs} ; do
7236 case ${olditem} in
7237 "") ;;
7238 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7239 esac
7240 olditem=${item}
7241 done
7242 olditem=
7243 test "x${enable_serial_host_configure}" = xyes &&
7244 for item in ${configdirs} ; do
7245 case ${olditem} in
7246 "") ;;
7247 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7248 esac
7249 olditem=${item}
7250 done
7251 olditem=
7252 test "x${enable_serial_target_configure}" = xyes &&
7253 for item in ${target_configdirs} ; do
7254 case ${olditem} in
7255 "") ;;
7256 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7257 esac
7258 olditem=${item}
7259 done
7260 serialization_dependencies=serdep.tmp
7263 # Base args. Strip norecursion, cache-file, srcdir, host, build,
7264 # target, nonopt, and variable assignments. These are the ones we
7265 # might not want to pass down to subconfigures. The exception being
7266 # --cache-file=/dev/null, which is used to turn off the use of cache
7267 # files altogether, and which should be passed on to subconfigures.
7268 # Also strip program-prefix, program-suffix, and program-transform-name,
7269 # so that we can pass down a consistent program-transform-name.
7270 baseargs=
7271 keep_next=no
7272 skip_next=no
7273 eval "set -- $ac_configure_args"
7274 for ac_arg
7276 if test X"$skip_next" = X"yes"; then
7277 skip_next=no
7278 continue
7280 if test X"$keep_next" = X"yes"; then
7281 case $ac_arg in
7282 *\'*)
7283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7284 esac
7285 baseargs="$baseargs '$ac_arg'"
7286 keep_next=no
7287 continue
7290 # Handle separated arguments. Based on the logic generated by
7291 # autoconf 2.59.
7292 case $ac_arg in
7293 *=* | --config-cache | -C | -disable-* | --disable-* \
7294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7296 | -with-* | --with-* | -without-* | --without-* | --x)
7297 separate_arg=no
7300 separate_arg=yes
7303 separate_arg=no
7305 esac
7307 case "$ac_arg" in
7308 --cache-file=/dev/null | \
7309 -cache-file=/dev/null )
7310 # Handled here to avoid the test to skip args below.
7311 baseargs="$baseargs '$ac_arg'"
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7315 --no*)
7316 continue
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
7342 keep_next=$separate_arg
7345 # Either a variable assignment, or a nonopt (triplet). Don't
7346 # pass it down; let the Makefile handle this.
7347 continue
7349 esac
7350 done
7351 # Remove the initial space we just introduced and, as these will be
7352 # expanded by make, quote '$'.
7353 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7355 # Add in --program-transform-name, after --program-prefix and
7356 # --program-suffix have been applied to it. Autoconf has already
7357 # doubled dollar signs and backslashes in program_transform_name; we want
7358 # the backslashes un-doubled, and then the entire thing wrapped in single
7359 # quotes, because this will be expanded first by make and then by the shell.
7360 # Also, because we want to override the logic in subdir configure scripts to
7361 # choose program_transform_name, replace any s,x,x, with s,y,y,.
7362 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7363 ${program_transform_name}
7364 EOF_SED
7365 gcc_transform_name=`cat conftestsed.out`
7366 rm -f conftestsed.out
7367 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7368 if test "$silent" = yes; then
7369 baseargs="$baseargs --silent"
7371 baseargs="$baseargs --disable-option-checking"
7373 # Record and document user additions to sub configure arguments.
7378 # For the build-side libraries, we just need to pretend we're native,
7379 # and not use the same cache file. Multilibs are neither needed nor
7380 # desired.
7381 build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7383 # For host modules, accept cache file option, or specification as blank.
7384 case "${cache_file}" in
7385 "") # empty
7386 cache_file_option="" ;;
7387 /* | [A-Za-z]:[\\/]* ) # absolute path
7388 cache_file_option="--cache-file=${cache_file}" ;;
7389 *) # relative path
7390 cache_file_option="--cache-file=../${cache_file}" ;;
7391 esac
7393 # Host dirs don't like to share a cache file either, horribly enough.
7394 # This seems to be due to autoconf 2.5x stupidity.
7395 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7397 target_configargs="$target_configargs ${baseargs}"
7399 # Passing a --with-cross-host argument lets the target libraries know
7400 # whether they are being built with a cross-compiler or being built
7401 # native. However, it would be better to use other mechanisms to make the
7402 # sorts of decisions they want to make on this basis. Please consider
7403 # this option to be deprecated. FIXME.
7404 if test x${is_cross_compiler} = xyes ; then
7405 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7408 # Default to --enable-multilib.
7409 if test x${enable_multilib} = x ; then
7410 target_configargs="--enable-multilib ${target_configargs}"
7413 # Pass --with-newlib if appropriate. Note that target_configdirs has
7414 # changed from the earlier setting of with_newlib.
7415 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7416 target_configargs="--with-newlib ${target_configargs}"
7419 # Different target subdirs use different values of certain variables
7420 # (notably CXX). Worse, multilibs use *lots* of different values.
7421 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7422 # it doesn't automatically accept command-line overrides of them.
7423 # This means it's not safe for target subdirs to share a cache file,
7424 # which is disgusting, but there you have it. Hopefully this can be
7425 # fixed in future. It's still worthwhile to use a cache file for each
7426 # directory. I think.
7428 # Pass the appropriate --build, --host, --target and --cache-file arguments.
7429 # We need to pass --target, as newer autoconf's requires consistency
7430 # for target_alias and gcc doesn't manage it consistently.
7431 target_configargs="--cache-file=./config.cache ${target_configargs}"
7433 FLAGS_FOR_TARGET=
7434 case " $target_configdirs " in
7435 *" newlib "*)
7436 case " $target_configargs " in
7437 *" --with-newlib "*)
7438 case "$target" in
7439 *-cygwin*)
7440 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'
7442 esac
7444 # If we're not building GCC, don't discard standard headers.
7445 if test -d ${srcdir}/gcc; then
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7448 if test "${build}" != "${host}"; then
7449 # On Canadian crosses, CC_FOR_TARGET will have already been set
7450 # by `configure', so we won't have an opportunity to add -Bgcc/
7451 # to it. This is right: we don't want to search that directory
7452 # for binaries, but we want the header files in there, so add
7453 # them explicitly.
7454 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7456 # Someone might think of using the pre-installed headers on
7457 # Canadian crosses, in case the installed compiler is not fully
7458 # compatible with the compiler being built. In this case, it
7459 # would be better to flag an error than risking having
7460 # incompatible object files being constructed. We can't
7461 # guarantee that an error will be flagged, but let's hope the
7462 # compiler will do it, when presented with incompatible header
7463 # files.
7467 case "${target}-${is_cross_compiler}" in
7468 i[3456789]86-*-linux*-no)
7469 # Here host == target, so we don't need to build gcc,
7470 # so we don't want to discard standard headers.
7471 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7474 # If we're building newlib, use its generic headers last, but search
7475 # for any libc-related directories first (so make it the last -B
7476 # switch).
7477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7479 # If we're building libgloss, find the startup file, simulator library
7480 # and linker script.
7481 case " $target_configdirs " in
7482 *" libgloss "*)
7483 # Look for startup file, simulator library and maybe linker script.
7484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7485 # Look for libnosys.a in case the target needs it.
7486 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7487 # Most targets have the linker script in the source directory.
7488 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7490 esac
7492 esac
7494 esac
7496 esac
7498 case "$target" in
7499 x86_64-*mingw* | *-w64-mingw*)
7500 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7501 # however, use a symlink named 'mingw' in ${prefix} .
7502 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7504 *-mingw*)
7505 # MinGW can't be handled as Cygwin above since it does not use newlib.
7506 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'
7508 esac
7510 # Allow the user to override the flags for
7511 # our build compiler if desired.
7512 if test x"${build}" = x"${host}" ; then
7513 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7514 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7515 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7518 # On Canadian crosses, we'll be searching the right directories for
7519 # the previously-installed cross compiler, so don't bother to add
7520 # flags for directories within the install tree of the compiler
7521 # being built; programs in there won't even run.
7522 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7523 # Search for pre-installed headers if nothing else fits.
7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7527 if test "x${use_gnu_ld}" = x &&
7528 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7529 # Arrange for us to find uninstalled linker scripts.
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7533 # Search for other target-specific linker scripts and such.
7534 case "${target}" in
7535 mep*)
7536 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7538 esac
7540 # Makefile fragments.
7541 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7543 eval fragval=\$$frag
7544 if test $fragval != /dev/null; then
7545 eval $frag=${srcdir}/$fragval
7547 done
7553 # Miscellanea: directories, flags, etc.
7562 # Build module lists & subconfigure args.
7566 # Host module lists & subconfigure args.
7571 # Target module lists & subconfigure args.
7575 # Build tools.
7594 # Generate default definitions for YACC, M4, LEX and other programs that run
7595 # on the build machine. These are used if the Makefile can't locate these
7596 # programs in objdir.
7597 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7599 for ac_prog in 'bison -y' byacc yacc
7601 # Extract the first word of "$ac_prog", so it can be a program name with args.
7602 set dummy $ac_prog; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_YACC+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$YACC"; then
7609 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_YACC="$ac_prog"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7624 IFS=$as_save_IFS
7628 YACC=$ac_cv_prog_YACC
7629 if test -n "$YACC"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7631 $as_echo "$YACC" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7638 test -n "$YACC" && break
7639 done
7640 test -n "$YACC" || YACC="$MISSING bison -y"
7642 case " $build_configdirs " in
7643 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7644 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7645 esac
7647 for ac_prog in bison
7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
7650 set dummy $ac_prog; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if test "${ac_cv_prog_BISON+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 if test -n "$BISON"; then
7657 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_prog_BISON="$ac_prog"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7670 done
7671 done
7672 IFS=$as_save_IFS
7676 BISON=$ac_cv_prog_BISON
7677 if test -n "$BISON"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7679 $as_echo "$BISON" >&6; }
7680 else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7686 test -n "$BISON" && break
7687 done
7688 test -n "$BISON" || BISON="$MISSING bison"
7690 case " $build_configdirs " in
7691 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7692 esac
7694 for ac_prog in gm4 gnum4 m4
7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
7697 set dummy $ac_prog; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if test "${ac_cv_prog_M4+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$M4"; then
7704 ac_cv_prog_M4="$M4" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_M4="$ac_prog"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7723 M4=$ac_cv_prog_M4
7724 if test -n "$M4"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7726 $as_echo "$M4" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7733 test -n "$M4" && break
7734 done
7735 test -n "$M4" || M4="$MISSING m4"
7737 case " $build_configdirs " in
7738 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7739 esac
7741 for ac_prog in flex lex
7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
7744 set dummy $ac_prog; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if test "${ac_cv_prog_LEX+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$LEX"; then
7751 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_LEX="$ac_prog"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7770 LEX=$ac_cv_prog_LEX
7771 if test -n "$LEX"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7773 $as_echo "$LEX" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7780 test -n "$LEX" && break
7781 done
7782 test -n "$LEX" || LEX="$MISSING flex"
7784 case " $build_configdirs " in
7785 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7786 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7787 esac
7789 for ac_prog in flex
7791 # Extract the first word of "$ac_prog", so it can be a program name with args.
7792 set dummy $ac_prog; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_FLEX+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$FLEX"; then
7799 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_FLEX="$ac_prog"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 FLEX=$ac_cv_prog_FLEX
7819 if test -n "$FLEX"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7821 $as_echo "$FLEX" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 test -n "$FLEX" && break
7829 done
7830 test -n "$FLEX" || FLEX="$MISSING flex"
7832 case " $build_configdirs " in
7833 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7834 esac
7836 for ac_prog in makeinfo
7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
7839 set dummy $ac_prog; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 if test -n "$MAKEINFO"; then
7846 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_MAKEINFO="$ac_prog"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7859 done
7860 done
7861 IFS=$as_save_IFS
7865 MAKEINFO=$ac_cv_prog_MAKEINFO
7866 if test -n "$MAKEINFO"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7868 $as_echo "$MAKEINFO" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7875 test -n "$MAKEINFO" && break
7876 done
7877 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7879 case " $build_configdirs " in
7880 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7883 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7884 # higher, else we use the "missing" dummy.
7885 if ${MAKEINFO} --version \
7886 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7888 else
7889 MAKEINFO="$MISSING makeinfo"
7893 esac
7895 # FIXME: expect and dejagnu may become build tools?
7897 for ac_prog in expect
7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
7900 set dummy $ac_prog; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if test "${ac_cv_prog_EXPECT+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$EXPECT"; then
7907 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_EXPECT="$ac_prog"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7920 done
7921 done
7922 IFS=$as_save_IFS
7926 EXPECT=$ac_cv_prog_EXPECT
7927 if test -n "$EXPECT"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7929 $as_echo "$EXPECT" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7936 test -n "$EXPECT" && break
7937 done
7938 test -n "$EXPECT" || EXPECT="expect"
7940 case " $configdirs " in
7941 *" expect "*)
7942 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7944 esac
7946 for ac_prog in runtest
7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
7949 set dummy $ac_prog; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 if test -n "$RUNTEST"; then
7956 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_RUNTEST="$ac_prog"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7969 done
7970 done
7971 IFS=$as_save_IFS
7975 RUNTEST=$ac_cv_prog_RUNTEST
7976 if test -n "$RUNTEST"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7978 $as_echo "$RUNTEST" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7985 test -n "$RUNTEST" && break
7986 done
7987 test -n "$RUNTEST" || RUNTEST="runtest"
7989 case " $configdirs " in
7990 *" dejagnu "*)
7991 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7993 esac
7996 # Host tools.
7997 ncn_tool_prefix=
7998 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7999 ncn_target_tool_prefix=
8000 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8004 if test -n "$AR"; then
8005 ac_cv_prog_AR=$AR
8006 elif test -n "$ac_cv_prog_AR"; then
8007 AR=$ac_cv_prog_AR
8010 if test -n "$ac_cv_prog_AR"; then
8011 for ncn_progname in ar; do
8012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8013 set dummy ${ncn_progname}; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if test "${ac_cv_prog_AR+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 if test -n "$AR"; then
8020 ac_cv_prog_AR="$AR" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_prog_AR="${ncn_progname}"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8033 done
8034 done
8035 IFS=$as_save_IFS
8039 AR=$ac_cv_prog_AR
8040 if test -n "$AR"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8042 $as_echo "$AR" >&6; }
8043 else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8049 done
8052 for ncn_progname in ar; do
8053 if test -n "$ncn_tool_prefix"; then
8054 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8055 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if test "${ac_cv_prog_AR+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8061 if test -n "$AR"; then
8062 ac_cv_prog_AR="$AR" # Let the user override the test.
8063 else
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8071 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8081 AR=$ac_cv_prog_AR
8082 if test -n "$AR"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8084 $as_echo "$AR" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8092 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8094 set dummy ${ncn_progname}; ac_word=$2
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096 $as_echo_n "checking for $ac_word... " >&6; }
8097 if test "${ac_cv_prog_AR+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 if test -n "$AR"; then
8101 ac_cv_prog_AR="$AR" # Let the user override the test.
8102 else
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8110 ac_cv_prog_AR="${ncn_progname}"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8114 done
8115 done
8116 IFS=$as_save_IFS
8120 AR=$ac_cv_prog_AR
8121 if test -n "$AR"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8123 $as_echo "$AR" >&6; }
8124 else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8131 test -n "$ac_cv_prog_AR" && break
8132 done
8134 if test -z "$ac_cv_prog_AR" ; then
8135 set dummy ar
8136 if test $build = $host ; then
8137 AR="$2"
8138 else
8139 AR="${ncn_tool_prefix}$2"
8145 if test -n "$AS"; then
8146 ac_cv_prog_AS=$AS
8147 elif test -n "$ac_cv_prog_AS"; then
8148 AS=$ac_cv_prog_AS
8151 if test -n "$ac_cv_prog_AS"; then
8152 for ncn_progname in as; do
8153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8154 set dummy ${ncn_progname}; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if test "${ac_cv_prog_AS+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 if test -n "$AS"; then
8161 ac_cv_prog_AS="$AS" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170 ac_cv_prog_AS="${ncn_progname}"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 break 2
8174 done
8175 done
8176 IFS=$as_save_IFS
8180 AS=$ac_cv_prog_AS
8181 if test -n "$AS"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8183 $as_echo "$AS" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8190 done
8193 for ncn_progname in as; do
8194 if test -n "$ncn_tool_prefix"; then
8195 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8196 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if test "${ac_cv_prog_AS+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$AS"; then
8203 ac_cv_prog_AS="$AS" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8216 done
8217 done
8218 IFS=$as_save_IFS
8222 AS=$ac_cv_prog_AS
8223 if test -n "$AS"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8225 $as_echo "$AS" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8233 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8235 set dummy ${ncn_progname}; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if test "${ac_cv_prog_AS+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 if test -n "$AS"; then
8242 ac_cv_prog_AS="$AS" # Let the user override the test.
8243 else
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_prog_AS="${ncn_progname}"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 break 2
8255 done
8256 done
8257 IFS=$as_save_IFS
8261 AS=$ac_cv_prog_AS
8262 if test -n "$AS"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8264 $as_echo "$AS" >&6; }
8265 else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8272 test -n "$ac_cv_prog_AS" && break
8273 done
8275 if test -z "$ac_cv_prog_AS" ; then
8276 set dummy as
8277 if test $build = $host ; then
8278 AS="$2"
8279 else
8280 AS="${ncn_tool_prefix}$2"
8286 if test -n "$DLLTOOL"; then
8287 ac_cv_prog_DLLTOOL=$DLLTOOL
8288 elif test -n "$ac_cv_prog_DLLTOOL"; then
8289 DLLTOOL=$ac_cv_prog_DLLTOOL
8292 if test -n "$ac_cv_prog_DLLTOOL"; then
8293 for ncn_progname in dlltool; do
8294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8295 set dummy ${ncn_progname}; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 if test -n "$DLLTOOL"; then
8302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_DLLTOOL="${ncn_progname}"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8315 done
8316 done
8317 IFS=$as_save_IFS
8321 DLLTOOL=$ac_cv_prog_DLLTOOL
8322 if test -n "$DLLTOOL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8324 $as_echo "$DLLTOOL" >&6; }
8325 else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8331 done
8334 for ncn_progname in dlltool; do
8335 if test -n "$ncn_tool_prefix"; then
8336 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8337 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$DLLTOOL"; then
8344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8357 done
8358 done
8359 IFS=$as_save_IFS
8363 DLLTOOL=$ac_cv_prog_DLLTOOL
8364 if test -n "$DLLTOOL"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8366 $as_echo "$DLLTOOL" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8374 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8376 set dummy ${ncn_progname}; ac_word=$2
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378 $as_echo_n "checking for $ac_word... " >&6; }
8379 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 if test -n "$DLLTOOL"; then
8383 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8384 else
8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8392 ac_cv_prog_DLLTOOL="${ncn_progname}"
8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 break 2
8396 done
8397 done
8398 IFS=$as_save_IFS
8402 DLLTOOL=$ac_cv_prog_DLLTOOL
8403 if test -n "$DLLTOOL"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8405 $as_echo "$DLLTOOL" >&6; }
8406 else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8413 test -n "$ac_cv_prog_DLLTOOL" && break
8414 done
8416 if test -z "$ac_cv_prog_DLLTOOL" ; then
8417 set dummy dlltool
8418 if test $build = $host ; then
8419 DLLTOOL="$2"
8420 else
8421 DLLTOOL="${ncn_tool_prefix}$2"
8427 if test -n "$LD"; then
8428 ac_cv_prog_LD=$LD
8429 elif test -n "$ac_cv_prog_LD"; then
8430 LD=$ac_cv_prog_LD
8433 if test -n "$ac_cv_prog_LD"; then
8434 for ncn_progname in ld; do
8435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8436 set dummy ${ncn_progname}; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if test "${ac_cv_prog_LD+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 if test -n "$LD"; then
8443 ac_cv_prog_LD="$LD" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_LD="${ncn_progname}"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8456 done
8457 done
8458 IFS=$as_save_IFS
8462 LD=$ac_cv_prog_LD
8463 if test -n "$LD"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8465 $as_echo "$LD" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8472 done
8475 for ncn_progname in ld; do
8476 if test -n "$ncn_tool_prefix"; then
8477 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8478 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if test "${ac_cv_prog_LD+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 if test -n "$LD"; then
8485 ac_cv_prog_LD="$LD" # Let the user override the test.
8486 else
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8494 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8498 done
8499 done
8500 IFS=$as_save_IFS
8504 LD=$ac_cv_prog_LD
8505 if test -n "$LD"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8507 $as_echo "$LD" >&6; }
8508 else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8515 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8517 set dummy ${ncn_progname}; ac_word=$2
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519 $as_echo_n "checking for $ac_word... " >&6; }
8520 if test "${ac_cv_prog_LD+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 if test -n "$LD"; then
8524 ac_cv_prog_LD="$LD" # Let the user override the test.
8525 else
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 for as_dir in $PATH
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8533 ac_cv_prog_LD="${ncn_progname}"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8537 done
8538 done
8539 IFS=$as_save_IFS
8543 LD=$ac_cv_prog_LD
8544 if test -n "$LD"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8546 $as_echo "$LD" >&6; }
8547 else
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 $as_echo "no" >&6; }
8554 test -n "$ac_cv_prog_LD" && break
8555 done
8557 if test -z "$ac_cv_prog_LD" ; then
8558 set dummy ld
8559 if test $build = $host ; then
8560 LD="$2"
8561 else
8562 LD="${ncn_tool_prefix}$2"
8568 if test -n "$LIPO"; then
8569 ac_cv_prog_LIPO=$LIPO
8570 elif test -n "$ac_cv_prog_LIPO"; then
8571 LIPO=$ac_cv_prog_LIPO
8574 if test -n "$ac_cv_prog_LIPO"; then
8575 for ncn_progname in lipo; do
8576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8577 set dummy ${ncn_progname}; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if test "${ac_cv_prog_LIPO+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 if test -n "$LIPO"; then
8584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8585 else
8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587 for as_dir in $PATH
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8593 ac_cv_prog_LIPO="${ncn_progname}"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8597 done
8598 done
8599 IFS=$as_save_IFS
8603 LIPO=$ac_cv_prog_LIPO
8604 if test -n "$LIPO"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8606 $as_echo "$LIPO" >&6; }
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8613 done
8616 for ncn_progname in lipo; do
8617 if test -n "$ncn_tool_prefix"; then
8618 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8619 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if test "${ac_cv_prog_LIPO+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8624 else
8625 if test -n "$LIPO"; then
8626 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8639 done
8640 done
8641 IFS=$as_save_IFS
8645 LIPO=$ac_cv_prog_LIPO
8646 if test -n "$LIPO"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8648 $as_echo "$LIPO" >&6; }
8649 else
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8656 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8658 set dummy ${ncn_progname}; ac_word=$2
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660 $as_echo_n "checking for $ac_word... " >&6; }
8661 if test "${ac_cv_prog_LIPO+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 if test -n "$LIPO"; then
8665 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8666 else
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8674 ac_cv_prog_LIPO="${ncn_progname}"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8678 done
8679 done
8680 IFS=$as_save_IFS
8684 LIPO=$ac_cv_prog_LIPO
8685 if test -n "$LIPO"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8687 $as_echo "$LIPO" >&6; }
8688 else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8695 test -n "$ac_cv_prog_LIPO" && break
8696 done
8698 if test -z "$ac_cv_prog_LIPO" ; then
8699 set dummy lipo
8700 if test $build = $host ; then
8701 LIPO="$2"
8702 else
8703 LIPO="${ncn_tool_prefix}$2"
8709 if test -n "$NM"; then
8710 ac_cv_prog_NM=$NM
8711 elif test -n "$ac_cv_prog_NM"; then
8712 NM=$ac_cv_prog_NM
8715 if test -n "$ac_cv_prog_NM"; then
8716 for ncn_progname in nm; do
8717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8718 set dummy ${ncn_progname}; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720 $as_echo_n "checking for $ac_word... " >&6; }
8721 if test "${ac_cv_prog_NM+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 if test -n "$NM"; then
8725 ac_cv_prog_NM="$NM" # Let the user override the test.
8726 else
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728 for as_dir in $PATH
8730 IFS=$as_save_IFS
8731 test -z "$as_dir" && as_dir=.
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8734 ac_cv_prog_NM="${ncn_progname}"
8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 break 2
8738 done
8739 done
8740 IFS=$as_save_IFS
8744 NM=$ac_cv_prog_NM
8745 if test -n "$NM"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8747 $as_echo "$NM" >&6; }
8748 else
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 $as_echo "no" >&6; }
8754 done
8757 for ncn_progname in nm; do
8758 if test -n "$ncn_tool_prefix"; then
8759 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8760 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if test "${ac_cv_prog_NM+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 if test -n "$NM"; then
8767 ac_cv_prog_NM="$NM" # Let the user override the test.
8768 else
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 for as_dir in $PATH
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8776 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778 break 2
8780 done
8781 done
8782 IFS=$as_save_IFS
8786 NM=$ac_cv_prog_NM
8787 if test -n "$NM"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8789 $as_echo "$NM" >&6; }
8790 else
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8797 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8799 set dummy ${ncn_progname}; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if test "${ac_cv_prog_NM+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 if test -n "$NM"; then
8806 ac_cv_prog_NM="$NM" # Let the user override the test.
8807 else
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 for as_dir in $PATH
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815 ac_cv_prog_NM="${ncn_progname}"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 break 2
8819 done
8820 done
8821 IFS=$as_save_IFS
8825 NM=$ac_cv_prog_NM
8826 if test -n "$NM"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8828 $as_echo "$NM" >&6; }
8829 else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8836 test -n "$ac_cv_prog_NM" && break
8837 done
8839 if test -z "$ac_cv_prog_NM" ; then
8840 set dummy nm
8841 if test $build = $host ; then
8842 NM="$2"
8843 else
8844 NM="${ncn_tool_prefix}$2"
8850 if test -n "$RANLIB"; then
8851 ac_cv_prog_RANLIB=$RANLIB
8852 elif test -n "$ac_cv_prog_RANLIB"; then
8853 RANLIB=$ac_cv_prog_RANLIB
8856 if test -n "$ac_cv_prog_RANLIB"; then
8857 for ncn_progname in ranlib; do
8858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8859 set dummy ${ncn_progname}; ac_word=$2
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 if test -n "$RANLIB"; then
8866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8875 ac_cv_prog_RANLIB="${ncn_progname}"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 break 2
8879 done
8880 done
8881 IFS=$as_save_IFS
8885 RANLIB=$ac_cv_prog_RANLIB
8886 if test -n "$RANLIB"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8888 $as_echo "$RANLIB" >&6; }
8889 else
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891 $as_echo "no" >&6; }
8895 done
8898 for ncn_progname in ranlib; do
8899 if test -n "$ncn_tool_prefix"; then
8900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8901 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 if test -n "$RANLIB"; then
8908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8917 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 break 2
8921 done
8922 done
8923 IFS=$as_save_IFS
8927 RANLIB=$ac_cv_prog_RANLIB
8928 if test -n "$RANLIB"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8930 $as_echo "$RANLIB" >&6; }
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8938 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8940 set dummy ${ncn_progname}; ac_word=$2
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942 $as_echo_n "checking for $ac_word... " >&6; }
8943 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 if test -n "$RANLIB"; then
8947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8956 ac_cv_prog_RANLIB="${ncn_progname}"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8960 done
8961 done
8962 IFS=$as_save_IFS
8966 RANLIB=$ac_cv_prog_RANLIB
8967 if test -n "$RANLIB"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8969 $as_echo "$RANLIB" >&6; }
8970 else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8977 test -n "$ac_cv_prog_RANLIB" && break
8978 done
8980 if test -z "$ac_cv_prog_RANLIB" ; then
8981 RANLIB="true"
8986 if test -n "$STRIP"; then
8987 ac_cv_prog_STRIP=$STRIP
8988 elif test -n "$ac_cv_prog_STRIP"; then
8989 STRIP=$ac_cv_prog_STRIP
8992 if test -n "$ac_cv_prog_STRIP"; then
8993 for ncn_progname in strip; do
8994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8995 set dummy ${ncn_progname}; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if test "${ac_cv_prog_STRIP+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 if test -n "$STRIP"; then
9002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_prog_STRIP="${ncn_progname}"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9017 IFS=$as_save_IFS
9021 STRIP=$ac_cv_prog_STRIP
9022 if test -n "$STRIP"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9024 $as_echo "$STRIP" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9031 done
9034 for ncn_progname in strip; do
9035 if test -n "$ncn_tool_prefix"; then
9036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9037 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039 $as_echo_n "checking for $ac_word... " >&6; }
9040 if test "${ac_cv_prog_STRIP+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 if test -n "$STRIP"; then
9044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9045 else
9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047 for as_dir in $PATH
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 break 2
9057 done
9058 done
9059 IFS=$as_save_IFS
9063 STRIP=$ac_cv_prog_STRIP
9064 if test -n "$STRIP"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9066 $as_echo "$STRIP" >&6; }
9067 else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069 $as_echo "no" >&6; }
9074 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9076 set dummy ${ncn_progname}; ac_word=$2
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078 $as_echo_n "checking for $ac_word... " >&6; }
9079 if test "${ac_cv_prog_STRIP+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9081 else
9082 if test -n "$STRIP"; then
9083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9084 else
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 for as_dir in $PATH
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9092 ac_cv_prog_STRIP="${ncn_progname}"
9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9096 done
9097 done
9098 IFS=$as_save_IFS
9102 STRIP=$ac_cv_prog_STRIP
9103 if test -n "$STRIP"; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9105 $as_echo "$STRIP" >&6; }
9106 else
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 $as_echo "no" >&6; }
9113 test -n "$ac_cv_prog_STRIP" && break
9114 done
9116 if test -z "$ac_cv_prog_STRIP" ; then
9117 STRIP="true"
9122 if test -n "$WINDRES"; then
9123 ac_cv_prog_WINDRES=$WINDRES
9124 elif test -n "$ac_cv_prog_WINDRES"; then
9125 WINDRES=$ac_cv_prog_WINDRES
9128 if test -n "$ac_cv_prog_WINDRES"; then
9129 for ncn_progname in windres; do
9130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9131 set dummy ${ncn_progname}; ac_word=$2
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 if test -n "$WINDRES"; then
9138 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9139 else
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in $PATH
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147 ac_cv_prog_WINDRES="${ncn_progname}"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 break 2
9151 done
9152 done
9153 IFS=$as_save_IFS
9157 WINDRES=$ac_cv_prog_WINDRES
9158 if test -n "$WINDRES"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9160 $as_echo "$WINDRES" >&6; }
9161 else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9167 done
9170 for ncn_progname in windres; do
9171 if test -n "$ncn_tool_prefix"; then
9172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9173 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175 $as_echo_n "checking for $ac_word... " >&6; }
9176 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179 if test -n "$WINDRES"; then
9180 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9181 else
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 for as_dir in $PATH
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9189 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9193 done
9194 done
9195 IFS=$as_save_IFS
9199 WINDRES=$ac_cv_prog_WINDRES
9200 if test -n "$WINDRES"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9202 $as_echo "$WINDRES" >&6; }
9203 else
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9210 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9212 set dummy ${ncn_progname}; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 if test -n "$WINDRES"; then
9219 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9220 else
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222 for as_dir in $PATH
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228 ac_cv_prog_WINDRES="${ncn_progname}"
9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 break 2
9232 done
9233 done
9234 IFS=$as_save_IFS
9238 WINDRES=$ac_cv_prog_WINDRES
9239 if test -n "$WINDRES"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9241 $as_echo "$WINDRES" >&6; }
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9249 test -n "$ac_cv_prog_WINDRES" && break
9250 done
9252 if test -z "$ac_cv_prog_WINDRES" ; then
9253 set dummy windres
9254 if test $build = $host ; then
9255 WINDRES="$2"
9256 else
9257 WINDRES="${ncn_tool_prefix}$2"
9263 if test -n "$WINDMC"; then
9264 ac_cv_prog_WINDMC=$WINDMC
9265 elif test -n "$ac_cv_prog_WINDMC"; then
9266 WINDMC=$ac_cv_prog_WINDMC
9269 if test -n "$ac_cv_prog_WINDMC"; then
9270 for ncn_progname in windmc; do
9271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9272 set dummy ${ncn_progname}; ac_word=$2
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274 $as_echo_n "checking for $ac_word... " >&6; }
9275 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 if test -n "$WINDMC"; then
9279 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9280 else
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 for as_dir in $PATH
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_prog_WINDMC="${ncn_progname}"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 break 2
9292 done
9293 done
9294 IFS=$as_save_IFS
9298 WINDMC=$ac_cv_prog_WINDMC
9299 if test -n "$WINDMC"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9301 $as_echo "$WINDMC" >&6; }
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304 $as_echo "no" >&6; }
9308 done
9311 for ncn_progname in windmc; do
9312 if test -n "$ncn_tool_prefix"; then
9313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9314 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316 $as_echo_n "checking for $ac_word... " >&6; }
9317 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 if test -n "$WINDMC"; then
9321 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9322 else
9323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in $PATH
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9330 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9334 done
9335 done
9336 IFS=$as_save_IFS
9340 WINDMC=$ac_cv_prog_WINDMC
9341 if test -n "$WINDMC"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9343 $as_echo "$WINDMC" >&6; }
9344 else
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9351 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9353 set dummy ${ncn_progname}; ac_word=$2
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355 $as_echo_n "checking for $ac_word... " >&6; }
9356 if test "${ac_cv_prog_WINDMC+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 if test -n "$WINDMC"; then
9360 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9361 else
9362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363 for as_dir in $PATH
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9369 ac_cv_prog_WINDMC="${ncn_progname}"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9373 done
9374 done
9375 IFS=$as_save_IFS
9379 WINDMC=$ac_cv_prog_WINDMC
9380 if test -n "$WINDMC"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9382 $as_echo "$WINDMC" >&6; }
9383 else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385 $as_echo "no" >&6; }
9390 test -n "$ac_cv_prog_WINDMC" && break
9391 done
9393 if test -z "$ac_cv_prog_WINDMC" ; then
9394 set dummy windmc
9395 if test $build = $host ; then
9396 WINDMC="$2"
9397 else
9398 WINDMC="${ncn_tool_prefix}$2"
9404 if test -n "$OBJCOPY"; then
9405 ac_cv_prog_OBJCOPY=$OBJCOPY
9406 elif test -n "$ac_cv_prog_OBJCOPY"; then
9407 OBJCOPY=$ac_cv_prog_OBJCOPY
9410 if test -n "$ac_cv_prog_OBJCOPY"; then
9411 for ncn_progname in objcopy; do
9412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9413 set dummy ${ncn_progname}; ac_word=$2
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415 $as_echo_n "checking for $ac_word... " >&6; }
9416 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 if test -n "$OBJCOPY"; then
9420 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9421 else
9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423 for as_dir in $PATH
9425 IFS=$as_save_IFS
9426 test -z "$as_dir" && as_dir=.
9427 for ac_exec_ext in '' $ac_executable_extensions; do
9428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9429 ac_cv_prog_OBJCOPY="${ncn_progname}"
9430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 break 2
9433 done
9434 done
9435 IFS=$as_save_IFS
9439 OBJCOPY=$ac_cv_prog_OBJCOPY
9440 if test -n "$OBJCOPY"; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9442 $as_echo "$OBJCOPY" >&6; }
9443 else
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445 $as_echo "no" >&6; }
9449 done
9452 for ncn_progname in objcopy; do
9453 if test -n "$ncn_tool_prefix"; then
9454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9455 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 if test -n "$OBJCOPY"; then
9462 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9463 else
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 break 2
9475 done
9476 done
9477 IFS=$as_save_IFS
9481 OBJCOPY=$ac_cv_prog_OBJCOPY
9482 if test -n "$OBJCOPY"; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9484 $as_echo "$OBJCOPY" >&6; }
9485 else
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9492 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9494 set dummy ${ncn_progname}; ac_word=$2
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496 $as_echo_n "checking for $ac_word... " >&6; }
9497 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 if test -n "$OBJCOPY"; then
9501 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9502 else
9503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 for as_dir in $PATH
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9510 ac_cv_prog_OBJCOPY="${ncn_progname}"
9511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9512 break 2
9514 done
9515 done
9516 IFS=$as_save_IFS
9520 OBJCOPY=$ac_cv_prog_OBJCOPY
9521 if test -n "$OBJCOPY"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9523 $as_echo "$OBJCOPY" >&6; }
9524 else
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9531 test -n "$ac_cv_prog_OBJCOPY" && break
9532 done
9534 if test -z "$ac_cv_prog_OBJCOPY" ; then
9535 set dummy objcopy
9536 if test $build = $host ; then
9537 OBJCOPY="$2"
9538 else
9539 OBJCOPY="${ncn_tool_prefix}$2"
9545 if test -n "$OBJDUMP"; then
9546 ac_cv_prog_OBJDUMP=$OBJDUMP
9547 elif test -n "$ac_cv_prog_OBJDUMP"; then
9548 OBJDUMP=$ac_cv_prog_OBJDUMP
9551 if test -n "$ac_cv_prog_OBJDUMP"; then
9552 for ncn_progname in objdump; do
9553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9554 set dummy ${ncn_progname}; ac_word=$2
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556 $as_echo_n "checking for $ac_word... " >&6; }
9557 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 if test -n "$OBJDUMP"; then
9561 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9562 else
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_prog_OBJDUMP="${ncn_progname}"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 break 2
9574 done
9575 done
9576 IFS=$as_save_IFS
9580 OBJDUMP=$ac_cv_prog_OBJDUMP
9581 if test -n "$OBJDUMP"; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9583 $as_echo "$OBJDUMP" >&6; }
9584 else
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9590 done
9593 for ncn_progname in objdump; do
9594 if test -n "$ncn_tool_prefix"; then
9595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9596 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 if test -n "$OBJDUMP"; then
9603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9604 else
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in $PATH
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9616 done
9617 done
9618 IFS=$as_save_IFS
9622 OBJDUMP=$ac_cv_prog_OBJDUMP
9623 if test -n "$OBJDUMP"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9625 $as_echo "$OBJDUMP" >&6; }
9626 else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9633 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9635 set dummy ${ncn_progname}; ac_word=$2
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637 $as_echo_n "checking for $ac_word... " >&6; }
9638 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 if test -n "$OBJDUMP"; then
9642 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9643 else
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9651 ac_cv_prog_OBJDUMP="${ncn_progname}"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9655 done
9656 done
9657 IFS=$as_save_IFS
9661 OBJDUMP=$ac_cv_prog_OBJDUMP
9662 if test -n "$OBJDUMP"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9664 $as_echo "$OBJDUMP" >&6; }
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9672 test -n "$ac_cv_prog_OBJDUMP" && break
9673 done
9675 if test -z "$ac_cv_prog_OBJDUMP" ; then
9676 set dummy objdump
9677 if test $build = $host ; then
9678 OBJDUMP="$2"
9679 else
9680 OBJDUMP="${ncn_tool_prefix}$2"
9689 # Target tools.
9691 # Check whether --with-build-time-tools was given.
9692 if test "${with_build_time_tools+set}" = set; then :
9693 withval=$with_build_time_tools; case x"$withval" in
9694 x/*) ;;
9696 with_build_time_tools=
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9698 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9700 esac
9701 else
9702 with_build_time_tools=
9708 if test -n "$CC_FOR_TARGET"; then
9709 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9710 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9711 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9714 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9715 for ncn_progname in cc gcc; do
9716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9717 set dummy ${ncn_progname}; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 if test -n "$CC_FOR_TARGET"; then
9724 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9725 else
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in $PATH
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9733 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9737 done
9738 done
9739 IFS=$as_save_IFS
9743 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9744 if test -n "$CC_FOR_TARGET"; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9746 $as_echo "$CC_FOR_TARGET" >&6; }
9747 else
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749 $as_echo "no" >&6; }
9753 done
9756 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9757 for ncn_progname in cc gcc; do
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9759 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9760 if test -x $with_build_time_tools/${ncn_progname}; then
9761 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763 $as_echo "yes" >&6; }
9764 break
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9769 done
9772 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9773 for ncn_progname in cc gcc; do
9774 if test -n "$ncn_target_tool_prefix"; then
9775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9776 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778 $as_echo_n "checking for $ac_word... " >&6; }
9779 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 if test -n "$CC_FOR_TARGET"; then
9783 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9784 else
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 break 2
9796 done
9797 done
9798 IFS=$as_save_IFS
9802 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9803 if test -n "$CC_FOR_TARGET"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9805 $as_echo "$CC_FOR_TARGET" >&6; }
9806 else
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808 $as_echo "no" >&6; }
9813 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9815 set dummy ${ncn_progname}; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 if test -n "$CC_FOR_TARGET"; then
9822 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9823 else
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9835 done
9836 done
9837 IFS=$as_save_IFS
9841 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9842 if test -n "$CC_FOR_TARGET"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9844 $as_echo "$CC_FOR_TARGET" >&6; }
9845 else
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847 $as_echo "no" >&6; }
9852 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9853 done
9856 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9857 set dummy cc gcc
9858 if test $build = $target ; then
9859 CC_FOR_TARGET="$2"
9860 else
9861 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9863 else
9864 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9869 if test -n "$CXX_FOR_TARGET"; then
9870 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9871 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9872 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9875 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9876 for ncn_progname in c++ g++ cxx gxx; do
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878 set dummy ${ncn_progname}; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 if test -n "$CXX_FOR_TARGET"; then
9885 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9886 else
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 for as_dir in $PATH
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 break 2
9898 done
9899 done
9900 IFS=$as_save_IFS
9904 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9905 if test -n "$CXX_FOR_TARGET"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9907 $as_echo "$CXX_FOR_TARGET" >&6; }
9908 else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9914 done
9917 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9918 for ncn_progname in c++ g++ cxx gxx; do
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9920 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9921 if test -x $with_build_time_tools/${ncn_progname}; then
9922 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; }
9925 break
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9930 done
9933 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9934 for ncn_progname in c++ g++ cxx gxx; do
9935 if test -n "$ncn_target_tool_prefix"; then
9936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9937 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 if test -n "$CXX_FOR_TARGET"; then
9944 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9945 else
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9953 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9957 done
9958 done
9959 IFS=$as_save_IFS
9963 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9964 if test -n "$CXX_FOR_TARGET"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9966 $as_echo "$CXX_FOR_TARGET" >&6; }
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9974 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9976 set dummy ${ncn_progname}; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 if test -n "$CXX_FOR_TARGET"; then
9983 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9984 else
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9996 done
9997 done
9998 IFS=$as_save_IFS
10002 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10003 if test -n "$CXX_FOR_TARGET"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10005 $as_echo "$CXX_FOR_TARGET" >&6; }
10006 else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10013 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10014 done
10017 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10018 set dummy c++ g++ cxx gxx
10019 if test $build = $target ; then
10020 CXX_FOR_TARGET="$2"
10021 else
10022 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10024 else
10025 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10030 if test -n "$GCC_FOR_TARGET"; then
10031 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10032 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10033 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10036 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10037 for ncn_progname in gcc; do
10038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10039 set dummy ${ncn_progname}; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 if test -n "$GCC_FOR_TARGET"; then
10046 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10047 else
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10059 done
10060 done
10061 IFS=$as_save_IFS
10065 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10066 if test -n "$GCC_FOR_TARGET"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10068 $as_echo "$GCC_FOR_TARGET" >&6; }
10069 else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10075 done
10078 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10079 for ncn_progname in gcc; do
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10081 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10082 if test -x $with_build_time_tools/${ncn_progname}; then
10083 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10085 $as_echo "yes" >&6; }
10086 break
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10091 done
10094 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10095 for ncn_progname in gcc; do
10096 if test -n "$ncn_target_tool_prefix"; then
10097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10098 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100 $as_echo_n "checking for $ac_word... " >&6; }
10101 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 if test -n "$GCC_FOR_TARGET"; then
10105 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10106 else
10107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108 for as_dir in $PATH
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10114 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10116 break 2
10118 done
10119 done
10120 IFS=$as_save_IFS
10124 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10125 if test -n "$GCC_FOR_TARGET"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10127 $as_echo "$GCC_FOR_TARGET" >&6; }
10128 else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10135 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10137 set dummy ${ncn_progname}; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 if test -n "$GCC_FOR_TARGET"; then
10144 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10153 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10157 done
10158 done
10159 IFS=$as_save_IFS
10163 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10164 if test -n "$GCC_FOR_TARGET"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10166 $as_echo "$GCC_FOR_TARGET" >&6; }
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10174 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10175 done
10178 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10179 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10180 else
10181 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10186 if test -n "$GCJ_FOR_TARGET"; then
10187 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10188 elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10189 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10192 if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10193 for ncn_progname in gcj; do
10194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10195 set dummy ${ncn_progname}; ac_word=$2
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197 $as_echo_n "checking for $ac_word... " >&6; }
10198 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 if test -n "$GCJ_FOR_TARGET"; then
10202 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10203 else
10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in $PATH
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10211 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10215 done
10216 done
10217 IFS=$as_save_IFS
10221 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10222 if test -n "$GCJ_FOR_TARGET"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10224 $as_echo "$GCJ_FOR_TARGET" >&6; }
10225 else
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10231 done
10234 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10235 for ncn_progname in gcj; do
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10237 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10238 if test -x $with_build_time_tools/${ncn_progname}; then
10239 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10241 $as_echo "yes" >&6; }
10242 break
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10247 done
10250 if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10251 for ncn_progname in gcj; do
10252 if test -n "$ncn_target_tool_prefix"; then
10253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10254 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 if test -n "$GCJ_FOR_TARGET"; then
10261 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10262 else
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10276 IFS=$as_save_IFS
10280 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10281 if test -n "$GCJ_FOR_TARGET"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10283 $as_echo "$GCJ_FOR_TARGET" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10291 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10293 set dummy ${ncn_progname}; ac_word=$2
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295 $as_echo_n "checking for $ac_word... " >&6; }
10296 if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298 else
10299 if test -n "$GCJ_FOR_TARGET"; then
10300 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10301 else
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10313 done
10314 done
10315 IFS=$as_save_IFS
10319 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10320 if test -n "$GCJ_FOR_TARGET"; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10322 $as_echo "$GCJ_FOR_TARGET" >&6; }
10323 else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325 $as_echo "no" >&6; }
10330 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10331 done
10334 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10335 set dummy gcj
10336 if test $build = $target ; then
10337 GCJ_FOR_TARGET="$2"
10338 else
10339 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10341 else
10342 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10347 if test -n "$GFORTRAN_FOR_TARGET"; then
10348 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10349 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10353 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10354 for ncn_progname in gfortran; do
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10356 set dummy ${ncn_progname}; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361 else
10362 if test -n "$GFORTRAN_FOR_TARGET"; then
10363 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10364 else
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10376 done
10377 done
10378 IFS=$as_save_IFS
10382 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10383 if test -n "$GFORTRAN_FOR_TARGET"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10385 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10386 else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10392 done
10395 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10396 for ncn_progname in gfortran; do
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10398 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10399 if test -x $with_build_time_tools/${ncn_progname}; then
10400 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10402 $as_echo "yes" >&6; }
10403 break
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10408 done
10411 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10412 for ncn_progname in gfortran; do
10413 if test -n "$ncn_target_tool_prefix"; then
10414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10415 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 $as_echo_n "checking for $ac_word... " >&6; }
10418 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10421 if test -n "$GFORTRAN_FOR_TARGET"; then
10422 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10423 else
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10431 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10435 done
10436 done
10437 IFS=$as_save_IFS
10441 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10442 if test -n "$GFORTRAN_FOR_TARGET"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10444 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10445 else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 $as_echo "no" >&6; }
10452 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454 set dummy ${ncn_progname}; ac_word=$2
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456 $as_echo_n "checking for $ac_word... " >&6; }
10457 if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 if test -n "$GFORTRAN_FOR_TARGET"; then
10461 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10462 else
10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464 for as_dir in $PATH
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10470 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472 break 2
10474 done
10475 done
10476 IFS=$as_save_IFS
10480 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10481 if test -n "$GFORTRAN_FOR_TARGET"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10483 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486 $as_echo "no" >&6; }
10491 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10492 done
10495 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10496 set dummy gfortran
10497 if test $build = $target ; then
10498 GFORTRAN_FOR_TARGET="$2"
10499 else
10500 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10502 else
10503 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10508 if test -n "$GOC_FOR_TARGET"; then
10509 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10510 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10514 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10515 for ncn_progname in gccgo; do
10516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10517 set dummy ${ncn_progname}; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 if test -n "$GOC_FOR_TARGET"; then
10524 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10525 else
10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527 for as_dir in $PATH
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10537 done
10538 done
10539 IFS=$as_save_IFS
10543 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10544 if test -n "$GOC_FOR_TARGET"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10546 $as_echo "$GOC_FOR_TARGET" >&6; }
10547 else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10553 done
10556 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10557 for ncn_progname in gccgo; do
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10559 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10560 if test -x $with_build_time_tools/${ncn_progname}; then
10561 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563 $as_echo "yes" >&6; }
10564 break
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10569 done
10572 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10573 for ncn_progname in gccgo; do
10574 if test -n "$ncn_target_tool_prefix"; then
10575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10576 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578 $as_echo_n "checking for $ac_word... " >&6; }
10579 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 if test -n "$GOC_FOR_TARGET"; then
10583 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10584 else
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10596 done
10597 done
10598 IFS=$as_save_IFS
10602 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10603 if test -n "$GOC_FOR_TARGET"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10605 $as_echo "$GOC_FOR_TARGET" >&6; }
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608 $as_echo "no" >&6; }
10613 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10615 set dummy ${ncn_progname}; ac_word=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 if test -n "$GOC_FOR_TARGET"; then
10622 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10623 else
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10635 done
10636 done
10637 IFS=$as_save_IFS
10641 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10642 if test -n "$GOC_FOR_TARGET"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10644 $as_echo "$GOC_FOR_TARGET" >&6; }
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }
10652 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10653 done
10656 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10657 set dummy gccgo
10658 if test $build = $target ; then
10659 GOC_FOR_TARGET="$2"
10660 else
10661 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10663 else
10664 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10669 cat > conftest.c << \EOF
10670 #ifdef __GNUC__
10671 gcc_yay;
10672 #endif
10674 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10675 have_gcc_for_target=yes
10676 else
10677 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10678 have_gcc_for_target=no
10680 rm conftest.c
10685 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10688 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10689 if test -x $with_build_time_tools/ar; then
10690 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10691 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10693 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696 $as_echo "no" >&6; }
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10700 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10701 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10704 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10705 # Extract the first word of "ar", so it can be a program name with args.
10706 set dummy ar; ac_word=$2
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708 $as_echo_n "checking for $ac_word... " >&6; }
10709 if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
10711 else
10712 case $AR_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
10714 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $gcc_cv_tool_dirs
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10728 done
10729 done
10730 IFS=$as_save_IFS
10733 esac
10735 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10736 if test -n "$AR_FOR_TARGET"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10738 $as_echo "$AR_FOR_TARGET" >&6; }
10739 else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 $as_echo "no" >&6; }
10746 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10749 if test -n "$AR_FOR_TARGET"; then
10750 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10751 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10752 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10755 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10756 for ncn_progname in ar; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758 set dummy ${ncn_progname}; ac_word=$2
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760 $as_echo_n "checking for $ac_word... " >&6; }
10761 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 if test -n "$AR_FOR_TARGET"; then
10765 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10766 else
10767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768 for as_dir in $PATH
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10778 done
10779 done
10780 IFS=$as_save_IFS
10784 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10785 if test -n "$AR_FOR_TARGET"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10787 $as_echo "$AR_FOR_TARGET" >&6; }
10788 else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790 $as_echo "no" >&6; }
10794 done
10797 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10798 for ncn_progname in ar; do
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804 $as_echo "yes" >&6; }
10805 break
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10810 done
10813 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10814 for ncn_progname in ar; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10817 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819 $as_echo_n "checking for $ac_word... " >&6; }
10820 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 if test -n "$AR_FOR_TARGET"; then
10824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10825 else
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10837 done
10838 done
10839 IFS=$as_save_IFS
10843 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10844 if test -n "$AR_FOR_TARGET"; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10846 $as_echo "$AR_FOR_TARGET" >&6; }
10847 else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849 $as_echo "no" >&6; }
10854 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10856 set dummy ${ncn_progname}; ac_word=$2
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 $as_echo_n "checking for $ac_word... " >&6; }
10859 if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 if test -n "$AR_FOR_TARGET"; then
10863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10864 else
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866 for as_dir in $PATH
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10876 done
10877 done
10878 IFS=$as_save_IFS
10882 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10883 if test -n "$AR_FOR_TARGET"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10885 $as_echo "$AR_FOR_TARGET" >&6; }
10886 else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 $as_echo "no" >&6; }
10893 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10894 done
10897 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10898 set dummy ar
10899 if test $build = $target ; then
10900 AR_FOR_TARGET="$2"
10901 else
10902 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10904 else
10905 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10908 else
10909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10915 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10916 if test -n "$with_build_time_tools"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10918 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10919 if test -x $with_build_time_tools/as; then
10920 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10921 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10923 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10928 elif test $build != $host && test $have_gcc_for_target = yes; then
10929 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10930 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10931 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10934 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10935 # Extract the first word of "as", so it can be a program name with args.
10936 set dummy as; ac_word=$2
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938 $as_echo_n "checking for $ac_word... " >&6; }
10939 if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 case $AS_FOR_TARGET in
10943 [\\/]* | ?:[\\/]*)
10944 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $gcc_cv_tool_dirs
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10958 done
10959 done
10960 IFS=$as_save_IFS
10963 esac
10965 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10966 if test -n "$AS_FOR_TARGET"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10968 $as_echo "$AS_FOR_TARGET" >&6; }
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10976 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10979 if test -n "$AS_FOR_TARGET"; then
10980 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10981 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10982 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10985 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10986 for ncn_progname in as; do
10987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10988 set dummy ${ncn_progname}; ac_word=$2
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990 $as_echo_n "checking for $ac_word... " >&6; }
10991 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 if test -n "$AS_FOR_TARGET"; then
10995 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10996 else
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11008 done
11009 done
11010 IFS=$as_save_IFS
11014 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11015 if test -n "$AS_FOR_TARGET"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11017 $as_echo "$AS_FOR_TARGET" >&6; }
11018 else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020 $as_echo "no" >&6; }
11024 done
11027 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11028 for ncn_progname in as; do
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11030 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11031 if test -x $with_build_time_tools/${ncn_progname}; then
11032 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11034 $as_echo "yes" >&6; }
11035 break
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11040 done
11043 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11044 for ncn_progname in as; do
11045 if test -n "$ncn_target_tool_prefix"; then
11046 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11047 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049 $as_echo_n "checking for $ac_word... " >&6; }
11050 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
11052 else
11053 if test -n "$AS_FOR_TARGET"; then
11054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11055 else
11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057 for as_dir in $PATH
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11067 done
11068 done
11069 IFS=$as_save_IFS
11073 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11074 if test -n "$AS_FOR_TARGET"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11076 $as_echo "$AS_FOR_TARGET" >&6; }
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079 $as_echo "no" >&6; }
11084 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086 set dummy ${ncn_progname}; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 if test -n "$AS_FOR_TARGET"; then
11093 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11094 else
11095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096 for as_dir in $PATH
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11106 done
11107 done
11108 IFS=$as_save_IFS
11112 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11113 if test -n "$AS_FOR_TARGET"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11115 $as_echo "$AS_FOR_TARGET" >&6; }
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118 $as_echo "no" >&6; }
11123 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11124 done
11127 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11128 set dummy as
11129 if test $build = $target ; then
11130 AS_FOR_TARGET="$2"
11131 else
11132 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11134 else
11135 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11138 else
11139 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11145 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11146 if test -n "$with_build_time_tools"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11148 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11149 if test -x $with_build_time_tools/dlltool; then
11150 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11151 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11153 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11158 elif test $build != $host && test $have_gcc_for_target = yes; then
11159 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11160 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11161 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11164 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11165 # Extract the first word of "dlltool", so it can be a program name with args.
11166 set dummy dlltool; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 case $DLLTOOL_FOR_TARGET in
11173 [\\/]* | ?:[\\/]*)
11174 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $gcc_cv_tool_dirs
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186 break 2
11188 done
11189 done
11190 IFS=$as_save_IFS
11193 esac
11195 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11196 if test -n "$DLLTOOL_FOR_TARGET"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11198 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11206 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11209 if test -n "$DLLTOOL_FOR_TARGET"; then
11210 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11211 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11215 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11216 for ncn_progname in dlltool; do
11217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11218 set dummy ${ncn_progname}; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 if test -n "$DLLTOOL_FOR_TARGET"; then
11225 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11226 else
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11234 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236 break 2
11238 done
11239 done
11240 IFS=$as_save_IFS
11244 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11245 if test -n "$DLLTOOL_FOR_TARGET"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11247 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11254 done
11257 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11258 for ncn_progname in dlltool; do
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11260 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11261 if test -x $with_build_time_tools/${ncn_progname}; then
11262 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264 $as_echo "yes" >&6; }
11265 break
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11270 done
11273 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11274 for ncn_progname in dlltool; do
11275 if test -n "$ncn_target_tool_prefix"; then
11276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11277 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279 $as_echo_n "checking for $ac_word... " >&6; }
11280 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 if test -n "$DLLTOOL_FOR_TARGET"; then
11284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11285 else
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 break 2
11297 done
11298 done
11299 IFS=$as_save_IFS
11303 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11304 if test -n "$DLLTOOL_FOR_TARGET"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11306 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309 $as_echo "no" >&6; }
11314 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316 set dummy ${ncn_progname}; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318 $as_echo_n "checking for $ac_word... " >&6; }
11319 if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11322 if test -n "$DLLTOOL_FOR_TARGET"; then
11323 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11324 else
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11332 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 break 2
11336 done
11337 done
11338 IFS=$as_save_IFS
11342 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11343 if test -n "$DLLTOOL_FOR_TARGET"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11345 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348 $as_echo "no" >&6; }
11353 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11354 done
11357 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11358 set dummy dlltool
11359 if test $build = $target ; then
11360 DLLTOOL_FOR_TARGET="$2"
11361 else
11362 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11364 else
11365 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11368 else
11369 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11375 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11376 if test -n "$with_build_time_tools"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11378 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11379 if test -x $with_build_time_tools/ld; then
11380 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11381 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11383 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11388 elif test $build != $host && test $have_gcc_for_target = yes; then
11389 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11390 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11391 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11394 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11395 # Extract the first word of "ld", so it can be a program name with args.
11396 set dummy ld; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 case $LD_FOR_TARGET in
11403 [\\/]* | ?:[\\/]*)
11404 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $gcc_cv_tool_dirs
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 break 2
11418 done
11419 done
11420 IFS=$as_save_IFS
11423 esac
11425 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11426 if test -n "$LD_FOR_TARGET"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11428 $as_echo "$LD_FOR_TARGET" >&6; }
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11436 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11439 if test -n "$LD_FOR_TARGET"; then
11440 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11441 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11442 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11445 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11446 for ncn_progname in ld; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448 set dummy ${ncn_progname}; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11453 else
11454 if test -n "$LD_FOR_TARGET"; then
11455 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11456 else
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11464 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 break 2
11468 done
11469 done
11470 IFS=$as_save_IFS
11474 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11475 if test -n "$LD_FOR_TARGET"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11477 $as_echo "$LD_FOR_TARGET" >&6; }
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11484 done
11487 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11488 for ncn_progname in ld; do
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11490 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11491 if test -x $with_build_time_tools/${ncn_progname}; then
11492 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494 $as_echo "yes" >&6; }
11495 break
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498 $as_echo "no" >&6; }
11500 done
11503 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11504 for ncn_progname in ld; do
11505 if test -n "$ncn_target_tool_prefix"; then
11506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11507 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509 $as_echo_n "checking for $ac_word... " >&6; }
11510 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 if test -n "$LD_FOR_TARGET"; then
11514 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11515 else
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11527 done
11528 done
11529 IFS=$as_save_IFS
11533 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11534 if test -n "$LD_FOR_TARGET"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11536 $as_echo "$LD_FOR_TARGET" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11544 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11546 set dummy ${ncn_progname}; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 if test -n "$LD_FOR_TARGET"; then
11553 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11554 else
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11566 done
11567 done
11568 IFS=$as_save_IFS
11572 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11573 if test -n "$LD_FOR_TARGET"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11575 $as_echo "$LD_FOR_TARGET" >&6; }
11576 else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578 $as_echo "no" >&6; }
11583 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11584 done
11587 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11588 set dummy ld
11589 if test $build = $target ; then
11590 LD_FOR_TARGET="$2"
11591 else
11592 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11594 else
11595 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11598 else
11599 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11605 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11606 if test -n "$with_build_time_tools"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11608 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11609 if test -x $with_build_time_tools/lipo; then
11610 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11611 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11613 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11618 elif test $build != $host && test $have_gcc_for_target = yes; then
11619 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11620 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11621 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11624 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11625 # Extract the first word of "lipo", so it can be a program name with args.
11626 set dummy lipo; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628 $as_echo_n "checking for $ac_word... " >&6; }
11629 if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 case $LIPO_FOR_TARGET in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $gcc_cv_tool_dirs
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11644 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646 break 2
11648 done
11649 done
11650 IFS=$as_save_IFS
11653 esac
11655 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11656 if test -n "$LIPO_FOR_TARGET"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11658 $as_echo "$LIPO_FOR_TARGET" >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11666 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11669 if test -n "$LIPO_FOR_TARGET"; then
11670 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11671 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11675 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11676 for ncn_progname in lipo; do
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678 set dummy ${ncn_progname}; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 if test -n "$LIPO_FOR_TARGET"; then
11685 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11686 else
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11694 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11698 done
11699 done
11700 IFS=$as_save_IFS
11704 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11705 if test -n "$LIPO_FOR_TARGET"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11707 $as_echo "$LIPO_FOR_TARGET" >&6; }
11708 else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11714 done
11717 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11718 for ncn_progname in lipo; do
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11720 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11721 if test -x $with_build_time_tools/${ncn_progname}; then
11722 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724 $as_echo "yes" >&6; }
11725 break
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11730 done
11733 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11734 for ncn_progname in lipo; do
11735 if test -n "$ncn_target_tool_prefix"; then
11736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11737 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 if test -n "$LIPO_FOR_TARGET"; then
11744 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11745 else
11746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747 for as_dir in $PATH
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11757 done
11758 done
11759 IFS=$as_save_IFS
11763 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11764 if test -n "$LIPO_FOR_TARGET"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11766 $as_echo "$LIPO_FOR_TARGET" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 $as_echo "no" >&6; }
11774 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11776 set dummy ${ncn_progname}; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 if test -n "$LIPO_FOR_TARGET"; then
11783 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11784 else
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11792 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11796 done
11797 done
11798 IFS=$as_save_IFS
11802 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11803 if test -n "$LIPO_FOR_TARGET"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11805 $as_echo "$LIPO_FOR_TARGET" >&6; }
11806 else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11814 done
11817 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11818 set dummy lipo
11819 if test $build = $target ; then
11820 LIPO_FOR_TARGET="$2"
11821 else
11822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11824 else
11825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11828 else
11829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11835 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11836 if test -n "$with_build_time_tools"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11838 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11839 if test -x $with_build_time_tools/nm; then
11840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11843 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11848 elif test $build != $host && test $have_gcc_for_target = yes; then
11849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11854 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11855 # Extract the first word of "nm", so it can be a program name with args.
11856 set dummy nm; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 case $NM_FOR_TARGET in
11863 [\\/]* | ?:[\\/]*)
11864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $gcc_cv_tool_dirs
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11878 done
11879 done
11880 IFS=$as_save_IFS
11883 esac
11885 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11886 if test -n "$NM_FOR_TARGET"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11888 $as_echo "$NM_FOR_TARGET" >&6; }
11889 else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11896 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11899 if test -n "$NM_FOR_TARGET"; then
11900 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11901 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11902 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11905 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11906 for ncn_progname in nm; do
11907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908 set dummy ${ncn_progname}; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
11913 else
11914 if test -n "$NM_FOR_TARGET"; then
11915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11916 else
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11924 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11928 done
11929 done
11930 IFS=$as_save_IFS
11934 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11935 if test -n "$NM_FOR_TARGET"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11937 $as_echo "$NM_FOR_TARGET" >&6; }
11938 else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11944 done
11947 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11948 for ncn_progname in nm; do
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11950 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11951 if test -x $with_build_time_tools/${ncn_progname}; then
11952 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954 $as_echo "yes" >&6; }
11955 break
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11960 done
11963 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11964 for ncn_progname in nm; do
11965 if test -n "$ncn_target_tool_prefix"; then
11966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11967 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969 $as_echo_n "checking for $ac_word... " >&6; }
11970 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 if test -n "$NM_FOR_TARGET"; then
11974 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11975 else
11976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977 for as_dir in $PATH
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11983 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11987 done
11988 done
11989 IFS=$as_save_IFS
11993 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11994 if test -n "$NM_FOR_TARGET"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11996 $as_echo "$NM_FOR_TARGET" >&6; }
11997 else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12004 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12006 set dummy ${ncn_progname}; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 if test -n "$NM_FOR_TARGET"; then
12013 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12014 else
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12022 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12026 done
12027 done
12028 IFS=$as_save_IFS
12032 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12033 if test -n "$NM_FOR_TARGET"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12035 $as_echo "$NM_FOR_TARGET" >&6; }
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12043 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12044 done
12047 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12048 set dummy nm
12049 if test $build = $target ; then
12050 NM_FOR_TARGET="$2"
12051 else
12052 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12054 else
12055 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12058 else
12059 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12065 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12066 if test -n "$with_build_time_tools"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12068 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12069 if test -x $with_build_time_tools/objdump; then
12070 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12071 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12073 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12078 elif test $build != $host && test $have_gcc_for_target = yes; then
12079 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12080 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12081 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12084 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12085 # Extract the first word of "objdump", so it can be a program name with args.
12086 set dummy objdump; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091 else
12092 case $OBJDUMP_FOR_TARGET in
12093 [\\/]* | ?:[\\/]*)
12094 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $gcc_cv_tool_dirs
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12108 done
12109 done
12110 IFS=$as_save_IFS
12113 esac
12115 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12116 if test -n "$OBJDUMP_FOR_TARGET"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12118 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12126 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12129 if test -n "$OBJDUMP_FOR_TARGET"; then
12130 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12131 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12132 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12135 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12136 for ncn_progname in objdump; do
12137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12138 set dummy ${ncn_progname}; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 if test -n "$OBJDUMP_FOR_TARGET"; then
12145 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12146 else
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12154 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12158 done
12159 done
12160 IFS=$as_save_IFS
12164 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12165 if test -n "$OBJDUMP_FOR_TARGET"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12167 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12168 else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12174 done
12177 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12178 for ncn_progname in objdump; do
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12180 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12181 if test -x $with_build_time_tools/${ncn_progname}; then
12182 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184 $as_echo "yes" >&6; }
12185 break
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12190 done
12193 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12194 for ncn_progname in objdump; do
12195 if test -n "$ncn_target_tool_prefix"; then
12196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12197 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 if test -n "$OBJDUMP_FOR_TARGET"; then
12204 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12205 else
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12213 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12217 done
12218 done
12219 IFS=$as_save_IFS
12223 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12224 if test -n "$OBJDUMP_FOR_TARGET"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12226 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12227 else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12234 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12236 set dummy ${ncn_progname}; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if test -n "$OBJDUMP_FOR_TARGET"; then
12243 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12244 else
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12256 done
12257 done
12258 IFS=$as_save_IFS
12262 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12263 if test -n "$OBJDUMP_FOR_TARGET"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12265 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12273 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12274 done
12277 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12278 set dummy objdump
12279 if test $build = $target ; then
12280 OBJDUMP_FOR_TARGET="$2"
12281 else
12282 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12284 else
12285 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12288 else
12289 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12295 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12296 if test -n "$with_build_time_tools"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12298 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12299 if test -x $with_build_time_tools/ranlib; then
12300 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12301 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12303 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12308 elif test $build != $host && test $have_gcc_for_target = yes; then
12309 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12310 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12311 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12314 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12315 # Extract the first word of "ranlib", so it can be a program name with args.
12316 set dummy ranlib; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318 $as_echo_n "checking for $ac_word... " >&6; }
12319 if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 case $RANLIB_FOR_TARGET in
12323 [\\/]* | ?:[\\/]*)
12324 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $gcc_cv_tool_dirs
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12338 done
12339 done
12340 IFS=$as_save_IFS
12343 esac
12345 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12346 if test -n "$RANLIB_FOR_TARGET"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12348 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12356 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12359 if test -n "$RANLIB_FOR_TARGET"; then
12360 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12361 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12362 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12365 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12366 for ncn_progname in ranlib; do
12367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12368 set dummy ${ncn_progname}; ac_word=$2
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370 $as_echo_n "checking for $ac_word... " >&6; }
12371 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 if test -n "$RANLIB_FOR_TARGET"; then
12375 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12376 else
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12388 done
12389 done
12390 IFS=$as_save_IFS
12394 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12395 if test -n "$RANLIB_FOR_TARGET"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12397 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12404 done
12407 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12408 for ncn_progname in ranlib; do
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12410 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12411 if test -x $with_build_time_tools/${ncn_progname}; then
12412 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414 $as_echo "yes" >&6; }
12415 break
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418 $as_echo "no" >&6; }
12420 done
12423 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12424 for ncn_progname in ranlib; do
12425 if test -n "$ncn_target_tool_prefix"; then
12426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12427 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 if test -n "$RANLIB_FOR_TARGET"; then
12434 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12435 else
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12447 done
12448 done
12449 IFS=$as_save_IFS
12453 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12454 if test -n "$RANLIB_FOR_TARGET"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12456 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12464 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12466 set dummy ${ncn_progname}; ac_word=$2
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468 $as_echo_n "checking for $ac_word... " >&6; }
12469 if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test -n "$RANLIB_FOR_TARGET"; then
12473 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12474 else
12475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476 for as_dir in $PATH
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12482 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 break 2
12486 done
12487 done
12488 IFS=$as_save_IFS
12492 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12493 if test -n "$RANLIB_FOR_TARGET"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12495 $as_echo "$RANLIB_FOR_TARGET" >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498 $as_echo "no" >&6; }
12503 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12504 done
12507 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12508 set dummy ranlib
12509 if test $build = $target ; then
12510 RANLIB_FOR_TARGET="$2"
12511 else
12512 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12514 else
12515 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12518 else
12519 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12525 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12526 if test -n "$with_build_time_tools"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12528 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/strip; then
12530 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12531 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12533 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12538 elif test $build != $host && test $have_gcc_for_target = yes; then
12539 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12540 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12541 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12544 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12545 # Extract the first word of "strip", so it can be a program name with args.
12546 set dummy strip; ac_word=$2
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548 $as_echo_n "checking for $ac_word... " >&6; }
12549 if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 case $STRIP_FOR_TARGET in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $gcc_cv_tool_dirs
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12568 done
12569 done
12570 IFS=$as_save_IFS
12573 esac
12575 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12576 if test -n "$STRIP_FOR_TARGET"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12578 $as_echo "$STRIP_FOR_TARGET" >&6; }
12579 else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12586 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12589 if test -n "$STRIP_FOR_TARGET"; then
12590 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12591 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12592 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12595 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12596 for ncn_progname in strip; do
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598 set dummy ${ncn_progname}; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600 $as_echo_n "checking for $ac_word... " >&6; }
12601 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if test -n "$STRIP_FOR_TARGET"; then
12605 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12606 else
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12618 done
12619 done
12620 IFS=$as_save_IFS
12624 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12625 if test -n "$STRIP_FOR_TARGET"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12627 $as_echo "$STRIP_FOR_TARGET" >&6; }
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12634 done
12637 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12638 for ncn_progname in strip; do
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12640 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12641 if test -x $with_build_time_tools/${ncn_progname}; then
12642 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644 $as_echo "yes" >&6; }
12645 break
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648 $as_echo "no" >&6; }
12650 done
12653 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12654 for ncn_progname in strip; do
12655 if test -n "$ncn_target_tool_prefix"; then
12656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12657 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659 $as_echo_n "checking for $ac_word... " >&6; }
12660 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 if test -n "$STRIP_FOR_TARGET"; then
12664 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12665 else
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12673 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12677 done
12678 done
12679 IFS=$as_save_IFS
12683 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12684 if test -n "$STRIP_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12686 $as_echo "$STRIP_FOR_TARGET" >&6; }
12687 else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689 $as_echo "no" >&6; }
12694 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12696 set dummy ${ncn_progname}; ac_word=$2
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698 $as_echo_n "checking for $ac_word... " >&6; }
12699 if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test -n "$STRIP_FOR_TARGET"; then
12703 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12704 else
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12716 done
12717 done
12718 IFS=$as_save_IFS
12722 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12723 if test -n "$STRIP_FOR_TARGET"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12725 $as_echo "$STRIP_FOR_TARGET" >&6; }
12726 else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12733 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12734 done
12737 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12738 set dummy strip
12739 if test $build = $target ; then
12740 STRIP_FOR_TARGET="$2"
12741 else
12742 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12744 else
12745 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12748 else
12749 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12755 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12756 if test -n "$with_build_time_tools"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12758 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12759 if test -x $with_build_time_tools/windres; then
12760 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12761 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12763 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766 $as_echo "no" >&6; }
12768 elif test $build != $host && test $have_gcc_for_target = yes; then
12769 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12770 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12771 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12774 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12775 # Extract the first word of "windres", so it can be a program name with args.
12776 set dummy windres; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 case $WINDRES_FOR_TARGET in
12783 [\\/]* | ?:[\\/]*)
12784 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788 for as_dir in $gcc_cv_tool_dirs
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12794 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12798 done
12799 done
12800 IFS=$as_save_IFS
12803 esac
12805 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12806 if test -n "$WINDRES_FOR_TARGET"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12808 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12816 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12819 if test -n "$WINDRES_FOR_TARGET"; then
12820 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12821 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12822 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12825 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12826 for ncn_progname in windres; do
12827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12828 set dummy ${ncn_progname}; ac_word=$2
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830 $as_echo_n "checking for $ac_word... " >&6; }
12831 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
12833 else
12834 if test -n "$WINDRES_FOR_TARGET"; then
12835 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12836 else
12837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838 for as_dir in $PATH
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12844 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12848 done
12849 done
12850 IFS=$as_save_IFS
12854 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12855 if test -n "$WINDRES_FOR_TARGET"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12857 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12858 else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12864 done
12867 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12868 for ncn_progname in windres; do
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12870 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12871 if test -x $with_build_time_tools/${ncn_progname}; then
12872 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874 $as_echo "yes" >&6; }
12875 break
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12880 done
12883 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12884 for ncn_progname in windres; do
12885 if test -n "$ncn_target_tool_prefix"; then
12886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12887 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889 $as_echo_n "checking for $ac_word... " >&6; }
12890 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 if test -n "$WINDRES_FOR_TARGET"; then
12894 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12895 else
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 break 2
12907 done
12908 done
12909 IFS=$as_save_IFS
12913 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12914 if test -n "$WINDRES_FOR_TARGET"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12916 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919 $as_echo "no" >&6; }
12924 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12926 set dummy ${ncn_progname}; ac_word=$2
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928 $as_echo_n "checking for $ac_word... " >&6; }
12929 if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12932 if test -n "$WINDRES_FOR_TARGET"; then
12933 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12934 else
12935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 break 2
12946 done
12947 done
12948 IFS=$as_save_IFS
12952 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12953 if test -n "$WINDRES_FOR_TARGET"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12955 $as_echo "$WINDRES_FOR_TARGET" >&6; }
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12963 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12964 done
12967 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12968 set dummy windres
12969 if test $build = $target ; then
12970 WINDRES_FOR_TARGET="$2"
12971 else
12972 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12974 else
12975 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12978 else
12979 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12985 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12986 if test -n "$with_build_time_tools"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12988 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12989 if test -x $with_build_time_tools/windmc; then
12990 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12991 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12993 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12998 elif test $build != $host && test $have_gcc_for_target = yes; then
12999 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13000 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13001 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13004 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13005 # Extract the first word of "windmc", so it can be a program name with args.
13006 set dummy windmc; ac_word=$2
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008 $as_echo_n "checking for $ac_word... " >&6; }
13009 if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012 case $WINDMC_FOR_TARGET in
13013 [\\/]* | ?:[\\/]*)
13014 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $gcc_cv_tool_dirs
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13024 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 break 2
13028 done
13029 done
13030 IFS=$as_save_IFS
13033 esac
13035 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13036 if test -n "$WINDMC_FOR_TARGET"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13038 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13039 else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041 $as_echo "no" >&6; }
13046 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13049 if test -n "$WINDMC_FOR_TARGET"; then
13050 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13051 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13052 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13055 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13056 for ncn_progname in windmc; do
13057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13058 set dummy ${ncn_progname}; ac_word=$2
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060 $as_echo_n "checking for $ac_word... " >&6; }
13061 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
13063 else
13064 if test -n "$WINDMC_FOR_TARGET"; then
13065 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13066 else
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13074 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076 break 2
13078 done
13079 done
13080 IFS=$as_save_IFS
13084 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13085 if test -n "$WINDMC_FOR_TARGET"; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13087 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13088 else
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13094 done
13097 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13098 for ncn_progname in windmc; do
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13100 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13101 if test -x $with_build_time_tools/${ncn_progname}; then
13102 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; }
13105 break
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13110 done
13113 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13114 for ncn_progname in windmc; do
13115 if test -n "$ncn_target_tool_prefix"; then
13116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13117 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119 $as_echo_n "checking for $ac_word... " >&6; }
13120 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
13122 else
13123 if test -n "$WINDMC_FOR_TARGET"; then
13124 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13125 else
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13137 done
13138 done
13139 IFS=$as_save_IFS
13143 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13144 if test -n "$WINDMC_FOR_TARGET"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13146 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13154 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13156 set dummy ${ncn_progname}; ac_word=$2
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158 $as_echo_n "checking for $ac_word... " >&6; }
13159 if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 if test -n "$WINDMC_FOR_TARGET"; then
13163 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13164 else
13165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166 for as_dir in $PATH
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13176 done
13177 done
13178 IFS=$as_save_IFS
13182 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13183 if test -n "$WINDMC_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13185 $as_echo "$WINDMC_FOR_TARGET" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13193 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13194 done
13197 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13198 set dummy windmc
13199 if test $build = $target ; then
13200 WINDMC_FOR_TARGET="$2"
13201 else
13202 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13204 else
13205 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13208 else
13209 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13213 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13216 $as_echo_n "checking where to find the target ar... " >&6; }
13217 if test "x${build}" != "x${host}" ; then
13218 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13219 # We already found the complete path
13220 ac_dir=`dirname $AR_FOR_TARGET`
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13222 $as_echo "pre-installed in $ac_dir" >&6; }
13223 else
13224 # Canadian cross, just use what we found
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13226 $as_echo "pre-installed" >&6; }
13228 else
13229 ok=yes
13230 case " ${configdirs} " in
13231 *" binutils "*) ;;
13232 *) ok=no ;;
13233 esac
13235 if test $ok = yes; then
13236 # An in-tree tool is available and we can use it
13237 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13239 $as_echo "just compiled" >&6; }
13240 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13241 # We already found the complete path
13242 ac_dir=`dirname $AR_FOR_TARGET`
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13244 $as_echo "pre-installed in $ac_dir" >&6; }
13245 elif test "x$target" = "x$host"; then
13246 # We can use an host tool
13247 AR_FOR_TARGET='$(AR)'
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13249 $as_echo "host tool" >&6; }
13250 else
13251 # We need a cross tool
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13253 $as_echo "pre-installed" >&6; }
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13258 $as_echo_n "checking where to find the target as... " >&6; }
13259 if test "x${build}" != "x${host}" ; then
13260 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13261 # We already found the complete path
13262 ac_dir=`dirname $AS_FOR_TARGET`
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13264 $as_echo "pre-installed in $ac_dir" >&6; }
13265 else
13266 # Canadian cross, just use what we found
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13268 $as_echo "pre-installed" >&6; }
13270 else
13271 ok=yes
13272 case " ${configdirs} " in
13273 *" gas "*) ;;
13274 *) ok=no ;;
13275 esac
13277 if test $ok = yes; then
13278 # An in-tree tool is available and we can use it
13279 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13281 $as_echo "just compiled" >&6; }
13282 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13283 # We already found the complete path
13284 ac_dir=`dirname $AS_FOR_TARGET`
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13286 $as_echo "pre-installed in $ac_dir" >&6; }
13287 elif test "x$target" = "x$host"; then
13288 # We can use an host tool
13289 AS_FOR_TARGET='$(AS)'
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13291 $as_echo "host tool" >&6; }
13292 else
13293 # We need a cross tool
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13295 $as_echo "pre-installed" >&6; }
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13300 $as_echo_n "checking where to find the target cc... " >&6; }
13301 if test "x${build}" != "x${host}" ; then
13302 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13303 # We already found the complete path
13304 ac_dir=`dirname $CC_FOR_TARGET`
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13306 $as_echo "pre-installed in $ac_dir" >&6; }
13307 else
13308 # Canadian cross, just use what we found
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13310 $as_echo "pre-installed" >&6; }
13312 else
13313 ok=yes
13314 case " ${configdirs} " in
13315 *" gcc "*) ;;
13316 *) ok=no ;;
13317 esac
13319 if test $ok = yes; then
13320 # An in-tree tool is available and we can use it
13321 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13323 $as_echo "just compiled" >&6; }
13324 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13325 # We already found the complete path
13326 ac_dir=`dirname $CC_FOR_TARGET`
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13328 $as_echo "pre-installed in $ac_dir" >&6; }
13329 elif test "x$target" = "x$host"; then
13330 # We can use an host tool
13331 CC_FOR_TARGET='$(CC)'
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13333 $as_echo "host tool" >&6; }
13334 else
13335 # We need a cross tool
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13337 $as_echo "pre-installed" >&6; }
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13342 $as_echo_n "checking where to find the target c++... " >&6; }
13343 if test "x${build}" != "x${host}" ; then
13344 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13345 # We already found the complete path
13346 ac_dir=`dirname $CXX_FOR_TARGET`
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13348 $as_echo "pre-installed in $ac_dir" >&6; }
13349 else
13350 # Canadian cross, just use what we found
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13352 $as_echo "pre-installed" >&6; }
13354 else
13355 ok=yes
13356 case " ${configdirs} " in
13357 *" gcc "*) ;;
13358 *) ok=no ;;
13359 esac
13360 case ,${enable_languages}, in
13361 *,c++,*) ;;
13362 *) ok=no ;;
13363 esac
13364 if test $ok = yes; then
13365 # An in-tree tool is available and we can use it
13366 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'
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13368 $as_echo "just compiled" >&6; }
13369 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13370 # We already found the complete path
13371 ac_dir=`dirname $CXX_FOR_TARGET`
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13373 $as_echo "pre-installed in $ac_dir" >&6; }
13374 elif test "x$target" = "x$host"; then
13375 # We can use an host tool
13376 CXX_FOR_TARGET='$(CXX)'
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13378 $as_echo "host tool" >&6; }
13379 else
13380 # We need a cross tool
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13382 $as_echo "pre-installed" >&6; }
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13387 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13388 if test "x${build}" != "x${host}" ; then
13389 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13390 # We already found the complete path
13391 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13393 $as_echo "pre-installed in $ac_dir" >&6; }
13394 else
13395 # Canadian cross, just use what we found
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13397 $as_echo "pre-installed" >&6; }
13399 else
13400 ok=yes
13401 case " ${configdirs} " in
13402 *" gcc "*) ;;
13403 *) ok=no ;;
13404 esac
13405 case ,${enable_languages}, in
13406 *,c++,*) ;;
13407 *) ok=no ;;
13408 esac
13409 if test $ok = yes; then
13410 # An in-tree tool is available and we can use it
13411 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'
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13413 $as_echo "just compiled" >&6; }
13414 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13415 # We already found the complete path
13416 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13418 $as_echo "pre-installed in $ac_dir" >&6; }
13419 elif test "x$target" = "x$host"; then
13420 # We can use an host tool
13421 RAW_CXX_FOR_TARGET='$(CXX)'
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13423 $as_echo "host tool" >&6; }
13424 else
13425 # We need a cross tool
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13427 $as_echo "pre-installed" >&6; }
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13432 $as_echo_n "checking where to find the target dlltool... " >&6; }
13433 if test "x${build}" != "x${host}" ; then
13434 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13435 # We already found the complete path
13436 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13438 $as_echo "pre-installed in $ac_dir" >&6; }
13439 else
13440 # Canadian cross, just use what we found
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13442 $as_echo "pre-installed" >&6; }
13444 else
13445 ok=yes
13446 case " ${configdirs} " in
13447 *" binutils "*) ;;
13448 *) ok=no ;;
13449 esac
13451 if test $ok = yes; then
13452 # An in-tree tool is available and we can use it
13453 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13455 $as_echo "just compiled" >&6; }
13456 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13457 # We already found the complete path
13458 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13460 $as_echo "pre-installed in $ac_dir" >&6; }
13461 elif test "x$target" = "x$host"; then
13462 # We can use an host tool
13463 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13465 $as_echo "host tool" >&6; }
13466 else
13467 # We need a cross tool
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13469 $as_echo "pre-installed" >&6; }
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13474 $as_echo_n "checking where to find the target gcc... " >&6; }
13475 if test "x${build}" != "x${host}" ; then
13476 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13477 # We already found the complete path
13478 ac_dir=`dirname $GCC_FOR_TARGET`
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13480 $as_echo "pre-installed in $ac_dir" >&6; }
13481 else
13482 # Canadian cross, just use what we found
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13484 $as_echo "pre-installed" >&6; }
13486 else
13487 ok=yes
13488 case " ${configdirs} " in
13489 *" gcc "*) ;;
13490 *) ok=no ;;
13491 esac
13493 if test $ok = yes; then
13494 # An in-tree tool is available and we can use it
13495 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13497 $as_echo "just compiled" >&6; }
13498 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
13500 ac_dir=`dirname $GCC_FOR_TARGET`
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502 $as_echo "pre-installed in $ac_dir" >&6; }
13503 elif test "x$target" = "x$host"; then
13504 # We can use an host tool
13505 GCC_FOR_TARGET='$()'
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13507 $as_echo "host tool" >&6; }
13508 else
13509 # We need a cross tool
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13511 $as_echo "pre-installed" >&6; }
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13516 $as_echo_n "checking where to find the target gcj... " >&6; }
13517 if test "x${build}" != "x${host}" ; then
13518 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13519 # We already found the complete path
13520 ac_dir=`dirname $GCJ_FOR_TARGET`
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13522 $as_echo "pre-installed in $ac_dir" >&6; }
13523 else
13524 # Canadian cross, just use what we found
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13526 $as_echo "pre-installed" >&6; }
13528 else
13529 ok=yes
13530 case " ${configdirs} " in
13531 *" gcc "*) ;;
13532 *) ok=no ;;
13533 esac
13534 case ,${enable_languages}, in
13535 *,java,*) ;;
13536 *) ok=no ;;
13537 esac
13538 if test $ok = yes; then
13539 # An in-tree tool is available and we can use it
13540 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13542 $as_echo "just compiled" >&6; }
13543 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13544 # We already found the complete path
13545 ac_dir=`dirname $GCJ_FOR_TARGET`
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13547 $as_echo "pre-installed in $ac_dir" >&6; }
13548 elif test "x$target" = "x$host"; then
13549 # We can use an host tool
13550 GCJ_FOR_TARGET='$(GCJ)'
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13552 $as_echo "host tool" >&6; }
13553 else
13554 # We need a cross tool
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13556 $as_echo "pre-installed" >&6; }
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13561 $as_echo_n "checking where to find the target gfortran... " >&6; }
13562 if test "x${build}" != "x${host}" ; then
13563 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
13565 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13567 $as_echo "pre-installed in $ac_dir" >&6; }
13568 else
13569 # Canadian cross, just use what we found
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571 $as_echo "pre-installed" >&6; }
13573 else
13574 ok=yes
13575 case " ${configdirs} " in
13576 *" gcc "*) ;;
13577 *) ok=no ;;
13578 esac
13579 case ,${enable_languages}, in
13580 *,fortran,*) ;;
13581 *) ok=no ;;
13582 esac
13583 if test $ok = yes; then
13584 # An in-tree tool is available and we can use it
13585 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13587 $as_echo "just compiled" >&6; }
13588 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13589 # We already found the complete path
13590 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13592 $as_echo "pre-installed in $ac_dir" >&6; }
13593 elif test "x$target" = "x$host"; then
13594 # We can use an host tool
13595 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13597 $as_echo "host tool" >&6; }
13598 else
13599 # We need a cross tool
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601 $as_echo "pre-installed" >&6; }
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13606 $as_echo_n "checking where to find the target gccgo... " >&6; }
13607 if test "x${build}" != "x${host}" ; then
13608 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13609 # We already found the complete path
13610 ac_dir=`dirname $GOC_FOR_TARGET`
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13612 $as_echo "pre-installed in $ac_dir" >&6; }
13613 else
13614 # Canadian cross, just use what we found
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13616 $as_echo "pre-installed" >&6; }
13618 else
13619 ok=yes
13620 case " ${configdirs} " in
13621 *" gcc "*) ;;
13622 *) ok=no ;;
13623 esac
13624 case ,${enable_languages}, in
13625 *,go,*) ;;
13626 *) ok=no ;;
13627 esac
13628 if test $ok = yes; then
13629 # An in-tree tool is available and we can use it
13630 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13632 $as_echo "just compiled" >&6; }
13633 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13634 # We already found the complete path
13635 ac_dir=`dirname $GOC_FOR_TARGET`
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13637 $as_echo "pre-installed in $ac_dir" >&6; }
13638 elif test "x$target" = "x$host"; then
13639 # We can use an host tool
13640 GOC_FOR_TARGET='$(GOC)'
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13642 $as_echo "host tool" >&6; }
13643 else
13644 # We need a cross tool
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13646 $as_echo "pre-installed" >&6; }
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13651 $as_echo_n "checking where to find the target ld... " >&6; }
13652 if test "x${build}" != "x${host}" ; then
13653 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13654 # We already found the complete path
13655 ac_dir=`dirname $LD_FOR_TARGET`
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13657 $as_echo "pre-installed in $ac_dir" >&6; }
13658 else
13659 # Canadian cross, just use what we found
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13661 $as_echo "pre-installed" >&6; }
13663 else
13664 ok=yes
13665 case " ${configdirs} " in
13666 *" ld "*) ;;
13667 *) ok=no ;;
13668 esac
13670 if test $ok = yes; then
13671 # An in-tree tool is available and we can use it
13672 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13674 $as_echo "just compiled" >&6; }
13675 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13676 # We already found the complete path
13677 ac_dir=`dirname $LD_FOR_TARGET`
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13679 $as_echo "pre-installed in $ac_dir" >&6; }
13680 elif test "x$target" = "x$host"; then
13681 # We can use an host tool
13682 LD_FOR_TARGET='$(LD)'
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13684 $as_echo "host tool" >&6; }
13685 else
13686 # We need a cross tool
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13688 $as_echo "pre-installed" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13693 $as_echo_n "checking where to find the target lipo... " >&6; }
13694 if test "x${build}" != "x${host}" ; then
13695 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13696 # We already found the complete path
13697 ac_dir=`dirname $LIPO_FOR_TARGET`
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13699 $as_echo "pre-installed in $ac_dir" >&6; }
13700 else
13701 # Canadian cross, just use what we found
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13703 $as_echo "pre-installed" >&6; }
13705 else
13706 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
13708 ac_dir=`dirname $LIPO_FOR_TARGET`
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710 $as_echo "pre-installed in $ac_dir" >&6; }
13711 elif test "x$target" = "x$host"; then
13712 # We can use an host tool
13713 LIPO_FOR_TARGET='$(LIPO)'
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13715 $as_echo "host tool" >&6; }
13716 else
13717 # We need a cross tool
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13719 $as_echo "pre-installed" >&6; }
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13724 $as_echo_n "checking where to find the target nm... " >&6; }
13725 if test "x${build}" != "x${host}" ; then
13726 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
13728 ac_dir=`dirname $NM_FOR_TARGET`
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730 $as_echo "pre-installed in $ac_dir" >&6; }
13731 else
13732 # Canadian cross, just use what we found
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734 $as_echo "pre-installed" >&6; }
13736 else
13737 ok=yes
13738 case " ${configdirs} " in
13739 *" binutils "*) ;;
13740 *) ok=no ;;
13741 esac
13743 if test $ok = yes; then
13744 # An in-tree tool is available and we can use it
13745 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13747 $as_echo "just compiled" >&6; }
13748 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13749 # We already found the complete path
13750 ac_dir=`dirname $NM_FOR_TARGET`
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13752 $as_echo "pre-installed in $ac_dir" >&6; }
13753 elif test "x$target" = "x$host"; then
13754 # We can use an host tool
13755 NM_FOR_TARGET='$(NM)'
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13757 $as_echo "host tool" >&6; }
13758 else
13759 # We need a cross tool
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13761 $as_echo "pre-installed" >&6; }
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13766 $as_echo_n "checking where to find the target objdump... " >&6; }
13767 if test "x${build}" != "x${host}" ; then
13768 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
13770 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772 $as_echo "pre-installed in $ac_dir" >&6; }
13773 else
13774 # Canadian cross, just use what we found
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13776 $as_echo "pre-installed" >&6; }
13778 else
13779 ok=yes
13780 case " ${configdirs} " in
13781 *" binutils "*) ;;
13782 *) ok=no ;;
13783 esac
13785 if test $ok = yes; then
13786 # An in-tree tool is available and we can use it
13787 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13789 $as_echo "just compiled" >&6; }
13790 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
13792 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794 $as_echo "pre-installed in $ac_dir" >&6; }
13795 elif test "x$target" = "x$host"; then
13796 # We can use an host tool
13797 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13799 $as_echo "host tool" >&6; }
13800 else
13801 # We need a cross tool
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13803 $as_echo "pre-installed" >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13808 $as_echo_n "checking where to find the target ranlib... " >&6; }
13809 if test "x${build}" != "x${host}" ; then
13810 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
13812 ac_dir=`dirname $RANLIB_FOR_TARGET`
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814 $as_echo "pre-installed in $ac_dir" >&6; }
13815 else
13816 # Canadian cross, just use what we found
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13818 $as_echo "pre-installed" >&6; }
13820 else
13821 ok=yes
13822 case " ${configdirs} " in
13823 *" binutils "*) ;;
13824 *) ok=no ;;
13825 esac
13827 if test $ok = yes; then
13828 # An in-tree tool is available and we can use it
13829 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13831 $as_echo "just compiled" >&6; }
13832 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
13834 ac_dir=`dirname $RANLIB_FOR_TARGET`
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836 $as_echo "pre-installed in $ac_dir" >&6; }
13837 elif test "x$target" = "x$host"; then
13838 # We can use an host tool
13839 RANLIB_FOR_TARGET='$(RANLIB)'
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13841 $as_echo "host tool" >&6; }
13842 else
13843 # We need a cross tool
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845 $as_echo "pre-installed" >&6; }
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13850 $as_echo_n "checking where to find the target strip... " >&6; }
13851 if test "x${build}" != "x${host}" ; then
13852 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
13854 ac_dir=`dirname $STRIP_FOR_TARGET`
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856 $as_echo "pre-installed in $ac_dir" >&6; }
13857 else
13858 # Canadian cross, just use what we found
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860 $as_echo "pre-installed" >&6; }
13862 else
13863 ok=yes
13864 case " ${configdirs} " in
13865 *" binutils "*) ;;
13866 *) ok=no ;;
13867 esac
13869 if test $ok = yes; then
13870 # An in-tree tool is available and we can use it
13871 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13873 $as_echo "just compiled" >&6; }
13874 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
13876 ac_dir=`dirname $STRIP_FOR_TARGET`
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878 $as_echo "pre-installed in $ac_dir" >&6; }
13879 elif test "x$target" = "x$host"; then
13880 # We can use an host tool
13881 STRIP_FOR_TARGET='$(STRIP)'
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13883 $as_echo "host tool" >&6; }
13884 else
13885 # We need a cross tool
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13887 $as_echo "pre-installed" >&6; }
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13892 $as_echo_n "checking where to find the target windres... " >&6; }
13893 if test "x${build}" != "x${host}" ; then
13894 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13895 # We already found the complete path
13896 ac_dir=`dirname $WINDRES_FOR_TARGET`
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13898 $as_echo "pre-installed in $ac_dir" >&6; }
13899 else
13900 # Canadian cross, just use what we found
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13902 $as_echo "pre-installed" >&6; }
13904 else
13905 ok=yes
13906 case " ${configdirs} " in
13907 *" binutils "*) ;;
13908 *) ok=no ;;
13909 esac
13911 if test $ok = yes; then
13912 # An in-tree tool is available and we can use it
13913 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13915 $as_echo "just compiled" >&6; }
13916 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
13918 ac_dir=`dirname $WINDRES_FOR_TARGET`
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920 $as_echo "pre-installed in $ac_dir" >&6; }
13921 elif test "x$target" = "x$host"; then
13922 # We can use an host tool
13923 WINDRES_FOR_TARGET='$(WINDRES)'
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13925 $as_echo "host tool" >&6; }
13926 else
13927 # We need a cross tool
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929 $as_echo "pre-installed" >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13934 $as_echo_n "checking where to find the target windmc... " >&6; }
13935 if test "x${build}" != "x${host}" ; then
13936 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $WINDMC_FOR_TARGET`
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940 $as_echo "pre-installed in $ac_dir" >&6; }
13941 else
13942 # Canadian cross, just use what we found
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13944 $as_echo "pre-installed" >&6; }
13946 else
13947 ok=yes
13948 case " ${configdirs} " in
13949 *" binutils "*) ;;
13950 *) ok=no ;;
13951 esac
13953 if test $ok = yes; then
13954 # An in-tree tool is available and we can use it
13955 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13957 $as_echo "just compiled" >&6; }
13958 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
13960 ac_dir=`dirname $WINDMC_FOR_TARGET`
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962 $as_echo "pre-installed in $ac_dir" >&6; }
13963 elif test "x$target" = "x$host"; then
13964 # We can use an host tool
13965 WINDMC_FOR_TARGET='$(WINDMC)'
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13967 $as_echo "host tool" >&6; }
13968 else
13969 # We need a cross tool
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971 $as_echo "pre-installed" >&6; }
13979 # Certain tools may need extra flags.
13980 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13981 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13982 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13984 # When building target libraries, except in a Canadian cross, we use
13985 # the same toolchain as the compiler we just built.
13986 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13987 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13988 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13989 if test $host = $build; then
13990 case " $configdirs " in
13991 *" gcc "*)
13992 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13993 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13994 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13996 esac
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14004 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14005 # Check whether --enable-maintainer-mode was given.
14006 if test "${enable_maintainer_mode+set}" = set; then :
14007 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14008 else
14009 USE_MAINTAINER_MODE=no
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14013 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14016 if test "$USE_MAINTAINER_MODE" = yes; then
14017 MAINTAINER_MODE_TRUE=
14018 MAINTAINER_MODE_FALSE='#'
14019 else
14020 MAINTAINER_MODE_TRUE='#'
14021 MAINTAINER_MODE_FALSE=
14023 MAINT=$MAINTAINER_MODE_TRUE
14025 # ---------------------
14026 # GCC bootstrap support
14027 # ---------------------
14029 # Stage specific cflags for build.
14030 stage1_cflags="-g"
14031 case $build in
14032 vax-*-*)
14033 case ${GCC} in
14034 yes) stage1_cflags="-g -Wa,-J" ;;
14035 *) stage1_cflags="-g -J" ;;
14036 esac ;;
14037 esac
14039 # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14040 if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14041 saved_CFLAGS="$CFLAGS"
14043 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14044 CFLAGS="$CFLAGS -fkeep-inline-functions"
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14046 $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14050 #if (__GNUC__ < 3) \
14051 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14052 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14053 #error http://gcc.gnu.org/PR29382
14054 #endif
14057 main ()
14061 return 0;
14063 _ACEOF
14064 if ac_fn_c_try_compile "$LINENO"; then :
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14066 $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14067 else
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14073 CFLAGS="$saved_CFLAGS"
14078 # Enable --enable-checking in stage1 of the compiler.
14079 # Check whether --enable-stage1-checking was given.
14080 if test "${enable_stage1_checking+set}" = set; then :
14081 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14082 else
14083 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14084 stage1_checking=--enable-checking=yes,types
14085 else
14086 stage1_checking=--enable-checking=$enable_checking,types
14092 # Enable -Werror in bootstrap stage2 and later.
14093 # Check whether --enable-werror was given.
14094 if test "${enable_werror+set}" = set; then :
14095 enableval=$enable_werror;
14096 else
14097 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14098 enable_werror=yes
14099 else
14100 enable_werror=no
14104 case ${enable_werror} in
14105 yes) stage2_werror_flag="--enable-werror-always" ;;
14106 *) stage2_werror_flag="" ;;
14107 esac
14110 # Specify what files to not compare during bootstrap.
14112 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14113 case "$target" in
14114 hppa*64*-*-hpux*) ;;
14115 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14116 esac
14117 case " $configdirs " in
14118 *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14119 esac
14122 ac_config_files="$ac_config_files Makefile"
14124 cat >confcache <<\_ACEOF
14125 # This file is a shell script that caches the results of configure
14126 # tests run on this system so they can be shared between configure
14127 # scripts and configure runs, see configure's option --config-cache.
14128 # It is not useful on other systems. If it contains results you don't
14129 # want to keep, you may remove or edit it.
14131 # config.status only pays attention to the cache file if you give it
14132 # the --recheck option to rerun configure.
14134 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14135 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14136 # following values.
14138 _ACEOF
14140 # The following way of writing the cache mishandles newlines in values,
14141 # but we know of no workaround that is simple, portable, and efficient.
14142 # So, we kill variables containing newlines.
14143 # Ultrix sh set writes to stderr and can't be redirected directly,
14144 # and sets the high bit in the cache file unless we assign to the vars.
14146 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14147 eval ac_val=\$$ac_var
14148 case $ac_val in #(
14149 *${as_nl}*)
14150 case $ac_var in #(
14151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14152 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14153 esac
14154 case $ac_var in #(
14155 _ | IFS | as_nl) ;; #(
14156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14157 *) { eval $ac_var=; unset $ac_var;} ;;
14158 esac ;;
14159 esac
14160 done
14162 (set) 2>&1 |
14163 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14164 *${as_nl}ac_space=\ *)
14165 # `set' does not quote correctly, so add quotes: double-quote
14166 # substitution turns \\\\ into \\, and sed turns \\ into \.
14167 sed -n \
14168 "s/'/'\\\\''/g;
14169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14170 ;; #(
14172 # `set' quotes correctly as required by POSIX, so do not add quotes.
14173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14175 esac |
14176 sort
14178 sed '
14179 /^ac_cv_env_/b end
14180 t clear
14181 :clear
14182 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14183 t end
14184 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14185 :end' >>confcache
14186 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14187 if test -w "$cache_file"; then
14188 test "x$cache_file" != "x/dev/null" &&
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14190 $as_echo "$as_me: updating cache $cache_file" >&6;}
14191 cat confcache >$cache_file
14192 else
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14194 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14197 rm -f confcache
14199 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14200 # Let make expand exec_prefix.
14201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14203 # Transform confdefs.h into DEFS.
14204 # Protect against shell expansion while executing Makefile rules.
14205 # Protect against Makefile macro expansion.
14207 # If the first sed substitution is executed (which looks for macros that
14208 # take arguments), then branch to the quote section. Otherwise,
14209 # look for a macro that doesn't take arguments.
14210 ac_script='
14211 :mline
14212 /\\$/{
14214 s,\\\n,,
14215 b mline
14217 t clear
14218 :clear
14219 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14220 t quote
14221 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14222 t quote
14223 b any
14224 :quote
14225 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14226 s/\[/\\&/g
14227 s/\]/\\&/g
14228 s/\$/$$/g
14230 :any
14233 s/^\n//
14234 s/\n/ /g
14238 DEFS=`sed -n "$ac_script" confdefs.h`
14241 ac_libobjs=
14242 ac_ltlibobjs=
14243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14244 # 1. Remove the extension, and $U if already installed.
14245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14248 # will be set to the directory where LIBOBJS objects are built.
14249 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14250 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14251 done
14252 LIBOBJS=$ac_libobjs
14254 LTLIBOBJS=$ac_ltlibobjs
14258 : ${CONFIG_STATUS=./config.status}
14259 ac_write_fail=0
14260 ac_clean_files_save=$ac_clean_files
14261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14264 as_write_fail=0
14265 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14266 #! $SHELL
14267 # Generated by $as_me.
14268 # Run this file to recreate the current configuration.
14269 # Compiler output produced by configure, useful for debugging
14270 # configure, is in config.log if it exists.
14272 debug=false
14273 ac_cs_recheck=false
14274 ac_cs_silent=false
14276 SHELL=\${CONFIG_SHELL-$SHELL}
14277 export SHELL
14278 _ASEOF
14279 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14280 ## -------------------- ##
14281 ## M4sh Initialization. ##
14282 ## -------------------- ##
14284 # Be more Bourne compatible
14285 DUALCASE=1; export DUALCASE # for MKS sh
14286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14287 emulate sh
14288 NULLCMD=:
14289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14290 # is contrary to our usage. Disable this feature.
14291 alias -g '${1+"$@"}'='"$@"'
14292 setopt NO_GLOB_SUBST
14293 else
14294 case `(set -o) 2>/dev/null` in #(
14295 *posix*) :
14296 set -o posix ;; #(
14297 *) :
14299 esac
14303 as_nl='
14305 export as_nl
14306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14307 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14310 # Prefer a ksh shell builtin over an external printf program on Solaris,
14311 # but without wasting forks for bash or zsh.
14312 if test -z "$BASH_VERSION$ZSH_VERSION" \
14313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14314 as_echo='print -r --'
14315 as_echo_n='print -rn --'
14316 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14317 as_echo='printf %s\n'
14318 as_echo_n='printf %s'
14319 else
14320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14322 as_echo_n='/usr/ucb/echo -n'
14323 else
14324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14325 as_echo_n_body='eval
14326 arg=$1;
14327 case $arg in #(
14328 *"$as_nl"*)
14329 expr "X$arg" : "X\\(.*\\)$as_nl";
14330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14331 esac;
14332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14334 export as_echo_n_body
14335 as_echo_n='sh -c $as_echo_n_body as_echo'
14337 export as_echo_body
14338 as_echo='sh -c $as_echo_body as_echo'
14341 # The user is always right.
14342 if test "${PATH_SEPARATOR+set}" != set; then
14343 PATH_SEPARATOR=:
14344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14346 PATH_SEPARATOR=';'
14351 # IFS
14352 # We need space, tab and new line, in precisely that order. Quoting is
14353 # there to prevent editors from complaining about space-tab.
14354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14355 # splitting by setting IFS to empty value.)
14356 IFS=" "" $as_nl"
14358 # Find who we are. Look in the path if we contain no directory separator.
14359 case $0 in #((
14360 *[\\/]* ) as_myself=$0 ;;
14361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $PATH
14364 IFS=$as_save_IFS
14365 test -z "$as_dir" && as_dir=.
14366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14367 done
14368 IFS=$as_save_IFS
14371 esac
14372 # We did not find ourselves, most probably we were run as `sh COMMAND'
14373 # in which case we are not to be found in the path.
14374 if test "x$as_myself" = x; then
14375 as_myself=$0
14377 if test ! -f "$as_myself"; then
14378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14379 exit 1
14382 # Unset variables that we do not need and which cause bugs (e.g. in
14383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14384 # suppresses any "Segmentation fault" message there. '((' could
14385 # trigger a bug in pdksh 5.2.14.
14386 for as_var in BASH_ENV ENV MAIL MAILPATH
14387 do eval test x\${$as_var+set} = xset \
14388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14389 done
14390 PS1='$ '
14391 PS2='> '
14392 PS4='+ '
14394 # NLS nuisances.
14395 LC_ALL=C
14396 export LC_ALL
14397 LANGUAGE=C
14398 export LANGUAGE
14400 # CDPATH.
14401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14404 # as_fn_error ERROR [LINENO LOG_FD]
14405 # ---------------------------------
14406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14408 # script with status $?, using 1 if that was 0.
14409 as_fn_error ()
14411 as_status=$?; test $as_status -eq 0 && as_status=1
14412 if test "$3"; then
14413 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14416 $as_echo "$as_me: error: $1" >&2
14417 as_fn_exit $as_status
14418 } # as_fn_error
14421 # as_fn_set_status STATUS
14422 # -----------------------
14423 # Set $? to STATUS, without forking.
14424 as_fn_set_status ()
14426 return $1
14427 } # as_fn_set_status
14429 # as_fn_exit STATUS
14430 # -----------------
14431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14432 as_fn_exit ()
14434 set +e
14435 as_fn_set_status $1
14436 exit $1
14437 } # as_fn_exit
14439 # as_fn_unset VAR
14440 # ---------------
14441 # Portably unset VAR.
14442 as_fn_unset ()
14444 { eval $1=; unset $1;}
14446 as_unset=as_fn_unset
14447 # as_fn_append VAR VALUE
14448 # ----------------------
14449 # Append the text in VALUE to the end of the definition contained in VAR. Take
14450 # advantage of any shell optimizations that allow amortized linear growth over
14451 # repeated appends, instead of the typical quadratic growth present in naive
14452 # implementations.
14453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14454 eval 'as_fn_append ()
14456 eval $1+=\$2
14458 else
14459 as_fn_append ()
14461 eval $1=\$$1\$2
14463 fi # as_fn_append
14465 # as_fn_arith ARG...
14466 # ------------------
14467 # Perform arithmetic evaluation on the ARGs, and store the result in the
14468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14469 # must be portable across $(()) and expr.
14470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14471 eval 'as_fn_arith ()
14473 as_val=$(( $* ))
14475 else
14476 as_fn_arith ()
14478 as_val=`expr "$@" || test $? -eq 1`
14480 fi # as_fn_arith
14483 if expr a : '\(a\)' >/dev/null 2>&1 &&
14484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14485 as_expr=expr
14486 else
14487 as_expr=false
14490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14491 as_basename=basename
14492 else
14493 as_basename=false
14496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14497 as_dirname=dirname
14498 else
14499 as_dirname=false
14502 as_me=`$as_basename -- "$0" ||
14503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14504 X"$0" : 'X\(//\)$' \| \
14505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14506 $as_echo X/"$0" |
14507 sed '/^.*\/\([^/][^/]*\)\/*$/{
14508 s//\1/
14511 /^X\/\(\/\/\)$/{
14512 s//\1/
14515 /^X\/\(\/\).*/{
14516 s//\1/
14519 s/.*/./; q'`
14521 # Avoid depending upon Character Ranges.
14522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14525 as_cr_digits='0123456789'
14526 as_cr_alnum=$as_cr_Letters$as_cr_digits
14528 ECHO_C= ECHO_N= ECHO_T=
14529 case `echo -n x` in #(((((
14530 -n*)
14531 case `echo 'xy\c'` in
14532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14533 xy) ECHO_C='\c';;
14534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14535 ECHO_T=' ';;
14536 esac;;
14538 ECHO_N='-n';;
14539 esac
14541 rm -f conf$$ conf$$.exe conf$$.file
14542 if test -d conf$$.dir; then
14543 rm -f conf$$.dir/conf$$.file
14544 else
14545 rm -f conf$$.dir
14546 mkdir conf$$.dir 2>/dev/null
14548 if (echo >conf$$.file) 2>/dev/null; then
14549 if ln -s conf$$.file conf$$ 2>/dev/null; then
14550 as_ln_s='ln -s'
14551 # ... but there are two gotchas:
14552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14554 # In both cases, we have to default to `cp -p'.
14555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14556 as_ln_s='cp -p'
14557 elif ln conf$$.file conf$$ 2>/dev/null; then
14558 as_ln_s=ln
14559 else
14560 as_ln_s='cp -p'
14562 else
14563 as_ln_s='cp -p'
14565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14566 rmdir conf$$.dir 2>/dev/null
14569 # as_fn_mkdir_p
14570 # -------------
14571 # Create "$as_dir" as a directory, including parents if necessary.
14572 as_fn_mkdir_p ()
14575 case $as_dir in #(
14576 -*) as_dir=./$as_dir;;
14577 esac
14578 test -d "$as_dir" || eval $as_mkdir_p || {
14579 as_dirs=
14580 while :; do
14581 case $as_dir in #(
14582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14583 *) as_qdir=$as_dir;;
14584 esac
14585 as_dirs="'$as_qdir' $as_dirs"
14586 as_dir=`$as_dirname -- "$as_dir" ||
14587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14588 X"$as_dir" : 'X\(//\)[^/]' \| \
14589 X"$as_dir" : 'X\(//\)$' \| \
14590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14591 $as_echo X"$as_dir" |
14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14593 s//\1/
14596 /^X\(\/\/\)[^/].*/{
14597 s//\1/
14600 /^X\(\/\/\)$/{
14601 s//\1/
14604 /^X\(\/\).*/{
14605 s//\1/
14608 s/.*/./; q'`
14609 test -d "$as_dir" && break
14610 done
14611 test -z "$as_dirs" || eval "mkdir $as_dirs"
14612 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14615 } # as_fn_mkdir_p
14616 if mkdir -p . 2>/dev/null; then
14617 as_mkdir_p='mkdir -p "$as_dir"'
14618 else
14619 test -d ./-p && rmdir ./-p
14620 as_mkdir_p=false
14623 if test -x / >/dev/null 2>&1; then
14624 as_test_x='test -x'
14625 else
14626 if ls -dL / >/dev/null 2>&1; then
14627 as_ls_L_option=L
14628 else
14629 as_ls_L_option=
14631 as_test_x='
14632 eval sh -c '\''
14633 if test -d "$1"; then
14634 test -d "$1/.";
14635 else
14636 case $1 in #(
14637 -*)set "./$1";;
14638 esac;
14639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14640 ???[sx]*):;;*)false;;esac;fi
14641 '\'' sh
14644 as_executable_p=$as_test_x
14646 # Sed expression to map a string onto a valid CPP name.
14647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14649 # Sed expression to map a string onto a valid variable name.
14650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14653 exec 6>&1
14654 ## ----------------------------------- ##
14655 ## Main body of $CONFIG_STATUS script. ##
14656 ## ----------------------------------- ##
14657 _ASEOF
14658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14661 # Save the log message, to keep $0 and so on meaningful, and to
14662 # report actual input values of CONFIG_FILES etc. instead of their
14663 # values after options handling.
14664 ac_log="
14665 This file was extended by $as_me, which was
14666 generated by GNU Autoconf 2.64. Invocation command line was
14668 CONFIG_FILES = $CONFIG_FILES
14669 CONFIG_HEADERS = $CONFIG_HEADERS
14670 CONFIG_LINKS = $CONFIG_LINKS
14671 CONFIG_COMMANDS = $CONFIG_COMMANDS
14672 $ $0 $@
14674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14677 _ACEOF
14679 case $ac_config_files in *"
14680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14681 esac
14685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14686 # Files that config.status was made for.
14687 config_files="$ac_config_files"
14689 _ACEOF
14691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14692 ac_cs_usage="\
14693 \`$as_me' instantiates files and other configuration actions
14694 from templates according to the current configuration. Unless the files
14695 and actions are specified as TAGs, all are instantiated by default.
14697 Usage: $0 [OPTION]... [TAG]...
14699 -h, --help print this help, then exit
14700 -V, --version print version number and configuration settings, then exit
14701 -q, --quiet, --silent
14702 do not print progress messages
14703 -d, --debug don't remove temporary files
14704 --recheck update $as_me by reconfiguring in the same conditions
14705 --file=FILE[:TEMPLATE]
14706 instantiate the configuration file FILE
14708 Configuration files:
14709 $config_files
14711 Report bugs to the package provider."
14713 _ACEOF
14714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14715 ac_cs_version="\\
14716 config.status
14717 configured by $0, generated by GNU Autoconf 2.64,
14718 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14720 Copyright (C) 2009 Free Software Foundation, Inc.
14721 This config.status script is free software; the Free Software Foundation
14722 gives unlimited permission to copy, distribute and modify it."
14724 ac_pwd='$ac_pwd'
14725 srcdir='$srcdir'
14726 INSTALL='$INSTALL'
14727 AWK='$AWK'
14728 test -n "\$AWK" || AWK=awk
14729 _ACEOF
14731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14732 # The default lists apply if the user does not specify any file.
14733 ac_need_defaults=:
14734 while test $# != 0
14736 case $1 in
14737 --*=*)
14738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14740 ac_shift=:
14743 ac_option=$1
14744 ac_optarg=$2
14745 ac_shift=shift
14747 esac
14749 case $ac_option in
14750 # Handling of the options.
14751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14752 ac_cs_recheck=: ;;
14753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14754 $as_echo "$ac_cs_version"; exit ;;
14755 --debug | --debu | --deb | --de | --d | -d )
14756 debug=: ;;
14757 --file | --fil | --fi | --f )
14758 $ac_shift
14759 case $ac_optarg in
14760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14761 esac
14762 as_fn_append CONFIG_FILES " '$ac_optarg'"
14763 ac_need_defaults=false;;
14764 --he | --h | --help | --hel | -h )
14765 $as_echo "$ac_cs_usage"; exit ;;
14766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14768 ac_cs_silent=: ;;
14770 # This is an error.
14771 -*) as_fn_error "unrecognized option: \`$1'
14772 Try \`$0 --help' for more information." ;;
14774 *) as_fn_append ac_config_targets " $1"
14775 ac_need_defaults=false ;;
14777 esac
14778 shift
14779 done
14781 ac_configure_extra_args=
14783 if $ac_cs_silent; then
14784 exec 6>/dev/null
14785 ac_configure_extra_args="$ac_configure_extra_args --silent"
14788 _ACEOF
14789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14790 if \$ac_cs_recheck; then
14791 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14792 shift
14793 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14794 CONFIG_SHELL='$SHELL'
14795 export CONFIG_SHELL
14796 exec "\$@"
14799 _ACEOF
14800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14801 exec 5>>config.log
14803 echo
14804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14805 ## Running $as_me. ##
14806 _ASBOX
14807 $as_echo "$ac_log"
14808 } >&5
14810 _ACEOF
14811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14813 # INIT-COMMANDS
14815 extrasub_build="$extrasub_build"
14816 extrasub_host="$extrasub_host"
14817 extrasub_target="$extrasub_target"
14819 _ACEOF
14821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14823 # Handling of arguments.
14824 for ac_config_target in $ac_config_targets
14826 case $ac_config_target in
14827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14829 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14830 esac
14831 done
14834 # If the user did not use the arguments to specify the items to instantiate,
14835 # then the envvar interface is used. Set only those that are not.
14836 # We use the long form for the default assignment because of an extremely
14837 # bizarre bug on SunOS 4.1.3.
14838 if $ac_need_defaults; then
14839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14842 # Have a temporary directory for convenience. Make it in the build tree
14843 # simply because there is no reason against having it here, and in addition,
14844 # creating and moving files from /tmp can sometimes cause problems.
14845 # Hook for its removal unless debugging.
14846 # Note that there is a small window in which the directory will not be cleaned:
14847 # after its creation but before its name has been assigned to `$tmp'.
14848 $debug ||
14850 tmp=
14851 trap 'exit_status=$?
14852 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14854 trap 'as_fn_exit 1' 1 2 13 15
14856 # Create a (secure) tmp directory for tmp files.
14859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14860 test -n "$tmp" && test -d "$tmp"
14861 } ||
14863 tmp=./conf$$-$RANDOM
14864 (umask 077 && mkdir "$tmp")
14865 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14867 # Set up the scripts for CONFIG_FILES section.
14868 # No need to generate them if there are no CONFIG_FILES.
14869 # This happens for instance with `./config.status config.h'.
14870 if test -n "$CONFIG_FILES"; then
14872 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14873 ac_cs_awk_getline=:
14874 ac_cs_awk_pipe_init=
14875 ac_cs_awk_read_file='
14876 while ((getline aline < (F[key])) > 0)
14877 print(aline)
14878 close(F[key])'
14879 ac_cs_awk_pipe_fini=
14880 else
14881 ac_cs_awk_getline=false
14882 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14883 ac_cs_awk_read_file='
14884 print "|#_!!_#|"
14885 print "cat " F[key] " &&"
14886 '$ac_cs_awk_pipe_init
14887 # The final `:' finishes the AND list.
14888 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14890 ac_cr=`echo X | tr X '\015'`
14891 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14892 # But we know of no other shell where ac_cr would be empty at this
14893 # point, so we can use a bashism as a fallback.
14894 if test "x$ac_cr" = x; then
14895 eval ac_cr=\$\'\\r\'
14897 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14898 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14899 ac_cs_awk_cr='\r'
14900 else
14901 ac_cs_awk_cr=$ac_cr
14904 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14905 _ACEOF
14907 # Create commands to substitute file output variables.
14909 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14910 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14911 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14912 echo "_ACAWK" &&
14913 echo "_ACEOF"
14914 } >conf$$files.sh &&
14915 . ./conf$$files.sh ||
14916 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14917 rm -f conf$$files.sh
14920 echo "cat >conf$$subs.awk <<_ACEOF" &&
14921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14922 echo "_ACEOF"
14923 } >conf$$subs.sh ||
14924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14925 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14926 ac_delim='%!_!# '
14927 for ac_last_try in false false false false false :; do
14928 . ./conf$$subs.sh ||
14929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14932 if test $ac_delim_n = $ac_delim_num; then
14933 break
14934 elif $ac_last_try; then
14935 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14936 else
14937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14939 done
14940 rm -f conf$$subs.sh
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14944 _ACEOF
14945 sed -n '
14947 s/^/S["/; s/!.*/"]=/
14950 s/^[^!]*!//
14951 :repl
14952 t repl
14953 s/'"$ac_delim"'$//
14954 t delim
14957 s/\(.\{148\}\).*/\1/
14958 t more1
14959 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14962 b repl
14963 :more1
14964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14967 s/.\{148\}//
14968 t nl
14969 :delim
14971 s/\(.\{148\}\).*/\1/
14972 t more2
14973 s/["\\]/\\&/g; s/^/"/; s/$/"/
14976 :more2
14977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14980 s/.\{148\}//
14981 t delim
14982 ' <conf$$subs.awk | sed '
14983 /^[^""]/{
14985 s/\n//
14987 ' >>$CONFIG_STATUS || ac_write_fail=1
14988 rm -f conf$$subs.awk
14989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14990 _ACAWK
14991 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14992 for (key in S) S_is_set[key] = 1
14993 FS = "\a"
14994 \$ac_cs_awk_pipe_init
14997 line = $ 0
14998 nfields = split(line, field, "@")
14999 substed = 0
15000 len = length(field[1])
15001 for (i = 2; i < nfields; i++) {
15002 key = field[i]
15003 keylen = length(key)
15004 if (S_is_set[key]) {
15005 value = S[key]
15006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15007 len += length(value) + length(field[++i])
15008 substed = 1
15009 } else
15010 len += 1 + keylen
15012 if (nfields == 3 && !substed) {
15013 key = field[2]
15014 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15015 \$ac_cs_awk_read_file
15016 next
15019 print line
15021 \$ac_cs_awk_pipe_fini
15022 _ACAWK
15023 _ACEOF
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15027 else
15029 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15030 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15031 _ACEOF
15033 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15034 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15035 # trailing colons and then remove the whole line if VPATH becomes empty
15036 # (actually we leave an empty line to preserve line numbers).
15037 if test "x$srcdir" = x.; then
15038 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15039 s/:*\$(srcdir):*/:/
15040 s/:*\${srcdir}:*/:/
15041 s/:*@srcdir@:*/:/
15042 s/^\([^=]*=[ ]*\):*/\1/
15043 s/:*$//
15044 s/^[^=]*=[ ]*$//
15048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15049 fi # test -n "$CONFIG_FILES"
15052 eval set X " :F $CONFIG_FILES "
15053 shift
15054 for ac_tag
15056 case $ac_tag in
15057 :[FHLC]) ac_mode=$ac_tag; continue;;
15058 esac
15059 case $ac_mode$ac_tag in
15060 :[FHL]*:*);;
15061 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15062 :[FH]-) ac_tag=-:-;;
15063 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15064 esac
15065 ac_save_IFS=$IFS
15066 IFS=:
15067 set x $ac_tag
15068 IFS=$ac_save_IFS
15069 shift
15070 ac_file=$1
15071 shift
15073 case $ac_mode in
15074 :L) ac_source=$1;;
15075 :[FH])
15076 ac_file_inputs=
15077 for ac_f
15079 case $ac_f in
15080 -) ac_f="$tmp/stdin";;
15081 *) # Look for the file first in the build tree, then in the source tree
15082 # (if the path is not absolute). The absolute path cannot be DOS-style,
15083 # because $ac_f cannot contain `:'.
15084 test -f "$ac_f" ||
15085 case $ac_f in
15086 [\\/$]*) false;;
15087 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15088 esac ||
15089 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15090 esac
15091 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15092 as_fn_append ac_file_inputs " '$ac_f'"
15093 done
15095 # Let's still pretend it is `configure' which instantiates (i.e., don't
15096 # use $as_me), people would be surprised to read:
15097 # /* config.h. Generated by config.status. */
15098 configure_input='Generated from '`
15099 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15100 `' by configure.'
15101 if test x"$ac_file" != x-; then
15102 configure_input="$ac_file. $configure_input"
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15104 $as_echo "$as_me: creating $ac_file" >&6;}
15106 # Neutralize special characters interpreted by sed in replacement strings.
15107 case $configure_input in #(
15108 *\&* | *\|* | *\\* )
15109 ac_sed_conf_input=`$as_echo "$configure_input" |
15110 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15111 *) ac_sed_conf_input=$configure_input;;
15112 esac
15114 case $ac_tag in
15115 *:-:* | *:-) cat >"$tmp/stdin" \
15116 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15117 esac
15119 esac
15121 ac_dir=`$as_dirname -- "$ac_file" ||
15122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15123 X"$ac_file" : 'X\(//\)[^/]' \| \
15124 X"$ac_file" : 'X\(//\)$' \| \
15125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15126 $as_echo X"$ac_file" |
15127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15128 s//\1/
15131 /^X\(\/\/\)[^/].*/{
15132 s//\1/
15135 /^X\(\/\/\)$/{
15136 s//\1/
15139 /^X\(\/\).*/{
15140 s//\1/
15143 s/.*/./; q'`
15144 as_dir="$ac_dir"; as_fn_mkdir_p
15145 ac_builddir=.
15147 case "$ac_dir" in
15148 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15150 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15151 # A ".." for each directory in $ac_dir_suffix.
15152 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15153 case $ac_top_builddir_sub in
15154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15156 esac ;;
15157 esac
15158 ac_abs_top_builddir=$ac_pwd
15159 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15160 # for backward compatibility:
15161 ac_top_builddir=$ac_top_build_prefix
15163 case $srcdir in
15164 .) # We are building in place.
15165 ac_srcdir=.
15166 ac_top_srcdir=$ac_top_builddir_sub
15167 ac_abs_top_srcdir=$ac_pwd ;;
15168 [\\/]* | ?:[\\/]* ) # Absolute name.
15169 ac_srcdir=$srcdir$ac_dir_suffix;
15170 ac_top_srcdir=$srcdir
15171 ac_abs_top_srcdir=$srcdir ;;
15172 *) # Relative name.
15173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15174 ac_top_srcdir=$ac_top_build_prefix$srcdir
15175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15176 esac
15177 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15180 case $ac_mode in
15183 # CONFIG_FILE
15186 case $INSTALL in
15187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15188 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15189 esac
15190 _ACEOF
15192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193 # If the template does not know about datarootdir, expand it.
15194 # FIXME: This hack should be removed a few years after 2.60.
15195 ac_datarootdir_hack=; ac_datarootdir_seen=
15196 ac_sed_dataroot='
15197 /datarootdir/ {
15201 /@datadir@/p
15202 /@docdir@/p
15203 /@infodir@/p
15204 /@localedir@/p
15205 /@mandir@/p'
15206 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15207 *datarootdir*) ac_datarootdir_seen=yes;;
15208 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15210 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15211 _ACEOF
15212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213 ac_datarootdir_hack='
15214 s&@datadir@&$datadir&g
15215 s&@docdir@&$docdir&g
15216 s&@infodir@&$infodir&g
15217 s&@localedir@&$localedir&g
15218 s&@mandir@&$mandir&g
15219 s&\\\${datarootdir}&$datarootdir&g' ;;
15220 esac
15221 _ACEOF
15223 # Neutralize VPATH when `$srcdir' = `.'.
15224 # Shell code in configure.ac might set extrasub.
15225 # FIXME: do we really want to maintain this feature?
15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227 ac_sed_extra="$ac_vpsub
15228 $extrasub
15229 _ACEOF
15230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15233 s|@configure_input@|$ac_sed_conf_input|;t t
15234 s&@top_builddir@&$ac_top_builddir_sub&;t t
15235 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15236 s&@srcdir@&$ac_srcdir&;t t
15237 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15238 s&@top_srcdir@&$ac_top_srcdir&;t t
15239 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15240 s&@builddir@&$ac_builddir&;t t
15241 s&@abs_builddir@&$ac_abs_builddir&;t t
15242 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15243 s&@INSTALL@&$ac_INSTALL&;t t
15244 $ac_datarootdir_hack
15246 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15247 if $ac_cs_awk_getline; then
15248 $AWK -f "$tmp/subs.awk"
15249 else
15250 $AWK -f "$tmp/subs.awk" | $SHELL
15251 fi >$tmp/out \
15252 || as_fn_error "could not create $ac_file" "$LINENO" 5
15254 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15255 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15258 which seems to be undefined. Please make sure it is defined." >&5
15259 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15260 which seems to be undefined. Please make sure it is defined." >&2;}
15262 rm -f "$tmp/stdin"
15263 case $ac_file in
15264 -) cat "$tmp/out" && rm -f "$tmp/out";;
15265 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15266 esac \
15267 || as_fn_error "could not create $ac_file" "$LINENO" 5
15272 esac
15275 case $ac_file$ac_mode in
15276 "Makefile":F) sed "$extrasub_build" Makefile |
15277 sed "$extrasub_host" |
15278 sed "$extrasub_target" > mf$$
15279 mv -f mf$$ Makefile ;;
15281 esac
15282 done # for ac_tag
15285 as_fn_exit 0
15286 _ACEOF
15287 ac_clean_files=$ac_clean_files_save
15289 test $ac_write_fail = 0 ||
15290 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15293 # configure is writing to config.log, and then calls config.status.
15294 # config.status does its own redirection, appending to config.log.
15295 # Unfortunately, on DOS this fails, as config.log is still kept open
15296 # by configure, so config.status won't be able to write to it; its
15297 # output is simply discarded. So we exec the FD to /dev/null,
15298 # effectively closing config.log, so it can be properly (re)opened and
15299 # appended to by config.status. When coming back to configure, we
15300 # need to make the FD available again.
15301 if test "$no_create" != yes; then
15302 ac_cs_success=:
15303 ac_config_status_args=
15304 test "$silent" = yes &&
15305 ac_config_status_args="$ac_config_status_args --quiet"
15306 exec 5>/dev/null
15307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15308 exec 5>>config.log
15309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15310 # would make configure fail if this is the last instruction.
15311 $ac_cs_success || as_fn_exit $?
15313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}